:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #65736e;
  --green: #1d5747;
  --green-dark: #123b31;
  --lime: #dceca4;
  --paper: #f5f3ec;
  --card: #fffefa;
  --line: rgba(20, 35, 31, 0.12);
  --warning: #b86f22;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--green); border-radius: 13px; font-size: 21px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .05em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.runtime-badge { display: flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); color: var(--muted); font-size: 12px; }
.runtime-badge span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #c8a551; box-shadow: 0 0 0 4px rgba(200,165,81,.14); }
.runtime-badge.is-up span:first-child { background: #4b936d; box-shadow: 0 0 0 4px rgba(75,147,109,.14); }
.runtime-badge.is-down span:first-child { background: #bd5a50; box-shadow: 0 0 0 4px rgba(189,90,80,.14); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: clamp(40px, 7vw, 96px); align-items: center; min-height: 680px; padding: 64px 0 76px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(44px, 5vw, 72px); line-height: 1.12; font-weight: 700; letter-spacing: -.04em; }
.lede { max-width: 590px; margin: 30px 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.facts { display: flex; flex-wrap: wrap; gap: 18px; }
.facts span { padding-right: 18px; color: #43534e; font-size: 13px; border-right: 1px solid var(--line); }
.facts span:last-child { border-right: 0; }
.facts b { margin-right: 7px; color: var(--green); }
.recognition-card { padding: 28px; background: var(--card); border: 1px solid rgba(20,35,31,.1); border-radius: 28px; box-shadow: 0 24px 70px rgba(27,49,42,.12); }
.card-head, .result-title-row, .file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-head h2, .system-links h2 { margin: 0; font-size: 25px; }
.demo-chip { padding: 7px 10px; color: #805223; background: #f7e8cd; border-radius: 999px; font-size: 11px; font-weight: 700; }
.drop-zone { position: relative; display: grid; place-items: center; height: 280px; margin-top: 23px; overflow: hidden; cursor: pointer; border: 1.5px dashed rgba(29,87,71,.35); border-radius: 20px; background: linear-gradient(145deg, #f1f5e9, #edf1e8); transition: border-color .2s, transform .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--green); transform: translateY(-1px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone img { width: 100%; height: 100%; object-fit: cover; }
.upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; color: var(--green); background: var(--lime); border-radius: 16px; font-size: 26px; }
.upload-prompt strong { font-size: 16px; }
.upload-prompt small, .file-row small { color: var(--muted); font-size: 12px; }
.file-row { padding: 14px 3px 3px; }
.file-row strong, .file-row small { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { padding: 8px; color: var(--green); background: none; border: 0; cursor: pointer; font-weight: 700; }
.primary-button, .secondary-button { width: 100%; border: 0; cursor: pointer; border-radius: 15px; font-weight: 800; }
.primary-button { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 17px 20px; color: white; background: var(--green); }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.secondary-button { margin-top: 18px; padding: 14px; color: var(--green); background: #e8efdc; }
.privacy-note { margin: 14px 4px 0; color: #7b8783; font-size: 10px; line-height: 1.55; }
.progress-panel, .result-panel { margin-top: 18px; padding: 20px; border-radius: 18px; background: #eef2e6; }
.progress-line { height: 5px; margin-bottom: 16px; overflow: hidden; border-radius: 99px; background: #d7ded0; }
.progress-line span { display: block; width: 10%; height: 100%; background: var(--green); transition: width .35s ease; }
.progress-panel strong, .progress-panel small { display: block; }
.progress-panel small { margin-top: 4px; color: var(--muted); }
.result-title-row h3 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 30px; }
.result-title-row span { padding: 6px 9px; border-radius: 99px; color: var(--warning); background: #f7e8cd; font-size: 11px; font-weight: 800; }
.result-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.result-meta { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); color: #50605a; font-size: 12px; }
.system-links { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding: 76px 0; border-top: 1px solid var(--line); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.link-grid a { display: flex; min-height: 220px; padding: 26px; flex-direction: column; color: inherit; text-decoration: none; background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 22px; transition: background .2s, transform .2s; }
.link-grid a:hover { background: white; transform: translateY(-3px); }
.link-number { color: var(--green); font-size: 11px; font-weight: 800; }
.link-grid strong { margin-top: 48px; font-size: 19px; }
.link-grid small { margin: 9px 0 auto; color: var(--muted); line-height: 1.6; }
.link-grid a > span:last-child { margin-top: 24px; color: var(--green); font-size: 13px; font-weight: 800; }
.boundary-note { display: grid; grid-template-columns: 180px 1fr; gap: 30px; margin-bottom: 70px; padding: 24px 28px; color: #6f552d; background: #f5e7cb; border-radius: 18px; }
.boundary-note p { margin: 0; line-height: 1.7; font-size: 13px; }
footer { display: flex; justify-content: space-between; padding: 28px 0 38px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .facts { justify-content: center; }
  .recognition-card { width: min(520px, 100%); margin-inline: auto; }
  .system-links { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 72px; }
  .brand small { display: none; }
  .hero { gap: 35px; padding: 40px 0 56px; }
  .hero h1 { font-size: 42px; }
  .lede { margin: 22px 0; font-size: 15px; }
  .facts { gap: 8px; }
  .facts span { width: 100%; border: 0; }
  .recognition-card { padding: 19px; border-radius: 23px; }
  .drop-zone { height: 250px; }
  .link-grid { grid-template-columns: 1fr; }
  .boundary-note { grid-template-columns: 1fr; gap: 8px; }
  footer { gap: 8px; flex-direction: column; }
}
