/* ===== 设计系统：深夜庙堂 ===== */
:root {
  --ink: #140e08;            /* 香火熏黑底 */
  --ink-2: #1c130b;          /* 次级底色 */
  --ink-3: #261a0f;          /* 卡片/框线底 */
  --gold: #d9a84e;           /* 香烛金 */
  --gold-bright: #f3cf7e;    /* 亮金 */
  --gold-dim: rgba(217, 168, 78, 0.32);
  --gold-line: rgba(217, 168, 78, 0.22);
  --cinnabar: #c03a2b;       /* 朱砂红 */
  --paper: #f4e8d3;          /* 米纸白 */
  --paper-dim: rgba(244, 232, 211, 0.6);
  --wa-green: #20bd5a;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --brush: "Ma Shan Zheng", "Noto Serif SC", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a, button, [role="button"] {
  outline: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
  /* 阻止移动端浏览器自动放大小号文字（font boosting） */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* clip 彻底禁止横向滚动（hidden 在移动端仍可能被超宽元素撑开视口） */
html, body {
  overflow-x: clip;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.8;
}

/* 颗粒质感覆层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 48px, 1060px);
  margin-inline: auto;
}

.m-only { display: inline; }
@media (min-width: 768px) {
  .m-only { display: none; }
}

/* ===== Section 公共 ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.sec-title {
  font-size: clamp(30px, 7.5vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* ===== 金色 CTA 按钮 ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 55%, #b8843a 100%);
  color: #241505;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(217, 168, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(217, 168, 78, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}
.btn-gold--xl {
  width: 100%;
  max-width: 420px;
  padding: 19px 24px;
  font-size: 18px;
  white-space: nowrap;
}
/* 360px 以下窄屏：收紧字距字号，保证单行 */
@media (max-width: 379px) {
  .btn-gold--xl {
    font-size: 16px;
    letter-spacing: 0.04em;
    padding: 18px 16px;
  }
}
.wa-ico {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

/* ===== 「免费」朱砂印 ===== */
.free-mark {
  display: inline-block;
  background: var(--cinnabar);
  color: var(--paper);
  font-weight: 900;
  font-size: 0.92em;
  line-height: 1;
  padding: 5px 8px;
  margin-right: 8px;
  border-radius: 3px;
  box-shadow: 0 3px 14px rgba(192, 58, 43, 0.45);
  transform: rotate(-3deg);
}
.free-mark--btn {
  background: #a32619;
  color: #ffe9c9;
  margin-right: 2px;
  transform: rotate(-2deg) translateY(-1px);
}

/* ===== 滚动渐显 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== 浮动 WhatsApp ===== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(32, 189, 90, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wa-float.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .wa-float::before { animation: none; }
  html { scroll-behavior: auto; }
}
