@font-face {
  font-family: "Shizhen Serif";
  src: url("fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --paper: #FAF6EF;
  --paper-deep: #F2ECE1;
  --sheet: #FFFDF9;
  --ink: #232B33;
  --ink-soft: #5F676F;
  --ink-faint: #8B9096;
  --blue: #6C8DA8;
  --blue-deep: #48657C;
  --line: rgba(35, 43, 51, .12);
  --serif: "Shizhen Serif", "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* 顶栏 */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; letter-spacing: .14em; }
.nav-link { font-size: 15px; color: var(--ink-soft); letter-spacing: .1em; transition: color .2s; }
.nav-link:hover { color: var(--ink); }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-width: 1320px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 110px var(--gutter) 64px;
}
.hero-copy { display: flex; gap: clamp(28px, 4vw, 64px); align-items: flex-end; justify-content: flex-end; flex-direction: row-reverse; }
.hero-title {
  writing-mode: vertical-rl;
  flex: none;
  font-family: var(--serif);
  font-size: clamp(42px, min(4.8vw, 7.1vh), 76px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .12em;
}
.hero-title span { display: block; }
.hero-title span:last-child { margin-block-start: .3em; padding-inline-start: 2em; }
.hero-side { max-width: 280px; }
.hero-lede { color: var(--ink-soft); font-size: 16px; line-height: 2; margin-bottom: 32px; }

.dl-row { display: flex; flex-direction: column; }
.dl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  transition: color .2s, padding .25s;
}
.dl:last-child { border-bottom: 1px solid var(--line); }
.dl small { order: 2; font-family: var(--sans); font-size: 13px; color: var(--ink-faint); }
.dl:hover { color: var(--blue-deep); padding-left: 6px; }
.dl.is-mine {
  padding: 15px 22px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.dl.is-mine small { color: rgba(250, 246, 239, .66); }
.dl.is-mine + .dl { border-top: 0; }

.hero-visual { position: relative; display: flex; justify-content: flex-end; padding-right: clamp(0px, 3vw, 48px); }

.phone {
  position: relative;
  width: min(100%, 318px);
  padding: 8px;
  border-radius: 50px;
  background: #1D2126;
  box-shadow: 0 2px 3px rgba(35, 43, 51, .16), 0 44px 80px -28px rgba(62, 78, 92, .42);
}
.phone img { width: 100%; border-radius: 42px; }

.print {
  position: absolute;
  left: 0;
  bottom: 9%;
  z-index: 2;
  width: min(62%, 310px);
  padding: 10px 10px 8px;
  background: var(--sheet);
  box-shadow: 0 1px 2px rgba(35, 43, 51, .1), 0 26px 48px -22px rgba(62, 78, 92, .4);
}
.print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
}
.print i { font-style: normal; color: var(--ink-faint); letter-spacing: .04em; }

/* 引语 */
.quote {
  display: grid;
  justify-items: center;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  text-align: center;
  background: var(--paper-deep);
}
.quote-img { width: clamp(128px, 15vw, 176px); aspect-ratio: 1; object-fit: cover; margin-bottom: 44px; }
.quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .04em;
}
.quote blockquote footer { margin-top: 20px; font-size: 14px; letter-spacing: .14em; color: var(--ink-faint); }
.quote-note { margin-top: 48px; font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 2; color: var(--ink-soft); }

/* 时间线 */
.trail-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(64px, 9vw, 120px) calc(var(--gutter) + 92px);
}
.trail { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 26px); width: 1px; }
.step {
  position: absolute;
  left: 0;
  width: var(--w);
  height: auto;
  color: var(--blue);
  opacity: .16;
  transform: translate(calc(-50% + var(--x)), 0) rotate(var(--r)) scaleX(var(--flip));
  transition: opacity .5s ease;
}
.step.on { opacity: .9; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 96px) 0;
}
.chapter.is-flip .chapter-text { order: 2; }
.chapter-visual { display: flex; justify-content: center; }
.chapter-visual .phone { width: min(100%, 284px); }

.age { font-family: var(--serif); font-size: 20px; color: var(--blue-deep); letter-spacing: .08em; margin-bottom: 18px; }
.age b { font-weight: 300; font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: 0; padding-inline: .06em; }
.chapter h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.chapter-text > p:last-child { max-width: 25em; color: var(--ink-soft); }

