/* ============================================================
   魔琴 MagicPiano 官网样式
   配色沿用客户端：品牌蓝 #409EFF / 强调橙 #FF9800 / 深底 #0d1117
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-2: #0f141d;
  --surface: #141a25;
  --surface-2: #1a2230;
  --line: #232d3d;
  --line-soft: #1c2432;

  --text: #e8edf6;
  --text-2: #a7b3c6;
  --text-3: #6f7c92;

  --brand: #409EFF;
  --brand-2: #66b1ff;
  --brand-dark: #337ecc;
  --accent: #FF9800;
  --accent-2: #F57C00;
  --green: #67C23A;
  --purple: #975FE0;

  --radius: 14px;
  --radius-lg: 20px;
  --max: 1200px;
  --nav-h: 66px;

  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.grad {
  background: linear-gradient(100deg, var(--brand-2) 0%, #7ad0ff 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .22s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(64, 158, 255, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(64, 158, 255, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #33445e; transform: translateY(-2px); }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(11, 14, 20, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(11, 14, 20, .92); }

.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 700; }
.brand-text em {
  font-style: normal; font-size: 11px; letter-spacing: .14em;
  color: var(--brand-2); text-transform: uppercase; font-weight: 600;
}

.nav-links { display: flex; gap: 2px; margin-left: 14px; }
.nav-links a {
  padding: 7px 11px; border-radius: 8px; font-size: 14px;
  color: var(--text-2); transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: var(--brand-2); background: rgba(64, 158, 255, .12); }

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

.lang-switch {
  display: flex; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 9px; padding: 2px;
}
.lang-switch button {
  background: none; border: 0; color: var(--text-3); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 7px;
  transition: all .2s; font-family: inherit;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; width: 38px; height: 34px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 620px; height: 620px; background: rgba(64, 158, 255, .30); top: -230px; left: -140px; }
.glow-b { width: 480px; height: 480px; background: rgba(255, 152, 0, .16); top: 60px; right: -160px; }

.keys-rain { position: absolute; inset: 0; overflow: hidden; }
.keys-rain span {
  position: absolute; font-size: 13px; font-weight: 700;
  color: rgba(64, 158, 255, .30); animation: floatUp linear infinite;
  user-select: none;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120px) rotate(18deg); opacity: 0; }
}

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding-bottom: 60px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(64, 158, 255, .1); border: 1px solid rgba(64, 158, 255, .3);
  color: var(--brand-2); margin-bottom: 22px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(103, 194, 58, .2); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(103, 194, 58, 0); } }

.hero-title { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--text-2); max-width: 560px; }

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

.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta li::before {
  content: "✓"; color: var(--green); font-weight: 700; font-size: 13px;
}

/* 客户端 UI 模拟 */
.hero-visual { position: relative; }
.app-window {
  background: linear-gradient(180deg, #1a2230 0%, #121924 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .app-window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.app-titlebar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #0f1520; border-bottom: 1px solid var(--line-soft);
}
.tl-dot { width: 10px; height: 10px; border-radius: 50%; }
.tl-dot.red { background: #ff5f57; } .tl-dot.yellow { background: #febc2e; } .tl-dot.green { background: #28c840; }
.tl-title { margin-left: 10px; font-size: 12px; color: var(--text-3); }

.app-body { padding: 14px; }
.app-row { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.app-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); color: var(--text-3);
}
.app-chip.active { background: var(--brand); color: #fff; }
.app-search { margin-left: auto; width: 92px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, .05); }

.app-list { display: flex; flex-direction: column; gap: 2px; }
.app-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 7px; font-size: 13px; color: var(--text-2);
}
.app-item.playing { background: rgba(64, 158, 255, .12); color: var(--text); }
.app-item .idx { color: var(--text-3); font-size: 11px; width: 14px; }
.app-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-item .d { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; width: 16px; }
.eq i { flex: 1; background: var(--brand); border-radius: 1px; animation: eqBar .9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 90%; animation-delay: .18s; }
.eq i:nth-child(3) { height: 60%; animation-delay: .36s; }
.eq i:nth-child(4) { height: 75%; animation-delay: .54s; }
@keyframes eqBar { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.app-progress { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin: 12px 0 10px; overflow: hidden; }
.app-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 3px; }

