/* =========================================================
   星河为证 · 青春奋进主题 H5
   style.css —— 全站样式（移动端优先 / 深空主题）
   目录：
   01 变量与基础
   02 布局容器与通用组件
   03 顶部导航与抽屉
   04 首页
   05 抽屉式内容页（历程 / 人物 / 数据）
   06 互动页
   07 关于页
   08 页脚
   09 响应式与无障碍
   ========================================================= */

/* 注册可动画的自定义属性，供环形进度条平滑过渡 */
@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ---------- 01 变量与基础 ---------- */
:root {
  --bg: #060E1C;
  --bg-2: #0A1729;
  --bg-3: #12243F;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(216, 169, 79, 0.24);
  --line-soft: rgba(255, 255, 255, 0.1);
  --gold: #D8A94F;
  --gold-soft: #F0D69B;
  --red: #C8342B;
  --ink: #F2EEE6;
  --muted: #9BAEC5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bar-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* 星点背景：全站统一的深空质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1100px 600px at 82% -8%, rgba(40, 74, 128, 0.55), transparent 62%),
    radial-gradient(900px 520px at 8% 102%, rgba(120, 40, 34, 0.28), transparent 64%),
    radial-gradient(2px 2px at 18% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 14%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 62%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(1px 1px at 88% 74%, rgba(255, 255, 255, 0.35), transparent 60%);
  background-color: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(200, 52, 43, 0.4); color: #fff; }

/* ---------- 02 布局容器与通用组件 ---------- */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-b));
  position: relative;
}

.section {
  padding: 44px 22px 8px;
}

/* 章节编号 + 标题 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 7vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.section-num {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 169, 79, 0.35);
  margin-bottom: 6px;
}

/* 分隔细线 */
.hair {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* 卡片 */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover, .card:focus-within { border-color: var(--line); }

/* 竖向标签条：饰线 + 小标题 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  background: rgba(216, 169, 79, 0.06);
}

/* 印章装饰块 */
.seal {
  position: absolute;
  right: 22px;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 52, 43, 0.7);
  color: #E9827A;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(6deg);
  background: rgba(200, 52, 43, 0.08);
  border-radius: 3px;
  opacity: 0.9;
}

/* 滚动进场动效（JS 用 IntersectionObserver 挂 .is-in） */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---------- 03 顶部导航与抽屉 ---------- */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(6, 14, 28, 0.92), rgba(6, 14, 28, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.14em;
}
.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(200, 52, 43, 0.8);
}

.menu-btn {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  box-shadow: 0 5px 0 var(--gold), 0 -5px 0 var(--gold);
  transition: transform 0.3s var(--ease);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.drawer.open .drawer-mask { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(78%, 320px);
  height: 100%;
  padding: calc(22px + var(--bar-h)) 24px 30px;
  background: linear-gradient(180deg, #0B1A30, #060E1C 70%);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-panel h2 {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
}

.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 16px;
  letter-spacing: 0.06em;
}
.drawer-nav a i {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold);
  opacity: 0.7;
  width: 22px;
}
.drawer-nav a.active { color: var(--gold-soft); }
.drawer-nav a.active i { opacity: 1; }

.drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

/* ---------- 04 首页 ---------- */
.hero {
  position: relative;
  min-height: 640px;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding: 0 22px 34px;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 34%;
  z-index: -2;
  animation: heroZoom 16s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.5) 0%, rgba(6, 14, 28, 0.1) 30%, rgba(6, 14, 28, 0.72) 62%, rgba(6, 14, 28, 0.94) 80%, var(--bg) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(200, 52, 43, 0.16), transparent 60%);
}

