/* ==========================================================================
   新疆脉德堂中医诊所 · 站点样式表
   域名：xinjiangmaidetang.cn
   视觉基调：暖米底 · 赭橙主色 · 金褐点缀
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink:          #241B14;
  --ink-2:        #56483A;
  --ink-3:        #8A7A69;
  --paper:        #FDFAF5;
  --paper-2:      #F9F1E6;
  --paper-3:      #F2E5D3;
  --white:        #FFFFFF;

  --line:         #EADFD0;
  --line-2:       #DCCDB6;

  --brand:        #C2571A;
  --brand-2:      #E07B2E;
  --brand-3:      #7A3610;
  --brand-4:      #5A2A10;
  --brand-soft:   #FBEFE3;

  --gold:         #A8842F;
  --gold-soft:    #F8F2E2;

  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    20px;

  --shadow-1: 0 1px 2px rgba(70,40,20,.04), 0 8px 24px rgba(70,40,20,.06);
  --shadow-2: 0 2px 6px rgba(70,40,20,.07), 0 20px 48px rgba(70,40,20,.10);

  --wrap: 1120px;
  --wrap-narrow: 820px;

  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", SimSun, "Times New Roman", serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-kai: "Kaiti SC", "STKaiti", KaiTi, "Songti SC", serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-3);
  margin: 0 0 .6em;
  letter-spacing: .02em;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.32rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .42em; }

strong { font-weight: 600; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }

::selection { background: var(--brand-soft); color: var(--brand-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-3); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section--tint { background: var(--paper-2); }
.section--paper { background: var(--white); }
.section--brand { background: var(--brand-3); color: #F6E6D8; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--tight { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .85rem;
}
.section--brand .eyebrow { color: #F0B584; }

.section-lead { font-size: 1.03rem; color: var(--ink-2); margin-top: .35rem; }
.section--brand .section-lead { color: #EBD3BE; }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 245, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(70,40,20,.06); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .72rem; color: var(--brand-3); flex-shrink: 0; }
.brand:hover { color: var(--brand-3); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text strong {
  font-family: var(--font-serif); font-size: 1.06rem; font-weight: 600;
  color: var(--brand-3); letter-spacing: .04em; white-space: nowrap;
}
.brand-text small {
  font-size: .64rem; letter-spacing: .07em; color: var(--ink-3);
  text-transform: uppercase; white-space: nowrap;
}

.site-nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .42rem .66rem; border-radius: 999px;
  font-size: .88rem; color: var(--ink-2); white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-3); }
.site-nav a[aria-current="page"] { color: var(--brand-3); font-weight: 600; background: var(--brand-soft); }
.site-nav a.nav-hl { color: var(--brand); font-weight: 600; }
.site-nav a.nav-hl[aria-current="page"] { color: var(--brand-3); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 999px; padding: .42rem .9rem;
  font-family: var(--font-sans); font-size: .88rem; color: var(--ink-2); cursor: pointer;
}

.header-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand); color: #fff;
  padding: .5rem 1.1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.header-cta:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.6rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: .97rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-2); color: #fff; box-shadow: var(--shadow-2); }

.btn--ghost { background: transparent; color: var(--brand-3); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn--onbrand { background: #fff; color: var(--brand-3); }
.btn--onbrand:hover { background: var(--paper-2); color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 460px at 84% -10%, #FBE7D4 0%, rgba(251,231,212,0) 62%),
    radial-gradient(700px 420px at 2% 110%, #F7EEDF 0%, rgba(247,238,223,0) 60%),
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(194,87,26,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,87,26,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 420px at 50% 32%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 32%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: .75rem; }
.hero .hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--brand); margin-bottom: 1.1rem;
}
.hero .lead { font-size: 1.05rem; color: var(--ink-2); max-width: 34em; margin-bottom: .4rem; }

.hero-note {
  margin-top: 1.4rem; padding-left: .95rem;
  border-left: 3px solid var(--line-2);
  font-size: .9rem; color: var(--ink-3);
}

.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: 1.7rem 1.6rem;
}
.info-card h2 { font-size: 1.06rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem;
  padding: .62rem 0; border-bottom: 1px dashed var(--line);
  font-size: .92rem; margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--ink-3); font-size: .86rem; }
.info-list .v { color: var(--ink); }

/* ---------- 7. 卡片网格 ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.55rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-meta { font-size: .88rem; color: var(--ink-3); }
.card--plain:hover { transform: none; box-shadow: none; }

.card--num { position: relative; padding-top: 1.9rem; }
.card--num::before {
  content: attr(data-num);
  position: absolute; top: 1.1rem; left: 1.5rem;
  font-family: var(--font-serif); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; color: var(--brand);
}

/* ---------- 8. 医师卡片 ---------- */
.doctor-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.doctor-top {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.35rem 1.5rem 1.1rem;
  background: linear-gradient(180deg, var(--brand-soft) 0%, rgba(251,239,227,0) 100%);
  border-bottom: 1px solid var(--line);
}
.doctor-avatar {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: .04em;
}
.doctor-name { font-family: var(--font-serif); font-size: 1.16rem; color: var(--brand-3); margin: 0; }
.doctor-title { font-size: .85rem; color: var(--brand); margin: .1rem 0 0; }

