/* 基础变量与重置 */
:root {
    --c-primary: #804ee4;
    --c-primary-hover: #6a3bc5;
    --c-primary-light: #f4effc;
    --c-text-main: #1d1d21;
    --c-text-muted: #5e5e66;
    --c-bg-base: #ffffff;
    --c-bg-alt: #faf9fd;
    --c-bg-dark: #120c1e;
    --radius-soft: 18px;
    --radius-pill: 100px;
    --radius-shard: 14px;
    --shadow-float: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 30px rgba(128,78,228,0.1);
    --border-subtle: 1px solid rgba(128,78,228,0.08);
    --transition-base: 0.25s ease;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text-main);
    background-color: var(--c-bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 强制文本换行规则 */
p, span, div, a, li {
    word-break: break-word;
    overflow-wrap: break-word;
}
p { line-height: 1.7; }
h1, h2, h3, h4, h5, h6 {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 链接基础 */
a { text-decoration: none; color: inherit; }

/* 强制Flex/Grid规则基础 */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}
.flex-wrap > * {
    min-width: 0;
}

/* 外层大包装 */
.cloak-tunnel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏复用样式 (严格继承) */
.crest {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
}
.nexus {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.nexus > * { min-width: 0; }
.sigil {
    display: flex;
    align-items: center;
}
.sigil img {
    height: 32px;
    width: auto;
    display: block;
}
.mesh {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.mesh > * { min-width: 0; }
.wire {
    font-weight: 500;
    color: var(--c-text-muted);
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}
.wire:hover {
    color: var(--c-primary);
}
.wire.active {
    color: var(--c-primary);
    font-weight: 600;
}
.wire.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--c-primary);
    border-radius: var(--radius-pill);
}

/* 主内容区 */
.stream-core {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 公共版心与容器 */
.tunnel-limit {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}
.space-y {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.bg-alt {
    background-color: var(--c-bg-alt);
}

/* 标题体系 */
.apex-mega {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-text-main);
    margin-bottom: 1.5rem;
}
.apex-major {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-text-main);
    margin-bottom: 1rem;
}
.apex-minor {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text-main);
    margin-bottom: 0.75rem;
}
.cipher-lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--c-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}
.cipher-body {
    color: var(--c-text-muted);
    font-size: 1rem;
}
.cipher-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* 模块 1: Hero (Article) */
.portal-split {
    background-color: var(--c-bg-alt);
    padding: 6rem 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: max(550px, 70vh);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.portal-split > * { min-width: 0; }
.cloak-intro {
    flex: 1 1 500px;
    max-width: 600px;
}
.cloak-graph {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pulse-bind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(128, 78, 228, 0.25);
    border: 2px solid var(--c-primary);
    transition: var(--transition-base);
}
.pulse-bind:hover {
    background-color: var(--c-primary-hover);
    border-color: var(--c-primary-hover);
    transform: translateY(-2px);
    color: #fff;
}
.graph-node-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* 模块 2: 订阅链接配置 (Aside) */
.flare-steps {
    background-color: var(--c-bg-base);
}
.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.pod-step {
    background: var(--c-bg-alt);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-soft);
    position: relative;
    transition: var(--transition-base);
    border: var(--border-subtle);
}
.pod-step:hover {
    background: var(--c-bg-base);
    box-shadow: var(--shadow-float);
    transform: translateY(-5px);
}
.glyph-numeric {
    width: 48px;
    height: 48px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* 模块 3: 手动导入方法 (Div) */
.beam-capability {
    background-color: var(--c-bg-alt);
}
.shard-detail {
    background: var(--c-bg-base);
    padding: 2rem;
    border-radius: var(--radius-shard);
    box-shadow: var(--shadow-float);
    border: var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-base);
}
.shard-detail > * { min-width: 0; }
.shard-detail:hover {
    box-shadow: var(--shadow-hover);
}
.glyph-vector {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--c-primary-light) 0%, #fff 100%);
    border: 1px solid rgba(128,78,228,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
}
.cloak-shard-cipher {
    flex: 1 1 200px;
}

/* 模块 4: 节点测速整理 (Section) */
.tunnel-closing {
    background-color: var(--c-bg-base);
}
.cloak-band {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-hover) 100%);
    border-radius: var(--radius-soft);
    padding: 4rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: var(--shadow-hover);
}
.cloak-band > * { min-width: 0; }
.cloak-band-cipher {
    flex: 1 1 400px;
}
.cloak-band .apex-major {
    color: #fff;
}
.cloak-band .cipher-body {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
}
.glyph-massive {
    flex: 0 0 120px;
    opacity: 0.9;
}

