:root {
  --ink: #e5ebff;
  --muted: #a4b2d1;
  --line: #2a355a;
  --paper: #070d20;
  --accent: #a2baff;
  --action: #4e64c8;
  --accent-soft: #1b2950;
  --surface: #111a32;
  --surface-raised: #16213c;
  --field: #0b142a;
  --night: #090f25;
  --star: #e0c68e;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --ink: #25352e;
  --muted: #68766b;
  --line: #dfe5da;
  --paper: #f5f6f2;
  --accent: #315d48;
  --action: #315d48;
  --accent-soft: #eaf0e4;
  --surface: #fff;
  --surface-raised: #f0f3e9;
  --field: #fbfcf8;
  --night: #fbfcf8;
  --star: #9c7940;
  color-scheme: light;
}
html { background: var(--paper); }
[data-theme="day"] .night-sky, [data-theme="day"] .sky-vista, [data-theme="day"] .sky-toggle { display: none; }
[data-theme="day"] .star-layer, [data-theme="day"] .meteor, [data-theme="day"] .sky-vista::before, [data-theme="day"] .sky-vista::after { animation-play-state: paused; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 7px 12px; border: 1px solid #384b73; border-radius: 20px; background: #14213d; color: #c9d8ff; font: 12px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { border-color: #8ba5ec; background: #1c2c50; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-theme="day"] .theme-toggle { border-color: #cbd8c6; background: #fff; color: #315d48; }
[data-theme="day"] .theme-toggle:hover { border-color: #789778; background: #edf3e8; }
[data-theme="day"] .brand-mark { border-color: #c6d3bf; background: #315d48; color: #f0e5b5; }
[data-theme="day"] .brand-mark::after { border-color: #d8e1bf; }
[data-theme="day"] .brand-cn { color: #284a37; }
[data-theme="day"] .brand-en { color: #73836b; }
@media (max-width: 980px) { .sky-toggle .sky-label { display: none; } }
@media (max-width: 700px) { .theme-toggle { padding: 7px 9px; font-size: 11px; } }
body { position: relative; isolation: isolate; }
body > .app-shell, body > .topbar, body > main { position: relative; z-index: 1; }
.night-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 78% 4%, #31597b40, transparent 55%), radial-gradient(ellipse at 18% 83%, #174e5633, transparent 48%), #060d1c; }
.sky-vista { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #071322 url("./sky-vista.svg") center / 100% 100% no-repeat; }
.sky-vista::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 25%, #b8d5df21, transparent 21%), radial-gradient(ellipse at 70% 58%, #5bafa115, transparent 35%); animation: sky-breathe 16s ease-in-out infinite alternate; }
.sky-vista::after { content: ""; position: absolute; top: 21%; left: 74%; width: 25px; height: 25px; background: #f5ebcd; clip-path: polygon(50% 0, 57% 41%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%); animation: polaris-glow 8s ease-in-out infinite alternate; }
@keyframes sky-breathe { from { opacity: .3; } to { opacity: 1; } }
@keyframes polaris-glow { from { opacity: .65; transform: scale(.85); } to { opacity: 1; transform: scale(1.08); } }
.star-layer { position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; color: #d5e3ff; animation: star-twinkle 9s ease-in-out infinite alternate; }
.star-layer:nth-child(2) { width: 1.5px; height: 1.5px; animation-delay: -3s; animation-duration: 12s; }
.star-layer:nth-child(3) { width: 2px; height: 2px; animation-delay: -7s; animation-duration: 15s; }
.meteor { position: absolute; width: 150px; height: 1px; top: 14%; left: 67%; opacity: 0; background: linear-gradient(90deg, transparent, #a3c6fa); transform: rotate(-35deg); animation: meteor-pass 22s linear 4s infinite; }
.meteor-two { top: 45%; left: 42%; animation-delay: 13s; animation-duration: 29s; }
.sky-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; flex-shrink: 0; padding: 7px 10px; border: 1px solid #384b73; border-radius: 20px; background: #14213d; color: #c9d8ff; font: 11px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif; cursor: pointer; }
.sky-toggle::before { content: "✦"; color: var(--star); font-size: 13px; }
.sky-toggle:hover { border-color: #8ba5ec; background: #1c2c50; }
.sky-toggle:focus-visible { outline: 2px solid #a2baff; outline-offset: 3px; }
.sky-toggle[aria-pressed="false"] { color: #a0aecb; }
.sky-paused .star-layer, .sky-paused .meteor, .sky-paused .sky-vista::before, .sky-paused .sky-vista::after, .sky-hidden .star-layer, .sky-hidden .meteor, .sky-hidden .sky-vista::before, .sky-hidden .sky-vista::after { animation-play-state: paused; }
.sky-paused .meteor { visibility: hidden; }
@keyframes star-twinkle { from { opacity: .24; } to { opacity: .88; } }
@keyframes meteor-pass { 0% { opacity: 0; transform: translate(0,0) rotate(-35deg); } 2% { opacity: .8; } 7% { opacity: 0; transform: translate(-350px,245px) rotate(-35deg); } 100% { opacity: 0; transform: translate(-350px,245px) rotate(-35deg); } }
@media (max-width: 700px) { .sky-toggle { min-height: 44px; padding: 6px 8px; font-size: 10px; } .sky-toggle .sky-label { display: none; } .meteor-two { display: none; } }
@media (prefers-reduced-motion: reduce) { .star-layer, .meteor, .sky-vista::before, .sky-vista::after { animation: none !important; } .star-layer { opacity: .6; } .meteor { display: none; } }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #617398;
  border-radius: 13px;
  background: #1a3154;
  color: var(--star);
  font-size: 27px;
  line-height: 1;
  font-weight: 400;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 15px;
  border: 1px solid #a3b9db;
  border-radius: 50%;
  transform: rotate(-35deg);
}
.brand-label { display: block; }
.brand-cn { display: block; font-size: 21px; font-weight: 650; line-height: 1.4; letter-spacing: 2px; }
.brand-en { display: block; margin-top: 4px; color: #9bafd0; font-size: 8px; font-weight: 500; letter-spacing: 1.6px; line-height: 1.4; }
@media (max-width: 700px) {
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; font-size: 24px; }
  .brand-cn { font-size: 19px; }
  .brand-en { font-size: 7px; letter-spacing: 1.2px; }
}
