/* 以诚科普 qxhmbj.com — 主站样式表 */
:root {
  --ink: #171b21;
  --ink-2: #3d4650;
  --muted: #66707c;
  --line: #e5e9ee;
  --line-2: #eef1f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #0d5c8c;
  --accent-dark: #0a4770;
  --accent-soft: #eaf3f9;
  --warn: #8a5a00;
  --warn-soft: #fdf6e7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── 顶部 ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #1682b8);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .6px; }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); font-size: 15px; padding: 8px 11px; border-radius: 7px;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ── 按钮 ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 9px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .15s ease; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3dd; color: var(--ink); text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }

/* ── Hero ───────────────────────────────── */
.hero {
  padding: 62px 0 54px;
  background:
    radial-gradient(900px 340px at 78% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fbfcfd, #fff);
  border-bottom: 1px solid var(--line-2);
}
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 1.4px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
  padding: 5px 12px; margin: 0 0 18px;
}
h1 { font-size: 40px; line-height: 1.32; letter-spacing: -.5px; margin: 0 0 16px; font-weight: 700; }
.lead { font-size: 17.5px; color: var(--ink-2); margin: 0; max-width: 660px; }
.tiny { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hero-compact { padding: 44px 0 34px; }
.hero-compact h1 { font-size: 32px; }

/* ── 通用版块 ───────────────────────────── */
section { padding: 54px 0; }
section.tight { padding: 34px 0; }
.section-head { margin: 0 0 28px; max-width: 720px; }
.section-head h2 { font-size: 26px; line-height: 1.4; margin: 0 0 10px; letter-spacing: -.3px; }
.section-head p { margin: 0; color: var(--muted); }
.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.5; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 12px;
}

/* ── 步骤 ───────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; margin: 4px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── 表格 ───────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
td.platform { font-weight: 600; white-space: nowrap; }

/* ── 正文排版 ───────────────────────────── */
.prose { max-width: 780px; }
.prose h2 { font-size: 23px; margin: 40px 0 12px; line-height: 1.45; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ── 提示条 ─────────────────────────────── */
.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 22px 0;
  font-size: 14.5px; color: var(--ink-2);
}
.note.warn { border-left-color: #c9962a; background: var(--warn-soft); color: #6b4a10; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* ── 折叠问答 ───────────────────────────── */
details.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 0 20px; margin-bottom: 10px;
}
details.faq-item summary {
  cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; font-size: 16px;
  position: relative; padding-right: 28px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 15px;
  color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .answer { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }
details.faq-item .answer p { margin: 0 0 10px; }
details.faq-item .answer p:last-child { margin-bottom: 0; }

/* ── 微信卡片 ───────────────────────────── */
.wechat-box {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 26px; box-shadow: var(--shadow);
}
.wechat-box img { width: 220px; border-radius: 8px; border: 1px solid var(--line-2); }
.wechat-box h3 { margin: 0 0 8px; font-size: 18px; }
.wechat-id {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--accent);
  background: var(--accent-soft); border-radius: 7px; padding: 6px 12px; margin: 6px 0 12px;
}

/* ── CTA 条 ─────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0b3f60, #0d5c8c 55%, #1682b8);
  color: #fff; border-radius: 14px; padding: 38px 34px; margin: 46px auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 6px; font-size: 23px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: #eef4f8; color: var(--accent-dark); }

/* ── 面包屑 ─────────────────────────────── */
.crumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

/* ── 页脚 ───────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #fbfcfd; padding: 40px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 14px; margin: 0 0 12px; color: var(--ink); }
.footer-grid p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.footer-grid a { color: var(--muted); font-size: 13.5px; display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.footer-bottom a { color: var(--muted); }

/* ── 响应式 ─────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wechat-box { grid-template-columns: 1fr; justify-items: start; }
  h1 { font-size: 30px; }
  .hero { padding: 40px 0 34px; }
  section { padding: 40px 0; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 58px; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 7px 9px; }
  .header-cta { margin-left: auto; padding: 7px 12px; font-size: 13px; }
  h1 { font-size: 26px; }
  .lead { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-band { padding: 28px 22px; }
}
