/* ============================================================
   mpv播放器中文下载站 — 样式表
   设计语言：扁平 / 现代 / 卡片式（仿 Zen Browser 中文站布局）
   主色：#0F1420 深墨  |  辅色：#F5F7FB 冷白
   点缀：#2F6BFF 电光蓝  →  #6EE7F9 冰青（渐变）
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0F1420;
  --ink-2: #1A2130;
  --ink-3: #2A3345;
  --mist: #F5F7FB;
  --mist-2: #EAEEF6;
  --glow: #2F6BFF;
  --glow-rgb: 47, 107, 255;  /* 主题色由 site.config.json → theme 注入覆盖 */
  --glow-hover: #4A82FF;
  --ice: #6EE7F9;
  --ice-rgb: 110, 231, 249;
  --grad: linear-gradient(135deg, #2F6BFF 0%, #6EE7F9 100%);

  --text: #141A26;
  --text-2: #4A5468;
  --text-3: #7C8699;
  --text-inv: #F5F7FB;
  --text-inv-2: #A9B4C6;
  --line: #E4E9F2;
  --white: #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --header-h: 68px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 2px 8px rgba(15, 20, 32, .06);
  --sh-md: 0 8px 26px rgba(15, 20, 32, .08);
  --sh-lg: 0 22px 60px rgba(15, 20, 32, .14);
  --sh-glow: 0 10px 30px rgba(var(--glow-rgb), .32);

  --t: .22s ease;

  /* 渐变按钮上的文字色：主题深则填浅色，主题浅则填深色 */
  --on-grad: #06203C;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.68;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---------- 3. 通用 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-alt { background: var(--mist); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--glow); background: rgba(var(--glow-rgb), .1);
  border: 1px solid rgba(var(--glow-rgb), .18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--ice); background: rgba(var(--ice-rgb), .12); border-color: rgba(var(--ice-rgb), .25); }

.section-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.section-desc { color: var(--text-2); font-size: 16.5px; max-width: 680px; margin: 0 auto 44px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px;
  transition: all var(--t); white-space: nowrap;
}
.btn-primary { background: var(--glow); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--glow-hover); transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: var(--on-grad); box-shadow: 0 10px 30px rgba(var(--glow-rgb), .35); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(var(--glow-rgb), .45); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); background: var(--white); }
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); transform: translateY(-2px); }
.btn-ghost-dark { border: 1.5px solid rgba(255, 255, 255, .28); color: var(--text-inv); }
.btn-ghost-dark:hover { border-color: var(--ice); color: var(--ice); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; border-radius: var(--r-md); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; padding: 13px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  color: #06203C; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--text-2); }
.main-nav a:hover { color: var(--glow); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; font-size: 22px; padding: 4px 8px; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text-inv);
  background: var(--ink);
  padding: 76px 0 92px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 380px at 78% 8%, rgba(var(--glow-rgb), .32), transparent 62%),
    radial-gradient(560px 340px at 12% 92%, rgba(var(--ice-rgb), .16), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(31px, 5.2vw, 50px); margin-bottom: 18px; letter-spacing: -.025em; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-inv-2); font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stat .num { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat .num .u { font-size: 15px; font-weight: 600; color: var(--ice); margin-left: 2px; }
.hero-stat .label { font-size: 13px; color: var(--text-inv-2); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-shot {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  border: 1px solid rgba(255, 255, 255, .12); background: var(--ink-2);
}
.hero-shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: contain; background: var(--ink-2);
}
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .96); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-md); white-space: nowrap;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.hero-badge.b1 { top: -14px; left: -18px; }
.hero-badge.b2 { bottom: 24px; right: -20px; }
.hero-badge.b3 { bottom: -16px; left: 12px; }

/* ---------- 6. 下载区 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.dl-card {
  position: relative; background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px; text-align: center;
  transition: all var(--t); overflow: hidden;
}
.dl-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(var(--glow-rgb), .4); }
.dl-card:hover::before { transform: scaleX(1); }
.dl-card .ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
  background: rgba(var(--glow-rgb), .09); display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.dl-card .os { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dl-card .hint { color: var(--text-3); font-size: 13.5px; margin-bottom: 22px; min-height: 22px; }
.dl-card .btn-primary { width: 100%; }
.dl-card .alt { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }
.src-note { font-size: 13px; color: var(--text-3); text-align: center; }
.src-note a { color: var(--glow); }

/* ---------- 7. 特色功能 ---------- */
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 24px; transition: all var(--t);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(var(--glow-rgb), .35); }
.icon-circle {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: rgba(var(--glow-rgb), .09); color: var(--glow);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 8. 场景卡 ---------- */
.scenario-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: all var(--t); display: flex; flex-direction: column;
}
.scenario-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.scenario-banner { background: var(--mist-2); border-bottom: 1px solid var(--line); }
.scenario-banner img {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: contain; background: var(--mist-2);
}
.scenario-body { padding: 22px 24px 26px; }
.scenario-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--glow);
  background: rgba(var(--glow-rgb), .1); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.scenario-body h3 { font-size: 17px; margin-bottom: 8px; }
