/* 保证 hidden 属性优先于任何 display 布局规则 */
[hidden] { display: none !important; }

/* ==========================================================================
   Jun Music 下载页 —— 新拟态 / 鎏金设计语言
   设计源自参考站：#e8ecf1 浅色底、#07070d 深色底、#d4af37 / #ffd966 鎏金渐变、
   软阴影凸起卡片（neu-morphism）、极光光斑背景、分区胶囊、折叠面板、数据条
   ========================================================================== */

:root {
  /* 鎏金主色 */
  --gold-1: #ffd966;
  --gold-2: #d4af37;
  --gold-3: #b8860b;
  --gold-4: #fff6c6;
  --gold-grad: linear-gradient(135deg, #ffd966, #d4af37);

  --green: #48bb78;
  --orange: #ed8936;
  --red: #e53e3e;

  /* 浅色 */
  --bg: #e8ecf1;
  --surface: #e8ecf1;
  --surface-2: rgba(255, 255, 255, 0.85);
  --text: #2d3748;
  --text-2: #4a5568;
  --text-3: #718096;
  --text-4: #a0aec0;
  --accent: #b8860b;

  --sh-out: 8px 8px 16px #c8cdd5, -8px -8px 16px #ffffff;
  --sh-out-sm: 4px 4px 8px #d1d5db, -4px -4px 8px #ffffff;
  --sh-out-xs: 3px 3px 6px #c8cdd5, -3px -3px 6px #ffffff;
  --sh-in: inset 4px 4px 8px #c8cdd5, inset -4px -4px 8px #ffffff;
  --sh-in-sm: inset 2px 2px 4px #c8cdd5, inset -2px -2px 4px #ffffff;
  --sh-hover: 12px 12px 24px #b8bdc5, -12px -12px 24px #ffffff, 0 0 40px rgba(212, 175, 55, 0.12);
  --sh-gold: 0 6px 20px rgba(212, 175, 55, 0.35);
  --sh-gold-hover: 0 8px 28px rgba(212, 175, 55, 0.5);

  --line: rgba(212, 175, 55, 0.15);
  --line-strong: rgba(212, 175, 55, 0.35);
  --tint: rgba(212, 175, 55, 0.08);
  --tint-2: rgba(212, 175, 55, 0.07);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  --wrap: 1100px;
}

html[data-theme='dark'] {
  --bg: #07070d;
  --surface: #14141d;
  --surface-2: rgba(255, 255, 255, 0.035);
  --text: #f2f2f7;
  --text-2: #b8b8c4;
  --text-3: #9a9aa6;
  --text-4: #6b6b78;
  --accent: #d4af37;

  --sh-out: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --sh-out-sm: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --sh-out-xs: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --sh-in: inset 2px 2px 4px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.03);
  --sh-in-sm: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  --sh-hover: 0 14px 44px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --sh-gold: 0 6px 20px rgba(212, 175, 55, 0.28);
  --sh-gold-hover: 0 8px 30px rgba(212, 175, 55, 0.45);

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(212, 175, 55, 0.28);
  --tint: rgba(212, 175, 55, 0.09);
  --tint-2: rgba(255, 255, 255, 0.035);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  max-width: 100vw;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
    'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--text-2);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

body.bar-visible { padding-bottom: 78px; }

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; }

a { color: var(--accent); text-decoration: none; }

button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
button:focus, a:focus, input:focus, textarea:focus { outline: none; }
svg { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===================== 背景：极光光斑 + 粒子网 ===================== */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-aurora i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  will-change: transform;
  display: block;
}
html[data-theme='dark'] .bg-aurora i { opacity: 0.45; }
.orb1 { width: 56vw; height: 56vw; background: radial-gradient(circle, rgba(212, 175, 55, 0.5), transparent 70%); top: -14%; left: -10%; animation: orbFloat1 22s ease-in-out infinite alternate; }
.orb2 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(255, 214, 102, 0.42), transparent 70%); top: 30%; right: -14%; animation: orbFloat2 26s ease-in-out infinite alternate; }
.orb3 { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(180, 140, 40, 0.38), transparent 70%); bottom: -16%; left: 14%; animation: orbFloat3 28s ease-in-out infinite alternate; }
.orb4 { width: 26vw; height: 26vw; background: radial-gradient(circle, rgba(255, 246, 198, 0.5), transparent 70%); top: 52%; left: -6%; animation: orbFloat1 32s ease-in-out infinite alternate-reverse; }
.orb5 { width: 18vw; height: 18vw; background: radial-gradient(circle, rgba(212, 175, 55, 0.55), transparent 70%); top: 12%; left: 30%; animation: orbFloat3 24s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(3vw, 4vh) scale(1.08); } }
@keyframes orbFloat2 { 0% { transform: translate(0, 0) scale(1.04); } 100% { transform: translate(-4vw, -3vh) scale(0.95); } }
@keyframes orbFloat3 { 0% { transform: translate(0, 0) scale(0.96); } 100% { transform: translate(4vw, -4vh) scale(1.1); } }
html:not([data-theme='dark']) .bg-aurora { opacity: 0.55; }