.app-controls { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.ctrl { font-size: 14px; color: var(--text-2); }
.ctrl.main { color: var(--brand); font-size: 18px; }
.spd { margin-left: auto; font-size: 11.5px; color: var(--text-3); background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 5px; }
.mode { font-size: 11.5px; color: var(--accent); background: rgba(255,152,0,.14); padding: 2px 9px; border-radius: 5px; font-weight: 700; }

.app-keys { display: flex; gap: 4px; flex-wrap: wrap; }
.app-keys b {
  min-width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; border-radius: 6px;
  background: rgba(255, 255, 255, .05); color: var(--text-3);
  border: 1px solid var(--line-soft);
  animation: keyLit 3.2s infinite;
}
@keyframes keyLit {
  0%, 88%, 100% { background: rgba(255, 255, 255, .05); color: var(--text-3); border-color: var(--line-soft); }
  92% { background: var(--brand); color: #fff; border-color: var(--brand-2); }
}

/* 数据条 */
.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 72px;
}
.stat { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--text-3); }

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

.sec-head { max-width: 700px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.sec-head p { color: var(--text-2); font-size: 16.5px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: all .28s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: #2f3f57; background: var(--surface-2); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.8px; }
.card.flat { padding: 22px 24px; }
.card.flat h3 { font-size: 16.5px; margin-bottom: 8px; }
.card.soft { background: rgba(103, 194, 58, .05); border-color: rgba(103, 194, 58, .18); padding: 22px; }
.card.soft:hover { background: rgba(103, 194, 58, .08); }

.card-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 21px; margin-bottom: 16px; background: rgba(64, 158, 255, .12);
}
.card-ico.orange { background: rgba(255, 152, 0, .13); }
.card-ico.purple { background: rgba(151, 95, 224, .14); }
.card-ico.green  { background: rgba(103, 194, 58, .14); }

/* 快捷键 */
.hotkeys {
  margin-top: 40px; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(64, 158, 255, .07), rgba(255, 152, 0, .05));
  border: 1px solid var(--line);
}
.hotkeys h3 { font-size: 18px; margin-bottom: 6px; }
.hk-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hk {
  display: flex; align-items: center; gap: 6px; font-size: 13.5px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 13px;
}
.hk span { color: var(--text-3); }
.hk em { font-style: normal; color: var(--text-2); margin-left: 8px; }
kbd {
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px;
  background: #1e2836; border: 1px solid #33445e; border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 7px; color: var(--text);
}

