/* ==========================================================================
   题库易测 · 官网样式
   ========================================================================== */

:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-soft: #eff5ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e4e9f2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.22);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand b { font-size: 17px; letter-spacing: 0.2px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); font-size: 14.5px; }
.nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(37, 99, 235, 0.5); }

.btn--primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.85);
}

.btn--ghost { background: #fff; color: var(--brand); border-color: #c7dbfb; }

.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

.btn-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(700px 380px at 8% 0%, rgba(99, 102, 241, 0.1), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  border: 1px solid #d7e6ff;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }

h1 {
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin: 18px 0 14px;
}

.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span::before { content: "·"; margin-right: 6px; color: #cbd5e1; }
.hero-meta span:first-child::before { content: ""; margin: 0; }

.hero-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: auto; }

/* ---------------- 通用区块 ---------------- */
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: 27px; margin: 0 0 8px; letter-spacing: -0.2px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- 特性 ---------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 12px 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.2px; line-height: 1.72; }

.ficon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 18px; font-weight: 700;
}

/* ---------------- 下载 ---------------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.dl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.dl--primary { border-color: #bcd6ff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(37,99,235,.55); }
.dl h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.dl .os-tag { font-size: 11.5px; font-weight: 500; color: var(--brand-deep); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; }
.dl .size { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dl p { margin: 0 0 18px; font-size: 14px; color: var(--muted); flex: 1; }
.dl .btn { width: 100%; justify-content: center; }

/* ---------------- 截图 ---------------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; border-bottom: 1px solid var(--line); }
.shot div { padding: 14px 18px 16px; }
.shot h4 { margin: 0 0 4px; font-size: 15.5px; }
.shot p { margin: 0; font-size: 13.6px; color: var(--muted); }

/* 竖屏截图（手机）：固定高度、顶部对齐裁切，避免把格子拉得特别长 */
.shot--portrait img {
  height: 420px;
  object-fit: cover;
  object-position: top center;
}

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 16px 20px; }
.qa summary { cursor: pointer; font-weight: 500; font-size: 15.4px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 10px 0 0; color: var(--muted); font-size: 14.4px; }

/* ---------------- 更新日志 ---------------- */
.log { max-width: 820px; }
.log-item { position: relative; padding: 0 0 30px 26px; border-left: 2px solid var(--line); }
.log-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.log-item::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.log-item h3 { margin: 0 0 2px; font-size: 17px; display: flex; align-items: baseline; gap: 10px; }
.log-item h3 time { font-size: 13px; color: var(--muted); font-weight: 400; }
.log-item ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.6px; }
.log-item li { margin: 4px 0; }

/* ---------------- 法律文本 ---------------- */
.legal-wrap { padding: 44px 0 64px; }
.legal-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }

.legal-toc { position: sticky; top: 88px; font-size: 14px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--muted); }
.legal-toc a:hover { color: var(--brand); }

.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow); }
.legal-body h1 { font-size: 26px; margin: 0 0 6px; }
.legal-body .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.legal-body h2 { font-size: 17px; margin: 30px 0 10px; padding-top: 6px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--ink-2); }
.legal-body ul { padding-left: 20px; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 44px 0 34px; margin-top: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand b { color: #fff; }
.site-footer p { margin: 8px 0 0; font-size: 13.4px; max-width: 46em; color: #94a3b8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.8px; }
.site-footer nav a { color: #cbd5e1; }
.site-footer nav a:hover { color: #fff; }

.copy { text-align: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(148,163,184,.18); font-size: 12.6px; color: #8291a8; }

/* ---------------- 提示条 ---------------- */
.notice {
  background: #fff8e6;
  border: 1px solid #ffe1a8;
  color: #8a5a00;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0 0 22px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero { padding: 44px 0 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 32px; }
  .features, .dl-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .legal-body { padding: 22px 18px; }
  section { padding: 40px 0; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand { min-width: 0; }
  .brand b { font-size: 15.5px; white-space: nowrap; }
  .brand img { width: 26px; height: 26px; }
  /* 手机上只留「下载」按钮，其余导航文字收进页脚 */
  .nav a:not(.btn) { display: none; }
  .nav { gap: 0; margin-left: auto; }
  h1 { font-size: 28px; }
  .hero p.lead { font-size: 15.4px; }
  .btn { height: 42px; padding: 0 16px; font-size: 14.4px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .section-head h2 { font-size: 22px; }
}