:root {
  /* 方域生物 · 科研视觉体系
     深蓝紫科研底座 + 品红免疫网络信号 + 琥珀证据点，白/浅紫灰承载专业内容，
     刻意避开传统医疗绿。60% 白/浅紫灰 · 25% 深蓝紫 · 10% 品红 · 5% 琥珀。 */
  --deep: #08005f;    /* 主品牌深蓝紫：首屏、深色章节、核心按钮、页尾 */
  --magenta: #e73586; /* 方域品红：重点、高亮、链接、数据节点（最强识别色） */
  --purple: #7b1bbd;  /* 紫色辅助：网络、结构、分层信息 */
  --amber: #f5b72e;   /* 证据黄：关键提示、标签、判断信号（少量使用） */
  --ink: #17142a;     /* 正文深色 */
  --paper: #f8f5fb;   /* 页面底色 */
  --soft: #f4edf8;    /* 信息卡浅底 */

  /* 语义别名：沿用旧变量名，页面各处 var() 自动切换到新体系 */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-alt: var(--soft);
  --line: #e5ddec;
  --line-strong: #d8cce4;
  --text: var(--ink);
  --muted: #6b6475;
  --blue: #2a1178;         /* 中深蓝紫：主按钮、激活态、结构强调 */
  --blue-dark: var(--deep);
  --teal: #6d17b8;         /* 原绿色 → 紫罗兰（网络/结构，无医疗绿） */
  --cyan: #a12aa8;         /* 亮端 → 紫洋红过渡色 */
  --shadow: 0 14px 35px rgba(8, 0, 95, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", sans-serif; background: linear-gradient(180deg, #f4edf8 0%, #f8f5fb 100%); color: var(--text); }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(8, 0, 95, 0.08); }
.site-header__inner { width: min(1440px, calc(100% - 32px)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__left, .site-header__right, .main-nav { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__text { font-size: 20px; font-weight: 700; color: var(--blue-dark); border-left: 2px solid var(--line-strong); padding-left: 12px; }
@media (max-width: 720px) { .brand__text { display: none; } .brand__logo { height: 34px; } }
.main-nav a, .site-header__right > a, .lang-menu__toggle { font-size: 18px; font-weight: 700; color: var(--blue-dark); padding: 8px 0; border-bottom: 2px solid transparent; background: transparent; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.main-nav a.is-active, .site-header__right > a.is-active, .main-nav a:hover, .site-header__right > a:hover, .lang-menu__toggle:hover { border-bottom-color: var(--blue); }
.site-header__right > a.is-authenticated { color: var(--teal); border-bottom-color: var(--teal); }

.lang-menu { position: relative; display: flex; align-items: center; }
.lang-menu__toggle { width: auto; margin-top: 0; display: inline-flex; align-items: center; }
.lang-menu__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 260; min-width: 148px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); display: none; }
.lang-menu.is-open .lang-menu__panel { display: grid; gap: 6px; }
.lang-menu__option { width: 100%; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-alt); color: var(--blue-dark); font-weight: 700; text-align: left; }
.lang-menu__option:hover { border-color: var(--line-strong); }
.lang-menu__option.is-active { background: var(--blue); border-color: var(--blue); color: white; }

.app-shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.page { display: none; }
.page.is-active { display: block; }

.hero-grid, .analysis-hub, .help-grid { display: grid; gap: 22px; }
.hero-grid { grid-template-columns: 1.3fr 0.7fr; align-items: start; margin-bottom: 24px; }
.hero-copy, .hero-aside, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hero-copy { padding: 28px; display: flex; flex-direction: column; }
.hero-copy h1 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.1; margin: 8px 0 14px; }
html[lang="zh-CN"] .hero-copy h1 { white-space: nowrap; }
.hero-copy .lede { font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-steps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.access-gate, .panel-note { border-radius: 999px; padding: 12px 16px; background: var(--surface-alt); border: 1px solid var(--line); color: var(--muted); }
.hero-aside { padding: 22px; display: grid; gap: 14px; align-self: stretch; align-content: space-between; }
.metric-card, .help-card, .result-card, .download-card, .carousel-slide, .auth-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%); box-shadow: var(--shadow); }
.metric-card { position: relative; padding: 18px 18px 18px 22px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(8, 0, 95, 0.14); }
.metric-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.metric-card--flow::before { background: linear-gradient(180deg, var(--teal), var(--cyan)); }
.metric-card--input::before { background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.metric-card--deliver::before { background: linear-gradient(180deg, var(--purple), var(--magenta)); }
.metric-card span, .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--muted); font-weight: 700; }
.metric-card strong { display: block; margin-top: 10px; font-size: 22px; color: var(--blue-dark); }
.panel { padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 6px 0 0; font-size: 30px; }
.muted { color: var(--muted); }
.header-back-button { width: auto; min-width: 170px; }

