/* ============================================================
   GBox 下载站 gboxapp.cn — 明亮清爽系
   主色 #2AC579 | 纯静态 | CSS 变量
   ============================================================ */
:root {
  --primary: #2AC579;
  --primary-dark: #1FA362;
  --primary-light: #E6F8EF;
  --primary-lighter: #F4FBF7;
  --ink: #1B2A24;
  --text: #3D4B45;
  --text-light: #6B7A73;
  --line: #E4EDE8;
  --bg: #FFFFFF;
  --bg-soft: #F7FAF8;
  --warn-bg: #FFF7E8;
  --warn-border: #F5D8A0;
  --warn-ink: #8A6116;
  --info-bg: #EDF5FF;
  --info-border: #BDD8F5;
  --info-ink: #2B5E96;
  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-card: 0 4px 24px rgba(27, 42, 36, 0.06);
  --shadow-hover: 0 10px 32px rgba(42, 197, 121, 0.16);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 600px at 80% -180px, rgba(42, 197, 121, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 500px at 0% 30%, rgba(42, 197, 121, 0.04) 0%, transparent 55%);
  background-repeat: no-repeat;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .cn { font-size: 12px; font-weight: 400; color: var(--text-light); margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--text); font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.main-nav a.active { color: var(--primary-dark); font-weight: 600; }
.main-nav a.nav-cta {
  background: var(--primary); color: #fff; font-weight: 600; margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; line-height: 1;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-btn); font-size: 16px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(42, 197, 121, 0.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-lighter); color: var(--primary-dark); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn i { font-size: 1.2em; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.3; color: var(--ink); font-weight: 800; }
.hero h1 .em { color: var(--primary); }
.hero .sub { font-size: 18px; color: var(--text-light); max-width: 640px; margin: 18px auto 0; }
.hero-actions { display: flex; flex-direction: row; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .btn { white-space: nowrap; }
.hero-meta { margin-top: 18px; font-size: 13.5px; color: var(--text-light); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta i { color: var(--primary); }
.hero-shot { max-width: 860px; margin: 44px auto 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }

/* Hero 截图轮播 */
.hero-shots { margin: 50px auto 0; max-width: 980px; }
.shots-track {
  display: flex; justify-content: center; align-items: flex-end; gap: 22px;
}
.shot {
  flex: 0 0 auto; width: 200px; margin: 0;
  border-radius: 24px; overflow: hidden;
  padding: 8px 8px 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 18px 18px 0 0; }

/* ---------------- Sections ---------------- */
.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; color: var(--ink); font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--text-light); }

/* 卡片网格 */
.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); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-dark);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-light); }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--primary-dark); font-size: 14px; font-weight: 600; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 24px 24px; box-shadow: var(--shadow-card); }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-light); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--primary-lighter); color: var(--ink); font-size: 14px; white-space: nowrap; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td.dim { color: var(--text-light); white-space: nowrap; font-weight: 600; }
table.cmp .hl { background: var(--primary-lighter); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.tag-good { background: var(--primary-light); color: var(--primary-dark); }
.tag-mid { background: var(--warn-bg); color: var(--warn-ink); }
.tag-bad { background: #FDEDED; color: #B3453C; }
/* 对比表 APP 图标（总览/首页：图标在上，名称在下） */
.app-ico { width: 34px; height: 34px; border-radius: 9px; display: block; margin: 0 auto 7px; background: #fff; box-shadow: 0 2px 5px rgba(20,40,30,.18); object-fit: cover; }
table.cmp thead th:not(:first-child) { text-align: center; vertical-align: middle; }

/* 1v1 子页：图标在左，名称在右 */
.compare-1v1 .app-ico { display: inline-block; vertical-align: middle; margin: 0 9px 0 0; }
.compare-1v1 table.cmp thead th:not(:first-child) { text-align: left; }

/* ---------------- 提示框 ---------------- */
.notice { border-radius: 14px; padding: 16px 18px; font-size: 14.5px; margin: 20px 0; border: 1px solid; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.notice-info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-ink); }
.notice-ok { background: var(--primary-lighter); border-color: var(--primary-light); color: var(--primary-dark); }
.notice strong { font-weight: 700; }

/* ---------------- FAQ 手风琴 ---------------- */
.faq-group h3 { font-size: 20px; color: var(--ink); margin: 36px 0 16px; display: flex; align-items: center; gap: 8px; }
.faq-group h3 i { color: var(--primary); }
details.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
details.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "＋"; color: var(--primary); font-size: 18px; flex-shrink: 0; }
details.faq-item[open] summary::after { content: "－"; }
details.faq-item .faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--text); border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------------- 下载页 ---------------- */
.dl-card {
  background: linear-gradient(135deg, var(--primary-lighter), #fff);
  border: 1.5px solid var(--primary-light); border-radius: var(--radius-card);
  padding: 34px; box-shadow: var(--shadow-card);
  text-align: center;
}
.dl-card .ver { font-size: 26px; font-weight: 800; color: var(--ink); }
/* 下载页 APP 图标 */
.dl-ico { width: 84px; height: 84px; border-radius: 20px; display: block; margin: 0 auto 14px; box-shadow: 0 8px 22px rgba(42,197,121,.28); object-fit: cover; background: #fff; }

/* 下载二维码弹窗（PC 端） */
.qr-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20,40,30,.55); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.qr-modal.open { display: flex; }
.qr-box { background: #fff; border-radius: 22px; padding: 28px 28px 22px; text-align: center; position: relative; max-width: 300px; width: 100%; box-shadow: 0 24px 60px rgba(20,40,30,.28); animation: qrPop .18s ease-out; }
@keyframes qrPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.qr-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: none; background: #f1f5f3; border-radius: 50%; font-size: 22px; color: #6a7d75; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.qr-close:hover { background: #e4ece8; }
.qr-img { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; background: #fff; display: block; margin: 0 auto; }
.qr-tip { margin-top: 16px; font-size: 15.5px; color: var(--ink); font-weight: 700; }
.dl-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0 22px; font-size: 14px; color: var(--text-light); justify-content: center; }
.dl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta i { color: var(--primary); }
.hash-box {
  font-family: Consolas, Monaco, monospace; font-size: 12.5px; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; word-break: break-all;
  color: var(--text); margin-top: 10px;
}
.timeline { border-left: 2px solid var(--primary-light); padding-left: 24px; margin-left: 8px; }
.timeline .t-item { position: relative; padding-bottom: 28px; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary); border: 3px solid var(--primary-light);
}
.timeline .t-ver { font-weight: 700; color: var(--ink); font-size: 16px; }
.timeline .t-date { font-size: 13px; color: var(--text-light); margin-left: 10px; }
.timeline ul { margin-top: 8px; font-size: 14.5px; }

/* ---------------- 文章 / 教程 ---------------- */
.breadcrumb { font-size: 13.5px; color: var(--text-light); margin: 24px 0 8px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-dark); }
.article { max-width: 780px; margin: 0 auto; padding-bottom: 64px; }
.article h1 { font-size: 32px; line-height: 1.35; color: var(--ink); margin: 8px 0 10px; }
.article .meta { font-size: 13.5px; color: var(--text-light); margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 24px; color: var(--ink); margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4; }
.article h3 { font-size: 18.5px; color: var(--ink); margin: 26px 0 10px; }
.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0; }
.article li { margin: 6px 0; }
.article img { border-radius: 14px; border: 1px solid var(--line); margin: 18px 0; }
.article code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.9em; font-family: Consolas, Monaco, monospace; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin: 24px 0; font-size: 14.5px;
}
.toc .toc-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; }
.article-nav a { flex: 1 1 0; }
.article-nav .next { text-align: right; }

