/* MD3Music 官方网站 · Material You 风格样式 */
:root {
  --primary: #6b4bf5;
  --on-primary: #ffffff;
  --primary-container: #e9e1ff;
  --on-primary-container: #25055f;
  --secondary: #f0468c;
  --secondary-container: #ffdbe8;
  --tertiary: #0b84d8;
  --tertiary-container: #d6ecff;
  --bg: #f4f0fb;
  --bg-2: #fff7fb;
  --surface: #ffffff;
  --surface-1: #fbf8ff;
  --surface-2: #f2ecfa;
  --surface-3: #eae2f6;
  --text: #1a1622;
  --text-2: #4d4560;
  --muted: #7a7189;
  --outline: rgba(26, 22, 34, 0.09);
  --outline-strong: rgba(26, 22, 34, 0.16);
  --shadow-sm: 0 1px 2px rgba(40, 24, 80, 0.06), 0 4px 14px rgba(40, 24, 80, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(58, 32, 120, 0.18), 0 2px 8px rgba(58, 32, 120, 0.06);
  --shadow-lg: 0 30px 70px -24px rgba(52, 24, 110, 0.32);
  --grad: linear-gradient(115deg, #7c5cff 0%, #ff6aa8 48%, #35b4ff 100%);
  --grad-soft: linear-gradient(140deg, #efe7ff 0%, #ffe9f3 55%, #e2f3ff 100%);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 32px;
  --nav-h: 68px;
  --max: 1180px;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #c0b0ff;
  --on-primary: #2b1163;
  --primary-container: #3a2a63;
  --on-primary-container: #e9e1ff;
  --secondary: #ff9dc4;
  --secondary-container: #52213a;
  --tertiary: #8ccbff;
  --tertiary-container: #123c5c;
  --bg: #0d0b13;
  --bg-2: #120d1b;
  --surface: #17141f;
  --surface-1: #1c1826;
  --surface-2: #221d2e;
  --surface-3: #2b2439;
  --text: #f3eefc;
  --text-2: #c3b9d6;
  --muted: #9389a8;
  --outline: rgba(255, 255, 255, 0.09);
  --outline-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  --grad-soft: linear-gradient(140deg, #241b3d 0%, #33182c 55%, #102a3d 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 620px at 8% -8%, rgba(124, 92, 255, 0.20), transparent 62%),
    radial-gradient(820px 560px at 96% 4%, rgba(255, 106, 168, 0.16), transparent 60%),
    radial-gradient(760px 620px at 52% 108%, rgba(53, 180, 255, 0.14), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 600px at 6% -6%, rgba(124, 92, 255, 0.28), transparent 62%),
    radial-gradient(760px 520px at 98% 2%, rgba(240, 70, 140, 0.18), transparent 60%),
    radial-gradient(720px 600px at 50% 106%, rgba(53, 180, 255, 0.16), transparent 62%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, 0.26); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em; padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); color: var(--text);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.topbar.scrolled { border-bottom-color: var(--outline); box-shadow: 0 6px 24px -18px rgba(30, 15, 70, .5); }
.topbar .container { display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 4px 14px -4px rgba(80, 40, 160, .45); }
.brand span small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; line-height: 1.1; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 550;
  color: var(--text-2); transition: background .2s, color .2s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-container); color: var(--on-primary-container); font-weight: 650; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--outline);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--outline-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.8px; font-weight: 650; letter-spacing: .01em; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(107, 75, 245, .75); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(107, 75, 245, .85); }
.btn-tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn-outline { background: var(--surface); border-color: var(--outline-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-container);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.2; margin: 0; font-weight: 760; }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
.section-head p { color: var(--text-2); font-size: 16px; margin: 14px 0 0; }
.text-grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 54px 0 30px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.pill .tag {
  background: var(--grad); color: #fff; font-weight: 750; font-size: 11.5px;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

.hero h1 { font-size: clamp(48px, 7.4vw, 86px); line-height: .98; margin: 20px 0 0; font-weight: 800; letter-spacing: -.045em; }
.hero h1 .sub { display: block; font-size: clamp(19px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.02em; margin-top: 12px; color: var(--text-2); }
.hero p.lead { font-size: 16.5px; color: var(--text-2); margin: 20px 0 0; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.2px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--primary); }

.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--grad); filter: blur(70px); opacity: .34; animation: float 12s ease-in-out infinite;
}
.shot {
  position: relative; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .22);
}
.shot-main { width: min(292px, 62%); z-index: 2; transform: rotate(-2.5deg); animation: float 9s ease-in-out infinite; }
.shot-back { position: absolute; width: min(246px, 52%); right: 2%; top: 6%; z-index: 1; transform: rotate(5deg); opacity: .96; animation: float 11s ease-in-out infinite reverse; }
.shot-back::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(30, 10, 60, .16));
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) {
  .glow, .shot-main, .shot-back { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 平台条 ---------- */
.platform-strip { padding: 26px 0 0; }
.platform-strip .row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px;
  padding: 18px 26px; background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text-2); font-size: 14px;
}
.platform-strip .row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.platform-strip .row svg { width: 17px; height: 17px; color: var(--primary); }
.platform-strip .sep { width: 1px; height: 18px; background: var(--outline-strong); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 16px; }
.feature {
  padding: 26px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--outline); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad);
  opacity: 0; transition: opacity .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--outline-strong); }
