/* Reset & Base Variables */
:root {
    --color-prime: #4f82e8;
    --color-prime-hover: #3b66c4;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-bg-light: #f8fafc;
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;
    
    --font-base: 'PingFang SC', 'Microsoft YaHei', 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(79, 130, 232, 0.15);
    
    --transition: all 0.35s ease;
}

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

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

/* Global Typography Rules */
h1, h2, h3, h4, p, span, a {
    word-break: break-word;
    overflow-wrap: break-word;
}
p {
    word-break: keep-all; /* Better for Chinese paragraphs */
}
h1, h2, h3 {
    white-space: normal;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Global Flexbox Rules */
.flex-row,
.flex-col,
.flow-peak,
.spell-dict,
.cloud-skin,
.lexis-zone,
.board-zone,
.cell-grid {
    display: flex;
    flex-wrap: wrap;
}
.flex-row > *,
.flex-col > *,
.cloud-skin > *,
.lexis-zone > *,
.board-zone > *,
.cell-grid > * {
    min-width: 0;
}

/* --- Header / Navigation (Mandatory Inheritance) --- */
.flow-peak {
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5vw;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.hound {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.spell-dict {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.spell-jump {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}
.spell-jump:hover,
.spell-jump:focus {
    color: var(--color-prime);
}
.spell-jump.active {
    color: var(--color-prime);
    font-weight: 700;
}
.spell-jump.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-prime);
    border-radius: 2px 2px 0 0;
}

/* --- Main Structure --- */
.board-board {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- Block 1: Hero Intro (<article>) --- */
.cloud-skin {
    width: 100%;
    background: linear-gradient(135deg, #0b1121 0%, #1a2d5c 50%, #294896 100%);
    padding: 6rem 5vw 8rem 5vw;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}
.cloud-skin::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 130, 232, 0.2) 0%, transparent 50%);
    pointer-events: none;
}
.intro-char {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}
.tone-prime {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
}
.char-sub {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 90%;
}
.intro-look {
    flex: 1 1 500px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.look-prime {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    transform: translateY(0);
    transition: var(--transition);
}
.look-prime:hover {
    transform: translateY(-5px);
}

/* --- Block 2: Scenarios (<aside>) --- */
.lexis-zone {
    width: 100%;
    padding: 6rem 5vw;
    background-color: var(--color-bg-light);
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
.zone-peak {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tone-second {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-text-dark);
}
.char-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}
.cell-grid {
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    justify-content: center;
}
.lexis-cell {
    flex: 1 1 300px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.lexis-cell::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-prime), #88aef0);
    opacity: 0;
    transition: var(--transition);
}
.lexis-cell:hover,
.lexis-cell:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 130, 232, 0.3);
}
.lexis-cell:hover::after {
    opacity: 1;
}
.mark-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(79, 130, 232, 0.1) 0%, rgba(79, 130, 232, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-prime);
}
.tone-third {
    font-size: 1.25rem;
    color: var(--color-text-dark);
}

