/* 基础变量与设计契约 */
:root {
    --color-primary: #db7970;
    --color-primary-dark: #c2655d;
    --color-primary-light: #fdf2f0;
    --color-bg-base: #fcfbfa;
    --color-bg-alt: #f3f0ec;
    --color-surface: #ffffff;
    --color-text-main: #2d3748;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(45, 55, 72, 0.05), 0 2px 4px -1px rgba(45, 55, 72, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(45, 55, 72, 0.08), 0 4px 6px -2px rgba(45, 55, 72, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(45, 55, 72, 0.1), 0 0 0 1px rgba(219, 121, 112, 0.05);
    --transition: 0.35s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --width-max: 1240px;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 强制 Flex/Text 规则 */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}
.flex-item {
    min-width: 0;
}
.text-wrap {
    word-break: break-word;
    overflow-wrap: break-word;
}
.lore-cn {
    word-break: keep-all;
}

/* --- 导航栏 (复用首页风格) --- */
.peak {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252, 251, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nexus {
    max-width: var(--width-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.sigil {
    display: flex;
    align-items: center;
    min-width: 0;
}

.sigil img {
    height: 32px;
    width: auto;
}

.thread {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
}

.bond {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    min-width: 0;
}

.bond:hover {
    color: var(--color-primary);
}

.bond.active {
    color: var(--color-text-main);
    font-weight: 600;
}

.bond.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .thread {
        display: none; /* 移动端简易处理，实际项目中应有汉堡菜单 */
    }
}

/* --- 主内容区 --- */
.orbit {
    display: block;
    width: 100%;
}

/* 1. 获取 XChat 客户端 (Hero) */
.flare {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-bg-base) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.flare::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(219,121,112,0.08) 0%, rgba(252,251,250,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hive {
    max-width: var(--width-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hive-lore {
    flex: 1 1 400px;
    min-width: 0;
}

.apex-mega {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    white-space: normal;
}

.lore-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* 数据面板 (Data UI) */
.pod-data {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.pod-chip {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pod-info {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.spark-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(219, 121, 112, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.spark-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(219, 121, 112, 0.35);
}

.hive-lens {
    flex: 1 1 500px;
    min-width: 0;
    position: relative;
}

.lens-mesh {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

/* 2. 全平台支持矩阵 (<div>) */
.pulse {
    padding: 6rem 2rem;
    background-color: var(--color-surface);
}

.pulse-core {
    max-width: var(--width-max);
    margin: 0 auto;
}

.apex-mesh {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text-main);
}

.mesh-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.packet-platform {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.packet-platform:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(219, 121, 112, 0.3);
}

.packet-peak {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.rune-box {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-main);
}

.rune-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.packet-apex {
    font-size: 1.25rem;
    font-weight: 600;
}

.packet-data {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 0.875rem;
    min-width: 0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-chip {
    color: var(--color-text-muted);
}

.data-value {
    font-family: monospace;
    color: var(--color-text-main);
    background: rgba(0,0,0,0.03);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.spark-outline {
    display: block;
    text-align: center;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-weight: 500;
    background: var(--color-surface);
    transition: all var(--transition);
}

.spark-outline:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-light);
}

/* 3. 近期版本迭代 (<section>) */
.beacon {
    padding: 6rem 2rem;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border);
}

.beacon-core {
    max-width: 800px;
    margin: 0 auto;
}

.vein-timeline {
    position: relative;
    padding-left: 2rem;
}

.vein-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: var(--color-border);
}

.blip-node {
    position: relative;
    margin-bottom: 3rem;
    min-width: 0;
}

.blip-node:last-child {
    margin-bottom: 0;
}

.blip-node::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-bg-base);
}

.blip-peak {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.blip-version {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.blip-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.blip-cloak {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.blip-cloak ul {
    list-style: none;
    padding-left: 0;
}

.blip-cloak li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.blip-cloak li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* 4. 运行环境要求 (<section>) */
.cloak {
    padding: 6rem 2rem;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.cloak-core {
    max-width: var(--width-max);
    margin: 0 auto;
}

.cloak-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cloak-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-bottom: 1px solid var(--color-border);
}

.cloak-row:last-child {
    border-bottom: none;
}

.cloak-head {
    background: var(--color-bg-base);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cloak-cell {
    padding: 1.25rem 1.5rem;
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 768px) {
    .cloak-row {
        grid-template-columns: 1fr;
        border-bottom: 4px solid var(--color-bg-alt);
    }
    .cloak-head {
        display: none;
    }
    .cloak-cell {
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .cloak-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        margin-right: 1rem;
    }
}

/* --- 页脚 --- */
.sole {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 4rem 2rem 2rem;
}

.anchor {
    max-width: var(--width-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    min-width: 0;
}

.anchor-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.root {
    max-width: var(--width-max);
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.875rem;
}

.nexus-peak{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(252, 251, 250, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        }

.nexus-peak .nexus-nexus{
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
        }

.nexus-peak .nexus-sigil{
            min-width: 0;
            display: flex;
            align-items: center;
        }

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

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

.nexus-peak .nexus-bond{
            text-decoration: none;
            color: #64748b;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.35s ease;
            position: relative;
        }

.nexus-peak .nexus-bond:hover, .nexus-peak .nexus-bond.active{
            color: #db7970;
        }

.nexus-peak .nexus-bond.active::after{
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #db7970;
            border-radius: 2px;
        }

@media (max-width: 768px){.nexus-peak .nexus-thread{
                display: none; 
                width: 100%;
                flex-direction: column;
                gap: 1rem;
                margin-top: 1rem;
            }

.nexus-peak:hover .nexus-thread{
                display: flex;
            }}

.nexus-peak {
    background: rgb(252, 251, 250);
    background-image: none;
}

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

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

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

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

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

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

.root-root .root-apex{
            font-weight: 700;
            color: #2d3748;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: break-word;
        }

.root-root .root-lore-sm{
            font-size: 0.95rem;
            color: #64748b;
        }

.root-root{
            background-color: #1a202c;
            color: #a0aec0;
            padding: 4rem 2rem;
            text-align: center;
        }

.root-root .root-root-mesh{
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
        }

.root-root .root-apex{
            color: #fff;
            font-size: 1.5rem;
            letter-spacing: 2px;
        }

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

.root-root .root-root-bond{
            color: #a0aec0;
            text-decoration: none;
            transition: all 0.35s ease;
        }

.root-root .root-root-bond:hover{
            color: #fff;
        }