/* 站点视觉变量系统 (继承自首页家族) */
:root {
    --primary: #6082da;
    --primary-dark: #4a69b5;
    --primary-light: #e6ebf8;
    --bg-main: #fcfcfd;
    --bg-alt: #f2f4f8;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 8px 20px rgba(96, 130, 218, 0.25);
    --transition: all 0.15s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 强制安全规则 */
.shell, .batch, .smart, .cand, .vowel {
    display: flex;
    flex-wrap: wrap;
}

.shell > *, .batch > *, .smart > *, .cand > *, .vowel > * {
    min-width: 0;
}

.topic, .char {
    word-break: break-word;
    overflow-wrap: break-word;
}

.topic {
    white-space: normal;
}

/* 强制复用导航栏样式 */
.apex {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(252, 252, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 100;
    padding: 1rem 0;
}

.apex .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
    align-items: center;
    justify-content: space-between;
}

.apex .paw {
    display: flex;
    align-items: center;
}

.apex .paw img {
    height: 32px;
    width: auto;
}

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

.apex .tie {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.apex .tie:hover {
    color: var(--primary);
}

.apex .tie.active {
    color: var(--text-dark);
    font-weight: 600;
}

.apex .tie.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .apex .vowel {
        display: none; /* 移动端简易处理，真实场景需JS菜单 */
    }
}

/* 页面主容器 */
.realm {
    padding-top: 80px; /* 避开固定导航栏 */
}

/* 变体1: 即刻下载区 (Hero Variant) */
.cloud {
    padding: 10vh 0 12vh;
    background: radial-gradient(circle at 60% 10%, #e6ebf8 0%, #fcfcfd 60%);
    position: relative;
    overflow: hidden;
}

.cloud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMTUsIDIzLCA0MiwgMC4wMykiLz48L3N2Zz4=') repeat;
    pointer-events: none;
    z-index: 0;
}

.cloud .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.cloud .smart {
    flex: 1 1 400px;
    flex-direction: column;
    align-items: flex-start;
}

.cloud .skin {
    flex: 1 1 500px;
    position: relative;
}

.cloud .topic {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cloud .char {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cloud .batch {
    gap: 1rem;
    width: 100%;
}

.cloud .tap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--surface);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.cloud .tap:hover, .cloud .tap:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(96, 130, 218, 0.35);
}

.cloud .press {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--surface);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cloud .press:hover, .cloud .press:focus {
    background: var(--bg-alt);
    border-color: #cbd5e1;
}

.cloud .view {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.5);
}

/* 变体2: 全平台矩阵 (Board Variant) */
.board {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.02);
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    margin-top: -2rem;
}

.board .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
    flex-direction: column;
}

.board > .shell > .topic {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.board .batch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.glyph {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}

.glyph:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.glyph .mark {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyph .topic {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.glyph .char {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.glyph .tap {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.glyph .tap:hover, .glyph .tap:focus {
    background: var(--primary);
    color: var(--surface);
}

/* 单独处理中间的全平台配图 */
.board .skin {
    width: 100%;
    margin-bottom: 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* 变体3: 更新日志区 (Phrase Variant) */
.phrase {
    background: var(--bg-alt);
    padding: 6rem 0;
}

.phrase .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
    gap: 4rem;
    align-items: flex-start;
}

.phrase .smart {
    flex: 1 1 400px;
    flex-direction: column;
}

.phrase .smart .topic {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.phrase .smart .char {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.phrase .smart .view {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.phrase .cand {
    flex: 1 1 500px;
    width: 100%;
}

.flow {
    list-style: none;
    padding-left: 24px;
    border-left: 2px solid var(--primary-light);
    width: 100%;
}

.term {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.term:last-child {
    margin-bottom: 0;
}

.term::before {
    content: '';
    position: absolute;
    left: -33px; /* 24 + 2/2 + 8 */
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px var(--bg-alt);
}

.stroke {
    background: var(--surface);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stroke .topic {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stroke .topic .char {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-main);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0;
}

.stroke > .char {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 页脚 */
.tail {
    background: var(--surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.tail .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
    flex-direction: column;
    align-items: center;
}

.tail .space {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.tail .trail {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tail .tie {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.tail .tie:hover {
    color: var(--primary);
}

.tail .char {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .board .batch {
        grid-template-columns: 1fr;
    }
    .cloud .smart, .cloud .skin,
    .phrase .smart, .phrase .cand {
        flex: 1 1 100%;
    }
    .cloud .batch {
        flex-direction: column;
    }
    .cloud .tap, .cloud .press {
        width: 100%;
    }
}

.spell-apex {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}
.spell-apex,
.spell-apex *,
.spell-apex *::before,
.spell-apex *::after {
    box-sizing: border-box;
}

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

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

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

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

.spell-apex a.spell-tie {
    --aisite-shell-nav-padding: 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-apex a.spell-tie,
.spell-apex a.spell-tie:hover,
.spell-apex a.spell-tie:focus,
.spell-apex a.spell-tie:active,
.spell-apex a.spell-tie.active,
.spell-apex a.spell-tie[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-apex .spell-shell{
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 5vw;
        }

.spell-apex{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(252, 252, 253, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0,0,0,0.05);
            padding: 1rem 0;
        }

.spell-apex .spell-shell{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            min-width: 0;
        }

.spell-apex .spell-paw{
            display: flex;
            align-items: center;
            min-width: 0;
            height: 36px;
        }

.spell-apex .spell-paw img{
            height: 100%;
            width: auto;
            display: block;
        }

.spell-apex .spell-vowel{
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
            min-width: 0;
        }

.spell-apex .spell-tie{
            text-decoration: none;
            color: #475569;
            font-weight: 500;
            font-size: 1rem;
            transition: all 0.15s ease;
            position: relative;
        }

.spell-apex .spell-tie:hover, .spell-apex .spell-tie.active{
            color: #6082da;
        }

.spell-apex .spell-tie.active::after{
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #6082da;
            border-radius: 2px;
        }

@media (max-width: 768px){.spell-apex .spell-vowel{ display: none;  }}

.spell-apex {
    background: rgb(252, 252, 253);
    background-image: none;
}

.space-tail {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}
.space-tail,
.space-tail *,
.space-tail *::before,
.space-tail *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.space-tail .space-shell{
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 5vw;
        }

.space-tail .space-topic{
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            font-weight: 800;
            letter-spacing: -0.03em;
            color: #0f172a;
        }

.space-tail{
            background: #0f172a;
            color: #94a3b8;
            padding: 6rem 0 3rem;
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
        }

.space-tail .space-tail-shell{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 4rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 4rem;
            margin-bottom: 2rem;
            min-width: 0;
        }

.space-tail .space-tail-space{
            flex: 1;
            min-width: 280px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
        }

.space-tail .space-tail-topic{
            color: #fff;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }

.space-tail .space-tail-flow{
            display: flex;
            flex-wrap: wrap;
            gap: 3rem;
            min-width: 0;
        }

.space-tail .space-tail-batch{
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 1rem;
            min-width: 120px;
        }

.space-tail .space-tail-batch .space-topic{
            color: #fff;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

.space-tail .space-tail-tie{
            color: #94a3b8;
            text-decoration: none;
            transition: all 0.15s ease;
        }

.space-tail .space-tail-tie:hover{
            color: #e6ebf8;
        }

.space-tail .space-trail{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            min-width: 0;
        }

@media (max-width: 768px){.space-tail .space-tail-shell{ flex-direction: column; }}