/* ==========================================================================
   Deyo Health Assist · Design System
   基于 reference 项目 MedEscort China 设计语言，沿用绿/橙品牌色与组件命名。
   ========================================================================== */

:root {
  /* Brand */
  --brand: #0E7C7B;
  --brand-600: #0b6665;
  --brand-700: #084f4e;
  --brand-050: #e8f4f3;
  --accent: #F2994A;
  --accent-600: #e0842f;
  --accent-050: #fdf2e7;

  /* Ink */
  --ink: #11262e;
  --ink-2: #3c5560;
  --ink-3: #6b8390;
  --line: #dce7e8;
  --line-2: #eef4f4;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6faf9;
  --bg-mint: #eef7f6;
  --bg-dark: #0a2a2f;

  /* System */
  --ok: #1f9d55;
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 38, 46, .06), 0 1px 3px rgba(17, 38, 46, .05);
  --shadow: 0 4px 14px rgba(17, 38, 46, .07), 0 1px 3px rgba(17, 38, 46, .05);
  --shadow-lg: 0 18px 40px rgba(17, 38, 46, .12);
  --maxw: 1160px;
  --sans: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --cjk: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang^="zh"] body { font-family: var(--cjk); }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
strong { font-weight: 650; }
small { font-size: .86rem; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: .7rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-mint); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-050);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
html[lang^="zh"] .eyebrow { letter-spacing: .05em; text-transform: none; }

.lede { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: 10px;
  font-weight: 800; letter-spacing: -.02em;
}
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: .76rem; }
.nav { display: flex; gap: 1.4rem; align-items: center; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .35rem 0; }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a:hover { color: var(--brand-600); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; gap: .25rem; }
.lang a {
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  padding: .25rem .45rem; border-radius: 6px;
}
.lang a[aria-current="true"] { background: var(--brand-050); color: var(--brand); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: .35rem .5rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: var(--ink); stroke: var(--ink); stroke-width: 2; }

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line-2);
    flex-direction: column; padding: 1rem 22px 1.4rem; gap: .8rem; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  font-family: inherit;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); text-decoration: none; color: #fff; }
.btn--brand { background: var(--accent); color: #fff; }
.btn--brand:hover { background: var(--accent-600); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-050); text-decoration: none; }
.btn--lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, #134749 100%);
  color: #f1f7f6; padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 80% 0%, rgba(242,153,74,.18), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lede { color: #cfe2e0; max-width: 56ch; }
