/* 帮助手册沿用公共背景，入口轻透、目录玻璃、正文偏实，形成阅读层次。 */
.help-glass {
    --help-primary: #3f6fff;
    --help-link: #3f6fff;
    --help-text: var(--text-primary);
    --help-muted: var(--text-secondary);
    --help-line: rgba(155, 186, 229, .2);
    --help-edge: rgba(184, 212, 250, .3);
    --help-card: rgba(25, 39, 62, .82);
    --help-entry: rgba(31, 48, 75, .6);
    --help-soft: rgba(106, 158, 239, .08);
    --help-tint: rgba(94, 147, 255, .12);
    --help-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
[data-theme="light"] .help-glass {
    --help-text: #25354d;
    --help-muted: #596980;
    --help-line: rgba(136, 169, 213, .2);
    --help-edge: rgba(255, 255, 255, .94);
    --help-card: rgba(255, 255, 255, .9);
    --help-entry: rgba(255, 255, 255, .58);
    --help-soft: rgba(225, 237, 253, .36);
    --help-tint: rgba(114, 170, 255, .12);
    --help-shadow: 0 6px 24px rgba(66, 106, 159, .055);
}
.help-glass .help-page {
    min-height: calc(100vh - var(--statau-navbar-offset));
    color: var(--help-text);
    background: transparent;
}
.help-glass .help-hero { padding: 42px 0 34px; text-align: center; }
.help-glass .help-hero-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -.035em;
    color: var(--help-text);
}
.help-glass .help-hero-title i { color: var(--help-primary); font-size: .85em; }
.help-glass .nav-cards-section { padding: 0 0 12px; background: transparent; }
.help-glass .nav-card {
    display: block;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--help-edge);
    border-radius: 18px;
    color: var(--help-text);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 70%), var(--help-entry);
    box-shadow: var(--help-shadow), inset 0 1px 0 rgba(255, 255, 255, .24);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.help-glass .nav-card:hover {
    transform: translateY(-3px);
    border-color: rgba(104, 155, 248, .4);
    box-shadow: 0 10px 24px rgba(63, 111, 200, .1);
    color: var(--help-text);
}
.help-glass .nav-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid rgba(121, 170, 243, .16);
    border-radius: 13px;
    background: var(--help-tint);
    color: var(--help-primary);
    font-size: 1.35rem;
}
/* 同一蓝色体系中交替使用中蓝与天蓝，强调有区别，背景仍保持浅色。 */
.help-glass .nav-cards-section .row > :nth-child(3n+2) .nav-card-icon { color: #5089eb; background: rgba(134, 191, 255, .15); }
.help-glass .nav-cards-section .row > :nth-child(3n) .nav-card-icon { color: #4398d5; background: rgba(145, 211, 245, .14); }
.help-glass .nav-card-title { margin: 0 0 9px; font-size: 1.1rem; font-weight: 700; color: var(--help-text); }
.help-glass .nav-card-desc { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--help-muted); }
.help-glass .external-docs-section { margin-top: 24px; }
.help-glass .external-docs-panel {
    padding: 28px;
    border: 1px solid var(--help-edge);
    border-radius: 20px;
    background: linear-gradient(115deg, var(--help-tint), transparent 85%), var(--help-entry);
    box-shadow: var(--help-shadow);
}
.help-glass .external-docs-section + .external-docs-section .external-docs-panel { background: var(--help-entry); }
.help-glass .external-docs-panel h3 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; color: var(--help-text); }
.help-glass .external-docs-panel h3 i { color: var(--help-primary); }
.help-glass .external-docs-panel p { margin-bottom: 20px; line-height: 1.8; color: var(--help-muted); }
.help-glass .external-docs-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.help-glass .external-docs-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--help-line);
    border-radius: 12px;
    background: var(--help-card);
    color: var(--help-text);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.help-glass .external-docs-link:hover { color: var(--help-link); border-color: rgba(63, 111, 255, .35); transform: translateY(-2px); }
