/* ============================================================
   魔法纪录中文化 · MagirecoCN (magi.madoka-realms.top) — 主样式表
   设计基调：拂晓晴空的希望结界 × 现代克制的玻璃拟态
   继承自圆环之领域（Madoka Realms）设计语言，主色偏粉以贴合魔法纪录主视觉
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  /* 背景：拂晓晴空——晨曦白粉 → 薰衣草 → 天青 */
  --bg-top: #fdf3f7;
  --bg-mid: #f3edfb;
  --bg-low: #eef5fb;

  /* 主色 A · 魔法少女粉（偏粉，契合魔法纪录主视觉） */
  --pink: #ff8fab;
  --pink-deep: #e75f87;   /* 亮底上保证对比度的深粉 */
  --pink-soft: #ffc2d1;

  /* 主色 B · 灵魂宝石紫 */
  --purple: #7b5ea7;
  --purple-light: #a98bff;

  /* 点缀 */
  --gold: #c99a3f;        /* 愿望燃烧的金黄 */
  --cyan: #4fb3c9;        /* 契约清蓝 */

  /* 文字 */
  --ink: #2e2350;         /* 标题墨紫 */
  --text: #4a3f63;
  --text-dim: #7a7093;
  --line: rgba(123, 94, 167, 0.2);
  --line-light: rgba(123, 94, 167, 0.12);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-card: rgba(255, 255, 255, 0.72);
  --glass-sub: rgba(255, 255, 255, 0.48);
  --glass-hover: rgba(255, 255, 255, 0.9);

  /* 字体族 */
  --font-serif: "EB Garamond", "Noto Serif SC", serif;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-rune: "MadokaRunes", var(--font-serif);
  --font-mono: "JetBrains Mono", monospace;

  /* 辉光与阴影 */
  --glow-pink: 0 6px 24px rgba(255, 143, 171, 0.35), 0 2px 50px rgba(255, 143, 171, 0.16);
  --glow-purple: 0 6px 24px rgba(169, 139, 255, 0.28), 0 2px 50px rgba(169, 139, 255, 0.14);
  --shadow-card: 0 10px 30px rgba(123, 94, 167, 0.08), 0 2px 10px rgba(255, 143, 171, 0.06);

  /* 状态色 */
  --color-ok: #059669;
  --color-ok-bg: rgba(5, 150, 105, 0.1);
  --color-warn: #d97706;
  --color-warn-bg: rgba(217, 119, 6, 0.1);
  --color-bad: #dc2626;
  --color-bad-bg: rgba(220, 38, 38, 0.1);

  --radius: 18px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  color-scheme: light;
}

/* ---------- 夜间模式 (Night / 深邃夜幕) ---------- */
html[data-theme="night"] {
  --bg-top: #0d0f1f;
  --bg-mid: #14152e;
  --bg-low: #0a0c18;

  --pink: #ff8fab;
  --pink-deep: #f472b6;
  --pink-soft: rgba(255, 143, 171, 0.2);
  --purple: #c084fc;
  --purple-light: #a98bff;
  --gold: #fbbf24;
  --cyan: #38bdf8;

  --ink: #fdf2f8;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --line: rgba(169, 139, 255, 0.25);
  --line-light: rgba(169, 139, 255, 0.14);
  --glass: rgba(20, 22, 46, 0.65);
  --glass-card: rgba(20, 22, 46, 0.78);
  --glass-sub: rgba(28, 30, 62, 0.65);
  --glass-hover: rgba(36, 39, 78, 0.88);

  --glow-pink: 0 6px 24px rgba(244, 114, 182, 0.35), 0 2px 60px rgba(244, 114, 182, 0.18);
  --glow-purple: 0 6px 24px rgba(192, 132, 252, 0.3), 0 2px 60px rgba(192, 132, 252, 0.16);
  --shadow-card: 0 14px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(169, 139, 255, 0.08);

  --color-ok: #34d399;
  --color-ok-bg: rgba(52, 211, 153, 0.14);
  --color-warn: #fbbf24;
  --color-warn-bg: rgba(251, 191, 36, 0.14);
  --color-bad: #f87171;
  --color-bad-bg: rgba(248, 113, 113, 0.14);
  color-scheme: dark;
}

/* 魔女文字字体 */
@font-face {
  font-family: "MadokaRunes";
  src: url("../fonts/MadokaRunes-2.0.ttf") format("truetype");
  font-display: swap;
}

