:root {
  /* 品牌色板：宣纸、沉墨、朱砂、燕青、赤金、草木 */
  --paper: #f7f4ed;
  --paper-warm: #faf7f0;
  --paper-card: #fdfbf7;
  --paper-edge: #eee7d7;
  --surface: #ffffff;
  --surface-alt: #f3ece0;

  --ink: #181613;
  --ink-secondary: #5c5549;
  --ink-tertiary: #746e63;
  --ink-faint: #b8b1a3;

  --line: #e6decb;
  --line-strong: #d4c9b3;
  --line-hair: rgba(28, 26, 22, 0.08);

  --seal: #b83a24;
  --seal-hover: #9c2e1b;
  --seal-light: rgba(184, 58, 36, 0.08);
  --seal-border: rgba(184, 58, 36, 0.22);

  --primary: #19484c;
  --primary-hover: #12373a;
  --primary-gradient: linear-gradient(155deg, #235d62 0%, #153e41 100%);

  --gold: #846227;
  --gold-light: rgba(132, 98, 39, 0.1);
  --yi: #296d4b;
  --yi-light: rgba(41, 109, 75, 0.1);

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(32, 28, 22, 0.04);
  --shadow-md: 0 12px 32px rgba(32, 28, 22, 0.07), 0 2px 6px rgba(32, 28, 22, 0.04);
  --shadow-lg: 0 28px 64px rgba(32, 28, 22, 0.12), 0 4px 16px rgba(32, 28, 22, 0.05);
  --shadow-paper: 0 22px 50px rgba(45, 38, 27, 0.12), 0 3px 10px rgba(45, 38, 27, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1400px 900px at 10% -5%, rgba(255, 255, 252, 0.9) 0%, transparent 70%),
    radial-gradient(1000px 700px at 90% 105%, rgba(224, 212, 188, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #f7f4ed 0%, #f4eee2 100%);
  background-attachment: fixed;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 宣纸极微颗粒肌理（SVG噪声叠加层） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.serif { font-family: var(--font-serif); }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap.wide, .site.wide .wrap {
  max-width: 1140px;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

/* ============================================================
   顶部导航栏（典雅界尺风格）
   ============================================================ */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header.site .wrap {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--seal);
  color: #f7f4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(184, 58, 36, 0.28);
}

.brand-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--ink);
  letter-spacing: 0.28em;
  margin-left: 2px;
}

.brand-badge {
  font-size: 11px;
  color: var(--seal);
  border: 1px solid var(--seal-border);
  background: var(--seal-light);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

nav {
  margin-left: 36px;
  display: flex;
  gap: 6px;
}

nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  /* 任何宽度下菜单项都不逐字折行：中文会在任意字之间断行，窄屏若不锁死
     就会把「功能一览」压成「功能 / 一览」两行（用户实拍的正是这个）。
     空间不够时应当整条菜单横滑（≤640）或整体折行，而不是把每项拆成两行。 */
  white-space: nowrap;
}

nav a:hover {
  color: var(--ink);
  background: rgba(28, 26, 22, 0.04);
}

nav a.on {
  color: var(--primary);
  font-weight: 600;
}

/* 菜单折叠按钮（汉堡）：桌面隐藏，只有窄屏的媒体查询才把它打开 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(28, 26, 22, 0.05);
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* 展开时三横变一叉 */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  margin-left: auto;
  border-radius: 999px;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.btn-mini:hover {
  background: var(--seal);
  color: #fff;
  box-shadow: 0 6px 14px rgba(184, 58, 36, 0.25);
  transform: translateY(-1px);
}

/* ============================================================
   按钮与通用装饰
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.btn.seal {
  background: var(--seal);
  color: #f7f4ed;
  height: 54px;
  padding: 0 32px;
  box-shadow: 0 10px 24px rgba(184, 58, 36, 0.24);
}

.btn.seal:hover {
  background: var(--seal-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(184, 58, 36, 0.32);
}

.btn.seal:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(184, 58, 36, 0.2);
}

.btn.outlined {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  height: 54px;
  padding: 0 28px;
}

.btn.outlined:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-2px);
}

/* 传统金石印章 */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--seal);
  color: #f7f4ed;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(184, 58, 36, 0.25);
}

