:root {
  color-scheme: dark;
  --bg: #060711;
  --bg-2: #0a0c1a;
  --text: #f3f1ff;
  --muted: #a7a2c4;
  --violet: #8b5cf6;
  --blue: #5b7cfa;
  --cyan: #22d3ee;
  --green: #3fd08a;
  --glass: rgba(22, 24, 45, .52);
  --glass-2: rgba(28, 31, 58, .72);
  --stroke: rgba(255, 255, 255, .13);
  --stroke-soft: rgba(255, 255, 255, .07);
  --glow: rgba(139, 92, 246, .30);
  --max: 980px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STSong", "SimSun", "Iowan Old Style", Georgia, serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #a9bcff; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  padding: 1px 6px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font: .88em ui-monospace, SFMono-Regular, Menlo, monospace;
}
.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

/* ── 作者更新浮标 ── */
.author-update {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .08)),
    rgba(10, 12, 26, .68);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #e8e4ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.author-update:hover {
  text-decoration: none;
  transform: translate(-50%, -2px);
  border-color: rgba(139, 92, 246, .55);
  box-shadow:
    0 16px 42px rgba(91, 124, 250, .22),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.author-update:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: update-pulse 2.6s ease-out infinite;
}
.update-arrow {
  color: var(--muted);
  font-size: 11px;
  transition: transform .18s ease, color .18s ease;
}
.author-update:hover .update-arrow { transform: translateY(2px); color: var(--cyan); }
@keyframes update-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .35); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}

/* ── 极光背景 ── */
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(91, 124, 250, .18), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.blob-violet {
  top: 8%; left: 6%;
  width: 46vmax; height: 46vmax;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, .75), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-blue {
  top: 40%; right: -6%;
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle at 50% 50%, rgba(91, 124, 250, .65), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-cyan {
  bottom: -14%; left: 30%;
  width: 38vmax; height: 38vmax;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .45), transparent 65%);
  animation: drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}
@keyframes drift-b {
  to { transform: translate3d(-10vmax, -6vmax, 0) scale(1.08); }
}
@keyframes drift-c {
  to { transform: translate3d(6vmax, -8vmax, 0) scale(1.16); }
}

/* ── 玻璃 ── */
.glass {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 55%),
    var(--glass);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 0 1px rgba(139, 92, 246, .06);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(139, 92, 246, .12), transparent 38%, rgba(34, 211, 238, .10));
  opacity: .7;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── 标题 ── */
