/* ============================================================================
 * Qicura — 医道长河独立页 (history.css)
 * 叙事页：厚章节 + 站台引语。不覆盖主页业务组件，只服务 history.html。
 * ========================================================================== */

.hist-page{ background:var(--bone); }
.hist-page .nav{ position:sticky; top:0; z-index:70; background:rgba(244,239,230,.92); backdrop-filter:blur(8px); }
.hist-page .nav-links a.is-current{ color:var(--gilt-deep); font-weight:600; }
.hist-page .brand-mark{ width:19px; height:19px; display:block; }
.nav-burger{ display:none; width:42px; height:42px; border-radius:999px; border:1px solid var(--line);
  background:var(--paper); color:var(--ink-soft); cursor:pointer; align-items:center; justify-content:center; margin-inline-start:auto; }
.nav-burger svg{ width:20px; height:20px; }
.nav-sheet{ position:fixed; inset:0; z-index:60; background:rgba(38,33,27,.55); backdrop-filter:blur(5px); display:none; }
.nav-sheet.open{ display:block; }
.nav-sheet-card{ position:absolute; top:74px; left:0; right:0; background:var(--paper);
  box-shadow:var(--shadow-lg); border-radius:0 0 var(--r-lg) var(--r-lg);
  padding:14px 22px 22px; display:flex; flex-direction:column; }
.nav-sheet-card a{ color:var(--ink-soft); font-size:16px; font-weight:500; padding:13px 4px; border-bottom:1px solid var(--line-soft); }
.nav-sheet-card .btn{ margin-top:16px; justify-content:center; }

