/* ==========================================================================
   CSS Variables (Inherited from Homepage Visual Family)
   ========================================================================== */
:root {
    --brand-primary: #8264f2;
    --brand-primary-hover: #6a4bd8;
    --brand-secondary: #00d2ff;
    --bg-page: #f8f9fe;
    --bg-surface: #ffffff;
    --text-main: #1a1528;
    --text-muted: #6b6280;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-soft: 0 10px 30px rgba(130, 100, 242, 0.05);
    --shadow-hover: 0 20px 40px rgba(130, 100, 242, 0.12);
    --transition-base: all 0.25s ease;
}

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

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

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

/* Base Flex Rules */
.flex-mesh {
    display: flex;
    flex-wrap: wrap;
}
.flex-mesh > * {
    min-width: 0;
}

/* Typography Base */
.yarn-band {
    word-break: keep-all;
    overflow-wrap: break-word;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.flare-peak {
    white-space: normal;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Header (Strictly Copied + Active State)
   ========================================================================== */
.apex-zone {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(130, 100, 242, 0.1);
}

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

.crest {
    display: flex;
    align-items: center;
}

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

.sync-array {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}
.sync-array > * { min-width: 0; }

.xwave-bond {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.xwave-bond:hover {
    color: var(--brand-primary);
    background: rgba(130, 100, 242, 0.05);
}

.xwave-bond.active {
    color: var(--brand-primary);
    background: rgba(130, 100, 242, 0.1);
}

@media (max-width: 768px) {
    .sync-array {
        gap: 12px;
        justify-content: center;
        width: 100%;
        margin-top: 16px;
    }
    .sync-mesh {
        justify-content: center;
    }
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.core-realm {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
}
.core-realm > * { min-width: 0; }

/* 1. Article: Hero Text (接入全球 IRC 网络) */
.shout-zone {
    width: 100%;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, var(--bg-page) 0%, #ece9ff 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shout-shell {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.shout-shell > * { min-width: 0; }

.shout-zone .flare-peak {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
}

/* Geometric decorations for Hero */
.pulse-glyph {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130,100,242,0.15) 0%, rgba(130,100,242,0) 70%);
    z-index: 1;
}
.pulse-glyph.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.pulse-glyph.shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, rgba(0,210,255,0) 70%); }

/* 2. Aside: Tutorial Steps (添加与管理服务器) */
.steps-zone {
    width: 100%;
    padding: 80px 24px;
    background: var(--bg-surface);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.steps-shell {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}
.steps-shell > * { min-width: 0; }

.steps-head {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}
.steps-head .flare-peak {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.steps-cluster {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    position: relative;
}
.steps-cluster > * { min-width: 0; }

/* Timeline connecting line */
.steps-cluster::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 48px;
    width: 2px;
    background: rgba(130, 100, 242, 0.15);
    z-index: 0;
}

.packet-blip {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.blip-mark {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(130, 100, 242, 0.4);
    flex-shrink: 0;
    margin-left: 17px; /* Align with line */
}

.blip-yarn {
    flex: 1;
    min-width: 280px;
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(130, 100, 242, 0.08);
    transition: var(--transition-base);
}
.blip-yarn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(130, 100, 242, 0.2);
}

.blip-yarn .flare-peak {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Highlight Box */
.emit-band {
    margin-top: 20px;
    padding: 16px;
    background: rgba(130, 100, 242, 0.08);
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.emit-band > * { min-width: 0; }

.emit-band svg {
    width: 24px;
    height: 24px;
    fill: var(--brand-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .steps-cluster::before { display: none; }
    .blip-mark { margin-left: 0; width: 48px; height: 48px; font-size: 1.2rem; }
    .packet-blip { flex-direction: column; gap: 16px; }
    .blip-yarn { padding: 24px; }
}

/* 3. Div: Info Blocks (热门技术网络推荐) */
.detail-zone {
    width: 100%;
    padding: 100px 24px;
    background: var(--bg-page);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-shell {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 48px;
}
.detail-shell > * { min-width: 0; }

.detail-head {
    text-align: center;
}
.detail-head .flare-peak {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.chime-cluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
}

.chime-packet {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(130, 100, 242, 0.05);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-base);
}
.chime-packet > * { min-width: 0; }

.chime-packet:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.chime-glyph {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(130, 100, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chime-glyph svg {
    width: 28px;
    height: 28px;
    fill: var(--brand-primary);
}

.chime-packet .flare-peak {
    font-size: 1.5rem;
}

.chime-packet .spark-emit {
    margin-top: auto;
    padding: 10px 24px;
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}
.chime-packet .spark-emit:hover {
    background: var(--brand-primary);
    color: var(--bg-surface);
}

/* 4. Aside: FAQ (连接常见问题排查) */
.faq-zone {
    width: 100%;
    padding: 80px 24px 120px;
    background: var(--bg-surface);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-shell {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 40px;
}
.faq-shell > * { min-width: 0; }

.faq-head {
    text-align: center;
}
.faq-head .flare-peak {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.echo-cluster {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.echo-cluster > * { min-width: 0; }

.echo-packet {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid rgba(130, 100, 242, 0.1);
    overflow: hidden;
    transition: var(--transition-base);
}

.echo-packet:hover {
    border-color: rgba(130, 100, 242, 0.3);
}

.echo-packet details {
    width: 100%;
}

.echo-packet summary {
    padding: 24px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.echo-packet summary > * { min-width: 0; }

.echo-packet summary::-webkit-details-marker {
    display: none;
}

.echo-packet summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

.echo-packet details[open] summary::after {
    transform: rotate(45deg);
}

.echo-yarn {
    padding: 0 24px 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.root-base {
    background: #110d1a;
    color: #ffffff;
    padding: 60px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.root-mesh {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.root-mesh > * { min-width: 0; }

.root-crest {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.root-array {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.root-array > * { min-width: 0; }

.root-bond {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.root-bond:hover {
    color: #ffffff;
}

.root-yarn {
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .root-mesh { flex-direction: column; text-align: center; }
    .root-array { justify-content: center; }
}

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

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

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

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

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

.sync-apex-zone a.sync-xwave-bond {
    --aisite-shell-nav-padding: 8px 16px;
    --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;
}

.sync-apex-zone a.sync-xwave-bond,
.sync-apex-zone a.sync-xwave-bond:hover,
.sync-apex-zone a.sync-xwave-bond:focus,
.sync-apex-zone a.sync-xwave-bond:active,
.sync-apex-zone a.sync-xwave-bond.active,
.sync-apex-zone a.sync-xwave-bond[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);
}

.sync-apex-zone{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(130, 100, 242, 0.1);
        }

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

.sync-apex-zone .sync-crest{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            min-width: 0;
        }

.sync-apex-zone .sync-crest img{
            height: 36px;
            width: auto;
            display: block;
        }

.sync-apex-zone .sync-sync-array{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

.sync-apex-zone .sync-xwave-bond{
            padding: 8px 16px;
            font-size: 0.95rem;
            font-weight: 500;
            color: #6b6280;
            border-radius: 8px;
            transition: all 0.25s ease;
            word-break: break-word;
            overflow-wrap: break-word;
        }

.sync-apex-zone .sync-xwave-bond:hover, .sync-apex-zone .sync-xwave-bond.active{
            color: #8264f2;
            background: rgba(130, 100, 242, 0.08);
        }

@media (max-width: 768px){.sync-apex-zone .sync-sync-array{
                display: none; 
            }}

.sync-apex-zone {
    background: rgb(255, 255, 255);
    background-image: none;
}

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

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

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

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

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

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

.base-base-root{
            background: #110d1a;
            color: rgba(255, 255, 255, 0.7);
            padding: 80px 0 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

.base-base-root .base-base-mesh{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 40px;
            min-width: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 60px;
            margin-bottom: 40px;
        }

.base-base-root .base-anchor-cluster{
            flex: 1;
            min-width: 240px;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            min-width: 0;
        }

.base-base-root .base-anchor-peak{
            font-size: 1.5rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 24px;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: break-word;
        }

.base-base-root .base-anchor-yarn{
            line-height: 1.8;
            margin-bottom: 24px;
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all;
        }

.base-base-root .base-anchor-array{
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            gap: 16px;
            min-width: 0;
        }

.base-base-root .base-anchor-bond{
            color: inherit;
            transition: all 0.25s ease;
            word-break: break-word;
            overflow-wrap: break-word;
            align-self: flex-start;
        }

.base-base-root .base-anchor-bond:hover{
            color: #ffffff;
            padding-left: 4px;
        }

.base-base-root .base-echo-zone{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            text-align: center;
            font-size: 0.9rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            min-width: 0;
        }

.base-base-root .base-echo-yarn{
            word-break: break-word;
            overflow-wrap: break-word;
        }

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