@charset "UTF-8";
/**
 * Path Finder 中文官网 - 文档页公共样式
 * 适用范围：help/*.html 帮助文档页（三栏：分类导航 + 正文 + 页内目录）
 * 设计语言：细分隔线 + 编号 + 裸排版（无卡片边框）
 */

/* ========== 页面头部（面包屑 + 标题） ========== */
.doc-hero {
    position: relative;
    padding: 72px 0 46px;
    border-bottom: 1px solid var(--pf-line);
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 560px;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(7, 130, 254, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.doc-crumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--pf-text-3);
}

.doc-crumb a {
    color: var(--pf-text-3);
    transition: color 0.25s ease;
}

.doc-crumb a:hover {
    color: var(--pf-accent);
}

.doc-crumb .sep {
    color: #2C3A55;
    font-size: 11px;
}

.doc-crumb .cur {
    color: var(--pf-accent);
}

.doc-hero-title {
    position: relative;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-bottom: 14px;
}

.doc-hero-title .pf-grad {
    background: var(--pf-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.doc-hero-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pf-text-3);
    margin-bottom: 18px;
}

.doc-hero-desc {
    position: relative;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--pf-text-2);
    max-width: 720px;
}

/* ========== 三栏布局 ========== */
.doc-layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr) 190px;
    gap: 56px;
    padding: 64px 0 110px;
}

/* ========== 左侧分类导航 ========== */
.doc-side {
    position: sticky;
    top: calc(var(--pf-nav-h) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--pf-nav-h) - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 20px;
}

.doc-side-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pf-text-3);
    margin-bottom: 18px;
}

.doc-side a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0 9px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pf-text-2);
    transition: color 0.25s ease;
}

/* 左侧指示细线 */
.doc-side a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(122, 174, 255, 0.14);
    transition: background 0.25s ease, width 0.25s ease;
}

.doc-side a:hover {
    color: #ffffff;
}

.doc-side a:hover::before {
    background: rgba(52, 181, 255, 0.55);
}

.doc-side a.active {
    color: var(--pf-accent);
    font-weight: 600;
}

.doc-side a.active::before {
    width: 2px;
    background: var(--pf-gradient);
}

.doc-side .n {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--pf-text-3);
    flex-shrink: 0;
}

.doc-side a.active .n {
    color: var(--pf-accent);
}

/* ========== 右侧页内目录 ========== */
.doc-toc {
    position: sticky;
    top: calc(var(--pf-nav-h) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--pf-nav-h) - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.doc-toc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pf-text-3);
    margin-bottom: 16px;
}

.doc-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--pf-text-3);
    border-left: 1px solid rgba(122, 174, 255, 0.12);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.doc-toc a:hover {
    color: var(--pf-text);
}

.doc-toc a.active {
    color: var(--pf-accent);
    border-left-color: var(--pf-accent);
}

/* ========== 正文区 ========== */
.doc-body {
    min-width: 0;
}

/* 文章块：细线分隔，首篇无顶线 */
.doc-article {
    padding: 46px 0;
    border-top: 1px solid var(--pf-line);
}

.doc-article:first-child {
    padding-top: 6px;
    border-top: none;
}

/* 文章标题：编号 + 标题 */
.doc-article > h2 {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 26px;
}

.doc-article > h2 .art-num {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(180deg, #34B5FF 10%, rgba(7, 130, 254, 0.35) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    transform: translateY(-2px);
}

/* 小节标题 */
.doc-article h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin: 34px 0 14px;
}

.doc-article h3:first-of-type {
    margin-top: 0;
}

.doc-article h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text);
    margin: 24px 0 10px;
}

/* 段落与文字 */
.doc-article p {
    font-size: 15.5px;
    line-height: 1.95;
    color: var(--pf-text-2);
    margin-bottom: 16px;
    max-width: 760px;
}

.doc-article p:last-child {
    margin-bottom: 0;
}

.doc-article strong {
    color: var(--pf-text);
    font-weight: 600;
}

.doc-article a {
    color: var(--pf-accent);
    border-bottom: 1px solid rgba(52, 181, 255, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.doc-article a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* 普通列表 */
.doc-article ul,
.doc-article ol {
    margin: 0 0 18px;
    max-width: 760px;
}

.doc-article ul > li,
.doc-article ol > li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--pf-text-2);
}

.doc-article ul > li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    transform: rotate(45deg);
}

.doc-article ol {
    counter-reset: doc-ol;
}

.doc-article ol > li {
    counter-increment: doc-ol;
    padding-left: 34px;
}

.doc-article ol > li::before {
    content: counter(doc-ol, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--pf-accent);
}

/* 嵌套列表 */
.doc-article li > ul,
.doc-article li > ol {
    margin-top: 9px;
    margin-bottom: 4px;
}

.doc-article li > ul > li::before {
    width: 5px;
    height: 5px;
    background: rgba(122, 174, 255, 0.4);
}

/* 操作步骤块：编号竖线引导 */
.doc-steps {
    margin: 20px 0 24px;
    padding-left: 4px;
    max-width: 760px;
    counter-reset: doc-step;
}