.hero-inner { width: 100%; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 13vw, 54px);
  line-height: 1.14;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  margin-bottom: 14px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  max-width: 20em;
  font-size: 14.5px;
  line-height: 1.9;
  color: #D8E2EF;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-meta div {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(216, 169, 79, 0.1), transparent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.hero-meta b {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold-soft);
  line-height: 1.3;
}
.hero-meta span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.scroll-hint i {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* 导语区 */
.intro-quote {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid rgba(200, 52, 43, 0.55);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  color: #E6DFD2;
}

.keywords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.keywords div {
  padding: 14px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(216, 169, 79, 0.12), transparent 70%);
}
.keywords b {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.keywords span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; }

/* 轮播图 */
.slider {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  background: var(--bg-3);
}
.slider-track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 20, 0.9));
}
.slide-caption b {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.06em;
}
.slide-caption span { font-size: 11.5px; color: var(--muted); }

.slider-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.slider-dots button {
  width: 18px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.slider-dots button[aria-current="true"] { background: var(--gold); width: 26px; }

/* 数字滚动 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.stat {
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(18, 36, 63, 0.9), rgba(10, 23, 41, 0.55));
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  color: var(--gold-soft);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.stat b small { font-size: 13px; margin-left: 2px; color: var(--gold); }
.stat span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }

/* 火箭升空动效 */
.motion {
  position: relative;
  margin-top: 14px;
  height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, #0A1729 0%, #12243F 62%, #2A1A20 100%);
}
.motion-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff, transparent),
    radial-gradient(1px 1px at 30% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 62% 24%, #fff, transparent),
    radial-gradient(1px 1px at 84% 40%, #fff, transparent),
    radial-gradient(1px 1px at 48% 8%, #fff, transparent);
  animation: starShift 6s linear infinite;
  opacity: 0.7;
}
@keyframes starShift {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}

.rocket {
  position: absolute;
  left: 50%;
  bottom: -92px;
  width: 40px;
  margin-left: -20px;
  animation: launch 3.6s cubic-bezier(0.55, 0.06, 0.55, 0.95) infinite;
}
@keyframes launch {
  0% { transform: translateY(0) scale(0.92); opacity: 0; }
  12% { opacity: 1; }
  72% { transform: translateY(-208px) scale(1); opacity: 1; }
  100% { transform: translateY(-300px) scale(1.06); opacity: 0; }
}
.rocket-body {
  height: 96px;
  border-radius: 50% 50% 12% 12% / 26% 26% 8% 8%;
  background: linear-gradient(90deg, #E9E4D8, #FFFDF6 46%, #B9B4A6);
  box-shadow: inset -6px 0 10px rgba(0, 0, 0, 0.22), 0 0 16px rgba(255, 250, 235, 0.28);
  position: relative;
}
.rocket-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 12px;
  height: 30px;
  margin-left: -6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--red), #7C1E19);
  box-shadow: 0 0 8px rgba(200, 52, 43, 0.6);
}
.rocket-fin {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 26px solid #9C9789;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}
.rocket-fin.left { left: -12px; border-left-width: 0; border-right: 14px solid #9C9789; }
.rocket-fin.right { right: -12px; border-right-width: 0; border-left: 14px solid #9C9789; }
.rocket-flame {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 16px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #FFF3C4, #FFB02E 45%, rgba(200, 52, 43, 0.6) 90%);
  filter: blur(1px);
  animation: flame 0.28s ease-in-out infinite alternate;
  transform-origin: top center;
}
@keyframes flame {
  from { transform: scaleY(0.86) scaleX(1.04); opacity: 0.85; }
  to { transform: scaleY(1.18) scaleX(0.94); opacity: 1; }
}

.motion-ground {
  position: absolute;
  inset: auto 0 -2px 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(216, 169, 79, 0.22), transparent);
  border-top: 1px solid rgba(216, 169, 79, 0.4);
}
.motion-label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
}
.motion-label b { display: block; font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.1em; }

/* 子页面入口 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.entry {
  position: relative;
  display: block;
  padding: 18px 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: linear-gradient(155deg, rgba(18, 36, 63, 0.92), rgba(9, 20, 36, 0.6));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.entry:active { transform: scale(0.97); }
.entry:hover { border-color: var(--line); }
.entry::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 169, 79, 0.22), transparent 68%);
}
.entry i {
  display: block;
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 6px;
  letter-spacing: 0.16em;
}
.entry b { display: block; font-size: 16px; letter-spacing: 0.08em; margin-bottom: 4px; }
.entry span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 05 内容页通用 ---------- */
.page-head {
  padding: 34px 22px 0;
  position: relative;
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 8.4vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.1em;
  margin: 8px 0 12px;
}
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); margin: 0 6px; }

