/* ==========================================================================
   Music PVP — Official site stylesheet
   Design language: studio darkness, signal gradients, editorial typography
   ========================================================================== */

:root {
  --bg: #06070a;
  --bg-soft: #0a0c12;
  --surface: #0e1118;
  --surface-2: #12151e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.042);
  --text: #e9ecf5;
  --muted: #949bb0;
  --dim: #666d82;
  --indigo: #6c7cff;
  --cyan: #34dde8;
  --violet: #a97bff;
  --ok: #6ee7a8;
  --warn: #ffbe5c;
  --danger: #ff6b6b;

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Inter", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", "Consolas",
    monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* 动效节奏：统一 200–500ms，避免过长动画拖慢交互 */
  --dur-xs: 180ms;
  --dur-sm: 240ms;
  --dur-md: 320ms;
  --dur-lg: 460ms;

  /* 间距节奏：8px 基准，模块内外统一呼吸感 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 28px;
  --sp-7: 36px;
  --sp-8: 48px;

  /* 阴影层级：低对比、多层叠加，避免生硬的黑块投影 */
  --shadow-sm: 0 1px 2px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -18px rgba(0, 0, 0, 0.8),
    0 2px 6px -3px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px -36px rgba(0, 0, 0, 0.9),
    0 6px 18px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 24px 60px -40px rgba(96, 124, 255, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(108, 124, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ambient background ---------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
}

.ambient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 110vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 8%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 8%, #000 0%, transparent 72%);
  opacity: 0.7;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.glow-a {
  width: 640px;
  height: 640px;
  top: -260px;
  left: -120px;
  background: radial-gradient(circle, rgba(108, 124, 255, 0.5), transparent 68%);
}

.glow-b {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(52, 221, 232, 0.32), transparent 68%);
}

.glow-c {
  width: 520px;
  height: 420px;
  top: 420px;
  right: 18%;
  background: radial-gradient(circle, rgba(169, 123, 255, 0.22), transparent 70%);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15.5px;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6c7cff, #34dde8 55%, #a97bff);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(80, 110, 255, 0.35);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.brand b {
  font-weight: 650;
}

.brand span {
  color: var(--dim);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gh-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: 0.22s var(--ease);
}

.gh-link:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.gh-link svg {
  width: 17px;
  height: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s, border-color 0.22s, color 0.22s;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: #f2f4fb;
  color: #080a10;
  box-shadow: 0 10px 30px -12px rgba(220, 230, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(180, 200, 255, 0.7);
  background: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: 0.2s;
}

.nav-burger span::before {
  top: -5px;
}

.nav-burger span::after {
  top: 5px;
}

.mobile-menu {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 89;
  background: rgba(6, 7, 10, 0.985);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur-sm) var(--ease-out),
    transform var(--dur-sm) var(--ease-out), visibility 0s linear var(--dur-sm);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-sm) var(--ease-out),
    transform var(--dur-sm) var(--ease-out), visibility 0s;
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a.active {
  color: var(--text);
}

.mobile-menu a:last-of-type {
  border-bottom: 0;
}

.mobile-menu .btn {
  margin-top: 12px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}

.section + .section {
  padding-top: 0;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.sec-tag::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--indigo), transparent);
}

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.sec-lead {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 46ch;
  justify-self: end;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(118px, 14vw, 168px) 0 clamp(48px, 6vw, 76px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 26px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.14);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.16);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(110, 231, 168, 0.03);
  }
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 640;
}

.hero-title .grad {
  background: linear-gradient(96deg, #8b94ff 4%, #46e4ea 52%, #bd8cff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .thin {
  font-weight: 350;
  color: #aeb5c9;
}

.hero-sub {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.8;
  max-width: 50ch;
}

.hero-sub b {
  color: #cbd2e4;
  font-weight: 550;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.meta-item {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.meta-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.meta-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.meta-v {
  font-size: 13.5px;
  font-weight: 550;
  color: #d5daea;
  font-variant-numeric: tabular-nums;
}

/* ---------- HUD stage mock ---------- */

.stage {
  position: relative;
  perspective: 1400px;
  min-width: 0;
}

.stage-ring {
  position: absolute;
  inset: -8% -12%;
  border-radius: 50%;
  border: 1px solid rgba(108, 124, 255, 0.12);
  transform: rotate(-12deg);
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  pointer-events: none;
}

.stage-ring::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px dashed rgba(52, 221, 232, 0.1);
}

.hud {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(158deg, rgba(30, 34, 48, 0.92), rgba(10, 12, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 42px 90px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(3.5deg) rotateY(-7deg) rotateZ(0.6deg);
  transform-style: preserve-3d;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotateX(3.5deg) rotateY(-7deg) rotateZ(0.6deg) translateY(0);
  }
  50% {
    transform: rotateX(3.5deg) rotateY(-7deg) rotateZ(0.6deg) translateY(-8px);
  }
}

.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.hud-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.album {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(140deg, #6c7cff, #2fb8d8 60%, #a97bff);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(80, 110, 255, 0.7);
}

.album::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 200deg, rgba(255, 255, 255, 0.55), transparent 40%, rgba(255, 255, 255, 0.2) 70%, transparent);
  opacity: 0.45;
  animation: spin 14s linear infinite;
}

.album::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 14, 24, 0.5);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.track {
  min-width: 0;
  flex: 1;
}

.track-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-top: 3px;
  text-transform: uppercase;
}

.progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 4px 0 18px;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
}

.progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(120, 220, 255, 0.9);
}

.lyric-box {
  border-radius: 14px;
  background: rgba(6, 8, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 16px 16px;
  margin-bottom: 16px;
}

.lyric-k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
}

.lyric-line {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
}

.lyric-line .sung {
  background: linear-gradient(92deg, #9aa4ff, #57e6f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lyric-line .unsung {
  color: rgba(180, 188, 208, 0.36);
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.wave i {
  flex: 1;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #6f7dff, rgba(52, 221, 232, 0.5));
  transform-origin: bottom;
  animation: eq 1.6s ease-in-out infinite;
  height: calc(var(--h) * 1%);
  animation-delay: calc(var(--i) * -0.08s);
  opacity: 0.85;
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.42);
  }
  50% {
    transform: scaleY(1);
  }
}

.island {
  position: absolute;
  top: -26px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 11px;
  border-radius: 99px;
  background: rgba(12, 15, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transform: rotateY(-6deg) translateZ(40px);
  animation: float 9s ease-in-out infinite reverse;
}

.island .mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.island .mini-eq i {
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  height: 100%;
  animation: eq2 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.14s);
}

.island .mini-eq i:nth-child(2) {
  background: var(--indigo);
}
.island .mini-eq i:nth-child(3) {
  background: var(--violet);
}

@keyframes eq2 {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.island small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

.chip-float {
  position: absolute;
  left: -6px;
  bottom: -28px;
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 15, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.95);
}