/* ===================== 入场特效（参考站同款，纯装饰） ===================== */
.intro-fx {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}
.intro-fx.on { visibility: visible; opacity: 1; }
.intro-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.intro-fx.on .intro-flash { animation: introFlash 2.6s ease-out forwards; }
@keyframes introFlash { 0% { opacity: 0; } 8% { opacity: 1; } 22% { opacity: 0; } 55% { opacity: 0.5; } 70% { opacity: 0; } 100% { opacity: 0; } }
.intro-ring {
  position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 2px solid rgba(255, 214, 102, 0.9); box-shadow: 0 0 24px rgba(255, 214, 102, 0.8);
  transform: scale(1); opacity: 0;
}
.intro-fx.on .intro-ring { animation: introRing 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes introRing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(200); opacity: 0; } }
.intro-ring2 {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 3px solid rgba(212, 175, 55, 0.95); box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
  transform: scale(1); opacity: 0;
}
.intro-fx.on .intro-ring2 { animation: introRing2 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards; }
@keyframes introRing2 { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(130); opacity: 0; } }
.intro-brand {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6);
  font-size: 38px; font-weight: 800; letter-spacing: 6px; color: #d4af37;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.9), 0 0 80px rgba(212, 175, 55, 0.6);
  opacity: 0; white-space: nowrap;
}
.intro-fx.on .intro-brand { animation: introBrand 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes introBrand {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  8% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  18% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  68% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .intro-fx { display: none; } }

/* ===================== 页面容器 ===================== */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* ===================== 顶部公告 ===================== */
.announce {
  position: relative;
  z-index: 60;
  max-width: var(--wrap);
  margin: 14px auto 0;
  padding: 0 16px;
  transition: opacity 0.3s ease;
}
.announce.is-dim { opacity: 0.55; }
.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--gold-grad);
  color: #0a0a10;
  box-shadow: var(--sh-gold);
  font-size: 13px;
  line-height: 1.5;
}
html[data-theme='dark'] .announce-inner {
  background: linear-gradient(135deg, rgba(255, 217, 102, 0.18), rgba(212, 175, 55, 0.1));
  color: var(--gold-4);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22);
}
.announce-inner p { flex: 1; min-width: 0; font-weight: 500; }
.announce-inner p a { color: inherit; text-decoration: underline; }
.announce-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #0a0a10; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
  animation: annPulse 1.6s ease-in-out infinite;
}
html[data-theme='dark'] .announce-dot { background: var(--gold-1); box-shadow: 0 0 0 4px rgba(255, 217, 102, 0.16); }
@keyframes annPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.announce-inner > a { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.announce-close {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.12); color: inherit;
}
.announce-close svg { width: 13px; height: 13px; }

/* ===================== Hero 横幅 ===================== */
.hero {
  position: relative;
  max-width: 800px;
  margin: 20px auto 12px;
  padding: 34px 20px 30px;
  text-align: center;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme='dark'] .hero {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero-glow1 {
  width: 340px; height: 340px; top: -120px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.08) 50%, transparent 72%);
  animation: heroGlow1 9s ease-in-out infinite alternate;
}
.hero-glow2 {
  width: 240px; height: 240px; bottom: -100px; left: 8%;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.28), rgba(255, 214, 102, 0.06) 50%, transparent 72%);
  animation: heroGlow2 11s ease-in-out infinite alternate;
}
@keyframes heroGlow1 { 0% { transform: translateX(-50%) scale(1); opacity: 0.7; } 100% { transform: translateX(-50%) scale(1.2); opacity: 1; } }
@keyframes heroGlow2 { 0% { transform: translate(0, 0) scale(1); opacity: 0.6; } 100% { transform: translate(24px, -16px) scale(1.15); opacity: 1; } }
.hero-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), rgba(255, 246, 198, 0.95), rgba(212, 175, 55, 0.8), transparent);
  background-size: 200% 100%;
  animation: heroScan 3.2s linear infinite;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}
