/* ============================================================
   For Fiona · 我们的宇宙
   style.css — 视觉系统 / 布局 / 动效
   配色：深空墨蓝 + 香槟金 + 克制的玫瑰与雾蓝
   ============================================================ */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --ink: #05070d;
  --ink-2: #080c16;
  --ink-3: #0c111d;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(231, 199, 155, 0.18);
  --line-soft: rgba(255, 255, 255, 0.075);
  --gold: #e7c79b;
  --gold-2: #f6e8cf;
  --gold-3: #b98d5c;
  --rose: #d7a3a3;
  --blue: #9fb6d6;
  --lilac: #bdb2d8;
  --text: #f3eee4;
  --muted: #a7adb9;
  --muted-2: #7c8494;
  --serif: "Cormorant Garamond", "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --topbar-h: 74px;
  --maxw: 1180px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-cover,
body.lb-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(231, 199, 155, 0.28);
  color: #fff;
}

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

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #070a11;
}
::-webkit-scrollbar-thumb {
  background: #2a2f3a;
  border-radius: 10px;
  border: 2px solid #070a11;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-3);
}

/* ---------- 2. 背景层 ---------- */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 16%, rgba(95, 78, 122, 0.24), transparent 70%),
    radial-gradient(34% 30% at 82% 22%, rgba(60, 82, 118, 0.22), transparent 70%),
    radial-gradient(42% 38% at 52% 92%, rgba(120, 76, 78, 0.14), transparent 72%),
    radial-gradient(60% 50% at 50% 55%, rgba(231, 199, 155, 0.035), transparent 70%);
  filter: blur(10px);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(231, 199, 155, 0.08), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(231, 199, 155, 0.5);
}
body:not(.is-cover) .scroll-progress {
  opacity: 1;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--gold);
  color: #12100b;
  border-radius: 6px;
  font-size: 13px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- 3. 通用排版组件 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-3);
  flex: none;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.14;
  letter-spacing: 0.015em;
  color: var(--text);
}
.display em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 2;
  text-wrap: balance;
}

.home-title,
.page-head .display,
.quote-card blockquote {
  text-wrap: balance;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .icon {
  transform: translateX(4px);
}
.btn--enter {
  overflow: hidden;
  padding: 16px 36px;
  border-color: rgba(231, 199, 155, 0.5);
  background: linear-gradient(120deg, rgba(231, 199, 155, 0.14), rgba(231, 199, 155, 0.03));
  color: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(231, 199, 155, 0);
}
.btn--enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--enter:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #171208;
  box-shadow: 0 12px 50px rgba(231, 199, 155, 0.22);
}
.btn--enter:hover::before {
  transform: translateX(120%);
}
.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #171208;
  box-shadow: 0 10px 36px rgba(231, 199, 155, 0.14);
}
.btn--solid:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(231, 199, 155, 0.22);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-arrow:hover {
  color: var(--gold);
  border-color: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(231, 199, 155, 0.06);
  white-space: nowrap;
}
.tag--ghost {
  border-color: rgba(215, 163, 163, 0.34);
  color: var(--rose);
  background: rgba(215, 163, 163, 0.06);
}
.tag--example {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
}

.hint {
  margin: 38px 0 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(231, 199, 155, 0.35);
  max-width: 760px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.9;
}