.chip-float div {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.chip-float div b {
  display: block;
  color: #dfe5f5;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 600;
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  background: rgba(255, 255, 255, 0.012);
}

.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.ticker-item::after {
  content: "◆";
  font-size: 6px;
  color: rgba(108, 124, 255, 0.6);
}

/* ---------- bento features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 26px;
  overflow: hidden;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -40px rgba(90, 120, 255, 0.6);
}

.card-wide {
  grid-column: span 8;
}

.card-half {
  grid-column: span 6;
}

.card-quarter {
  grid-column: span 3;
}

.card-visual {
  flex: 1;
  min-height: 96px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(108, 124, 255, 0.3);
  color: #9aa4ff;
  background: rgba(108, 124, 255, 0.08);
  font-weight: 500;
}

/* lyric demo */

.demo-lyric {
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(4, 6, 12, 0.6);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.demo-lyric .l1 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 8px;
}

.demo-lyric .l1 span {
  background: linear-gradient(90deg, #9aa4ff, #57e6f0 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-lyric .l1 em {
  font-style: normal;
  color: rgba(190, 198, 216, 0.28);
}

.demo-lyric .l2 {
  font-size: 12.5px;
  color: rgba(160, 168, 190, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-lyric .caret {
  position: absolute;
  right: 18px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

/* 3d lyric demo */

.demo-3d {
  width: 100%;
  height: 130px;
  display: grid;
  place-items: center;
  perspective: 500px;
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
}

.demo-3d p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #9aa4ff, #57e6f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
}

.demo-3d p:nth-child(1) {
  transform: translateY(-44px) rotateX(38deg) scale(0.82);
  opacity: 0.22;
  filter: blur(1px);
}

.demo-3d p:nth-child(2) {
  transform: translateY(-20px) rotateX(24deg) scale(0.92);
  opacity: 0.5;
}

.demo-3d p:nth-child(3) {
  transform: translateY(6px) scale(1.02);
  text-shadow: 0 0 26px rgba(90, 140, 255, 0.4);
}

.demo-3d p:nth-child(4) {
  transform: translateY(32px) rotateX(-22deg) scale(0.9);
  opacity: 0.4;
  color: rgba(150, 160, 185, 0.55);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* island demo */

.demo-island {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 9px 16px 9px 10px;
  font-size: 12px;
  box-shadow: 0 14px 30px -16px #000;
}

.pill .cover-mini {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, #6c7cff, #34dde8);
}

.pill .b {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pill.line2 {
  opacity: 0.5;
  transform: scale(0.94);
}

/* hud demo */

.demo-hud {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.stat-block {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 6, 12, 0.5);
  padding: 9px 11px;
}

.stat-block span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.stat-block b {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-block i {
  display: block;
  height: 2px;
  border-radius: 2px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  width: var(--w, 62%);
}

/* glass demo */

.demo-glass {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-glass::before {
  content: "";
  position: absolute;
  inset: -6px 2px;
  border-radius: 18px;
  background: linear-gradient(115deg, #4d5ad0, #23b0c2 48%, #7c4fd6);
  opacity: 0.32;
  filter: blur(12px);
}

.glass-chip {
  flex: 1;
  height: 74px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  z-index: 1;
}

.glass-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 120% at 20% -20%, rgba(255, 255, 255, 0.45), transparent 56%);
  opacity: 0.55;
}

.glass-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(108, 124, 255, 0.22));
}

.glass-chip.dark {
  background: rgba(10, 12, 18, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

/* hit color demo */

.demo-hit {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.hit-swatch {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hit-swatch.a {
  background: radial-gradient(circle at 50% 40%, rgba(255, 70, 70, 0.55), rgba(255, 60, 60, 0.08) 70%);
  box-shadow: 0 0 40px -8px rgba(255, 70, 70, 0.55);
}

.hit-swatch.b {
  background: radial-gradient(circle at 50% 40%, rgba(90, 140, 255, 0.5), rgba(60, 90, 255, 0.06) 70%);
  box-shadow: 0 0 40px -8px rgba(90, 140, 255, 0.5);
}

.hit-swatch svg {
  width: 34px;
  height: 34px;
  opacity: 0.9;
}

/* polar/detail list for fourth card */

.mini-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.mini-row b {
  color: #dbe1f0;
  font-weight: 550;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- screens ---------- */

.screens {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 96px;
}

.tab {
  text-align: left;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: 0.25s var(--ease);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.035);
}

.tab.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
}

.tab .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  padding-top: 3px;
}

.tab.active .num {
  color: var(--cyan);
}

.tab b {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  margin-bottom: 2px;
}

.tab span {
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.5;
}

.frame {
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #10131c, #080a10);
  overflow: hidden;
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 0.9);
}

.frame-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.frame-bar span {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.frame-body {
  position: relative;
  aspect-ratio: 16 / 9.6;
  background: radial-gradient(120% 90% at 50% 0%, #1a2036, #0a0c14 55%, #07080d);
  overflow: hidden;
}

.frame-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 78%);
}

.panel {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  transform: scale(0.985);
}

.panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* panel: lyrics */

.panel-lyrics {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.big-lyric {
  max-width: 90%;
}

.big-lyric .cur {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.big-lyric .cur span {
  background: linear-gradient(90deg, #9da7ff, #4fe4ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big-lyric .cur em {
  font-style: normal;
  color: rgba(180, 190, 215, 0.26);
}

.big-lyric .nxt {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(160, 170, 195, 0.34);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.big-lyric .prev {
  font-size: clamp(12px, 1.4vw, 15px);
  color: rgba(160, 170, 195, 0.2);
  margin-bottom: 14px;
}

.wave-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  opacity: 0.9;
}

.wave-row i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6f7dff, rgba(52, 221, 232, 0.4));
  height: calc(var(--h) * 1%);
  animation: eq 1.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.06s);
}

.mini-panel {
  position: absolute;
  right: clamp(16px, 2.4vw, 26px);
  top: clamp(16px, 2.4vw, 26px);
  width: 168px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 11, 17, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  color: var(--dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.mini-panel b {
  color: #d7ddec;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0;
  font-weight: 550;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.switch {
  width: 26px;
  height: 14px;
  border-radius: 99px;
  background: rgba(108, 124, 255, 0.7);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.switch.off {
  background: rgba(255, 255, 255, 0.13);
}

.switch.off::after {
  right: auto;
  left: 2px;
  background: rgba(255, 255, 255, 0.6);
}

/* panel: island */

.panel-island {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding-top: 15%;
}

.island-demo {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.island-big {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px 13px 13px;
  border-radius: 99px;
  background: rgba(8, 10, 16, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 60px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  width: min(92%, 430px);
}

.island-big .cov {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, #6c7cff, #2fb8d8);
  flex-shrink: 0;
}

.island-big .meta {
  min-width: 0;
  flex: 1;
}

.island-big .meta b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-big .meta span {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.island-big .bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.island-big .bars i {
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6f7dff, #34dde8);
  height: 100%;
  animation: eq2 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1s);
}

.island-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  max-width: 42ch;
  line-height: 1.7;
}

/* panel: card */

.panel-card {
  align-items: center;
  justify-content: center;
}

.song-card {
  width: min(100%, 520px);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(30, 34, 48, 0.92), rgba(10, 12, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 40px 80px -44px #000;
}

.song-card .top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.song-card .art {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(140deg, #6c7cff, #34dde8 60%, #a97bff);
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.song-card .art svg {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.song-card .info {
  min-width: 0;
}

.song-card .info b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.song-card .info span {
  color: var(--dim);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.ctrl {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 14px;
  color: #cfd6e8;
}

.ctrl .play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f4fb;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.ctrl .play svg {
  width: 14px;
  height: 14px;
  color: #080a10;
  margin-left: 2px;
}

.ctrl svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.song-card .bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.song-card .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
}

.song-card .bar i::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.song-card .times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 8px;
}

/* ---------- scenarios ---------- */

.scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scenario {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  position: relative;
  overflow: hidden;
  transition: 0.4s var(--ease);
}

.scenario:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.scenario .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.16em;
  margin-bottom: 34px;
  display: block;
}

.scenario h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.scenario p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.scenario::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 124, 255, 0.22), transparent 68%);
  transition: 0.5s var(--ease);
  opacity: 0.6;
}

.scenario:nth-child(2)::after {
  background: radial-gradient(circle, rgba(52, 221, 232, 0.18), transparent 68%);
}

.scenario:nth-child(3)::after {
  background: radial-gradient(circle, rgba(169, 123, 255, 0.18), transparent 68%);
}

.scenario:hover::after {
  transform: scale(1.18);
  opacity: 1;
}

/* ---------- download ---------- */

.download {
  position: relative;
}

.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.dl-latest {
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 255, 0.26);
  background: linear-gradient(165deg, rgba(52, 60, 110, 0.55), rgba(10, 12, 20, 0.9) 55%);
  box-shadow: 0 40px 90px -50px rgba(70, 100, 255, 0.65);
  position: sticky;
  top: 92px;
}

.dl-latest::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 300px;
  background: radial-gradient(ellipse at 30% 0%, rgba(120, 140, 255, 0.4), transparent 62%);
  pointer-events: none;
}

.dl-latest::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(180, 195, 255, 0.5), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8c8ff;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(140, 160, 255, 0.3);
  background: rgba(108, 124, 255, 0.12);
  margin-bottom: 22px;
}

.dl-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

.dl-name {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.dl-version {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 54px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.dl-version small {
  font-size: 15px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}

.dl-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.dl-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.spec-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.spec-v {
  font-size: 13px;
  font-weight: 500;
  color: #dfe4f3;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.dl-actions {
  display: flex;
  gap: 10px;
}

.dl-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

/* archive */

.archive {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.archive-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.archive-head .t {
  font-size: 14px;
  font-weight: 550;
  margin-right: auto;
}

.archive-head .t span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-left: 8px;
  letter-spacing: 0.08em;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--dim);
  pointer-events: none;
}

.search input {
  width: 168px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 10px 0 32px;
  font-size: 12.5px;
  outline: none;
  transition: 0.2s;
}

.search input::placeholder {
  color: var(--dim);
}

.search input:focus {
  border-color: rgba(108, 124, 255, 0.55);
  background: rgba(0, 0, 0, 0.4);
}

.filter {
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 0 8px;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}

.vtable {
  width: 100%;
}

.vrow {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.75fr 0.7fr 0.42fr;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12.8px;
  transition: background 0.2s;
}

.vrow:last-child {
  border-bottom: 0;
}

.vhead {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.vrow:not(.vhead):not(.empty):hover {
  background: rgba(255, 255, 255, 0.028);
}

.v-ver {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #dfe5f4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v-ver .latest-dot {
  font-size: 8px;
  color: var(--ok);
  border: 1px solid rgba(110, 231, 168, 0.3);
  background: rgba(110, 231, 168, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.v-type {
  font-size: 11.5px;
  color: var(--muted);
}

.v-type .stable {
  color: #a9b6d9;
}

.v-date,
.v-size {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.v-act {
  text-align: right;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.icon-btn:hover {
  color: #fff;
  border-color: rgba(108, 124, 255, 0.5);
  background: rgba(108, 124, 255, 0.14);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.load-more {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.load-more button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.2s;
}

.load-more button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--dim);
  padding: 40px;
  font-size: 13px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #fff;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--dim);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--cyan);
}

.faq-body {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 64ch;
}

.faq-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: #c8d0e8;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0 40px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.9));
}

.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 56px;
}

.foot-word {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.9;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.16));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 18px;
}

.foot-desc {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 44ch;
  line-height: 1.8;
  margin: 0;
}

.gh-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: 0.3s var(--ease);
}

.gh-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.gh-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.gh-card .ic svg {
  width: 22px;
  height: 22px;
}

.gh-card .tx {
  min-width: 0;
}

.gh-card .tx b {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 2px;
}

.gh-card .tx span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.gh-card .arw {
  margin-left: auto;
  color: var(--dim);
  transition: transform 0.3s var(--ease), color 0.2s;
}

.gh-card:hover .arw {
  transform: translate(2px, -2px);
  color: #fff;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--dim);
}

.foot-bottom a {
  color: var(--muted);
  transition: color 0.2s;
}

.foot-bottom a:hover {
  color: #fff;
}

.foot-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* ---------- page fade ---------- */

body {
  animation: page-fade-in 0.4s var(--ease) both;
}

body.page-leave {
  animation: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
}

/* 版本列表 / 后台表格重排时淡入，避免整块闪跳 */
.vrow:not(.vhead),
.arow:not(.ahead) {
  animation: row-fade-in 0.26s var(--ease) both;
}

@keyframes row-fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- toast ---------- */

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 11px;
  background: rgba(16, 19, 28, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  box-shadow: 0 20px 50px -20px #000;
  animation: toast-in 0.3s var(--ease);
  max-width: 340px;
}

.toast.err {
  border-color: rgba(255, 107, 107, 0.4);
  color: #ffc9c9;
}

.toast.ok {
  border-color: rgba(110, 231, 168, 0.35);
  color: #c5f3d9;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .stage {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sec-lead {
    justify-self: start;
  }

  .card {
    grid-column: span 6;
  }

  .card-wide {
    grid-column: span 12;
  }

  .card-quarter {
    grid-column: span 6;
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: row;
    position: static;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 160px;
    border: 1px solid var(--line);
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-latest {
    position: static;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-burger {
    display: grid;
  }

  .scenarios {
    grid-template-columns: 1fr;
  }

  .scenario .idx {
    margin-bottom: 18px;
  }

  .mini-panel {
    display: none;
  }

  .chip-float {
    left: 0;
  }
}

@media (max-width: 680px) {
  .card,
  .card-wide,
  .card-half,
  .card-quarter {
    grid-column: span 12;
    min-height: 0;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-meta {
    gap: 16px 0;
  }

  .meta-item {
    padding-right: 20px;
    margin-right: 20px;
  }

  .frame-body {
    aspect-ratio: 1 / 1.02;
  }

  .panel-lyrics {
    gap: 10px;
  }

  .big-lyric .cur {
    font-size: 19px;
  }

  .dl-grid .dl-latest {
    padding: 24px;
  }

  .vrow {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "ver act"
      "date act";
    gap: 2px 12px;
    padding: 13px 16px;
  }

  .vrow .v-ver {
    grid-area: ver;
  }

  .vrow .v-date {
    grid-area: date;
    display: block;
    font-size: 11px;
    color: var(--dim);
  }

  .vrow .v-size,
  .vrow .v-type {
    display: none;
  }

  .vrow .v-act {
    grid-area: act;
  }

  .vrow.empty {
    grid-template-columns: 1fr;
  }

  .vhead {
    display: none;
  }

  .archive-head {
    padding: 16px;
  }

  .search input {
    width: 130px;
  }

  .mobile-only-meta {
    display: block;
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--dim);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  /* 小屏上取消 3D 倾斜，避免卡片与悬浮元素被裁切 */
  .hud {
    transform: none;
    animation: none;
  }

  .island {
    left: 12px;
    right: auto;
    top: -18px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
    animation: none;
    z-index: 2;
    font-size: 11px;
  }

  .chip-float {
    display: none;
  }
}

@media (max-width: 820px) {
  /* 小屏 GPU 较弱：去掉磨砂玻璃，滚动更稳 */
  .nav.scrolled,
  .glass-chip,
  .mini-panel,
  .island-big {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.scrolled {
    background: rgba(6, 7, 10, 0.94);
  }

  .glass-chip {
    background: rgba(255, 255, 255, 0.12);
  }

  .mini-panel {
    background: rgba(9, 11, 17, 0.96);
  }

  .island-big {
    background: rgba(8, 10, 16, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Polish — 统一微交互、滚动条与排版细节
   ========================================================================== */

/* 按下反馈：与悬停位移区分，点击有明确的回弹 */
.btn:active,
.btn-primary:active,
.btn-ghost:active,
.gh-link:active,
.icon-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

/* 标题换行更均衡，避免末行孤字 */
.hero-title,
.sec-title,
.foot-word {
  text-wrap: balance;
}

/* FAQ 正文内链与站点风格统一 */
.faq-body a {
  text-decoration: underline;
  text-decoration-color: rgba(154, 164, 255, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.faq-body a:hover {
  text-decoration-color: currentColor;
}

/* 历史版本行悬停时左侧描一条信号色，明确当前行 */
.vrow:not(.vhead):not(.empty):hover {
  box-shadow: inset 2px 0 0 rgba(108, 124, 255, 0.55);
}

/* 深色滚动条，与页面底色统一 */
html {
  scrollbar-width: thin;
  scrollbar-color: #262c3c var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #262c3c;
  border: 2px solid var(--bg);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39415a;
}

/* ==========================================================================
   Motion layer — 滚动进度、指针跟随高光、导航指示、展开过渡
   ========================================================================== */

/* 顶部阅读进度：只改 transform，不触发重排 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 95;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--indigo), var(--cyan) 62%, var(--violet));
  box-shadow: 0 0 12px rgba(108, 124, 255, 0.55);
  pointer-events: none;
  will-change: transform;
}

/* 导航激活项：底部短横线，随状态切换淡入 */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: 50% 50%;
  transition: opacity var(--dur-sm) var(--ease-out),
    transform var(--dur-sm) var(--ease-out);
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 指针跟随高光：卡片在鼠标附近浮起一层柔光 */
.card,
.scenario {
  --mx: 50%;
  --my: 0%;
}

.card > *,
.scenario > * {
  position: relative;
  z-index: 1;
}

.card::before,
.scenario::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mx) var(--my),
    rgba(126, 148, 255, 0.16),
    transparent 64%
  );
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.card:hover::before,
.scenario:hover::before {
  opacity: 1;
}

/* 卡片悬停时内部示意元素轻微抬起，层次更明确 */
.card-visual {
  transition: transform var(--dur-lg) var(--ease-out);
}

.card:hover .card-visual {
  transform: translateY(-2px);
}

/* FAQ 展开内容淡入上移，避免瞬间跳变 */
.faq-item[open] .faq-body {
  animation: faq-in var(--dur-md) var(--ease-out) both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Tab 切换时给面板一个方向感很轻的位移 */
.panel {
  transition: opacity var(--dur-md) var(--ease-out),
    transform var(--dur-md) var(--ease-out), visibility 0s linear var(--dur-md);
}

.panel.active {
  transition: opacity var(--dur-md) var(--ease-out),
    transform var(--dur-md) var(--ease-out), visibility 0s;
}

/* 悬停设备才启用指针跟随；触屏与低动效偏好下自动关闭 */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .card::before,
  .scenario::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ==========================================================================
   运营层 — 公告条 / 维护遮罩 / 下载关闭（由管理后台实时下发）
   ========================================================================== */

.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 96;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  font-size: 12.5px;
  color: #dfe4f5;
  background: rgba(12, 15, 24, 0.92);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: notice-in 0.32s var(--ease-out) both;
}

.notice-bar.tone-warn {
  background: rgba(58, 26, 26, 0.92);
  border-bottom-color: rgba(255, 138, 138, 0.28);
  color: #ffd6d6;
}

.notice-bar.tone-success {
  background: rgba(16, 42, 32, 0.92);
  border-bottom-color: rgba(110, 231, 168, 0.3);
  color: #c8f5dd;
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(52, 221, 232, 0.14);
  flex-shrink: 0;
  animation: notice-pulse 2.4s var(--ease-in-out) infinite;
}

.notice-bar.tone-warn .notice-dot {
  background: #ff8a8a;
  box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.14);
}

.notice-bar.tone-success .notice-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.14);
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-link {
  color: #fff;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
  flex-shrink: 0;
}

.notice-link:hover {
  text-decoration-color: currentColor;
}

body.has-notice .nav {
  top: 40px;
}

body.has-notice .hero {
  padding-top: clamp(150px, 15vw, 200px);
}

.nav {
  transition: top 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes notice-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* 维护遮罩 */
.mpv-maint {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 9, 0.955);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  animation: notice-in 0.3s var(--ease-out) both;
}

body.maint-on {
  overflow: hidden;
}

.mpv-maint-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014));
  box-shadow: 0 50px 120px -50px #000;
}

.mpv-maint-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border: 1px solid rgba(52, 221, 232, 0.3);
  background: rgba(52, 221, 232, 0.08);
  border-radius: 5px;
  padding: 3px 8px;
  margin-bottom: 18px;
}

.mpv-maint-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.mpv-maint-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.mpv-maint-card small {
  color: var(--dim);
  font-size: 11.5px;
}

/* 下载关闭态 */
.btn.is-off {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
  box-shadow: none;
}

.btn.is-off:hover {
  transform: none;
  background: #f2f4fb;
  box-shadow: none;
}

.icon-btn.off {
  cursor: not-allowed;
  opacity: 0.4;
  border-style: dashed;
}

@media (max-width: 680px) {
  body.has-notice .hero {
    padding-top: 148px;
  }

  .notice-bar {
    font-size: 11.5px;
    gap: 8px;
    padding: 0 12px;
  }
}

/* ==========================================================================
   Design refinement — 统一节奏、柔化边界与自然过渡
   仅覆盖视觉表现，不改变任何功能选择器与 DOM 结构
   ========================================================================== */

/* ---------- 基础排版 ---------- */

body {
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.002em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.sec-title {
  line-height: 1.12;
  letter-spacing: -0.032em;
}

.sec-lead {
  line-height: 1.82;
}

.sec-tag {
  letter-spacing: 0.18em;
}

:focus-visible {
  outline: 2px solid rgba(52, 221, 232, 0.8);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- 按钮与链接 ---------- */

.btn {
  transition: transform var(--dur-sm) var(--ease-out),
    box-shadow var(--dur-sm) var(--ease-out), background-color var(--dur-sm) var(--ease),
    border-color var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}

.btn-primary {
  background: #eef1fa;
  box-shadow: 0 10px 26px -16px rgba(200, 214, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 18px 42px -20px rgba(184, 204, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.9);
}

.btn:active,
.btn-primary:active,
.btn-ghost:active,
.gh-link:active,
.icon-btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 90ms;
}

.gh-link {
  transition: color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease),
    background-color var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease-out);
}

.gh-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.icon-btn {
  transition: color var(--dur-xs) var(--ease), border-color var(--dur-xs) var(--ease),
    background-color var(--dur-xs) var(--ease), transform var(--dur-xs) var(--ease-out);
}

.icon-btn:hover {
  transform: translateY(-1px);
}

/* ---------- 导航 ---------- */

.nav-links a {
  transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}

.mobile-menu a {
  border-radius: var(--radius-xs);
  padding-left: 10px;
  padding-right: 10px;
  transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}

.mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-burger {
  transition: border-color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}

.nav-burger:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 卡片与模块容器 ---------- */

.section {
  padding: clamp(68px, 8.2vw, 118px) 0;
}

.sec-head {
  gap: clamp(22px, 3.4vw, 38px);
  margin-bottom: clamp(30px, 4.4vw, 50px);
}

.bento {
  gap: 18px;
}

.card {
  padding: clamp(22px, 2.3vw, 28px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-lg) var(--ease-out),
    border-color var(--dur-lg) var(--ease), box-shadow var(--dur-lg) var(--ease-out);
}

.card::after {
  opacity: 0.42;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-visual {
  margin-bottom: 20px;
}

.card-title {
  letter-spacing: -0.02em;
}

.scenarios {
  gap: 18px;
}

.scenario {
  padding: clamp(24px, 2.5vw, 30px);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-lg) var(--ease-out),
    border-color var(--dur-lg) var(--ease), box-shadow var(--dur-lg) var(--ease-out);
}

.scenario:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.archive,
.frame,
.dl-latest {
  box-shadow: var(--shadow-md);
}

.dl-latest {
  transition: border-color var(--dur-lg) var(--ease), box-shadow var(--dur-lg) var(--ease-out);
}

.dl-latest:hover {
  border-color: rgba(130, 150, 255, 0.34);
  box-shadow: var(--shadow-lg), 0 30px 80px -50px rgba(70, 100, 255, 0.6);
}

body.has-notice .dl-latest {
  top: 132px;
}

.dl-grid {
  gap: 22px;
}

/* ---------- 表格与列表 ---------- */

.vrow,
.log-row,
.atable .arow {
  border-bottom-color: var(--line-soft);
}

.vrow:not(.vhead):not(.empty):hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 2px 0 0 rgba(108, 124, 255, 0.4);
}

.atable .arow:not(.ahead) {
  transition: background-color var(--dur-sm) var(--ease),
    box-shadow var(--dur-sm) var(--ease);
}

.atable .arow:not(.ahead):hover {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 2px 0 0 rgba(108, 124, 255, 0.35);
}

.vhead,
.atable .ahead {
  background: rgba(255, 255, 255, 0.014);
}

.vmeta,
.vfoot,
.archive-head,
.panel-box > header {
  border-color: var(--line-soft);
}

/* 悬停行左侧信号条与圆角过渡更柔和 */
.vrow,
.atable .arow {
  transition: background-color var(--dur-sm) var(--ease),
    box-shadow var(--dur-sm) var(--ease);
}

/* ---------- 输入与筛选 ---------- */

.search input,
.filter {
  transition: border-color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease),
    box-shadow var(--dur-sm) var(--ease), width var(--dur-md) var(--ease-out);
}

.search input:focus,
.filter:focus {
  border-color: rgba(108, 124, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 124, 255, 0.1);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top-color: var(--line-soft);
}

.faq-item {
  border-bottom-color: var(--line-soft);
}

.faq-item summary {
  padding: 19px 8px;
  border-radius: var(--radius-xs);
  transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.faq-body {
  padding: 0 8px 22px;
}

/* ---------- 页脚 ---------- */

.foot-top {
  margin-bottom: 48px;
}

.foot-bottom {
  border-top-color: var(--line-soft);
  padding-top: 22px;
}

.gh-card {
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-md) var(--ease-out),
    border-color var(--dur-md) var(--ease), background-color var(--dur-md) var(--ease),
    box-shadow var(--dur-md) var(--ease-out);
}

.gh-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- 浮层与提示 ---------- */

.toast {
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mpv-maint-card {
  box-shadow: var(--shadow-lg);
}

/* ---------- 响应式：平板 ---------- */

@media (max-width: 1080px) {
  .section {
    padding: clamp(56px, 8vw, 88px) 0;
  }

  .hero {
    padding-top: clamp(104px, 12vw, 136px);
  }

  .bento {
    gap: 15px;
  }

  .sec-head {
    gap: 20px;
  }
}

/* ---------- 响应式：手机 ---------- */

@media (max-width: 680px) {
  .section {
    padding: 54px 0;
  }

  .bento,
  .scenarios {
    gap: 13px;
  }

  .card {
    padding: 22px;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .dl-grid {
    gap: 16px;
  }

  .foot-top {
    margin-bottom: 36px;
  }

  /* 收窄装饰环，避免超出视口后被 body 裁切 */
  .stage-ring {
    inset: -4% 0;
  }
}

@media (max-width: 560px) {
  /* 版本归档标题占满一行，搜索框自适应，避免挤压 */
  .archive-head {
    padding: 16px;
    gap: 10px;
  }

  .archive-head .t {
    flex: 1 1 100%;
    margin-right: 0;
  }

  .archive-head .search {
    flex: 1 1 auto;
  }

  .archive-head .search input {
    width: 100%;
  }

  /* Hero 元信息改为两列网格，去掉换行后断裂的分隔线 */
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding-top: 18px;
  }

  .meta-item,
  .meta-item:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .foot-links {
    margin-left: 0;
    gap: 16px;
  }

  .foot-bottom {
    gap: 12px 18px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card-title {
    font-size: 15.5px;
  }

  .dl-version {
    font-size: 36px;
  }

  .dl-actions .btn {
    width: 100%;
  }
}

/* 触屏设备取消悬停位移，避免点击后状态残留 */
@media (hover: none) {
  .card:hover,
  .scenario:hover,
  .gh-card:hover,
  .dl-latest:hover,
  .gh-link:hover,
  .icon-btn:hover {
    transform: none;
  }
}

/* ================================================================
   版本时间线 / 下载工具 / 统一空状态
   ================================================================ */

.vtable.timeline {
  display: block;
  padding: 4px 20px 14px;
}

.tl-group {
  position: relative;
}

.tl-group + .tl-group {
  margin-top: 2px;
}

.tl-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
  position: relative;
}

.tl-group-label span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aab4d0;
  white-space: nowrap;
}

.tl-group-label i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.tl-group-label em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

.tl-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0 9px;
  position: relative;
}

.tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.tl-rail::before {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.12) 86%,
    transparent
  );
}

.tl-group:last-child .tl-item:last-child .tl-rail::before {
  bottom: 10px;
}

.tl-dot {
  width: 11px;
  height: 11px;
  margin-top: 9px;
  border-radius: 50%;
  border: 2px solid rgba(150, 165, 205, 0.42);
  background: #0b0e15;
  position: relative;
  z-index: 1;
  transition: 0.24s var(--ease);
}

.tl-item:hover .tl-dot {
  border-color: rgba(108, 124, 255, 0.85);
  transform: scale(1.12);
}

.tl-item.is-beta .tl-dot {
  border-color: rgba(255, 190, 92, 0.65);
}

.tl-item.is-latest .tl-dot {
  background: var(--ok);
  border-color: rgba(110, 231, 168, 0.9);
  box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.1), 0 0 16px rgba(110, 231, 168, 0.45);
}

.tl-body {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease),
    transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  overflow: hidden;
}

