/* 联机 BP 三端手册共用样式 */
.guide-page {
    --guide-accent: #f4b800;
    --guide-accent-soft: rgba(244, 184, 0, .12);
}

.guide-page.role-ob {
    --guide-accent: #62b6e7;
    --guide-accent-soft: rgba(98, 182, 231, .12);
}

.guide-page.role-player {
    --guide-accent: #9f89e8;
    --guide-accent-soft: rgba(159, 137, 232, .12);
}

.guide-page .manual-hero {
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.guide-page .manual-hero h1 em,
.guide-page .section-kicker,
.guide-page .manual-toc-head span,
.guide-page .guide-role-card > span {
    color: var(--guide-accent);
}

.guide-page .manual-hero-card {
    border-top-color: var(--guide-accent);
}

.guide-page .manual-hero-card strong {
    font-size: clamp(42px, 4.6vw, 68px);
    letter-spacing: -.04em;
    white-space: nowrap;
}

.guide-page .button-primary {
    background: var(--guide-accent);
    border-color: var(--guide-accent);
}

.guide-page.role-ob .button-primary,
.guide-page.role-player .button-primary {
    color: #07101f;
}

.guide-role-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(10, 19, 36, .58);
}

.guide-role-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-right: 1px solid rgba(148, 163, 184, .14);
    transition: color .2s ease, background .2s ease;
}

.guide-role-switcher a:last-child {
    border-right: 0;
}

.guide-role-switcher a:hover,
.guide-role-switcher a.active {
    color: #fff7da;
    background: var(--guide-accent-soft);
}

.guide-role-switcher a.active {
    box-shadow: inset 0 -2px var(--guide-accent);
}

.guide-entry-strip {
    padding-top: 34px;
}

.guide-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(148, 163, 184, .18);
    background: #0d182b;
}

.guide-entry-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.guide-entry-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 88px;
    padding: 20px 22px;
    color: #f8fafc;
    text-decoration: none;
    border-right: 1px solid rgba(148, 163, 184, .14);
    transition: background .2s ease;
}

.guide-entry-card:last-child {
    border-right: 0;
}

.guide-entry-card:hover {
    background: var(--guide-accent-soft);
}

.guide-entry-card i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--guide-accent);
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .025);
}

.guide-entry-card small,
.guide-entry-card strong {
    display: block;
}

.guide-entry-card small {
    margin-bottom: 4px;
    color: #718096;
    font-size: 10px;
    letter-spacing: .14em;
}

.guide-entry-card strong {
    font-size: 15px;
}

.guide-entry-card .fa-arrow-up-right-from-square {
    width: auto;
    height: auto;
    margin-left: auto;
    color: #64748b;
    border: 0;
    background: none;
    font-size: 11px;
}

.guide-platform-note {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 18px 20px;
    color: #aeb9ca;
    border: 1px solid rgba(159, 137, 232, .28);
    background: rgba(159, 137, 232, .08);
}

.guide-platform-note > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--guide-accent);
    border: 1px solid rgba(159, 137, 232, .28);
}

.guide-platform-note strong,
.guide-platform-note span {
    display: block;
}

.guide-platform-note strong {
    margin-bottom: 3px;
    color: #f7f0dc;
    font-size: 14px;
}

.guide-platform-note span {
    font-size: 12px;
    line-height: 1.7;
}

.guide-browser-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 12px 0 0;
    color: #7f8da3;
    font-size: 12px;
    line-height: 1.7;
}

.guide-browser-note i {
    margin-top: 4px;
    color: var(--guide-accent);
}

[data-electron-only] {
    display: none !important;
}

.electron-runtime [data-electron-only] {
    display: block !important;
}

.electron-runtime .electron-inline[data-electron-only] {
    display: inline !important;
}

.electron-runtime tr[data-electron-only] {
    display: table-row !important;
}

.electron-runtime li[data-electron-only] {
    display: list-item !important;
}

.guide-document .manual-section {
    scroll-margin-top: 92px;
}

.guide-document .content-heading {
    margin-bottom: 28px;
}

.guide-document .content-index {
    color: var(--guide-accent);
}

.guide-prose {
    color: #aeb9ca;
    font-size: 15px;
    line-height: 1.9;
}

.guide-prose > :first-child {
    margin-top: 0;
}

.guide-prose h3 {
    position: relative;
    margin: 34px 0 14px;
    padding-left: 16px;
    color: #f7f0dc;
    font-size: 20px;
    line-height: 1.45;
}

.guide-prose h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    background: var(--guide-accent);
}

.guide-prose p {
    margin: 0 0 14px;
}

.guide-prose strong {
    color: #f6ecd0;
}

.guide-prose code {
    padding: 2px 7px;
    color: #dce8f5;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #081223;
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

.guide-prose ul,
.guide-prose ol {
    margin: 12px 0 22px;
    padding-left: 0;
    list-style: none;
    counter-reset: guide-list;
}

.guide-prose li {
    position: relative;
    margin: 0;
    padding: 11px 14px 11px 34px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    background: rgba(255, 255, 255, .018);
}

.guide-prose li:last-child {
    border-bottom: 0;
}

.guide-prose ul > li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    width: 5px;
    height: 5px;
    background: var(--guide-accent);
}

.guide-prose ol > li {
    counter-increment: guide-list;
}

.guide-prose ol > li::before {
    content: counter(guide-list, decimal-leading-zero);
    position: absolute;
    left: 10px;
    top: 11px;
    color: var(--guide-accent);
    font-size: 10px;
    font-weight: 800;
}

.guide-prose blockquote {
    margin: 20px 0;
    padding: 17px 20px;
    color: #d8e1ec;
    border-left: 3px solid var(--guide-accent);
    background: var(--guide-accent-soft);
}

.guide-prose blockquote p:last-child {
    margin-bottom: 0;
}

.guide-table-wrap {
    width: 100%;
    margin: 20px 0 28px;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, .18);
}

.guide-prose table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #0b1628;
}

.guide-prose th,
.guide-prose td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid rgba(148, 163, 184, .12);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.guide-prose th:last-child,
.guide-prose td:last-child {
    border-right: 0;
}

.guide-prose tr:last-child td {
    border-bottom: 0;
}

.guide-prose th {
    color: #fff4cf;
    background: rgba(255, 255, 255, .045);
    font-size: 12px;
    letter-spacing: .04em;
}

.guide-prose hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, .16);
}

.guide-prose a {
    color: var(--guide-accent);
    text-underline-offset: 3px;
}

.guide-source-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 17px;
    color: #7f8da3;
    border: 1px solid rgba(148, 163, 184, .14);
    font-size: 12px;
    line-height: 1.7;
}

.guide-source-note i {
    margin-top: 4px;
    color: var(--guide-accent);
}

@media (max-width: 900px) {
    .guide-entry-grid {
        grid-template-columns: 1fr;
    }

    .guide-entry-card {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .14);
    }

    .guide-entry-card:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .guide-role-switcher {
        grid-template-columns: 1fr;
    }

    .guide-role-switcher a {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .14);
    }

    .guide-role-switcher a:last-child {
        border-bottom: 0;
    }

    .guide-role-switcher a.active {
        box-shadow: inset 3px 0 var(--guide-accent);
    }

    .guide-entry-card {
        min-height: 76px;
        padding: 16px;
    }

    .guide-platform-note {
        align-items: flex-start;
        padding: 16px;
    }

    .guide-prose {
        font-size: 14px;
    }

    .guide-prose h3 {
        font-size: 18px;
    }
}