/* 页脚 */
.tail-base {
    background-color: var(--c-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 5% 2rem;
    margin-top: auto;
}
.root-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}
.root-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}
.root-apex {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.root-mesh {
    list-style: none;
}
.root-mesh li {
    margin-bottom: 0.75rem;
}
.root-wire {
    transition: var(--transition-base);
}
.root-wire:hover {
    color: var(--c-primary-light);
}
.root-under {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .mesh { display: none; } /* 移动端简化导航，实际项目中需JS接管，当前按视觉契约单列处理 */
    .apex-mega { font-size: 2.5rem; }
    .portal-split { padding: 4rem 5%; gap: 2rem; }
    .cloak-band { padding: 2rem; flex-direction: column; text-align: center; }
    .glyph-massive { display: none; }
    .cluster-grid { grid-template-columns: 1fr; }
    .shard-detail { flex-direction: column; gap: 1rem; }
}

.nexus-crest {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-text-main);
}
.nexus-crest,
.nexus-crest *,
.nexus-crest *::before,
.nexus-crest *::after {
    box-sizing: border-box;
}

.nexus-crest [role="navigation"],
.nexus-crest div,
.nexus-crest section,
.nexus-crest article,
.nexus-crest aside,
.nexus-crest p,
.nexus-crest h1,
.nexus-crest h2,
.nexus-crest h3,
.nexus-crest h4,
.nexus-crest h5,
.nexus-crest h6,
.nexus-crest a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

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

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

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

.nexus-crest a.nexus-wire {
    --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;
}

.nexus-crest a.nexus-wire,
.nexus-crest a.nexus-wire:hover,
.nexus-crest a.nexus-wire:focus,
.nexus-crest a.nexus-wire:active,
.nexus-crest a.nexus-wire.active,
.nexus-crest a.nexus-wire[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);
}

.nexus-crest{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 100;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            transition: all 0.25s ease;
        }

.nexus-crest .nexus-nexus{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            height: 80px;
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 2rem;
        }

.nexus-crest .nexus-nexus > *{
            min-width: 0;
        }

.nexus-crest .nexus-sigil{
            display: flex;
            align-items: center;
        }

.nexus-crest .nexus-sigil img{
            height: 32px;
            width: auto;
            display: block;
        }

.nexus-crest .nexus-mesh{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2rem;
        }

.nexus-crest .nexus-mesh > *{
            min-width: 0;
        }

.nexus-crest .nexus-wire{
            text-decoration: none;
            color: #5e5e66;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            position: relative;
            padding: 0.5rem 0;
        }

.nexus-crest .nexus-wire:hover{
            color: #804ee4;
        }

.nexus-crest .nexus-wire.active{
            color: #804ee4;
            font-weight: 600;
        }

.nexus-crest .nexus-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #804ee4;
            border-radius: 2px;
        }

@media (max-width: 768px){.nexus-crest .nexus-nexus{
                height: 70px;
                padding: 0 1.5rem;
            }

.nexus-crest .nexus-mesh{
                display: none; 
            }}

.nexus-crest {
    background: rgb(255, 255, 255);
    background-image: none;
}

.root-tail {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-text-main);
}
.root-tail,
.root-tail *,
.root-tail *::before,
.root-tail *::after {
    box-sizing: border-box;
}

.root-tail [role="navigation"],
.root-tail div,
.root-tail section,
.root-tail article,
.root-tail aside,
.root-tail p,
.root-tail h1,
.root-tail h2,
.root-tail h3,
.root-tail h4,
.root-tail h5,
.root-tail h6,
.root-tail a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

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

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

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

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

.root-tail .root-wire{
            text-decoration: none;
            color: #5e5e66;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            position: relative;
            padding: 0.5rem 0;
        }

.root-tail .root-wire:hover{
            color: #804ee4;
        }

.root-tail .root-wire.active{
            color: #804ee4;
            font-weight: 600;
        }

.root-tail .root-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #804ee4;
            border-radius: 2px;
        }

.root-tail{
            background-color: #0b0714;
            color: rgba(255,255,255,0.6);
            padding: 4rem 2rem 2rem;
            text-align: center;
            font-size: 0.95rem;
        }

.root-tail .root-tail-brand{
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
            letter-spacing: 0.5px;
        }

.root-tail .root-cluster-tail-links{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

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

.root-tail .root-wire{
            color: rgba(255,255,255,0.6);
        }

.root-tail .root-wire:hover{
            color: #804ee4;
        }

.root-tail .root-cipher-cipher{
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            max-width: 1240px;
            margin: 0 auto;
        }