/* ---------------- 对比页 ---------------- */
.tldr {
  background: var(--primary-lighter); border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-card); padding: 24px 28px; margin: 24px 0;
}
.tldr .tldr-title { font-weight: 800; color: var(--primary-dark); font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scene-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.scene-card .s-title { font-weight: 700; color: var(--ink); font-size: 16.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.scene-card .s-title i { color: var(--primary); font-size: 20px; }
.scene-card .s-rec { font-size: 14px; margin-bottom: 6px; }
.scene-card .s-rec b { color: var(--primary-dark); }
.scene-card p { font-size: 14px; color: var(--text-light); }

/* ---------------- CTA 区块 ---------------- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-card); padding: 48px 36px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--primary-dark); }
.cta-band .btn:hover { background: var(--primary-lighter); transform: translateY(-2px); }

/* ---------------- Footer ---------------- */
.site-footer { background: #F2F7F4; border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--text-light); }
.footer-grid a:hover { color: var(--primary-dark); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-desc { color: var(--text-light); font-size: 13.5px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; text-align: center; color: var(--text-light); font-size: 12.5px; line-height: 2; }
.footer-bottom a { color: var(--text-light); }

/* ---------------- 页面标题横幅 ---------------- */
.page-hero { padding: 52px 0 36px; text-align: center; }
.page-hero h1 { font-size: 34px; color: var(--ink); }
.page-hero p { color: var(--text-light); margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------------- 动画（渐进增强） ---------------- */
.fade-up { opacity: 1; }
html.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .fade-up.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 30px 40px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .grid-2, .grid-3, .scene-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 25px; }
  .page-hero h1 { font-size: 26px; }
  .nav-toggle { display: block; }
  .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: 12px 20px 18px; gap: 2px; box-shadow: 0 12px 24px rgba(27,42,36,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: none; width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }

  /* 移动端截图横向滑动 */
  .hero-shots { margin-top: 36px; max-width: 100%; }
  .shots-track {
    justify-content: flex-start; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 10px 0 30px; margin: 0;
    scrollbar-width: none;
  }
  .shots-track::-webkit-scrollbar { display: none; }
  .shot {
    flex: 0 0 auto; width: 42vw; max-width: 176px; min-width: 140px; scroll-snap-align: start;
    border-radius: 22px; padding: 7px 7px 0;
  }
  .shot img { border-radius: 16px 16px 0 0; }
  .shot:nth-child(2),
  .shot:nth-child(3),
  .shot:nth-child(4) { transform: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dl-ico { width: 72px; height: 72px; }
}