.notice {
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold-3);
  border-radius: 4px 10px 10px 4px;
  background: rgba(231, 199, 155, 0.045);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.notice--warn {
  border-left-color: var(--rose);
  background: rgba(215, 163, 163, 0.05);
  color: #cbb7b4;
}
.notice code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
  white-space: nowrap;
  word-break: normal;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin: 86px 0 30px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.section-head .eyebrow {
  width: 100%;
  margin-bottom: -6px;
}
.section-head__note {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.section-head--sm {
  margin: 64px 0 24px;
}

.page-head {
  padding: clamp(18px, 4vw, 44px) 0 clamp(26px, 4vw, 40px);
}
.page-head .display {
  margin: 14px 0 16px;
}
.page-head__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.page-head__sep {
  width: 26px;
  height: 1px;
  background: var(--line);
}

/* ---------- 4. 封面 ---------- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(22px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(231, 199, 155, 0.06), transparent 70%),
    radial-gradient(80% 70% at 50% 110%, rgba(38, 43, 66, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.15), rgba(5, 7, 13, 0.7));
  transition: opacity 1s var(--ease), visibility 1s, filter 1s var(--ease);
}
body:not(.is-cover) .cover {
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  pointer-events: none;
}
html.deep-link .cover {
  display: none;
}

.cover__frame {
  position: relative;
  width: min(760px, 100%);
  margin: auto;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 6vw, 68px) clamp(38px, 5vw, 60px);
  text-align: center;
  border: 1px solid rgba(231, 199, 155, 0.16);
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(231, 199, 155, 0.055), transparent 60%),
    linear-gradient(165deg, rgba(13, 18, 31, 0.45), rgba(6, 9, 16, 0.2));
  box-shadow: inset 0 0 90px rgba(231, 199, 155, 0.025), 0 40px 120px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: coverIn 1.5s var(--ease) both;
}
.cover__frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(231, 199, 155, 0.075);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid rgba(231, 199, 155, 0.75);
  pointer-events: none;
}
.corner--tl {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.corner--tr {
  top: -1px;
  right: -1px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.cover__eyebrow {
  justify-content: center;
  color: rgba(231, 199, 155, 0.82);
  animation: fadeUp 1.2s 0.15s var(--ease) both;
}
.cover__eyebrow::before,
.cover__eyebrow::after {
  content: "";
  width: clamp(18px, 5vw, 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 199, 155, 0.5));
}
.cover__eyebrow::after {
  transform: rotate(180deg);
}

.constellation {
  width: clamp(128px, 20vw, 176px);
  height: auto;
  margin: clamp(20px, 3vh, 32px) auto clamp(6px, 1vh, 12px);
  opacity: 0.9;
  animation: fadeIn 1.8s 0.3s ease both;
}
.constellation__line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 3.2s 0.5s var(--ease) forwards;
}
.constellation__line--slow {
  animation-delay: 1.1s;
  animation-duration: 3.6s;
}
.constellation circle {
  animation: twinkle 3.6s ease-in-out infinite;
}
.constellation circle:nth-child(2n) {
  animation-delay: 0.8s;
}
.constellation circle:nth-child(3n) {
  animation-delay: 1.6s;
}

.cover__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(76px, 15vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  background: linear-gradient(180deg, #fffdf8 4%, #f4e3c6 40%, #d3ad7d 72%, #a97f50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 46px rgba(231, 199, 155, 0.16));
  animation: coverName 1.8s 0.1s var(--ease) both;
}

.cover__sub {
  display: flex;
  justify-content: center;
  gap: 0.52em;
  margin-top: clamp(12px, 2vh, 20px);
  padding-left: 0.52em;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(12px, 2.1vw, 15px);
  letter-spacing: 0;
  animation: fadeUp 1.2s 0.55s var(--ease) both;
}
.cover__sub span {
  display: inline-block;
  animation: letterGlow 5s ease-in-out infinite;
}
.cover__sub span:nth-child(2) {
  animation-delay: 0.35s;
}
.cover__sub span:nth-child(3) {
  animation-delay: 0.7s;
}
.cover__sub span:nth-child(4) {
  animation-delay: 1.05s;
}
.cover__sub span:nth-child(5) {
  animation-delay: 1.4s;
}

.cover__welcome {
  max-width: 468px;
  margin: clamp(20px, 3.5vh, 34px) auto clamp(24px, 4vh, 38px);
  color: #a9afbc;
  font-size: clamp(12.5px, 1.5vw, 14px);
  line-height: 2.08;
  letter-spacing: 0.045em;
  animation: fadeUp 1.3s 0.7s var(--ease) both;
}

.cover__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 36px);
  color: rgba(255, 255, 255, 0.36);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: fadeIn 1.4s 1.1s ease both;
}
.cover__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-3);
}

.cover__hint {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 8px;
  letter-spacing: 0.34em;
  white-space: nowrap;
  animation: fadeIn 2s 1.8s ease both;
}
.cover__hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(231, 199, 155, 0.5), transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}

/* ---------- 5. 应用外壳 / 顶栏 / 底部 ---------- */
.app {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top));
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), visibility 0.9s;
}
body:not(.is-cover) .app {
  opacity: 1;
  visibility: visible;
  transform: none;
}
html.deep-link .app {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) clamp(18px, 4vw, 44px) 0;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.topbar.is-scrolled {
  background: rgba(5, 8, 15, 0.86);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(231, 199, 155, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(231, 199, 155, 0.2), rgba(231, 199, 155, 0.02));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  user-select: none;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.brand:hover .brand__mark {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(231, 199, 155, 0.2);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand__text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.brand__text small {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.24em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  transition: color 0.3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--gold-2);
}
.nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.icon-btn:hover {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(231, 199, 155, 0.05);
}
.sound-btn .icon {
  width: 17px;
  height: 17px;
}

.main {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 48px);
  outline: none;
}

.view {
  display: none;
  padding: clamp(12px, 2.4vw, 26px) 0 0;
}
.view.is-active {
  display: block;
  animation: viewIn 0.75s var(--ease) both;
}

.footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 9vw, 110px);
  border-top: 1px solid var(--line-soft);
}
.footer__inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 44px clamp(18px, 4.5vw, 48px) calc(44px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer__brand {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.26em;
}
.footer__brand span {
  opacity: 0.5;
}
.footer__note {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.footer__meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 8px;
  letter-spacing: 0.3em;
}
.footer__meta span {
  opacity: 0.6;
}
.footer__top {
  margin-top: 22px;
  padding: 6px 2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer__top:hover {
  color: var(--gold);
  border-color: var(--line);
}

.dock {
  display: none;
}

/* ---------- 6. 首页 ---------- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  min-height: calc(100svh - var(--topbar-h) - 150px);
  padding: clamp(28px, 5vw, 64px) 0 clamp(30px, 5vw, 54px);
}

.home-title {
  margin: 18px 0 22px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.home-title em {
  display: inline-block;
  margin-left: 0.06em;
  font-style: italic;
  background: linear-gradient(120deg, #f6e8cf, #d9b382 60%, #f6e8cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(231, 199, 155, 0.12));
}
.home-hero__text .lead {
  max-width: 540px;
}

.home-days {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.home-days__caption {
  width: 100%;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.26em;
}
.home-days__num {
  font-family: var(--serif);
  font-size: clamp(58px, 7.4vw, 88px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fffaf0, #e7c79b 58%, #b98d5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-days__unit {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.home-days .tag {
  align-self: center;
  margin-left: 4px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
  margin-top: 34px;
}

.home-hero__art {
  display: flex;
  justify-content: center;
}
.orbit-art {
  position: relative;
  width: min(460px, 40vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-art__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 199, 155, 0.17), rgba(159, 182, 214, 0.05) 48%, transparent 70%);
  filter: blur(26px);
  animation: breathe 8s ease-in-out infinite;
}
.orbit-art__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(231, 199, 155, 0.16);
  animation: orbitSpin 60s linear infinite;
}
.orbit-art__ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(231, 199, 155, 0.7);
}
.orbit-art__ring--1 {
  inset: 4%;
  border-style: dashed;
  border-color: rgba(231, 199, 155, 0.12);
  animation-duration: 90s;
}
.orbit-art__ring--2 {
  inset: 18%;
  border-color: rgba(159, 182, 214, 0.16);
  animation-direction: reverse;
  animation-duration: 55s;
}
.orbit-art__ring--2::after {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(159, 182, 214, 0.6);
}
.orbit-art__ring--3 {
  inset: 31%;
  border-color: rgba(231, 199, 155, 0.1);
  animation-duration: 38s;
}
.orbit-art__ring--3::after {
  width: 3px;
  height: 3px;
  opacity: 0.6;
}
.orbit-art__planet {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 33%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 249, 236, 0.9), rgba(231, 199, 155, 0.45) 24%, rgba(120, 94, 68, 0.35) 56%, rgba(20, 24, 38, 0.9) 100%);
  box-shadow:
    inset -14px -18px 40px rgba(3, 5, 10, 0.7),
    0 0 70px rgba(231, 199, 155, 0.14);
}
.orbit-art__planet::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(231, 199, 155, 0.16);
}
.orbit-art__planet span {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 64px);
  color: rgba(22, 20, 20, 0.7);
  transform: translateY(-2%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.orbit-art__moon {
  position: absolute;
  top: 9%;
  right: 16%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f6e8cf;
  box-shadow: 0 0 0 6px rgba(246, 232, 207, 0.05), 0 0 26px rgba(246, 232, 207, 0.55);
  animation: moonFloat 7s ease-in-out infinite;
}
.orbit-art__dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.orbit-art__dot--1 {
  top: 30%;
  left: 14%;
}
.orbit-art__dot--2 {
  bottom: 22%;
  right: 24%;
  width: 2px;
  height: 2px;
  opacity: 0.6;
}
.orbit-art__label {
  position: absolute;
  color: rgba(255, 255, 255, 0.26);
  font-size: 7.5px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}
.orbit-art__label--1 {
  top: 20%;
  left: -2%;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
}
.orbit-art__label--2 {
  bottom: 14%;
  right: 2%;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.portal {
  --accent: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 60%),
    rgba(9, 13, 23, 0.35);
  transition: transform 0.55s var(--ease), border-color 0.55s var(--ease), box-shadow 0.55s var(--ease),
    background 0.55s var(--ease);
}
.portal::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 66%);
  opacity: 0;
  filter: blur(28px);
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.portal:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.portal:hover::before {
  opacity: 0.1;
}
.portal:hover::after {
  transform: translateX(120%);
}
.portal--photos {
  --accent: var(--gold);
}
.portal--timer {
  --accent: var(--blue);
}
.portal--games {
  --accent: var(--rose);
}
.portal--memories {
  --accent: var(--lilac);
}
.portal__no {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 199, 155, 0.2);
  opacity: 0.8;
  pointer-events: none;
}
.portal__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.portal__icon .icon {
  width: 19px;
  height: 19px;
}
.portal__body {
  margin-top: auto;
  padding-top: 26px;
}
.portal__label {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.28em;
}
.portal__body h3 {
  margin: 5px 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.2vw, 27px);
  letter-spacing: 0.03em;
}
.portal__body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.portal__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--muted-2);
  transition: color 0.4s ease, transform 0.4s var(--ease);
}
.portal__arrow .icon {
  width: 16px;
  height: 16px;
}
.portal:hover .portal__arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.quote-card {
  position: relative;
  margin: clamp(64px, 9vw, 96px) 0 20px;
  padding: clamp(38px, 6vw, 68px) clamp(10px, 4vw, 40px);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 50%, rgba(231, 199, 155, 0.05), transparent 70%);
}
.quote-card__star {
  width: 18px;
  height: 18px;
  margin: 0 auto 22px;
  color: var(--gold);
  opacity: 0.8;
  animation: twinkle 4s ease-in-out infinite;
}
.quote-card blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: #efe6d8;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.26em;
}
.quote-card__line {
  width: 30px;
  height: 1px;
  background: var(--line);
}

/* ---------- 7. 照片墙 ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 44px);
  align-items: start;
  padding: 14px clamp(4px, 1.4vw, 14px) 10px;
}
.polaroid {
  --tilt: 0deg;
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 12px 17px;
  border-radius: 2px;
  background: linear-gradient(160deg, #f7f2e7, #ece4d4);
  color: #2b261f;
  text-align: left;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.44), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
  transform: rotate(var(--tilt));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  cursor: zoom-in;
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%) rotate(-2.4deg);
  background: linear-gradient(180deg, rgba(238, 225, 202, 0.62), rgba(224, 208, 181, 0.38));
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(120, 100, 70, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(1px);
  z-index: 2;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.012);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.polaroid__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0e18;
}
.polaroid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}
.polaroid:hover .polaroid__media img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.02);
}
.polaroid__caption {
  display: block;
  padding: 14px 4px 0;
}
.polaroid__date {
  display: block;
  color: #8d7d64;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.polaroid__title {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #28221b;
}
.ph-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 3;
  padding: 4px 9px;
  border: 1px solid rgba(231, 199, 155, 0.35);
  border-radius: 999px;
  background: rgba(6, 9, 16, 0.74);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  backdrop-filter: blur(6px);
}

/* ---------- 8. 照片放大 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 32px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, 0.9);
  backdrop-filter: blur(18px) saturate(80%);
  -webkit-backdrop-filter: blur(18px) saturate(80%);
}
.lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  width: min(1080px, 100%);
  max-height: 86vh;
  max-height: min(860px, 88svh);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0d1320, #080b14);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.965) translateY(8px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}
.lightbox.is-open .lightbox__panel {
  transform: none;
  opacity: 1;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(5, 8, 14, 0.6);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), color 0.3s ease, border-color 0.3s ease;
}
.lightbox__close:hover {
  transform: rotate(90deg);
  color: var(--gold);
  border-color: var(--line);
}
.lightbox__close .icon {
  width: 17px;
  height: 17px;
}
.lightbox__media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(12px, 2vw, 20px);
  background: #05070d;
  border-right: 1px solid var(--line-soft);
}
.lightbox__imgwrap {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}
.lightbox__imgwrap img {
  width: 100%;
  height: 100%;
  max-height: calc(86vh - 150px);
  max-height: calc(88svh - 150px);
  object-fit: contain;
}
.lightbox__imgwrap .ph-badge {
  top: 14px;
  right: auto;
  left: 14px;
}
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}
.lightbox__navbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.lightbox__navbtn:hover {
  color: var(--gold);
  border-color: var(--line);
  background: rgba(231, 199, 155, 0.05);
}
.lightbox__navbtn:disabled {
  opacity: 0.3;
  cursor: default;
}
.lightbox__navbtn .icon {
  width: 16px;
  height: 16px;
}
.lightbox__counter {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.lightbox__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  overflow-y: auto;
}
.lightbox__body h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.3;
}
.lightbox__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 2.05;
  white-space: pre-line;
}
.lightbox__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.3em;
}
.lightbox__foot span:last-child {
  color: var(--gold);
}

/* ---------- 9. 恋爱计时 ---------- */
.timer-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 8px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(231, 199, 155, 0.08), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.timer-hero::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -55%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 182, 214, 0.08), transparent 65%);
  pointer-events: none;
}
.timer-big {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.5vw, 18px);
  margin-top: 14px;
}
.timer-big span {
  font-family: var(--serif);
  font-size: clamp(76px, 12.5vw, 150px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #fffdf8 0%, #f4e3c6 42%, #d0a874 76%, #a17a4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(231, 199, 155, 0.12));
}
.timer-big small {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.26em;
}
.timer-since {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.timer-sub {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.timer-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line-soft);
}
.timer-breakdown div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px clamp(4px, 1vw, 14px);
}
.timer-breakdown div + div::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 1px;
  background: var(--line-soft);
}
.timer-breakdown strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
}
.timer-breakdown span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.anniversary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 46px);
  margin-top: 24px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(80% 160% at 100% 50%, rgba(231, 199, 155, 0.09), transparent 62%),
    linear-gradient(140deg, rgba(231, 199, 155, 0.04), rgba(255, 255, 255, 0.012));
}
.anniversary::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(231, 199, 155, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.anniversary__intro h2 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.6vw, 32px);
  letter-spacing: 0.03em;
}
.anniversary__date {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.anniversary__msg {
  max-width: 460px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.9;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 9px;
}
.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.45);
}
.countdown strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
}
.countdown span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.2em;
}
.anniversary.is-today {
  border-color: rgba(231, 199, 155, 0.5);
  box-shadow: 0 0 60px rgba(231, 199, 155, 0.07) inset;
}
.anniversary.is-today .countdown strong {
  color: var(--gold);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.date-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01));
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}
.date-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}
.date-card.is-empty {
  border-style: dashed;
  opacity: 0.82;
}
.date-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.date-card__type {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.28em;
}
.date-card h3 {
  margin: 16px 0 5px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.date-card__date {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.date-card__note {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
}
.date-card__num {
  position: absolute;
  right: 14px;
  bottom: 0;
  font-family: var(--serif);
  font-size: 68px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 199, 155, 0.13);
  pointer-events: none;
}

/* ---------- 10. 游戏 ---------- */
.game-tabs {
  display: flex;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  overflow-x: auto;
  scrollbar-width: none;
}
.game-tabs::-webkit-scrollbar {
  display: none;
}
.game-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.game-tab__no {
  color: var(--gold-3);
  font-family: var(--serif);
  font-size: 10px;
}
.game-tab:hover {
  color: var(--gold-2);
}
.game-tab.is-active {
  color: var(--gold-2);
  background: rgba(231, 199, 155, 0.1);
  box-shadow: inset 0 0 0 1px rgba(231, 199, 155, 0.24);
}

.game-stage {
  position: relative;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(231, 199, 155, 0.05), transparent 62%),
    radial-gradient(50% 60% at 100% 100%, rgba(159, 182, 214, 0.045), transparent 65%),
    linear-gradient(160deg, rgba(12, 17, 29, 0.6), rgba(7, 10, 17, 0.4));
}
.game-stage::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 8%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(246, 232, 207, 0.6);
  box-shadow:
    -180px 120px 0 rgba(246, 232, 207, 0.32),
    -420px -30px 0 rgba(246, 232, 207, 0.4),
    -640px 180px 0 rgba(246, 232, 207, 0.22),
    -280px 330px 0 rgba(246, 232, 207, 0.25),
    -70px 60px 0 rgba(246, 232, 207, 0.3);
  pointer-events: none;
}
.game-panel {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  outline: none;
}