/* ---------- 1. 基础与排版 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(255, 194, 209, 0.45), transparent 60%),
    radial-gradient(900px 650px at 8% 22%, rgba(169, 139, 255, 0.2), transparent 58%),
    radial-gradient(1000px 800px at 55% 105%, rgba(201, 154, 63, 0.1), transparent 55%),
    linear-gradient(175deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-low) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="night"] body {
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(231, 95, 135, 0.25), transparent 60%),
    radial-gradient(900px 650px at 8% 22%, rgba(169, 139, 255, 0.2), transparent 58%),
    radial-gradient(1000px 800px at 55% 105%, rgba(79, 179, 201, 0.15), transparent 55%),
    linear-gradient(175deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-low) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; }
a { color: var(--pink-deep); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--purple-light); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(255, 143, 171, 0.35); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--glass-card); color: var(--ink);
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- 2. 魔女文字 (.rune) ---------- */
.rune {
  font-family: var(--font-rune);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--purple);
  text-shadow: 0 0 16px rgba(169, 139, 255, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
  cursor: help;
}
.rune:hover {
  color: var(--pink-deep);
  text-shadow: 0 0 20px rgba(255, 143, 171, 0.6);
}

/* ---------- 3. 通用组件与布局 ---------- */
.section {
  position: relative;
  max-width: 74rem;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
}

.section__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.4rem, 5vw, 3.8rem);
}
.section__rune {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 0.4rem;
  opacity: 0.9;
}
.section__title {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--ink), var(--pink-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__desc {
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
}

/* 按钮体系 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn:hover {
  border-color: var(--pink);
  background: var(--glass-hover);
  color: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: var(--glow-pink);
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 18px rgba(231, 95, 135, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 26px rgba(231, 95, 135, 0.5);
  color: #fff !important;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
}

.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* 徽章 Badge */
.badge {
  display: inline-flex; align-items: center;
  font-style: normal;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
}
.badge--release { color: var(--color-ok); background: var(--color-ok-bg); border-color: rgba(5, 150, 105, 0.25); }
.badge--asset   { color: var(--pink-deep); background: rgba(255, 143, 171, 0.15); border-color: rgba(255, 143, 171, 0.3); }
.badge--probe   { color: var(--purple-light); background: rgba(169, 139, 255, 0.15); border-color: rgba(169, 139, 255, 0.3); }
.badge--live    { color: var(--gold); background: rgba(201, 154, 63, 0.15); border-color: rgba(201, 154, 63, 0.3); }
.badge--open    { color: var(--cyan); background: rgba(79, 179, 201, 0.15); border-color: rgba(79, 179, 201, 0.3); }
.badge--doc     { color: var(--text-dim); background: var(--glass-sub); border-color: var(--line-light); }
.badge--portal  { color: var(--purple); background: rgba(123, 94, 167, 0.15); border-color: var(--line); }
.badge--faq     { color: var(--pink-deep); background: rgba(231, 95, 135, 0.12); }

/* 滚动显现动画 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.6rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
  box-shadow: 0 4px 20px rgba(123, 94, 167, 0.05);
  transition: all 0.3s ease;
}

.nav__logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.nav__logo-badge {
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  background: var(--glass-hover);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-pink);
}
.nav__logo-rune {
  font-size: 1.15rem;
  color: var(--pink-deep);
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex; align-items: center; gap: 1.4rem;
}
.nav__links a:not(.nav__cta) {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.03em;
  padding: 0.3rem 0;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--pink-deep);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta).active::after {
  width: 100%;
}
.nav__links a:not(.nav__cta):hover {
  color: var(--pink-deep);
}

.nav__ctrl {
  background: var(--glass-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all 0.2s ease;
}
.nav__ctrl:hover {
  border-color: var(--pink);
  color: var(--ink);
}

.nav__cta {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff !important;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(231, 95, 135, 0.3);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(231, 95, 135, 0.45);
}

@media (max-width: 820px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- 5. Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: grid; place-items: center;
  overflow: hidden;
  padding: 6.5rem 1.25rem 4rem;
}

.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 万花筒玻璃碎片 */
.hero__shards { position: absolute; inset: 0; pointer-events: none; }
.shard {
  position: absolute; display: block;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.2), rgba(169, 139, 255, 0.14) 55%, rgba(201, 154, 63, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 6px 24px rgba(169, 139, 255, 0.12);
  animation: shard-drift 16s ease-in-out infinite alternate;
}
.shard--1 { width: 150px; height: 190px; top: 12%; left: 7%;  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 8% 82%); animation-duration: 19s; }
.shard--2 { width: 90px;  height: 120px; top: 64%; left: 13%; clip-path: polygon(0 22%, 82% 0, 100% 74%, 30% 100%); animation-duration: 23s; animation-delay: -6s; }
.shard--3 { width: 200px; height: 150px; top: 18%; right: 6%; clip-path: polygon(24% 0, 100% 18%, 82% 92%, 0 70%);  animation-duration: 26s; animation-delay: -11s; }
.shard--4 { width: 110px; height: 140px; top: 68%; right: 12%;clip-path: polygon(50% 0, 100% 60%, 60% 100%, 0 44%);  animation-duration: 21s; animation-delay: -3s; }
@keyframes shard-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(18px, -30px, 0) rotate(9deg); }
}