/* ---------- HERO ---------- */
.hist-hero{
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--warm-line2);
  background:var(--bone);
}
.hist-hero-bg{
  position:absolute; inset:0; z-index:0;
}
.hist-hero-bg img{
  width:100%; height:100%; object-fit:cover; object-position:center 40%;
  opacity:.42;
  filter:saturate(.75) contrast(.95);
}
.hist-hero-bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(244,239,230,.92) 0%, rgba(244,239,230,.78) 42%, rgba(244,239,230,.35) 100%),
    linear-gradient(180deg, rgba(244,239,230,.55) 0%, transparent 30%, rgba(244,239,230,.7) 100%);
}
.hist-hero-ink{
  position:absolute; right:6%; top:12%; z-index:1;
  width:min(420px,40vw); aspect-ratio:1; border-radius:50%;
  border:1px solid rgba(156,126,78,.16);
  box-shadow:
    0 0 0 36px rgba(156,126,78,.03),
    0 0 0 72px rgba(156,126,78,.02);
  pointer-events:none;
  animation:hist-breathe 11s ease-in-out infinite;
}
@keyframes hist-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.hist-hero-in{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.2fr .6fr; gap:40px;
  align-items:center;
  padding:clamp(48px,7vw,96px) 0 clamp(40px,5vw,72px);
}
.hist-hero h1{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(2.2rem, 4.6vw, 3.6rem);
  line-height:1.3; letter-spacing:-.03em;
  color:var(--espresso); max-width:18ch;
  text-wrap:balance; margin:14px 0 18px;
}
html[lang="zh"] .hist-hero h1{
  font-family:var(--serif-cn, var(--serif));
  font-size:clamp(1.7rem, 3.6vw, 2.55rem);
  letter-spacing:.04em; line-height:1.35; max-width:16em;
  font-weight:500;
}
.hist-hero .sub{
  margin:0 0 22px; max-width:48ch;
  font-size:1.05rem; line-height:1.75; color:var(--ash);
}
html[lang="zh"] .hist-hero .sub{ font-size:15px; line-height:1.9; max-width:36em; }
.hist-hero-meta{
  display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center;
  font:500 13px/1 var(--sans); letter-spacing:.08em; text-transform:uppercase;
  color:var(--gilt-deep);
}
.hist-hero-meta .dot{ color:var(--mist); }
.hist-hero-seal{
  justify-self:center; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.hhs-ring{
  width:160px; height:160px; border-radius:50%;
  border:1px solid rgba(156,126,78,.35);
  box-shadow:
    0 0 0 12px rgba(156,126,78,.04),
    0 0 0 28px rgba(156,126,78,.025);
  display:grid; place-items:center;
}
.hhs-core{
  width:96px; height:96px; border-radius:50%;
  display:grid; place-items:center;
  border:1.5px solid rgba(156,126,78,.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(232,217,184,.35), transparent 50%),
    linear-gradient(160deg, #243B30, #161F19);
  color:#EDE6D6;
  font-family:var(--serif-cn, var(--serif));
  font-size:42px; line-height:1;
  box-shadow:0 12px 36px rgba(26,24,20,.22);
  animation:seal-glow 5.5s ease-in-out infinite;
}
.hhs-cap{
  margin:0; font:500 11px/1 var(--sans);
  letter-spacing:.22em; text-transform:uppercase; color:var(--mist);
}

/* ---------- TOC ---------- */
.hist-toc{
  position:sticky; top:74px; z-index:40;
  background:rgba(237,231,218,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--warm-line2);
  padding:10px 0;
}
.hist-toc-row{
  display:flex; gap:8px; overflow-x:auto; padding:2px 0;
  scrollbar-width:none;
}
.hist-toc-row::-webkit-scrollbar{ display:none; }
.hist-toc-item{
  flex:none; border:1px solid var(--warm-line); background:var(--paper);
  border-radius:999px; padding:8px 14px;
  font:500 12px/1 var(--sans); color:var(--ash); cursor:pointer;
  white-space:nowrap; text-decoration:none;
  transition:all var(--t-fast,.18s ease);
}
.hist-toc-item:hover{ border-color:var(--gilt); color:var(--gilt-deep); }
.hist-toc-item.active{ background:var(--espresso); border-color:var(--espresso); color:#F2EFE2; }

/* ---------- CHAPTERS · 图文并排 ---------- */
.hist-main{ padding: clamp(36px,5vw,64px) 0 20px; }
.hist-chapter{
  position:relative;
  padding: clamp(28px,4vw,48px) 0;
  border-bottom:1px solid var(--warm-line2);
  scroll-margin-top:140px;
}
.hist-chapter:last-child{ border-bottom:none; }
.hc-split{
  display:grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: clamp(22px,3.2vw,40px);
  align-items:stretch;
}
.hc-split--flip .hc-visual{ order:2; }
.hc-split--flip .hc-copy{ order:1; }
.hc-visual{
  margin:0; position:relative;
  border-radius:var(--r-lg);
  overflow:hidden;
  border:1px solid var(--warm-line);
  box-shadow:0 12px 36px rgba(26,24,20,.08);
  background:var(--bone-2);
  min-height:280px;
  align-self:start;
  position:sticky; top:150px;
}
.hc-visual img{
  display:block; width:100%; height:100%;
  min-height:280px; max-height:min(72vh,560px);
  object-fit:cover;
  filter:saturate(.85);
}
.hc-visual::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, transparent 60%, rgba(26,24,20,.22) 100%);
}
.hc-visual-cap{
  position:absolute; left:14px; bottom:12px; z-index:1;
  font:600 11px/1 var(--sans); letter-spacing:.16em; text-transform:uppercase;
  color:rgba(251,250,245,.92);
  padding:6px 12px; border-radius:999px;
  background:rgba(26,24,20,.45);
  border:1px solid rgba(232,217,184,.25);
}
.hc-copy{ min-width:0; padding-top:2px; }
.hc-meta{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:10px 14px;
  margin-bottom:14px;
}
.hc-num{
  font-family:var(--serif); font-size:clamp(36px,4vw,48px); font-weight:500;
  letter-spacing:-.03em; line-height:1; color:var(--gilt-deep);
}
.hc-era{
  font:600 11px/1 var(--sans); letter-spacing:.18em; text-transform:uppercase;
  color:var(--sage);
  padding:5px 10px; border-radius:999px;
  border:1px solid rgba(92,107,90,.25);
  background:rgba(92,107,90,.06);
}
.hc-years{
  font:500 12px/1.3 var(--sans); letter-spacing:.06em; color:var(--mist);
}
.hc-title{
  font-family:var(--serif); font-weight:500;
  font-size:clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing:-.02em; line-height:1.22; color:var(--espresso);
  margin:0 0 12px; max-width:22ch; text-wrap:balance;
}
html[lang="zh"] .hc-title{
  font-family:var(--serif-cn, var(--serif));
  font-size:clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing:.03em; line-height:1.4; max-width:16em;
}
.hc-lede{
  margin:0 0 16px; max-width:48ch;
  font-size:1.02rem; line-height:1.65; color:var(--espresso-2);
  font-weight:500;
}
html[lang="zh"] .hc-lede{ font-size:15px; line-height:1.8; max-width:32em; }
.hc-body p{
  margin:0 0 0.95em; max-width:52ch;
  font-size:14.8px; line-height:1.75; color:var(--ash);
}
html[lang="zh"] .hc-body p{ font-size:14px; line-height:1.85; max-width:34em; }
.hc-figures{
  display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 0;
  list-style:none; padding:0;
}
.hc-figures li{
  font:500 12px/1 var(--sans);
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(156,126,78,.3);
  background:rgba(156,126,78,.06); color:var(--gilt-deep);
}
.hc-hook{
  margin:22px 0 0; padding:16px 18px;
  border-inline-start:3px solid var(--gilt);
  background:linear-gradient(90deg, rgba(156,126,78,.08), transparent);
  font-family:var(--serif); font-size:17px; font-style:italic; color:var(--sage);
  max-width:34ch;
}
html[lang="zh"] .hc-hook{
  font-family:var(--serif-cn, var(--serif)); font-style:normal;
  letter-spacing:.06em; font-size:15px;
}
@media(max-width:900px){
  .hc-split,
  .hc-split--flip{ grid-template-columns:1fr; }
  .hc-split--flip .hc-visual,
  .hc-split--flip .hc-copy{ order:initial; }
  .hc-visual{ position:static; min-height:0; }
  .hc-visual img{ min-height:0; max-height:none; aspect-ratio:3/2; height:auto; }
  .hc-meta{ margin-bottom:10px; }
}

/* ---------- VOICES ---------- */
.hist-voices{
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(156,126,78,.08), transparent 55%),
    var(--bone-2);
  border-top:1px solid var(--warm-line2);
  padding: clamp(56px,7vw,96px) 0;
}
.hist-voices .center .lead{ margin-inline-start:auto; margin-inline-end:auto; }
.voice-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
  margin-top: clamp(28px,3.5vw,40px);
}
.voice-card{
  display:flex; flex-direction:column;
  padding:26px 24px 22px;
  border-radius:var(--r);
  border:1px solid var(--warm-line2);
  background:var(--paper);
  position:relative; overflow:hidden;
}
.voice-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--gilt), transparent);
}
.voice-kind{
  font:600 11px/1 var(--sans); letter-spacing:.16em; text-transform:uppercase;
  color:var(--gilt-deep); margin-bottom:14px;
}
.voice-quote{
  margin:0 0 16px;
  font-family:var(--serif); font-size:20px; line-height:1.4; letter-spacing:-.015em;
  color:var(--espresso); text-wrap:balance;
}
html[lang="zh"] .voice-quote{
  font-family:var(--serif-cn, var(--serif));
  font-size:18px; letter-spacing:.03em; line-height:1.55;
}
.voice-who{
  margin:0 0 12px; font-size:13px; line-height:1.5; color:var(--sage); font-weight:500;
}
.voice-note{
  margin:0 0 16px; font-size:13px; line-height:1.55; color:var(--ash); flex:1;
}
.voice-src{
  font-size:12px; color:var(--mist); text-decoration:none;
  border-top:1px dashed var(--warm-line2); padding-top:12px;
  display:inline-block;
}
.voice-src:hover{ color:var(--gilt-deep); }
.hist-fine{
  margin:22px auto 0; max-width:70ch; text-align:center;
  font-size:12px; line-height:1.55; color:var(--mist);
}