/* --- Block 3: Capabilities (<div>) --- */
.board-zone {
    width: 100%;
    padding: 6rem 5vw;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
.cap-line {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}
.cap-line:nth-child(even) {
    flex-direction: row-reverse;
}
.cap-char {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.cap-look {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

/* Badge/Tag styling for capabilities */
.word-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 130, 232, 0.1);
    color: var(--color-prime);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

/* --- Footer --- */
.base-echo {
    background: var(--color-text-dark);
    color: #cbd5e1;
    padding: 4rem 5vw 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.base-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.base-col {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.base-tone {
    color: var(--color-bg-white);
    font-size: 1.2rem;
    font-weight: 700;
}
.base-dict {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.base-jump {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}
.base-jump:hover,
.base-jump:focus {
    color: var(--color-bg-white);
}
.base-line {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .spell-dict {
        display: none; /* Hide nav on mobile for this specific rendering scope to focus on content, or stack it */
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }
    .flow-peak {
        flex-direction: column;
        align-items: flex-start;
    }
    .cloud-skin {
        padding: 4rem 5vw;
        gap: 2rem;
    }
    .lexis-zone, .board-zone {
        padding: 4rem 5vw;
    }
    .cap-line, .cap-line:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
}

.spell-flow-peak {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: #1e293b;
}
.spell-flow-peak,
.spell-flow-peak *,
.spell-flow-peak *::before,
.spell-flow-peak *::after {
    box-sizing: border-box;
}

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

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

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

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

.spell-flow-peak a.spell-spell-jump.spell-spell-active,
.spell-flow-peak a.spell-spell-jump {
    --aisite-shell-nav-padding: 0.5rem 0;
    --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-flow-peak a.spell-spell-jump.spell-spell-active,
.spell-flow-peak a.spell-spell-jump.spell-spell-active:hover,
.spell-flow-peak a.spell-spell-jump.spell-spell-active:focus,
.spell-flow-peak a.spell-spell-jump.spell-spell-active:active,
.spell-flow-peak a.spell-spell-jump.spell-spell-active.active,
.spell-flow-peak a.spell-spell-jump.spell-spell-active[aria-current="page"],
.spell-flow-peak a.spell-spell-jump,
.spell-flow-peak a.spell-spell-jump:hover,
.spell-flow-peak a.spell-spell-jump:focus,
.spell-flow-peak a.spell-spell-jump:active,
.spell-flow-peak a.spell-spell-jump.active,
.spell-flow-peak a.spell-spell-jump[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-flow-peak{
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 5vw;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }

.spell-flow-peak .spell-hound{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.spell-flow-peak .spell-hound svg{
            height: 36px;
            width: auto;
        }

.spell-flow-peak .spell-spell-dict{
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            min-width: 0;
        }

.spell-flow-peak .spell-spell-jump{
            font-size: 1rem;
            font-weight: 500;
            color: #64748b;
            position: relative;
            padding: 0.5rem 0;
        }

.spell-flow-peak .spell-spell-jump::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #4f82e8;
            transition: width 0.35s ease;
        }

.spell-flow-peak .spell-spell-jump:hover, .spell-flow-peak .spell-spell-jump:focus{
            color: #4f82e8;
        }

.spell-flow-peak .spell-spell-jump:hover::after, .spell-flow-peak .spell-spell-active::after{
            width: 100%;
        }

.spell-flow-peak .spell-spell-active{
            color: #4f82e8;
            font-weight: 600;
        }

@media (max-width: 768px){.spell-flow-peak{
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }

.spell-flow-peak .spell-spell-dict{
                justify-content: center;
                gap: 1rem;
            }}

.spell-flow-peak {
    background: rgb(255, 255, 255);
    background-image: none;
}

.memo-memo-base {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: #1e293b;
}
.memo-memo-base,
.memo-memo-base *,
.memo-memo-base *::before,
.memo-memo-base *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.memo-memo-base .memo-char-body{
            font-size: 1.05rem;
            color: #475569;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

.memo-memo-base{
            background-color: #020617;
            padding: 4rem 5vw 2rem;
            color: #64748b;
        }

.memo-memo-base .memo-memo-board{
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 3rem;
            justify-content: space-between;
            border-bottom: 1px solid #1e293b;
            padding-bottom: 3rem;
            margin-bottom: 2rem;
        }

.memo-memo-base .memo-memo-cell{
            flex: 1 1 250px;
            min-width: 0;
        }

.memo-memo-base .memo-echo-char{
            font-size: 1.25rem;
            font-weight: 700;
            color: #e2e8f0;
            margin-bottom: 1rem;
        }

.memo-memo-base .memo-memo-jump{
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

.memo-memo-base .memo-memo-jump:hover, .memo-memo-base .memo-memo-jump:focus{
            color: #38bdf8;
        }

.memo-memo-base .memo-echo-line{
            text-align: center;
            font-size: 0.85rem;
        }