/* 基础变量体系 (继承首页基因) */
:root {
    --tg-bg: #050505;
    --tg-surface: #121212;
    --tg-surface-hover: #1a1a1a;
    --tg-accent: #bf37b8;
    --tg-accent-glow: rgba(191, 55, 184, 0.15);
    --tg-text-main: #f0f0f0;
    --tg-text-muted: #999999;
    --tg-border: #262626;
    --tg-border-light: #333333;
    --tg-radius: 16px;
    --tg-radius-lg: 24px;
    --tg-max-width: 1280px;
    --tg-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --tg-transition: 0.35s ease;
}

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

body {
    background-color: var(--tg-bg);
    color: var(--tg-text-main);
    font-family: var(--tg-font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* 全局文本换行规范 */
.ray, .node, .dart {
    word-break: break-word;
    overflow-wrap: break-word;
}
.ray {
    word-break: keep-all; /* 中文优化 */
}
.node {
    white-space: normal;
}

/* 强制导航栏复用样式 (完全匹配要求) */
.halo {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tg-border);
}
.halo-inner {
    max-width: var(--tg-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.halo-inner > * { min-width: 0; }
.ink img {
    height: 32px;
    display: block;
}
.loop {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.loop > * { min-width: 0; }
.glyph {
    color: var(--tg-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.glyph:hover {
    color: var(--tg-text-main);
}
.glyph.active {
    color: var(--tg-accent);
}

/* 布局容器组件 */
.hull {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.fold, .nest, .cloud {
    width: 100%;
    max-width: var(--tg-max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

/* Flexbox 必备规则类 */
.wing {
    display: flex;
    flex-wrap: wrap;
}
.wing > * {
    min-width: 0;
}

/* typography */
.node-1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.node-2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--tg-text-main);
}
.node-3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--tg-text-main);
}
.ray-lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--tg-text-muted);
    line-height: 1.6;
    max-width: 800px;
}
.ray-base {
    font-size: 1rem;
    color: var(--tg-text-muted);
    line-height: 1.6;
}

/* 交互组件 */
.zap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: var(--tg-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--tg-accent-glow);
    transition: transform var(--tg-transition), box-shadow var(--tg-transition);
}
.zap:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 55, 184, 0.4);
}
.zap-alt {
    background: transparent;
    border: 1px solid var(--tg-border-light);
    color: var(--tg-text-main);
    box-shadow: none;
}
.zap-alt:hover {
    border-color: var(--tg-accent);
    background: rgba(191, 55, 184, 0.05);
}

/* 卡片面板体系 */
.dart {
    background: var(--tg-surface);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius-lg);
    padding: 2.5rem 2rem;
    transition: transform var(--tg-transition), border-color var(--tg-transition), box-shadow var(--tg-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dart:hover {
    transform: translateY(-5px);
    border-color: var(--tg-border-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 图标容器 */
.echo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(191, 55, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--tg-accent);
}
.echo svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 特殊区块变体 */
.vista {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem;
    background: radial-gradient(circle at 50% 20%, var(--tg-accent-glow) 0%, transparent 60%),
                linear-gradient(180deg, var(--tg-bg) 0%, #0a0a0a 100%);
    text-align: center;
    border-bottom: 1px solid var(--tg-border);
}
.vista-core {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* 矩阵网格 (Grid实现，回退Flex) */
.grid-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* 步骤/列表布局 */
.step-wire {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.hue {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: var(--tg-radius);
    border: 1px solid transparent;
    transition: border-color var(--tg-transition), background var(--tg-transition);
}
.hue:hover {
    border-color: var(--tg-border);
    background: rgba(255,255,255,0.04);
}
.hue-echo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--tg-accent);
    border: 1px solid var(--tg-border);
}

/* 页脚基础结构 */
.base {
    border-top: 1px solid var(--tg-border);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: auto;
    background: #000;
}
.base-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tg-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.base-ray {
    color: var(--tg-text-muted);
    font-size: 0.875rem;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .halo-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .loop {
        gap: 1rem;
        justify-content: center;
    }
    .fold, .nest, .cloud {
        padding: 3rem 1.25rem;
    }
    .vista {
        min-height: auto;
        padding: 4rem 1.25rem;
    }
    .grid-matrix {
        grid-template-columns: 1fr;
    }
    .dart {
        padding: 1.5rem;
    }
}

.helm-halo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--tg-text-main);
}
.helm-halo,
.helm-halo *,
.helm-halo *::before,
.helm-halo *::after {
    box-sizing: border-box;
}

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

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

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

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

.helm-halo a.helm-glyph {
    --aisite-shell-nav-padding: 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;
}

.helm-halo a.helm-glyph,
.helm-halo a.helm-glyph:hover,
.helm-halo a.helm-glyph:focus,
.helm-halo a.helm-glyph:active,
.helm-halo a.helm-glyph.active,
.helm-halo a.helm-glyph[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);
}

