@charset "UTF-8";
:root {
  --paper: #f7f5f0;
  --card: #fffefb;
  --ink: #282521;
  --muted: #837c73;
  --line: #e4ded4;
  --accent: #cf4c36;
  --accent-dark: #b93b28;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #cf4c3655; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .6; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.site-header { max-width: 1120px; margin: auto; padding: 27px 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: 2px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: white; font-family: "Songti SC", serif; font-size: 23px; line-height: 1; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: 2px; }
main { width: min(1056px, calc(100% - 48px)); margin: 0 auto; }
.hero { text-align: center; padding: 46px 0 36px; }
.eyebrow { font-size: 10px; letter-spacing: 3px; font-weight: 650; color: var(--accent); margin: 0 0 17px; }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; line-height: 1.45; letter-spacing: -1.5px; margin: 0; }
h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.95; margin: 19px 0 0; }
.parser-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 12px 45px #46332306; max-width: 816px; margin: 0 auto; }
.input-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
textarea { display: block; width: 100%; min-height: 124px; resize: vertical; padding: 16px 18px; background: #f8f6f2; border: 1px solid #e8e2da; border-radius: 9px; color: var(--ink); font-size: 14px; line-height: 1.8; transition: border-color .2s, background .2s; }
textarea::placeholder { color: #aaa297; }
textarea:focus { border-color: #d88976; background: white; outline-color: #cf4c3630; }
.parser-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 16px; }
.input-hint { color: var(--muted); font-size: 11px; }
.primary-button { border: 0; background: var(--accent); color: #fff; border-radius: 9px; padding: 12px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.status { font-size: 13px; padding: 12px 15px; margin: 18px 0 0; border-radius: 8px; background: #f4eee6; color: #736453; }
.status.error { background: #fff0ec; color: #b53b2a; }
.status.busy::before { content: ""; width: 12px; height: 12px; display: inline-block; vertical-align: -2px; margin-right: 8px; border: 2px solid #c2b5a2; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.guide { max-width: 816px; margin: 65px auto 70px; }
.guide > .eyebrow, .guide > h2 { text-align: center; }
.guide h2 { font-family: "Songti SC", SimSun, serif; font-weight: 600; font-size: 26px; margin: 0; letter-spacing: 1px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 36px 0 30px; }
.steps li { position: relative; padding: 0 6px; }
.step-number { font-family: Georgia, serif; font-style: italic; font-size: 24px; color: #b9ad9d; }
.steps h3 { margin: 8px 0; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 11px; }
.notice svg { margin-top: 3px; width: 14px; height: 14px; }
.notice p { margin: 0; }
footer { max-width: 1120px; margin: auto; border-top: 1px solid var(--line); padding: 24px 32px 34px; display: flex; justify-content: space-between; color: #9a9287; font-size: 11px; }
.results { margin-top: 52px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-kicker { color: var(--accent); font-size: 12px; margin: 0 0 6px; }
.section-kicker span { margin-left: 8px; color: var(--muted); }
.result-title-wrap { min-width: 0; }
.result-heading h2 { font-size: 22px; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.note-author { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.quality-note { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 19px 0; }
.quality-dot { width: 5px; height: 5px; border-radius: 50%; background: #718a60; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.image-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.image-preview { display: block; width: 100%; padding: 0; border: 0; background: #ebe6dd; aspect-ratio: 3 / 4; position: relative; overflow: hidden; }
.thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.image-preview:hover .thumbnail { transform: scale(1.025); }
.image-number { position: absolute; left: 12px; top: 12px; background: #201b17b8; backdrop-filter: blur(6px); color: #fff; border-radius: 5px; padding: 2px 7px; font-size: 10px; }
.zoom-icon { position: absolute; bottom: 12px; right: 12px; background: #fffeee; color: var(--ink); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; opacity: .9; }
.zoom-icon svg { width: 16px; height: 16px; }
.image-details { display: flex; justify-content: space-between; padding: 14px 16px 0; font-size: 11px; color: var(--muted); min-height: 34px; }
.download-image { margin: 13px 16px 16px; width: calc(100% - 32px); border: 1px solid var(--line); background: transparent; border-radius: 7px; color: var(--ink); padding: 9px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; transition: border-color .2s, color .2s; }
.download-image:hover { border-color: var(--accent); color: var(--accent); }
.download-image svg { width: 15px; height: 15px; }
.guide.has-results { margin-top: 75px; }
.preview-dialog { background: transparent; border: 0; padding: 24px; width: 100%; max-width: 100%; height: 100%; max-height: 100%; overflow: auto; text-align: center; color: white; }
.preview-dialog::backdrop { background: #171310e8; backdrop-filter: blur(8px); }
.preview-dialog img { display: block; max-width: min(100%, 1000px); max-height: calc(100vh - 115px); width: auto; height: auto; object-fit: contain; margin: 10px auto 16px; border-radius: 4px; }
.preview-dialog p { margin: 0; font-size: 12px; color: #d1c9c1; }
.close-preview { position: fixed; right: 24px; top: 20px; width: 40px; height: 40px; border: 1px solid #ffffff40; background: #00000060; color: white; border-radius: 50%; font-size: 25px; line-height: 1; z-index: 1; }
@media (max-width: 720px) {
  .site-header { padding: 22px 24px; }
  main { width: calc(100% - 32px); }
  .hero { padding: 32px 0 28px; }
  .parser-card { padding: 20px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .result-heading .primary-button { width: 100%; }
  .result-heading h2 { font-size: 20px; }
  .image-details { padding: 11px 12px 0; font-size: 10px; }
  .download-image { margin: 10px 12px 12px; width: calc(100% - 24px); }
  .image-number { left: 9px; top: 9px; }
  .zoom-icon { width: 27px; height: 27px; right: 9px; bottom: 9px; }
  .steps { gap: 17px; }
  footer { padding: 22px 24px; gap: 15px; }
}
@media (max-width: 420px) {
  .header-note { font-size: 10px; letter-spacing: 1px; }
  h1 { font-size: 31px; }
  .hero-description { font-size: 13px; }
  .parser-bottom { align-items: stretch; flex-direction: column; gap: 13px; }
  .input-hint { text-align: center; order: 2; }
  .primary-button { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding-left: 44px; }
  .step-number { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 0; }
  footer { flex-direction: column; align-items: center; gap: 5px; }
  .preview-dialog { padding: 16px; }
  .close-preview { right: 16px; top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
