@charset "utf-8";
/* ==========================================================================
   潮乐成瘾行为与心身康复中心 · 统一视觉系统
   调色板与排版参数严格依据业主书面规范：
     - 大背景绝对避免纯白 #FFFFFF（卡片可用纯白）
     - 日间：#F8F6F2 暖米灰 / #F4F1EA 燕麦色
     - 治愈绿：#EAF0EC 鼠尾草绿 / #3A5A40 深森林绿（按钮、选中态、成功态）
     - 夜间：#1E2830 夜空蓝黑 / #2B3A42 沉静板岩灰
     - 圆角 12–16px；正文行高 1.8；字间距 +0.02em
     - 标题与金句用宋体衬线，正文用无衬线
   ========================================================================== */

:root {
  /* —— 底色（暖大地色系） —— */
  --bg:            #F8F6F2;   /* 暖米灰：全站大背景 */
  --bg-alt:        #F4F1EA;   /* 燕麦色：交替区块 */
  --card:          #FFFFFF;   /* 卡片（规范明确允许纯白卡片） */
  --card-sunk:     #FBF9F5;
  --line:          #E6E1D6;
  --line-soft:     #EFEBE1;

  /* —— 治愈绿系 —— */
  --sage:          #EAF0EC;   /* 鼠尾草绿：柔和填充、选中底 */
  --sage-deep:     #D8E4DB;
  --forest:        #3A5A40;   /* 深森林绿：主按钮、链接、激活态 */
  --forest-hover:  #32503A;
  --forest-ink:    #24382A;

  /* —— 文字（带暖色偏的中性灰，非纯灰） —— */
  --text:          #2C2E2B;
  --text-soft:     #4A4E48;
  --muted:         #6E736B;
  --muted-2:       #8C9089;

  /* —— 品牌金（取自 logo，仅作细节点缀，不做大面积实心） —— */
  --gold:          #C4A265;
  --gold-soft:     #EFE6D4;

  /* —— 语义色：低饱和，避免营销式紧迫感 —— */
  --clay:          #A8564A;   /* 危机/安全提示（低饱和陶土红） */
  --clay-soft:     #F5E9E6;
  --amber:         #8A6A2F;   /* 提醒 */
  --amber-soft:    #F5EEDF;
  --ok:            #3A5A40;   /* 成功＝治愈绿，不另设高饱和绿 */
  --ok-soft:       #EAF0EC;

  /* —— 圆角：全部 12–16px —— */
  --r:             14px;
  --r-lg:          16px;
  --r-sm:          12px;
  --r-pill:        999px;

  /* —— 阴影：极其微弱 —— */
  --shadow:        0 1px 2px rgba(44,46,43,.04), 0 6px 20px rgba(44,46,43,.05);
  --shadow-soft:   0 1px 2px rgba(44,46,43,.03);
  --shadow-lift:   0 2px 6px rgba(44,46,43,.06), 0 14px 36px rgba(44,46,43,.08);

  /* —— 字体 —— */
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
           "SimSun", "STSong", Georgia, serif;

  /* —— 排版参数（规范硬性要求） —— */
  --lh:            1.8;
  --ls:            .02em;

  /* —— 版心与节奏 —— */
  --wrap:          1080px;
  --wrap-narrow:   720px;
  --gut:           clamp(20px, 5vw, 40px);
  --sec-y:         clamp(56px, 9vw, 104px);
}

/* —— 夜间模式：跟随系统 —— */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #1E2830;   /* 夜空蓝黑 */
    --bg-alt:      #1A222A;
    --card:        #2B3A42;   /* 沉静板岩灰 */
    --card-sunk:   #243139;
    --line:        #35454E;
    --line-soft:   #2F3E46;

    --sage:        #26383A;
    --sage-deep:   #2E4442;
    --forest:      #8FBE9C;   /* 深底上反相：浅治愈绿保证对比度 */
    --forest-hover:#A6CDB1;
    --forest-ink:  #C9E2D0;

    --text:        #E8EBE6;
    --text-soft:   #CDD3CB;
    --muted:       #9AA39C;
    --muted-2:     #7E877F;

    --gold:        #D9BE86;
    --gold-soft:   #3A3427;

    --clay:        #E29A8D;
    --clay-soft:   #3A2A27;
    --amber:       #D9BE86;
    --amber-soft:  #352E20;
    --ok:          #8FBE9C;
    --ok-soft:     #26383A;

    --shadow:      0 1px 2px rgba(0,0,0,.28), 0 6px 20px rgba(0,0,0,.30);
    --shadow-soft: 0 1px 2px rgba(0,0,0,.22);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.32), 0 14px 36px rgba(0,0,0,.38);
  }
}