/* 装饰红细界标 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--seal);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  margin-bottom: 12px;
}

.kicker::before, .kicker::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--seal-border);
}

/* ============================================================
   Hero 首屏核心区
   ============================================================ */
.hero-land {
  padding: 72px 0 68px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 10px 0 22px;
  color: var(--ink);
}

.hero-copy .lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-secondary);
  max-width: 32em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cta-note {
  font-size: 13.5px;
  color: var(--ink-tertiary);
  line-height: 1.6;
}

.cta-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 信任背书条章 */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--seal);
  flex-shrink: 0;
}

/* ============================================================
   Hero 纸韵岁历翻页模型（精工实体仿真）
   ============================================================ */
.hero-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.paper-shelf {
  position: relative;
  width: min(340px, 100%);   /* 窄屏收进容器：固定 340px 会在手机上顶出横向滚动 */
  aspect-ratio: 3 / 4.3;
}

/* 后置层叠宣纸 */
.paper-stack-back {
  position: absolute;
  inset: 0;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  transform: rotate(3.2deg) translateY(10px) scale(0.97);
  box-shadow: 0 10px 24px rgba(45, 38, 27, 0.07);
  z-index: 1;
}

.paper-stack-mid {
  position: absolute;
  inset: 0;
  background: #fbf8f0;
  border: 1px solid var(--line);
  border-radius: 14px;
  transform: rotate(-1.8deg) translateY(5px) scale(0.985);
  box-shadow: 0 14px 30px rgba(45, 38, 27, 0.08);
  z-index: 2;
}

/* 前景核心纸页 */
.paper {
  /* 纸面底色：卡片与「当前页」共用同一份，翻起时不会露出接缝 */
  --paper-surface: radial-gradient(120% 90% at 20% 0%, #ffffff 0%, rgba(255, 255, 255, 0.4) 60%),
                   linear-gradient(180deg, #fefdfa 0%, #f7f2e7 100%);
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--paper-surface);
  border: 1px solid rgba(214, 203, 184, 0.85);
  border-radius: 14px;
  box-shadow: var(--shadow-paper);
  padding: 30px 28px 24px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;            /* 去掉移动端双击缩放带来的点击延迟 */
  outline: none;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.paper:focus-visible {
  box-shadow: var(--shadow-paper), 0 0 0 3px rgba(184, 58, 36, 0.45);
}

/* 抬升反馈只给真正的指针设备：触屏上 :hover 会「粘」住不散 */
@media (hover: hover) and (pointer: fine) {
  .paper:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 30px 60px rgba(45, 38, 27, 0.16);
  }
}

/* 触屏：按下即翻，给一点即时反馈 */
@media (hover: none) {
  .paper:active {
    transform: translateY(-2px) scale(0.992);
  }
}

/* 顶部装订木棱 / 铜扣打孔 */
.paper-binding {
  position: absolute;
  top: 10px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.binding-hole {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4dac5;
  box-shadow: inset 0 1.5px 3px rgba(32, 28, 22, 0.35);
  position: relative;
}

.binding-hole::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(184, 58, 36, 0.3);
}

.binding-crease {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(214, 203, 184, 0.7) 20%, rgba(214, 203, 184, 0.7) 80%, transparent 95%);
}

/* 翻页容器：上层「当前页」+ 下层「下一页」两层叠放。
   翻动时只让上层绕装订线抬起（只动 transform，走合成层），
   它让开的下半张自然露出下层的新页 —— 撕历的手感就是这么来的。 */
.p-flip {
  position: relative;
  height: 100%;
  /* 透视放在这一层，而且**不开** transform-style: preserve-3d。
     一旦开了 preserve-3d，子元素的 z-index 就失效、两层又共面，
     浏览器会 z-fighting —— 下一页可能直接盖到当前页上面
     （看上去就像「上层背景是透明的」）。只把 perspective 交给直接子元素，
     两层就仍按 z-index 老老实实叠放。
     距离取 1600px：翻页时底边会朝观察者略微放大（透视放大），
     1600 把这个放大压在 ~5% 内，纸页不会一路压到下方说明文字上。 */
  perspective: 1600px;
}