/* 游戏支持 */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.game-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 16px 18px; transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.game-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: bottom; transition: transform .25s var(--ease);
}
.game-item:hover { border-color: #2f3f57; transform: translateX(3px); }
.game-item:hover::before { transform: scaleY(1); }
.game-item b { display: block; font-size: 14.8px; font-weight: 600; }
.game-item span { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }

.note { margin-top: 24px; font-size: 14px; color: var(--text-3); }

/* ---------------- 下载 ---------------- */
.dl-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.dl-main { padding: 34px; }
.dl-ver { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ver-badge {
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px;
}
.dl-main h3 { font-size: 22px; margin-bottom: 20px; }
.dl-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.dl-spec li { display: flex; flex-direction: column; gap: 2px; }
.dl-spec span { font-size: 12.5px; color: var(--text-3); }
.dl-spec b { font-size: 14.5px; font-weight: 600; }

.dl-mirrors {
  padding: 34px; background: rgba(0, 0, 0, .22); border-left: 1px solid var(--line);
}
.dl-mirrors > p { font-size: 13.5px; margin-bottom: 14px; }
.mirror {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .03); transition: all .22s var(--ease);
}
.mirror:hover { border-color: var(--brand); background: rgba(64, 158, 255, .09); transform: translateX(3px); }
.m-ico { font-size: 19px; width: 26px; text-align: center; }
.m-text { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.m-text b { font-size: 14.5px; }
.m-text em { font-style: normal; font-size: 12px; color: var(--text-3); }
.m-go { color: var(--brand); font-weight: 700; }

/* GitHub 镜像：稍暗的中性底色，与网盘区分开 */
.mirror-github {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .16);
}
.mirror-github:hover {
  border-color: #e6edf3;
  background: rgba(255, 255, 255, .11);
}
.m-ico-svg {
  display: inline-flex; align-items: center; justify-content: center;
  color: #e6edf3; line-height: 0;
}
.mirror-github .m-go { color: #e6edf3; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.steps li { display: flex; gap: 13px; }
.steps li > span {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(64, 158, 255, .14); color: var(--brand-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.steps li b { display: block; font-size: 15px; margin-bottom: 4px; }
.steps li p { font-size: 13.5px; color: var(--text-2); }

.invite-box {
  display: flex; align-items: center; gap: 18px; margin-top: 30px;
  padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 152, 0, .1), rgba(255, 152, 0, .03));
  border: 1px solid rgba(255, 152, 0, .25);
}
.ib-ico { font-size: 26px; }
.ib-text { flex: 1; }
.ib-text b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.ib-text p { font-size: 13.8px; color: var(--text-2); }

/* ---------------- 使用说明文档 ---------------- */
.docs { margin-top: 34px; }
.docs-tip { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: all .22s var(--ease);
}
.doc-card:hover {
  border-color: var(--brand); background: rgba(64, 158, 255, .08);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.doc-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(64, 158, 255, .13); border: 1px solid rgba(64, 158, 255, .2);
}
.doc-text { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.doc-text b { font-size: 15px; margin-bottom: 3px; }
.doc-text em { font-style: normal; font-size: 12.8px; color: var(--text-3); }
.doc-go { color: var(--brand); font-weight: 700; font-size: 17px; }

/* ---------------- 定价 ---------------- */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; overflow-x: auto; background: var(--surface);
}
.price-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.price-table th {
  background: rgba(255, 255, 255, .03); text-align: left; padding: 15px 22px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.price-table td { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.price-table tr.hot { background: rgba(64, 158, 255, .06); }
.price { font-weight: 700; color: var(--brand-2); font-size: 17px; }
.price.alt { color: var(--accent); }

.tag {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: var(--brand); color: #fff; margin-left: 8px;
  vertical-align: middle;
}
.tag.gold { background: var(--accent); }

.free-ways { margin-top: 26px; }

/* ---------------- FAQ ---------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--text); font-family: inherit;
  font-size: 16px; font-weight: 600; text-align: left; padding: 20px 26px; cursor: pointer;
  transition: background .2s;
}
.faq-q:hover { background: rgba(255, 255, 255, .03); }
.faq-q i {
  flex-shrink: 0; width: 18px; height: 18px; position: relative; transition: transform .3s var(--ease);
}
.faq-q i::before, .faq-q i::after {
  content: ""; position: absolute; background: var(--text-2); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%); transition: all .3s var(--ease);
}
.faq-q i::before { width: 14px; height: 2px; }
.faq-q i::after { width: 2px; height: 14px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-q i::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 26px 22px; color: var(--text-2); font-size: 15px; }

/* ---------------- CTA ---------------- */
.cta {
  padding: 84px 0; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(64, 158, 255, .16) 0%, transparent 62%);
  border-block: 1px solid var(--line-soft);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.cta p { color: var(--text-2); margin-bottom: 30px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 页脚 ---------------- */
.footer { padding: 66px 0 30px; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr .9fr 1fr 1fr 1.15fr; gap: 32px; }
.foot-brand p { color: var(--text-2); font-size: 14px; margin: 16px 0 10px; max-width: 340px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.foot-col a { font-size: 14px; color: var(--text-2); transition: color .2s; display: flex; gap: 8px; align-items: baseline; }
.foot-col a:hover { color: var(--brand-2); }
.foot-col a em { font-style: normal; color: var(--text-3); font-size: 13px; }

.disclaimer {
  margin-top: 46px; padding: 20px 24px; border-radius: var(--radius);
  background: rgba(255, 152, 0, .05); border: 1px solid rgba(255, 152, 0, .18);
}
.disclaimer b { display: block; font-size: 13.5px; color: var(--accent); margin-bottom: 6px; }
.disclaimer p { font-size: 13.2px; color: var(--text-2); line-height: 1.7; }

.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-3);
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--brand); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: all .28s var(--ease); z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 滚动动效 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 轮播图（界面预览） ---------------- */
.carousel { position: relative; }

.car-stage {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0f1520 0%, #0a0e15 100%);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.car-stage::before {
  content: ""; display: block; padding-top: 56%;
}

.car-frame {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 20px; background: #0a0e15;
}
.car-frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .35s var(--ease);
}
.car-frame img.loaded { opacity: 1; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 26, 37, .78); color: var(--text);
  border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; transition: all .22s var(--ease);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.car-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-50%) scale(1.06); }
.car-arrow svg { width: 18px; height: 18px; }
.car-prev { left: 16px; }
.car-next { right: 16px; }

.car-cap {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11, 14, 20, .78); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13.5px;
  backdrop-filter: blur(6px); z-index: 2;
  max-width: calc(100% - 100px);
}
.car-cap-tag {
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.car-cap-text { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.car-count {
  position: absolute; right: 18px; bottom: 18px;
  background: rgba(11, 14, 20, .78); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px;
  color: var(--text-2); backdrop-filter: blur(6px); z-index: 2;
  font-variant-numeric: tabular-nums;
}
.car-count em { font-style: normal; margin: 0 4px; color: var(--text-3); }
.car-count span:first-child { color: var(--brand-2); font-weight: 700; }

.car-thumbs {
  display: flex; gap: 10px; margin-top: 18px; overflow-x: auto;
  padding: 4px 2px 8px; scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.car-thumb {
  flex: 0 0 auto; width: 132px; height: 80px;
  border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface);
  scroll-snap-align: start; padding: 0; position: relative;
  transition: all .22s var(--ease); opacity: .65;
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-thumb:hover { opacity: 1; transform: translateY(-2px); border-color: #2f3f57; }
.car-thumb.active { opacity: 1; border-color: var(--brand); box-shadow: 0 8px 22px rgba(64, 158, 255, .28); }

.car-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 16px;
}
.car-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); border: 0; padding: 0;
  cursor: pointer; transition: all .25s var(--ease);
}
.car-dot.active { background: var(--brand); width: 22px; border-radius: 4px; }
.car-dot:hover { background: var(--text-3); }

/* ---------------- 社区 / 交流频道 ---------------- */
.com-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 56px;
  align-items: center; padding: 30px 0 10px;
}
.com-qr { text-align: center; }
.com-qr-frame {
  display: inline-block; padding: 14px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(64, 158, 255, .25);
  line-height: 0; transition: transform .4s var(--ease);
}
.com-qr-frame:hover { transform: translateY(-4px) rotate(-1.5deg); }
.com-qr-frame img {
  width: 220px; height: 220px; display: block;
  border-radius: 6px;
}
.com-qr-tip {
  display: block; margin-top: 16px; font-size: 13.5px;
  color: var(--text-2); letter-spacing: .02em;
}

