/* ==========================================================================
           xChat - Core Design Variables (Portal Distribution Family)
           ========================================================================== */
        :root {
            --brand-primary: #de6ebb;
            --brand-subtle: rgba(222, 110, 187, 0.1);
            --text-main: #1e1e24;
            --text-muted: #5c5c66;
            --bg-page: #ffffff;
            --bg-surface: #f8f9fc;
            --bg-dark: #0f0f13;
            
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 17px;
            
            --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.04);
            --shadow-hover: 0 12px 32px rgba(222, 110, 187, 0.15);
            
            --space-sm: 16px;
            --space-md: 32px;
            --space-lg: 64px;
            --space-xl: 120px;
            
            --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            
            --transition: all 0.25s ease;
        }

        /* ==========================================================================
           Reset & Base Rules
           ========================================================================== */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-sans);
            color: var(--text-main);
            background-color: var(--bg-page);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Mandatory text wrap rule */
        .vox, 
        .crest, 
        .vox-code {
            word-break: break-word;
            overflow-wrap: break-word;
        }
        
        .vox:lang(zh) {
            word-break: keep-all;
        }

        /* Mandatory Flex Rule */
        .flex-cluster,
        .xflare-band,
        .xlist-matrix {
            display: flex;
            flex-wrap: wrap;
        }

        .flex-cluster > *,
        .xflare-band > *,
        .xlist-matrix > * {
            min-width: 0;
        }

        /* Layout Shell */
        .fold-bound {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ==========================================================================
           Navigation (Strict Copy + Active State)
           ========================================================================== */
        .apex-matrix {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .apex-fold {
            justify-content: space-between;
            align-items: center;
            height: 72px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

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

        .nexus-xlist {
            display: flex;
            gap: 32px;
        }

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

        .pathx-wire:hover,
        .pathx-wire.active {
            color: var(--text-main);
        }

        .pathx-wire.active {
            position: relative;
        }

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

        /* ==========================================================================
           Hero Region (Cinematic Strip Variant)
           ========================================================================== */
        .xflare-vortex {
            background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
            padding: var(--space-xl) 0 var(--space-lg);
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            position: relative;
            overflow: hidden;
        }

        /* Cinematic Background Element */
        .vortex-optic {
            position: absolute;
            top: -100px;
            right: -5%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--brand-subtle) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            z-index: 0;
            pointer-events: none;
        }

        .xflare-band {
            position: relative;
            z-index: 1;
            align-items: center;
            gap: 48px;
        }

        .band-vox {
            flex: 1 1 500px;
        }

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

        .vox-lead {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            color: var(--text-muted);
            max-width: 640px;
            line-height: 1.7;
        }

        .band-glyph {
            flex: 1 1 300px;
            display: flex;
            justify-content: flex-end;
        }

        /* Vector Badge */
        .glyph-pip {
            width: 120px;
            height: 120px;
            border-radius: 30px;
            background: var(--bg-page);
            box-shadow: var(--shadow-hover);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--brand-subtle);
            transform: translateY(0);
            transition: var(--transition);
        }

        .xflare-band:hover .glyph-pip {
            transform: translateY(-10px);
        }

        /* ==========================================================================
           Main Content Matrices (Reference Tables)
           ========================================================================== */
        .fold-core {
            display: block;
        }

        .matrix-detail {
            padding: var(--space-lg) 0;
        }

        .matrix-detail.alt-surface {
            background-color: var(--bg-surface);
            border-top: 1px solid rgba(0,0,0,0.02);
            border-bottom: 1px solid rgba(0,0,0,0.02);
        }

        .crest-segment {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .crest-segment svg {
            width: 28px;
            height: 28px;
            color: var(--brand-primary);
        }

        .vox-segment {
            font-size: 1.05rem;
            color: var(--text-muted);
            margin-bottom: 40px;
            max-width: 700px;
        }

        /* Grid System */
        .cluster-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
        }

        /* Cards/Packets */
        .xnode-packet {
            background: var(--bg-page);
            border-radius: var(--radius-md);
            padding: 32px;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: var(--shadow-subtle);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .matrix-detail.alt-surface .xnode-packet {
            border-color: rgba(0,0,0,0.06);
        }

        .xnode-packet:hover {
            box-shadow: var(--shadow-hover);
            border-color: var(--brand-subtle);
            transform: translateY(-4px);
        }

        /* Command Syntax Formatting */
        .vox-code {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--brand-primary);
            background: var(--brand-subtle);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            display: inline-block;
            align-self: flex-start;
        }

        .vox-desc {
            font-size: 1rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* ==========================================================================
           Closing Segment (Shortcuts)
           ========================================================================== */
        .matrix-closing {
            padding: var(--space-xl) 0;
        }

        .xnode-gliff {
            background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a24 100%);
            border-radius: var(--radius-lg);
            padding: 48px;
            color: var(--bg-page);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .crest-inverse {
            color: var(--bg-page);
        }

        .vox-inverse {
            color: rgba(255,255,255,0.7);
        }

        .cluster-band {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 32px;
        }

        .drop-key {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1 1 280px;
            transition: var(--transition);
        }

        .drop-key:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .vox-kbd {
            font-family: var(--font-mono);
            font-size: 0.95rem;
            color: #ffffff;
            background: rgba(0,0,0,0.3);
            padding: 4px 10px;
            border-radius: 4px;
            box-shadow: inset 0 -2px 0 rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
        }

        .vox-zap {
            font-size: 0.95rem;
            color: rgba(255,255,255,0.85);
        }

        /* ==========================================================================
           Footer Region
           ========================================================================== */
        .xbase-anchor {
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            padding: var(--space-lg) 0 var(--space-md);
            background-color: var(--bg-page);
        }

        .resid-cluster {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 24px;
        }

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

        .resid-wire {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .resid-wire:hover {
            color: var(--brand-primary);
        }

        .xend-legal {
            margin-top: 32px;
            font-size: 0.85rem;
            color: #888;
            text-align: center;
        }

        /* ==========================================================================
           Responsive Breakpoints
           ========================================================================== */
        @media (max-width: 768px) {
            .apex-fold {
                padding: 0 16px;
            }
            .nexus-xlist {
                display: none; /* In a real site, a hamburger menu would trigger */
            }
            .xflare-band {
                flex-direction: column;
                align-items: flex-start;
                gap: 32px;
            }
            .band-glyph {
                justify-content: flex-start;
            }
            .cluster-grid {
                grid-template-columns: 1fr;
            }
            .xnode-gliff {
                padding: 32px 24px;
            }
            .drop-key {
                flex: 1 1 100%;
            }
        }

.nexus-apex-matrix .nexus-flex-cluster{
            display: flex;
            flex-wrap: wrap;
        }

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

.nexus-apex-matrix .nexus-apex-fold{
            max-width: 1280px;
            margin: 0 auto;
            padding: 16px 24px;
            justify-content: space-between;
            align-items: center;
        }

.nexus-apex-matrix .nexus-xmark{
            display: flex;
            align-items: center;
            height: 32px;
        }

.nexus-apex-matrix .nexus-xmark img{
            height: 100%;
            object-fit: contain;
        }

.nexus-apex-matrix .nexus-nexus-xlist{
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            align-items: center;
        }

.nexus-apex-matrix .nexus-pathx-wire{
            font-size: 0.95rem;
            font-weight: 500;
            color: #5c5c66;
            padding: 8px 0;
            position: relative;
        }

.nexus-apex-matrix .nexus-pathx-wire:hover{
            color: #de6ebb;
        }

.nexus-apex-matrix .nexus-pathx-wire.active{
            color: #de6ebb;
        }

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

@media (max-width: 768px){.nexus-apex-matrix .nexus-nexus-xlist{
                display: none; 
            }}

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

.xbase-xend-resid {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-main);
}
.xbase-xend-resid,
.xbase-xend-resid *,
.xbase-xend-resid *::before,
.xbase-xend-resid *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.xbase-xend-resid .xbase-flex-drop{
            min-width: 0;
        }

.xbase-xend-resid .xbase-vox-fold{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.xbase-xend-resid{
            background-color: #0f0f13;
            color: #ffffff;
            padding: 80px 24px 40px;
        }

.xbase-xend-resid .xbase-xend-fold{
            max-width: 1280px;
            margin: 0 auto;
        }

.xbase-xend-resid .xbase-xend-cluster{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 40px;
            margin-bottom: 60px;
        }

.xbase-xend-resid .xbase-xend-brand{
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 16px;
        }

.xbase-xend-resid .xbase-xend-vox{
            color: rgba(255, 255, 255, 0.6);
            max-width: 300px;
            font-size: 0.95rem;
        }

.xbase-xend-resid .xbase-xend-band{
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 24px;
            text-align: center;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.85rem;
        }