/* 时间线 */
.timeline { position: relative; margin-top: 26px; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(216, 169, 79, 0.15) 70%, transparent);
}
.tl-item {
  position: relative;
  padding: 0 0 26px 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  transition: box-shadow 0.6s var(--ease), background 0.6s var(--ease);
}
.tl-item.is-in::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 169, 79, 0.14), 0 0 14px rgba(216, 169, 79, 0.5);
}
.tl-year {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 2px;
}
.tl-item h3 { font-size: 17px; letter-spacing: 0.04em; margin-bottom: 6px; }
.tl-item p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* 人物卡 */
.person {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(18, 36, 63, 0.9), rgba(9, 20, 36, 0.7));
  box-shadow: var(--shadow);
}
.person-img { position: relative; aspect-ratio: 4 / 3; }
.person-img img { width: 100%; height: 100%; object-fit: cover; }
.person-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 20, 36, 0.95));
}
.person-role {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 14, 28, 0.6);
}
.person-body { padding: 16px 18px 18px; }
.person-body h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.person-body .en { font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 12px; }
.person-body p { font-size: 13.5px; line-height: 1.9; color: #C9D5E3; }
.person-quote {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--red);
  background: rgba(200, 52, 43, 0.08);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  color: #F0E4DA;
}
.person-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.person-facts div {
  padding: 9px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.person-facts b { display: block; font-family: var(--font-serif); font-size: 15px; color: var(--gold-soft); }
.person-facts span { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }

/* 数据页 */
.big-num {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.big-num div {
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(18, 36, 63, 0.92), rgba(9, 20, 36, 0.55));
}
.big-num b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.big-num b small { font-size: 13px; color: var(--gold); }
.big-num span { font-size: 11.5px; color: var(--muted); }

.bars { margin-top: 22px; display: grid; gap: 16px; }
.bar-item .bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  margin-bottom: 7px;
}
.bar-item .bar-top em { font-style: normal; color: var(--muted); }
.bar-item .bar-top b { font-family: var(--font-serif); color: var(--gold-soft); font-size: 14px; }
.bar-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(200, 52, 43, 0.85), var(--gold));
  box-shadow: 0 0 12px rgba(216, 169, 79, 0.45);
  transition: width 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}

