/* ==========================================================================
   CSS Variables & Base (Inherited from Flagship Visual Family)
   ========================================================================== */
:root {
    --brand-primary: #f0606a;
    --brand-primary-light: #ff8b94;
    --brand-primary-dark: #d64550;
    --bg-base: #ffffff;
    --bg-surface: #fdfbfb;
    --bg-alt: #fff0f1;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --radius-sm: 9px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 32px rgba(240, 96, 106, 0.12);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.04);
    --transition: 0.15s ease;
    --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --content-max-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--bg-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Global Constraints (Flex/Grid/Text)
   ========================================================================== */
.sync, .omni, .index, .launch, .bind, .ribbon {
    display: flex;
    flex-wrap: wrap;
}

.sync > *, .omni > *, .index > *, .launch > *, .bind > *, .ribbon > * {
    min-width: 0;
}

.topic {
    white-space: normal;
    font-weight: 800;
    color: var(--text-main);
}

.script {
    word-break: keep-all; /* Preserve Chinese phrases */
}

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

/* ==========================================================================
   Header & Navigation (Mandatory Structure & Visuals)
   ========================================================================== */
.apex {
    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: var(--border-subtle);
}

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

.orb img {
    height: 32px;
    display: block;
}

.index {
    gap: 2rem;
    align-items: center;
}

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

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

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

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

/* ==========================================================================
   Main Shell & Layout Components
   ========================================================================== */
.bind {
    display: block;
    width: 100%;
}

/* Hero Download Section (<section>) */
.launch {
    width: 100%;
    min-height: 55vh;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-alt) 100%);
    padding: 6rem 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.launch::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(240,96,106,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.portal {
    max-width: var(--content-max-width);
    width: 100%;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.portal > * {
    min-width: 0;
}

.portal-script {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-script .topic {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.portal-script .script {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 90%;
}

.portal-visual {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* CSS Abstract Visual for Hero (No Images) */
.pixel-abstract {
    width: 320px;
    height: 320px;
    position: relative;
}
.pixel-abstract::before, .pixel-abstract::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.pixel-abstract::before {
    inset: 0;
    background: conic-gradient(from 180deg at 50% 50%, #f0606a 0deg, #ff8b94 120deg, #ffe8ea 240deg, #f0606a 360deg);
    box-shadow: 0 20px 40px rgba(240, 96, 106, 0.2);
    animation: rotate 20s linear infinite;
}
.pixel-abstract::after {
    inset: 15%;
    background: var(--bg-base);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Actions */
.ribbon {
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    background-color: var(--brand-primary);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(240, 96, 106, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 96, 106, 0.4);
    background-color: var(--brand-primary-dark);
}

.pulse .glyph {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.spark {
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
}

.spark:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* Platform Matrix (<div>) */
.sandbox {
    max-width: var(--content-max-width);
    margin: 5rem auto;
    padding: 0 2rem;
}

.sandbox > .topic {
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.tile {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tile .glyph {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    color: var(--brand-primary);
}

.tile .topic {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tile .script {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tile .pulse {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    background-color: var(--bg-surface);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary-light);
    box-shadow: none;
}

.tile .pulse:hover {
    background-color: var(--brand-primary);
    color: var(--bg-base);
}

/* Features Highlights (<div>) */
.frame {
    background-color: var(--bg-base);
    padding: 6rem 2rem;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.frame-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.frame-inner > .topic {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.frame-inner > .script.lead {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 600px;
}

.sync.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.tile {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tile .glyph {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(240, 96, 106, 0.2);
}

.tile .bind {
    flex-direction: column;
    gap: 0.5rem;
}

.tile .topic {
    font-size: 1.25rem;
}

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

/* FAQ (<aside>) */
.trace-faq {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.trace-faq > .topic {
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
}

.mark {
    border-bottom: var(--border-subtle);
    padding: 1.5rem 0;
}

.mark:last-child {
    border-bottom: none;
}

.mark .topic {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mark .topic::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--brand-primary);
    border-radius: 50%;
}

.mark .script {
    color: var(--text-muted);
    padding-left: 1.25rem;
}

/* Footer (<footer class="tail">) */
.tail {
    background-color: var(--bg-surface);
    border-top: var(--border-subtle);
    padding: 4rem 2rem 2rem;
}

.tail-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.tail-inner > * {
    min-width: 0;
}

.status {
    flex: 1 1 300px;
}

.status .topic {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.status .script {
    color: var(--text-light);
    font-size: 0.9rem;
}

.index.tail-links {
    flex: 2 1 400px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4rem;
}

.bind.col {
    flex-direction: column;
    gap: 1rem;
}

.bind.col .topic {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.bind.col .node {
    padding: 0;
    font-size: 0.9rem;
}

.ribbon.copyright {
    max-width: var(--content-max-width);
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: var(--border-subtle);
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .omni {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .index {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .node {
        font-size: 0.85rem;
    }
    
    .portal {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .portal-script {
        align-items: center;
    }
    
    .ribbon {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .pulse {
        width: 100%;
    }
    
    .pixel-abstract {
        width: 240px;
        height: 240px;
    }
    
    .sync.matrix, .sync.features {
        grid-template-columns: 1fr;
    }
    
    .index.tail-links {
        justify-content: flex-start;
        gap: 2rem;
    }
}

.omni-apex .omni-node{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.omni-apex{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 100;
            border-bottom: 1px solid rgba(240, 96, 106, 0.1);
        }

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

.omni-apex .omni-omni > *{
            min-width: 0;
        }

.omni-apex .omni-orb img{
            height: 36px;
            width: auto;
            display: block;
        }

.omni-apex .omni-index{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2rem;
        }

.omni-apex .omni-index > *{
            min-width: 0;
        }

.omni-apex .omni-node{
            text-decoration: none;
            color: #4b5563;
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.15s ease;
            position: relative;
        }

.omni-apex .omni-node:hover, .omni-apex .omni-node:focus{
            color: #f0606a;
        }

.omni-apex .omni-node.active{
            color: #f0606a;
        }

.omni-apex .omni-node.active::after{
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #f0606a;
            border-radius: 2px;
        }

@media (max-width: 768px){.omni-apex .omni-omni{
                padding: 1rem;
            }

.omni-apex .omni-index{
                display: none; 
            }}

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

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

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

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

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

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

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

.trace-tail{
            background-color: #f3f4f6;
            padding: 4rem 2rem 2rem;
            border-top: 1px solid #e5e7eb;
        }

.trace-tail .trace-trace{
            max-width: 1320px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            margin-bottom: 3rem;
        }

.trace-tail .trace-trace > *{
            min-width: 0;
            flex: 1 1 200px;
        }

.trace-tail .trace-tail-brand{
            font-size: 1.5rem;
            font-weight: 800;
            color: #1f2937;
            margin-bottom: 1rem;
            display: block;
        }

.trace-tail .trace-tail-script{
            color: #4b5563;
            font-size: 0.9rem;
        }

.trace-tail .trace-tail-topic{
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }

.trace-tail .trace-tail-omni{
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

.trace-tail .trace-tail-node{
            color: #4b5563;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.15s ease;
        }

.trace-tail .trace-tail-node:hover{
            color: #f0606a;
        }

.trace-tail .trace-status{
            max-width: 1320px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid #e5e7eb;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            color: #9ca3af;
            font-size: 0.85rem;
        }

.trace-tail .trace-status > *{
            min-width: 0;
        }

@media (max-width: 768px){.trace-tail .trace-trace > *{
                flex: 1 1 100%;
            }}