/* ==========================================================================
   Key社三部曲拜年纪 · 简介页
   1. 设计变量 / 基础   2. 背景层   3. 页眉与按钮   4. 首页
   5. 分页通用          6. 企划介绍  7. 企划历史   8. 相关链接与页脚
   9. 动效与响应式
   ========================================================================== */

:root {
  --ink: #2f2925;
  --ink-2: #5d544c;
  --ink-3: #8a8076;
  --paper: #fffdf8;
  --line: rgba(47, 41, 37, .12);
  --line-soft: rgba(47, 41, 37, .07);

  --kanon: #5b8fd6;
  --air: #3fb2c8;
  --clannad: #e3a0b2;

  /* 字体栈：系统和本机已装的字体在前；都没装时落到下面 @font-face 引入的两份子集字体 */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Source Han Serif CN",
    "Noto Serif CJK SC", "Noto Serif SC", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    "Hiragino Sans", "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC",
    system-ui, -apple-system, sans-serif;

  --h: 68px;
  --pad-x: clamp(18px, 4.2vw, 44px);
}

/* ===== 外部字体（Noto Serif SC / Noto Sans SC 子集，SIL OFL 1.1） =====
   子集只含页面上出现的字。字体排在系统字体之后：装了宋体 / 雅黑 / 苹方的设备照旧用系统字体，
   只有都没有的设备（例如部分手机、Linux）才下载这四份，保证字形统一。 */
@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/noto-serif-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/noto-serif-sc-500.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-500.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #f2f4f8;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }

::selection { background: #f7c9d5; color: #2f2925; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s ease;
}
.skip:focus { transform: none; }

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

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

/* 顶部阅读进度 ------------------------------------------------------------ */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--kanon), var(--air) 46%, var(--clannad));
  opacity: .75;
}

