/* 核心变量定义 - 继承高对比科技框架家族 */
:root {
    --bg: #09090b;
    --surface: #121214;
    --surface-elevated: #1c1c1f;
    --primary: #17dfdf;
    --primary-dim: rgba(23, 223, 223, 0.15);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dark: #000000;
    --border: #3f3f46;
    --border-hover: #52525b;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --transition: all 0.35s ease;
}

/* 全局重置与基础设定 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- 强制导航栏样式 (复用首页基因) --- */
.apex {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.orbit {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
}

.seal {
    display: flex;
    align-items: center;
    min-width: 0;
}

.seal img {
    height: 24px;
    width: auto;
}

.wire {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.tie {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.tie:hover {
    color: var(--text-main);
}

.tie.active {
    color: var(--primary);
}

/* --- 布局容器 --- */
.zone, .mesh, .hive, .root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- 排版系统 --- */
.peak-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
    white-space: normal;
    margin-bottom: 1.5rem;
}

.peak-lg {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: normal;
    margin-bottom: 1rem;
}

.peak-md {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    margin-bottom: 0.75rem;
}

.peak-sm {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: normal;
    margin-bottom: 0.5rem;
}

.lore-lg {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.lore {
    color: var(--text-muted);
    font-size: 1rem;
}

.lore-sm {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.peak-highlight {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(90deg, var(--text-main), var(--primary));
}

/* --- 按钮与交互 --- */
.ping-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
    cursor: pointer;
}

.ping-primary:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(23, 223, 223, 0.3);
}

.spark-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
}

.spark-ghost:hover {
    border-color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tie-inline {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

.tie-inline:hover {
    text-shadow: 0 0 8px var(--primary-dim);
    transform: translateX(4px);
}

/* --- 模块 1: Hero (不对称网格变体) --- */
.nova {
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.nova::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.nova-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nova-pod {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.nova-lens {
    position: relative;
    padding-left: 2rem;
}

.lens-frame {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) translateY(0);
    transition: var(--transition);
}

.lens-frame:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
    border-color: var(--border-hover);
}

.rune-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.rune-decor.top {
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary-dim);
}

/* --- 模块 2: 目录网格 (卡片阵列) --- */
.flare {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #0c0c0e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.flare-apex {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.flare-apex .lore {
    font-size: 1.125rem;
}

.pod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.packet {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.packet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.packet:hover {
    background: var(--surface-elevated);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.packet:hover::before {
    opacity: 1;
}

.rune-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(23, 223, 223, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(23, 223, 223, 0.2);
}

.rune-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- 模块 3: API 指南 (步骤/列表流) --- */
.beacon {
    padding: 8rem 0;
    position: relative;
}

.beacon-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.beacon-apex {
    position: sticky;
    top: 6rem;
}

.vein-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    min-width: 0;
    flex-wrap: wrap;
}

.vein-flow::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--border);
    z-index: 0;
}

.bead-node {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 1rem 0;
    min-width: 0;
    flex-wrap: wrap;
}

.rune-aura {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--bg);
    transition: var(--transition);
}

.bead-node:hover .rune-aura {
    border-color: var(--primary);
    background: rgba(23, 223, 223, 0.05);
}

.bead-lore {
    padding-top: 0.5rem;
    flex: 1;
    min-width: 0;
}

.shell-code {
    margin-top: 1rem;
    background: #0d0d0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #a1a1aa;
    overflow-x: auto;
}

.shell-code span.hl { color: var(--primary); }

/* --- 页脚区 --- */
.wake {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    background: var(--surface);
}

.wake-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    min-width: 0;
}