@keyframes heroScan { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hero-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent);
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--line);
}
.live-dot i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
  animation: annPulse 1.8s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 84px; height: 84px;
  margin: 16px auto 6px;
}
.hero-logo img {
  width: 84px; height: 84px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35), 0 0 0 1px var(--line);
  position: relative; z-index: 2; background: #fff;
}
.logo-ring {
  position: absolute; inset: -10px; border-radius: 32px;
  border: 1px solid var(--line-strong);
  animation: logoRing 4s ease-in-out infinite;
}
@keyframes logoRing { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.06); opacity: 0.15; } }

.hero-brand {
  font-size: 40px; font-weight: 800; letter-spacing: 8px; margin-top: 8px; line-height: 1.2;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(90deg, #8a6d1f, #d4af37, #ffd966, #fff6c6, #ffd966, #d4af37, #8a6d1f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(212, 175, 55, 0.35));
  animation: heroBrandIn 1s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}
@keyframes heroBrandIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-brand-symbol { font-size: 16px; letter-spacing: 0; opacity: 0.9; animation: heroSymbolPulse 2.4s ease-in-out infinite alternate; }
.hero-brand-symbol:first-child { animation-delay: -1.2s; }
@keyframes heroSymbolPulse { from { opacity: 0.4; transform: scale(0.85); } to { opacity: 1; transform: scale(1.15); } }

.tagline {
  font-size: 12.5px; letter-spacing: 3px; color: var(--text-3); margin-top: 12px;
  animation: heroFadeIn 1s ease both 0.4s;
}
html[data-theme='dark'] .tagline { color: rgba(212, 175, 55, 0.8); }
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  animation: heroFadeIn 1s ease both 0.55s;
}
.hero-divider i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #d4af37, transparent); }
.hero-divider i:first-child, .hero-divider i:last-child { width: 20px; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 标题流光 */
.shine-text { background-size: 220% 100%; animation: shineText 7s linear infinite; }
@keyframes shineText { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }

/* ===================== 顶栏 ===================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-md);
  background: rgba(232, 236, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: background 0.25s, box-shadow 0.25s;
}
.top-bar.scrolled { background: rgba(232, 236, 241, 0.97); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1); }
html[data-theme='dark'] .top-bar { background: rgba(10, 10, 18, 0.8); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
html[data-theme='dark'] .top-bar.scrolled { background: rgba(8, 8, 14, 0.96); }

.brand-mini { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mini img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.28); }
.brand-mini-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-mini-name { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; line-height: 1; }
.brand-mini-sub { font-size: 10px; color: var(--text-4); line-height: 1.2; white-space: nowrap; }
.tb-spacer { flex: 1; }

.theme-btn {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 14px;
  transition: all 0.2s ease;
}
html[data-theme='dark'] .theme-btn { color: var(--gold-1); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25); }
.theme-btn:hover { color: var(--gold-2); transform: scale(1.06); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .ic-moon { display: none; }
html[data-theme='dark'] .theme-btn .ic-sun { display: none; }
html[data-theme='dark'] .theme-btn .ic-moon { display: block; }

/* ===================== 通用区块 ===================== */
.block { margin-top: 22px; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  margin-bottom: 14px;
}
html[data-theme='dark'] .block-head { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.block-head h2 { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.block-sub { font-size: 11.5px; color: var(--text-4); }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.2s ease;
}
html[data-theme='dark'] .link-btn { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22); color: var(--gold-1); }
.link-btn:hover { transform: translateY(-1px); }
.link-btn svg { width: 13px; height: 13px; transition: transform 0.3s ease; }
.link-btn[aria-expanded='true'] svg { transform: rotate(180deg); }

/* 通用胶囊标签 */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.6;
  color: var(--accent); background: var(--tint);
  box-shadow: 0 0 0 1px var(--line);
}
.tag.beta { color: var(--orange); background: rgba(237, 137, 54, 0.1); box-shadow: 0 0 0 1px rgba(237, 137, 54, 0.2); }
html[data-theme='dark'] .tag.beta { color: #f6ad55; }
.tag.disabled { color: var(--red); background: rgba(229, 62, 62, 0.1); box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.2); }
html[data-theme='dark'] .tag.disabled { color: #fc8181; }
.tag.gray { color: var(--text-3); background: rgba(113, 150, 168, 0.12); box-shadow: 0 0 0 1px rgba(113, 150, 168, 0.18); }

/* ===================== 最新版本下载卡 ===================== */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-out);
  border: 1px solid var(--line);
  transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}