/* ==========================================================================
   2. 背景层：四季天色 + 光玉 + 颗粒
   ========================================================================== */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
}
.sky .layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.layer.dawn {
  background:
    radial-gradient(120% 72% at 50% -12%, #fff7ec 0%, #fdeef1 40%, #eef3fb 78%, #eef1f7 100%);
}
.layer.noon {
  background:
    radial-gradient(105% 62% at 22% -6%, #eaf6ff 0%, #f2f9fd 42%, #f8f5f0 100%);
}
.layer.paper {
  background:
    radial-gradient(120% 60% at 50% 0%, #fdf8ef 0%, #faf6f0 46%, #f5f2ee 100%);
}
.layer.dusk {
  background:
    radial-gradient(130% 80% at 50% 108%, #f4e4f0 0%, #f8f0f6 34%, #eef1f9 74%, #edf1f8 100%);
}
html[data-act="1"] .layer.dawn { opacity: 1; }
html[data-act="2"] .layer.noon { opacity: 1; }
html[data-act="3"] .layer.paper { opacity: 1; }
html[data-act="4"] .layer.dusk { opacity: 1; }

.orbs {
  position: absolute;
  inset: -10% -6%;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(9px);
  opacity: .7;
  background: radial-gradient(closest-side, var(--c), transparent 72%);
  animation: drift 26s ease-in-out infinite alternate;
}
.o1 { --c: #ffbcd0; width: 34vw; height: 34vw; min-width: 240px; min-height: 240px; left: -8vw; top: 8vh; animation-duration: 30s; }
.o2 { --c: #a8c6ff; width: 42vw; height: 42vw; min-width: 280px; min-height: 280px; right: -13vw; top: 0; animation-duration: 34s; animation-delay: -8s; }
.o3 { --c: #a5e4ea; width: 32vw; height: 22vw; min-width: 240px; min-height: 170px; right: 12vw; bottom: -6vh; animation-duration: 38s; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2vw, -3vh, 0) scale(1.08); }
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 46%, transparent 42%, rgba(255, 253, 248, .55) 100%),
    linear-gradient(180deg, rgba(255, 253, 248, .35), transparent 22%);
}


.grain {
  position: absolute;
  inset: 0;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .46 0 0 0 0 .42 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. 页眉 / 按钮 / 分页定位
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--h);
  padding-inline: var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.topbar.scrolled {
  background: rgba(255, 253, 248, .72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex: none;
}
.brand-txt { display: grid; gap: 1px; }
.brand-txt b {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.3;
  white-space: nowrap;
}
.brand-txt small {
  font-size: 8.5px;
  letter-spacing: .3em;
  color: var(--ink-3);
  line-height: 1;
  white-space: nowrap;
}

.nav {
  position: fixed;
  left: 50%;
  top: calc(var(--h) / 2);
  translate: -50% -50%;
  z-index: 61;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px -22px rgba(47, 41, 37, .6);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, background .25s ease;
}
.nav a i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: opacity .25s ease, transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.nav a[aria-current="page"] i { opacity: 1; transform: scale(1.2); }

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn .ic { width: 15px; height: 15px; flex: none; }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -16px rgba(47, 41, 37, .8);
}
.btn-primary:hover {
  background: #443c35;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(47, 41, 37, .85);
}
.btn-ghost {
  background: rgba(255, 255, 255, .55);
  border-color: var(--line);
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(47, 41, 37, .28); color: var(--ink); transform: translateY(-1px); }
.btn-icon {
  width: 36px;
  padding: 0;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  border-color: var(--line);
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-icon:hover { color: var(--ink); border-color: rgba(47, 41, 37, .28); }
.btn-icon .ic { width: 17px; height: 17px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 14px; }

/* ==========================================================================
   4. 首页
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--h) + 40px) var(--pad-x) clamp(96px, 14vh, 150px);
  scroll-snap-align: start;
  overflow: clip;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; }

.hero-halo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: min(84vw, 720px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f9c9d6, #bfe4f2 30%, #cbdcfb 55%, #fbe3ea 78%, #f9c9d6);
  filter: blur(64px);
  opacity: .38;
  animation: spin 48s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 24%, transparent 76%);
  mask-image: radial-gradient(closest-side, #000 24%, transparent 76%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero .kicker { justify-content: center; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(50px, 11vw, 98px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: .14em;
  text-indent: .14em;
  margin-top: clamp(16px, 2.4vh, 26px);
  color: var(--ink);
}
.hero-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: clamp(22px, 3.4vh, 34px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(47, 41, 37, .38), transparent);
}

.hero-line {
  margin-top: clamp(18px, 2.8vh, 28px);
  font-family: var(--serif);
  font-size: clamp(14.5px, 1.6vw, 18.5px);
  line-height: 2.15;
  letter-spacing: .06em;
  color: var(--ink-2);
  word-break: keep-all;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(20px, 3vh, 30px);
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(24px, 3.6vh, 38px);
}

.cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(26px, 5vh, 48px);
  translate: -50% 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .4);
  animation: cue 2.6s ease-in-out infinite;
}
.cue svg { width: 16px; height: 16px; }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   5. 分页通用
   ========================================================================== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--h) + clamp(42px, 6.5vh, 76px)) var(--pad-x) clamp(60px, 9vh, 104px);
  scroll-snap-align: start;
}
.page > .wrap { width: min(1120px, 100%); }

/* 章节序号：贴着右上角的浅色数字 */
.page::after {
  content: attr(data-num);
  position: absolute;
  top: calc(var(--h) + clamp(2px, 1.6vh, 20px));
  right: var(--pad-x);
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(47, 41, 37, .045);
  -webkit-text-stroke: 1px rgba(47, 41, 37, .095);
  pointer-events: none;
  user-select: none;
}

.sec-head { margin-bottom: clamp(24px, 3.4vh, 40px); }
.sec-head .kicker::before {
  content: "";
  width: 17px;
  height: 7px;
  flex: none;
  border-radius: 1px;
  background: linear-gradient(90deg,
    var(--kanon) 0 4px, transparent 4px 6.5px,
    var(--air) 6.5px 10.5px, transparent 10.5px 13px,
    var(--clannad) 13px 17px);
  opacity: .8;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .14em;
  margin-top: 12px;
}
.sec-note {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

/* ==========================================================================
   6. 企划介绍
   ========================================================================== */
.about-copy { max-width: 66ch; }
.about-copy p {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink-2);
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.about-copy p + p { margin-top: 10px; }
.about-copy .lead {
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 2.05;
  color: var(--ink);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(22px, 3.2vh, 34px);
}
.work {
  position: relative;
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 253, 248, .68);
  box-shadow: 0 22px 44px -34px rgba(47, 41, 37, .5);
  overflow: clip;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.work::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), transparent 78%);
}
.work::after {
  content: "";
  position: absolute;
  right: -34%;
  top: -46%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent);
  pointer-events: none;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -30px rgba(47, 41, 37, .52);
}
.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.work .season {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c);
}
.work .yr {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.work h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  margin-top: 8px;
  color: var(--ink);
}
.work h3::first-letter { color: var(--c); }
.work p {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: var(--ink-2);
  word-break: keep-all;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 30px);
  margin-top: clamp(24px, 3.4vh, 38px);
  padding-top: clamp(18px, 2.4vh, 26px);
  border-top: 1px solid var(--line);
}
.step .n {
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink-3);
}
.step h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  margin-top: 6px;
}
.step p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--ink-3);
}