.wake-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.wake-vein {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.wake-tie {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.wake-tie:hover {
    color: var(--text-main);
}

/* --- 响应式断点 --- */
@media (max-width: 1024px) {
    .nova-layout,
    .beacon-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nova-lens {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .lens-frame {
        transform: none;
    }
    
    .beacon-apex {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nova { padding: 4rem 0; }
    .flare { padding: 4rem 0; }
    .beacon { padding: 4rem 0; }
    
    .wire {
        display: none; /* 移动端简化，依赖JS展开，此处仅做安全回退 */
    }
    
    .pod-grid {
        grid-template-columns: 1fr;
    }
    
    .vein-flow::before {
        left: 20px;
    }
    
    .rune-aura {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

.orbit-apex {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    word-break: break-word;
    color: var(--text-main);
}
.orbit-apex,
.orbit-apex *,
.orbit-apex *::before,
.orbit-apex *::after {
    box-sizing: border-box;
}

.orbit-apex nav,
.orbit-apex div,
.orbit-apex section,
.orbit-apex article,
.orbit-apex aside,
.orbit-apex p,
.orbit-apex h1,
.orbit-apex h2,
.orbit-apex h3,
.orbit-apex h4,
.orbit-apex h5,
.orbit-apex h6,
.orbit-apex a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.orbit-apex p,
.orbit-apex h1,
.orbit-apex h2,
.orbit-apex h3,
.orbit-apex h4,
.orbit-apex h5,
.orbit-apex h6 {
    text-decoration: none;
}

.orbit-apex img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.orbit-apex {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.orbit-apex a.orbit-tie {
    --aisite-shell-nav-padding: 0.5rem 0;
    --aisite-shell-nav-margin: 0;
    --aisite-shell-nav-line-height: normal;
    --aisite-shell-nav-display: inline;
    --aisite-shell-nav-height: auto;
    --aisite-shell-nav-min-height: auto;
}

.orbit-apex a.orbit-tie,
.orbit-apex a.orbit-tie:hover,
.orbit-apex a.orbit-tie:focus,
.orbit-apex a.orbit-tie:active,
.orbit-apex a.orbit-tie.active,
.orbit-apex a.orbit-tie[aria-current="page"] {
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    padding: var(--aisite-shell-nav-padding, 0);
    margin: var(--aisite-shell-nav-margin, 0);
    line-height: var(--aisite-shell-nav-line-height, normal);
    display: var(--aisite-shell-nav-display, inline);
    height: var(--aisite-shell-nav-height, auto);
    min-height: var(--aisite-shell-nav-min-height, auto);
}

.orbit-apex{
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(9, 9, 11, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid #27272a;
        }

.orbit-apex .orbit-orbit{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            height: 72px;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
        }

.orbit-apex .orbit-orbit > *{ min-width: 0; }

.orbit-apex .orbit-seal img{
            height: 28px;
            display: block;
        }

.orbit-apex .orbit-wire{
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
        }

.orbit-apex .orbit-wire > *{ min-width: 0; }

.orbit-apex .orbit-tie{
            color: #a1a1aa;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: 0.35s ease;
            padding: 0.5rem 0;
            position: relative;
        }

.orbit-apex .orbit-tie:hover, .orbit-apex .orbit-tie.active{
            color: #f4f4f5;
        }

.orbit-apex .orbit-tie.active::after{
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #17dfdf;
        }

@media (max-width: 1024px){.orbit-apex .orbit-wire{
                display: none; 
            }}

.orbit-apex {
    background: rgb(9, 9, 11);
    background-image: none;
}

.root-wake {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    word-break: break-word;
    color: var(--text-main);
}
.root-wake,
.root-wake *,
.root-wake *::before,
.root-wake *::after {
    box-sizing: border-box;
}

.root-wake nav,
.root-wake div,
.root-wake section,
.root-wake article,
.root-wake aside,
.root-wake p,
.root-wake h1,
.root-wake h2,
.root-wake h3,
.root-wake h4,
.root-wake h5,
.root-wake h6,
.root-wake a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.root-wake p,
.root-wake h1,
.root-wake h2,
.root-wake h3,
.root-wake h4,
.root-wake h5,
.root-wake h6 {
    text-decoration: none;
}

.root-wake img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.root-wake {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.root-wake a,
.root-wake a:hover,
.root-wake a:focus,
.root-wake a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.root-wake .root-lore-md{ font-size: 1rem; color: #a1a1aa; }

.root-wake .root-mesh-mesh{
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
        }

.root-wake .root-tie{
            color: #a1a1aa;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: 0.35s ease;
            padding: 0.5rem 0;
            position: relative;
        }

.root-wake .root-tie:hover, .root-wake .root-tie.active{
            color: #f4f4f5;
        }

.root-wake .root-tie.active::after{
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #17dfdf;
        }

.root-wake{
            border-top: 1px solid #27272a;
            background: #121214;
            padding: 4rem 0 2rem;
        }

.root-wake .root-root{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: 4rem;
        }

.root-wake .root-root > *{ min-width: 0; }

.root-wake .root-root-brand{
            flex: 1 1 300px;
        }

.root-wake .root-brand-lore{
            font-size: 1.5rem;
            font-weight: 800;
            color: #f4f4f5;
            letter-spacing: -0.05em;
            margin-bottom: 1rem;
        }

.root-wake .root-root-links{
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
        }

.root-wake .root-root-links > *{ min-width: 0; }

.root-wake .root-tie-pod{
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

.root-wake .root-tie-peak{
            font-size: 0.875rem;
            font-weight: 600;
            color: #f4f4f5;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

.root-wake .root-echo-bottom{
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid #27272a;
            text-align: center;
            color: #a1a1aa;
            font-size: 0.875rem;
        }