/* 群星占位站。只用系统字体，不加载任何第三方资源。配色取自桌面端原型 v3.6。 */
:root {
  color-scheme: dark light;
  --bg: #080B16;
  --surface: #111730;
  --line: rgba(255, 255, 255, .08);
  --ink: #E8EAF4;
  --ink-2: #A8AFCB;
  --ink-3: #8A91AE;
  --accent: #E6C27A;
  --night: #05070E;
  --night-2: #0E1428;
  --night-ink: #E9EBF7;
  --night-ink-2: #A9B0CF;
  --star: #F2D08B;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #EEF0F6;
    --surface: #FFFFFF;
    --line: #DCE0EA;
    --ink: #141A2C;
    --ink-2: #4D5470;
    --ink-3: #626984;
    --accent: #3442C4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* 夜空 */
.sky {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 78% 0%, #1A2250 0%, var(--night-2) 42%, var(--night) 100%);
  color: var(--night-ink);
  padding: 64px 0 52px;
}
.sky .wrap { position: relative; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.field .s { fill: #C9CFEA; opacity: .55; }
.field .l { fill: none; stroke: rgba(242, 208, 139, .30); stroke-width: 1; stroke-linejoin: round; }
.field .c { fill: #DCE1F5; }
.field .lit { fill: var(--star); }
.field .halo { fill: var(--star); opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  .field .t0 { animation: twinkle 5s ease-in-out infinite; }
  .field .t1 { animation: twinkle 6.5s ease-in-out 1.2s infinite; }
  .field .t2 { animation: twinkle 8s ease-in-out 2.4s infinite; }
  .field .halo { animation: breathe 4.5s ease-in-out infinite; }
}
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: .15; } }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-weight: 600;
  letter-spacing: .06em;
}
.mark svg { width: 26px; height: 26px; fill: var(--star); }
.mark .en { color: var(--night-ink-2); font-weight: 500; letter-spacing: .02em; }
/* 夜空里的链接在浅色模式下也保持金色，保证对比度 */
.sky a { color: var(--star); }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 4.8vw, 42px);
  line-height: 1.38;
  margin: 0 0 14px;
  color: #F5F6FB;
}
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--night-ink-2); margin: 0 0 30px; }
.status {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(242, 208, 139, .32);
  border-radius: 12px;
  background: rgba(242, 208, 139, .07);
  color: #F1E6C9;
  font-size: 14px;
  line-height: 1.65;
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 10px 2px rgba(242, 208, 139, .55);
  transform: translateY(-1px);
}

/* 正文 */
main section { padding: 30px 0; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a { font-weight: 600; }
.note p { color: var(--ink-2); }
.en-block p { line-height: 1.7; }

footer { padding-top: 26px; padding-bottom: 48px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
footer p { margin: 0 0 4px; }
footer a { color: inherit; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost .mark { justify-content: center; }
.lost h1 { font-size: clamp(24px, 4vw, 34px); }

@media (max-width: 560px) {
  .sky { padding: 48px 0 40px; }
  .field { opacity: .7; }
}