.com-info h3 {
  font-size: 24px; margin-bottom: 14px; line-height: 1.4;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.com-info h3 > span:first-child { color: var(--text-2); font-weight: 500; font-size: 17px; }
.com-info > p { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; max-width: 540px; }

.com-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px;
  margin-bottom: 28px;
}
.com-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--text-2); line-height: 1.55;
}
.com-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(64, 158, 255, .12);
  display: grid; place-items: center; font-size: 14px;
}

.com-cta { padding: 14px 28px; font-size: 15.5px; }
.com-cta-go { font-size: 18px; margin-left: 2px; }
.com-link { margin-top: 10px; font-size: 13px; letter-spacing: .02em; }

/* 安卓版徽标 */
.ver-badge-android {
  background: linear-gradient(135deg, #67C23A, #4f9e2c);
  box-shadow: 0 6px 16px rgba(103, 194, 58, .28);
}
.mirror-android {
  border-color: rgba(103, 194, 58, .32);
  background: linear-gradient(135deg, rgba(103, 194, 58, .08), rgba(103, 194, 58, .02));
}
.mirror-android:hover {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(103, 194, 58, .16), rgba(103, 194, 58, .04));
  transform: translateX(3px);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .app-window { transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dl-card { grid-template-columns: 1fr; }
  .dl-mirrors { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .com-grid { grid-template-columns: 1fr; gap: 36px; padding: 10px 0 0; }
  .com-qr { order: -1; }
  .com-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: rgba(11, 14, 20, .98); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 11px 14px; font-size: 15.5px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }
  .stat b { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 15px 16px; }
  .dl-main, .dl-mirrors { padding: 24px; }
  .dl-spec { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .invite-box { flex-wrap: wrap; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hotkeys { padding: 22px; }
  .faq-q { padding: 17px 20px; font-size: 15px; }
  .faq-a p { padding: 0 20px 18px; }

  /* 轮播图：移动端 */
  .car-stage::before { padding-top: 78%; }
  .car-arrow { width: 38px; height: 38px; }
  .car-prev { left: 8px; } .car-next { right: 8px; }
  .car-frame { padding: 12px; }
  .car-cap { left: 12px; bottom: 12px; font-size: 12.5px; padding: 5px 12px; }
  .car-cap-tag { font-size: 10.5px; padding: 2px 6px; }
  .car-count { right: 12px; bottom: 12px; font-size: 11.5px; padding: 3px 10px; }
  .car-thumb { width: 102px; height: 62px; }

  /* 社区：移动端 */
  .com-qr-frame img { width: 170px; height: 170px; }
  .com-info h3 { font-size: 20px; }
}

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