/* 核心变量与基因继承 */
: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: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(29, 28, 30, 0.04);
    --shadow-md: 0 8px 24px rgba(29, 28, 30, 0.08);
    --shadow-lg: 0 16px 40px rgba(208, 100, 224, 0.08);
    --transition-base: 0.25s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
    list-style: none;
}

/* 文本防溢出强制规则 */
.ink-safe {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* --- 导航栏区域 (强制复用并适配样式) --- */
.crest-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

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

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

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

.path-index {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

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

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

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

/* --- 主内容区结构 --- */
.core-zone {
    display: block;
    width: 100%;
}

.case-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- 1. 首屏展示区 (Intro Cover) --- */
.cover-intro {
    background: linear-gradient(135deg, #2b1f31 0%, #17111a 100%);
    color: #ffffff;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cover-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(208, 100, 224, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.topic-prime {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    max-width: 800px;
    white-space: normal;
    word-break: keep-all;
    position: relative;
    z-index: 2;
}

.ink-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 搜索交互组件 */
.tray-search {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.leaf-input {
    flex: 1 1 200px;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 1.05rem;
    outline: none;
}

.leaf-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.stamp-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0 2rem;
    border-radius: var(--radius-base);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 48px;
    flex-shrink: 0;
}

.stamp-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(208, 100, 224, 0.2);
}

/* 通用区块标题与描述 */
.topic-major {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ink-sub {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    margin-bottom: 3rem;
}

/* --- 卡片网格系统 --- */
.batch-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.sheet-folio {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-width: 0;
    cursor: pointer;
}

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

.fig-mock {
    width: 100%;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 视觉模拟: PPT比例 */
.fig-mock.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

/* 视觉模拟: 文档比例 */
.fig-mock.ratio-a4 {
    aspect-ratio: 3 / 4;
    background: #eef1f5;
}

/* 视觉模拟: 表格比例 */
.fig-mock.ratio-table {
    aspect-ratio: 4 / 3;
    background: #f0f7f4;
}

.fig-mock svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaf-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.topic-minor {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ink-meta {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.glyph-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* --- 2. 演示文稿模板区块 (div) --- */
.folio-capability {
    padding: 5rem 0;
    background-color: var(--color-surface);
}

/* --- 3. 文档与简历模板区块 (aside) --- */
.folio-detail {
    padding: 5rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* --- 4. 数据与报表模板区块 (article) --- */
.folio-proof {
    padding: 5rem 0;
    background-color: var(--color-surface);
}

/* --- 页脚区域 --- */
.root-seam {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2rem;
    color: var(--color-text-sub);
}

.bind-root {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.mark-ink {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
}

.tray-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.path-minor {
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

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

.ink-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* --- 响应式断点 --- */
@media (max-width: 768px) {
    .bind-spine {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .spine-tray {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .cover-intro {
        padding: 4rem 1.5rem;
    }

    .tray-search {
        flex-direction: column;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 0;
    }

    .leaf-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stamp-primary {
        width: 100%;
    }

    .batch-matrix {
        grid-template-columns: 1fr;
    }
    
    .folio-capability,
    .folio-detail,
    .folio-proof {
        padding: 3rem 0;
    }
}

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