/* ---------- CLOSE ---------- */
.hist-close{ background:var(--bone); padding: clamp(48px,6vw,80px) 0 clamp(56px,7vw,96px); }

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .hist-hero-in{ grid-template-columns:1fr; gap:28px; }
  .hist-hero-seal{ order:-1; }
  .hhs-ring{ width:120px; height:120px; }
  .hhs-core{ width:76px; height:76px; font-size:32px; }
  .voice-grid{ grid-template-columns:1fr; }
}
@media(max-width:860px){
  .nav-links{ display:none; }
  /* 语种下拉窄屏也要留着 —— 用户 2026-10-13 报「手机端切换语言有点问题」，原先这一行把它藏进
     汉堡抽屉只剩那一份，顶栏上没有入口。首页内联样式那份（子页由 shared-nav 复制页眉时带过来）
     已经负责只收登录按钮与账户区，这里不再重复藏语种。 */
  .nav-cta .nav-ask{ display:none; }
  .nav-burger{ display:inline-flex; }
  /* .hist-hero-in 的 padding 简写（上下 clamp、左右 0）把 .wrap 的左右 28px 顶掉了：
     桌面靠 max-width 居中看不出，手机上标题直接贴边裁字（2026-10-12 真机 390px 截图抓到）。
     只在窄屏补回左右内边距，桌面版式一字不动。 */
  .hist-hero-in{ padding-left:var(--s-7,28px); padding-right:var(--s-7,28px); }
}
@media(max-width:560px){
  .hist-hero h1{ font-size:clamp(1.7rem, 8vw, 2.2rem); }
  .voice-quote{ font-size:18px; }
}

/* ===== 可点击区域不小于 44px（UI 审计：移动端易点空） ===== */
.sc-chip{ min-height:44px; padding:10px 14px; }
.const-link{ display:inline-block; padding:9px 0 8px; }
.hist-toc-item{ padding:15px 18px; }
.voice-src{ display:inline-block; padding:12px 0; }
a.brand{ display:inline-flex; align-items:center; min-height:44px; }
.story-more,.story-more-link{ display:inline-block; padding:10px 0; }
