:root {
  --ink: #18332d;
  --muted: #687c76;
  --paper: #f6f4ee;
  --card: #fffdf8;
  --line: #dce4df;
  --brand: #176b57;
  --brand-dark: #0f4c3f;
  --shadow: 0 18px 50px rgba(25, 51, 45, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  padding: 64px 0 108px;
  color: #f9fffc;
  background:
    radial-gradient(circle at 80% 20%, rgba(137, 207, 177, .22), transparent 32%),
    linear-gradient(135deg, #103d35, #1a715b);
}
.eyebrow { margin: 0 0 8px; letter-spacing: .18em; text-transform: uppercase; color: #9ed9c4; font-size: 13px; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 62px); line-height: 1.12; letter-spacing: -.04em; }
.subtitle { max-width: 680px; margin: 18px 0 0; color: #d5ebe3; font-size: 18px; }
.main-grid { margin-top: -62px; padding-bottom: 48px; }
.card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(23, 107, 87, .12);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.capture-card { max-width: 820px; margin: 0 auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
h2 { margin: 0 0 18px; font-size: 23px; letter-spacing: -.02em; }
.section-heading h2 { margin: 0; }
h3 { margin: 0 0 8px; font-size: 17px; }
.step { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--brand); background: #e4f2ec; font-weight: 800; font-size: 12px; }
.status-pill { padding: 6px 11px; border-radius: 999px; background: #eef2f0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.media-frame { position: relative; display: grid; place-items: center; min-height: 380px; overflow: hidden; border: 1px dashed #a9bbb5; border-radius: 18px; background: #edf1ef; }
.media-frame video, .media-frame img { width: 100%; max-height: 620px; object-fit: contain; background: #18211e; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.empty-state p { margin: 8px 0 2px; color: var(--ink); font-weight: 650; }
.empty-icon { font-size: 52px; color: #8bab9f; }
.hint { min-height: 26px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover:not(:disabled) { background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); background: #dceee7; }
.button.ghost { color: var(--ink); background: #eef1ef; }
.button.full { width: 100%; margin-top: 14px; padding: 14px 20px; }
.file-label { display: inline-flex; align-items: center; }
.progress { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; color: var(--brand); }
.spinner { width: 18px; height: 18px; border: 2px solid #b9d7cb; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #8a2925; background: #fde9e7; }
.report { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.wide-card { grid-column: 1 / -1; }
.lead { font-size: 17px; }
.clean-list, .feature-list { margin: 12px 0 0; padding-left: 22px; }
.feature-list li { margin: 8px 0; }
.muted, .meta { color: var(--muted); }
.meta { margin: 18px 0 0; font-size: 12px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analysis-block { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; }
.analysis-block p { margin: 0; }
.analysis-block .evidence { margin-bottom: 8px; color: var(--brand); font-size: 13px; }
.analysis-block h4 { margin: 16px 0 6px; color: var(--brand-dark); font-size: 14px; }
.analysis-block ul { margin: 4px 0 10px; padding-left: 22px; }
.analysis-block p + p { margin-top: 9px; }
.report-switcher { padding-top: 22px; }
.report-tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.report-tab { padding: 11px 18px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.report-tab.active { border-bottom-color: var(--brand); color: var(--brand-dark); }
.report-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hypotheses { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #bdcbc6; }
.hypothesis-item { margin-top: 10px; padding: 12px; border-left: 3px solid #b58b45; border-radius: 6px; background: #fff8e8; }
.hypothesis-item p { margin: 0 0 6px; }
.verification-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #74521b; background: #f6e4bd; font-size: 12px; font-weight: 750; }
.raw-result summary { cursor: pointer; font-weight: 750; }
pre { max-height: 520px; overflow: auto; padding: 16px; border-radius: 12px; color: #dcefe8; background: #14241f; white-space: pre-wrap; word-break: break-word; }
.report-timing { grid-column: 1 / -1; text-align: center; }
footer { padding: 24px 0 42px; }
.disclaimer { padding: 22px 26px; border-left: 4px solid #c3a650; border-radius: 8px; background: #fff8dc; color: #5e552f; }
.disclaimer p { margin: 6px 0 0; }

@media (max-width: 760px) {
  .hero { padding-top: 44px; }
  .media-frame { min-height: 260px; }
  .report { grid-template-columns: 1fr; }
  .wide-card { grid-column: 1; }
  .analysis-grid { grid-template-columns: 1fr; }
  .report-content { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
}