.feature:hover::before { opacity: 1; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-container); color: var(--primary); margin-bottom: 16px;
}
.feature:nth-child(3n+2) .ico { background: var(--secondary-container); color: var(--secondary); }
.feature:nth-child(3n+3) .ico { background: var(--tertiary-container); color: var(--tertiary); }
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------- 截图 ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tab {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--outline);
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 620; cursor: pointer;
  transition: all .2s;
}
.tab:hover { color: var(--text); border-color: var(--outline-strong); }
.tab.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px rgba(107, 75, 245, .8); }

.gallery { display: none; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.gallery.active { display: flex; animation: fadeUp .5s ease both; }
.gallery figure { margin: 0; width: 250px; }
.gallery img {
  width: 100%; border-radius: 26px; box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery figure:hover img { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg); }
.gallery figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.gallery.wide { max-width: 940px; margin: 0 auto; }
.gallery.wide figure { width: 440px; }

/* ---------- 架构 ---------- */
.arch {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding: 30px; border-radius: var(--radius-lg); background: var(--grad-soft);
  border: 1px solid var(--outline);
}
.arch .node { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.arch .node b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.arch .node span { font-size: 12.8px; color: var(--text-2); }
.arch .arrow { color: var(--primary); }
.arch .arrow svg { width: 26px; height: 26px; }
.arch-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.arch-notes div { font-size: 13.6px; color: var(--text-2); display: flex; gap: 9px; align-items: flex-start; }
.arch-notes svg { width: 17px; height: 17px; color: var(--primary); margin-top: 3px; }

/* ---------- 下载 ---------- */
.qdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qdl {
  padding: 30px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--outline); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.qdl::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--grad); opacity: .1; filter: blur(6px); }
