/* =========================================================
   SMPlayer 中文官网 — 全局样式
   配色取自 SMPlayer 官方图标：主色蓝 #1058B8，点缀橙 #F87828
   ========================================================= */

:root {
  /* 品牌色 */
  --blue-900: #0a3c86;
  --blue-800: #0d4aa3;
  --blue-700: #1058b8;
  --blue-600: #1367cf;
  --blue-500: #1f7ce0;
  --blue-100: #dbe9fb;
  --blue-50:  #eef5fd;

  --orange-600: #e5651a;
  --orange-500: #f87828;
  --orange-100: #fde7d6;
  --orange-50:  #fef4ec;

  /* 中性色 */
  --ink:        #16243a;
  --ink-soft:   #3c4c63;
  --slate:      #64748b;
  --bg:         #f5f7fb;
  --surface:    #ffffff;
  --line:       #e4e9f1;
  --line-soft:  #eef1f6;

  /* 语义色 */
  --success:    #1a9e5c;
  --success-bg: #e7f6ee;

  /* 布局 */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 74, .06), 0 1px 6px rgba(16, 42, 74, .05);
  --shadow-md: 0 6px 22px rgba(16, 42, 74, .10);
  --shadow-lg: 0 18px 48px rgba(10, 60, 134, .16);

  --header-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
ul, ol { list-style: none; }

::selection { background: var(--blue-100); color: var(--blue-900); }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section--tint { background: var(--surface); }
.section--soft { background: var(--blue-50); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head--left { margin: 0 0 36px; text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-700); font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--orange-500);
  border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25; letter-spacing: -.01em; font-weight: 700;
}
.section-head p {
  margin-top: 14px; color: var(--slate); font-size: 17px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  font-family: inherit;
}
.btn:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(16, 88, 184, .28); }
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16, 88, 184, .34); }

.btn--accent { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px rgba(248, 120, 40, .28); }
.btn--accent:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(248, 120, 40, .34); }

.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-1px); }

