/* ==========================================================================
   Design System & Variables (Inherited & Variant)
   ========================================================================== */
:root {
    --color-primary: #5ebde6;
    --color-primary-dark: #3ba3d1;
    --color-primary-light: rgba(94, 189, 230, 0.1);
    --color-bg: #f5f9fc;
    --color-surface: #ffffff;
    --color-stem: #1a2b3c;
    --color-char: #4a5b6c;
    --color-char-light: #788a9e;
    --color-border: #e2eef5;
    
    --radius-base: 18px;
    --radius-large: 22px;
    --radius-pill: 50px;
    
    --shadow-soft: 0 8px 30px rgba(94, 189, 230, 0.12);
    --shadow-hover: 0 12px 40px rgba(94, 189, 230, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.8);
    
    --transition: all 0.25s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --layout-width: 1240px;
    --space-y: clamp(4rem, 8vw, 8rem);
}

/* ==========================================================================
   Base Styles & Mandatory Constraints
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0; /* Mandatory flex child constraint */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-char);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Text Wrapping Constraints */
p, span, div, a {
    word-break: break-word;
    overflow-wrap: break-word;
}
p {
    line-height: 1.8;
    word-break: keep-all; /* Better for Chinese */
}
h1, h2, h3, h4, h5, h6 {
    white-space: normal;
    color: var(--color-stem);
    margin-top: 0;
}

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

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

/* ==========================================================================
   Reusable Utilities & Layouts
   ========================================================================== */
.shell {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.array {
    display: flex;
    flex-wrap: wrap; /* Mandatory */
}

/* Common Stem (Heading) Styles */
.stem-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.stem-2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

/* Buttons */
.tap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(94, 189, 230, 0.3), var(--shadow-inner);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transform: translateY(0);
}
.tap:hover, .tap:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 189, 230, 0.4), var(--shadow-inner);
}

.stroke {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--color-primary-dark);
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
}
.stroke:hover, .stroke:focus {
    background: var(--color-primary-light);
}

/* ==========================================================================
   Header (Mandatory structure inherited)
   ========================================================================== */
.lexflow {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.lexflow-inner {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.dog {
    height: 36px;
}
.dog img {
    height: 100%;
}
.cand {
    gap: 2rem;
}
.bind {
    color: var(--color-char);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}
.bind:hover {
    color: var(--color-primary);
}
.bind.active {
    color: var(--color-primary);
    font-weight: 600;
}
.bind.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .lexflow-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .cand {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    .bind {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */

/* 1. Hero Block (article.intro) */
.intro {
    padding: clamp(3rem, 6vw, 6rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    overflow: hidden;
}
.intro .array {
    align-items: center;
    gap: 4rem;
}
.intro-pack {
    flex: 1;
    min-width: 300px;
    z-index: 2;
}
.intro-stem {
    background: linear-gradient(135deg, var(--color-stem) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.intro-char {
    font-size: 1.2rem;
    color: var(--color-char);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.intro-view-pack {
    flex: 1.2;
    min-width: 300px;
    position: relative;
}
.intro-view {
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    transition: var(--transition);
}
.intro-view-pack:hover .intro-view {
    transform: rotateY(0) rotateX(0) scale(1);
    box-shadow: var(--shadow-hover);
}
/* Decorative element */
.intro-deco {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, rgba(255,255,255,0) 70%);
    top: -50px;
    right: -50px;
    z-index: -1;
    border-radius: 50%;
}

/* 2. Trending Styles (aside.detail) */
.detail {
    padding: var(--space-y) 0;
}
.detail-peak {
    text-align: center;
    margin-bottom: 4rem;
}
.detail-char {
    font-size: 1.15rem;
    color: var(--color-char-light);
    max-width: 600px;
    margin: 0 auto;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.skin-node {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.skin-node:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}
.skin-band {
    height: 160px;
    border-radius: var(--radius-base);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
/* Abstract visual representations for styles since no images are provided */
.skin-band.style-minimal { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 1px solid #dee2e6; }
.skin-band.style-anime { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.skin-band.style-cyber { background: linear-gradient(135deg, #2b1055 0%, #7597de 100%); }
.skin-band.style-nature { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

.skin-glyph {
    width: 48px;
    height: 48px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}
.skin-node:hover .skin-glyph {
    transform: scale(1.1);
}
.skin-node .stem-3 {
    margin-bottom: 0.5rem;
}
.skin-node .char {
    font-size: 0.95rem;
    color: var(--color-char-light);
    margin: 0;
    flex-grow: 1;
}

/* 3. Custom Maker (div.capability) */
.capability {
    padding: var(--space-y) 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.capability .array {
    gap: 5rem;
    align-items: center;
}
.cap-pack {
    flex: 1;
    min-width: 320px;
}
.cap-array {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cap-node {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-base);
    background: var(--color-bg);
    border: 1px solid transparent;
    transition: var(--transition);
}
.cap-node:hover {
    background: var(--color-surface);
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 15px rgba(94, 189, 230, 0.08);
}
.cap-glyph {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cap-char .stem-3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}
.cap-char .char {
    font-size: 0.95rem;
    margin: 0;
}
.cap-visual {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
}
/* CSS Abstract representation of a DIY UI */
.diy-board {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-hover);
    padding: 2rem;
    border: 1px solid var(--color-border);
    position: relative;
}
.diy-keyboard {
    height: 180px;
    background: linear-gradient(to bottom right, #f0f4f8, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    align-content: flex-end;
}
.diy-key {
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    height: 30px;
    flex-grow: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.diy-slider {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    margin: 1.5rem 0;
    position: relative;
}
.diy-slider::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    left: 0;
    top: 0;
}
.diy-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    top: -5px;
    left: 60%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 4. IP Collab (section.closing) */
.closing {
    padding: var(--space-y) 0;
    background: radial-gradient(circle at top right, var(--color-surface) 0%, var(--color-bg) 100%);
}
.closing-peak {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}
.closing-peak .stem-2 {
    margin-bottom: 0.5rem;
}
.closing-peak .char {
    margin: 0;
    max-width: 500px;
}
.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.ip-node {
    background: var(--color-surface);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ip-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.ip-dot {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: var(--radius-base);
    box-shadow: -2px 2px 10px rgba(255, 140, 0, 0.2);
}
.ip-glyph-pack {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-border);
}
.ip-glyph-pack svg {
    width: 40px;
    height: 40px;
    color: var(--color-char);
}
.ip-node .stem-3 {
    margin-bottom: 0.5rem;
}
.ip-node .char {
    font-size: 0.95rem;
    color: var(--color-char-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.rear {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}
.base-pack {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}
.base-brand {
    flex: 1;
    min-width: 250px;
}
.base-brand .stem-2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}
.base-brand p {
    color: var(--color-char-light);
    font-size: 0.95rem;
    max-width: 300px;
}
.base-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}
.bind-pack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.bind-stem {
    font-weight: 600;
    color: var(--color-stem);
    margin-bottom: 0.5rem;
}
.bind-pack a {
    color: var(--color-char-light);
    font-size: 0.95rem;
}
.bind-pack a:hover {
    color: var(--color-primary);
}
.base-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-char-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .intro-pack { text-align: center; }
    .intro-char { margin: 0 auto 2rem; }
    .intro .array { flex-direction: column-reverse; }
    .cap-visual { order: -1; }
    .closing-peak { flex-direction: column; align-items: flex-start; }
    .base-links { gap: 2rem; flex-direction: column; }
}

.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;
        }