/* 灵魂宝石 / 齿轮状结界同心旋转 SVG */
.hero__ring {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0.95;
}
.hero__ring svg { width: min(88vmin, 640px); height: auto; }
.ring-spin     { transform-origin: 300px 300px; animation: ring-rotate 80s linear infinite; }
.ring-spin-rev { transform-origin: 300px 300px; animation: ring-rotate 60s linear infinite reverse; }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.hero__content { position: relative; text-align: center; max-width: 58rem; }

.hero__whisper {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  opacity: 0.7;
  margin-bottom: clamp(1rem, 2.5vw, 1.8rem);
  animation: whisper-float 7s ease-in-out infinite alternate;
}
@keyframes whisper-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.hero__title { display: grid; gap: 0.4rem; }
.hero__title-rune {
  font-size: clamp(2rem, 6.8vw, 4.2rem);
  line-height: 1.15;
  color: var(--pink-deep);
  text-shadow: 0 0 28px rgba(255, 143, 171, 0.45), 0 0 80px rgba(169, 139, 255, 0.3);
}
.hero__title-cn {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 7.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ink);
  text-shadow: 0 4px 36px rgba(255, 143, 171, 0.4);
}

.hero__subtitle { margin-top: clamp(1rem, 2.5vw, 1.6rem); display: grid; gap: 0.3rem; }
.hero__subtitle-rune { font-size: clamp(0.95rem, 2vw, 1.2rem); opacity: 0.85; }
.hero__subtitle-cn { color: var(--purple-light); letter-spacing: 0.18em; font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 500; }

.hero__tagline {
  margin: clamp(1.2rem, 2.8vw, 1.8rem) auto 0;
  max-width: 42rem;
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  line-height: 1.8;
}

.hero__actions {
  margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
}

/* 快捷分类入口 chips */
.hero__chips {
  margin-top: clamp(1.6rem, 3.5vw, 2.2rem);
  display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center;
}
.chip {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem; letter-spacing: 0.05em;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.chip .rune { font-size: 0.9em; }
.chip:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: var(--glow-pink); color: var(--ink); }

.hero__scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 1.4rem;
  animation: hint-bob 2.2s ease-in-out infinite;
}
@keyframes hint-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 6. 结界入口 (Navigate) ---------- */
.realms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 760px) { .realms { grid-template-columns: repeat(2, 1fr); } }

.realm {
  position: relative;
  padding: 2rem 1.8rem 1.6rem;
  border-radius: var(--radius);
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  scroll-margin-top: 5.5rem;
}
.realm::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--purple-light), transparent);
  opacity: 0.75; transition: opacity 0.35s ease;
}
.realm:hover { transform: translateY(-4px); box-shadow: var(--glow-pink); }
.realm:hover::before { opacity: 1; }

.realm__head { margin-bottom: 1.2rem; }
.realm__rune { font-size: 0.85rem; margin-bottom: 0.25rem; opacity: 0.85; }
.realm__title {
  font-size: 1.4rem; font-weight: 600;
  display: flex; align-items: baseline; gap: 0.6rem;
  color: var(--ink);
}
.realm__en { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; color: var(--pink-deep); letter-spacing: 0.05em; }
.realm__desc { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.3rem; }

.realm__links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.rlink {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--glass-sub);
  border: 1px solid var(--line-light);
  color: var(--text);
  transition: all 0.2s ease;
}
.rlink:hover {
  background: var(--glass-hover);
  border-color: var(--pink);
  transform: translateX(3px);
  color: var(--ink);
}
.rlink__name {
  font-weight: 600; font-size: 0.94rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.rlink__desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }

/* ---------- 7. 独有区块：线路与在线配置自检条 (Status Bar) ---------- */
.status-card {
  background: var(--glass-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.status-card__header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 1rem;
}
.status-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
}
.status-pill.ok   { color: var(--color-ok); background: var(--color-ok-bg); border: 1px solid rgba(5, 150, 105, 0.25); }
.status-pill.slow { color: var(--color-warn); background: var(--color-warn-bg); border: 1px solid rgba(217, 119, 6, 0.25); }
.status-pill.bad  { color: var(--color-bad); background: var(--color-bad-bg); border: 1px solid rgba(220, 38, 38, 0.25); }
.status-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 10px currentColor;
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.status-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.status-item {
  background: var(--glass-sub);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.status-item__lbl { font-size: 0.82rem; color: var(--text-dim); }
.status-item__val { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--ink); }