.helm-halo .helm-wing{
            display: flex;
            flex-wrap: wrap;
        }

.helm-halo .helm-wing > *{
            min-width: 0;
        }

.helm-halo{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(5, 5, 5, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #262626;
            padding: 1rem 2rem;
        }

.helm-halo .helm-halo-inner{
            max-width: 1280px;
            margin: 0 auto;
            justify-content: space-between;
            align-items: center;
        }

.helm-halo .helm-ink img{
            height: 32px;
            width: auto;
            display: block;
        }

.helm-halo .helm-loop{
            gap: 2rem;
            align-items: center;
        }

.helm-halo .helm-glyph{
            color: #999999;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.35s ease;
            position: relative;
        }

.helm-halo .helm-glyph:hover{
            color: #f0f0f0;
        }

.helm-halo .helm-glyph.active{
            color: #f0f0f0;
        }

.helm-halo .helm-glyph.active::after{
            content: '';
            position: absolute;
            bottom: -1.25rem;
            left: 0;
            width: 100%;
            height: 2px;
            background: #bf37b8;
            box-shadow: 0 0 10px rgba(191, 55, 184, 0.2);
        }

@media (max-width: 768px){.helm-halo .helm-halo-inner{ flex-direction: column; gap: 1rem; }

.helm-halo .helm-loop{ gap: 1rem; flex-wrap: wrap; justify-content: center; }}

.helm-halo {
    background: rgb(5, 5, 5);
    background-image: none;
}

.root-blip {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--tg-text-main);
}
.root-blip,
.root-blip *,
.root-blip *::before,
.root-blip *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.root-blip .root-wing{
            display: flex;
            flex-wrap: wrap;
        }

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

.root-blip .root-ray{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.root-blip p.root-ray{
            word-break: keep-all;
            line-height: 1.7;
        }

.root-blip{
            border-top: 1px solid #262626;
            padding: 4rem 2rem 2rem;
            background: #050505;
            margin-top: auto;
        }

.root-blip .root-base{
            max-width: 1280px;
            margin: 0 auto;
            justify-content: space-between;
            align-items: flex-start;
            gap: 3rem;
        }

.root-blip .root-root-brand{
            font-size: 1.5rem;
            font-weight: 700;
            color: #f0f0f0;
            margin-bottom: 1rem;
        }

.root-blip .root-root-links{
            gap: 4rem;
        }

.root-blip .root-wire{
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

.root-blip .root-wire-node{
            color: #f0f0f0;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

.root-blip .root-wire-glyph{
            color: #999999;
            text-decoration: none;
            transition: all 0.35s ease;
            font-size: 0.9rem;
        }

.root-blip .root-wire-glyph:hover{
            color: #bf37b8;
        }

.root-blip .root-seal{
            max-width: 1280px;
            margin: 3rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid #262626;
            text-align: center;
            color: #999999;
            font-size: 0.875rem;
        }

@media (max-width: 768px){.root-blip .root-base{ flex-direction: column; }

.root-blip .root-root-links{ flex-direction: column; gap: 2rem; }}