/* ============================================
   猎取网帮助中心样式 (help.css)
   适用于: /help/*.html
   ============================================ */

:root {
    --gold: #d4a853;
    --gold-light: #f0c674;
    --bg-dark: #0a1628;
    --bg-medium: #162447;
    --bg-light: #1f4068;
    --card: rgba(26, 26, 46, 0.7);
    --line: rgba(212, 168, 83, 0.2);
    --line-soft: rgba(224, 230, 237, 0.12);
    --text: #e0e6ed;
    --text-dim: rgba(224, 230, 237, 0.72);
    --text-mute: rgba(224, 230, 237, 0.5);
    --green: #4caf50;
    --red: #e74c3c;
    --blue: #3498db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffd784; text-decoration: underline; }

/* ===== 顶栏 ===== */
.help-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 22, 40, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.help-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.help-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.help-logo:hover { color: #fff; text-decoration: none; }
.help-logo .mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.help-logo .sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-mute);
    letter-spacing: 0;
}
.help-header-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.help-header-links a {
    padding: 5px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dim);
}
.help-header-links a:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold-light);
    text-decoration: none;
}

/* ===== 布局 ===== */
.help-wrap { max-width: 1200px; margin: 0 auto; padding: 26px 20px 50px; }
.help-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ===== 侧边目录 ===== */
.help-sidebar {
    position: sticky;
    top: 76px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 12px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.toc-caption {
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 1px;
    padding: 0 8px 8px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 8px;
}
.toc-group { margin-bottom: 12px; }
.toc-group:last-child { margin-bottom: 0; }
.toc-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    padding: 6px 8px 4px;
    letter-spacing: 0.5px;
}
.toc-list { list-style: none; }
.toc-list a {
    display: block;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 13.5px;
    color: var(--text-dim);
    border-left: 2px solid transparent;
    line-height: 1.5;
}
.toc-list a:hover {
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-light);
    text-decoration: none;
}
.toc-list a.current {
    background: rgba(212, 168, 83, 0.16);
    border-left-color: var(--gold);
    color: var(--gold-light);
    font-weight: 700;
}

/* ===== 正文 ===== */
.help-main {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px 34px 34px;
}
.crumb { font-size: 12.5px; color: var(--text-mute); margin-bottom: 12px; }
.crumb a { color: var(--text-dim); }
.crumb span { margin: 0 6px; opacity: 0.5; }

.doc h1 {
    font-size: 27px;
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.doc-lead {
    font-size: 15px;
    color: var(--text-dim);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 24px;
}
.doc h2 {
    font-size: 20px;
    color: var(--gold-light);
    font-weight: 700;
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--gold);
    line-height: 1.5;
    scroll-margin-top: 80px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    margin: 22px 0 10px;
    scroll-margin-top: 80px;
}
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--gold); }
.doc strong { color: #fff; font-weight: 700; }
.doc em { color: var(--gold-light); font-style: normal; }

.doc code {
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: var(--gold-light);
    word-break: break-all;
}
.doc pre {
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    margin-bottom: 16px;
    line-height: 1.7;
}
.doc pre code {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text);
    font-size: 12.5px;
    word-break: normal;
    white-space: pre;
}

/* ===== 表格 ===== */
.table-scroll { overflow-x: auto; margin-bottom: 18px; }
.doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 460px;
}
.doc th, .doc td {
    border: 1px solid var(--line-soft);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}
.doc th {
    background: rgba(212, 168, 83, 0.14);
    color: var(--gold-light);
    font-weight: 700;
    white-space: nowrap;
}
.doc tbody tr:nth-child(even) { background: rgba(10, 22, 40, 0.28); }
.doc td strong { color: var(--gold-light); }

