:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --surface: rgba(24, 23, 39, .84);
  --surface-raised: rgba(32, 30, 52, .88);
  --line: rgba(174, 153, 255, .17);
  --text: #f5f1ff;
  --muted: #aaa5bf;
  --dim: #79748f;
  --accent: #b59aff;
  --accent-bright: #d4c5ff;
  --glow: rgba(127, 85, 255, .18);
  --max: 1020px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 50% -20%, rgba(111, 75, 198, .2), transparent 55%), var(--bg);
  font: 16px/1.65 "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-bright); }
.topbar {
  position: sticky; top: 0; z-index: 5;
  height: 68px; padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 18, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand, .nav-actions { display: flex; align-items: center; }
.brand { gap: 11px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; display: block; object-fit: contain;
  filter: drop-shadow(0 0 14px var(--glow));
}
.nav-actions { gap: 27px; color: var(--muted); font-size: 14px; }
.nav-actions .language { color: var(--accent-bright); }
main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero { position: relative; padding: clamp(72px, 12vw, 132px) 0 76px; }
.hero::after {
  content: ""; position: absolute; z-index: -1; top: 54px; right: 2%; width: 300px; height: 220px;
  background: radial-gradient(ellipse, rgba(133, 91, 255, .2), transparent 68%); filter: blur(24px); pointer-events: none;
}
.eyebrow { margin: 0 0 12px; color: #78ded1; font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { color: var(--accent); padding: 0 5px; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 76px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
.intro { max-width: 580px; margin: 20px 0 22px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.back-link { display: inline-flex; color: var(--accent-bright); font-size: 14px; font-weight: 600; }
.history-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 42px; padding-bottom: 70px; }
.version-index { position: sticky; top: 92px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.version-index .eyebrow { margin-bottom: 4px; }
.version-index h2 { margin-bottom: 15px; font-size: 20px; }
.version-index-list { display: grid; gap: 5px; max-height: min(62vh, 560px); overflow-y: auto; }
.version-index-list button { width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.version-index-list button:hover, .version-index-list button[aria-current="location"] { border-color: var(--line); color: var(--text); background: rgba(181,154,255,.1); }
.release-section { min-width: 0; padding: 30px 0 20px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 4px; }
h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.035em; }
.count { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.release-list { position: relative; display: grid; gap: 17px; }
.release-list::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 19px; width: 1px; background: linear-gradient(var(--accent), rgba(181,154,255,.08)); }
.release-card {
  position: relative; margin-left: 39px; padding: 25px clamp(20px, 4vw, 34px) 27px; scroll-margin-top: 84px;
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, var(--surface-raised), var(--surface));
  box-shadow: 0 18px 45px rgba(0,0,0,.16); animation: enter .42s both;
}
.release-card::before {
  content: ""; position: absolute; top: 31px; left: -29px; width: 10px; height: 10px; border: 3px solid var(--bg);
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(181,154,255,.5), 0 0 18px var(--glow);
}
.release-card.latest { border-color: rgba(181,154,255,.4); box-shadow: 0 20px 55px rgba(68,44,130,.17); }
.release-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.release-version { margin: 0; font-size: clamp(21px, 3vw, 27px); line-height: 1.25; letter-spacing: -.035em; font-weight: 700; }
.latest-badge { padding: 4px 9px; border-radius: 999px; color: #201738; background: linear-gradient(120deg, #cbb7ff, #9be7df); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.release-date { margin-left: auto; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.release-notes { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 23px; }
.release-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.release-downloads a { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-bright); background: rgba(181,154,255,.07); font-size: 12px; font-weight: 600; }
.release-downloads a:hover { border-color: rgba(181,154,255,.45); background: rgba(181,154,255,.14); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 27px; color: var(--muted); font-size: 13px; }
.pagination button { min-width: 82px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface); font: inherit; cursor: pointer; }
.pagination button:disabled { opacity: .42; cursor: default; }
.pagination .page-status { min-width: 78px; text-align: center; font-variant-numeric: tabular-nums; }
.note-language { min-width: 0; }
.note-language h3 { margin: 0 0 8px; color: #79d9ce; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.note-language.en h3 { color: var(--accent); }
.note-language ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #d6d2e3; font-size: 14px; }
.note-language li { position: relative; padding-left: 17px; }
.note-language li::before { content: ""; position: absolute; top: .68em; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.note-language.zh li::before { background: #79d9ce; }
.state-card { min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--muted); text-align: center; }
.state-card p { margin: 0; }
.state-card a { color: var(--accent-bright); }
.spinner { width: 22px; height: 22px; border: 2px solid rgba(181,154,255,.22); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.site-footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.site-footer a { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .topbar { height: 60px; padding: 0 18px; }
  .nav-actions { gap: 15px; font-size: 13px; }
  main, .site-footer { width: min(100% - 32px, var(--max)); }
  .hero { padding: 77px 0 59px; }
  .history-layout { grid-template-columns: 1fr; gap: 14px; padding-bottom: 48px; }
  .version-index { position: static; padding: 15px 14px; }
  .version-index h2 { margin-bottom: 9px; font-size: 17px; }
  .version-index-list { display: flex; max-height: none; overflow-x: auto; padding-bottom: 2px; }
  .version-index-list button { width: auto; flex: 0 0 auto; }
  .release-section { padding: 20px 0 10px; }
  .release-list { gap: 13px; }
  .release-list::before { left: 12px; }
  .release-card { margin-left: 27px; padding: 20px 17px 22px; border-radius: 17px; }
  .release-card::before { top: 26px; left: -21px; }
  .release-date { width: 100%; margin-left: 0; }
  .release-notes { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