.doctor-body { padding: 1.2rem 1.5rem 1.5rem; flex: 1; }
.doctor-body dl { margin: 0; }
.doctor-body dt {
  font-size: .78rem; letter-spacing: .1em; color: var(--ink-3);
  text-transform: uppercase; margin-top: .95rem;
}
.doctor-body dt:first-child { margin-top: 0; }
.doctor-body dd { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-2); }

.doctor-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: 10px; display: block; margin-bottom: 1.1rem; border: 1px solid var(--line);
}

.tag { display: inline-block; font-size: .8rem; padding: .22rem .68rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-3); margin: .18rem .28rem .18rem 0; }
.tag--gold { background: var(--gold-soft); color: #7E6020; }

/* ---------- 9. 提示框 ---------- */
.notice {
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  border: 1px solid var(--line); background: var(--white); font-size: .94rem;
}
.notice h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--warn { background: var(--brand-soft); border-color: #EED4BC; }
.notice--warn h3 { color: var(--brand); }
.notice--info { background: var(--gold-soft); border-color: #E8DCBE; }
.notice--info h3 { color: #7E6020; }
.notice--muted { background: var(--paper-2); }

.compliance {
  border-left: 3px solid var(--gold); background: var(--paper-2);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .89rem; color: var(--ink-2);
}
.compliance p:last-child { margin-bottom: 0; }

/* ---------- 10. 内页头 ---------- */
.page-hero {
  padding: clamp(2.6rem, 5.5vw, 4rem) 0 clamp(1.8rem, 3.5vw, 2.6rem);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero .lead { font-size: 1.03rem; color: var(--ink-2); max-width: 46em; margin-bottom: 0; }

.breadcrumb { font-size: .84rem; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: var(--line-2); }

/* ---------- 11. 正文排版 ---------- */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { color: var(--ink-2); }
.prose > p:first-of-type { font-size: 1.04rem; }

.lead-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--brand-3);
  line-height: 1.75;
  border-left: 3px solid var(--brand);
  padding: .2rem 0 .2rem 1.2rem;
  margin: 0 0 1.6rem;
}

/* ---------- 12. 步骤 / 流程 ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative; counter-increment: step;
  padding: 0 0 1.6rem 3.1rem; margin: 0 0 0 1.05rem;
  border-left: 1px solid var(--line);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -1.05rem; top: -0.15rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-serif); font-size: .98rem;
  display: grid; place-items: center;
}
.steps li strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: var(--brand-3); margin-bottom: .25rem; }
.steps li p { margin-bottom: 0; font-size: .93rem; color: var(--ink-2); }

/* 技法流程（横排） */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: flow; }
.flow-step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.3rem 1.35rem;
}
.flow-step::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  font-family: var(--font-serif); font-size: .78rem; letter-spacing: .14em;
  color: var(--brand); display: block; margin-bottom: .5rem;
}
.flow-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.flow-step p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -.85rem; top: 50%; transform: translateY(-50%);
  color: var(--line-2); font-size: 1.1rem; z-index: 1;
}

/* ---------- 13. 项目档案表 ---------- */
.fact-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fact-table caption {
  text-align: left; font-family: var(--font-serif); font-size: 1.02rem;
  color: var(--brand-3); padding-bottom: .7rem;
}
.fact-table th, .fact-table td { text-align: left; padding: .72rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 8.4rem; font-weight: 500; color: var(--ink-3); font-size: .88rem; white-space: nowrap; }
.fact-table td { color: var(--ink); }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }

/* ---------- 14. 传承谱系时间轴 ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 1.9rem; }
.timeline::before {
  content: ""; position: absolute; left: .48rem; top: .55rem; bottom: .55rem;
  width: 2px; background: linear-gradient(180deg, var(--brand-2), var(--line-2));
  border-radius: 2px;
}
.timeline li { position: relative; margin: 0 0 1.75rem; padding: 0; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.62rem; top: .55rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand);
}
.timeline .yr {
  display: block; font-family: var(--font-serif); font-size: .86rem;
  letter-spacing: .1em; color: var(--brand); margin-bottom: .15rem;
}
.timeline h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.timeline p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---------- 15. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: .15rem 0; }
.faq summary {
  cursor: pointer; padding: 1.05rem .2rem;
  font-family: var(--font-serif); font-size: 1.03rem; color: var(--brand-3);
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--ink-3); font-size: 1.05rem; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { content: "－"; }
.faq .faq-body { padding: 0 .2rem 1.2rem; color: var(--ink-2); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

.faq-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.faq-head .eyebrow { margin-bottom: .6rem; }
.faq-head h2 { margin-bottom: .7rem; }
.faq-head .section-lead { margin-bottom: 0; }
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: .75rem; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: var(--brand-2); box-shadow: 0 6px 22px rgba(194, 87, 26, .09); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; color: var(--brand-3);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--gold); font-size: 1.15rem; font-weight: 400; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "－"; }
.faq-item .faq-body { padding: 0 1.3rem 1.15rem; color: var(--ink-2); font-size: .95rem; line-height: 1.85; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 16. 联系 / 预约 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.contact-block {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.55rem;
}
.contact-block h3 { display: flex; align-items: center; gap: .55rem; }
.contact-block h3 .ico {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: .95rem; flex-shrink: 0;
}
.contact-phone {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--brand-3); letter-spacing: .04em;
  display: block; margin: .3rem 0 .2rem;
}
a.contact-phone:hover { color: var(--brand); }

.qr-slot {
  width: 148px; height: 148px; border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm); background: var(--paper-2);
  display: grid; place-items: center; text-align: center;
  font-size: .8rem; color: var(--ink-3); padding: .8rem; line-height: 1.5; margin-top: .8rem;
}
.qr-slot img { width: 100%; height: 100%; object-fit: contain; }

/* 待补占位标记 */
.ph { color: var(--brand); font-weight: 600; border-bottom: 1px dashed var(--brand); cursor: help; }