/* ==========================================================================
   7. 企划历史
   ========================================================================== */
.tl {
  --w-when: 92px;
  --w-rail: 26px;
  position: relative;
  display: grid;
  gap: clamp(8px, 1.1vh, 12px);
}
.tl::before {
  content: "";
  position: absolute;
  left: calc(var(--w-when) + var(--w-rail) / 2 - .5px);
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(47, 41, 37, .17) 6%,
    rgba(47, 41, 37, .17) 94%,
    transparent);
}
.tl-item {
  display: grid;
  grid-template-columns: var(--w-when) var(--w-rail) minmax(0, 1fr);
  align-items: stretch;
}
.tl-when {
  padding-top: 15px;
  text-align: right;
  padding-right: 12px;
  font-family: var(--serif);
  line-height: 1.2;
}
.tl-when b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.tl-when span {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 19px;
}
.tl-rail i {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--c);
  box-shadow: 0 0 0 4px rgba(255, 253, 248, .85);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tl-item:hover .tl-rail i {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 253, 248, .9), 0 0 0 9px color-mix(in srgb, var(--c) 18%, transparent);
}

.tl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title meta"
    "desc  meta";
  align-items: start;
  gap: 2px clamp(16px, 2.4vw, 32px);
  position: relative;
  padding: 13px clamp(14px, 1.6vw, 20px) 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 253, 248, .62);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px -34px rgba(47, 41, 37, .55);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .4s ease, box-shadow .4s ease;
}
.tl-card:hover {
  transform: translateX(4px);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 22px 42px -30px rgba(47, 41, 37, .5);
}
.tl-card h3 {
  grid-area: title;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--serif);
  font-size: clamp(14.5px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--ink);
}
.tl-desc {
  grid-area: desc;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--ink-2);
  word-break: keep-all;
}
.tl-meta {
  grid-area: meta;
  display: grid;
  justify-items: end;
  gap: 2px;
  margin: 0;
  padding-top: 2px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tl-bv {
  font-size: 10px;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--c) 58%, var(--ink-3));
}
.tl-now {
  border-color: color-mix(in srgb, var(--c) 34%, #fff);
  background: rgba(255, 253, 248, .82);
}
.badge {
  padding: 1px 7px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--paper);
  background: color-mix(in srgb, var(--c) 72%, var(--ink));
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 26px);
  margin-top: clamp(20px, 2.8vh, 30px);
  padding-top: clamp(16px, 2.2vh, 22px);
  border-top: 1px solid var(--line);
}
.stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.stats b small {
  font-size: .5em;
  letter-spacing: .06em;
  margin-inline: 1px;
  color: var(--ink-2);
}
.stats span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
}

