/* ==========================================================================
   shadPS4 中文站样式 - 扁平现代专业风
   品牌色取自 logo：深石墨 #1B1E23 / logo 蓝 #2E6FDB
   ========================================================================== */

:root {
  --brand: #2E6FDB;
  --brand-dark: #2456B0;
  --brand-light: #EAF1FC;
  --ink: #1B1E23;
  --ink-soft: #3A4150;
  --muted: #5A6472;
  --line: #E3E7EE;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-softer: #EDF1F7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 30, 35, .05), 0 8px 24px rgba(27, 30, 35, .07);
  --shadow-lg: 0 4px 8px rgba(27, 30, 35, .06), 0 16px 40px rgba(27, 30, 35, .12);
  --maxw: 1120px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

ul, ol { padding-left: 1.25em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .brand-sub { font-size: 12px; font-weight: 500; color: var(--muted); display: block; line-height: 1.2; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav-links a:hover { background: var(--bg-softer); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: var(--brand-light); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap; flex: none;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; width: 22px; height: 22px; stroke: var(--ink); }

/* 桌面端：导航容器右对齐并保持正常文档流 */
.nav-links-wrap {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links-wrap {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 8px 24px 16px;
  }
  .nav-links-wrap.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta-wrap { margin-top: 10px; }
  .nav-cta { width: 100%; justify-content: center; white-space: nowrap; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; font-family: inherit; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-lg { padding: 15px 34px; font-size: 17px; border-radius: 12px; }
.btn .btn-ico { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 44px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 18px; font-weight: 700; }
.hero h1 .accent { color: var(--brand); }
.hero-lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-meta strong { color: var(--ink); font-size: 17px; display: block; line-height: 1.3; }
.hero-art { position: relative; }
.hero-art img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA463; }
@media (max-width: 920px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .hero-badge { left: 8px; }
}

/* ---------- 通用 Section ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; line-height: 1.3; letter-spacing: -.3px; margin-bottom: 12px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 16.5px; }
@media (max-width: 720px) { .section { padding: 52px 0; } .section-head h2 { font-size: 26px; } }

/* ---------- 数据统计条 ---------- */
.stats { border-block: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; letter-spacing: -.5px; color: var(--ink); }
.stat span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card:hover { box-shadow: var(--shadow); border-color: #D6DCE6; }
.card h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .card-ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.card .card-ico svg { width: 21px; height: 21px; stroke: var(--brand); }

/* ---------- 使用场景（首页） ---------- */
.scene-row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.scene-row:first-child { border-top: none; padding-top: 6px; }
.scene-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.scene-row h3 { font-size: 17px; margin-bottom: 6px; }
.scene-row p { color: var(--muted); font-size: 14.5px; }

/* ---------- 平台标签 ---------- */
.platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.platform-tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.platform-tag svg { width: 15px; height: 15px; stroke: var(--muted); }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1B1E23 0%, #232934 55%, #24467E 100%);
  border-radius: 18px; color: #fff; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 28px; margin-bottom: 8px; letter-spacing: -.3px; }
.cta-banner p { color: #C9D3E4; font-size: 15.5px; }
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: #E8ECF2; color: var(--ink); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #B4BCC8; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink-soft); font-weight: 500; }

/* ---------- 页面标题区 ---------- */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: 36px; letter-spacing: -.4px; margin-bottom: 12px; }
.page-head .page-desc { color: var(--muted); font-size: 17px; max-width: 46em; }

/* ---------- 下载卡片 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.dl-card:hover { box-shadow: var(--shadow-lg); border-color: #C9D4E8; }
.dl-card .dl-os { display: flex; align-items: center; gap: 12px; }
.dl-card .dl-os svg { width: 30px; height: 30px; stroke: var(--brand); flex: none; }
.dl-card .dl-os h3 { font-size: 18px; }
.dl-card .dl-os small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.dl-card .dl-note { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.dl-card .dl-meta { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.dl-card .btn { margin-top: auto; }
@media (max-width: 920px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.spec th, table.spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
table.spec th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; width: 140px; }
table.spec tr:last-child td { border-bottom: none; }
table.spec td ul { margin: 0; }

/* ---------- 指南步骤 ---------- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: none; }
/* 显式网格线放置，避免空占位 div 被 auto-placement 错误换行 */
.step > div:first-child { grid-column: 1; grid-row: 1; }
.step > div:last-child { grid-column: 2; grid-row: 1; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step .step-body { color: var(--muted); font-size: 15px; }
.step .step-body ul, .step .step-body ol { margin: 8px 0; }
.step .step-body code {
  background: var(--bg-softer); border-radius: 5px; padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease; margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq-item .faq-a ul { margin: 6px 0; }

/* ---------- 提示框 ---------- */
.note {
  border-left: 4px solid var(--brand); background: var(--brand-light);
  border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: 14.5px; color: var(--ink-soft);
}
.note.warn { border-left-color: #C93B3B; background: #FCEFEF; }
.note b { color: var(--ink); }

/* ---------- 徽标行 ---------- */
.os-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.os-badge {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 16px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.os-badge svg { width: 26px; height: 26px; stroke: var(--brand); }
.os-badge small { font-weight: 400; color: var(--muted); font-size: 12px; }
@media (max-width: 820px) { .os-badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #9AA4B2; margin-top: 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer p { font-size: 13.5px; line-height: 1.8; }
.site-footer h4 { color: #E6EAF2; font-size: 14px; margin-bottom: 14px; letter-spacing: .5px; }
.site-footer ul { list-style: none; padding-left:0;}
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #9AA4B2; font-size: 13.5px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2C313B; padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 下载弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 23, 28, .55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 680px;
  max-height: calc(100dvh - 48px); overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0;
}
.modal-head h3 { font-size: 18px; }
.modal-head .modal-sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.modal-close {
  background: var(--bg-softer); border: none; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none;
}
.modal-close svg { width: 16px; height: 16px; stroke: var(--ink); }
.modal-close:hover { background: #E1E6EE; }
.modal-body { padding: 26px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qr-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.qr-box {
  width: 168px; height: 168px; border: 2px dashed #C4CCD8; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#F2F4F8 0% 25%, #FFFFFF 0% 50%) 50% / 22px 22px;
}
.qr-item .qr-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.qr-item .qr-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { .qr-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 100px 24px 120px; }
.err-code { font-size: 96px; font-weight: 800; color: var(--brand); letter-spacing: 2px; line-height: 1; }

/* ---------- 可访问性 ---------- */
:focus-visible { outline: 3px solid rgba(46, 111, 219, .5); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 300;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
