/* 视觉基底契约 */
:root {
    --text-main: #1a1b1e;
    --text-mute: #5c5f66;
    --bg-page: #fdfcfd;
    --bg-surface: #ffffff;
    --bg-alt: #f8f6f9;
    --accent: #ce6ce6;
    --accent-light: rgba(206, 108, 230, 0.1);
    --accent-hover: #b85bc8;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-accent: 0 4px 15px rgba(206, 108, 230, 0.3);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: 0.35s ease;
    --spacing-base: 2rem;
    --max-width: 1200px;
}

/* 全局重置与排版 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all var(--transition); }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

/* 强制 Flex 规则 & 文本换行 */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}
.flex-dot {
    min-width: 0;
}
.byte, .apex-1, .apex-2, .apex-3 {
    word-break: break-word;
    overflow-wrap: break-word;
}
.byte { word-break: keep-all; }
.apex-1, .apex-2, .apex-3 { white-space: normal; }

/* 导航栏 (强制复用与同族样式适配) */
.crown {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.crown-mesh {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.crest {
    display: flex;
    align-items: center;
}
.crest img {
    height: 32px;
}
.nexus {
    gap: 1.5rem;
    align-items: center;
}
.wire {
    font-weight: 500;
    color: var(--text-mute);
    padding: 0.5rem 0;
    position: relative;
}
.wire:hover {
    color: var(--text-main);
}
.wire.active {
    color: var(--accent);
    font-weight: 600;
}
.wire.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* 主容器与通用区块 */
.zone {
    width: 100%;
    overflow: hidden;
}
.beam, .vault, .mesh {
    padding: 4rem 1.5rem;
    margin: 0 auto;
    max-width: var(--max-width);
    gap: 3rem;
}
.vault {
    background-color: var(--bg-alt);
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    padding: 5rem 3rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* 排版层级 */
.apex-1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 1.5rem;
}
.apex-2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.apex-3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.byte-lead {
    font-size: 1.125rem;
    color: var(--text-mute);
    line-height: 1.8;
}

/* 1. Hero 区域 (Intro Article) */
.beam {
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.surge-beam {
    flex: 1;
    min-width: 320px;
    padding-right: 2rem;
}
.flare-beam {
    flex: 1.2;
    min-width: 320px;
    position: relative;
}
.lens-cloak {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0,0,0,0.04);
    transform: translateY(0);
    transition: transform var(--transition), box-shadow var(--transition);
}
.lens-cloak:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* 2. 基础模式区域 (Capability Div) */
.vault .apex-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}
.grid-mesh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.node {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-light);
}
.glyph-cloak {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* 3. 高级规则区域 (Capability Article) */
.mesh {
    align-items: flex-start;
}
.mesh .apex-wrap {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 100px;
}
.cluster-vertical {
    flex: 2;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.shard {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition);
}
.shard:hover {
    transform: translateX(5px);
}
.shard-crown {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.shard-glyph {
    color: var(--accent);
}

/* 页脚 (Tail) */
.tail {
    background: var(--bg-surface);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 4rem 1.5rem 2rem;
    margin-top: 4rem;
}
.root {
    max-width: var(--max-width);
    margin: 0 auto;
    justify-content: space-between;
    gap: 2rem;
}
.base-info {
    flex: 1;
    min-width: 200px;
}
.base-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: inline-block;
}
.anchor-cluster {
    display: flex;
    gap: 2rem;
    flex: 2;
    min-width: 300px;
    justify-content: flex-end;
}
.anchor-band {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.anchor-apex {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.anchor {
    color: var(--text-mute);
    font-size: 0.95rem;
}
.anchor:hover {
    color: var(--accent);
}
.tail-bottom {
    max-width: var(--max-width);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-mute);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .vault { padding: 3rem 2rem; margin: 2rem 1.5rem; }
    .beam, .mesh { gap: 2rem; }
}
@media (max-width: 768px) {
    .nexus { display: none; /* 移动端导航简化处理，依赖core.js或保持原生换行 */ }
    .crown-mesh { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .nexus { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 1rem; }
    
    .surge-beam { padding-right: 0; text-align: center; }
    .mesh .apex-wrap { position: static; text-align: center; margin-bottom: 1rem; }
    .anchor-cluster { justify-content: flex-start; flex-wrap: wrap; }
    .vault { border-radius: 0; margin: 0; }
}

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

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

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

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

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

.nexus-crown a.nexus-flex-dot.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-crown a.nexus-flex-dot.nexus-wire,
.nexus-crown a.nexus-flex-dot.nexus-wire:hover,
.nexus-crown a.nexus-flex-dot.nexus-wire:focus,
.nexus-crown a.nexus-flex-dot.nexus-wire:active,
.nexus-crown a.nexus-flex-dot.nexus-wire.active,
.nexus-crown a.nexus-flex-dot.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-crown .nexus-flex-wrap{
            display: flex;
            flex-wrap: wrap;
        }

.nexus-crown .nexus-flex-dot{
            min-width: 0;
        }

.nexus-crown{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #eae8eb;
        }

.nexus-crown .nexus-crown-mesh{
            max-width: 1100px;
            margin: 0 auto;
            padding: 1rem 2rem;
            justify-content: space-between;
            align-items: center;
        }

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

.nexus-crown .nexus-nexus{
            gap: 2rem;
            align-items: center;
        }

.nexus-crown .nexus-wire{
            font-size: 0.95rem;
            font-weight: 500;
            color: #5c5f66;
            padding: 0.5rem 0;
            position: relative;
        }

.nexus-crown .nexus-wire:hover, .nexus-crown .nexus-wire.active{
            color: #ce6ce6;
        }

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

@media (max-width: 768px){.nexus-crown .nexus-crown-mesh{
                flex-direction: column;
                padding: 1rem;
            }

.nexus-crown .nexus-nexus{
                margin-top: 1rem;
                gap: 1rem;
                justify-content: center;
                width: 100%;
            }}

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

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

.root-tail nav,
.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{
            background-color: #111;
            color: #888;
            padding: 4rem 2rem;
            text-align: center;
            font-size: 0.9rem;
        }

.root-tail .root-root{
            max-width: 1100px;
            margin: 0 auto;
        }

.root-tail .root-brand-byte{
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
            display: block;
        }