/* ==========================================================================
   8. 相关链接 / 页脚
   ========================================================================== */
.page-links { padding-bottom: clamp(74px, 9vh, 104px); align-items: stretch; }
.page-links > .wrap { display: flex; flex-direction: column; }
.page-links .foot { margin-top: auto; }

.bili {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 2vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: linear-gradient(115deg, rgba(255, 253, 248, .9), rgba(240, 246, 255, .72));
  box-shadow: 0 26px 50px -42px rgba(47, 41, 37, .7);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}
.bili:hover { transform: translateY(-3px); box-shadow: 0 30px 54px -38px rgba(47, 41, 37, .65); }
.bili-mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, #7fc3e8, #5b8fd6);
  box-shadow: 0 10px 22px -14px rgba(91, 143, 214, .9);
}
.bili-mark svg { width: 22px; height: 22px; }
.bili-txt { display: grid; gap: 2px; }
.bili-txt b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}
.bili-txt small {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.bili .go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.bili:hover .go { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.links {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1fr;
  gap: clamp(20px, 3.4vw, 52px);
  margin-top: clamp(24px, 3.6vh, 40px);
}
.link-col h3 {
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink-3);
}
.link-col ul { display: grid; gap: 1px; }
.link-col a {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 8px;
  padding: 7px 6px 7px 0;
  border-radius: 8px;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease, padding-left .3s ease, background .3s ease;
}
.link-col a::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  transition: opacity .25s ease, background .25s ease;
}
.link-col a small {
  flex: 0 0 100%;
  margin: 1px 0 0 12px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.link-col a:hover { color: #1d1a17; padding-left: 4px; }
.link-col a:hover::before { opacity: .85; background: var(--kanon); }
.past a { font-family: var(--serif); }

.closing {
  display: grid;
  place-items: center;
  gap: 12px;
  margin-top: clamp(26px, 4.2vh, 52px);
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 500;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--ink);
}
.closing::before {
  content: "";
  width: 1px;
  height: clamp(18px, 2.6vh, 28px);
  background: linear-gradient(180deg, transparent, rgba(47, 41, 37, .28));
}

.foot {
  margin-top: clamp(26px, 4vh, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-3);
}
/* 声明占满页脚整宽（与 .foot 同宽），版权与备案各占一行 */
.foot-note { width: 100%; }
.foot-meta { color: var(--ink-3); text-wrap: pretty; }
.foot-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 20px;
}
.foot-beian a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 41, 37, .22);
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}
.foot-beian a:hover { color: var(--ink); border-color: var(--ink); }
/* ICP / 公安联网备案：整条链接不换行，图标与文字基线对齐 */
.foot-beian .beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-3);
  border-bottom-color: rgba(47, 41, 37, .14);
  white-space: nowrap;
}
.foot-beian .beian img {
  width: 13px;
  height: 14px;
  margin-top: -1px;
  flex: none;
}
.foot-beian .beian:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* 回到顶部：右下角漂浮图标按钮 */
.to-top {
  position: fixed;
  z-index: 70;
  right: clamp(16px, 2.6vw, 34px);
  bottom: clamp(18px, 3.2vh, 32px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 16px 34px -18px rgba(47, 41, 37, .6),
    0 0 0 1px rgba(47, 41, 37, .05),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity .3s ease, translate .4s cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear .3s, background .3s ease, color .3s ease, border-color .3s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  pointer-events: auto;
  transition: opacity .3s ease, translate .4s cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear 0s, background .3s ease, color .3s ease, border-color .3s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  translate: 0 -2px;
}

/* ==========================================================================
   9. 动效与响应式
   ========================================================================== */
.rv {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 1.1s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1);
}
.rv.seen { opacity: 1; translate: 0 0; }
.works .work.seen:nth-child(2), .steps .step.seen:nth-child(2) { transition-delay: .08s; }
.works .work.seen:nth-child(3), .steps .step.seen:nth-child(3) { transition-delay: .16s; }
.steps .step.seen:nth-child(4) { transition-delay: .24s; }
.tl .tl-item.seen:nth-child(2) { transition-delay: .06s; }
.tl .tl-item.seen:nth-child(3) { transition-delay: .12s; }
.tl .tl-item.seen:nth-child(4) { transition-delay: .18s; }
.tl .tl-item.seen:nth-child(5) { transition-delay: .24s; }

