/* =========================================================
   黎氏中医官网 - 品牌样式
   视觉语言：深红底 + 金线 + 米白宣纸（源自品牌海报体系）
   ========================================================= */

:root {
  /* 品牌色 */
  --red:        #7A1E1A;   /* 深酒红 - 主色 */
  --red-deep:   #5E1513;   /* 更深的红 */
  --red-bright: #A3261F;   /* 印章红 - 点缀 */
  --gold:       #B89207;   /* 暗金 - 边框/标签 */
  --gold-bright:#E8CD6A;   /* 亮金 - 红底上的字 */
  --paper:      #FBF6EA;   /* 米白宣纸 */
  --paper-2:    #F3EAD6;   /* 深一档纸色 */
  --ink:        #33281C;   /* 正文墨色 */
  --brown:      #7A6449;   /* 次级文字 */
  --line:       #E4D6B8;   /* 纸上细线 */

  /* 字体 */
  --font-serif: "Noto Serif SC", "STKaiti", "KaiTi", "Songti SC", "SimSun", serif;
  --font-sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --container: 1120px;
  --header-h: 72px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  border-bottom: 1px solid rgba(232, 205, 106, 0.35);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(60, 15, 12, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #FFF9E8;
  border: 1px solid rgba(232, 205, 106, 0.65);
  border-radius: 6px;
  padding: 5px 12px;
  box-shadow: 0 2px 10px rgba(60, 15, 12, 0.28);
  transition: box-shadow 0.2s ease;
}
.brand:hover { box-shadow: 0 4px 16px rgba(60, 15, 12, 0.4); }
.brand img { width: 168px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 14px;
  font-size: 15px;
  color: rgba(255, 250, 235, 0.92);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.06);
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--red);
  background: var(--gold-bright);
  border-radius: 4px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.header-tel:hover { background: #F2D97F; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 205, 106, 0.5);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-bright);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 章节通用 ---------- */
.section { padding: 88px 0; }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--red-deep); }

.section-dark h2, .section-dark .section-sub, .section-dark .kicker { color: var(--gold-bright); }

.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--red);
  position: relative;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub { margin-top: 16px; color: var(--brown); font-size: 15px; letter-spacing: 0.08em; }
