/* ============================================================
   安渡丹 · 官方品牌站 · 第四版
   风格：写意水墨 × 编辑排版（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-shan-1.jpg') center bottom / cover no-repeat;
  opacity: 0.10;
  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;
}

.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 首屏 · 参照手提袋贴纸：圆LOGO + 大字 + 山水
   ============================================================ */
.hero {
  position: relative;
  height: calc(100svh - 68px);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(240, 237, 229, 0.42) 0%,
    rgba(240, 237, 229, 0.18) 40%,
    rgba(240, 237, 229, 0.30) 72%,
    rgba(240, 237, 229, 0.94) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--col);
  padding: 0 24px;
  text-align: center;
  animation: hero-in 1.3s var(--ease-out) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: clamp(120px, 30vw, 168px);
  height: auto;
  margin: 0 auto var(--s5);
  filter: drop-shadow(0 6px 22px rgba(4, 52, 44, 0.18));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(54px, 14vw, 92px);
  color: var(--teal-900);
  margin: 0 0 2px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-indent: 0.10em; /* 抵消末字间距，视觉居中 */
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(240, 237, 229, 0.55);
}

.hero-pinyin {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: var(--teal-800);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin: 0 0 var(--s5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-pinyin::before,
.hero-pinyin::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--teal-800);
  opacity: 0.5;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 var(--s5);
  letter-spacing: 0.14em;
  line-height: 2.0;
}

.hero-line {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--s4);
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 19px);
  color: var(--teal-800);
  margin: 0;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  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;
}

.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.78);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-pills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/bg-shan-4.jpg') center top / cover no-repeat;
  opacity: 0.14;
  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: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--teal-800);
  line-height: 1;
  /* 中文重心：微微上移补偿视觉重心 */
  padding-bottom: 3px;
}

.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.78);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-company::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/bg-shan-3.jpg') center top / cover no-repeat;
  opacity: 0.12;
  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-name { display: none; }
  .topbar-logo-heng { display: none; }
  .topbar-logo-round { display: block; }
  .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; }
}