/* ---------- 8. 关于何为记录 (About) ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 820px) { .about__grid { grid-template-columns: 240px 1fr; } }

.about__gem {
  display: flex; justify-content: center; align-items: center;
}
.soulgem {
  position: relative; width: 150px; height: 210px;
  display: grid; place-items: center;
}
.soulgem__stone {
  width: 100px; height: 140px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(135deg, var(--pink), var(--purple-light) 65%, var(--gold));
  box-shadow: 0 10px 40px rgba(255, 143, 171, 0.45);
  animation: gem-breathe 4s ease-in-out infinite alternate;
}
@keyframes gem-breathe {
  from { transform: scale(1); filter: brightness(1); }
  to   { transform: scale(1.05); filter: brightness(1.15); box-shadow: 0 14px 50px rgba(169, 139, 255, 0.55); }
}

.about__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--pink-deep);
  border-left: 3px solid var(--pink);
  padding-left: 1.2rem;
  margin-bottom: 1.4rem;
}

.about__text p { margin-bottom: 1rem; color: var(--text); }
.about__text strong { color: var(--ink); font-weight: 600; }

.about__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}
.stat {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.stat__num {
  font-family: var(--font-mono); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700; color: var(--ink); line-height: 1.1;
}
.stat__label { font-size: 0.84rem; color: var(--text-dim); }

/* ---------- 9. 轮回的年表 (Timeline) ---------- */
.timeline__track {
  list-style: none; position: relative;
  max-width: 48rem; margin: 0 auto;
}
.timeline__track::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--purple-light), var(--gold), transparent);
}

.timeline__item {
  position: relative;
  padding-left: 54px;
  margin-bottom: 2.2rem;
}
.timeline__node {
  position: absolute; left: 10px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-top);
  border: 3px solid var(--pink);
  box-shadow: 0 0 12px var(--pink);
  z-index: 2;
}
.timeline__body {
  background: var(--glass-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}
.timeline__body:hover { transform: translateY(-2px); border-color: var(--pink); }

.timeline__rune {
  font-size: 0.82rem; margin-bottom: 0.3rem;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.timeline__phase {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--pink-deep); font-weight: 600;
}
.timeline__title { font-size: 1.22rem; margin-bottom: 0.4rem; color: var(--ink); }
.timeline__desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

/* ---------- 10. 留下名字的人 (Contributors) ---------- */
.contributors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem;
}

.contrib {
  background: var(--glass-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  transition: all 0.3s ease;
}
.contrib:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
  color: var(--ink);
}

.contrib__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.contrib__avatar--pink   { background: rgba(255, 143, 171, 0.2); color: var(--pink-deep); border: 1px solid var(--pink); }
.contrib__avatar--purple { background: rgba(169, 139, 255, 0.2); color: var(--purple-light); border: 1px solid var(--purple-light); }
.contrib__avatar--gold   { background: rgba(201, 154, 63, 0.2); color: var(--gold); border: 1px solid var(--gold); }
.contrib__avatar--cyan   { background: rgba(79, 179, 201, 0.2); color: var(--cyan); border: 1px solid var(--cyan); }
.contrib__avatar--red    { background: rgba(220, 38, 38, 0.2); color: var(--pink-deep); border: 1px solid var(--pink-deep); }
.contrib__avatar--empty  { background: var(--glass-sub); color: var(--text-dim); border: 1px dashed var(--line); font-size: 1.4rem; }

.contrib__name { font-size: 1.15rem; color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.contrib__role { font-size: 0.85rem; color: var(--pink-deep); font-weight: 500; }
.contrib__desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- 11. 常见问题 (FAQ) ---------- */
.faq-list {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 52rem; margin: 0 auto;
}
.faq-item {
  background: var(--glass-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.faq-question {
  padding: 1.2rem 1.6rem;
  cursor: pointer;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
  transition: all 0.2s ease;
}
.faq-question:hover { color: var(--pink-deep); background: var(--glass-hover); }
.faq-item[open] .faq-question { border-bottom: 1px solid var(--line-light); color: var(--pink-deep); }
.faq-answer {
  padding: 1.2rem 1.6rem;
  font-size: 0.92rem; color: var(--text); line-height: 1.8;
}

/* ---------- 12. 页脚 (Footer) ---------- */
.footer {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(123, 94, 167, 0.08) 50%, rgba(255, 143, 171, 0.12));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__rune { font-size: 1rem; margin-bottom: 0.4rem; opacity: 0.85; }
.footer__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem;
  margin-bottom: 2rem;
}
.footer__links a {
  font-size: 0.95rem; color: var(--text); font-weight: 500;
}
.footer__links a:hover { color: var(--pink-deep); }
.footer__dot { color: var(--line); }

.footer__note {
  max-width: 48rem; margin: 0 auto 1.4rem;
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.7;
}

.footer__copy {
  font-size: 0.85rem; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  flex-wrap: wrap;
}
.footer__copy-rune { font-size: 0.95rem; color: var(--pink-deep); }

/* ---------- 13. 自定义光晕光标与无障碍 ---------- */
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