.section-dark .section-sub { color: rgba(232, 205, 106, 0.75); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(232, 205, 106, 0.16), transparent 55%),
    var(--red);
  color: #FFF9E8;
  padding: 72px 0 88px;
}
.hero::after {
  content: "醫";
  position: absolute;
  right: 18px;
  bottom: -46px;
  font-family: var(--font-serif);
  font-size: 240px;
  font-weight: 900;
  line-height: 1;
  color: rgba(232, 205, 106, 0.07);
  pointer-events: none;
  user-select: none;
}
.hero-frame {
  border: 1px solid rgba(232, 205, 106, 0.45);
  outline: 1px solid rgba(232, 205, 106, 0.18);
  outline-offset: 8px;
  margin: 0 14px;
}
.hero-inner {
  text-align: center;
  padding: 64px 24px 56px;
}
.hero-logo {
  width: 280px;
  height: auto;
  margin: 0 auto 26px;
  background: #FFF9E8;
  border: 1px solid rgba(232, 205, 106, 0.6);
  border-radius: 10px;
  padding: 14px 28px;
  box-shadow: 0 14px 36px rgba(60, 15, 12, 0.42);
}
.hero-sub {
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.08em;
}
.hero-title .sep { color: var(--gold-bright); margin: 0 0.12em; }
.hero-desc {
  margin: 26px auto 0;
  max-width: 640px;
  font-size: 16px;
  color: rgba(255, 249, 232, 0.86);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 34px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-bright);
  color: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn-gold:hover { background: #F2D97F; }
.btn-ghost {
  border: 1px solid rgba(232, 205, 106, 0.7);
  color: var(--gold-bright);
  background: transparent;
}
.btn-ghost:hover { background: rgba(232, 205, 106, 0.1); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.hero-tags li {
  padding: 6px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 249, 232, 0.85);
  border: 1px solid rgba(232, 205, 106, 0.35);
  border-radius: 2px;
}

/* ---------- 三大服务 ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 40px 30px 34px;
  text-align: center;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(90, 60, 20, 0.12); }
.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--red);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.svc-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.svc-slogan {
  font-size: 15px;
  color: var(--red-bright);
  font-weight: 500;
  margin-bottom: 20px;
}
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  text-align: center;
  margin-bottom: 22px;
}
.svc-list li {
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  padding: 7px 6px;
  border-radius: 3px;
}
.svc-tag {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* ---------- 医师团队 ---------- */
.doctors-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.doctor-card {
  background: rgba(255, 249, 232, 0.05);
  border: 1px solid rgba(232, 205, 106, 0.25);
  border-radius: 6px;
  padding: 36px 28px 32px;
  text-align: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.doctor-card:hover { background: rgba(255, 249, 232, 0.09); transform: translateY(-4px); }
.doctor-photo {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 205, 106, 0.15);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.doctor-title { font-size: 13px; color: var(--gold-bright); letter-spacing: 0.1em; margin-bottom: 4px; }
.doctor-post { font-size: 13px; color: rgba(255, 249, 232, 0.75); margin-bottom: 18px; }
.doctor-bio {
  font-size: 14px;
  color: rgba(255, 249, 232, 0.85);
  line-height: 1.9;
  text-align: left;
}

.doctors-junior {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.doctor-sm {
  background: rgba(255, 249, 232, 0.04);
  border: 1px solid rgba(232, 205, 106, 0.18);
  border-radius: 6px;
  padding: 30px 16px 24px;
  text-align: center;
}
.doctor-sm .doctor-photo { width: 104px; height: 104px; margin-bottom: 16px; }
.doctor-sm h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.doctor-sm p { font-size: 13px; color: rgba(255, 249, 232, 0.72); }

/* ---------- 资质荣誉 ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.honor-grid li {
  position: relative;
  padding: 34px 20px 34px 68px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(90, 60, 20, 0.06);
}
.honor-grid li::before {
  content: "印";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 700;
  color: #FFF9E8;
  background: var(--red-bright);
  border-radius: 3px;
  letter-spacing: 0;
}

/* ---------- 收费标准 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.price-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.price-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}
.price-num { margin-bottom: 18px; }
.price-num strong {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.price-num span { font-size: 16px; color: var(--brown); margin-left: 4px; }
.price-note {
  font-size: 13px;
  color: var(--brown);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.notice-box {
  margin-top: 44px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  padding: 30px 34px;
}
.notice-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.notice-box ul { margin-bottom: 16px; }
.notice-box li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.notice-box li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.notice-foot {
  font-size: 13px;
  color: var(--brown);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ---------- 品牌视觉 ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.poster-grid figure {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.poster-grid figure:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(90, 60, 20, 0.12); }
.poster-grid img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.poster-grid figcaption {
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-align: center;
}

/* ---------- 就诊指南 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: rgba(255, 249, 232, 0.05);
  border: 1px solid rgba(232, 205, 106, 0.22);
  border-radius: 6px;
  padding: 34px 18px 26px;
  text-align: center;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  background: var(--gold-bright);
  border-radius: 50%;
}
.steps h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.steps p { font-size: 13px; color: rgba(255, 249, 232, 0.72); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 22px;
  height: 1px;
  background: rgba(232, 205, 106, 0.4);
}

/* ---------- 行医理念 ---------- */
.motto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.motto-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 38px 30px;
  text-align: center;
}
.motto-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.motto-card li {
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.motto-card li::before {
  content: "·";
  color: var(--gold);
  margin-right: 6px;
  font-weight: 700;
}

.brand-story {
  margin-top: 52px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.brand-story h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.brand-story p {
  font-size: 15px;
  color: var(--brown);
  line-height: 2.1;
}

/* ---------- 门店信息 ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.store-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
}
.store-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.store-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.8;
}
.store-list svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 3px;
}
.store-list a { color: var(--red-bright); font-weight: 500; }
.store-list a:hover { text-decoration: underline; }
.store-nav { margin-top: 22px; }
.store-nav .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #FFF9E8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.store-nav .btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(122, 30, 26, 0.28); background: #8A2620; }
.store-nav small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--brown);
}

.contact-panel {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--red);
  border: 1px solid rgba(232, 205, 106, 0.35);
  border-radius: 6px;
  padding: 36px 44px;
}
.contact-panel-text h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.contact-panel-text p {
  color: rgba(255, 249, 232, 0.9);
  font-size: 15px;
  margin-bottom: 22px;
}
.wechat-qr {
  flex-shrink: 0;
  text-align: center;
}
.wechat-qr img {
  width: 138px;
  height: 143px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  margin: 0 auto 10px;
}
.wechat-qr p {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 249, 232, 0.75);
}
.wechat-qr p + p {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--red-deep);
  color: rgba(255, 249, 232, 0.8);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand img {
  width: 172px;
  height: auto;
  background: #FFF9E8;
  border: 1px solid rgba(232, 205, 106, 0.5);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; letter-spacing: 0.2em; color: var(--gold-bright); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.footer-nav a {
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255, 249, 232, 0.82);
}
.footer-nav a:hover { color: var(--gold-bright); }

.footer-contact { text-align: right; font-size: 14px; }
.footer-contact p { color: rgba(255, 249, 232, 0.8); margin-bottom: 4px; }
.footer-contact a { color: var(--gold-bright); font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(232, 205, 106, 0.2);
  padding: 22px 0 26px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255, 249, 232, 0.55); line-height: 1.9; }
.footer-bottom .copyright { margin-top: 6px; }
.footer-bottom .copyright a { color: rgba(232, 205, 106, 0.85); text-decoration: none; border-bottom: 1px solid rgba(232, 205, 106, 0.35); padding-bottom: 1px; }
.footer-bottom .copyright a:hover { color: #E8CD6A; border-bottom-color: rgba(232, 205, 106, 0.8); }

/* ---------- 移动端快捷栏 / 返回顶部 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--red);
  border-top: 1px solid rgba(232, 205, 106, 0.4);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
}
.mobile-bar a:first-child {
  background: var(--gold-bright);
  color: var(--red);
  flex: 1.4;
}
.mobile-bar a:last-child {
  border: 1px solid rgba(232, 205, 106, 0.5);
  color: var(--gold-bright);
  flex: 1;
  margin-left: 10px;
}

.back-top {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 98;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: var(--gold-bright);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(60, 15, 12, 0.3);
  transition: transform 0.2s ease;
}
.back-top:hover { transform: translateY(-3px); }
.back-top.show { display: flex; }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cards-3, .doctors-main, .price-grid, .motto-grid { grid-template-columns: 1fr; }
  .svc-card, .price-card, .motto-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .doctor-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li:not(:last-child)::after { display: none; }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-junior { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }

  .nav-toggle { display: flex; }
  .header-tel { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--red);
    border-bottom: 1px solid rgba(232, 205, 106, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a {
    padding: 15px 22px;
    font-size: 16px;
    border-top: 1px solid rgba(232, 205, 106, 0.14);
    border-radius: 0;
  }

  .hero { padding: 40px 0 56px; }
  .hero-inner { padding: 48px 16px 44px; }
  .hero-logo { width: 210px; padding: 10px 18px; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.3rem); }

  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .back-top { bottom: 84px; }

  .store-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .contact-panel { flex-direction: column; text-align: center; padding: 32px 20px; gap: 24px; }
  .contact-panel-text .btn { width: 100%; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc-card:hover, .doctor-card:hover, .btn:hover, .back-top:hover { transform: none; }
}
