/* 
 * 核心变量定义 (继承首页视觉家族)
 */
:root {
    --brand-primary: #de6ebb;
    --brand-hover: #c252a1;
    --brand-light: rgba(222, 110, 187, 0.1);
    
    --text-main: #1e1e24;
    --text-muted: #5c5c66;
    --text-inverse: #ffffff;
    
    --bg-page: #ffffff;
    --bg-surface: #f8f9fc;
    --bg-dark: #0f0f13;
    --bg-gradient: linear-gradient(135deg, #0f0f13 0%, #2a1b26 100%);
    
    --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);
    
    --transition: all 0.25s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 
 * 全局重置与基础设定
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 
 * 【强制复用】导航栏样式 
 */
.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);
}

.apex-fold {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    min-width: 0;
}

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

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

.nexus-xlist {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    min-width: 0;
}

.pathx-wire {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.pathx-wire.active {
    color: var(--brand-primary);
    font-weight: 600;
}

/* 
 * 主容器
 */
.fold-matrix {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 
 * 模块一：突破边界的扩展架构 (Hero - Cinematic Strip Variant)
 */
.xflare-vortex {
    background: var(--bg-gradient);
    padding: 80px 24px;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.xflare-cluster {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.xflare-fold {
    flex: 1 1 500px;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.xflare-crest {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    white-space: normal;
}

.xflare-vox {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.pulse-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

.pulse-trigx {
    background-color: var(--brand-primary);
    color: var(--text-inverse);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(222, 110, 187, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-trigx:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pulse-trigx.alt {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-trigx.alt:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Data UI - Code Window */
.optic-matrix {
    flex: 1 1 400px;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.apex-band {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glyph-drop {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.glyph-drop:nth-child(1) { background: #ff5f56; }
.glyph-drop:nth-child(2) { background: #ffbd2e; }
.glyph-drop:nth-child(3) { background: #27c93f; }

.code-fold {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #a9b7c6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-vox {
    display: block;
    word-break: break-all;
}

.code-vox .highlight {
    color: var(--brand-primary);
}
.code-vox .string {
    color: #6a8759;
}

/* 
 * 通用区块内边距
 */
.xbound-matrix {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.crest-fold {
    text-align: center;
    margin-bottom: 64px;
    word-break: break-word;
}

.crest-primary {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.vox-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* 
 * 模块二：精选实用插件库 (Library List)
 */
.xnode-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.xnode-packet {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

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

.glyph-fold {
    width: 56px;
    height: 56px;
    background: var(--brand-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--brand-primary);
}

.glyph-fold svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.xnode-crest {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.xnode-vox {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    word-break: keep-all;
}

.wire-trigx {
    color: var(--brand-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wire-trigx:hover {
    color: var(--brand-hover);
    gap: 12px;
}

/* 
 * 模块三：界面美化与主题配置 (Customization)
 */
.gliff-matrix {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.gliff-fold {
    flex: 1 1 400px;
    min-width: 0;
}

.gliff-crest {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.gliff-vox {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.optic-band {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.optic-drop {
    background: var(--bg-page);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid transparent;
}

.optic-drop:nth-child(1) { border-left-color: var(--brand-primary); }
.optic-drop:nth-child(2) { border-left-color: #4a90e2; }
.optic-drop:nth-child(3) { border-left-color: #50e3c2; }

.optic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
}

.optic-line {
    height: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    width: 60%;
}

.optic-line.short {
    width: 40%;
    margin-top: 8px;
}

/* 
 * 模块四：脚本开发入门 (Developer Guide)
 */
.pulsar-matrix {
    margin-top: 40px;
}

.pulsar-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.pulsar-packet {
    flex: 1 1 300px;
    min-width: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 32px;
    border-top: 3px solid var(--brand-primary);
}

.pulsar-crest {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 12px;
    background: var(--brand-light);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
}

.pulsar-vox {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 
 * 页脚 
 */
.xend-matrix {
    background: var(--bg-page);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 64px 24px 32px;
    margin-top: 60px;
}

.xend-cluster {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    min-width: 0;
}

.xend-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.xend-vox {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.9rem;
}

.xend-nexus {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    min-width: 0;
}

.xend-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xend-crest {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.xend-wire {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.resid-band {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gliff-matrix {
        padding: 40px 24px;
    }
    .xflare-crest {
        font-size: 2.2rem;
    }
    .apex-fold {
        justify-content: center;
        gap: 16px;
    }
}

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