/* 变量体系 - 继承首页视觉契约 */
:root {
    --color-bg-deep: #050508;
    --color-bg-shell: #0d0e15;
    --color-bg-raised: #151722;
    --color-primary: #3f36bf;
    --color-primary-glow: rgba(63, 54, 191, 0.4);
    --color-primary-light: #5c52e6;
    --color-echo-bright: #ffffff;
    --color-echo-muted: #9aa0b8;
    --color-echo-dim: #5c627a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --radius-base: 16px;
    --radius-large: 22px;
    --transition-speed: 0.15s ease;
}

/* 基础重置与排版 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-echo-muted);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 强制文本换行规范 */
.echo-lead,
.echo-base,
.echo-dim,
.apex-giant,
.apex-large,
.apex-medium,
.apex-small {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 强制Flexbox必备规则 (应用于所有flex容器) */
.prow-zone,
.helm-mesh,
.radar-cluster,
.portal-zone,
.portal-husk,
.vault-zone,
.vault-husk,
.node-shard,
.shard-prow,
.cloak-zone,
.cloak-husk,
.packet-data,
.tunnel-zone,
.tunnel-husk,
.wake-zone,
.anchor-cluster,
.ping-cluster {
    display: flex;
    flex-wrap: wrap;
}

/* 强制Flex子项必备规则 */
.prow-zone > *,
.helm-mesh > *,
.radar-cluster > *,
.portal-zone > *,
.portal-husk > *,
.vault-zone > *,
.vault-husk > *,
.node-shard > *,
.shard-prow > *,
.cloak-zone > *,
.cloak-husk > *,
.packet-data > *,
.tunnel-zone > *,
.tunnel-husk > *,
.wake-zone > *,
.anchor-cluster > *,
.ping-cluster > * {
    min-width: 0;
}

/* 标题基础样式 */
.apex-giant {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-echo-bright);
    margin: 0 0 24px;
    letter-spacing: -0.03em;
    white-space: normal;
    width: 100%;
}

.apex-large {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-echo-bright);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    white-space: normal;
    width: 100%;
}

.apex-medium {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-echo-bright);
    margin: 0 0 16px;
    white-space: normal;
    width: 100%;
}

.apex-small {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-echo-bright);
    margin: 0 0 8px;
    white-space: normal;
    width: 100%;
}

/* 文本基础样式 */
.echo-lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-echo-muted);
    margin: 0 0 32px;
    max-width: 760px;
    width: 100%;
    word-break: keep-all;
}

.echo-base {
    font-size: 1rem;
    color: var(--color-echo-muted);
    margin: 0 0 16px;
    width: 100%;
    word-break: keep-all;
}

.echo-dim {
    font-size: 0.875rem;
    color: var(--color-echo-dim);
    width: 100%;
}


/* === 导航栏区域 (严格复用) === */
.prow-zone {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    justify-content: center;
    padding: 16px 24px;
}