.card:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.card-top-line { height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; overflow: hidden; background: var(--gold-grad); }
.card-top-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  background-size: 200% 100%;
}
html[data-theme='dark'] .card-top-line::after { background: linear-gradient(90deg, transparent, rgba(255, 246, 198, 0.8), transparent); background-size: 200% 100%; }
.card:hover .card-top-line::after { animation: topLineSweep 3.2s linear infinite; }
@keyframes topLineSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 网格卡片（历史版本等）：与 .card 同源的新拟态卡片 */
.neu-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-out);
  border: 1px solid var(--line);
  transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}
.neu-card:hover { box-shadow: var(--sh-hover); border-color: var(--line-strong); }
.neu-card:hover .card-top-line::after { animation: topLineSweep 3.2s linear infinite; }

.dl-card { padding: 0; }
.dl-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold-grad); z-index: 2;
}
.dl-inner { position: relative; padding: 20px 18px 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.dl-head { margin-bottom: 14px; }
.dl-ver-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-ver-line h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(90deg, #8a6d1f, #d4af37, #ffd966, #d4af37, #8a6d1f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.v-prefix { font-size: 16px; }
.dl-sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

.btn-download {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--gold-grad);
  color: #2b1d00;
  font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: var(--sh-gold-hover), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-download:active { transform: translateY(2px) scale(0.98); }
.btn-download:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.dl-ic { width: 20px; height: 20px; }
.dl-size { font-size: 12px; font-weight: 700; opacity: 0.75; }

.mirror { display: flex; gap: 10px; margin-top: 12px; }
.mirror-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  color: var(--text-3);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.25s ease;
}
html[data-theme='dark'] .mirror-btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mirror-btn:hover { color: var(--gold-2); }
.mirror-btn.active {
  background: var(--gold-grad);
  color: #0a0a10;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.32);
}
.mirror-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dl-tip { font-size: 11.5px; color: var(--text-4); margin-top: 10px; text-align: center; }

.qr-row { display: flex; gap: 10px; margin-top: 12px; }
.qr-toggle {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 0; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; color: var(--text-3);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.25s ease;
}
html[data-theme='dark'] .qr-toggle { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.qr-toggle:hover { color: var(--gold-2); box-shadow: var(--sh-in-sm); }
.qr-toggle svg { width: 15px; height: 15px; }
.qr-box { text-align: center; margin-top: 14px; }
.qr-box img {
  width: 180px; height: 180px; border-radius: var(--r-md); padding: 10px;
  background: #fff; box-shadow: var(--sh-out-sm); margin: 0 auto 10px;
}
.qr-box p { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.qr-box p span { color: var(--text-4); font-size: 11px; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.specs > div {
  padding: 12px 8px;
  border-radius: var(--r-sm);
  background: var(--tint-2);
  box-shadow: var(--sh-in-sm);
  text-align: center;
}
.specs dt { font-size: 11px; color: var(--text-4); margin-bottom: 5px; }
.specs dd { font-size: 14px; font-weight: 800; color: var(--accent); word-break: break-all; }
html[data-theme='dark'] .specs dd { color: var(--gold-1); }

.brief { margin-top: 16px; }
.brief h3 { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.brief .more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 8px;
}
html[data-theme='dark'] .brief .more { color: var(--gold-1); }
.brief .more svg { width: 12px; height: 12px; }

/* ===================== 预览轮播 ===================== */
.carousel { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: none;
  width: 210px;
  scroll-snap-align: center;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  border: 1px solid var(--line);
}
.slide img {
  width: 100%; height: 340px; object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.35s ease;
}
.slide img.loaded { opacity: 1; }
.slide figcaption {
  padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--tint-2);
}
html[data-theme='dark'] .slide figcaption { color: var(--gold-1); }
.shot-err {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 340px; color: var(--text-4); font-size: 12px;
}
.slide.is-error .shot-err { display: flex; }
.slide.is-error img { display: none; }
.dots { display: flex; justify-content: center; gap: 7px; }
.dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.28);
  transition: all 0.25s ease;
}
.dots .dot.active { background: var(--gold-2); width: 20px; border-radius: 999px; }

/* ===================== 筛选胶囊（分区栏） ===================== */
.filters { display: flex; gap: 8px; margin-bottom: 14px; }
.filter-chip {
  flex: 1;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text-3);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
html[data-theme='dark'] .filter-chip { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.filter-chip::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--gold-grad); border-radius: 3px 3px 0 0;
  transition: width 0.3s ease;
}
.filter-chip:hover { color: var(--gold-2); transform: translateY(-2px); }
.filter-chip.active {
  background: var(--gold-grad); color: #0a0a10;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.32);
  transform: translateY(-1px);
}
.filter-chip.active::after { width: 60%; }

