/* 视觉契约与基因变量 */
:root {
    --bg-base: #f7f6f3;
    --bg-surface: #ffffff;
    --bg-alt: #ebe9e4;
    --primary: #dc7963;
    --primary-dark: #c56550;
    --text-main: #2f3437;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-float: 0 8px 30px rgba(0,0,0,0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --transition: 0.35s ease;
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0; /* Flexbox safety */
}

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

/* 文本换行安全规则 */
.ink, .lead, .lead-prime, .lead-sub, .node, .note {
    word-break: break-word;
    overflow-wrap: break-word;
}

.ink {
    word-break: keep-all; /* 中文优化 */
}

.lead-prime, .lead, .lead-sub {
    white-space: normal;
}

/* 全局布局结构 */
.vault {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-wrap: wrap;
}

.binder {
    display: flex;
    flex-direction: column;
    flex: 1;
    flex-wrap: wrap;
    width: 100%;
}

/* -------------------------------------
   导航栏复用样式 (Header/Apex)
------------------------------------- */
.apex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.stamp {
    height: 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.stamp img {
    height: 100%;
    display: block;
}

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

.node {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition);
}

.node:hover,
.node:focus {
    color: var(--primary);
    outline: none;
}

.node.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.node.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

/* -------------------------------------
   区块 1: Canvas (Hero / Intro)
   创意种子: reverse_split
------------------------------------- */
.canvas {
    background-color: var(--bg-surface);
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* 底部装饰性渐变 */
.canvas::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(220, 121, 99, 0.03), transparent);
    pointer-events: none;
}

.case {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    /* Reverse split: 图形在左占6，文字在右占4 */
}

.sheet {
    flex: 6 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.pane {
    flex: 4 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-wrap: wrap;
    z-index: 1;
}

.lead-prime {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.lead-prime span {
    color: var(--primary);
}

.pane .ink {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.macro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(220, 121, 99, 0.3);
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.macro:hover,
.macro:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 121, 99, 0.4);
    outline: none;
}

/* Canvas SVG Motion */
.svg-motion {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(var(--shadow-float));
}

.anim-pdf-doc {
    transform-origin: center;
    animation: aisitexPulseScale 4s ease-in-out infinite alternate;
}

.anim-word-doc {
    transform-origin: center;
    animation: aisitexPulseScale 4s ease-in-out infinite alternate-reverse;
}

.anim-particle {
    fill: var(--primary);
    animation: aisitexFlow 3s linear infinite;
}

@keyframes aisitexPulseScale {
    0% { transform: scale(0.98) translateY(0); }
    100% { transform: scale(1.02) translateY(-10px); }
}

@keyframes aisitexFlow {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    50% { transform: translateX(60px) scale(1.2); opacity: 0.5; }
    100% { transform: translateX(120px) scale(1); opacity: 0; }
}

/* -------------------------------------
   区块 2: Deck (Steps / Features)
------------------------------------- */
.deck {
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-base);
    flex-wrap: wrap;
    gap: 4rem;
}

.deck .lead {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
}