.btn--lg { padding: 15px 32px; font-size: 17px; }
.btn--lg svg { width: 20px; height: 20px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand .brand-text span { font-size: 11px; color: var(--slate); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; color: var(--ink-soft);
  font-size: 15px; font-weight: 500;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -10%, rgba(31, 124, 224, .16), transparent 60%),
    radial-gradient(900px 460px at 8% 110%, rgba(248, 120, 40, .10), transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  padding: 78px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.14; letter-spacing: -.02em; font-weight: 800;
}
.hero h1 .accent { color: var(--blue-700); }
.hero .lede { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.hero-points svg { width: 17px; height: 17px; color: var(--success); flex: none; }

.hero-visual {
  position: relative;
  display: grid; place-items: center;
}
.hero-card {
  position: relative; width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card .windowbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fbfcfe;
}
.hero-card .windowbar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.hero-card .windowbar i:nth-child(1) { background: #ff5f57; }
.hero-card .windowbar i:nth-child(2) { background: #febc2e; }
.hero-card .windowbar i:nth-child(3) { background: #28c840; }
.hero-card .windowbar span { margin-left: 6px; font-size: 12px; color: var(--slate); }
.hero-card .screen {
  aspect-ratio: 16 / 9; position: relative;
  background: linear-gradient(160deg, #0b1526 0%, #12233f 60%, #0d1c33 100%);
  display: grid; place-items: center; padding: 26px;
}
.hero-card .screen .play-badge {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(16, 88, 184, .92); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(16, 88, 184, .18);
}
.hero-card .screen .play-badge svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.hero-card .screen .bar {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  height: 5px; border-radius: 3px; background: rgba(255,255,255,.18);
}
.hero-card .screen .bar i { display: block; width: 62%; height: 100%; border-radius: 3px; background: var(--orange-500); }
.hero-float {
  position: absolute; bottom: -18px; left: -14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 11px;
}
.hero-float .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); display: grid; place-items: center; color: var(--blue-700); }
.hero-float .dot svg { width: 22px; height: 22px; }
.hero-float b { display: block; font-size: 14px; line-height: 1.3; }
.hero-float span { font-size: 12px; color: var(--slate); }

/* ---------- 信任条 ---------- */
.trustbar { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.trustbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.trustbar .item { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.trustbar .item svg { width: 22px; height: 22px; color: var(--blue-700); flex: none; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dde9; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 18px;
}
.icon-badge--orange { background: var(--orange-50); color: var(--orange-600); }
.icon-badge svg { width: 26px; height: 26px; }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }

/* 使用场景卡 */
.use-card { padding: 30px; }
.use-card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}

/* 优势列表 */
.adv-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.adv-item:last-child { border-bottom: 0; }
.adv-item .icon-badge { flex: none; margin-bottom: 0; }
.adv-item h3 { font-size: 17px; }
.adv-item p { font-size: 15px; }

/* 特性清单（勾选） */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 15px; }
.check-list svg { width: 19px; height: 19px; color: var(--success); flex: none; margin-top: 3px; }

/* ---------- 数据行 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; line-height: 1.1; }
.stat .label { margin-top: 6px; color: var(--slate); font-size: 15px; }

/* ---------- 下载页 ---------- */
.page-hero {
  background:
    radial-gradient(1000px 420px at 80% -20%, rgba(31, 124, 224, .16), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  padding: 56px 0 20px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; color: var(--slate); font-size: 17px; max-width: 640px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--blue-700); }
.crumbs .sep { color: #b6c2d1; }

/* 平台下载卡 */
.platform-card { text-align: center; padding: 34px 24px; }
.platform-card .icon-badge { margin: 0 auto 18px; width: 60px; height: 60px; border-radius: 16px; }
.platform-card .icon-badge svg { width: 30px; height: 30px; }
.platform-card h3 { font-size: 20px; }
.platform-card .ver { color: var(--slate); font-size: 14px; margin: 6px 0 16px; }
.platform-card .btn { width: 100%; }

.note-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 22px; color: var(--ink-soft); font-size: 14.5px;
}
.note-tip svg { width: 20px; height: 20px; color: var(--blue-700); flex: none; margin-top: 2px; }

/* 二维码区块 */
.qr-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.qr-card { text-align: center; padding: 28px 20px; }
.qr-card .qr-box {
  width: 190px; height: 190px; margin: 0 auto 16px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.qr-card .qr-box svg, .qr-card .qr-box img { width: 100%; height: 100%; }
.qr-card h3 { font-size: 17px; }
.qr-card p { font-size: 14px; margin-top: 4px; }

/* 系统要求表 */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.table thead th { background: #fbfcfe; color: var(--ink); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 500; width: 30%; }
.table td { color: var(--ink-soft); }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(11, 20, 36, .55); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 22px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-head h3 img { width: 30px; height: 30px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--slate);
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.modal-body .platform-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.platform-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-family: inherit; transition: border-color .15s ease, background .15s ease;
}
.platform-opt:hover { border-color: var(--blue-500); background: var(--blue-50); }
.platform-opt svg { width: 26px; height: 26px; color: var(--blue-700); }
.platform-opt span { font-size: 14px; font-weight: 600; color: var(--ink); }
.modal-divider { display: flex; align-items: center; gap: 14px; color: var(--slate); font-size: 13px; margin: 6px 0 18px; }
.modal-divider::before, .modal-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.modal-qr-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.modal-qr-row .qr-mini { text-align: center; }
.modal-qr-row .qr-mini .qr-box { width: 160px; height: 160px; margin: 0 auto 10px; background: #fff; display: grid; place-items: center; }
.modal-qr-row .qr-mini .qr-box svg, .modal-qr-row .qr-mini .qr-box img { width: 100%; height: 100%; }
.modal-qr-row .qr-mini b { display: block; font-size: 14px; }
.modal-qr-row .qr-mini span { font-size: 12.5px; color: var(--slate); }
.modal-foot { padding: 16px 24px; background: #fbfcfe; border-top: 1px solid var(--line-soft); text-align: center; font-size: 13px; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .chev { width: 22px; height: 22px; flex: none; color: var(--slate); transition: transform .18s ease; }
.faq-list details[open] summary .chev { transform: rotate(180deg); color: var(--blue-700); }
.faq-list .faq-body { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }
.faq-list .faq-body p + p { margin-top: 10px; }
.faq-list .faq-body a { font-weight: 500; }

/* ---------- 指南页 ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step .step-num {
  counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 15px; }

.codeblock {
  background: #0e1524; color: #e6edf6; border-radius: 12px; padding: 18px 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px;
  overflow-x: auto; line-height: 1.6;
}
.codeblock .c { color: #7f8ea3; }
.codeblock .k { color: #7db4ff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d1626; color: #b8c4d4; margin-top: 20px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { font-size: 14px; color: #8fa0b6; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #8fa0b6; font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; color: #6e7f93;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom a { color: #8fa0b6; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 通用工具 ---------- */
.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;
}

/* 尊重“减少动态效果”偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 420px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .qr-wrap, .modal-qr-row { grid-template-columns: 1fr; }
  .modal-body .platform-row { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    box-shadow: var(--shadow-md); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
}
