/* 站点视觉变量体系 (继承首页) */
:root {
    --color-primary: #d064e0;
    --color-primary-light: #f5e4f8;
    --color-primary-dark: #a34db0;
    --color-primary-alpha: rgba(208, 100, 224, 0.1);
    
    --color-bg: #faf9fb;
    --color-surface: #ffffff;
    --color-surface-alt: #f3eff5;
    
    --color-text-main: #1d1c1e;
    --color-text-sub: #5c5b5e;
    --color-text-mute: #8e8c92;
    
    --color-border: #e8e4ea;
    --color-border-light: #f0eef2;
    
    --radius-base: 8px;
    --radius-large: 12px;
    --radius-round: 999px;
    
    --shadow-sm: 0 2px 8px rgba(29, 28, 30, 0.04);
    --shadow-md: 0 8px 24px rgba(29, 28, 30, 0.06);
    --shadow-lg: 0 16px 40px rgba(208, 100, 224, 0.08);
    
    --space-unit: 1rem;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition: all 0.25s var(--ease);
}

/* 全局重置与排版基底 */
*, *::before, *::after {
    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-text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* 布局约束规则 (强制) */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

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

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

/* --- 导航栏复用样式 (严格保持结构) --- */
.crest-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    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 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.spine-tray {
    display: flex;
    gap: 2rem;
}

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

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

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

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

/* --- 页面骨架与容器 --- */
.case-tray {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.case-prime {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

/* --- 公共排版层级 --- */
.topic-prime {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    white-space: normal;
    word-break: keep-all;
}

.topic-sec {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    white-space: normal;
}

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

.ink-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-sub);
    line-height: 1.6;
    max-width: 700px;
}

.ink-body {
    font-size: 1rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* --- 按钮组件 --- */
.stamp-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-radius: var(--radius-base);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--color-primary-alpha);
    transition: var(--transition);
}

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

/* --- S1: Hero Cloud (类型: section, 角色: intro) --- */
.cover-intro {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    position: relative;
    overflow: hidden;
}

.cover-intro::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.tray-cover {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

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

.case-cover-ui {
    flex: 1 1 500px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Data UI 动画 */
.ui-hub {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
}

.ui-node {
    position: absolute;
    background: var(--color-surface);
    border-radius: var(--radius-large);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.ui-node:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.ui-node:nth-child(2) { top: 70%; left: 5%; animation-delay: -2s; }
.ui-node:nth-child(3) { top: 40%; right: 5%; animation-delay: -4s; }

.ui-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--color-primary-alpha);
    z-index: 3;
}

.ui-core::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    border: 1px dashed var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- S2: Sync Architecture (类型: article, 角色: proof) --- */
.folio-sync {
    padding: 6rem 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.tray-sync-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.tray-arch {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-large);
    padding: 3rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.case-device {
    flex: 1 1 240px;
    min-width: 0;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.case-device:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.glyph-device {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.tape-sync {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-primary-light) 0, var(--color-primary-light) 10px, transparent 10px, transparent 20px);
    z-index: 1;
    transform: translateY(-50%);
    animation: flow 1s linear infinite;
}

@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* --- S3: Collaboration Panel (类型: div, 角色: comparison) --- */
.batch-collab {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.tray-collab {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.case-collab-ui {
    flex: 1 1 500px;
    min-width: 0;
    background: var(--color-surface);
    border-radius: var(--radius-large);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    position: relative;
}

.ui-doc-line {
    height: 12px;
    background: var(--color-border-light);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    width: 100%;
}
.ui-doc-line:nth-child(2) { width: 85%; }
.ui-doc-line:nth-child(3) { width: 90%; }
.ui-doc-line:nth-child(4) { width: 60%; }

.ui-cursor {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: pulse-cursor 2s infinite;
}

.ui-cursor-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    margin-top: 4px;
    white-space: nowrap;
}

.cursor-1 { top: 2rem; left: 30%; color: #ff6b6b; }
.cursor-1 .ui-cursor-tag { background: #ff6b6b; }
.cursor-2 { top: 5rem; left: 60%; color: #4ecdc4; }
.cursor-2 .ui-cursor-tag { background: #4ecdc4; }

@keyframes pulse-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.sheet-collab {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sheet-collab:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.glyph-collab {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 6px;
    background: var(--color-surface-alt);
    border-radius: 8px;
    color: var(--color-primary);
}

/* --- S4: Security Metrics (类型: article, 角色: proof) --- */
.folio-security {
    padding: 6rem 0;
    background-color: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
}

.tray-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.note-metric {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-base);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.note-metric:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.ink-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* --- Footer --- */
.root-bottom {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: auto;
}

.tray-seam {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.ink-copyright {
    color: var(--color-text-mute);
    font-size: 0.9rem;
}

.deck-legal {
    display: flex;
    gap: 1.5rem;
}

.path-legal {
    color: var(--color-text-sub);
    font-size: 0.9rem;
}
.path-legal:hover {
    color: var(--color-primary);
}

/* 响应式断点 */
@media (max-width: 1024px) {
    .tape-sync { display: none; } /* 移动端隐藏连线 */
    .tray-arch { flex-direction: column; }
}

@media (max-width: 768px) {
    .cover-intro { padding: 4rem 0; }
    .tray-cover, .tray-collab { gap: 2rem; }
    .topic-prime { font-size: 2.5rem; }
    .spine-tray { display: none; } /* 简化的移动端导航处理 */
    .bind-spine { justify-content: 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; }}