.scenario-body p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 9. 对比表 ---------- */
.cmp-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--mist); font-weight: 700; font-size: 14.5px; }
.cmp-table thead th.hi { background: rgba(var(--glow-rgb), .1); color: var(--glow); }
.cmp-table tbody td.hi { background: rgba(var(--glow-rgb), .045); font-weight: 600; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .yes { color: #0E9F6E; font-weight: 700; }
.cmp-table .no { color: var(--text-3); }

/* ---------- 10. 三步上手 ---------- */
.step-card { text-align: center; padding: 8px 6px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad); color: #06203C; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-glow);
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 11. 截图区 ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shot { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: contain; background: var(--mist-2);
}
.shot figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--text-2); }

/* ---------- 12. FAQ ---------- */
.faq-list details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0; margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--glow); font-size: 20px; font-weight: 700; flex: 0 0 auto; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .a { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-2); line-height: 1.75; }

/* ---------- 13. CTA ---------- */
.cta-band { padding: 78px 0; background: var(--ink); color: var(--text-inv); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 320px at 50% 0%, rgba(var(--glow-rgb), .3), transparent 62%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 12px; }
.cta-band p { color: var(--text-inv-2); margin-bottom: 28px; font-size: 16.5px; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-2); padding: 56px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--ink-3); }
.footer-brand .brand { color: var(--text-inv); margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: var(--text-inv); font-size: 14.5px; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a:hover { color: var(--ice); }
.footer-bottom { padding-top: 22px; font-size: 12.5px; color: #6D7787; line-height: 1.8; }

/* ---------- 14b. 教程正文 ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 10px 22px 20px; }
.article h2 { font-size: clamp(22px, 3vw, 27px); margin: 52px 0 18px; scroll-margin-top: 90px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18.5px; margin: 32px 0 10px; }
.article p { font-size: 15.8px; color: var(--text-2); line-height: 1.88; margin-bottom: 15px; }
.article a { color: var(--glow); text-decoration: underline; text-decoration-color: rgba(var(--glow-rgb), .3); }
.article code {
  font-family: var(--font-mono, Consolas, monospace); font-size: 13.6px;
  background: var(--mist); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; color: var(--text); word-break: break-all;
}
.article .tip {
  background: rgba(var(--glow-rgb), .07); border-left: 3px solid var(--glow);
  border-radius: var(--r-sm); padding: 15px 18px; margin: 18px 0;
  font-size: 14.6px; color: var(--text-2); line-height: 1.8;
}
.article .shot { margin: 24px 0; }

/* ---------- 15. 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(9, 12, 20, .62); backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: 30px 28px 26px; animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal .close {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.modal .close:hover { background: var(--mist); color: var(--text); }
.modal h3 { font-size: 19px; margin-bottom: 20px; padding-right: 30px; }
.modal .qr {
  width: 200px; height: 200px; margin: 0 auto 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); padding: 8px; background: var(--white);
}
.qr-missing {
  border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 34px 20px;
  text-align: center; color: var(--text-3); font-size: 14px; margin-bottom: 14px;
}
.qr-tip { text-align: center; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.qr-tip strong { color: var(--text); }
.modal .btn-quark { background: var(--grad); color: #06203C; margin-bottom: 10px; }
.modal .btn-copy { background: var(--mist); color: var(--text); border: 1px solid var(--line); }
.modal .btn-copy:hover { background: var(--mist-2); }
.modal .src { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.modal .src a { color: var(--glow); }

/* 配置加载失败时的兜底提示 */
.cfg-error { background: #FFF4E5; border: 1px solid #FFD9A8; color: #8A5A00; padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; text-align: center; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero-badge.b1 { left: 0; } .hero-badge.b2 { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .section { padding: 62px 0; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 14px; position: absolute;
    top: var(--header-h); left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 18px 22px; box-shadow: var(--sh-md);
  }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions .btn { display: none; }
  .hero { padding: 52px 0 66px; }
  .hero-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 下载卡内的「扫码保存」次要入口（直跳模式下出现） ---------- */
.qr-mini {
  display: block; width: 100%; margin-top: 9px; padding: 4px 0;
  font-size: 13px; color: var(--text-3); background: none;
  transition: color var(--t);
}
.qr-mini:hover { color: var(--glow); }
