/* === CSS Variables (Inherited from Visual Contract) === */
        :root {
            --color-primary: #de4d3d;
            --color-primary-hover: #f05a49;
            --color-bg-base: #0a0b0e;
            --color-bg-surface: #12141a;
            --color-bg-elevated: #1a1d24;
            --color-font-main: #ffffff;
            --color-font-muted: #94a0b8;
            --color-border: rgba(255, 255, 255, 0.08);
            --radius-sm: 6px;
            --radius-md: 10px;
            --transition: 0.25s ease;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--color-bg-base);
            color: var(--color-font-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

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

        /* === Global Text Wrap Rules === */
        .smart-font,
        .lex-font,
        .phrase-font,
        .dict-font,
        .root-font {
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all; /* Better for Chinese */
        }

        .smart-head,
        .cloud-head,
        .lex-head,
        .phrase-head,
        .dict-head {
            white-space: normal;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        /* === Header & Navigation (Strictly from Contract) === */
        .spell-crown {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(10, 11, 14, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--color-border);
            z-index: 100;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

        .glide-bar {
            width: 100%;
            max-width: 1200px;
            padding: 0 24px;
            height: 64px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            min-width: 0;
        }

        .spell-mark {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            min-width: 0;
        }

        .spell-mark img {
            height: 28px;
            width: auto;
        }

        .glide-chord {
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            min-width: 0;
        }

        .glide-path {
            font-size: 14px;
            font-weight: 500;
            color: var(--color-font-muted);
            line-height: 64px;
            position: relative;
            min-width: 0;
        }

        .glide-path:hover {
            color: var(--color-font-main);
        }

        .glide-path.active {
            color: var(--color-primary);
        }

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

        /* === Page Shell === */
        .board-shell {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding-top: 64px; /* Offset for fixed header */
        }

        /* === Hero Section (Intro) === */
        .smart-pool {
            width: 100%;
            min-height: 80vh; /* Slightly adjusted from homepage 95vh for inner page rhythm */
            display: flex;
            flex-wrap: wrap;
            padding: 120px 24px 80px;
            background: var(--color-bg-base);
            position: relative;
            align-items: center;
            justify-content: center;
        }

        .smart-pool::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% 30%, rgba(222, 77, 61, 0.08) 0%, transparent 60%);
            pointer-events: none;
        }

        .smart-board {
            max-width: 800px;
            text-align: center;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            min-width: 0;
            z-index: 1;
        }

        .smart-head {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
            color: var(--color-font-main);
            min-width: 0;
            width: 100%;
        }

        .smart-font {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            color: var(--color-font-muted);
            max-width: 640px;
            min-width: 0;
            width: 100%;
            line-height: 1.6;
        }

        .smart-chord {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 16px;
            justify-content: center;
            min-width: 0;
            width: 100%;
        }

        .type-tap {
            padding: 14px 32px;
            font-size: 16px;
            font-weight: 600;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            cursor: pointer;
            transition: all var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

        .type-tap-primary {
            background-color: var(--color-primary);
            color: #fff;
            box-shadow: 0 8px 32px rgba(222, 77, 61, 0.15);
        }

        .type-tap-primary:hover {
            background-color: var(--color-primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(222, 77, 61, 0.25);
        }

        .type-tap-ghost {
            background-color: transparent;
            color: var(--color-font-main);
            border-color: var(--color-border);
        }

        .type-tap-ghost:hover {
            background-color: var(--color-bg-surface);
            border-color: var(--color-font-muted);
        }

        /* === Categories Article (Acquire) === */
        .cloud-zone {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 80px 24px;
            background: var(--color-bg-surface);
            border-top: 1px solid var(--color-border);
        }

        .cloud-board {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 60px;
            min-width: 0;
            align-items: center;
        }

        .cloud-shell {
            flex: 1 1 400px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 32px;
            min-width: 0;
        }

        .cloud-head {
            font-size: clamp(2rem, 3vw, 2.5rem);
            font-weight: 700;
            color: var(--color-font-main);
            min-width: 0;
            width: 100%;
        }

        .lex-chord {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            width: 100%;
        }

        .lex-shell {
            background: var(--color-bg-elevated);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 24px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 16px;
            transition: all var(--transition);
            min-width: 0;
        }

        .lex-shell:hover {
            border-color: var(--color-primary);
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.2);
        }

        .lex-glyph {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-sm);
            background: rgba(255,255,255,0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-primary);
        }

        .lex-glyph svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .lex-head {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--color-font-main);
            min-width: 0;
            width: 100%;
        }

        .lex-font {
            font-size: 0.875rem;
            color: var(--color-font-muted);
            min-width: 0;
            width: 100%;
        }

        .cloud-pic-shell {
            flex: 1 1 500px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            min-width: 0;
            position: relative;
        }

        .cloud-pic-shell::after {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 100%;
            height: 100%;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            z-index: 0;
        }

        .lex-pic {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            box-shadow: 0 24px 48px rgba(0,0,0,0.4);
            border: 1px solid var(--color-border);
            z-index: 1;
            display: block;
        }


        /* === Custom Phrases Section (Detail) === */
        .phrase-zone {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 100px 24px;
            background: var(--color-bg-base);
        }

        .phrase-board {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 48px;
            min-width: 0;
        }

        .phrase-head-shell {
            text-align: center;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            min-width: 0;
            width: 100%;
        }

        .phrase-head {
            font-size: clamp(1.75rem, 2.5vw, 2.25rem);
            font-weight: 700;
            min-width: 0;
            width: 100%;
        }

        .phrase-font-board {
            font-size: 1.125rem;
            color: var(--color-font-muted);
            max-width: 600px;
            min-width: 0;
            width: 100%;
        }

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

        .phrase-shell {
            background: var(--color-bg-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 40px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
            transition: transform var(--transition);
        }

        .phrase-shell:hover {
            transform: translateY(-5px);
        }

        .phrase-glyph {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(222,77,61,0.2) 0%, rgba(222,77,61,0.05) 100%);
            border: 1px solid rgba(222,77,61,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-primary);
            margin-bottom: 8px;
        }

        .phrase-glyph svg {
            width: 32px;
            height: 32px;
            fill: currentColor;
        }
        
        .phrase-shell-head {
            font-size: 1.5rem;
            font-weight: 600;
            min-width: 0;
            width: 100%;
        }

        .phrase-font {
            color: var(--color-font-muted);
            min-width: 0;
            width: 100%;
            line-height: 1.7;
        }

        /* === Update Mechanism Div (Closing) === */
        .dict-zone {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 80px 24px;
            background: linear-gradient(180deg, var(--color-bg-base) 0%, var(--color-bg-surface) 100%);
            border-top: 1px solid var(--color-border);
        }

        .dict-board {
            max-width: 800px;
            width: 100%;
            background: var(--color-bg-elevated);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 48px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 24px;
            min-width: 0;
            position: relative;
            overflow: hidden;
        }

        .dict-board::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
        }

        .dict-head {
            font-size: 1.75rem;
            font-weight: 700;
            min-width: 0;
            width: 100%;
        }

        .dict-font {
            color: var(--color-font-muted);
            font-size: 1.125rem;
            max-width: 600px;
            min-width: 0;
            width: 100%;
        }

        .dict-stroke {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.05);
            border-radius: 20px;
            font-size: 0.875rem;
            color: var(--color-font-main);
            margin-top: 16px;
            min-width: 0;
        }

        .dict-stroke::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #10b981; /* Green dot for active/live */
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
        }


        /* === Footer === */
        .root-tail {
            width: 100%;
            background: var(--color-bg-base);
            border-top: 1px solid var(--color-border);
            padding: 60px 24px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: auto;
        }

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

        .root-font {
            font-size: 14px;
            color: var(--color-font-muted);
            font-weight: 600;
            min-width: 0;
        }

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

        .root-path {
            font-size: 14px;
            color: var(--color-font-muted);
            min-width: 0;
        }

        .root-path:hover {
            color: var(--color-font-main);
        }

        /* === Responsive Rules === */
        @media (max-width: 1024px) {
            .cloud-board {
                flex-direction: column;
            }
            .cloud-pic-shell::after {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .glide-chord {
                display: none; /* Mobile menu logic would go here, simplified for this layout per strict header rules */
            }
            .smart-pool {
                padding-top: 80px;
                min-height: auto;
            }
            .phrase-chord {
                grid-template-columns: 1fr;
            }
            .lex-chord {
                grid-template-columns: 1fr;
            }
            .root-board {
                flex-direction: column;
                text-align: center;
            }
        }

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

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

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

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

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

.spell-spell-crown a.spell-glide-path {
    --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;
}

.spell-spell-crown a.spell-glide-path,
.spell-spell-crown a.spell-glide-path:hover,
.spell-spell-crown a.spell-glide-path:focus,
.spell-spell-crown a.spell-glide-path:active,
.spell-spell-crown a.spell-glide-path.active,
.spell-spell-crown a.spell-glide-path[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);
}

