/* ========== 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --brand: #254dff;
  --brand-dark: #1a3bd6;
  --brand-soft: #eef1ff;
  --text: #1f2328;
  --muted: #646d78;
  --line: #e6e9ee;
  --bg: #f6f8fa;
  --radius: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: #fff;
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1; }

/* ========== 头部 ========== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #4b8dff, var(--brand-dark)); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px 9px; border: 2px solid #fff; border-radius: 3px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--text); background: var(--bg); }
.site-nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ========== 尾部 ========== */
.site-footer { background: #1b1f24; color: #a7b0ba; margin-top: 72px; }
.footer-inner { padding: 32px 20px; text-align: center; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 12px; }
.footer-nav a { color: #d5dbe1; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: 13px; }

/* ========== 首页 ========== */
.home-download { padding-top: 48px; text-align: center; }
.btn-download { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 12px 32px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; }
.btn-download:hover { background: var(--brand-dark); color: #fff; }

/* ========== 帮助中心：列表 ========== */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { font-size: 30px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; line-height: 22px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.cat-tabs a { padding: 6px 16px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 14px; }
.cat-tabs a.on, .cat-tabs a:hover { background: var(--brand-soft); color: var(--brand); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 19px; margin-bottom: 6px; }
.post-list h2 a { color: var(--text); }
.post-list h2 a:hover { color: var(--brand); }
.post-list p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ========== 帮助中心：文章详情 ========== */
.crumb { padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; }
.crumb em { font-style: normal; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding-top: 20px; }
.article h1 { font-size: 28px; }
.article .meta { margin-bottom: 20px; }
.article-summary { padding: 14px 18px; background: var(--bg); border-radius: 8px; color: var(--muted); }
.content { word-wrap: break-word; }
.content h2 { font-size: 21px; margin-top: 1.8em; }
.content h3 { font-size: 18px; margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1em; }
.content li { margin-bottom: .3em; }
.content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14px; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.content th { background: var(--bg); }
.help-tip { padding: 12px 16px; border-left: 3px solid #e3a008; background: #fdf6e3; border-radius: 0 8px 8px 0; margin: 0 0 1em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.pager a:hover { border-color: var(--brand); }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--muted); }
.side-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.side-box h2 { font-size: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--text); }
.side-list a:hover { color: var(--brand); }
.side-back { font-size: 14px; }
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* ========== 小屏 ========== */
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 14px; }
  .nav-open .site-nav { display: flex; }
}

/* ========== 站点定制 ========== */
.logo img { display: block; height: 20px; width: auto; }
