/* ============================================================
   安渡丹 · 官方品牌站 · 第四版
   风格：写意水墨 × 编辑排版（impeccable 重设计 + 亮哥反馈整改）
   配色：墨绿 / 米黄 / 暗金（拍板色）
   字体：全站统一 楷体链（标题）+ 宋体链（正文），杜绝混排大小不一
   ============================================================ */

:root {
  /* 墨绿系 */
  --teal-50:  #E7F3EE;
  --teal-100: #BFDDD0;
  --teal-600: #0F6E56;
  --teal-800: #085041;
  --teal-900: #04342C;

  /* 纸与墨 */
  --paper:   #F0EDE5;
  --cream:   #FAF7F0;
  --mist:    #E8E3D6;
  --ink:     #2C2C2A;
  --ink-2:   #5F5E5A;
  --ink-3:   #8A887F;

  /* 金 */
  --gold:      #BA7517;
  --gold-deep: #854F0B;
  --gold-line: rgba(186, 117, 23, 0.45);

  /* 字体：楷体链展示 + 宋体链正文（AnduXingKai 仅31字，混排大小不一，弃用） */
  --font-display: 'STKaiti', 'KaiTi', '楷体', 'Noto Serif SC', serif;
  --font-body:    'Noto Serif SC', 'Songti SC', 'SimSun', '宋体', 'PingFang SC', serif;

  /* 间距（4pt 体系） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  /* 内容列宽 */
  --col: 640px;
  --col-wide: 1100px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.02em;
  position: relative;
  overflow-x: hidden;
  padding-top: 68px;
  font-kerning: normal;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ============================================================
   全局淡淡山水背景（固定底层，意境渗透全页）
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/img/bg-mountain.webp') center bottom / cover no-repeat;
  opacity: 0.24;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   顶部导航
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(240, 237, 229, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 110, 86, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}

@media (min-width: 1180px) {
  .topbar { padding: 0 calc((100% - var(--col-wide)) / 2); }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.topbar-logo {
  height: 42px;
  width: auto;
  display: block;
}

.topbar-logo-round { display: none; width: 36px; height: 36px; }

.topbar-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--teal-900);
  letter-spacing: 0.12em;
  font-weight: 500;
  display: none; /* 桌面端用横版LOGO图带字，移动端才显示文字 */
}

.topbar-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

.nav-link:active,
.nav-link.active { color: var(--teal-600); }
.nav-link.active::after { width: 18px; }

.nav-link-ext { color: var(--gold-deep); }

/* ============================================================
   Hero 首屏 · 手提袋贴纸海报（1080x1920 竖版，亮哥抠图成品）
   移动 cover 满屏 / 桌面 contain 立轴；仅底部叠加 tag 一行
   视差+浮动由 script.js 驱动（transform 统一归 JS，避免冲突）
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - 68px);
  height: calc(100svh - 68px);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
  animation: hero-in 1.4s var(--ease-out) backwards;
}

/* 桌面宽屏：竖版贴纸完整呈现如立轴，两侧露品牌纸色 */
@media (min-width: 768px) {
  .hero-bg { object-fit: contain; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px) scale(1.02); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 贴纸自带排版，仅底部轻压以托住 tag */
  background: linear-gradient(180deg,
    rgba(240, 237, 229, 0) 52%,
    rgba(240, 237, 229, 0.10) 76%,
    rgba(240, 237, 229, 0.34) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--col);
  padding: 0 24px 12vh;
  text-align: center;
  animation: hero-in 1.6s var(--ease-out) 0.55s backwards;
}

/* 视觉隐藏但保留语义（SEO / 读屏）；left:-10000px 屏幕外，兼容微信X5 */
.sr-only {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(16px, 4.4vw, 21px);
  color: var(--teal-900);
  margin: 0;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(250, 247, 240, 0.95),
    0 0 16px rgba(250, 247, 240, 0.85),
    0 1px 2px rgba(250, 247, 240, 0.9);
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 22px;
  height: 38px;
  border: 1px solid var(--teal-600);
  border-radius: 12px;
  position: relative;
  background: rgba(250, 247, 240, 0.35);
}

.hero-scroll span::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 7px;
  background: var(--teal-600);
  border-radius: 2px;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 13px); opacity: 0.3; }
}

/* ============================================================
   章节头 · 超大底字 + 金色眉标
   ============================================================ */
.section {
  position: relative;
  padding: var(--s10) 24px var(--s8);
  max-width: var(--col);
  margin: 0 auto;
}

.section-tight { padding-top: var(--s8); }