.spell-spell-crown{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(10, 11, 14, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

.spell-spell-crown .spell-glide-bar{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

.spell-spell-crown .spell-spell-mark{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.spell-spell-crown .spell-spell-mark img{
            height: 28px;
            width: auto;
        }

.spell-spell-crown .spell-glide-chord{
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            min-width: 0;
        }

.spell-spell-crown .spell-glide-path{
            padding: 8px 16px;
            font-size: 0.95rem;
            color: #94a0b8;
            border-radius: 6px;
            transition: all 0.25s ease;
            min-width: 0;
        }

.spell-spell-crown .spell-glide-path:hover, .spell-spell-crown .spell-glide-path.active{
            color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
        }

@media (max-width: 768px){.spell-spell-crown .spell-glide-bar{
                flex-direction: column;
                height: auto;
                padding: 16px 24px;
                gap: 16px;
            }

.spell-spell-crown .spell-glide-chord{
                justify-content: center;
                width: 100%;
            }}

.spell-spell-crown {
    background: rgb(10, 11, 14);
    background-image: none;
}

.dict-root-tail {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-font-main);
}
.dict-root-tail,
.dict-root-tail *,
.dict-root-tail *::before,
.dict-root-tail *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.dict-root-tail .dict-dict-font{
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all;
        }

.dict-root-tail{
            background: #0a0b0e;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 60px 24px;
            margin-top: auto;
        }

.dict-root-tail .dict-dict-zone{
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 24px;
        }

.dict-root-tail .dict-dict-font{
            color: #94a0b8;
            font-size: 0.9rem;
            min-width: 0;
        }

.dict-root-tail .dict-dict-chord{
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            min-width: 0;
        }

.dict-root-tail .dict-dict-path{
            color: #94a0b8;
            font-size: 0.9rem;
            transition: all 0.25s ease;
            min-width: 0;
        }

.dict-root-tail .dict-dict-path:hover{
            color: #ffffff;
        }

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