/* 纪念册 */
.chapter.is-book { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.book {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sheet);
  box-shadow: 0 2px 4px rgba(35, 43, 51, .08), 0 50px 90px -40px rgba(62, 78, 92, .46);
  aspect-ratio: 1.46;
}
.page { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 5%, 56px); }
.page-l { background: linear-gradient(to left, rgba(35, 43, 51, .06), transparent 7%); }
.page-r { background: linear-gradient(to right, rgba(35, 43, 51, .08), transparent 7%); }
.book-eyebrow { font-size: clamp(8px, 1vw, 12px); letter-spacing: clamp(.08em, 1.6vw, .2em); color: var(--ink-faint); white-space: nowrap; }
.book-title {
  margin-top: 1em;
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: .06em;
}
.book-stats { display: flex; gap: clamp(14px, 3vw, 40px); margin-top: auto; padding-top: clamp(8px, 1.5vw, 20px); border-top: 1px solid var(--line); }
.book-stats dd { order: -1; margin: 0; font-family: var(--serif); font-size: clamp(14px, 2.2vw, 28px); font-weight: 300; line-height: 1.3; }
.book-stats div { display: flex; flex-direction: column; }
.book-stats dt { font-size: clamp(8px, 1vw, 12px); letter-spacing: .1em; color: var(--ink-faint); }
.book-photos { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(4px, .8vw, 10px); margin-top: clamp(8px, 1.6vw, 20px); }
.book-photos img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.book-photos img:nth-child(2) { height: 100%; aspect-ratio: auto; }
.book-photos img:nth-child(3) { grid-column: 1 / 2; aspect-ratio: 1.34; }
.book-no { position: absolute; right: 7%; bottom: 4.5%; font-size: clamp(8px, 1vw, 12px); color: var(--ink-faint); }

/* 下载 */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 13vw, 170px) var(--gutter);
  background: var(--blue-deep);
  color: var(--paper);
  text-align: center;
}
.cta-mark { position: absolute; right: -6%; bottom: -14%; width: min(58vw, 620px); opacity: .07; pointer-events: none; }
.cta h2 { position: relative; font-family: var(--serif); font-size: clamp(34px, 6vw, 72px); font-weight: 300; letter-spacing: .08em; margin-bottom: clamp(44px, 6vw, 72px); }
.store-list { position: relative; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid rgba(250, 246, 239, .26); }
.store-list li { border-bottom: 1px solid rgba(250, 246, 239, .26); }
.store-list a { display: flex; align-items: baseline; gap: 20px; padding: 22px 6px; text-align: left; transition: padding .25s; }
.store-list a:hover { padding-inline: 16px 0; }
.store-os { flex: 0 0 3.5em; font-size: 14px; letter-spacing: .08em; color: rgba(250, 246, 239, .72); }
.store-name { flex: 1; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 24px); }
.store-go { font-size: 20px; }
.store-list a.is-mine .store-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.cta-note { position: relative; margin-top: 28px; font-size: 14px; color: rgba(250, 246, 239, .72); }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  padding: 32px var(--gutter);
  font-size: 13px;
  color: var(--ink-faint);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16px; letter-spacing: .12em; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a:hover, .foot-legal a:hover { color: var(--ink); }
.foot-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* 微信内提示 */
.wx-tip {
  position: fixed;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 20;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  box-shadow: 0 20px 50px rgba(35, 43, 51, .4);
}
.wx-tip[hidden] { display: none; }
.wx-tip button { margin-top: 10px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* 入场 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 104px; gap: 56px; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 24px; }
  .hero-title { grid-area: 1 / 2; font-size: clamp(38px, 10.6vw, 60px); }
  .hero-side { display: contents; }
  .hero-lede { grid-area: 1 / 1; max-width: 22em; margin: 0; font-size: 15px; }
  .dl-row { grid-column: 1 / -1; }
  .dl { font-size: 16px; }
  .dl.is-mine { padding: 13px 18px; }
  .hero-visual { justify-content: flex-end; padding-right: 0; }
  .hero-visual .phone { width: min(70%, 318px); }
  .print { width: min(56%, 300px); bottom: 7%; }

  .trail-wrap { padding-inline: calc(var(--gutter) + 34px) var(--gutter); }
  .trail { left: calc(var(--gutter) + 8px); }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .chapter.is-flip .chapter-text { order: 0; }
  .chapter-visual { justify-content: flex-start; }
  .chapter-visual .phone { width: min(86%, 284px); }
  .book { margin-left: calc(-34px - 4px); margin-right: -4px; }
  .foot-legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step, .dl, .store-list a { transition: none; }
}