@media (max-width: 1080px) {
  .nav {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    translate: -50% 0;
    padding: 5px;
    box-shadow: 0 14px 34px -18px rgba(47, 41, 37, .45);
  }
  .nav a { height: 34px; padding: 0 13px; font-size: 12px; }
  .page { padding-bottom: calc(clamp(60px, 9vh, 104px) + 44px); }
  .hero { padding-bottom: calc(clamp(96px, 14vh, 150px) + 40px); }
  .cue { bottom: calc(clamp(26px, 5vh, 48px) + 54px); }
  /* 底部导航占了屏幕下沿，回到顶部按钮抬到它上方 */
  .to-top { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 56px); }
}

@media (max-width: 900px) {
  .links { grid-template-columns: 1fr 1fr; }
  .link-col:first-child { grid-column: 1 / -1; }
  .link-col:first-child ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .works { grid-template-columns: 1fr; }
  .work p { max-width: 46ch; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
  .about-copy { max-width: none; }
}

@media (max-width: 720px) {
  :root { --h: 58px; }
  .brand-txt b { font-size: 13px; letter-spacing: .06em; }
  .brand-txt small { display: none; }
  .brand .mark { width: 26px; height: 26px; }
  .actions { gap: 6px; }
  .btn { height: 34px; padding: 0 13px; font-size: 12.5px; }
  .btn-icon { width: 34px; padding: 0; }
  .actions .btn-ghost span { display: none; }
  .actions .btn-ghost { width: 34px; padding: 0; justify-content: center; }

  .page::after { font-size: 52px; opacity: .9; }
  .hero-title { letter-spacing: .1em; text-indent: .1em; }
  .chips li { padding: 5px 11px; font-size: 11px; letter-spacing: .08em; }
  .hero-line {
    max-width: 26em;
    margin-inline: auto;
    font-size: 13.5px;
    line-height: 2;
    letter-spacing: .03em;
  }

  .page { align-items: flex-start; }

  .tl { --w-when: 58px; --w-rail: 18px; }
  .tl-when { padding-top: 16px; padding-right: 8px; }
  .tl-when b { font-size: 12.5px; letter-spacing: .04em; }
  .tl-when span { font-size: 10px; letter-spacing: .06em; }
  .tl-card { padding: 12px 13px 13px; grid-template-columns: 1fr; grid-template-areas: "title" "desc" "meta"; gap: 1px; }
  .tl-desc { font-size: 12px; }
  .tl-meta { justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 7px; }
  .tl-bv { display: none; }

  .stats { grid-template-columns: 1fr 1fr; gap: 14px 20px; }

  .bili { gap: 12px; padding: 14px; flex-wrap: wrap; }
  .bili-txt b { font-size: 13.5px; }
  .bili-txt small { font-size: 11px; }
  .bili .go { margin-left: 0; width: 100%; justify-content: center; }

  .links { grid-template-columns: 1fr; gap: 22px; }
  .link-col:first-child ul { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  /* 页脚：声明、版权、备案各占一行；备案两条在窄屏继续并排、必要时折行 */
  .foot { gap: 6px; }
  .foot-beian { gap: 5px 14px; }
  .foot-beian .beian { font-size: 10.5px; }
}

@media (max-width: 400px) {
  .nav a { padding: 0 10px; font-size: 11.5px; letter-spacing: .06em; }
  .nav a i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .rv { opacity: 1; translate: 0 0; transition: none; }
  .orb, .hero-halo, .cue { animation: none; }
  .orbs { transition: none; }
  .to-top { transition: none; }
  * { scroll-behavior: auto !important; }
}