.tl-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 140, 255, 0.12),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.tl-item:hover .tl-body {
  border-color: rgba(120, 140, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
  transform: translateX(2px);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.tl-item:hover .tl-body::after {
  opacity: 1;
}

.tl-item.is-latest .tl-body {
  border-color: rgba(110, 231, 168, 0.24);
}

.tl-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-ver {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e8ecf8;
  text-decoration: none;
  transition: color 0.2s;
}

.tl-ver:hover {
  color: var(--cyan);
}

.tl-channel {
  font-size: 10px;
  line-height: 1.6;
  padding: 0 7px;
  border-radius: 5px;
  color: #b9c3dd;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.tl-item.is-beta .tl-channel {
  color: #ffd79a;
  border-color: rgba(255, 190, 92, 0.28);
  background: rgba(255, 190, 92, 0.08);
}

.tl-top time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.tl-notes {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.tl-sha {
  border: 0;
  padding: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  transition: color 0.2s, border-color 0.2s;
}

.tl-sha:hover {
  color: var(--cyan);
  border-color: rgba(52, 221, 232, 0.5);
}

.tl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s var(--ease);
}

.tl-btn:hover {
  border-color: rgba(108, 124, 255, 0.5);
  background: rgba(108, 124, 255, 0.13);
  transform: translateY(-1px);
}

.tl-btn:active {
  transform: translateY(0) scale(0.98);
}

.tl-btn.primary {
  border-color: rgba(108, 124, 255, 0.55);
  background: linear-gradient(135deg, rgba(108, 124, 255, 0.95), rgba(85, 102, 240, 0.92));
  color: #fff;
  box-shadow: 0 8px 20px -14px rgba(108, 124, 255, 0.9);
}

.tl-btn.primary:hover {
  box-shadow: 0 12px 26px -14px rgba(108, 124, 255, 0.95);
}

.tl-btn.ghost {
  background: transparent;
  color: var(--muted);
}

.tl-btn.is-off {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--dim);
  cursor: not-allowed;
  transform: none !important;
}

/* 骨架屏 */
.tl-skeleton {
  padding: 12px 0 6px;
}

.tl-skel-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
}