.doc-steps li {
    position: relative;
    padding-left: 44px;
    padding-bottom: 18px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pf-text-2);
    counter-increment: doc-step;
}

.doc-steps li:last-child {
    padding-bottom: 0;
}

/* 序号圆点 */
.doc-steps li::before {
    content: counter(doc-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(7, 130, 254, 0.14);
    border: 1px solid rgba(52, 181, 255, 0.35);
    color: var(--pf-accent);
    font-size: 12px;
    font-weight: 700;
}

/* 竖向引导线 */
.doc-steps li::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 34px;
    bottom: 4px;
    width: 1px;
    background: rgba(122, 174, 255, 0.14);
}

.doc-steps li:last-child::after {
    display: none;
}

/* 行内代码 / 路径 */
.doc-article code {
    font-family: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
    font-size: 0.88em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(122, 174, 255, 0.09);
    color: #A8CFFF;
    white-space: nowrap;
}

/* 代码块 */
.doc-article pre {
    margin: 16px 0 20px;
    padding: 18px 22px;
    border-radius: 12px;
    background: #070D1A;
    border: 1px solid rgba(122, 174, 255, 0.1);
    overflow-x: auto;
    max-width: 760px;
}

.doc-article pre code {
    display: block;
    padding: 0;
    background: none;
    font-size: 13px;
    line-height: 1.85;
    white-space: pre;
    color: #A8CFFF;
}

/* 键盘按键 */
.doc-article kbd {
    display: inline-block;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(122, 174, 255, 0.1);
    border: 1px solid rgba(122, 174, 255, 0.25);
    border-bottom-width: 2px;
    color: var(--pf-text);
    white-space: nowrap;
}

/* 提示 / 注意块（无框：底色 + 左侧色点） */
.doc-note,
.doc-tip {
    position: relative;
    margin: 20px 0;
    padding: 16px 20px 16px 46px;
    border-radius: 10px;
    background: rgba(122, 174, 255, 0.05);
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--pf-text-2);
    max-width: 760px;
}

.doc-note::before,
.doc-tip::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 25px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doc-note::before {
    background: var(--pf-accent);
    box-shadow: 0 0 10px rgba(52, 181, 255, 0.6);
}

.doc-tip::before {
    background: #3ED598;
    box-shadow: 0 0 10px rgba(62, 213, 152, 0.5);
}

.doc-note strong,
.doc-tip strong {
    color: var(--pf-text);
}

.doc-note .tag,
.doc-tip .tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.doc-note .tag { color: var(--pf-accent); }
.doc-tip .tag { color: #3ED598; }

/* 快捷键 / 数据表格 */
.doc-kbd-table {
    max-width: 760px;
    margin: 18px 0 24px;
    overflow-x: auto;
}

.doc-kbd-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.doc-kbd-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pf-text-3);
    padding: 0 18px 12px 0;
    border-bottom: 1px solid var(--pf-line-strong);
}

.doc-kbd-table td {
    padding: 11px 18px 11px 0;
    border-bottom: 1px solid var(--pf-line);
    color: var(--pf-text-2);
    line-height: 1.6;
    vertical-align: middle;
}

.doc-kbd-table tr:last-child td { border-bottom: none; }
.doc-kbd-table tbody tr { transition: background 0.2s ease; }
.doc-kbd-table tbody tr:hover { background: rgba(122, 174, 255, 0.04); }

/* 文章内图片 */
.doc-article figure {
    margin: 24px 0;
    max-width: 760px;
}

.doc-article figure img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(2, 8, 20, 0.55);
}

.doc-article figcaption {
    margin-top: 14px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--pf-text-3);
    text-transform: uppercase;
}

/* ========== 移动端：侧栏变顶部横向滚动条 ========== */
.doc-side-toggle { display: none; }

@media (max-width: 1180px) {
    .doc-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .doc-toc { display: none; }
}

@media (max-width: 900px) {
    .doc-hero { padding: 52px 0 36px; }
    .doc-hero-title { font-size: 30px; }

    .doc-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 80px;
    }

    .doc-side {
        position: sticky;
        top: var(--pf-nav-h);
        z-index: 50;
        max-height: none;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 12px 0;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        background: rgba(4, 7, 14, 0.9);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--pf-line);
        scrollbar-width: none;
    }

    .doc-side::-webkit-scrollbar { display: none; }
    .doc-side-label { display: none; }

    .doc-side a {
        flex-shrink: 0;
        padding: 7px 13px;
        border-radius: 8px;
        background: rgba(122, 174, 255, 0.06);
        font-size: 12.5px;
        white-space: nowrap;
    }

    .doc-side a::before { display: none; }
    .doc-side .n { display: none; }

    .doc-side a.active {
        background: rgba(7, 130, 254, 0.18);
        color: var(--pf-accent);
    }

    .doc-article { padding: 34px 0; }
    .doc-article > h2 { font-size: 22px; gap: 12px; }
    .doc-article h3 { font-size: 16px; }
}