/* 环形图（纯 CSS conic-gradient） */
.ring-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.ring-card {
  display: grid;
  place-items: center;
  padding: 18px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.09) 0);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  position: relative;
  transition: --p 1.2s var(--ease);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #0B1A30;
}
.ring b {
  position: relative;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-soft);
}
.ring-card span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.data-note {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(155, 174, 197, 0.75);
  line-height: 1.7;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* 对比表格 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
}
.tbl caption {
  caption-side: top;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-bottom: 8px;
}
.tbl th,
.tbl td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}
.tbl th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tbl thead th { border-bottom-color: rgba(216, 169, 79, 0.35); }
.tbl td { color: #C9D5E3; }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ---------- 06 互动页 ---------- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
}
.tabs button {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(120deg, rgba(200, 52, 43, 0.85), rgba(216, 169, 79, 0.85));
  color: #1A1108;
  font-weight: 600;
}
.tab-panel { padding-top: 18px; }
.tab-panel[hidden] { display: none; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(216, 169, 79, 0.65);
  box-shadow: 0 0 0 3px rgba(216, 169, 79, 0.14);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field-error {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  font-size: 11.5px;
  color: #F09A92;
}
.field.is-error input,
.field.is-error textarea { border-color: rgba(240, 154, 146, 0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), #A6221B 55%, var(--gold));
  color: #FFF6E9;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(200, 52, 43, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: default; box-shadow: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  box-shadow: none;
  width: auto;
  padding: 8px 16px;
  font-size: 12.5px;
}

.msg-list { margin-top: 18px; display: grid; gap: 10px; }
.msg {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  animation: msgIn 0.4s var(--ease) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.msg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.msg-head b { font-size: 13px; letter-spacing: 0.06em; color: var(--gold-soft); }
.msg-head span { font-size: 10.5px; color: var(--muted); }
.msg p { font-size: 13.5px; line-height: 1.8; color: #D6DFEA; margin: 0; }
.empty {
  padding: 22px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

/* 打卡 */
.checkin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.checkin-count {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--muted);
}
.checkin-count b {
  font-size: 30px;
  color: var(--gold-soft);
  margin-right: 4px;
  vertical-align: -3px;
}
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.checkin-grid div {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.checkin-grid div.done {
  background: linear-gradient(150deg, rgba(216, 169, 79, 0.9), rgba(200, 52, 43, 0.85));
  color: #1A1108;
  font-weight: 700;
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(200, 52, 43, 0.25);
}
/* 今天：未打卡时也给一个金色描边，提示“就是这一格” */
.checkin-grid div[aria-current="date"]:not(.done) {
  border-color: rgba(216, 169, 79, 0.75);
  color: var(--gold-soft);
}
.checkin-week {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: rgba(155, 174, 197, 0.7);
}

/* 投票 */
.vote-list { display: grid; gap: 12px; margin-top: 8px; }
.vote-row {
  position: relative;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s var(--ease);
}
.vote-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(216, 169, 79, 0.22), rgba(200, 52, 43, 0.16));
  transition: width 0.7s var(--ease);
}
.vote-row .vote-text {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  letter-spacing: 0.06em;
}
.vote-row .vote-text b { font-family: var(--font-serif); color: var(--gold-soft); font-size: 14px; }
.vote-row.selected { border-color: rgba(216, 169, 79, 0.7); }

/* ---------- 07 关于页 ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.team div {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(18, 36, 63, 0.9), rgba(9, 20, 36, 0.6));
}
.team b { display: block; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 6px; }
.team i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.team span { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

.list-plain { display: grid; gap: 10px; margin-top: 14px; }
.list-plain div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.8;
  color: #CBD6E3;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.list-plain div em {
  flex: 0 0 auto;
  font-style: normal;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 11px;
  padding-top: 3px;
  letter-spacing: 0.08em;
}
.list-plain div:last-child { border-bottom: 0; }

/* ---------- 08 页脚 ---------- */
.site-footer {
  margin: 44px 22px 0;
  padding: 22px 0 10px;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.footer-note { font-size: 11px; color: rgba(155, 174, 197, 0.7); line-height: 1.9; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 10px;
  font-size: 11.5px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* 悬浮回到顶部 */
.to-top {
  position: fixed;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: calc(18px + var(--safe-b));
  z-index: 30;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 14, 28, 0.82);
  color: var(--gold);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  backdrop-filter: blur(6px);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 09 响应式与无障碍 ---------- */
/* 大屏：保留 H5 单栏形态，外加阴影边界，避免内容被拉宽 */
@media (min-width: 520px) {
  .page {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.55);
  }
  .hero { min-height: 620px; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: 46px; }
}

/* 小屏（320px 级别）收紧间距 */
@media (max-width: 340px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .page-head { padding-left: 16px; padding-right: 16px; }
  .keywords { grid-template-columns: 1fr; }
  .stats, .big-num { grid-template-columns: 1fr; }
}

/* 横屏短视口：hero 降低高度 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 460px; }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .rocket, .rocket-flame, .motion-stars, .scroll-hint i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slider-track { transition: none; }
  .bar-fill, .ring { transition: none; }
}

/* 键盘可见焦点 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