.section-head {
  position: relative;
  text-align: center;
  margin-bottom: var(--s7);
  padding: var(--s9) 0 var(--s5);
}

.section-head::before {
  content: attr(data-num);
  font-family: var(--font-display);
  font-size: clamp(120px, 30vw, 170px);
  line-height: 1;
  color: rgba(15, 110, 86, 0.065);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.section-kicker::before,
.section-kicker::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 1px;
  background: var(--gold-line);
  margin: 0 10px;
}

.section-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(27px, 7vw, 34px);
  color: var(--teal-900);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.10em;
}

.section-lead {
  text-align: center;
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 var(--s6);
  line-height: 1.9;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   正文排版（行文段落首行缩进两字符）
   ============================================================ */
.prose p {
  margin: 0 0 var(--s4);
  text-align: justify;
  font-size: 15px;
  line-height: 1.95;
  text-indent: 2em;
}

.prose p:last-child { margin-bottom: 0; }

.sub-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--teal-800);
  text-align: center;
  margin: var(--s7) 0 var(--s4);
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 14px;
}

.sub-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--gold-line);
}

.prose .sub-title:first-child { margin-top: 0; }

.resolve {
  text-align: center;
  font-size: 16.5px;
  color: var(--teal-800);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(15, 110, 86, 0.10);
}

.note {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  margin: var(--s5) 0 0;
  letter-spacing: 0.05em;
}

/* 颂句块：题跋式居中 */
.verse-block {
  text-align: center;
  font-family: var(--font-display);
  color: var(--teal-800);
  margin: var(--s7) 0;
  line-height: 2.15;
  letter-spacing: 0.10em;
  font-size: 15.5px;
}

.verse-block p { margin: 6px 0; text-align: center; }

/* ============================================================
   水墨过渡带
   ============================================================ */
.ink-band {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin: var(--s6) 0 0;
}

.ink-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.75;
  transform: scale(1.04);
}

.ink-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    rgba(240, 237, 229, 0) 30%,
    rgba(240, 237, 229, 0) 70%,
    var(--paper) 100%);
}

/* ============================================================
   火葬 / 土葬 · 对仗大字
   ============================================================ */
.scene-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: var(--s5);
}

.scene {
  text-align: center;
  padding: var(--s5) var(--s3) var(--s6);
  position: relative;
}

.scene + .scene::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(186, 117, 23, 0) 0%,
    var(--gold-line) 50%,
    rgba(186, 117, 23, 0) 100%);
}

.scene-char {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 44px);
  color: var(--teal-800);
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.scene-motto {
  font-size: 12.5px;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  margin: 12px 0 16px;
}

.scene-text {
  margin: 0;
  text-align: justify;
  text-indent: 2em;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

/* ============================================================
   五丹 · 编辑式排版（去卡片）
   ============================================================ */
.section-pills {
  background: rgba(250, 247, 240, 0.20);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-pills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/bg-shan-4.webp') center top / cover no-repeat;
  opacity: 0;
  pointer-events: none;
}

.section-pills > * {
  max-width: var(--col);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.section-pills > .section-head,
.section-pills > .section-lead {
  padding-left: 24px;
  padding-right: 24px;
}

/* 五丹导览圆点 */
.pill-rail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 auto var(--s8);
  padding: var(--s4) 24px;
}

.pill-dot {
  display: block;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.35s var(--ease-out);
}

.pill-dot img {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(4, 52, 44, 0.18));
}

.pill-dot:active { transform: scale(0.92); }

/* 单丹 · 折页横幅样式 */
.pill {
  padding: var(--s7) 24px var(--s8);
  position: relative;
}

.pill + .pill { border-top: 1px solid rgba(15, 110, 86, 0.10); }

/* 墨绿横幅：丹名 + 铭文（参照折页） */
.pill-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--teal-600);
  background: linear-gradient(180deg, #12755C 0%, var(--teal-600) 100%);
  border-radius: 6px;
  padding: 13px 18px;
  margin-bottom: var(--s6);
  position: relative;
  box-shadow: 0 2px 10px rgba(4, 52, 44, 0.16);
}

.pill-banner::before,
.pill-banner::after {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(240, 237, 229, 0.35);
}

.pill-banner::before { left: 7px; }
.pill-banner::after  { right: 7px; }

.pill-banner-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: #FDFBF5;
  letter-spacing: 0.10em;
  font-weight: 500;
  flex: none;
  text-shadow: 0 1px 2px rgba(4, 52, 44, 0.25);
}

.pill-banner-motto {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: rgba(253, 251, 245, 0.88);
  letter-spacing: 0.10em;
  margin-left: auto;
  text-align: right;
}