.carousel { position: relative; }
.carousel-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 16px; width: max-content; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); color: var(--blue); box-shadow: var(--shadow); cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease; }
.carousel-nav:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-nav:active { transform: translateY(-50%) scale(0.96); }
.carousel-nav svg { width: 18px; height: 18px; display: block; }
.carousel-nav--prev { left: 6px; }
.carousel-nav--next { right: 6px; }
.carousel-slide { flex: 0 0 clamp(240px, 22vw, 300px); min-height: 220px; padding: 18px; display: flex; flex-direction: column; background: linear-gradient(135deg, #08005f 0%, #4a1596 48%, #e73586 120%); color: white; }
.carousel-slide .figure-tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.carousel-figure { margin: 12px 0; background: #ffffff; border-radius: 12px; padding: 8px; }
.carousel-figure img { display: block; width: 100%; height: 150px; object-fit: contain; }
.carousel-slide h3 { margin: 10px 0 8px; font-size: 18px; }
.carousel-slide p { margin: 0; line-height: 1.6; font-size: 13px; }
.carousel-actions, .inline-row, .form-actions { display: flex; gap: 12px; }

.analysis-hub { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.analysis-card { position: relative; display: grid; gap: 16px; padding: 28px; border-radius: 24px; border: 1px solid var(--line-strong); text-align: left; cursor: pointer; color: #ffffff; background: linear-gradient(135deg, #0d0570 0%, #3a1596 46%, #7b1bbd 100%); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.analysis-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 70%); pointer-events: none; }
.analysis-card--fastq { background: linear-gradient(135deg, #08005f 0%, #241a86 55%, #7b1bbd 130%); }
.analysis-card--cdr3 { background: linear-gradient(135deg, #0d0570 0%, #7b1bbd 60%, #e73586 130%); }
.analysis-card--trajectory { background: linear-gradient(135deg, #08005f 0%, #5a189e 60%, #b02a8e 130%); }
.analysis-card--groupcompare { background: linear-gradient(135deg, #0d0570 0%, #7b1bbd 60%, #f5b72e 135%); }
.analysis-card--fastq,
.analysis-card--cdr3 { min-height: 290px; }
.analysis-card--cdr3 { padding-left: 28px; padding-right: 28px; }
.analysis-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(8, 0, 95, 0.22); }
.analysis-card__eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); font-weight: 700; position: relative; z-index: 1; }
.analysis-card__title { font-size: clamp(34px, 3vw, 54px); line-height: 1; position: relative; z-index: 1; }
.analysis-card__text { font-size: 18px; line-height: 1.65; margin: 0; color: rgba(255, 255, 255, 0.92); position: relative; z-index: 1; }
.analysis-card__arrow { justify-self: start; border-radius: 999px; padding: 10px 18px; background: rgba(255, 255, 255, 0.92); color: var(--blue-dark); font-weight: 700; position: relative; z-index: 1; }

.upload-form, .stack-form { display: grid; gap: 12px; }
.upload-form--single { max-width: 780px; margin: 0 auto; }
.upload-form h3, .auth-card h2, .help-card h3, .result-card h3, .download-card h3 { margin: 0 0 6px; }
.upload-form, .auth-card { padding: 20px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 18px; }
label { display: block; font-size: 14px; color: var(--muted); }
input, select, textarea, button { width: 100%; margin-top: 8px; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: white; color: var(--text); }
button { background: var(--blue); color: white; font-weight: 700; cursor: pointer; }
.secondary-button { background: white; color: var(--blue-dark); }
.secondary-button.inline-button { width: auto; align-self: end; }
.form-actions button, .carousel-actions button { width: auto; }
.grow { flex: 1; }

.job-feedback, .result-list, .download-list { display: grid; gap: 14px; margin-top: 18px; }
.upload-progress { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fbfaff; }
.upload-progress__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--blue-dark); }
.upload-progress progress { width: 100%; height: 16px; margin: 0; }
.task-progress { display: grid; gap: 12px; margin-top: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #f4edf8 100%); box-shadow: 0 16px 34px rgba(8, 0, 95, 0.08); }
.task-progress__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.task-progress__title { color: var(--blue-dark); font-size: 15px; letter-spacing: 0.04em; }
.task-progress__value { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.task-progress__track { position: relative; overflow: hidden; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #eae0f2 0%, #f4edf8 100%); }
.task-progress__fill { display: block; position: relative; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 50%, var(--blue) 100%); box-shadow: 0 6px 14px rgba(8, 0, 95, 0.24); transition: width 0.32s ease; }
.task-progress__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%); transform: translateX(-100%); animation: progressShimmer 1.8s linear infinite; }
.task-progress__detail { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.page[data-page="analysis-fastq"] .panel,
.page[data-page="analysis-cdr3"] .panel { max-width: 980px; margin-left: auto; margin-right: auto; }
.page[data-page="analysis-fastq"] .job-feedback,
.page[data-page="analysis-cdr3"] .job-feedback { max-width: 780px; margin-left: auto; margin-right: auto; }
.result-card, .download-card, .help-card { padding: 18px; }
.job-feedback { min-height: 64px; }
.results-browser { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.results-overview-list { display: grid; gap: 12px; }
.result-detail-panel { min-height: 240px; }
.result-list-item { width: 100%; display: grid; gap: 6px; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%); color: var(--text); box-shadow: var(--shadow); }
.result-list-item strong { font-size: 18px; }
.result-list-item span { color: var(--muted); font-weight: 500; }
.result-list-item.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(231, 53, 134, 0.18), var(--shadow); }
.result-card__head { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.result-card__title h3 { word-break: keep-all; overflow-wrap: normal; hyphens: none; white-space: normal; }
.result-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.result-summary span { display: block; border-radius: 999px; padding: 10px 14px; background: var(--surface-alt); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-analysis { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.result-analysis:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.result-analysis__head { display: grid; gap: 12px; align-items: start; margin-bottom: 12px; }
.result-analysis h4 { margin: 6px 0 0; font-size: 22px; }
.result-summary--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-table-wrap { overflow-x: auto; margin-top: 14px; }
.result-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.result-table th, .result-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.result-table th { background: var(--soft); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.preview-card { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fbfaff; }
.preview-card img { width: 100%; height: auto; object-fit: contain; display: block; background: #f0e9f7; }
.download-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(231, 53, 134, 0.18), var(--shadow); }
.download-card.is-targeted { animation: downloadPulse 1.2s ease; }
.preview-card figcaption { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.download-actions button { width: auto; }
.auth-panel { max-width: 720px; margin-left: auto; margin-right: auto; }
.auth-card--single { max-width: 560px; margin: 0 auto; }
.auth-logged { display: grid; gap: 14px; margin-top: 18px; padding: 22px; border-radius: 18px; background: linear-gradient(145deg, #f4edf8 0%, #faf7fd 100%); border: 1px solid var(--line); }
.auth-logged__badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 92px; padding: 8px 14px; border-radius: 999px; background: var(--teal); color: #ffffff; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-logged h3 { margin: 0; font-size: 28px; color: var(--blue-dark); }
.auth-logged p { margin: 0; color: var(--muted); line-height: 1.7; }
.auth-view { display: none; }
.auth-view.is-active { display: grid; }
.auth-links { display: grid; gap: 6px; justify-items: start; }
.text-link { width: auto; margin-top: 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 400; text-align: left; }
.text-link:hover { color: var(--blue); text-decoration: underline; }
.password-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Home: hero CTA + numbered steps ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-cta a { width: auto; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hero-cta__primary { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--purple) 100%); color: #fff; box-shadow: 0 10px 24px rgba(8, 0, 95, 0.3); }
.hero-cta__ghost { background: var(--surface-alt); color: var(--blue-dark); border: 1px solid var(--line-strong); }
.hero-cta a:hover { transform: translateY(-2px); }
.hero-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface-alt); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.hero-steps__no { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.metric-card em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Home: report tiers ---------- */
.kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kind-card { position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease; }
.kind-card:hover { transform: translateY(-3px); }
.kind-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.kind-card--single::before { background: linear-gradient(180deg, var(--teal), var(--cyan)); }
.kind-card--multi::before { background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.kind-card--seven::before { background: linear-gradient(180deg, var(--purple), var(--magenta)); }
.kind-card__badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--blue-dark); background: rgba(8, 0, 95, 0.10); }
.kind-card h3 { margin: 16px 0 8px; font-size: 24px; }
.kind-card p { margin: 0; line-height: 1.7; color: var(--muted); }

/* ---------- Home: analysis atlas ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature-card__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; color: var(--purple); background: linear-gradient(135deg, rgba(123, 27, 189, 0.18), rgba(231, 53, 134, 0.14)); }
.feature-card h3 { margin: 14px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; line-height: 1.65; color: var(--muted); font-size: 14px; }
.feature-card--new { border-color: var(--magenta); box-shadow: 0 14px 35px rgba(231, 53, 134, 0.16); }
.feature-card__tag { position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--purple)); }

/* ---------- FASTQ upload guide + sample link ---------- */
.upload-guide { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #f6f0fb 0%, #fbfaff 100%); }
.upload-guide__title { margin: 0 0 10px; font-weight: 800; color: var(--blue-dark); }
.upload-guide__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.upload-guide__list li::marker { color: var(--blue); font-weight: 700; }
.label-with-link { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sample-link { width: auto; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--blue); background: rgba(8, 0, 95, 0.10); }
.sample-link:hover { background: rgba(231, 53, 134, 0.16); }
.testdata-hint { margin-top: 6px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(8, 0, 95, 0.05); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.testdata-hint > span { font-size: 14px; font-weight: 700; color: var(--blue); }
.testdata-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* file input + inline "use test data" action */
.file-with-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-with-action input[type="file"] { flex: 1 1 240px; min-width: 0; }
.testdata-button { width: auto; align-self: center; white-space: nowrap; padding: 8px 16px; }
.testdata-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.group-fields { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 16px; align-items: end; margin-bottom: 8px; }

/* upload-format guide / example header preview */
.format-guide { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(8, 0, 95, 0.05); }
.format-guide summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); }
.format-guide p { margin: 10px 0 6px; font-size: 13px; color: var(--muted, #55627a); }
.format-guide .format-cols { display: block; font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 12.5px; background: #0d0540; color: #d9cfea; border-radius: 8px; padding: 8px 10px; word-break: break-word; margin-bottom: 10px; }
@media (max-width: 640px) { .group-fields { grid-template-columns: 1fr; } }

@keyframes progressShimmer {
  100% { transform: translateX(100%); }
}

@keyframes downloadPulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 53, 134, 0.24), var(--shadow); }
  60% { box-shadow: 0 0 0 10px rgba(231, 53, 134, 0), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

@media (max-width: 1100px) {
  .hero-grid, .analysis-hub, .help-grid, .preview-grid, .results-browser { grid-template-columns: 1fr; }
  .site-header__inner { width: calc(100% - 24px); min-height: auto; padding: 14px 0; display: grid; gap: 12px; }
  .site-header__left, .main-nav, .site-header__right { flex-wrap: wrap; gap: 14px; }
  .kind-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-steps { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-summary--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  html[lang="zh-CN"] .hero-copy h1 { white-space: normal; }
}