.quiz-intro {
  padding: clamp(12px, 3vw, 30px) 0;
  text-align: center;
}
.quiz-intro__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(231, 199, 155, 0.18), transparent 70%);
}
.quiz-intro__icon .icon {
  width: 25px;
  height: 25px;
}
.quiz-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.03em;
}
.quiz-intro .lead {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 13px;
}
.quiz-intro__meta {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.24em;
}
.quiz-intro .btn {
  margin-top: 26px;
}
.quiz-intro .notice {
  max-width: 580px;
  margin: 24px auto 0;
  text-align: left;
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.quiz-head__count {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.quiz-track {
  height: 2px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.quiz-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: width 0.55s var(--ease);
}
.quiz-question {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.9vw, 31px);
  line-height: 1.58;
  letter-spacing: 0.02em;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
}
.option:hover:not(:disabled) {
  border-color: rgba(231, 199, 155, 0.4);
  background: rgba(231, 199, 155, 0.055);
  transform: translateX(3px);
}
.option:disabled {
  cursor: default;
}
.option__key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
}
.option.is-selected {
  border-color: rgba(231, 199, 155, 0.55);
  background: rgba(231, 199, 155, 0.09);
}
.option.is-selected .option__key {
  background: var(--gold);
  border-color: var(--gold);
  color: #171208;
}
.option.is-correct {
  border-color: rgba(143, 191, 154, 0.55);
  background: rgba(143, 191, 154, 0.07);
}
.option.is-correct .option__key {
  border-color: rgba(143, 191, 154, 0.7);
  background: rgba(143, 191, 154, 0.15);
  color: #b8d8bd;
}
.option.is-wrong {
  border-color: rgba(215, 163, 163, 0.55);
  background: rgba(215, 163, 163, 0.07);
}
.option.is-wrong .option__key {
  border-color: rgba(215, 163, 163, 0.65);
  background: rgba(215, 163, 163, 0.12);
  color: #e3b5b5;
}