/* 丹图 + 丹诀：左图右诗 */
.pill-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(18px, 5vw, 32px);
  margin-bottom: var(--s6);
}

.pill-img {
  width: clamp(128px, 34vw, 168px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(4, 52, 44, 0.20));
}

/* 丹诀：题跋横排 */
.pill-poem-h {
  text-align: center;
  font-family: var(--font-display);
  margin: 0;
  padding: var(--s4) var(--s2);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}

.pill-poem-h::before,
.pill-poem-h::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--cream);
}

.pill-poem-h::before { top: -3.5px; }
.pill-poem-h::after  { bottom: -3.5px; }

.pill-poem-h p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--teal-800);
  line-height: 2.0;
  text-align: center;
}

.pill-poem-h p + p { margin-top: 2px; }

.pill .prose {
  max-width: 36em;
  margin: 0 auto;
}

.pill .prose p {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ============================================================
   五行速查 · 大字行
   ============================================================ */
.wuxing-list {
  margin: 0 0 var(--s4);
}

.wuxing-row {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s4) 0;
}

.wuxing-row + .wuxing-row {
  border-top: 1px solid rgba(15, 110, 86, 0.10);
}

.wuxing-char {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 27px;
  color: #fff;
  line-height: 1;
  padding-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(4, 52, 44, 0.16);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.wuxing-info { display: flex; flex-direction: column; gap: 2px; }

.wuxing-info strong {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: 0.08em;
}

.wuxing-info span {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* 九转工序：流式排布 */
.nine-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 2px;
  margin: var(--s4) 0 var(--s5);
  padding: var(--s5) var(--s3);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.nine-steps span {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--teal-800);
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.nine-steps i {
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
  margin: 0 7px;
}

.concept-block { max-width: 36em; margin: 0 auto; }
.concept-block p { text-align: justify; text-indent: 2em; }

/* ============================================================
   公司栏目
   ============================================================ */
.section-company {
  background: rgba(250, 247, 240, 0.20);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-company::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/bg-shan-3.webp') center top / cover no-repeat;
  opacity: 0;
  pointer-events: none;
}

.section-company > * {
  max-width: var(--col);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.section-company > .section-head,
.section-company > .company-sub,
.section-company > .prose,
.section-company > .contact {
  padding-left: 24px;
  padding-right: 24px;
}

.section-company .section-head { margin-bottom: var(--s4); }

.company-sub {
  text-align: center;
  font-family: var(--font-display);
  color: var(--teal-800);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: var(--s6);
  letter-spacing: 0.10em;
}

.contact {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(15, 110, 86, 0.12);
}

.contact-item {
  margin: 0 0 10px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.8;
}

.contact-item strong {
  font-weight: 500;
  color: var(--teal-900);
  margin-right: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.contact-item:last-child { margin-bottom: 0; }

/* ============================================================
   活动栏目
   ============================================================ */
.activity-placeholder {
  border: 1px dashed rgba(15, 110, 86, 0.25);
  padding: var(--s8) var(--s5);
  text-align: center;
  margin-top: var(--s2);
}

.activity-placeholder p {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.activity-hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  padding: var(--s9) 28px 96px;
  text-align: center;
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 2px;
  background: var(--gold);
}

.footer-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--cream);
  padding: 4px;
  margin: 0 auto var(--s4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 25px;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin: 6px 0;
  letter-spacing: 0.12em;
}

.footer-slogan {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  margin: 4px 0 var(--s5);
  letter-spacing: 0.12em;
}

.footer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
  line-height: 1.8;
}

.footer-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease-out);
}

.footer-link:active { color: rgba(255, 255, 255, 0.92); }

/* ============================================================
   滚动动效：编排式渐入
   ============================================================ */
.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  will-change: opacity, transform;
}

.reveal-group > .sub-title {
  /* 子标题先入，少延迟 */
  transition-delay: 0s;
}

.pill-img {
  /* 丹图带缩放呼吸 */
  transform-origin: center;
}

.pill-body > .pill-img {
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .couplet-line,
  .hero-center { animation: none; }
  .hero-scroll span::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 480px) {
  .pill-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--s4);
  }
  .pill-poem-h { width: 100%; max-width: 24em; }
  .pill-banner { flex-direction: column; gap: 4px; padding: 12px 16px; text-align: center; }
  .pill-banner-motto { margin-left: 0; text-align: center; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 10px; }
  .topbar-logo-heng { display: block; }
  .topbar-logo-round { display: none; }
  .nav-link { padding: 9px 6px; font-size: 12.5px; letter-spacing: 0.02em; }
}