.helm-mesh {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.crest-husk img {
    height: 28px;
    display: block;
}

.radar-cluster {
    gap: 32px;
    align-items: center;
}

.radar-wire {
    color: var(--color-echo-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.radar-wire:hover,
.radar-wire:focus {
    color: var(--color-echo-bright);
    outline: none;
}

.radar-wire.active {
    color: var(--color-echo-bright);
    position: relative;
}

.radar-wire.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 -2px 10px var(--color-primary-glow);
}


/* === 1. Hero区: 全球枢纽 (article.intro) === */
.portal-zone {
    padding: calc(120px + 60px) 24px 80px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 核心背景特效 - 抽象全球网络 */
.portal-zone::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(5,5,8,0) 70%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.portal-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--color-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.portal-husk {
    max-width: 900px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* 徽章设计 */
.glyph-seal {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(63, 54, 191, 0.15);
    border: 1px solid rgba(92, 82, 230, 0.3);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(63, 54, 191, 0.2);
}

.glyph-seal svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* === 2. 核心拓扑地图 (article.detail) === */
.vault-zone {
    padding: 80px 24px;
    justify-content: center;
    background: linear-gradient(to bottom, transparent, var(--color-bg-shell), transparent);
}

.vault-husk {
    max-width: 1200px;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.vault-husk > .echo-base {
    text-align: center;
    max-width: 600px;
    margin-bottom: 48px;
}

/* 强制Grid布局要求 */
.shard-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.node-shard {
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.node-shard:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* 卡片顶部流光效果 */
.node-shard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.node-shard:hover::before {
    opacity: 1;
}

.shard-prow {
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
    gap: 16px;
}

.glyph-core {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}

.glyph-core svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ping-cluster {
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ping-cluster .echo-dim {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
}

.ping-cluster .echo-dim::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}


/* === 3. 企业级吞吐架构 (section.proof) === */
.cloak-zone {
    padding: 100px 24px;
    justify-content: center;
    background: var(--color-bg-deep);
}

.cloak-husk {
    max-width: 1200px;
    width: 100%;
    gap: 64px;
    align-items: center;
}

/* 左右分栏结构 */
.cloak-husk > div {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.packet-data {
    background: var(--color-bg-shell);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 40px;
    position: relative;
    overflow: hidden;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.packet-data::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

.data-highlight {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-echo-bright);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.data-highlight span {
    font-size: 1.25rem;
    color: var(--color-primary-light);
    font-weight: 600;
}

/* CSS绘制的抽象服务器机架 */
.server-rack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}

.server-unit {
    height: 16px;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.server-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5c52e6;
}
.server-light:nth-child(2) { background: #10b981; }
.server-light.blink {
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; box-shadow: none; }
    100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
}


/* === 4. 智能调度引擎 (aside.capability) === */
.tunnel-zone {
    padding: 80px 24px;
    justify-content: center;
    background: var(--color-bg-shell);
    border-top: 1px solid var(--color-border);
}

.tunnel-husk {
    max-width: 1000px;
    width: 100%;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 48px;
    align-items: center;
    gap: 48px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.tunnel-husk > div {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 调度算法抽象图形 */
.algo-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-bg-deep);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.algo-visual svg {
    width: 80%;
    height: 80%;
}

.path-line {
    stroke: var(--color-border);
    stroke-width: 2;
    fill: none;
    transition: stroke var(--transition-speed);
}

.path-line.active {
    stroke: var(--color-primary-light);
    filter: drop-shadow(0 0 4px var(--color-primary-glow));
}


/* === 页脚区域 (div.contentinfo) === */
.wake-zone {
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
    padding: 64px 24px;
    justify-content: center;
}

.anchor-cluster {
    max-width: 1200px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.anchor-cluster .apex-medium {
    margin: 0;
    text-align: center;
    color: var(--color-echo-dim);
    font-size: 1.25rem;
}

.anchor-wire {
    color: var(--color-echo-dim);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-speed);
}

.anchor-wire:hover,
.anchor-wire:focus {
    color: var(--color-echo-muted);
    outline: none;
}


/* 响应式断点 */
@media (max-width: 768px) {
    .prow-zone {
        padding: 16px;
    }
    
    .radar-cluster {
        display: none; /* 移动端简单隐藏导航菜单，实际项目中需配合JS实现汉堡菜单 */
    }

    .portal-zone {
        padding: 100px 20px 60px;
    }

    .vault-zone,
    .cloak-zone,
    .tunnel-zone {
        padding: 60px 20px;
    }

    .cloak-husk,
    .tunnel-husk {
        flex-direction: column;
        gap: 32px;
        padding: 32px 20px;
    }

    .data-highlight {
        font-size: 2.5rem;
    }
}

.helm-prow-zone{
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: rgba(5, 5, 8, 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 16px 0;
        }

.helm-prow-zone .helm-helm-mesh{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 32px;
            gap: 32px;
        }

.helm-prow-zone .helm-crest-husk{
            display: flex;
            align-items: center;
            min-width: 120px;
        }

.helm-prow-zone .helm-crest-husk img{
            height: 32px;
            width: auto;
            object-fit: contain;
        }

.helm-prow-zone .helm-radar-cluster{
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            align-items: center;
        }

.helm-prow-zone .helm-radar-wire{
            color: #9aa0b8;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.15s ease;
            padding: 8px 0;
            position: relative;
        }

.helm-prow-zone .helm-radar-wire:hover, .helm-prow-zone .helm-radar-wire.active{
            color: #ffffff;
        }

.helm-prow-zone .helm-radar-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #5c52e6;
            border-radius: 2px;
        }

@media (max-width: 768px){.helm-prow-zone .helm-helm-mesh{
                flex-direction: column;
                gap: 16px;
            }

.helm-prow-zone .helm-radar-cluster{
                justify-content: center;
                gap: 16px;
            }}

.helm-prow-zone {
    background: rgb(5, 5, 8);
    background-image: none;
}

.anchor-wake-zone,
.anchor-wake-zone *,
.anchor-wake-zone *::before,
.anchor-wake-zone *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.anchor-wake-zone .anchor-echo-core{
            font-size: 1rem;
            color: #9aa0b8;
            margin: 0 0 16px;
            line-height: 1.7;
        }

.anchor-wake-zone .anchor-tunnel-core{
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 32px;
        }

.anchor-wake-zone{
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: #050508;
            padding: 64px 0 32px;
        }

.anchor-wake-zone .anchor-anchor-crypt{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: 32px;
        }

.anchor-wake-zone .anchor-crypt-col{
            flex: 1 1 200px;
            min-width: 0;
        }

.anchor-wake-zone .anchor-crypt-brand{
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
        }

.anchor-wake-zone .anchor-crypt-apex{
            font-size: 1rem;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 16px;
        }

.anchor-wake-zone .anchor-crypt-wire{
            display: block;
            color: #5c627a;
            text-decoration: none;
            margin-bottom: 8px;
            transition: all 0.15s ease;
            font-size: 0.9rem;
        }

.anchor-wake-zone .anchor-crypt-wire:hover{
            color: #5c52e6;
        }

.anchor-wake-zone .anchor-crypt-bottom{
            margin-top: 64px;
            padding-top: 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            text-align: center;
            color: #5c627a;
            font-size: 0.85rem;
        }

@media (max-width: 768px){.anchor-wake-zone .anchor-anchor-crypt{
                flex-direction: column;
            }}