/* ---------- 17. 页脚 ---------- */
.site-footer {
  background: var(--brand-4); color: #DCC3B0;
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 1.6rem; font-size: .92rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; letter-spacing: .05em; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer a { color: #E3CDBB; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.footer-brand .brand-text strong { color: #fff; font-size: 1.02rem; }
.footer-brand .brand-text small { color: #B08A6E; }
.footer-note { font-size: .85rem; line-height: 1.75; color: #C0A18B; }

.footer-legal {
  padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: #B08A6E;
}
.footer-legal p { margin: 0; }
.footer-disclaimer {
  margin-top: 1rem; padding: .9rem 1.1rem;
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm);
  font-size: .82rem; color: #C0A18B; line-height: 1.75;
}
.footer-disclaimer p { margin: 0; }

/* ---------- 18. 移动端悬浮预约条 ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem;
}
.mobile-cta .btn { flex: 1; padding: .7rem 1rem; font-size: .92rem; }

/* ---------- 19. 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-code {
  font-family: var(--font-serif); font-size: clamp(3.4rem, 11vw, 6rem);
  color: var(--line-2); line-height: 1; margin-bottom: .5rem;
}

/* ---------- 20. 非遗专题组件 ---------- */
.ich-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand-3); color: #FBE9D7;
  border-radius: 999px; padding: .34rem 1rem .34rem .8rem;
  font-size: .82rem; letter-spacing: .04em;
  margin-bottom: 1rem;
}
.ich-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2); flex-shrink: 0;
}

.heritage-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.4rem) 0 clamp(2.6rem, 5vw, 4rem);
  background:
    radial-gradient(760px 420px at 88% 0%, #FAE3CB 0%, rgba(250,227,203,0) 66%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.heritage-hero .hero-grid { align-items: center; }

.heritage-figure { margin: 0; }
.heritage-figure img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.heritage-figure figcaption { font-size: .84rem; color: var(--ink-3); margin-top: .7rem; text-align: center; }

.quote-classic {
  font-family: var(--font-serif);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.7rem;
  color: var(--brand-3); font-size: 1.02rem; line-height: 1.9;
}
.quote-classic cite { display: block; margin-top: .7rem; font-style: normal; font-size: .84rem; color: var(--ink-3); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.stat b { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--brand); line-height: 1.2; }
.stat span { font-size: .86rem; color: var(--ink-3); }

.section--brand .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.section--brand .card h3 { color: #fff; }
.section--brand .card p { color: #EBD3BE; }

/* 相关内容推荐条 */
.related {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
}
.related a {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.3rem; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.related a:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: var(--shadow-1); color: var(--ink); }
.related strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; color: var(--brand-3); margin-bottom: .25rem; }
.related span { font-size: .88rem; color: var(--ink-3); }

/* 馆内环境图集 */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: .7rem 1rem .85rem; font-size: .9rem; color: var(--ink-2); }
.env-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.env-strip figure { margin: 0; }
.env-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line); }
.env-strip figcaption { padding-top: .6rem; font-size: .88rem; color: var(--ink-2); text-align: center; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .brand-text small { display: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
  .related { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); display: none; padding: .6rem 0 .9rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { border-radius: 0; padding: .8rem 22px; font-size: .97rem; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none !important; }
  .gallery, .env-strip { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 4.6rem 1fr; }
  .fact-table th { width: 6.6rem; white-space: normal; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }

  .faq-item summary { font-size: .96rem; padding: .95rem 1rem; }
  .faq-item .faq-body { padding: 0 1rem 1rem; }
}

@media (max-width: 420px) {
  .doctor-top { padding: 1.15rem 1.2rem 1rem; }
  .doctor-body { padding: 1.1rem 1.2rem 1.3rem; }
  .timeline { padding-left: 1.6rem; }
}

/* ---------- 22. 打印 ---------- */
@media print {
  .site-header, .mobile-cta, .nav-toggle, .header-cta { display: none !important; }
  body { background: #fff; }
}

/* ---------- 23. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