@media (max-width: 400px) {
  .hero-title { letter-spacing: 0.06em; }
  .pill-poem-h p { font-size: 13.5px; letter-spacing: 0.10em; }
  .nav-link { padding: 9px 4px; font-size: 12px; letter-spacing: 0; }
  .topbar-logo-round { width: 32px; height: 32px; }
  .scene-pair { grid-template-columns: 1fr; gap: 0; }
  .scene + .scene::before {
    left: auto; top: auto; bottom: 0; right: 12%;
    width: 76%; height: 1px;
    background: linear-gradient(90deg,
      rgba(186, 117, 23, 0) 0%,
      var(--gold-line) 50%,
      rgba(186, 117, 23, 0) 100%);
  }
  .scene { padding-top: var(--s4); }
  .scene + .scene { padding-top: var(--s6); }
  .wuxing-row { gap: var(--s4); }
  .wuxing-char { width: 48px; height: 48px; font-size: 23px; }
}

@media (min-width: 720px) {
  .section { padding-top: var(--s10); padding-bottom: var(--s9); }
  .pill { padding: var(--s8) 24px var(--s9); }
  .prose p { font-size: 15.5px; }
  .pill .prose p { font-size: 15px; }
  .ink-band { height: 260px; }
}

/* ============================================================
   2026-08-23 优化第二轮 · 山水透出 + 五丹动效加重 + 五行彩球
   ============================================================ */

/* ---------- 移动端：山水对准有山一侧 + 更明显 ---------- */
@media (max-width: 720px) {
  body::before { background-position: left bottom; opacity: 0.30; }
  .ink-band img { object-position: left center; }
}

/* ---------- 五丹 · 五行本色描边 ---------- */
#pill-jin  .pill-banner { border-left: 3px solid #C9A227; }
#pill-qing .pill-banner { border-left: 3px solid #4A7A5C; }
#pill-xuan .pill-banner { border-left: 3px solid #3A3F4A; }
#pill-chi  .pill-banner { border-left: 3px solid #A63A2B; }
#pill-kun  .pill-banner { border-left: 3px solid #B08D57; }

/* ---------- 五丹 · 丹图 hover（加重） ---------- */
.pill-img { transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
@media (hover: hover) {
  .pill-img:hover {
    transform: scale(1.09);
    filter: drop-shadow(0 18px 40px rgba(4, 52, 44, 0.36));
  }
}

/* ---------- 五丹导览圆点 · 滚动激活（加重） ---------- */
.pill-dot { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.pill-dot.active {
  box-shadow: 0 0 0 3px var(--gold);
  transform: scale(1.22);
}
.pill-dot.active img { filter: drop-shadow(0 5px 14px rgba(186, 117, 23, 0.55)); }

/* ---------- 火葬 / 土葬 · 氛围微调 ---------- */
.scene:first-child { background: linear-gradient(180deg, rgba(186, 90, 23, 0.05), rgba(186, 90, 23, 0) 62%); }
.scene:last-child  { background: linear-gradient(180deg, rgba(120, 90, 50, 0.05), rgba(120, 90, 50, 0) 62%); }

/* ---------- 五丹横幅 · 顶部高光 ---------- */
.pill-banner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 10px rgba(4, 52, 44, 0.16);
}

/* ---------- 五行速查 · 五行本色实心球（参考折页五行图） ---------- */
.wuxing-row:nth-child(1) .wuxing-char { background: radial-gradient(circle at 32% 30%, #EADCBC, #C9A227); color: #5a4510; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); }
.wuxing-row:nth-child(2) .wuxing-char { background: radial-gradient(circle at 32% 30%, #6d9c7f, #3F6B50); }
.wuxing-row:nth-child(3) .wuxing-char { background: radial-gradient(circle at 32% 30%, #5a6274, #2F3540); }
.wuxing-row:nth-child(4) .wuxing-char { background: radial-gradient(circle at 32% 30%, #c4644e, #A63A2B); }
.wuxing-row:nth-child(5) .wuxing-char { background: radial-gradient(circle at 32% 30%, #d9b266, #B08D57); }
@media (hover: hover) {
  .wuxing-row:hover .wuxing-char {
    transform: scale(1.14);
    box-shadow:
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      inset 0 -3px 6px rgba(0, 0, 0, 0.18),
      0 8px 20px rgba(4, 52, 44, 0.28);
  }
}

/* ---------- 2026-08-25 联系方式：招商合作行 + 电话拨号链接 ---------- */
.tel-link {
  color: var(--teal-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease-out);
}
.tel-link:active, .tel-link:hover { color: var(--gold-deep); }