.batch {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.folio {
    flex: 1 1 320px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(47, 52, 55, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all var(--transition);
    flex-wrap: wrap;
}

.folio:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: rgba(220, 121, 99, 0.2);
}

.glyph {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(220, 121, 99, 0.1) 0%, rgba(220, 121, 99, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-wrap: wrap;
}

.glyph svg {
    width: 32px;
    height: 32px;
    transition: transform var(--transition);
}

.folio:hover .glyph svg {
    transform: scale(1.1) rotate(-5deg);
}

.lead-sub {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* -------------------------------------
   区块 3: Cover (Closing / Deep Edit)
------------------------------------- */
.cover {
    padding: 6rem 5%;
    background-color: var(--bg-surface);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid rgba(47, 52, 55, 0.05);
}

.cover .case {
    /* 恢复正常的左文右图布局 */
    flex-direction: row;
}

.cover .pane {
    flex: 4 1 350px;
    justify-content: center;
}

.cover .sheet {
    flex: 6 1 450px;
    background-color: var(--bg-base);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.cover .lead {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

/* 交互面板微动效 */
.ui-folio {
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.anim-highlight {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: aisitexDrawLine 3s ease-in-out infinite alternate;
}

@keyframes aisitexDrawLine {
    0%, 20% { stroke-dashoffset: 1000; }
    80%, 100% { stroke-dashoffset: 0; }
}

.anim-cursor {
    animation: aisitexBlink 1s step-end infinite;
}

@keyframes aisitexBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* -------------------------------------
   底部 Footer (Base)
------------------------------------- */
.base {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 4rem 5% 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: auto;
}

.base .case {
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.base-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 200px;
}

.base-brand .lead-sub {
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.base-brand .ink {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stack {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    flex: 2 1 400px;
    justify-content: flex-end;
}

.cell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 120px;
}

.cell .note {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cell .node {
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
}

.cell .node:hover,
.cell .node:focus {
    color: #ffffff;
}

.base-bottom {
    width: 100%;
    max-width: 1200px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.base-bottom .note {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* -------------------------------------
   响应式断点
------------------------------------- */
@media (max-width: 992px) {
    .case {
        gap: 3rem;
    }
    .ribbon {
        display: none; /* 移动端简化，或者保持横向滚动。蓝图要求保持壳层，这里我们让它自然折行 */
    }
    .apex {
        justify-content: center;
        flex-direction: column;
    }
    .ribbon {
        display: flex;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .canvas {
        padding: 4rem 5%;
    }
    .case {
        flex-direction: column;
        text-align: center;
    }
    .pane {
        align-items: center;
        order: 1; /* 移动端文字在上 */
    }
    .sheet {
        order: 2; /* 图形在下 */
    }
    .cover .case {
        flex-direction: column;
    }
    .band {
        justify-content: center;
    }
    .stack {
        justify-content: flex-start;
        gap: 2rem;
    }
    .deck {
        padding: 4rem 5%;
    }
}

.ribbon-apex {
    font-family: var(--font-stack);
    line-height: 1.7;
    color: var(--ink-main);
}
.ribbon-apex,
.ribbon-apex *,
.ribbon-apex *::before,
.ribbon-apex *::after {
    box-sizing: border-box;
}

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

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

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

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

.ribbon-apex a.ribbon-node {
    --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;
}

.ribbon-apex a.ribbon-node,
.ribbon-apex a.ribbon-node:hover,
.ribbon-apex a.ribbon-node:focus,
.ribbon-apex a.ribbon-node:active,
.ribbon-apex a.ribbon-node.active,
.ribbon-apex a.ribbon-node[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);
}

.ribbon-apex, .ribbon-apex .ribbon-ribbon{
            display: flex;
            flex-wrap: wrap;
        }

.ribbon-apex > *, .ribbon-apex .ribbon-ribbon > *{
            min-width: 0;
        }

.ribbon-apex{
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(47, 52, 55, 0.08);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 3vw;
            align-items: center;
            justify-content: space-between;
        }

.ribbon-apex .ribbon-stamp{
            width: 120px;
            display: flex;
            align-items: center;
        }

.ribbon-apex .ribbon-stamp img{
            width: 100%;
            height: auto;
            display: block;
        }

.ribbon-apex .ribbon-ribbon{
            gap: 2rem;
            align-items: center;
        }

.ribbon-apex .ribbon-node{
            font-size: 0.95rem;
            font-weight: 500;
            color: #5e6469;
            padding: 0.5rem 0;
            position: relative;
        }

.ribbon-apex .ribbon-node:hover{
            color: #dc7963;
        }

.ribbon-apex .ribbon-node.active{
            color: #2f3437;
            font-weight: 600;
        }

.ribbon-apex .ribbon-node.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #dc7963;
            border-radius: 2px;
        }

@media (max-width: 768px){.ribbon-apex .ribbon-ribbon{ display: none;  }}

.ribbon-apex {
    background: rgb(255, 255, 255);
    background-image: none;
}

.note-base {
    font-family: var(--font-stack);
    line-height: 1.7;
    color: var(--ink-main);
}
.note-base,
.note-base *,
.note-base *::before,
.note-base *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.note-base{
            display: flex;
            flex-wrap: wrap;
        }

.note-base > *{
            min-width: 0;
        }

.note-base{
            width: 100%;
            background: #1e2022;
            color: rgba(255,255,255,0.7);
            padding: 4vw 5vw;
            flex-direction: column;
            align-items: center;
        }

.note-base .note-base-inner{
            width: 100%;
            max-width: 1280px;
            display: flex;
            justify-content: space-between;
            gap: 3rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 3rem;
            margin-bottom: 2rem;
        }

.note-base .note-base-brand{
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 2px;
            margin-bottom: 1rem;
        }

.note-base .note-base-cols{
            display: flex;
            gap: 4rem;
            flex-wrap: wrap;
        }

.note-base .note-base-col{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            min-width: 120px;
        }

.note-base .note-base-lead{
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

.note-base .note-base-node{
            font-size: 0.9rem;
        }

.note-base .note-base-node:hover{
            color: #fff;
        }

.note-base .note-base-ink{
            width: 100%;
            max-width: 1280px;
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
        }

@media (max-width: 768px){.note-base .note-base-inner{ flex-direction: column; }

.note-base .note-base-ink{ flex-direction: column; gap: 1rem; text-align: center; }}