/* ============================================================
   基础样式：重置、排版、氛围层、焦点与降级动效
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--text-on-ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 氛围层：墨色晕染 + 宣纸颗粒 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58rem 40rem at 86% -6%, rgba(201, 161, 90, .10), transparent 62%),
    radial-gradient(40rem 30rem at -8% 104%, rgba(179, 49, 42, .10), transparent 58%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text-on-ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

/* 中文断行纪律：标点不入行首，标题自动均衡，禁止词中断裂 */
h1, h2, h3, h4, p, li, dd, dt, blockquote {
  line-break: strict;          /* CJK 标点避头尾 */
  overflow-wrap: break-word;   /* 长英文串不撑破布局 */
  word-break: normal;          /* 禁止 break-all 把中文拆散 */
}
h1, h2, h3 { text-wrap: balance; }   /* 标题末行不孤字 */
p, li { text-wrap: pretty; }

/* 书法/展示标题：整行不折字，断点由 HTML 的 <br> 控制 */
.hero-title .line { display: block; white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--cinnabar); color: var(--paper); }

.container { width: min(var(--container), 90vw); margin-inline: auto; position: relative; z-index: 1; }

/* 眉题：英文一律大写字距拉开（小字号下大写更易读且更贵气） */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); letter-spacing: .4em; color: var(--gold);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }

/* 英文标语：大写 + 宽字距，奢侈品语境的标准写法 */
.en-tag {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  word-break: normal;
  overflow-wrap: normal;
}

/* 竖排文字 */
.vertical {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-display); letter-spacing: .35em;
}

/* 朱砂引首章：竖排长条，随内容高度自撑，三字竖列如传统印章 */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  padding: 16px 11px;
  background: var(--cinnabar); color: #fdf6ec;
  font-family: var(--font-brush); font-size: 19px; line-height: 1.05;
  writing-mode: vertical-rl; text-orientation: upright;
  letter-spacing: .22em;
  border-radius: 2px;
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(253, 246, 236, .28);
}

/* 按钮：方形描边，中式克制 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font-size: var(--fs-sm); letter-spacing: .28em; font-family: var(--font-display);
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  border-radius: var(--radius-sm); cursor: pointer;
  /* hover 只做填色与描边变化，不做任何位移/缩放，避免"跳动"感 */
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}
.btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn:active { background: #b08d4b; border-color: #b08d4b; }
.btn-solid { background: var(--cinnabar); border-color: var(--cinnabar); color: #f7efe2; }
.btn-solid:hover { background: #932721; border-color: #932721; color: #fff; }

/* 卷轴式入场 */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.d1.in { transition-delay: 110ms; }
.reveal.d2.in { transition-delay: 220ms; }
.reveal.d3.in { transition-delay: 330ms; }
.reveal.d4.in { transition-delay: 440ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.load-rise { animation: rise .9s var(--ease-out) both; }
.load-fade { animation: fade 1.2s var(--ease-out) both; }
.load-rise.l1 { animation-delay: .12s; }
.load-rise.l2 { animation-delay: .26s; }
.load-rise.l3 { animation-delay: .40s; }
.load-rise.l4 { animation-delay: .54s; }
.load-fade.l5 { animation-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