.hero .eyebrow { background: rgba(255,255,255,.1); color: #d6eeec; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-video {
  margin-top: 2.4rem; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 16/9; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: #b6d2cf; font: inherit; text-align: center; padding: 1rem;
  cursor: default;
}
/* 播放按钮（视频生成后用真实播放器替换，届时改为可点击） */
.hero-video-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.5);
  position: relative; flex: 0 0 auto;
  transition: background .15s, border-color .15s;
}
.hero-video-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-42%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.hero-video:not([disabled]):hover .hero-video-play { background: rgba(255,255,255,.22); border-color: #fff; }
.hero-video-caption { font-size: .88rem; max-width: 42ch; }
@media (max-width: 560px) {
  .hero-video-play { width: 54px; height: 54px; }
  .hero-video-play::after { border-width: 9px 0 9px 15px; }
}

/* ---------- Cards / Grid ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card--soft { background: var(--bg-soft); }
.card--hover { transition: transform .15s, box-shadow .15s; }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); border-radius: 10px;
  font-size: 1.4rem; margin-bottom: .8rem;
}

.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-050); color: var(--brand); font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 .25em; }
.step .short { color: var(--ink-3); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden;
}
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 600;
  position: relative; padding-right: 2.6rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand); font-weight: 400;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-body { padding: 0 1.2rem 1.2rem; color: var(--ink-2); }
.faq-cat {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .8rem;
}
html[lang^="zh"] .faq-cat { letter-spacing: .04em; text-transform: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

/* ---------- Notices ---------- */
.notice {
  border: 1px dashed var(--line); background: var(--bg-soft);
  border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink-2);
}
.callout {
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  background: var(--brand-050); border-left: 4px solid var(--brand); color: var(--ink);
}
.callout--info { background: #eef4fb; border-color: #4a7ab8; }
.callout--danger { background: #fdf0ef; border-left-color: var(--danger); color: #5b1c1c; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row .help { font-size: .82rem; color: var(--ink-3); }
.form-row .err { font-size: .82rem; color: var(--danger); }
.form-row--inline { display: flex; gap: .8rem; align-items: flex-start; }
.form-row--inline input[type="checkbox"] { width: auto; margin-top: .25rem; }

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Checks (do/dont) ---------- */
.checks { list-style: none; padding-left: 0; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700;
}
.checks--x li::before { content: "×"; color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2a2f; color: #b9d0cd; padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.site-footer a { color: #d6eeec; }
.disclaimer-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem;
  font-size: .92rem; line-height: 1.6;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.4rem;
  padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h4 { color: #fff; font-size: .92rem; margin-bottom: .8rem; letter-spacing: .05em; }
.footer-brand { display: flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35rem 0; font-size: .92rem; }
.copyright { font-size: .82rem; color: #8aa9a6; padding-top: 1.2rem; text-align: center; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Placeholder image ---------- */
.placeholder-img {
  background: var(--bg-mint); border: 1px dashed var(--line);
  border-radius: var(--radius); display: grid; place-items: center;
  color: var(--ink-3); aspect-ratio: 16/9; font-size: .9rem;
}

/* ---------- Tag / status ---------- */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--bg-mint); color: var(--brand); text-transform: uppercase;
}
.tag--warn { background: #fdf2e7; color: var(--accent-600); }
.tag--danger { background: #fdf0ef; color: var(--danger); }
.tag--ok { background: #e8f5ec; color: var(--ok); }
html[lang^="zh"] .tag { letter-spacing: 0; text-transform: none; }

/* ---------- Status pill (admin) ---------- */
.pill { padding: .2rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.pill--new { background: #eef4fb; color: #1f4b8a; }
.pill--contacted { background: #fdf2e7; color: var(--accent-600); }
.pill--qualified { background: var(--brand-050); color: var(--brand); }
.pill--contract_sent { background: #ece8f7; color: #5a3aa4; }
.pill--converted { background: #e8f5ec; color: var(--ok); }
.pill--lost { background: #f3f3f3; color: var(--ink-3); }

/* ---------- Utility ---------- */
.muted { color: var(--ink-3); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1.2rem; }

/* ==========================================================================
   服务流程 · 三阶段卡片 + 层级化步骤列表
   --------------------------------------------------------------------------
   结构：
     .stage-switch
       ├─ input.stage-radio × N        承载"当前选中阶段"（纯 CSS，无需 JS）
       ├─ .stage-cards  > label.stage-card         卡片
       └─ .stage-panels > section.stage-panel      详情面板
            └─ .stage-groups > .stage-group > .stage-steps > .stage-step
   层级：阶段 → 分组(.stage-group-label) → 步骤(.stage-step)
   ========================================================================== */

.stage-hint { margin-bottom: 1.8rem; }

/* 隐藏单选按钮但保留可聚焦性（键盘可用方向键切换） */
.stage-radio {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}

/* ---------- 卡片 ---------- */
.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 820px) { .stage-cards { grid-template-columns: 1fr; } }

.stage-card {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.25rem 1.3rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
  position: relative;
}
.stage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.stage-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .7rem;
}
.stage-card-num {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand);
  font-weight: 800; font-size: 1.15rem;
  transition: background .15s, color .15s;
}
/* 展开/收起的箭头指示 */
.stage-card-chevron {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  position: relative; flex: 0 0 auto;
}
.stage-card-chevron::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform .2s;
}
.stage-card-title { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.stage-card-sub   { color: var(--ink-3); font-size: .85rem; line-height: 1.45; }
.stage-card-count {
  margin-top: .7rem; align-self: flex-start;
  font-size: .74rem; font-weight: 700;
  padding: .22rem .6rem; border-radius: 999px;
  background: var(--bg-mint); color: var(--brand);
}

/* 选中态（:checked 通过兄弟选择器回写到 label） */
.stage-switch:has(.stage-radio:nth-of-type(1):checked) .stage-card:nth-of-type(1),
.stage-switch:has(.stage-radio:nth-of-type(2):checked) .stage-card:nth-of-type(2),
.stage-switch:has(.stage-radio:nth-of-type(3):checked) .stage-card:nth-of-type(3) {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-050) 0%, #fff 55%);
  box-shadow: var(--shadow);
}
.stage-switch:has(.stage-radio:nth-of-type(1):checked) .stage-card:nth-of-type(1) .stage-card-num,
.stage-switch:has(.stage-radio:nth-of-type(2):checked) .stage-card:nth-of-type(2) .stage-card-num,
.stage-switch:has(.stage-radio:nth-of-type(3):checked) .stage-card:nth-of-type(3) .stage-card-num {
  background: var(--brand); color: #fff;
}
.stage-switch:has(.stage-radio:nth-of-type(1):checked) .stage-card:nth-of-type(1) .stage-card-chevron::before,
.stage-switch:has(.stage-radio:nth-of-type(2):checked) .stage-card:nth-of-type(2) .stage-card-chevron::before,
.stage-switch:has(.stage-radio:nth-of-type(3):checked) .stage-card:nth-of-type(3) .stage-card-chevron::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

/* 键盘聚焦态 */
.stage-switch:has(.stage-radio:nth-of-type(1):focus-visible) .stage-card:nth-of-type(1),
.stage-switch:has(.stage-radio:nth-of-type(2):focus-visible) .stage-card:nth-of-type(2),
.stage-switch:has(.stage-radio:nth-of-type(3):focus-visible) .stage-card:nth-of-type(3) {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ---------- 详情面板 ---------- */
.stage-panels { margin-top: 1.5rem; }

/* 无 JS 时全部可见；有 JS 时只显示选中的（此处纯 CSS，无需 JS 切换） */
.stage-panel { display: none; }
.stage-switch:has(.stage-radio:nth-of-type(1):checked) .stage-panel:nth-of-type(1),
.stage-switch:has(.stage-radio:nth-of-type(2):checked) .stage-panel:nth-of-type(2),
.stage-switch:has(.stage-radio:nth-of-type(3):checked) .stage-panel:nth-of-type(3) {
  display: block;
}
/* 不支持 :has() 的旧浏览器 → 全部展开，保证内容可读（渐进降级） */
@supports not selector(:has(*)) {
  .stage-panel { display: block; }
  .stage-panel + .stage-panel { margin-top: 1.5rem; }
}

.stage-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 6rem;
  animation: stageFade .22s ease-out;
}
@keyframes stageFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-panel { animation: none; }
}

.stage-panel-head {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line-2);
}
.stage-panel-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1rem;
}
.stage-panel-title { margin: 0; font-size: 1.22rem; }
.stage-panel-sub   { color: var(--ink-3); font-size: .88rem; }
.stage-panel-count {
  margin-left: auto;
  font-size: .74rem; font-weight: 700;
  padding: .22rem .6rem; border-radius: 999px;
  background: var(--bg-mint); color: var(--brand);
}

/* ---------- 分组层级 ---------- */
.stage-groups {
  counter-reset: stage-step;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 900px) {
  .stage-groups { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.2rem; }
  .stage-group:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 奇数个分组时最后一个占满整行 */
}

.stage-group {
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line);
}
.stage-group-label {
  margin: 0 0 .7rem;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  display: flex; align-items: center; gap: .5rem;
}
.stage-group-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line-2);
}
html[lang^="zh"] .stage-group-label {
  letter-spacing: .04em; text-transform: none; font-size: .9rem;
}

.stage-steps { list-style: none; margin: 0; padding: 0; }

.stage-step {
  position: relative;
  padding: .55rem 0 .55rem 2.1rem;
  display: flex; flex-direction: column; gap: .16rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.stage-step:hover { background: var(--bg-soft); }

/* 步骤序号（跨分组连续编号） */
.stage-step::before {
  counter-increment: stage-step;
  content: counter(stage-step);
  position: absolute; left: 0; top: .62rem;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-mint); color: var(--brand);
  font-size: .72rem; font-weight: 700;
  z-index: 1;
}
/* 步骤之间的连接线，强化层级与顺序感 */
.stage-step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 10px; top: 2rem; bottom: -0.6rem;
  width: 2px; background: var(--line-2);
}
.stage-step-name { font-weight: 650; font-size: .97rem; }
.stage-step-desc { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }

/* ---------- 阶段说明 ---------- */
.stage-note {
  margin-top: 1.5rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--ink-2);
}

/* ---------- 打印：全部展开 ---------- */
@media print {
  .stage-cards { display: none; }
  .stage-panel { display: block !important; box-shadow: none; page-break-inside: avoid; }
  .stage-panel + .stage-panel { margin-top: 1.5rem; }
}