.masthead {
  position: relative;
  isolation: isolate;
  padding: 118px 0 96px;
  text-align: center;
}
.masthead::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  filter: blur(20px);
  z-index: -1;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 14px rgba(34, 211, 238, .7);
}
.masthead h1 {
  margin: 0;
  font-size: clamp(3.4rem, 14vw, 8.5rem);
  line-height: .98;
  letter-spacing: -.06em;
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 28%, #5b7cfa 58%, #22d3ee 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 70px rgba(139, 92, 246, .35);
  animation: title-flow 12s ease-in-out infinite alternate;
}
@keyframes title-flow {
  to { background-position: 100% 50%; }
}
.tagline {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
}
.title-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.glass-pill {
  padding: 6px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #cfcaff;
  font-size: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glass-pill-link {
  display: inline-flex;
  align-items: center;
  border-color: rgba(34, 211, 238, .42);
  background: rgba(34, 211, 238, .09);
  color: var(--cyan);
  transition: border-color .2s, background .2s, transform .2s;
}
.glass-pill-link:hover {
  border-color: rgba(34, 211, 238, .8);
  background: rgba(34, 211, 238, .15);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── 区块 ── */
.section { padding: 74px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -.03em;
}
.section-desc { margin: 0; color: var(--muted); font-size: 15px; }
.section-more { display: flex; gap: 20px; margin: 18px 0 0; font-size: 13px; }

/* ── 进度面板 ── */
.pa {
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 55%),
    var(--glass-2);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.pa-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pa-headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pa-pct {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -.5px;
  background: linear-gradient(100deg, #c4b5fd, #5b7cfa 60%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pa-frac { color: var(--muted); font-size: .9rem; }
.pa-link { color: #a9bcff; font-size: .9rem; }
.pa-bar {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
}
.pa-bar-lg { height: 13px; }
.pa-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--violet), var(--blue) 55%, var(--cyan));
  box-shadow: 0 0 18px rgba(91, 124, 250, .55);
  transition: width .5s ease;
}
.pa-status { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.pa-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: .82rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pa-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.pa-dot.todo { background: #8f8aa8; }
.pa-dot.prog { background: #e0b341; }
.pa-dot.done { background: var(--green); box-shadow: 0 0 10px rgba(63, 208, 138, .7); }
.pa-phases { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.pa-phase {
  display: grid;
  grid-template-columns: 132px 1fr 52px;
  align-items: center;
  gap: 12px;
  font-size: .86rem;
}
.pa-phase-name { color: var(--text); white-space: nowrap; }
.pa-phase-num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; font-size: .82rem; }
.pa-recent { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--stroke-soft); }
.pa-recent-title { margin-bottom: 10px; color: var(--muted); font-size: .78rem; letter-spacing: .5px; }
.pa-recent-list { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pa-recent-item { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .86rem; }
.pa-recent-state { flex: 0 0 auto; font-size: .9rem; }
.pa-recent-state.closed { color: var(--green); }
.pa-recent-state.open { color: #e0b341; font-size: .7rem; }
.pa-recent-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pa-recent-link:hover { color: #a9bcff; }
.pa-recent-time { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }
.pa-updated { margin-top: 16px; color: var(--muted); font-size: .76rem; }
.pa-fallback { margin: 0; color: var(--muted); font-size: .9rem; }

/* ── 文案 ── */
#story { scroll-margin-top: 96px; }
.story-card { max-width: 820px; }
.essay { padding: 46px 52px 40px; }
.essay::after { opacity: .36; }
.essay > * { position: relative; z-index: 1; }
.story-badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(139, 92, 246, .18);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.essay-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .015em;
  color: #d8d3ee;
}
.essay-body p { margin: 0 0 1.28em; }
.essay-body p:last-child { margin-bottom: 0; }
.essay-lead { font-size: 1.1em; color: #f3f1ff; }
.essay-beat {
  color: #f7f4ff;
  font-size: 1.12em;
  letter-spacing: .02em;
}

/* 终端式结尾 */
.essay-terminal {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(5, 8, 20, .72), rgba(10, 12, 26, .55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 14px 40px rgba(0, 0, 0, .18);
  font-family: var(--mono);
  font-size: clamp(.92rem, 1.8vw, 1.02rem);
  line-height: 1.8;
  color: #e9e6ff;
}
.term-line { display: flex; align-items: baseline; gap: 10px; min-height: 1.8em; }
.term-prompt { color: var(--cyan); opacity: .75; user-select: none; }
.term-cn { color: #c4b5fd; }
.term-cursor {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, .55);
  animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* 落款 */
.essay-sign {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke-soft);
  text-align: right;
}
.essay-name {
  margin: 0;
  color: #f3f1ff;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.essay-name::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .9), rgba(34, 211, 238, .8));
}
.essay-date {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
}

/* ── 致谢 ── */
.thanks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.thanks-card {
  display: block;
  padding: 22px;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.thanks-card > * { position: relative; z-index: 1; }
.thanks-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, .55);
  box-shadow: 0 26px 70px rgba(91, 124, 250, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.thanks-role { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.thanks-card h3 { margin: 8px 0 6px; font-size: 17px; }
.thanks-card p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.thanks-license { color: #a9bcff; font-size: 12px; }
.thanks-foot { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

/* ── 页脚 ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--stroke-soft);
  color: var(--muted);
  font-size: 12px;
}
.footer div { display: flex; gap: 10px; align-items: baseline; }
.footer strong { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer nav a { color: var(--muted); }
.footer-note { margin: 0; }

/* ── 响应式 ── */
@media (max-width: 760px) {
  .thanks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page { width: min(100% - 28px, var(--max)); }
  .masthead { padding: 84px 0 66px; }
  .masthead h1 { font-size: clamp(3rem, 20vw, 5rem); }
  .section { padding: 54px 0; }
  .glass { border-radius: 18px; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
  .pa { padding: 18px; border-radius: 20px; }
  .pa-pct { font-size: 1.9rem; }
  .pa-phase { grid-template-columns: 100px 1fr 46px; gap: 8px; }
  .author-update { top: max(10px, env(safe-area-inset-top)); padding: 7px 12px; font-size: 11px; }
  .story-card { padding: 30px 24px 28px; }
  .essay-body { font-size: 16px; line-height: 1.9; }
  .essay-terminal { margin-top: 28px; padding: 15px 16px; }
  .essay-sign { margin-top: 30px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