/* ===== 提示框 ===== */
.callout {
    border-radius: 9px;
    padding: 14px 18px;
    margin: 0 0 18px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.8;
}
.callout .callout-title {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
}
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout.tip { background: rgba(76, 175, 80, 0.1); border-color: rgba(76, 175, 80, 0.35); }
.callout.tip .callout-title { color: #7fd684; }
.callout.warn { background: rgba(231, 76, 60, 0.1); border-color: rgba(231, 76, 60, 0.35); }
.callout.warn .callout-title { color: #ff8b7d; }
.callout.note { background: rgba(52, 152, 219, 0.1); border-color: rgba(52, 152, 219, 0.35); }
.callout.note .callout-title { color: #7cc4f0; }
.callout.gold { background: rgba(212, 168, 83, 0.1); border-color: rgba(212, 168, 83, 0.35); }
.callout.gold .callout-title { color: var(--gold-light); }

/* ===== 步骤 ===== */
.steps { list-style: none; margin: 0 0 18px; counter-reset: step; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 16px 42px;
    margin: 0;
    border-left: 1px solid var(--line-soft);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: -14px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-dark);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.steps > li::marker { content: ''; }
.steps .step-title { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ===== 键值块 ===== */
.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.kv-item {
    background: rgba(10, 22, 40, 0.45);
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    padding: 12px 14px;
}
.kv-item .k { display: block; font-size: 12.5px; color: var(--text-mute); margin-bottom: 3px; }
.kv-item .v { display: block; font-size: 17px; color: var(--gold-light); font-weight: 700; line-height: 1.4; }
.kv-item .v.small { font-size: 14px; color: var(--text); font-weight: 400; }

/* ===== 徽章 ===== */
.lv {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;
    vertical-align: middle;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-dark);
    white-space: nowrap;
}
.lv.free { background: rgba(76, 175, 80, 0.2); color: #7fd684; border: 1px solid rgba(76, 175, 80, 0.4); }
.lv.all { background: rgba(224, 230, 237, 0.12); color: var(--text-dim); border: 1px solid var(--line-soft); }

/* ===== 首页：快速入门 ===== */
.hero {
    text-align: center;
    padding: 12px 0 26px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 26px;
}
.hero h1 { font-size: 30px; color: #fff; margin-bottom: 10px; }
.hero p { color: var(--text-dim); max-width: 620px; margin: 0 auto 18px; }
.search-box { position: relative; max-width: 520px; margin: 0 auto; }
.search-box input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(10, 22, 40, 0.7);
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.search-box input::placeholder { color: var(--text-mute); }
.search-box input:focus { border-color: var(--gold); }
.search-hint { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; min-height: 20px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.quick-card {
    background: rgba(10, 22, 40, 0.45);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 18px;
}
.quick-card .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.quick-card h3 { margin: 0 0 6px; font-size: 15.5px; color: #fff; }
.quick-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.75; }

/* ===== 首页：文档卡片 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 14px;
}
.doc-card {
    display: block;
    background: rgba(10, 22, 40, 0.45);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 18px;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.doc-card:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.doc-card .card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}
.doc-card .ico { font-size: 19px; line-height: 1; }
.doc-card h3 { margin: 0; font-size: 16px; color: var(--gold-light); font-weight: 700; }
.doc-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }
.doc-card .tags { margin-top: 9px; font-size: 12px; color: var(--text-mute); }
.doc-card.hidden { display: none; }
.no-result {
    display: none;
    padding: 26px;
    text-align: center;
    color: var(--text-mute);
    border: 1px dashed var(--line-soft);
    border-radius: 10px;
    font-size: 14px;
}
.no-result.show { display: block; }

/* ===== FAQ ===== */
.faq { border: 1px solid var(--line-soft); border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.faq summary {
    cursor: pointer;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(10, 22, 40, 0.45);
    list-style: none;
    position: relative;
    padding-right: 42px;
    line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--gold-light); }
.faq .faq-body { padding: 14px 18px; font-size: 14px; color: var(--text-dim); border-top: 1px solid var(--line-soft); }
.faq .faq-body p:last-child, .faq .faq-body ul:last-child { margin-bottom: 0; }

/* ===== 篇末导航 ===== */
.doc-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}
.doc-nav a {
    flex: 1 1 200px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: rgba(10, 22, 40, 0.4);
    color: var(--text);
    font-size: 14px;
}
.doc-nav a:hover { border-color: var(--gold); background: rgba(212, 168, 83, 0.1); text-decoration: none; }
.doc-nav .dir { display: block; font-size: 11.5px; color: var(--text-mute); margin-bottom: 2px; }
.doc-nav .ttl { display: block; color: var(--gold-light); font-weight: 700; }
.doc-nav a.next { text-align: right; }

/* ===== 页脚 ===== */
.help-footer {
    border-top: 1px solid var(--line);
    padding: 22px 20px 30px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 2;
}
.help-footer a { color: var(--text-dim); margin: 0 7px; }
.help-footer a:hover { color: var(--gold-light); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    body { font-size: 14.5px; }
    .help-wrap { padding: 16px 12px 36px; }
    .help-layout { display: block; }
    .help-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 10px;
        margin-bottom: 16px;
    }
    .toc-caption { display: none; }
    .toc-group { margin-bottom: 6px; }
    .toc-title { display: none; }
    .toc-list {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .toc-list li { flex: 0 0 auto; }
    .toc-list a {
        white-space: nowrap;
        border: 1px solid var(--line-soft);
        border-left-width: 1px;
        border-radius: 20px;
        padding: 5px 13px;
        font-size: 13px;
    }
    .toc-list a.current { border-color: var(--gold); }
    .help-main { padding: 20px 16px 24px; border-radius: 10px; }
    .doc h1 { font-size: 22px; }
    .doc h2 { font-size: 18px; margin-top: 28px; }
    .doc h3 { font-size: 15.5px; }
    .hero h1 { font-size: 24px; }
    .help-header-inner { padding: 10px 12px; gap: 10px; }
    .help-logo { font-size: 15.5px; }
    .help-logo .sub { display: none; }
    .help-header-links { gap: 6px; }
    .help-header-links a { padding: 4px 10px; font-size: 12.5px; }
    .card-grid { grid-template-columns: 1fr; }
    .doc-nav a { flex: 1 1 100%; }
    .doc-nav a.next { text-align: left; }
}

@media (max-width: 420px) {
    .help-header-links a:nth-child(n+3) { display: none; }
    .kv { grid-template-columns: 1fr 1fr; }
}

@media print {
    body { background: #fff; color: #000; }
    .help-header, .help-sidebar, .doc-nav, .help-footer, .search-box { display: none; }
    .help-layout { display: block; }
    .help-main { border: 0; background: none; padding: 0; }
    .doc h1, .doc h2, .doc h3, .doc strong { color: #000; }
    a { color: #000; }
}