/* ===================== 版本卡片网格 ===================== */
.ver-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ver-item {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.ver-item.is-disabled { opacity: 0.72; }
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.card-icon-wrap {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-in-sm);
  background: var(--surface);
  overflow: hidden;
}
.card-icon-wrap svg { width: 20px; height: 20px; color: var(--gold-2); }
.ver-logo { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.card-copy-btn {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.2s ease;
}
html[data-theme='dark'] .card-copy-btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.card-copy-btn:hover { color: var(--gold-2); box-shadow: var(--sh-in-sm); }
.card-copy-btn svg { width: 14px; height: 14px; }
.card-copy-btn.copied { color: var(--gold-2); }

.card-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-cat-tag {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--tint);
}
html[data-theme='dark'] .card-cat-tag { color: var(--gold-1); }
.ver-note {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ver-warn {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--red); margin-bottom: 10px; line-height: 1.5;
}
html[data-theme='dark'] .ver-warn { color: #fc8181; }
.ver-warn svg { width: 14px; height: 14px; flex: none; }

.card-actions { display: flex; gap: 9px; margin-top: auto; padding-top: 4px; }
.card-btn {
  flex: 1;
  padding: 9px 0; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--gold-grad);
  color: #2b1d00;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}
.card-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-gold-hover); }
.card-btn:active { transform: translateY(2px) scale(0.97); }
.card-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.card-btn.ghost {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--sh-out-xs);
}
html[data-theme='dark'] .card-btn.ghost { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18); color: var(--gold-1); }
.card-btn.ghost:hover { box-shadow: var(--sh-in-sm); }
.card-btn svg { width: 14px; height: 14px; }

.card-meta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; font-size: 11px; color: var(--text-4);
}
.card-meta-row span { display: inline-flex; align-items: center; gap: 3px; }
.card-meta-row svg { width: 12px; height: 12px; }
.ver-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-4); }
.ver-dl svg { width: 12px; height: 12px; }

/* ===================== 折叠面板（权限 / 常见问题） ===================== */
.perm-collapsible, .faq-collapsible { display: flex; flex-direction: column; gap: 12px; }
.perm-toggle, .faq-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  text-align: left;
  transition: box-shadow 0.25s ease;
}
html[data-theme='dark'] .perm-toggle, html[data-theme='dark'] .faq-toggle { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.perm-toggle:hover, .faq-toggle:hover { box-shadow: var(--sh-hover); }
.pt-ic, .ft-ic {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2);
  box-shadow: var(--sh-in-sm);
}
.pt-ic svg, .ft-ic svg { width: 18px; height: 18px; }
.pt-main, .ft-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-title, .ft-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.pt-sub, .ft-sub { font-size: 11.5px; color: var(--text-4); }
.pt-sub b, .ft-sub b { color: var(--accent); }
html[data-theme='dark'] .pt-sub b, html[data-theme='dark'] .ft-sub b { color: var(--gold-1); }
.pt-chevron, .ft-chevron { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s ease; flex: none; }
.perm-toggle.open .pt-chevron, .faq-toggle.open .ft-chevron { transform: rotate(180deg); }