.tl-skel-row > i {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
  animation: skel-pulse 1.3s ease-in-out infinite;
}

.tl-skel-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
}

.tl-skel-row b,
.tl-skel-row span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.045)
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.35s linear infinite;
}

.tl-skel-row b {
  width: 116px;
  height: 13px;
}

.tl-skel-row span:nth-of-type(1) {
  width: 72%;
}

.tl-skel-row span:nth-of-type(2) {
  width: 42%;
}

@keyframes skel-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes skel-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

/* 统一空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 22px;
  text-align: center;
  color: var(--dim);
}

.empty-state svg {
  width: 30px;
  height: 30px;
  color: rgba(150, 165, 205, 0.5);
  margin-bottom: 2px;
}

.empty-state b {
  font-size: 13px;
  font-weight: 550;
  color: #bcc5dc;
}

.empty-state span {
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 300px;
}

/* 下载辅助按钮 */
.dl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dl-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s var(--ease);
}

.dl-tool svg {
  width: 14px;
  height: 14px;
}

.dl-tool:hover {
  color: var(--text);
  border-color: rgba(108, 124, 255, 0.42);
  background: rgba(108, 124, 255, 0.1);
}

.dl-tool:active {
  transform: scale(0.98);
}

/* toast 图标 */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.toast.in {
  opacity: 1;
  transform: translateY(0);
}

.toast-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--cyan);
}

.toast.ok .toast-ico {
  color: var(--ok);
}

.toast.err .toast-ico {
  color: var(--danger);
}

.toast.warn {
  border-color: rgba(255, 190, 92, 0.4);
  color: #ffe4b8;
}

.toast.warn .toast-ico {
  color: var(--warn);
}

@media (max-width: 560px) {
  .vtable.timeline {
    padding: 2px 14px 10px;
  }

  .tl-top time {
    margin-left: 0;
    flex: 1 1 100%;
  }

  .tl-actions .tl-btn {
    flex: 1 1 auto;
  }
}

@media (hover: none) {
  .tl-item:hover .tl-body {
    transform: none;
  }

  .tl-btn:hover,
  .dl-tool:hover {
    transform: none;
  }
}
