/* 站点统一色彩与排版变量 */
:root {
    --text-main: #1a1b1e;
    --text-mute: #5c5f66;
    --bg-page: #fdfcfd;
    --bg-surface: #ffffff;
    --bg-alt: #f8f6f9;
    --primary: #ce6ce6;
    --primary-light: rgba(206, 108, 230, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.06);
    --border: #eae8eb;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --layout-max: 1140px;
}

/* 基础重置 */
*, *::before, *::after {
    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;
}

/* 强制：Flexbox基础规则与文本换行 */
.flex-wrap,
.mesh,
.cluster,
.band,
.crown-mesh,
.nexus,
.base {
    display: flex;
    flex-wrap: wrap;
}

.flex-wrap > *,
.mesh > *,
.cluster > *,
.band > *,
.crown-mesh > *,
.nexus > *,
.base > * {
    min-width: 0;
}

.byte, 
.apex-1, 
.apex-2, 
.apex-3, 
.wire {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
p.byte {
    word-break: keep-all;
}

/* --- 强制继承：导航栏样式 --- */
.crown {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.crown-mesh {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.wire {
    text-decoration: none;
    color: var(--text-mute);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.35s ease;
    padding: 0.5rem 0;
}

.wire:hover,
.wire.active {
    color: var(--primary);
}

/* --- 正文家族变体样式 --- */
.cloak {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px);
}

/* 版心通用 */
.mesh {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
}

/* 标题尺度 */
.apex-1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    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;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.apex-3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* 段落尺度 */
.byte {
    color: var(--text-mute);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* 区块：Intro (Hero变体) */
.flare {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.flare .mesh {
    align-items: center;
    gap: 4rem;
}

.flare .cluster {
    flex: 1 1 400px;
    flex-direction: column;
}

/* 视觉承载：Data/UI 抽象结构 */
.flare .lens {
    flex: 1 1 400px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.lens-node {
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-light);
    z-index: 2;
}

.lens-wire {
    width: 2px;
    height: 40px;
    background: var(--border);
    position: relative;
}
.lens-wire::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: pulse 2s infinite ease-in-out;
}

.lens-core-cluster {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.lens-core {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 160px;
}
.lens-core .glyph {
    color: var(--text-mute);
    width: 24px;
    height: 24px;
}
.lens-core.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.lens-core.active .glyph {
    color: var(--primary);
}
.lens-core span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

@keyframes pulse {
    0% { transform: translate(-50%, -100%); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translate(-50%, 100%); opacity: 0; }
}

/* 区块：Steps (下载与更新) */
.beam {
    background: var(--bg-page);
}

.beam .mesh {
    flex-direction: column;
    gap: 3rem;
}

.beam-crown {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* 卡片语法 */
.node {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.node-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* 区块：Closing (切换内核) */
.surge {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.surge .mesh {
    gap: 4rem;
    align-items: flex-start;
}

.surge-cloak {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
}

.surge-visual {
    flex: 1 1 350px;
}

.shard {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.shard .glyph {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.shard-info {
    display: flex;
    flex-direction: column;
}

.shard-info .apex-3 {
    margin-bottom: 0.25rem;
}
.shard-info .byte {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* UI示意：下拉菜单 */
.ui-mockup {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border);
    padding: 2rem;
}

.ui-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.ui-flag {
    font-weight: 600;
    color: var(--text-main);
}
.ui-select {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    cursor: pointer;
}
.ui-select svg {
    width: 16px;
    height: 16px;
}

/* 页脚区域 */
.tail {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2rem;
    margin-top: auto;
}

.base {
    max-width: var(--layout-max);
    margin: 0 auto;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

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

.anchor {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.anchor .wire {
    font-size: 0.9rem;
}

.tail-byte {
    color: var(--text-mute);
    font-size: 0.85rem;
    text-align: center;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .nexus {
        display: none; /* 简化移动端，通常会有汉堡菜单，此处仅做布局隐藏 */
    }
    
    .apex-1 {
        font-size: 2.25rem;
    }
    
    .flare .mesh,
    .surge .mesh {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .band {
        grid-template-columns: 1fr;
    }
    
    .shard {
        flex-direction: column;
        gap: 1rem;
    }
}

.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;
        }