.help-glass .external-docs-link strong { display: block; margin-bottom: 5px; font-size: .95rem; }
.help-glass .external-docs-link span { display: block; font-size: .85rem; line-height: 1.6; color: var(--help-muted); }
.help-glass .external-docs-link > i { color: #72a4ed; font-size: .8rem; }
.help-glass .content-section { padding: 28px 0 64px; }
.help-glass .sidebar-nav { position: sticky; top: var(--statau-navbar-offset); }
.help-glass .sidebar-nav .list-group {
    padding: 8px;
    border: 1px solid var(--help-edge);
    border-radius: 16px;
    background: var(--help-entry);
    box-shadow: var(--help-shadow), inset 0 1px 0 rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}
.help-glass .sidebar-nav .list-group-item {
    padding: 12px 14px;
    margin: 2px 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--help-muted);
    font-size: .92rem;
    transition: background .2s ease, color .2s ease;
}
.help-glass .sidebar-nav .list-group-item:hover { background: var(--help-soft); color: var(--help-link); }
.help-glass .sidebar-nav .list-group-item.active { color: var(--help-link); background: var(--help-tint); font-weight: 650; box-shadow: inset 3px 0 var(--help-primary); }
/* 正文使用接近实色的白底，避免长文本被底纹干扰。 */
.help-glass .content-card {
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--help-edge);
    border-radius: 20px;
    background: var(--help-card);
    box-shadow: var(--help-shadow);
    scroll-margin-top: calc(var(--statau-navbar-offset) + 16px);
    overflow-wrap: anywhere;
}
.help-glass .content-card h3 { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--help-line); font-size: 1.5rem; font-weight: 750; color: var(--help-text); }
.help-glass .content-card h3 i { color: var(--help-primary); font-size: .9em; }
.help-glass .content-card h4 { margin: 30px 0 14px; font-size: 1.2rem; font-weight: 700; color: var(--help-text); }
.help-glass .content-card h5 { margin: 20px 0 10px; font-size: 1.02rem; font-weight: 700; color: var(--help-text); }
.help-glass .content-card :is(p, li) { line-height: 1.85; color: var(--help-muted); }
.help-glass .content-card :is(ul, ol) { margin-bottom: 18px; }
.help-glass .content-card a { color: var(--help-link); text-underline-offset: 3px; }
.help-glass .content-card code { padding: 2px 6px; border-radius: 5px; background: var(--help-soft); color: var(--help-link); font-family: Consolas, Monaco, monospace; }
.help-glass .help-table { width: 100%; margin: 18px 0 22px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--help-line); border-radius: 12px; overflow: hidden; }
.help-glass .help-table-scroll { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--help-line); border-radius: 12px; }
.help-glass .help-table-scroll .help-table { margin: 0; border: 0; border-radius: 0; }
.help-glass .help-table th { padding: 12px; background: var(--help-tint); color: var(--help-text); text-align: left; font-weight: 700; font-size: .9rem; }
.help-glass .help-table td { padding: 12px; color: var(--help-muted); border-top: 1px solid var(--help-line); font-size: .92rem; }
.help-glass .help-table tbody tr:nth-child(even) td { background: var(--help-soft); }
.help-glass .help-table tr:hover td { background: var(--help-tint); }
.help-glass .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 24px 0; }
.help-glass .feature-item { padding: 20px; border: 1px solid var(--help-line); border-radius: 12px; background: var(--help-soft); }
.help-glass .feature-item h6 { margin-bottom: 10px; font-size: 1rem; font-weight: 700; color: var(--help-text); }
.help-glass .feature-item p { margin-bottom: 0; font-size: .92rem; }
.help-glass .feature-box { margin: 22px 0; padding: 22px 24px; border: 1px solid var(--help-line); border-radius: 14px; background: linear-gradient(115deg, var(--help-tint), transparent), var(--help-soft); }
.help-glass .feature-box h5 { margin-top: 0; }
.help-glass .feature-box > :last-child { margin-bottom: 0; }
.help-glass .tip-box { margin: 20px 0; padding: 18px 20px; border: 1px solid rgba(98, 151, 241, .17); border-left: 3px solid #76a8f5; border-radius: 12px; background: var(--help-soft); }
.help-glass .tip-box.warning { border-color: rgba(210, 168, 80, .16); border-left-color: #ddb66a; background: rgba(236, 195, 110, .075); }
.help-glass .tip-box.success { border-color: rgba(74, 166, 131, .16); border-left-color: #83bba6; background: rgba(95, 178, 145, .065); }
.help-glass .tip-box.danger { border-color: rgba(205, 112, 117, .16); border-left-color: #d9989b; background: rgba(205, 112, 117, .065); }
/* 提示标题独占一行，段落中的强调文字保留行内排版。 */
.help-glass .tip-box > strong { display: block; margin-bottom: 8px; color: var(--help-text); }
.help-glass .tip-box > :last-child { margin-bottom: 0; }
.help-glass .step-indicator { display: flex; align-items: flex-start; gap: 18px; margin: 24px 0; }
.help-glass .step-number { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; font-size: 1.08rem; font-weight: 750; color: #fff; background: linear-gradient(135deg, #7caaff, #4a7cf5); }
.help-glass .step-indicator:nth-of-type(even) .step-number { background: linear-gradient(135deg, #91c7f6, #669eea); }
.help-glass .step-content { min-width: 0; }
.help-glass .step-content h5 { margin: 2px 0 6px; }
.help-glass .step-content p { margin: 0; }
.help-glass .citation-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 28px; }
.help-glass .citation-meta-item { min-width: 0; padding: 16px; border: 1px solid var(--help-line); border-radius: 12px; background: var(--help-soft); }
.help-glass .citation-meta-label { display: block; margin-bottom: 7px; color: var(--help-muted); font-size: .78rem; font-weight: 650; letter-spacing: .04em; }
.help-glass .citation-meta-value { display: block; overflow-wrap: anywhere; color: var(--help-text); font-size: .95rem; font-weight: 650; }
.help-glass .citation-format-list { display: grid; gap: 16px; margin: 20px 0 26px; }
.help-glass .citation-format-card { overflow: hidden; border: 1px solid var(--help-line); border-radius: 14px; background: var(--help-card); }
.help-glass .citation-format-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--help-line); background: var(--help-soft); }
.help-glass .citation-format-name { color: var(--help-text); font-size: .9rem; font-weight: 750; }
.help-glass .citation-copy-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; padding: 7px 11px; border: 1px solid rgba(63, 111, 255, .22); border-radius: 8px; color: var(--help-link); background: var(--help-tint); font-size: .82rem; font-weight: 650; transition: border-color .2s ease, background .2s ease; }
.help-glass .citation-copy-button:hover { border-color: var(--help-primary); background: var(--help-soft); }
.help-glass .citation-copy-button.is-copied { color: #299469; border-color: rgba(40, 167, 110, .35); background: rgba(40, 167, 110, .08); }
.help-glass .citation-copy-button.is-error { color: #cf5863; border-color: rgba(220, 53, 69, .35); background: rgba(220, 53, 69, .08); }
.help-glass .citation-text { margin: 0; padding: 18px 20px; color: var(--help-text); font-family: Georgia, 'Times New Roman', 'Noto Serif SC', serif; font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; }
.help-glass pre.citation-text { white-space: pre-wrap; word-break: break-word; background: transparent; }
.help-glass .citation-method-example { position: relative; margin: 18px 0 22px; padding: 22px 24px 22px 30px; border: 1px solid var(--help-line); border-left: 3px solid #82adf6; border-radius: 12px; background: var(--help-soft); }
.help-glass .citation-method-example::before { content: '\201C'; position: absolute; top: 2px; left: 10px; color: #9abdf5; font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.help-glass .citation-method-example p { margin: 0; color: var(--help-text); font-family: Georgia, 'Times New Roman', 'Noto Serif SC', serif; }
.help-glass .help-page :is(a, button, .help-table-scroll):focus-visible { outline: 2px solid var(--help-primary); outline-offset: 4px; }
@media (max-width: 991.98px) {
    .help-glass .sidebar-nav { position: static; margin-bottom: 24px; }
    .help-glass .sidebar-nav .list-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .help-glass .help-hero { padding: 28px 0; }
    .help-glass .nav-card { padding: 20px; }
    .help-glass .nav-card-icon { width: 42px; height: 42px; margin-bottom: 14px; }
    .help-glass :is(.external-docs-panel, .content-card) { padding: 20px; border-radius: 16px; }
    .help-glass .external-docs-links { grid-template-columns: 1fr; }
    .help-glass .content-section { padding-top: 20px; }
    .help-glass .content-card h3 { font-size: 1.3rem; }
    .help-glass .help-table :is(th, td) { padding: 9px; font-size: .82rem; }
    /* 窄屏只让宽表横向滚动，避免整页溢出或把列名挤成逐字竖排。 */
    .help-glass .help-table { min-width: 520px; }
    .help-glass #account .help-table { min-width: 640px; }
    .help-glass .citation-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .help-glass .step-indicator { gap: 12px; }
    .help-glass .step-number { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .help-glass :is(.nav-card, .external-docs-link, .list-group-item, .citation-copy-button) { transition: none; }
}