/* —— 用户手动切换：必须能双向覆盖系统偏好 —— */
:root[data-theme="dark"] {
  --bg:#1E2830; --bg-alt:#1A222A; --card:#2B3A42; --card-sunk:#243139;
  --line:#35454E; --line-soft:#2F3E46;
  --sage:#26383A; --sage-deep:#2E4442;
  --forest:#8FBE9C; --forest-hover:#A6CDB1; --forest-ink:#C9E2D0;
  --text:#E8EBE6; --text-soft:#CDD3CB; --muted:#9AA39C; --muted-2:#7E877F;
  --gold:#D9BE86; --gold-soft:#3A3427;
  --clay:#E29A8D; --clay-soft:#3A2A27; --amber:#D9BE86; --amber-soft:#352E20;
  --ok:#8FBE9C; --ok-soft:#26383A;
  --shadow:0 1px 2px rgba(0,0,0,.28), 0 6px 20px rgba(0,0,0,.30);
  --shadow-soft:0 1px 2px rgba(0,0,0,.22);
  --shadow-lift:0 2px 6px rgba(0,0,0,.32), 0 14px 36px rgba(0,0,0,.38);
}
:root[data-theme="light"] {
  --bg:#F8F6F2; --bg-alt:#F4F1EA; --card:#FFFFFF; --card-sunk:#FBF9F5;
  --line:#E6E1D6; --line-soft:#EFEBE1;
  --sage:#EAF0EC; --sage-deep:#D8E4DB;
  --forest:#3A5A40; --forest-hover:#32503A; --forest-ink:#24382A;
  --text:#2C2E2B; --text-soft:#4A4E48; --muted:#6E736B; --muted-2:#8C9089;
  --gold:#C4A265; --gold-soft:#EFE6D4;
  --clay:#A8564A; --clay-soft:#F5E9E6; --amber:#8A6A2F; --amber-soft:#F5EEDF;
  --ok:#3A5A40; --ok-soft:#EAF0EC;
  --shadow:0 1px 2px rgba(44,46,43,.04), 0 6px 20px rgba(44,46,43,.05);
  --shadow-soft:0 1px 2px rgba(44,46,43,.03);
  --shadow-lift:0 2px 6px rgba(44,46,43,.06), 0 14px 36px rgba(44,46,43,.08);
}

/* ========================= 基础 ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--lh);
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-hover); text-decoration: underline; text-underline-offset: 3px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 标题与金句：宋体衬线 */
h1, h2, h3, h4, .serif, .pull-quote {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.45;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(28px, 4.4vw, 42px); }
h2 { font-size: clamp(23px, 3.1vw, 31px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
h4 { font-size: 17px; }
p  { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ========================= 布局 ========================= */
.wrap   { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding: var(--sec-y) 0; }
.section--alt  { background: var(--bg-alt); }
.section--sage { background: var(--sage); }

.stack   { display: flex; flex-direction: column; gap: 1.15rem; }
.stack-sm{ display: flex; flex-direction: column; gap: .6rem; }
.row     { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.grid    { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-4  { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.sec-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: clamp(26px, 3.6vw, 44px); }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin: 0;
}
.lede { font-size: 17px; color: var(--text-soft); max-width: 62ch; margin: 0; }

/* ========================= 页头 ========================= */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 176px; height: auto; }
.brand-sub {
  font-family: var(--serif); font-size: 13px; color: var(--muted);
  padding-left: .7rem; border-left: 1px solid var(--line);
  line-height: 1.35; letter-spacing: .04em;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.35rem); }
.nav a {
  font-size: 14.5px; color: var(--text-soft); padding: .4rem 0;
  border-bottom: 2px solid transparent; letter-spacing: .03em;
}
.nav a:hover { color: var(--forest); text-decoration: none; border-bottom-color: var(--sage-deep); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }
.theme-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  width: 36px; height: 36px; border-radius: var(--r-pill); cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.theme-btn:hover { color: var(--forest); border-color: var(--sage-deep); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .brand-sub { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--card);
    color: var(--text); cursor: pointer; font-size: 17px;
  }
  .nav {
    position: absolute; inset: 68px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: .5rem var(--gut) 1rem;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .28s ease, visibility .28s;
  }
  .nav.open { max-height: 78vh; overflow-y: auto; visibility: visible; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--forest); }
  .nav .theme-btn { margin: .8rem 0 0; }
}

