/* Folia 音乐播放器 · 下载落地页样式（浅色主题） */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef3fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fd;
  --line: #e4e8f0;
  --line-strong: #d3dae7;
  --fg: #0f141b;
  --fg-soft: #2a3341;
  --muted: #5d6879;
  --accent: #2f6ad0;
  --accent-dark: #24559f;
  --accent-soft: rgba(47, 106, 208, .08);
  --grad: linear-gradient(135deg, #2f6ad0 0%, #5b8ae4 60%, #8fb3f2 100%);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(21, 40, 74, .05);
  --shadow: 0 18px 50px rgba(21, 40, 74, .10);
  --shadow-lg: 0 30px 70px rgba(21, 40, 74, .16);
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: .2px; color: var(--fg); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: 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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

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

/* ---------- 按钮 ---------- */
.btn {
  --btn-py: 12px;
  --btn-px: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --btn-py: 9px; --btn-px: 18px; font-size: 14px; }
.btn-lg { --btn-py: 15px; --btn-px: 30px; font-size: 16.5px; }
.btn-sub { font-size: 11.5px; font-weight: 400; opacity: .88; letter-spacing: .3px; }
.btn-sm .btn-sub { display: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(47, 106, 208, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(47, 106, 208, .36), inset 0 1px 0 rgba(255, 255, 255, .45); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: 0 12px 28px rgba(47, 106, 208, .16); }

.link-btn {
  align-self: flex-start;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent-dark); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .3px; }
.brand img { border-radius: 11px; box-shadow: 0 4px 12px rgba(21, 40, 74, .14); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 17px; }
.brand-text em { font-size: 11px; font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--fg-soft); transition: color .2s var(--ease); }
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; margin: 4px auto;
  background: var(--fg); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 移动端导航展开时的背景遮罩 */
.nav-scrim {
  position: fixed;
  left: 0; right: 0; top: 69px; bottom: 0;
  z-index: 55;
  background: rgba(15, 20, 27, .3);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(46% 60% at 18% 24%, rgba(47, 106, 208, .13), transparent 68%),
    radial-gradient(40% 52% at 84% 10%, rgba(143, 179, 242, .22), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-soft);
  box-shadow: var(--shadow-sm);
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #23b26d;
  box-shadow: 0 0 0 4px rgba(35, 178, 109, .14);
}

.hero h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.35rem);
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 17px; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--fg); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-facts li { display: flex; flex-direction: column; line-height: 1.4; }
.hero-facts b { font-size: 16px; }
.hero-facts span { font-size: 13px; color: var(--muted); }

