/* ==================================================================
   爱思助手 帮助中心 —— 卡片网格风（不同于 faq/ 的手风琴风）
   亮色 SaaS 帮助中心：大搜索 Hero + 分类图标卡网格 + 双列问答卡
   数据引擎复用 ../faq/data.js + ../faq/gen.js
   ================================================================== */
:root {
    --brand: #007aff;
    --brand-dark: #0056d6;
    --ink: #1d1d1f;
    --ink-2: #5b6270;
    --ink-3: #9aa0ab;
    --line: #eceef2;
    --bg: #f6f8fb;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lift: 0 8px 16px rgba(16,24,40,.08), 0 20px 48px rgba(16,24,40,.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px; color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { border: 0; max-width: 100%; display: block; }
ul, ol { list-style: none; }
code {
    font-family: Consolas, Monaco, "Courier New", monospace; font-size: 12.5px;
    background: #f0f2f5; padding: 2px 6px; border-radius: 5px; color: #c7254e; word-break: break-all;
}
.wrap { width: 1180px; max-width: 100%; margin: 0 auto; padding: 0 24px; }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- 顶栏 ---------------- */
.nav {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav__in { height: 62px; display: flex; align-items: center; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); }
.nav__logo img { width: 30px; height: 30px; }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a { color: var(--ink-2); font-size: 14px; }
.nav__links a:hover, .nav__links a.on { color: var(--brand); }

/* ---------------- Hero + 搜索 ---------------- */
.hero {
    background: radial-gradient(1200px 400px at 50% -120px, rgba(0,122,255,.14), transparent 70%), #fff;
    border-bottom: 1px solid var(--line); text-align: center; padding: 56px 0 48px;
}
.hero h1 { font-size: 32px; letter-spacing: -.5px; }
.hero p { color: var(--ink-2); font-size: 15px; margin-top: 12px; }
.hero__stat { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.search {
    margin: 28px auto 0; max-width: 640px; display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 18px;
    box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,122,255,.12); }
.search svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; height: 44px; }
.search button {
    border: 0; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
    height: 44px; padding: 0 22px; border-radius: 10px; cursor: pointer;
}
.search button:hover { background: var(--brand-dark); }
.search__hot { margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.search__hot a { margin: 0 4px; color: var(--ink-2); }

.main { padding: 40px 0 64px; }
.sec__tit { font-size: 18px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.sec__tit em { font-style: normal; font-size: 13px; color: var(--ink-3); font-weight: 400; }

/* ---------------- 分类图标卡网格 ---------------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.catcard {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.catcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.catcard.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,122,255,.12); }
.catcard__ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.catcard__ic svg { width: 24px; height: 24px; color: #fff; }
.catcard__tx b { font-size: 15px; color: var(--ink); display: block; }
.catcard__tx span { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 3px; line-height: 1.5; }
.catcard__tx i { font-style: normal; font-size: 12px; color: var(--brand); display: block; margin-top: 8px; font-weight: 600; }

/* ---------------- 问答卡片双列 ---------------- */
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qcard {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.qcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.qcard__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; align-self: flex-start; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.qcard__dot { width: 6px; height: 6px; border-radius: 50%; }
.qcard__q { font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.qcard__q a { color: inherit; }
.qcard__q a:hover { color: var(--brand); }
.qcard__sum { font-size: 13px; color: var(--ink-2); line-height: 1.7; flex: 1; overflow: hidden; }
.qcard__sum strong { color: var(--ink); }
.qcard__foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.qcard__foot .more { margin-left: auto; color: var(--brand); font-weight: 600; }
.qcard__foot .m { display: inline-flex; align-items: center; gap: 4px; }
.qcard__foot svg { width: 13px; height: 13px; }

.empty { text-align: center; padding: 60px 0; color: var(--ink-3); font-size: 15px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin-top: 36px; }
.pager button {
    min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: #fff;
    border-radius: 10px; color: var(--ink); font-size: 13px; cursor: pointer; transition: all .15s;
}
.pager button:hover:not([disabled]):not(.cur) { border-color: var(--brand); color: var(--brand); }
.pager button.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; cursor: default; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.pager .dot { color: var(--ink-3); }
.pager .info { margin-left: 8px; font-size: 13px; color: var(--ink-3); }

.foot { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.8; }
.foot a { color: var(--ink-2); }

/* ---------------- 文章页 ---------------- */
.crumb { font-size: 13px; color: var(--ink-3); padding: 20px 0 0; }
.crumb a { color: var(--ink-2); }
.crumb span { margin: 0 8px; color: var(--ink-3); }
.artwrap { display: grid; grid-template-columns: 1fr 260px; gap: 32px; padding: 20px 0 64px; align-items: start; }
.art { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.art__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.art__q { font-size: 27px; line-height: 1.35; margin: 16px 0 14px; letter-spacing: -.3px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-3); font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.art__meta .m { display: inline-flex; align-items: center; gap: 5px; }
.art__meta svg { width: 14px; height: 14px; }
.art__lead { font-size: 15px; line-height: 1.85; color: var(--ink); background: #f6f9ff; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; }
.art__lead strong { color: var(--brand-dark); }
.art__body { font-size: 15px; line-height: 1.9; color: #33383f; }
.art__body h2 { font-size: 19px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.art__body h3 { font-size: 16px; margin: 22px 0 10px; }
.art__body p { margin: 12px 0; }
.art__body ul, .art__body ol { margin: 12px 0; padding-left: 4px; }
.art__body li { position: relative; padding-left: 26px; margin: 9px 0; }
.art__body ul li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.art__body ol { counter-reset: n; }
.art__body ol li { counter-increment: n; }
.art__body ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--brand); color: #fff; font-size: 12px; border-radius: 50%; text-align: center; line-height: 20px; font-weight: 700; }
.art__body strong { color: var(--ink); }
.figure { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; background: #fafbfc; }
.note { background: #fffaf0; border: 1px solid #ffe4b3; border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: 14px; line-height: 1.8; color: #6b5320; }
.note--warn { background: #fff2f2; border-color: #ffcdcd; color: #8a2b2b; }
.tbl_wrap { overflow-x: auto; margin: 16px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.tbl th { background: #f6f8fb; font-weight: 600; }
.unverified { color: #c77700; background: #fff4e0; padding: 0 5px; border-radius: 4px; font-size: 12px; }
.sources { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 16px; margin-bottom: 10px; }
.sources ol li { counter-increment: s; position: relative; padding-left: 24px; margin: 7px 0; font-size: 13px; color: var(--ink-2); }
.sources ol { counter-reset: s; }
.sources ol li::before { content: counter(s); position: absolute; left: 0; top: 0; color: var(--ink-3); font-weight: 700; }
.related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.related h2 { font-size: 16px; margin-bottom: 12px; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related__grid a { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); line-height: 1.5; transition: all .15s; }
.related__grid a:hover { border-color: var(--brand); color: var(--brand); background: #f6f9ff; }
.pnav { display: flex; gap: 12px; margin-top: 24px; }
.pnav a { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); transition: all .15s; }
.pnav a:hover { border-color: var(--brand); color: var(--brand); }
.pnav a.next { text-align: right; }
.toc { position: sticky; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.toc__tit { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.toc a { display: block; font-size: 13px; color: var(--ink-3); padding: 6px 0 6px 12px; border-left: 2px solid var(--line); line-height: 1.4; }
.toc a:hover, .toc a.active { color: var(--brand); border-left-color: var(--brand); }
.backlist { display: inline-block; margin-top: 24px; color: var(--ink-2); font-size: 13px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .cats { grid-template-columns: repeat(2, 1fr); }
    .qgrid { grid-template-columns: 1fr; }
    .artwrap { grid-template-columns: 1fr; }
    .toc { display: none; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .cats { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
    .search button { padding: 0 14px; }
    .art { padding: 24px 20px; }
    .art__q { font-size: 22px; }
    .related__grid { grid-template-columns: 1fr; }
    .nav__links { gap: 16px; }
    .pager .info { width: 100%; text-align: center; margin: 6px 0 0; }
}