/* ========================= 按钮 ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: .04em; padding: .82rem 1.5rem;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
  text-align: center; line-height: 1.5;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--forest); color: #FBFDFB; }
:root[data-theme="dark"] .btn-primary,
.btn-primary { }
@media (prefers-color-scheme: dark) { .btn-primary { color: #16211A; } }
:root[data-theme="dark"] .btn-primary { color: #16211A; }
:root[data-theme="light"] .btn-primary { color: #FBFDFB; }
.btn-primary:hover { background: var(--forest-hover); color: inherit; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--sage-deep); }
.btn-outline:hover { background: var(--sage); color: var(--forest-hover); }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--forest); border-color: var(--sage-deep); background: var(--card); }
.btn-sm { padding: .55rem 1rem; font-size: 13.5px; }
.btn-block { width: 100%; }

/* 低调文字入口（"我正在为家人求助"） */
.link-quiet {
  font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.link-quiet:hover { color: var(--forest); border-bottom-color: var(--forest); text-decoration: none; }

/* ========================= 卡片 ========================= */
.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-soft);
}
.card-link { display: block; color: inherit; transition: box-shadow .24s, transform .24s, border-color .24s; }
.card-link:hover {
  box-shadow: var(--shadow-lift); border-color: var(--sage-deep);
  transform: translateY(-2px); text-decoration: none; color: inherit;
}
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--text-soft); font-size: 15px; }

.tag {
  display: inline-block; font-size: 12px; letter-spacing: .08em;
  padding: .28rem .7rem; border-radius: var(--r-pill);
  background: var(--sage); color: var(--forest-ink); border: 1px solid var(--sage-deep);
}
:root[data-theme="dark"] .tag { color: var(--forest); }
.tag-gold { background: var(--gold-soft); color: var(--amber); border-color: transparent; }

/* 细金线点缀（品牌呼应，克制使用） */
.rule-gold { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 0; width: 72px; }

/* ========================= 首屏 ========================= */
.hero { position: relative; padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); overflow: hidden; }
/* 抽象光影/晨曦：不使用任何痛苦类库图 */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 150%;
  background:
    radial-gradient(58% 42% at 22% 8%,  color-mix(in srgb, var(--sage) 88%, transparent), transparent 70%),
    radial-gradient(46% 38% at 88% 22%, var(--gold-soft), transparent 72%);
  opacity: .8; pointer-events: none;
}
.hero > * { position: relative; }
/* 中文标题用 em 限宽：1em≈1个汉字，ch 会按数字宽度算导致过早换行 */
.hero h1 { max-width: 18em; text-wrap: pretty; }
.hero-sub { font-size: 17.5px; color: var(--text-soft); max-width: 54ch; margin: 1.1rem 0 0; }
.hero-cta { margin-top: 2rem; }

/* ========================= 静待气泡（绝不主动弹出） ========================= */
.quiet-bubble {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 55; max-width: min(300px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: .9rem 1rem; display: flex; gap: .7rem; align-items: flex-start;
}
.quiet-bubble p { font-size: 13.5px; color: var(--text-soft); margin: 0 0 .5rem; line-height: 1.7; }
.quiet-bubble .qb-close {
  background: none; border: 0; color: var(--muted-2); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px; margin-left: auto; flex-shrink: 0;
}
.quiet-bubble[hidden] { display: none; }

/* ========================= 安全与危机（低饱和，不做营销式警报） ========================= */
.safety-note {
  background: var(--clay-soft); border: 1px solid color-mix(in srgb, var(--clay) 26%, transparent);
  border-radius: var(--r); padding: 1rem 1.15rem;
  font-size: 14.5px; color: var(--text); line-height: 1.75;
}
.safety-note strong { color: var(--clay); }
.safety-strip {
  background: var(--card-sunk); border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--muted);
}
.safety-strip .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; }