.p-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 10px;
  /* 两面都铺满纸底：任何一层都不可能是透明的，下一页绝不会透出来 */
  background: var(--paper-surface);
}

/* 下层：下一页 */
.p-face--under { z-index: 1; }

/* 下层压着的影：随上层抬起而退去，给翻页一点纵深（只动 opacity） */
.p-face--under::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(58, 47, 33, 0.17);
  opacity: 1;
}

/* 上层：当前页（纸底继承自 .p-face），z-index 可靠地盖住下层 */
.p-face--sheet {
  z-index: 2;
  transform-origin: top center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* 翻起页的自阴影：越转越暗，模拟纸页背面受不到光。
   没有这一层，平板整块绕轴转在眼睛看来就只是「压扁/缩小」；
   有了明暗变化，才读得出「一片纸被掀起来」。 */
.p-face--sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(58, 47, 33, 0.04) 0%,
              rgba(58, 47, 33, 0.22) 55%,
              rgba(58, 47, 33, 0.42) 100%);
  opacity: 0;
  /* 跟着纸页一起翻过装订线后消失，别在背面留下一块浮着的阴影 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 0° → +96°：绕装订线（顶边）朝观察者掀起 —— 底边先朝你翘起、纸页立起来、
   越过 96° 后背面朝外，由 backface-visibility 干净隐去。
   注意是 +96°：正值让底边朝观察者走（抬起）；写成负值底边会往屏幕里沉，
   整页只会越缩越小，看起来像「缩小」而不是「翻页」。 */
@keyframes pageTurn {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(96deg); }
}

