/* BizHawk 中文官网 — 扁平现代专业风 */
/* 品牌：logo 橙 #F39633 / 深墨 #13191B / 浅色主题 */

:root {
  --brand: #F39633;
  --brand-strong: #E07E14;
  --brand-deep: #B25F06;
  --ink: #13191B;
  --ink-soft: #33404486;
  --text: #24292B;
  --text-soft: #5A6A70;
  --bg: #FFFFFF;
  --bg-soft: #FBF7F0;
  --bg-panel: #F8F0E3;
  --line: #EDE3D4;
  --ok: #2E8B57;
  --warn: #C0392B;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(19, 25, 27, 0.07);
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand-strong); }

/* ---------- 容器 ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.brand img { width: 34px; height: 34px; }

.brand .brand-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
}

.main-nav a:hover { background: var(--bg-panel); color: var(--brand-deep); }

.main-nav a.active { color: var(--brand-deep); font-weight: 600; }

.nav-download {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  font-weight: 600;
}

.nav-download:hover { background: var(--brand-strong); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    linear-gradient(180deg, #FBF4E9 0%, #FFFFFF 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero h1 .hl { color: var(--brand-strong); }

.hero .lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }

.hero-stats .stat b {
  display: block;
  font-size: 24px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-stats .stat span { font-size: 13px; color: var(--text-soft); }

.hero-visual { position: relative; }

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--bg-panel); color: var(--brand-deep); }

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-block { width: 100%; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-head p { color: var(--text-soft); font-size: 16px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p { font-size: 14.5px; color: var(--text-soft); }

.icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--brand-deep);
}

/* ---------- 场景 / 编号列表 ---------- */
.scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scene-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.scene-item .no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-strong);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.scene-item h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }

.scene-item p { font-size: 14.5px; color: var(--text-soft); }

.scene-item ul {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}

.scene-item ul li {
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 4px 0 4px 20px;
  position: relative;
}

.scene-item ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 徽标行 ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.badge {
  font-size: 12.5px;
  color: var(--brand-deep);
  background: var(--bg-panel);
  border: 1px solid #F0DFC2;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }

table.data th {
  text-align: left;
  background: var(--bg-panel);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}

table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #FAFCFD; }

.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step .no {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .no::before { content: counter(step); }

.step h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }

.step p, .step li { font-size: 14.5px; color: var(--text-soft); }

.step ol, .step ul { padding-left: 20px; margin-top: 6px; }

/* ---------- 提示框 ---------- */
.note {
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-soft);
  margin: 18px 0;
}

.note.warn { border-left-color: var(--warn); background: #FDF3F2; }

/* 橙色按钮上的白色文字对比度增强 */
.btn-primary { text-shadow: 0 1px 1px rgba(178, 95, 6, 0.35); }

.note b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-strong);
  font-weight: 400;
  flex: none;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-body { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-soft); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }

.cta-band p { color: #C4BDB2; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0E1416;
  color: #93A3AA;
  padding: 52px 0 28px;
  font-size: 14px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid #1F2A2E;
}

.footer-grid h4 { color: #E6EDF0; font-size: 14px; margin-bottom: 14px; }

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 9px; }

.footer-grid a { color: #93A3AA; }
.footer-grid a:hover { color: var(--brand); }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.footer-brand img { width: 30px; height: 30px; }

.footer-brand span { color: #E6EDF0; font-size: 17px; font-weight: 700; }

.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 380px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6E7E85;
}

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 25, 27, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.open { display: flex;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
button { outline: none } 
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-panel);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
}

.modal-close:hover { background: #F5E5CC; color: var(--ink); }

.modal h3 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }

.modal .modal-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; }

.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.qr-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--bg-soft);
}

.qr-placeholder {
  width: 170px;
  height: 170px;
  margin: 0 auto 12px;
  background: #fff;
  border: 2px dashed #E4C99F;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B59C77;
  font-size: 12px;
}

.qr-box h4 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }

.qr-box p { font-size: 12.5px; color: var(--text-soft); }

.modal-tips {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  z-index: 90;
}

.to-top.show { display: flex; }
.to-top:hover { opacity: 1; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--text-soft); padding: 20px 0 0; }

.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--brand-deep); }

/* ---------- 页面通用标题区 ---------- */
.page-head { padding: 40px 0 8px; }

.page-head h1 { font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }

.page-head p { color: var(--text-soft); font-size: 16px; max-width: 720px; }

/* ---------- 版本徽章 ---------- */
.ver {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-deep);
  background: var(--bg-panel);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: middle;
  font-weight: 400;
}

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

@media (max-width: 640px) {
  .grid-3, .grid-4, .scene, .grid-2, .qr-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }
}