/* ========================= 流程 / 步骤 ========================= */
.path { display: grid; gap: 2px; counter-reset: step; }
.path-step {
  background: var(--card); border: 1px solid var(--line-soft);
  padding: 1rem 1.15rem; display: flex; gap: 1rem; align-items: baseline;
}
.path-step:first-child { border-radius: var(--r) var(--r) 0 0; }
.path-step:last-child  { border-radius: 0 0 var(--r) var(--r); }
.path-step .n {
  font-family: var(--serif); font-size: 15px; color: var(--forest);
  min-width: 1.6em; font-variant-numeric: tabular-nums;
}
.path-step h4 { margin-bottom: .15rem; }
.path-step p  { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ========================= 团队 ========================= */
.team-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
.member { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sage); }
.member .m-body { padding: 1rem 1.1rem 1.2rem; }
.member .m-name { font-family: var(--serif); font-size: 18px; color: var(--text); }
.member .m-role { font-size: 12.5px; color: var(--muted); margin-top: .1rem; letter-spacing: .04em; }
.member .m-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.member .m-tags span { font-size: 11.5px; color: var(--forest-ink); background: var(--sage); border-radius: var(--r-pill); padding: .18rem .55rem; }
:root[data-theme="dark"] .member .m-tags span { color: var(--forest); }

/* ========================= 表单（受控选项，避免随意填写） ========================= */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > label { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted-2); line-height: 1.65; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .7rem .85rem;
  line-height: 1.6; width: 100%;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
fieldset { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 0; }
legend { font-size: 13.5px; color: var(--forest); padding: 0 .4rem; font-weight: 600; }

/* ========================= 页脚 ========================= */
.site-foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 66px) 0 2rem; font-size: 14px; }
.foot-grid { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-foot h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .8rem; font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-foot a { color: var(--text-soft); }
.site-foot a:hover { color: var(--forest); }
.foot-brand img { width: 176px; margin-bottom: .9rem; }
.foot-legal { margin-top: clamp(26px, 4vw, 44px); padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.foot-legal p { margin: 0; max-width: none; }

/* ========================= 通用微件 ========================= */
.disclaimer { font-size: 12.5px; color: var(--muted-2); line-height: 1.7; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text-soft); }
.bullets { margin: 0; padding-left: 1.15rem; color: var(--text-soft); }
.bullets li { margin-bottom: .5rem; }
.bullets li::marker { color: var(--sage-deep); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--text-soft); font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--sage-deep); border: 1px solid var(--forest); opacity: .75;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gut); top: 8px; z-index: 99; background: var(--card); padding: .6rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--forest); }
.scroll-x { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); }
table.data th { font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; font-weight: 600; }
table.data td { color: var(--text-soft); }
table.data .num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   第一批改版新增组件（依据《潮乐新网站审计一》任务书）
   ========================================================================== */

/* —— 顶部细条：原地滚动的品牌语 + 诊疗电话 —— */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 38px; }
/* 只在这八个字的宽度内原地滚动 */
.marquee {
  width: 8.6em; height: 1.9em; overflow: hidden; position: relative;
  flex-shrink: 0; color: var(--forest); font-weight: 500; letter-spacing: .12em;
}
.marquee > span {
  position: absolute; white-space: nowrap; line-height: 1.9em;
  animation: marquee-slide 9s linear infinite;
}
@keyframes marquee-slide {
  0%   { transform: translateX(0); }
  12%  { transform: translateX(0); }
  88%  { transform: translateX(calc(-100% + 8.6em)); }
  100% { transform: translateX(calc(-100% + 8.6em)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee > span { animation: none; }
}
.topbar .tb-tel { color: var(--text-soft); }
.topbar .tb-tel a { color: var(--forest); font-variant-numeric: tabular-nums; }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
@media (max-width: 700px) { .topbar .tb-hide { display: none; } }

/* —— 品牌层级：主品牌为诊所名，副标题不与之并列 —— */
.brand-stack { display: flex; flex-direction: column; gap: 2px; }
.brand-stack .b-sub {
  font-family: var(--serif); font-size: 12.5px; color: var(--muted);
  letter-spacing: .08em; line-height: 1;
}

/* —— 首屏：沿用原站横幅 + 左文右卡 —— */
.hero-banner { position: relative; background: var(--bg-alt); overflow: hidden; }
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-split {
  display: grid; gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  align-items: start;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.trust-line {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.4rem;
  font-size: 13px; color: var(--muted);
}
.trust-line span { display: inline-flex; align-items: center; gap: .35rem; }
.trust-line span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage-deep); flex-shrink: 0;
}

/* —— 首屏右侧互动卡（替代图库人物） —— */
.why-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-soft); }
.why-card h2 { font-size: clamp(19px, 2vw, 22px); margin-bottom: .4rem; }
.why-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; }
.why-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .78rem .95rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--text-soft); background: var(--card);
  transition: border-color .2s, background .2s, color .2s;
}
.why-list a:hover { border-color: var(--forest); background: var(--sage); color: var(--forest-ink); text-decoration: none; }
:root[data-theme="dark"] .why-list a:hover { color: var(--forest); }
.why-list a::after { content: "→"; color: var(--muted-2); flex-shrink: 0; }
.why-list a:hover::after { color: var(--forest); }