.window {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.window img { width: 100%; }

/* ---------- 概览条 ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 4px; text-align: center; border-left: 1px solid var(--line); }
.strip-grid > div:first-child { border-left: 0; }
.strip-grid b { display: block; font-size: 19px; letter-spacing: .3px; color: var(--fg); }
.strip-grid span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 0 44px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); }
.section-desc { color: var(--muted); margin: 0; }

/* ---------- 功能卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.card {
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(47, 106, 208, .35); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 106, 208, .14), rgba(47, 106, 208, .04));
  border: 1px solid rgba(47, 106, 208, .22);
  color: var(--accent);
  font-size: 20px;
}

/* ---------- 截图滑动画廊 ---------- */
.gallery { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; }
.gallery-viewport {
  display: flex;
  gap: 20px;
  padding: 6px 24px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery-viewport img { -webkit-user-drag: none; }

.shot {
  flex: 0 0 calc((100% - 40px) / 3);
  margin: 0;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(47, 106, 208, .3); }
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.shot img { width: 100%; display: block; }
.shot figcaption { padding: 18px 22px 20px; font-size: 14.5px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--fg); font-size: 16.5px; margin-bottom: 4px; }

.gallery-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.gallery-bar[hidden] { display: none; }
.car-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.car-btn[disabled] { opacity: .35; cursor: default; transform: none; border-color: var(--line); color: var(--muted); }
.car-dots { display: flex; align-items: center; gap: 8px; }
.car-dots button {
  width: 8px; height: 8px; padding: 0;
  background: var(--line-strong);
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.car-dots button[aria-current="true"] { width: 22px; background: var(--accent); border-radius: 999px; }

/* ---------- 图片放大 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(15, 20, 27, .78);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .92);
  border: 0; border-radius: 50%;
  color: #0f141b;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { transform: scale(1.06); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; margin-top: -24px; }
.lb-next { right: 24px; top: 50%; margin-top: -24px; }
.lb-caption {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  margin: 0; padding: 10px 20px;
  max-width: 80vw;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  font-size: 14px; color: #2a3341;
  text-align: center;
}

/* ---------- 格式 & 表格 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }
.chips li {
  padding: 9px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--fg-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--accent-dark); }

.reqs h3 { font-size: 19px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
table th, table td { padding: 15px 22px; text-align: left; border-top: 1px solid var(--line); }
table tr:first-child th, table tr:first-child td { border-top: 0; }
table th { width: 190px; font-weight: 500; color: var(--muted); background: var(--panel-soft); }
table td { color: var(--fg-soft); }

/* ---------- 下载面板 ---------- */
.dl-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  padding: 34px;
  background: linear-gradient(160deg, #eef3fb 0%, #ffffff 55%);
  border: 1px solid rgba(47, 106, 208, .22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dl-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.dl-meta img { border-radius: 14px; box-shadow: 0 6px 18px rgba(21, 40, 74, .16); }
.dl-meta b { display: block; font-size: 17px; }
.dl-meta span { font-size: 13.5px; color: var(--muted); }
.dl-main { display: flex; flex-direction: column; align-items: stretch; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.dl-buttons .btn { flex: 1 1 220px; }

.steps { counter-reset: step; display: grid; gap: 18px; align-content: start; }
.steps li { position: relative; padding-left: 46px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(47, 106, 208, .1);
  border: 1px solid rgba(47, 106, 208, .3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.steps b { display: block; font-size: 16px; }
.steps span { font-size: 14.5px; color: var(--muted); }
.dl-note { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.dl-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 平台下载卡片 ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.platform {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.platform:hover { transform: translateY(-4px); border-color: rgba(47, 106, 208, .35); box-shadow: var(--shadow); }
.platform h3 { font-size: 17px; margin-bottom: .3em; }
.platform-meta { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
.platform-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.platform-actions .btn { flex: 1 1 auto; }

/* ---------- 更新日志 ---------- */
.timeline-log { display: grid; gap: 22px; border-left: 2px solid var(--line-strong); padding-left: 28px; }
.log-item { position: relative; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.log-item::before {
  content: "";
  position: absolute; left: -37px; top: 32px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(47, 106, 208, .14);
}
.log-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.log-head b { font-size: 18px; }
.log-head time { font-size: 13.5px; color: var(--muted); }
.log-item ul { display: grid; gap: 7px; }
.log-item li { position: relative; padding-left: 18px; color: var(--fg-soft); font-size: 15px; }
.log-item li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: rgba(47, 106, 208, .55); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: rgba(47, 106, 208, .3); box-shadow: var(--shadow); }
.faq summary {
  padding: 16px 34px 16px 0;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- 结尾 CTA ---------- */
.cta-end {
  padding: 84px 0;
  text-align: center;
  background: radial-gradient(60% 120% at 50% 0%, rgba(47, 106, 208, .14), transparent 70%), var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 60px 0 44px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand p { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; max-width: 30em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-nav h3 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.footer-nav a { display: block; font-size: 14.5px; color: var(--fg-soft); padding: 5px 0; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 返回顶部 & 提示 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 50;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
  font-size: 17px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 300;
  padding: 12px 22px;
  background: rgba(15, 20, 27, .92);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(15, 20, 27, .28);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
/* 仅在 JS 可用且未入场时隐藏，避免禁用 JS 时内容不可见 */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { padding: 56px 0 68px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; }
  .dl-panel { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .shot { flex: 0 0 calc((100% - 20px) / 2); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; width: 46px; height: 46px; }
  /* 导航隐藏后，靠 header-actions 的自动外边距把按钮贴到右侧 */
  .header-actions { margin-left: auto; }
  .site-header .header-inner { position: relative; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(3) { border-left: 0; }
  .strip-grid > div { border-top: 1px solid var(--line); }
  .strip-grid > div:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .brand-text { font-size: 15.5px; }
  .lede { font-size: 15.5px; }
  .hero-facts { gap: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .window-bar span { display: none; }
  .gallery-viewport { padding: 6px 18px 22px; scroll-padding-left: 18px; }
  .shot { flex: 0 0 86%; }
  .dl-panel { padding: 24px 20px; }
  .dl-meta b { font-size: 15px; }
  .platforms { grid-template-columns: 1fr; }
  .platform-actions .btn { flex: 1 1 100%; }
  .table-wrap th { width: 120px; }
  table th, table td { padding: 13px 15px; font-size: 14px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .timeline-log { padding-left: 20px; }
  .log-item::before { left: -29px; }
  .shot figcaption { padding: 16px 18px 18px; }
  /* 底部留白加大，避免悬浮按钮压住版权行 */
  .site-footer { padding: 48px 0 56px; }
  /* 移动端：备案号在上、版权行在下并整体下移 */
  .footer-bottom { margin-top: 56px; padding-top: 24px; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .to-top { right: 16px; bottom: 22px; }
  .lightbox { padding: 16px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
}

/* 超窄屏：收紧头部按钮，避免换行 */
@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .header-actions .btn-sm { --btn-px: 14px; font-size: 13px; }
  .brand-text em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .toast, .cta-end { display: none; }
  .gallery-viewport { flex-wrap: wrap; overflow: visible; }
  .shot { flex: 0 0 100%; }
}