@keyframes sheetShade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shadeLift {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.paper.turning .p-face--sheet {
  animation: pageTurn var(--flip-dur, 520ms) cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.paper.turning .p-face--sheet::after {
  animation: sheetShade var(--flip-dur, 520ms) cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.paper.turning .p-face--under::after {
  animation: shadeLift var(--flip-dur, 520ms) cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* 纸面排版元素 */
.p-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line-hair);
  padding-bottom: 12px;
}

.p-header .lunar-tag {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.p-header .weekday-tag {
  font-size: 14px;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

.p-hero-date {
  text-align: center;
  margin: 10px 0;
}

.p-hero-date .huge-num {
  font-family: var(--font-serif);
  font-size: clamp(84px, 28vw, 124px);
  font-weight: 600;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.04em;
  display: inline-block;
  text-shadow: 0 1px 0 #fff;
}

.p-hero-date .date-sub {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink-secondary);
  letter-spacing: 0.16em;
  margin-top: 8px;
}

.p-details-box {
  background: rgba(246, 241, 231, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-yiji-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.yiji-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.yiji-badge.yi { background: var(--yi); }
.yiji-badge.ji { background: var(--seal); }

.yiji-text {
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.p-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.p-footer-date {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

/* 翻页控制指示器 */
.mock-ctrl {
  margin-top: 34px;   /* 留白给翻页时朝观察者翘起的纸页底边（透视会略微放大），别让说明文字被压到 */
  display: flex;
  align-items: center;
  gap: 18px;
}

.mock-cap {
  font-size: 14px;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.pager {
  display: flex;
  gap: 14px;
}

.pager .dot {
  position: relative;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.34s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 视觉仍是 20×4 的小横条，命中区撑到 44px 高——手指按得到 */
.pager .dot::before {
  content: "";
  position: absolute;
  inset: -20px 0;
}

.pager .dot.on,
.pager .dot[aria-selected="true"] {
  width: 32px;
  background: var(--seal);
}

.pager .dot:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.tap-hint {
  font-size: 12px;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

/* ============================================================
   三条定盘承诺（横向贯通律动带）
   ============================================================ */
.commitments-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  padding: 48px 0;
  margin-top: 20px;
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.commitment-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.commit-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seal);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.commit-body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.commit-body p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* ============================================================
   功能长卷（四大核心场景 · 交互感知视效）
   ============================================================ */
.features-section {
  padding: 100px 0 80px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-secondary);
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 36px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--seal);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.feature-box h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.feature-box p {
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* 场景示意卡片内置演示（微交互模型） */
.feature-preview {
  margin-top: auto;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

/* 1. 声音播报动态声波条演示 */
.audio-demo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-seal-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--seal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(184, 58, 36, 0.3);
  transition: transform 0.2s ease;
}

.play-seal-btn:hover {
  transform: scale(1.06);
}

.audio-track {
  flex-grow: 1;
}

.audio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.wave-bar {
  width: 3.5px;
  border-radius: 2px;
  background: var(--seal);
  opacity: 0.4;
  height: 6px;
  transition: height 0.3s ease;
}

.audio-demo.playing .wave-bar {
  opacity: 1;
  animation: waveMotion 1s ease-in-out infinite alternate;
}

.audio-demo.playing .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-demo.playing .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.audio-demo.playing .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.audio-demo.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-demo.playing .wave-bar:nth-child(6) { animation-delay: 0.15s; }
.audio-demo.playing .wave-bar:nth-child(7) { animation-delay: 0.35s; }
.audio-demo.playing .wave-bar:nth-child(8) { animation-delay: 0.25s; }

@keyframes waveMotion {
  0%   { height: 5px; }
  100% { height: 22px; }
}

/* 2. 双历对照网格缩影 */
.calendar-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.mini-cell {
  padding: 8px 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.mini-cell.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mini-cell .solar { font-weight: 600; line-height: 1.1; }
.mini-cell .lunar { font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* 3. 四套主题色彩色盘演示 */
.theme-palette-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.theme-pill {
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-pill:hover {
  transform: translateY(-2px);
}

.theme-pill.day { background: #f6f1e7; color: #1c1a16; }
.theme-pill.night { background: #161512; color: #ede6d8; border-color: #333; }
.theme-pill.eye { background: #e8ecdc; color: #1b261b; }
.theme-pill.high { background: #000000; color: #ffffff; border-color: #444; }

/* 4. 字号对照 */
.font-scale-demo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

/* ============================================================
   家人连接（孝悌连线 · 挂念温度）
   ============================================================ */
.family-section {
  padding: 90px 0 100px;
  background:
    radial-gradient(800px 500px at 85% 50%, rgba(224, 128, 104, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(243, 236, 224, 0.5) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.family-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 16px;
}

.family-content .intro {
  font-size: 17px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.family-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 32px;
}

.family-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--seal-light);
  border: 1px solid var(--seal-border);
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.step-text p {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* 孝心便签实体仿真 */
.family-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.care-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(1.2deg);
}

.care-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: rgba(184, 58, 36, 0.15);
  border-radius: 4px;
}

.care-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.card-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--seal-light);
  color: var(--seal);
  font-weight: 600;
}

.card-status {
  font-size: 13px;
  color: var(--yi);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.care-item {
  margin: 16px 0;
}

.care-item-time {
  font-size: 13.5px;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}

.care-item-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  font-weight: 600;
}

.care-note-quote {
  background: var(--paper-warm);
  border-left: 3px solid var(--seal);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 14px;
}

.care-card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-tertiary);
}

.card-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.1em;
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ============================================================
   隐私承诺（深墨水晕 · 庄重肃穆）
   ============================================================ */
.privacy-section {
  background: #141310;
  color: #f7f4ed;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.privacy-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 58, 36, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.privacy-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 260px;
  color: rgba(247, 244, 237, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.privacy-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.privacy-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 48px);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.privacy-lead {
  font-size: 18px;
  color: rgba(247, 244, 237, 0.75);
  max-width: 36em;
  line-height: 1.8;
  margin-bottom: 54px;
}

.privacy-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.privacy-pillar {
  border-top: 1px solid rgba(247, 244, 237, 0.16);
  padding-top: 24px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(247, 244, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfb877;
  margin-bottom: 16px;
}

.privacy-pillar h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.privacy-pillar p {
  font-size: 14.5px;
  color: rgba(247, 244, 237, 0.68);
  line-height: 1.7;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfb877;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.privacy-link:hover {
  gap: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   诚实说明（克制诚恳）
   ============================================================ */
.honest-section {
  padding: 68px 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.honest-box {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
}

.honest-box h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 10px;
}

.honest-box p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.8;
  max-width: 48em;
}

/* ============================================================
   常见问题 FAQ
   ============================================================ */
.faq-section {
  padding: 96px 0 100px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.faq-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}

.faq-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.faq-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.faq-card p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   底部页脚
   ============================================================ */
footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  color: var(--ink-secondary);
  font-size: 14px;
  background: rgba(247, 244, 237, 0.7);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  color: var(--ink-tertiary);
}

.footer-copy a {
  color: var(--ink-secondary);
}

/* ============================================================
   文档页首屏（隐私 / 协议 / 致谢，与首页品牌一脉相承）
   ============================================================ */
.hero {
  padding: 56px 0 22px;
}

.rule {
  width: 46px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 12px 0 16px;
}

.hero p.lead {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
  max-width: 40em;
}

/* ============================================================
   文档通用页面（隐私/协议/致谢，保持干净纯粹）
   ============================================================ */
section.doc {
  padding: 40px 0 80px;
}

section.doc h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

section.doc h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--ink);
}

section.doc p, section.doc li {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.8;
}

section.doc ul {
  padding-left: 24px;
  margin: 12px 0;
}

section.doc li {
  margin-bottom: 8px;
}

/* 正文链接（隐私 / 协议 / 致谢内） */
section.doc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(25, 72, 76, 0.38);
  transition: text-decoration-color 0.2s ease;
}

section.doc a:hover {
  text-decoration-color: var(--primary);
}

/* 外链指示（新窗口打开的项目主页 / 许可） */
section.doc a[target="_blank"]::after {
  content: "\2197";
  font-size: 0.72em;
  margin-left: 2px;
  vertical-align: 0.16em;
  color: var(--ink-tertiary);
}

.notice {
  font-size: 13.5px;
  color: var(--ink-tertiary);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 24px;
}

/* ============================================================
   动效与动画显现（遵守 reduced-motion）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease var(--delay, 0s), transform 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) var(--delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .paper.turning .p-face--sheet,
  .paper.turning .p-face--sheet::after,
  .paper.turning .p-face--under::after { animation: none !important; }
  .audio-demo.playing .wave-bar { animation: none !important; }
  .btn { transition: none !important; }
  .paper { transition: none !important; }
}

/* ============================================================
   响应式断点适配
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .family-grid { grid-template-columns: 1fr; gap: 54px; }
  .commitments-grid, .privacy-triad { grid-template-columns: 1fr; gap: 28px; }
  .features-showcase, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .cta-row, .trust-bar { justify-content: center; }
  .privacy-watermark { display: none; }

  /* 页头：把整条菜单收进折叠按钮。641–980 之间「6 项菜单 + iOS 17+ 徽章 +
     「即将上架」」一行约需 870px，塞不下会把整页顶出横向滚动。收起后窄屏
     页头只留「品牌 + 汉堡」两件：菜单收进按钮，「即将上架」也不占右上角
     （首页正文本来就有下载入口）。 */
  .btn-mini { display: none; }
  .brand-group { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  header.site .wrap {
    height: auto;
    padding: 9px 20px;
    flex-wrap: wrap;
    gap: 6px;
  }
  nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  header.site.nav-open nav { display: flex; }
  nav a {
    padding: 11px 10px;
    font-size: 15.5px;
    border-radius: 9px;
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  header.site .wrap { padding: 9px 16px; }
  .hero-land { padding: 40px 0 36px; }
  /* 纸历演示按容器收窄，不再用固定宽度顶出横向滚动 */
  .paper-shelf { width: min(300px, 100%); }
  .mock-ctrl { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .feature-box { padding: 26px 22px; }
  /* 页脚竖排：版权 + 支持一行，导航链接另起一行并允许折行 */
  footer.site { padding: 36px 0 44px; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { line-height: 1.75; }
  .footer-links { flex-wrap: wrap; gap: 10px 20px; }
}