/* —— 恢复的五个阶段 —— */
.stages { display: grid; gap: 2px; }
.stage {
  background: var(--card); border: 1px solid var(--line-soft);
  padding: 1.05rem 1.2rem; display: grid; gap: .15rem .95rem;
  grid-template-columns: 5.4em 1fr; align-items: baseline;
}
.stage:first-child { border-radius: var(--r) var(--r) 0 0; }
.stage:last-child { border-radius: 0 0 var(--r) var(--r); }
.stage .days {
  font-family: var(--serif); font-size: 13.5px; color: var(--forest);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.stage h4 { margin: 0; }
.stage p { grid-column: 2; font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .stage { grid-template-columns: 1fr; }
  .stage p { grid-column: 1; }
}

/* —— 智能助手：不自动弹出、不闪动、不倒计时 —— */
.assist-fab {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 56; display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: var(--r-pill);
  background: var(--card); color: var(--forest);
  border: 1px solid var(--sage-deep); box-shadow: var(--shadow);
  font-family: var(--sans); font-size: 14px; cursor: pointer;
}
.assist-fab:hover { background: var(--sage); }
.assist-panel {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 57; width: min(384px, calc(100vw - 28px));
  max-height: min(600px, calc(100vh - 40px));
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; overflow: hidden;
}
.assist-panel[hidden], .assist-fab[hidden] { display: none; }
.assist-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); background: var(--card-sunk);
}
.assist-head strong { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.assist-head .quota { margin-left: auto; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.assist-head button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px; }
.assist-body { padding: .9rem 1rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .7rem; }
.assist-msg { font-size: 14px; line-height: 1.75; border-radius: var(--r-sm); padding: .7rem .85rem; max-width: 92%; }
.assist-msg.bot { background: var(--sage); color: var(--text); align-self: flex-start; }
.assist-msg.me { background: var(--card-sunk); border: 1px solid var(--line-soft); align-self: flex-end; }
.assist-msg.crisis { background: var(--clay-soft); border: 1px solid color-mix(in srgb, var(--clay) 30%, transparent); align-self: stretch; max-width: 100%; }
.assist-msg.crisis strong { color: var(--clay); }
.assist-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.assist-quick button {
  font-size: 13px; padding: .42rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--text-soft); cursor: pointer;
}
.assist-quick button:hover { border-color: var(--forest); color: var(--forest); }
.assist-foot { border-top: 1px solid var(--line-soft); padding: .7rem .8rem; display: flex; gap: .5rem; align-items: flex-end; }
.assist-foot textarea {
  flex: 1; min-height: 42px; max-height: 110px; font-size: 14px; line-height: 1.6;
  padding: .55rem .7rem; border-radius: var(--r-sm); resize: none;
}
.assist-foot button {
  border: 0; background: var(--forest); color: #FBFDFB; border-radius: var(--r-sm);
  padding: .62rem 1rem; font-size: 14px; cursor: pointer; flex-shrink: 0;
}
:root[data-theme="dark"] .assist-foot button { color: #16211A; }
.assist-foot button:disabled { opacity: .45; cursor: not-allowed; }
.assist-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; padding: 0 1rem .8rem; }
