/* 视觉基底变量与重置 */
:root {
    --color-primary: #5ebde6;
    --color-primary-dark: #3ba3d1;
    --color-bg: #f5f9fc;
    --color-surface: #ffffff;
    --color-stem: #1a2b3c;
    --color-char: #4a5b6c;
    --color-border: #e2eef5;
    --radius-base: 18px;
    --radius-large: 22px;
    --shadow-soft: 0 8px 30px rgba(94, 189, 230, 0.12);
    --shadow-hover: 0 12px 40px rgba(94, 189, 230, 0.2);
    --transition: all 0.25s ease;
}

* {
    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);
    color: var(--color-char);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

/* 文本换行规范 */
.char, .stem-1, .stem-2, .stem-3, .stem-4 {
    word-break: break-word;
    overflow-wrap: break-word;
}
.char {
    word-break: keep-all;
}
.stem-1, .stem-2, .stem-3, .stem-4 {
    white-space: normal;
    color: var(--color-stem);
}

/* 导航栏样式复刻 (强制复用HTML所需的样式) */
.lexflow {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.dog img {
    height: 32px;
}

.cand.array {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.cand .bind {
    font-weight: 500;
    color: var(--color-char);
    padding: 0.5rem 0;
    position: relative;
}

.cand .bind:hover {
    color: var(--color-primary);
}

.cand .bind.active {
    color: var(--color-primary);
    font-weight: 600;
}

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

/* 主布局版心 */
.layout {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 顶层区块通用属性 */
.cloud, .smart-skin, .base-board {
    padding: 5rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cloud {
    background: var(--color-surface);
}

/* Hero区 (intro) */
.prime-board {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.prime-shell {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.prime-shell > * {
    min-width: 0;
}

.prime-char-shell {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stem-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.prime-char-shell .char {
    font-size: 1.25rem;
    color: var(--color-char);
    max-width: 90%;
}

.phrase-pack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* 按钮语法 */
.tap {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-surface);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(94, 189, 230, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tap:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    color: var(--color-surface);
}

.view-shell {
    flex: 1 1 500px;
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.view-shell .view {
    width: 100%;
    height: auto;
    border-radius: var(--radius-large);
    transition: var(--transition);
}

/* 标题尺度定义 */
.stem-2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.stem-3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stem-4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.smart-skin > .char, .base-board > .char, .cloud > .char {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Grid区块 (proof) */
.dict-layout {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* 卡片面板语法 */
.smart-view {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.smart-view:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-dark);
}

.glyph {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-base);
    background: linear-gradient(135deg, rgba(94, 189, 230, 0.1) 0%, rgba(59, 163, 209, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.glyph svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Sync区块 (capability) */
.base-board {
    background: linear-gradient(180deg, var(--color-bg) 0%, #eef5fa 100%);
}

.pack-layout {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.pack-layout > * {
    min-width: 0;
}

.skin-node {
    flex: 1 1 250px;
    max-width: 300px;
    align-items: center;
    text-align: center;
}

.skin-node .glyph {
    margin-bottom: 1rem;
    background: var(--color-surface);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sync-band {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sync-band svg {
    width: 40px;
    height: 40px;
    fill: var(--color-primary);
    opacity: 0.8;
}

/* Popular区块 (acquire) */
.space-board {
    background: var(--color-surface);
}

.array-layout {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phrase-node {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    gap: 1rem;
    flex-direction: row; /* Overriding column from smart-view */
}

.phrase-node .stem-3 {
    margin-bottom: 0;
}

.phrase-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.phrase-meta {
    font-size: 0.9rem;
    color: var(--color-primary);
    background: rgba(94, 189, 230, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.type {
    padding: 0.5rem 1.5rem;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--color-primary);
    flex: 0 0 auto;
}

.type:hover {
    background: var(--color-primary);
    color: var(--color-surface);
}

/* 页脚区域 */
.rear-space {
    background: var(--color-stem);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem;
}

.rear-band {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.rear-band .stem-4 {
    color: var(--color-surface);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.rear-band .array {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.rear-band .bind:hover {
    color: var(--color-surface);
}

/* 响应式断点 */
@media (max-width: 1024px) {
    .prime-shell {
        gap: 2rem;
    }
    .prime-char-shell {
        flex: 1 1 100%;
        text-align: center;
        align-items: center;
    }
    .prime-char-shell .char {
        max-width: 100%;
    }
    .phrase-pack {
        justify-content: center;
    }
    .view-shell {
        flex: 1 1 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    .sync-band {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .cloud, .smart-skin, .base-board {
        padding: 3rem 1.5rem;
    }
    .lexflow-inner {
        padding: 1rem 1.5rem;
    }
    .cand.array {
        gap: 1rem;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    .dict-layout {
        grid-template-columns: 1fr;
    }
    .phrase-node {
        flex-direction: column;
        align-items: flex-start;
    }
    .phrase-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .type {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .rear-band {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

.cand-lexflow {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--color-char);
}
.cand-lexflow,
.cand-lexflow *,
.cand-lexflow *::before,
.cand-lexflow *::after {
    box-sizing: border-box;
}

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

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

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

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

.cand-lexflow a.cand-bind {
    --aisite-shell-nav-padding: 0.5rem 1rem;
    --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;
}

.cand-lexflow a.cand-bind,
.cand-lexflow a.cand-bind:hover,
.cand-lexflow a.cand-bind:focus,
.cand-lexflow a.cand-bind:active,
.cand-lexflow a.cand-bind.active,
.cand-lexflow a.cand-bind[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);
}

.cand-lexflow{
            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: 1px solid #e2eef5;
            padding: 1rem 5vw;
        }

.cand-lexflow .cand-lexflow-inner{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            max-width: 1400px;
            margin: 0 auto;
            gap: 1rem;
        }

.cand-lexflow .cand-dog{
            display: flex;
            align-items: center;
        }

.cand-lexflow .cand-dog img{
            height: 32px;
            width: auto;
        }

.cand-lexflow .cand-cand{
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

.cand-lexflow .cand-bind{
            text-decoration: none;
            color: #4a5b6c;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: all 0.25s ease;
            font-size: 0.95rem;
        }

.cand-lexflow .cand-bind:hover, .cand-lexflow .cand-bind.active{
            background-color: rgba(94, 189, 230, 0.1);
            color: #3ba3d1;
        }

.cand-lexflow {
    background: rgb(255, 255, 255);
    background-image: none;
}

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

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

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

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

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

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

.space-base .space-char{
            font-size: 1rem;
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all;
            margin-bottom: 1.2rem;
            color: #4a5b6c;
        }

.space-base .space-board-center{
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 5vw;
        }

.space-base .space-bind{
            text-decoration: none;
            color: #4a5b6c;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: all 0.25s ease;
            font-size: 0.95rem;
        }

.space-base .space-bind:hover, .space-base .space-bind.active{
            background-color: rgba(94, 189, 230, 0.1);
            color: #3ba3d1;
        }

.space-base{
            background: #111e2a;
            color: rgba(255, 255, 255, 0.6);
            padding: 4rem 5vw;
            font-size: 0.9rem;
            text-align: center;
        }

.space-base .space-base-stem{
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
        }

.space-base .space-base-binds{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            margin: 2rem 0;
        }

.space-base .space-base-binds .space-bind{
            color: rgba(255, 255, 255, 0.6);
            padding: 0;
        }

.space-base .space-base-binds .space-bind:hover{
            color: #5ebde6;
            background: transparent;
        }