.quiz-feedback {
  margin-top: 20px;
  padding: 17px 20px;
  border-left: 2px solid var(--gold-3);
  border-radius: 0 10px 10px 0;
  background: rgba(231, 199, 155, 0.045);
  animation: fadeUp 0.45s var(--ease) both;
}
.quiz-feedback strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
}
.quiz-feedback p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
}
.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.quiz-result {
  padding: clamp(10px, 3vw, 26px) 0;
  text-align: center;
  animation: fadeUp 0.7s var(--ease) both;
}
.result-ring {
  position: relative;
  width: 158px;
  height: 158px;
  margin: 0 auto 24px;
}
.result-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.result-ring__track,
.result-ring__value {
  fill: none;
  stroke-width: 2;
}
.result-ring__track {
  stroke: rgba(255, 255, 255, 0.08);
}
.result-ring__value {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s var(--ease);
  filter: drop-shadow(0 0 6px rgba(231, 199, 155, 0.35));
}
.result-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.result-ring__num strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.result-ring__num span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.24em;
}
.quiz-result h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.04em;
}
.quiz-result__score {
  margin-top: 8px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.24em;
}
.quiz-result > p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.quiz-result .btn {
  margin-top: 26px;
}

/* 惊喜卡 */
.surprise-intro {
  padding: clamp(14px, 3vw, 34px) 0;
  text-align: center;
}
.surprise-deck {
  position: relative;
  width: 104px;
  height: 136px;
  margin: 0 auto 30px;
}
.surprise-deck__card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 199, 155, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(231, 199, 155, 0.16), transparent 60%),
    linear-gradient(160deg, #141a29, #090d17);
  color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.surprise-deck__card .icon {
  width: 26px;
  height: 26px;
  opacity: 0.85;
}
.surprise-deck__card:nth-child(1) {
  transform: rotate(-9deg) translate(-10px, 5px);
  opacity: 0.5;
}
.surprise-deck__card:nth-child(2) {
  transform: rotate(7deg) translate(9px, 1px);
  opacity: 0.72;
}
.surprise-deck__card:nth-child(3) {
  transform: rotate(-1deg);
}
.surprise-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: 0.03em;
}
.surprise-intro .lead {
  max-width: 500px;
  margin: 14px auto 0;
  font-size: 13px;
}
.surprise-intro__meta {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.24em;
}
.surprise-intro .btn {
  margin-top: 24px;
}
.surprise-intro .notice {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: left;
}

