/* 站点基础变量与视觉契约 */
:root {
    --color-primary: #d064e0;
    --color-primary-light: #f5e4f8;
    --color-primary-dark: #a34db0;
    --color-bg: #faf9fb;
    --color-surface: #ffffff;
    --color-surface-alt: #f3eff5;
    --color-text-main: #1d1c1e;
    --color-text-sub: #5c5b5e;
    --color-border: #e8e4ea;
    --radius-base: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(29, 28, 30, 0.04);
    --shadow-md: 0 8px 24px rgba(208, 100, 224, 0.08);
    --shadow-lg: 0 16px 40px rgba(29, 28, 30, 0.08);
    --transition: all 0.25s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bind-width: 1200px;
}

/* 全局重置与基础规范 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-sub);
    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);
}

/* 强制 Flex 规则与文本规则 */
.flex-batch {
    display: flex;
    flex-wrap: wrap;
}

.flex-leaf {
    min-width: 0;
}

.ink-wrap {
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.bind-spine {
    max-width: var(--bind-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.mark-brand img {
    height: 32px;
    width: auto;
}

.spine-tray {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
}

.path-index {
    color: var(--color-text-sub);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.path-index:hover {
    color: var(--color-primary);
}

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

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

/* 页面壳层与主容器 */
.case-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-wrap: wrap;
}

.bind-prime {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 0;
}

/* 通用区块排版 */
.case-folio {
    width: 100%;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}

.bind-folio {
    max-width: var(--bind-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-wrap: wrap;
    min-width: 0;
}

/* 标题系统 */
.topic-prime {
    color: var(--color-surface);
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    white-space: normal;
}

.topic-major {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.3;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    white-space: normal;
}

.topic-sub {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    white-space: normal;
    margin-bottom: 0.5rem;
}

.ink-lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.ink-desc {
    color: var(--color-text-sub);
    font-size: 1rem;
}

/* 按钮语法 */
.stamp-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.stamp-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    color: var(--color-surface);
}

.stamp-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--color-text-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.stamp-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* Block 1: Intro (Hero Tech) */
.folio-intro {
    background: linear-gradient(135deg, #2b1f31 0%, #17111a 100%);
    color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.folio-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(208,100,224,0.15) 0%, rgba(208,100,224,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bind-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}

.case-intro-ink {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    z-index: 1;
}

.case-intro-visual {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    z-index: 1;
}

.glyph-pulse {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 30%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(208,100,224,0.3);
    position: relative;
}

.glyph-pulse svg {
    width: 80px;
    height: 80px;
    fill: var(--color-primary-light);
}

/* Block 2: Detail (Workflow) */
.folio-detail {
    background-color: var(--color-surface);
}

.bind-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}

.case-detail-ink {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.case-detail-fig {
    flex: 1.2 1 500px;
    min-width: 0;
    position: relative;
}

.case-detail-fig img {
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.batch-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    min-width: 0;
    flex-wrap: wrap;
}

.leaf-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    min-width: 0;
}

.leaf-step-num {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.leaf-step-ink {
    flex: 1;
    min-width: 0;
}

/* Block 3: Capability (Matrix) */
.folio-capability {
    background-color: var(--color-bg);
}

.topic-center {
    text-align: center;
    width: 100%;
}

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

.sheet-matrix {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    flex-wrap: wrap;
    min-width: 0;
}

.sheet-matrix:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.glyph-matrix {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyph-matrix svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-dark);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Block 4: Comparison (Metrics) */
.folio-comparison {
    background-color: var(--color-surface-alt);
}

.bind-metrics {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
}

.note-metric {
    flex: 1 1 280px;
    background: var(--color-surface);
    padding: 3rem 2rem;
    border-radius: var(--radius-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    flex-wrap: wrap;
    border: 1px solid var(--color-border);
}

.ink-huge {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.05em;
}

/* Footer */
.root-seam {
    background-color: #17111a;
    color: #a39ca6;
    padding: 4rem 2rem 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}

.bind-seam {
    max-width: var(--bind-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-wrap: wrap;
    min-width: 0;
}

.tray-seam-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    min-width: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.batch-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    flex-wrap: wrap;
    min-width: 0;
}

.ink-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.batch-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    min-width: 0;
}

.deck-seam {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.topic-seam {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.path-seam {
    color: #a39ca6;
    font-size: 0.95rem;
}

.path-seam:hover {
    color: var(--color-primary);
}

.tray-seam-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
    font-size: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-folio {
        padding: 4rem 1.5rem;
    }
    
    .bind-intro,
    .bind-detail {
        gap: 2.5rem;
    }
    
    .case-intro-ink,
    .case-detail-ink,
    .case-intro-visual,
    .case-detail-fig {
        flex-basis: 100%;
    }
    
    .glyph-pulse {
        width: 180px;
        height: 180px;
    }
    
    .batch-links {
        gap: 2rem;
        flex-direction: column;
    }
    
    .tray-seam-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

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

.spine-crest-top p,
.spine-crest-top h1,
.spine-crest-top h2,
.spine-crest-top h3,
.spine-crest-top h4,
.spine-crest-top h5,
.spine-crest-top h6 {
    text-decoration: none;
}

.spine-crest-top img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

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

.spine-crest-top a.spine-path-index {
    --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;
}

.spine-crest-top a.spine-path-index,
.spine-crest-top a.spine-path-index:hover,
.spine-crest-top a.spine-path-index:focus,
.spine-crest-top a.spine-path-index:active,
.spine-crest-top a.spine-path-index.active,
.spine-crest-top a.spine-path-index[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);
}

.spine-crest-top{
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e8e4ea;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

.spine-crest-top .spine-bind-spine{
            width: 100%;
            max-width: 1280px;
            padding: 0 2rem;
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            min-width: 0;
        }

.spine-crest-top .spine-mark-brand{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.spine-crest-top .spine-mark-brand img{
            height: 32px;
            width: auto;
        }

.spine-crest-top .spine-spine-tray{
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            min-width: 0;
        }

.spine-crest-top .spine-path-index{
            color: #5c5b5e;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            padding: 0.5rem 0;
            position: relative;
        }

.spine-crest-top .spine-path-index:hover, .spine-crest-top .spine-path-index.active{
            color: #d064e0;
        }

.spine-crest-top .spine-path-index.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #d064e0;
            border-radius: 2px;
        }

@media (max-width: 768px){.spine-crest-top .spine-spine-tray{ display: none;  }}

.spine-crest-top {
    background: rgb(255, 255, 255);
    background-image: none;
}

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

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

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

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

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

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

.seam-root-bottom{
            background-color: #ffffff;
            border-top: 1px solid #e8e4ea;
            padding: 4rem 2rem;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

.seam-root-bottom .seam-bind-root{
            width: 100%;
            max-width: 1280px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
            min-width: 0;
        }

.seam-root-bottom .seam-ink-copyright{
            font-size: 0.9rem;
            color: #5c5b5e;
        }

.seam-root-bottom .seam-topic-brand{
            font-weight: 700;
            color: #1d1c1e;
            font-size: 1.2rem;
        }

@media (max-width: 768px){.seam-root-bottom .seam-bind-root{ flex-direction: column; text-align: center; }}