.qdl-head { display: flex; align-items: center; gap: 13px; }
.qdl-head .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.qdl-head .ico svg { width: 25px; height: 25px; }
.qdl-head h3 { font-size: 17.5px; }
.qdl-head p { margin: 2px 0 0; font-size: 12.8px; color: var(--muted); }
.qdl .files { display: flex; flex-direction: column; gap: 8px; }
.qdl .file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-1); border: 1px solid var(--outline); border-radius: var(--radius-xs);
  font-size: 13.2px; transition: background .2s, border-color .2s;
}
.qdl .file:hover { background: var(--primary-container); border-color: transparent; }
.qdl .file .n { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qdl .file .s { color: var(--muted); font-size: 12px; }
.qdl .file svg { width: 15px; height: 15px; color: var(--primary); }
.qdl .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.dl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--outline); box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.dl-toolbar .label { display: flex; align-items: center; gap: 9px; font-size: 13.6px; font-weight: 650; color: var(--text-2); }
.dl-toolbar .label svg { width: 17px; height: 17px; color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--outline-strong); background: transparent; color: var(--text-2);
  font-size: 12.8px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.active { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.chip .badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: #16a34a; }

.version-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 22px; }
.version-card .vc-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 22px 26px; border-bottom: 1px solid var(--outline); background: var(--surface-1);
}
.version-card .vc-head .ver { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.version-card .vc-head .date { font-size: 13px; color: var(--muted); }
.version-card .vc-head .flags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.badge-latest { background: linear-gradient(120deg, #7c5cff, #ff6aa8); color: #fff; font-size: 11.5px; font-weight: 750; padding: 4px 11px; border-radius: 999px; letter-spacing: .03em; }
.badge-plain { background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 999px; }

.dl-list { display: flex; flex-direction: column; }
.dl-row {
  display: grid; grid-template-columns: 42px 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 26px; border-bottom: 1px solid var(--outline);
  transition: background .18s;
}
.dl-row:last-child { border-bottom: 0; }
.dl-row:hover { background: var(--surface-1); }
.dl-row .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.dl-row .ico svg { width: 20px; height: 20px; }
.dl-row .name { font-size: 14.4px; font-weight: 680; word-break: break-all; }
.dl-row .desc { font-size: 12.8px; color: var(--text-2); margin-top: 2px; }
.dl-row .size { font-size: 12.8px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-row .go {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650;
  transition: background .2s, color .2s;
}
.dl-row:hover .go { background: var(--primary); color: var(--on-primary); }
.dl-row .go svg { width: 15px; height: 15px; }
.dev-only { display: none !important; }
body.show-dev .dl-row.dev-only { display: grid !important; }
.dev-toggle { font-size: 12.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; background: none; border: 0; }
.dev-toggle svg { width: 15px; height: 15px; }

.note-box {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--tertiary-container); color: var(--text-2); font-size: 13.4px;
  border: 1px solid transparent;
}
.note-box svg { width: 19px; height: 19px; color: var(--tertiary); flex: none; margin-top: 2px; }
.note-box.warn { background: var(--secondary-container); }
.note-box.warn svg { color: var(--secondary); }

/* 系统要求表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--outline); vertical-align: top; }
.spec-table th { font-size: 12.6px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec-table td:first-child { font-weight: 680; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: 0; }

/* ---------- 更新日志 ---------- */
.log-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow-sm); padding: 30px 32px; margin-bottom: 22px; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.log-head h2 { font-size: 26px; }
.log-head .date { color: var(--muted); font-size: 13.5px; }
.log-card h4 { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.log-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.log-card li { position: relative; padding-left: 22px; font-size: 14.2px; color: var(--text-2); }
.log-card li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.log-card .files-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.log-card .files-inline a {
  font-size: 12.6px; font-weight: 620; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); transition: background .2s, color .2s;
}
.log-card .files-inline a:hover { background: var(--primary-container); color: var(--on-primary-container); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm);
  padding: 0 22px; transition: border-color .2s, box-shadow .25s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--outline-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-size: 15.2px; font-weight: 650;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--primary); }
.faq .a { padding: 0 0 20px; font-size: 14.2px; color: var(--text-2); }
.faq .a p { margin: 0 0 8px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 54px 44px; text-align: center; position: relative; overflow: hidden;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { position: relative; margin: 12px auto 26px; max-width: 560px; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.cta-band .btn { position: relative; }
.cta-band .btn-light { background: #fff; color: #2a1268; }
.cta-band .btn-ghost-light { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }

/* ---------- 页脚 ---------- */
footer { padding: 56px 0 36px; border-top: 1px solid var(--outline); margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand p { font-size: 13.6px; color: var(--muted); margin: 14px 0 0; max-width: 320px; }
.foot-col h5 { font-size: 12.4px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 14px; }
.foot-col a { display: block; font-size: 13.8px; color: var(--text-2); padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--outline); font-size: 12.6px; color: var(--muted); }
.foot-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s cubic-bezier(.2,.7,.2,1), translate .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
@keyframes fadeUp { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .hero .container { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { min-height: 430px; order: -1; }
  .hero h1 { font-size: clamp(44px, 9vw, 68px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    padding: 14px 18px 22px; gap: 4px; background: var(--bg);
    border-bottom: 1px solid var(--outline); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease; margin: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 16px; border-radius: 14px; font-size: 15.5px; }
  .menu-btn { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .qdl-grid { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch .arrow { transform: rotate(90deg); justify-self: center; }
  section { padding: 66px 0; }
  .dl-row { grid-template-columns: 38px 1fr auto; padding: 15px 18px; row-gap: 10px; }
  .dl-row .size { display: none; }
  .version-card .vc-head { padding: 18px 18px; }
  .log-card { padding: 24px 20px; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .gallery figure { width: 44%; min-width: 140px; }
  .gallery.wide figure { width: 100%; }
  .hero-visual { min-height: 340px; }
  .shot-back { display: none; }
  .shot-main { width: 210px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec-table th:nth-child(3), .spec-table td:nth-child(3) { display: none; }
  .dl-toolbar { padding: 14px 16px; }
  .dl-row .name { font-size: 13.4px; }
}