.surprise-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6px, 2vw, 18px) 0;
}
.surprise-context {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-align: center;
}
.surprise-card {
  position: relative;
  width: min(340px, 76vw);
  aspect-ratio: 3 / 4;
  perspective: 1400px;
}
.surprise-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.surprise-card.is-flipped .surprise-card__inner {
  transform: rotateY(180deg);
}
.surprise-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.surprise-face--front {
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(231, 199, 155, 0.34);
  background:
    radial-gradient(circle at 50% 34%, rgba(231, 199, 155, 0.14), transparent 62%),
    linear-gradient(160deg, #151b2b, #090d17 70%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.surprise-face--front::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(231, 199, 155, 0.11);
  border-radius: 10px;
  pointer-events: none;
}
.surprise-face--front::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 20%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    80px -20px 0 rgba(255, 255, 255, 0.4),
    140px 40px 0 rgba(255, 255, 255, 0.28),
    20px 60px 0 rgba(255, 255, 255, 0.3),
    180px 120px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.surprise-face--front .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--gold);
  opacity: 0.8;
  animation: twinkle 4s ease-in-out infinite;
}
.surprise-face__kicker {
  color: var(--gold-3);
  font-size: 8px;
  letter-spacing: 0.32em;
}
.surprise-face__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.1em;
  color: var(--gold-2);
}
.surprise-face__sub {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}
.surprise-face__date {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-align: center;
}
.surprise-face--back {
  transform: rotateY(180deg);
  justify-content: space-between;
  border: 1px solid rgba(120, 94, 62, 0.22);
  background:
    radial-gradient(circle at 82% 8%, rgba(231, 199, 155, 0.5), transparent 40%),
    linear-gradient(160deg, #f7efe1, #eadfcb);
  color: #332b20;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}
.surprise-face--back::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(122, 94, 60, 0.18);
  border-radius: 10px;
  pointer-events: none;
}
.surprise-face--back[data-type="约会"] {
  background:
    radial-gradient(circle at 82% 8%, rgba(215, 163, 163, 0.5), transparent 42%),
    linear-gradient(160deg, #f6eee4, #e9d9cd);
}
.surprise-face--back[data-type="惊喜"] {
  background:
    radial-gradient(circle at 82% 8%, rgba(189, 178, 216, 0.45), transparent 42%),
    linear-gradient(160deg, #f4efe6, #e7ddda);
}
.surprise-back__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.surprise-back__type {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid rgba(122, 94, 60, 0.32);
  border-radius: 999px;
  color: #7c5f39;
  font-size: 8.5px;
  letter-spacing: 0.22em;
}
.surprise-back__star {
  color: rgba(122, 94, 60, 0.5);
  font-family: var(--serif);
  font-size: 18px;
}
.surprise-back__text {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 12px 2px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: pre-line;
}
.surprise-back__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(122, 94, 60, 0.18);
  padding-top: 12px;
  color: rgba(60, 48, 34, 0.52);
  font-size: 7.5px;
  letter-spacing: 0.24em;
}
.surprise-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.surprise-actions .link-arrow {
  color: var(--muted-2);
}
.surprise-count {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

/* ---------- 11. 回忆录 ---------- */
.timeline {
  position: relative;
  margin-top: 14px;
}
.timeline__group {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
}
.timeline__year {
  position: sticky;
  top: calc(var(--topbar-h) + 26px);
  align-self: start;
  padding-top: 22px;
  text-align: right;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(231, 199, 155, 0.5);
}
.timeline__items {
  position: relative;
  padding: 4px 0 30px clamp(22px, 3vw, 36px);
  border-left: 1px solid var(--line-soft);
}
.memory {
  position: relative;
  margin-bottom: 20px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.008));
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}
.memory:hover {
  border-color: var(--line);
  transform: translateX(3px);
}
.memory::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(-1 * clamp(22px, 3vw, 36px) - 4.5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 199, 155, 0.08), 0 0 14px rgba(231, 199, 155, 0.4);
}
.memory__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.memory__date {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.memory h3 {
  margin: 13px 0 9px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.memory p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2;
  white-space: pre-line;
}
.memory__photo {
  margin-top: 18px;
  border-radius: 9px;
  overflow: hidden;
  max-width: 440px;
}
.memory__photo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.timeline__end {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border: 1px dashed rgba(231, 199, 155, 0.2);
  border-radius: 14px;
  text-align: center;
}
.timeline__end::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(22px, 3vw, 36px) - 3px);
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--gold-3);
}
.timeline__end strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
}
.timeline__end span {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 12. 提示 / 动画 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: min(88vw, 440px);
  padding: 11px 20px;
  border: 1px solid rgba(231, 199, 155, 0.3);
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.94);
  color: var(--gold-2);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  backdrop-filter: blur(14px);
}
.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.is-cover .toast {
  display: none;
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0f18;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes coverIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes coverName {
  from {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.06em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: 0.015em;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes moonFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}
@keyframes letterGlow {
  0%,
  100% {
    opacity: 0.72;
    text-shadow: 0 0 0 rgba(231, 199, 155, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(231, 199, 155, 0.3);
  }
}
@keyframes hintPulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 0;
    padding-top: 40px;
  }
  .orbit-art {
    width: min(380px, 38vw);
  }
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .anniversary {
    grid-template-columns: 1fr;
  }
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-h: 64px;
  }
  .nav {
    display: none;
  }
  .topbar {
    gap: 14px;
  }
  .sound-btn {
    margin-left: auto;
  }
  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .brand__text strong {
    font-size: 14px;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(6, 9, 16, 0.94), rgba(4, 6, 12, 0.985));
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
  }
  .dock a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
  }
  .dock a .icon {
    width: 19px;
    height: 19px;
  }
  .dock a.is-active {
    color: var(--gold);
  }
  .dock a.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    height: 2px;
    margin-left: -8px;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(231, 199, 155, 0.6);
  }
  .app {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .footer {
    margin-top: 60px;
  }
  .footer__inner {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 24px;
  }
  .home-hero__text {
    text-align: center;
  }
  .home-hero__text .eyebrow {
    justify-content: center;
  }
  .home-hero__text .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .home-days,
  .home-actions {
    justify-content: center;
  }
  .home-days__caption {
    text-align: center;
  }
  .orbit-art {
    width: min(300px, 66vw);
    margin-top: 4px;
  }
  .orbit-art__label--1 {
    left: 4%;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal {
    min-height: 172px;
    padding: 22px;
  }
  .portal__body {
    padding-top: 20px;
  }
  .portal__body p {
    max-width: 82%;
  }
  .portal__no {
    font-size: 52px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timer-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .timer-big span {
    font-size: clamp(68px, 17vw, 108px);
  }
  .timer-breakdown {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 22px;
  }
  .timer-breakdown div:first-child::before {
    display: none;
  }

  .lightbox__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    max-height: 90svh;
    overflow-y: auto;
  }
  .lightbox__media {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .lightbox__imgwrap img {
    max-height: 46vh;
    max-height: 46svh;
  }
  .lightbox__body {
    padding: 22px clamp(18px, 5vw, 28px) 28px;
  }
  .lightbox__body h2 {
    font-size: 26px;
    margin: 8px 0 12px;
  }
  .lightbox__text {
    font-size: 12.5px;
  }
  .lightbox__foot {
    margin-top: 20px;
  }

  .game-tabs {
    width: 100%;
    border-radius: 14px;
  }
  .game-tab {
    flex: none;
  }
  .game-stage {
    min-height: 480px;
    padding: 22px 18px;
  }

  .timeline__group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .timeline__year {
    position: static;
    padding: 20px 0 0;
    text-align: left;
    font-size: 30px;
  }
  .timeline__items {
    padding-left: 20px;
  }
  .memory::before {
    left: -24.5px;
  }
  .timeline__end::before {
    left: -23.5px;
  }

  .page-head {
    padding-top: 30px;
  }
  .section-head {
    margin: 64px 0 24px;
  }
  .section-head__note {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }
  .cover__frame {
    padding: 46px 20px 38px;
  }
  .cover__name {
    font-size: clamp(66px, 21vw, 96px);
  }
  .cover__welcome {
    font-size: 12.5px;
    line-height: 2;
  }
  .cover__meta {
    font-size: 7.5px;
    gap: 9px;
    letter-spacing: 0.2em;
  }
  .cover__hint {
    display: none;
  }
  .cover__eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.22em;
  }
  .constellation {
    width: 120px;
  }
  .btn--enter {
    padding: 14px 28px;
    width: 100%;
    max-width: 280px;
  }

  .page-head .display {
    font-size: clamp(34px, 9.4vw, 46px);
  }
  .home-title {
    font-size: clamp(38px, 10.5vw, 52px);
  }
  .home-days {
    margin-top: 26px;
  }
  .home-days__num {
    font-size: clamp(54px, 15vw, 72px);
  }
  .home-days .tag {
    margin-left: 0;
  }
  .home-actions {
    gap: 14px;
  }
  .home-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .home-actions .link-arrow {
    padding: 4px;
  }

  .section-head h2 {
    font-size: 26px;
  }
  .quote-card blockquote {
    font-size: 22px;
    line-height: 1.7;
  }
  .quote-card {
    padding: 34px 6px;
  }

  .photo-grid {
    gap: 18px 14px;
    padding: 20px 2px 0;
  }
  .polaroid {
    padding: 8px 8px 12px;
  }
  .polaroid::before {
    width: 58px;
    height: 17px;
    top: -8px;
  }
  .polaroid__caption {
    padding: 10px 3px 0;
  }
  .polaroid__date {
    font-size: 7px;
    letter-spacing: 0.12em;
  }
  .polaroid__title {
    font-size: 14px;
  }
  .ph-badge {
    top: 7px;
    right: 7px;
    left: auto;
    font-size: 7px;
    padding: 3px 6px;
  }
  .hint {
    font-size: 11px;
    margin-top: 28px;
  }
  .notice {
    padding: 12px 14px;
    font-size: 11.5px;
    line-height: 1.85;
  }

  .view--timer .page-head {
    padding-top: 12px;
    padding-bottom: 18px;
  }
  .view--timer .page-head .display {
    margin: 10px 0;
    font-size: clamp(32px, 8.9vw, 40px);
  }
  .view--timer .page-head .lead {
    font-size: 12.5px;
  }
  .timer-hero {
    gap: 20px;
    padding: 22px 18px;
  }
  .timer-big {
    margin-top: 10px;
  }
  .timer-big span {
    font-size: clamp(62px, 19vw, 86px);
  }
  .timer-big small {
    font-size: 10px;
  }
  .timer-since {
    margin-top: 16px;
  }
  .timer-breakdown {
    padding-top: 16px;
  }
  .timer-breakdown strong {
    font-size: 30px;
  }
  .view--timer .notice {
    margin: 14px 0;
    padding: 12px 14px;
    font-size: 11.5px;
    line-height: 1.85;
  }
  .anniversary {
    padding: 24px 18px;
    margin-top: 16px;
  }
  .countdown {
    gap: 6px;
  }
  .countdown div {
    padding: 12px 4px 9px;
  }
  .countdown strong {
    font-size: 25px;
  }
  .countdown span {
    font-size: 7.5px;
    letter-spacing: 0.14em;
  }
  .date-card {
    min-height: 176px;
    padding: 20px;
  }

  .game-tabs {
    padding: 4px;
    gap: 2px;
  }
  .game-tab {
    padding: 10px 12px;
    font-size: 11px;
  }
  .game-tab__no {
    display: none;
  }
  .game-stage {
    padding: 20px 14px;
    border-radius: 16px;
    min-height: 440px;
  }
  .quiz-question {
    font-size: 21px;
  }
  .option {
    padding: 14px;
    font-size: 12.5px;
    gap: 11px;
  }
  .option__key {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .quiz-result__ring {
    margin-bottom: 18px;
  }
  .surprise-card {
    width: min(310px, 78vw);
  }
  .surprise-face {
    padding: 24px 22px;
  }
  .surprise-back__text {
    font-size: 19px;
  }
  .surprise-actions {
    gap: 8px;
  }
  .surprise-actions .btn {
    padding: 12px 20px;
  }

  .timeline__year {
    font-size: 28px;
  }
  .memory {
    padding: 20px;
  }
  .memory h3 {
    font-size: 21px;
  }
  .memory p {
    font-size: 12px;
  }
  .timeline__items {
    padding-left: 16px;
  }
  .memory::before {
    left: -20.5px;
    top: 30px;
  }
  .timeline__end::before {
    left: -19.5px;
  }

  .footer__brand {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .footer__note {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .cover__frame {
    padding: 38px 16px 32px;
  }
  .cover__name {
    font-size: 62px;
  }
  .countdown strong {
    font-size: 22px;
  }
  .photo-grid {
    gap: 14px 10px;
  }
  .polaroid__title {
    font-size: 13px;
  }
  .portal {
    min-height: 160px;
    padding: 20px;
  }
}

@media (max-height: 760px) and (max-width: 900px) {
  .cover__frame {
    padding: 32px 20px 28px;
  }
  .cover__name {
    font-size: clamp(58px, 17vw, 88px);
  }
  .constellation {
    width: 100px;
    margin-top: 14px;
  }
  .cover__welcome {
    margin: 16px auto 20px;
    font-size: 12px;
    line-height: 1.9;
  }
  .cover__meta {
    margin-top: 20px;
  }
}

/* ---------- 14. 无障碍 / 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .constellation__line {
    stroke-dashoffset: 0;
  }
  .cursor-glow {
    display: none;
  }
}