.perm-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--tint-2);
  box-shadow: var(--sh-in-sm);
  margin-bottom: 12px;
}
.perm-note svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; margin-top: 2px; }
.perm-note p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.perm-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  border-top: 2px solid rgba(212, 175, 55, 0.45);
}
html[data-theme='dark'] .perm-item { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.perm-ic {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2); box-shadow: var(--sh-in-sm);
}
.perm-ic svg { width: 18px; height: 18px; }
.perm-body { min-width: 0; }
.perm-body h3 { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.perm-body h3 span { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; color: var(--text-4); background: rgba(160, 174, 192, 0.16); }
.perm-body h3 .req { color: var(--accent); background: var(--tint); }
html[data-theme='dark'] .perm-body h3 .req { color: var(--gold-1); }
.perm-body p { font-size: 12px; color: var(--text-2); line-height: 1.65; margin-top: 4px; }

/* ===================== 更新日志 ===================== */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item {
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  border-top: 2px solid rgba(212, 175, 55, 0.45);
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
html[data-theme='dark'] .tl-item { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.tl-item:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15); transform: translateY(-1px); }
.tl-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ffd966, transparent);
  opacity: 0; transition: opacity 0.3s;
}
.tl-item:hover::before { opacity: 1; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-ver { font-size: 15px; font-weight: 800; color: var(--text); }
.tl-date { font-size: 11px; color: var(--text-4); margin-left: auto; }

.log-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.log-li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.log-tag {
  flex: none; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  margin-top: 1px; color: #0a0a10; background: var(--gold-grad);
}
.log-tag.lg-fix { background: linear-gradient(135deg, #fc8181, #e53e3e); color: #fff; }
.log-tag.lg-opt { background: linear-gradient(135deg, #68d391, #48bb78); color: #0a2a12; }
.log-tag.lg-del { background: linear-gradient(135deg, #a0aec0, #718096); color: #0a0a10; }
.log-tag.lg-other { background: linear-gradient(135deg, #b794f4, #805ad5); color: #fff; }
.log-text { flex: 1; min-width: 0; word-break: break-word; }

/* ===================== 常见问题 ===================== */
.faq-panel { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  overflow: hidden;
  border-top: 2px solid rgba(212, 175, 55, 0.45);
}
html[data-theme='dark'] .faq-item { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  text-align: left;
}
.faq-q .q-mark {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #0a0a10; background: var(--gold-grad);
}
.faq-q span:nth-child(2) { flex: 1; min-width: 0; }
.faq-q svg { width: 14px; height: 14px; color: var(--text-3); flex: none; transition: transform 0.3s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a-inner {
  padding: 0 16px 14px 46px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap;
}

/* ===================== 问题处理 ===================== */
.hd-list { display: flex; flex-direction: column; gap: 12px; }
.hd-item {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  border-top: 2px solid rgba(212, 175, 55, 0.45);
}
html[data-theme='dark'] .hd-item { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.hd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hd-status {
  font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  color: #0a0a10; background: var(--gold-grad);
}
.hd-cat { font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--tint); padding: 2px 9px; border-radius: 999px; }
html[data-theme='dark'] .hd-cat { color: var(--gold-1); }
.hd-time { font-size: 11px; color: var(--text-4); margin-left: auto; }
.hd-q, .hd-a { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.7; }
.hd-q { color: var(--text); margin-bottom: 6px; }
.hd-a { color: var(--text-2); }
.hd-q span, .hd-a span {
  flex: none; width: 19px; height: 19px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin-top: 2px;
}
.hd-q span { color: #0a0a10; background: var(--gold-grad); }
.hd-a span { color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--line); }
html[data-theme='dark'] .hd-a span { color: var(--gold-1); }
.hd-contact { font-size: 11px; color: var(--text-4); margin-top: 7px; }

/* ===================== 反馈 ===================== */
.fb-card {
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-out);
  border: 1px solid var(--line);
}
html[data-theme='dark'] .fb-card { box-shadow: var(--sh-out), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.fb-intro { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fb-cat {
  padding: 8px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.2s ease;
}
html[data-theme='dark'] .fb-cat { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.fb-cat:hover { color: var(--gold-2); }
.fb-cat.active {
  background: var(--gold-grad); color: #0a0a10;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.field { display: block; position: relative; margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.field-label em { color: var(--red); font-style: normal; }
.field-label .optional { color: var(--text-4); font-weight: 600; font-size: 11px; }
.field textarea, .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--surface);
  box-shadow: var(--sh-in);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: box-shadow 0.25s ease;
}
.field textarea::placeholder, .field input::placeholder { color: var(--text-4); }
.field textarea:focus, .field input:focus { box-shadow: var(--sh-in), 0 0 0 2px rgba(212, 175, 55, 0.35); }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--text-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn-submit {
  width: 100%;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--r-sm);
  background: var(--gold-grad);
  color: #0a0a10;
  font-size: 15px; font-weight: 800;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--sh-gold-hover); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; height: 16px; }
.fb-done {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent);
}
html[data-theme='dark'] .fb-done { color: var(--gold-1); }
.fb-done svg { width: 14px; height: 14px; }

/* ===================== 数据条 ===================== */
.stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  text-align: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
html[data-theme='dark'] .stat-strip { box-shadow: var(--sh-out-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; }
.stat-num { font-size: 21px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
html[data-theme='dark'] .stat-num { color: var(--gold-1); }
.stat-unit { font-size: 11px; font-weight: 600; color: var(--text-4); font-style: normal; margin-left: 2px; }
.stat-label { font-size: 11px; color: var(--text-4); display: inline-flex; align-items: center; gap: 4px; }
.stat-ic { width: 13px; height: 13px; }
.stat-divider { width: 1px; height: 34px; background: linear-gradient(to bottom, transparent, #c8cdd5, transparent); }
html[data-theme='dark'] .stat-divider { background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent); }

/* ===================== 页脚 ===================== */
.site-footer { margin-top: 30px; padding: 0 10px 10px; text-align: center; }
.footer-line { width: 120px; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, #d4af37, transparent); }
.copyright { font-size: 13px; font-weight: 700; color: var(--text); }
.footer-extra { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.7; }
.beian { font-size: 12px; margin-top: 6px; }
.beian a { color: var(--text-3); }
.footer-meta { font-size: 12px; color: var(--text-4); margin-top: 10px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer-arch { color: var(--accent); font-weight: 700; }
html[data-theme='dark'] .footer-arch { color: var(--gold-1); }

/* ===================== 移动端底部下载条 ===================== */
.mobile-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: var(--r-lg);
  background: rgba(232, 236, 241, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--line);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
.mobile-bar.show { transform: translateY(0); opacity: 1; }
html[data-theme='dark'] .mobile-bar { background: rgba(10, 10, 18, 0.94); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.16); }
.mb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-info strong { font-size: 14px; font-weight: 800; color: var(--text); }
.mb-info span { font-size: 11px; color: var(--text-4); }
.mb-btn {
  padding: 10px 22px; border-radius: 999px;
  background: var(--gold-grad); color: #0a0a10;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--sh-gold);
}
.mb-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
@media (min-width: 861px) { .mobile-bar { display: none !important; } }

/* ===================== 弹窗 ===================== */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeInModal 0.22s ease;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.modal-mask { position: absolute; inset: 0; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.12);
  animation: modalIn 0.3s ease;
}
html[data-theme='dark'] .modal-card { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  transition: all 0.2s ease;
}
html[data-theme='dark'] .modal-x { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.modal-x:hover { color: var(--red); box-shadow: var(--sh-in-sm); }
.modal-x svg { width: 14px; height: 14px; }
.modal-ic {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2); box-shadow: var(--sh-in-sm);
}
.modal-ic svg { width: 22px; height: 22px; }
.modal-card h3 { font-size: 17px; font-weight: 700; color: var(--text); text-align: center; }
.modal-desc { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 6px; }
.modal-desc b { color: var(--accent); }
html[data-theme='dark'] .modal-desc b { color: var(--gold-1); }
.code-input {
  width: 100%; margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--surface);
  box-shadow: var(--sh-in);
  color: var(--text);
  font-size: 16px; text-align: center; letter-spacing: 0.2em;
  outline: none;
}
.code-err { color: var(--red); font-size: 12px; margin-top: 8px; text-align: center; }
html[data-theme='dark'] .code-err { color: #fc8181; }
.btn-primary {
  width: 100%; margin-top: 16px;
  padding: 13px;
  border-radius: var(--r-sm);
  background: var(--gold-grad);
  color: #0a0a10;
  font-size: 15px; font-weight: 800;
  box-shadow: var(--sh-gold);
  transition: all 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-gold-hover); }

/* 安装包详情弹窗 */
.pkg-card { max-width: 460px; }
.pkg-head { display: flex; align-items: center; gap: 12px; padding-right: 34px; margin-bottom: 16px; }
.pkg-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2); box-shadow: var(--sh-in-sm);
}
.pkg-ic svg { width: 22px; height: 22px; }
.pkg-ic img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.pkg-ht { min-width: 0; }
.pkg-ht h3 { text-align: left; font-size: 16px; }
.pkg-sub { font-size: 11.5px; color: var(--text-4); margin-top: 3px; }
.pkg-body { display: flex; flex-direction: column; gap: 14px; }
.pkg-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
  background: var(--tint); color: var(--accent);
  box-shadow: var(--sh-in-sm);
}
html[data-theme='dark'] .pkg-banner { color: var(--gold-1); }
.pkg-banner.bad { background: rgba(229, 62, 62, 0.1); color: var(--red); }
html[data-theme='dark'] .pkg-banner.bad { color: #fc8181; }
.pkg-banner svg { width: 15px; height: 15px; flex: none; }
.pkg-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.pkg-time svg { width: 13px; height: 13px; }
.pkg-time b { color: var(--text-2); }
.pkg-tz { color: var(--text-4); font-size: 11px; }
.pkg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg-stat { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: var(--sh-in-sm); }
.pkg-stat-k { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-4); }
.pkg-stat-k svg { width: 12px; height: 12px; }
.pkg-stat-v { display: block; font-size: 15px; font-weight: 800; color: var(--accent); margin-top: 4px; }
html[data-theme='dark'] .pkg-stat-v { color: var(--gold-1); }
.pt-label { font-size: 11px; font-weight: 700; color: var(--text-4); margin-bottom: 7px; }
.pkg-actions { display: flex; flex-direction: column; gap: 9px; }
.pkg-dl {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--gold-grad);
  color: #0a0a10;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}
.pkg-dl:hover { transform: translateY(-2px); box-shadow: var(--sh-gold-hover); }
.pkg-dl svg { width: 15px; height: 15px; }
.pkg-dl.ghost { background: var(--surface); color: var(--accent); box-shadow: var(--sh-out-xs); }
html[data-theme='dark'] .pkg-dl.ghost { color: var(--gold-1); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18); }
.pkg-dl.ghost:hover { box-shadow: var(--sh-in-sm); }
.pkg-empty { text-align: center; padding: 22px 10px; color: var(--text-4); }
.pkg-empty svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold-2); opacity: 0.7; }
.pkg-empty p { font-size: 13px; font-weight: 700; color: var(--text-2); }
.pkg-empty span { font-size: 11.5px; display: block; margin-top: 5px; line-height: 1.6; }

/* ===================== 回到顶部 ===================== */
.scroll-ring {
  position: fixed;
  right: 18px; bottom: 26px;
  z-index: 95;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  box-shadow: var(--sh-out-xs);
  color: var(--gold-2);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-ring.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-ring:hover { color: var(--gold-3); transform: translateY(-3px); }
body.bar-visible .scroll-ring { bottom: 92px; }
.scroll-ring > svg { position: absolute; inset: 0; width: 44px; height: 44px; }
.ring-bg { opacity: 0.14; }
.ring-fill { transition: stroke-dashoffset 0.15s linear; }
.ring-arrow { width: 17px; height: 17px; position: relative; }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-60px);
  z-index: 2000;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #0a0a10;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== 顶部滚动进度条 ===================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--gold-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* ===================== 下载进度 ===================== */
.dl-progress {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 1500; width: min(340px, 90vw);
}
.dlp-card {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--line);
}
html[data-theme='dark'] .dlp-card { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dlp-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.dlp-title svg { width: 14px; height: 14px; color: var(--gold-2); }
.dlp-bar { height: 6px; border-radius: 999px; background: rgba(212, 175, 55, 0.15); overflow: hidden; margin: 10px 0 8px; }
.dlp-fill { height: 100%; width: 0; border-radius: 999px; background: var(--gold-grad); transition: width 0.2s linear; }
.dlp-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.dlp-cancel { font-size: 11.5px; font-weight: 700; color: var(--text-4); }
.dlp-cancel:hover { color: var(--red); }

/* ===================== 空态 ===================== */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 16px;
  color: var(--text-4);
  font-size: 13px;
}

/* ===================== 动效工具 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sg-in { opacity: 1; transform: none; }

.kw { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.kw-in .kw { opacity: 1; transform: none; }
.kw-in .kw:nth-child(1) { transition-delay: 0.02s; }
.kw-in .kw:nth-child(2) { transition-delay: 0.08s; }
.kw-in .kw:nth-child(3) { transition-delay: 0.14s; }
.kw-in .kw:nth-child(4) { transition-delay: 0.2s; }
.kw-in .kw:nth-child(5) { transition-delay: 0.26s; }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
}
@keyframes rippleOut { to { transform: scale(2.4); opacity: 0; } }

.burst {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  animation: burstOut 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes burstOut {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bg-aurora i, .hero-glow, .hero-scan, .card-top-line::after { animation: none !important; }
  .kw { opacity: 1; transform: none; }
}

/* ===================== 响应式 ===================== */
@media (max-width: 860px) {
  .ver-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px 20px; }
  .hero { padding: 28px 14px 24px; margin-top: 16px; border-radius: 18px; }
  .hero-brand { font-size: 29px; letter-spacing: 5px; }
  .hero-logo, .hero-logo img { width: 68px; height: 68px; }
  .hero-logo img { border-radius: 18px; }
  .tagline { font-size: 11px; letter-spacing: 2px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .ver-list { grid-template-columns: 1fr; gap: 14px; }
  .stat-strip { gap: 16px; padding: 15px 14px; }
  .stat-cell { min-width: 72px; }
  .stat-num { font-size: 18px; }
  .filters { gap: 7px; }
  .filter-chip { font-size: 12.5px; padding: 9px 6px; }
  .slide { width: 168px; }
  .slide img, .shot-err { height: 280px; }
  .perm-grid { grid-template-columns: 1fr; }
  .dl-ver-line h2 { font-size: 22px; }
  .card-body { padding: 12px 14px 14px; }
  .modal-card { padding: 22px 18px; }
}
