/* 基础与重置 */
:root {
    --bg-main: #faf9f8;
    --bg-pure: #ffffff;
    --primary: #e471b4;
    --primary-hover: #d35b9d;
    --secondary: #ff8c82;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-light: #888888;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 12px 40px rgba(228, 113, 180, 0.08);
    --shadow-hover: 0 20px 50px rgba(228, 113, 180, 0.15);
    --shadow-solid: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-light: rgba(0, 0, 0, 0.06);
    --transition: all 0.15s ease;
}

* {
    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(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 强制 Flex 规则 & 文本换行 */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}
.flex-bullet {
    min-width: 0;
}
.word-break {
    word-break: break-word;
    overflow-wrap: break-word;
}
.zh-keep {
    word-break: keep-all;
}

/* 导航栏复用样式 */
.crown {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}
.ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}
.crest {
    min-width: 0;
    display: flex;
    align-items: center;
}
.crest img {
    height: 32px;
    width: auto;
}
.index {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    min-width: 0;
}
.ribbon-jump {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.ribbon-jump:hover {
    color: var(--primary);
    background: rgba(228, 113, 180, 0.05);
}
.ribbon-jump.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(228, 113, 180, 0.1);
}

/* 响应式导航 */
@media (max-width: 768px) {
    .index {
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
        margin-top: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .ribbon-jump {
        white-space: nowrap;
    }
}

/* 布局容器 */
.binder {
    width: 100%;
    overflow: hidden;
}
.envelope {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/*  typography */
.topic-mega {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-main);
    white-space: normal;
}
.topic-prime {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 24px;
}
.topic-sub {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}
.ink-lead {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
}
.ink-base {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 交互组件 */
.stamp-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--bg-pure);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(228, 113, 180, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.stamp-primary:hover, .stamp-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(228, 113, 180, 0.4);
}

/* --- 第一屏 (Hero) --- */
.canvas {
    position: relative;
    padding: 80px 0 120px;
    background: var(--bg-pure);
    overflow: hidden;
}
.canvas::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 20%, rgba(228, 113, 180, 0.03) 20.1%, rgba(255, 140, 130, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}
.deck {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 60px;
}
.deck-left {
    flex: 1 1 500px;
}
.deck-right {
    flex: 1 1 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.plate-dataui {
    width: 100%;
    max-width: 560px;
    height: 400px;
    position: relative;
}
/* Hero Data UI 细节 */
.cloud-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 100px;
    background: var(--bg-pure);
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.cloud-core::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: var(--bg-pure);
    border-radius: 50%;
}
.cloud-core::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--bg-pure);
    border-radius: 50%;
}
.cloud-core svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    position: relative;
    z-index: 2;
}
.device-node {
    position: absolute;
    background: var(--bg-pure);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid var(--border-light);
}
.device-pc {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 80px;
}
.device-phone {
    bottom: 10%;
    right: 5%;
    width: 60px;
    height: 120px;
    border-radius: var(--radius-lg);
}
.data-line {
    position: absolute;
    border: 2px dashed rgba(228, 113, 180, 0.3);
    z-index: 1;
}
.line-1 {
    top: 25%;
    left: 20%;
    width: 30%;
    height: 25%;
    border-bottom: none;
    border-right: none;
    border-top-left-radius: 20px;
}
.line-2 {
    bottom: 25%;
    right: 15%;
    width: 35%;
    height: 25%;
    border-top: none;
    border-left: none;
    border-bottom-right-radius: 20px;
}
.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulseMove 3s infinite linear;
}
.dot-1 { top: 25%; left: 20%; animation-name: pulseMove1; }
.dot-2 { bottom: 25%; right: 15%; animation-name: pulseMove2; }

@keyframes pulseMove1 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; transform: translate(168px, 100px); }
    100% { transform: translate(168px, 100px); opacity: 0; }
}
@keyframes pulseMove2 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; transform: translate(-196px, -100px); }
    100% { transform: translate(-196px, -100px); opacity: 0; }
}

/* --- 第二屏 (Sync) --- */
.folder {
    padding: 100px 0;
    background: var(--bg-main);
}
.folder-layout {
    align-items: center;
    gap: 80px;
}
.folder-ink {
    flex: 1 1 400px;
}
.folder-visual {
    flex: 1 1 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sync-stage {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}
.pane-state {
    background: var(--bg-pure);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 220px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: var(--transition);
}
.pane-state:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.state-crown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}
.state-topic {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.state-tab {
    background: rgba(228, 113, 180, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.state-body {
    display: flex;
    align-items: center;
    gap: 12px;
}
.state-glyph {
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2; /* Word Blue like */
}
.state-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stripe-skeleton {
    height: 6px;
    background: #e1e4e8;
    border-radius: 3px;
    width: 100%;
}
.stripe-skeleton:last-child {
    width: 60%;
}
.sync-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    gap: 8px;
}
.sync-arrow svg {
    width: 32px;
    height: 32px;
    animation: spin 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- 第三屏 (Collab) --- */
.ream {
    padding: 100px 0;
    background: var(--bg-pure);
}
.ream-crown {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.ream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.folio {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
}
.folio:hover {
    box-shadow: var(--shadow-soft);
}
.folio-visual {
    height: 200px;
    background: var(--bg-pure);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Share UI Mock */
.mock-share {
    width: 80%;
    background: var(--bg-pure);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mock-input {
    background: var(--bg-main);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.mock-stamp {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}
/* Collab UI Mock */
.mock-doc {
    width: 70%;
    height: 80%;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 20px;
    position: relative;
}
.mock-cursor {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mock-cursor-1 { top: 30%; left: 40%; color: #f5a623; }
.mock-cursor-2 { top: 60%; left: 20%; color: #4a90e2; }
.mock-tab {
    background: currentColor;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.stack-avatars {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
}
.crest-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-pure);
    margin-left: -8px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.bullet-index {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.bullet {
    display: flex;
    align-items: center;
    gap: 12px;
}
.glyph-check {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* --- 第四屏 (Security) --- */
.leaf {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-pure));
}
.leaf-layout {
    background: #1e1e24; /* Dark trust pane */
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}
.leaf-layout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(228, 113, 180, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.leaf-ink {
    flex: 1 1 350px;
    color: var(--bg-pure);
    position: relative;
    z-index: 2;
}
.leaf-ink .topic-prime {
    color: var(--bg-pure);
}
.leaf-ink .ink-base {
    color: rgba(255, 255, 255, 0.7);
}
.leaf-visual {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}
.glyph-shield {
    width: 120px;
    height: 120px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(228, 113, 180, 0.4));
}
.history-stack {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stripe-history {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-ink {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}
.history-status {
    color: #4caf50;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 页脚 */
.tray {
    background: var(--bg-pure);
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}
.tray-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.tray-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}
.tray-jump {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.tray-jump:hover {
    color: var(--primary);
}
.tray-ink {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .canvas { padding: 60px 0; }
    .topic-mega { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .deck { flex-direction: column; text-align: center; }
    .folder-layout { flex-direction: column; text-align: center; }
    .leaf-layout { padding: 40px 24px; text-align: center; }
    .plate-dataui { height: 300px; }
    .cloud-core { transform: scale(0.8) translate(-50%, -50%); transform-origin: top left; }
    .sync-stage { flex-direction: column; }
    .sync-arrow svg { transform: rotate(90deg); }
    @keyframes spin { 100% { transform: rotate(450deg); } } /* Adjust spin for vertical layout */
}

.ribbon-crown {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink-dark);
}
.ribbon-crown,
.ribbon-crown *,
.ribbon-crown *::before,
.ribbon-crown *::after {
    box-sizing: border-box;
}

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

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

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

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

.ribbon-crown a.ribbon-ribbon-jump {
    --aisite-shell-nav-padding: 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-crown a.ribbon-ribbon-jump,
.ribbon-crown a.ribbon-ribbon-jump:hover,
.ribbon-crown a.ribbon-ribbon-jump:focus,
.ribbon-crown a.ribbon-ribbon-jump:active,
.ribbon-crown a.ribbon-ribbon-jump.active,
.ribbon-crown a.ribbon-ribbon-jump[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-crown{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            padding: 15px 5vw;
        }

.ribbon-crown .ribbon-ribbon{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

.ribbon-crown .ribbon-crest{
            flex: 0 0 auto;
            min-width: 0;
        }

.ribbon-crown .ribbon-crest img{
            height: 32px;
            display: block;
        }

.ribbon-crown .ribbon-index{
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            align-items: center;
        }

.ribbon-crown .ribbon-ribbon-jump{
            text-decoration: none;
            color: #4a4a4a;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.15s ease;
            position: relative;
        }

.ribbon-crown .ribbon-ribbon-jump:hover, .ribbon-crown .ribbon-ribbon-jump:focus{
            color: #e471b4;
        }

.ribbon-crown .ribbon-ribbon-jump.active{
            color: #e471b4;
        }

.ribbon-crown .ribbon-ribbon-jump.active::after{
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #e471b4;
            border-radius: 2px;
        }

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

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

.endnote-base {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink-dark);
}
.endnote-base,
.endnote-base *,
.endnote-base *::before,
.endnote-base *::after {
    box-sizing: border-box;
}

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

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

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

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

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

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

.endnote-base p.endnote-ink{
            word-break: keep-all;
        }

.endnote-base{
            background: #ffffff;
            padding: 40px 5vw;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            text-align: center;
            color: #8c8c8c;
        }

.endnote-base .endnote-base-stack{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            margin-bottom: 20px;
        }

.endnote-base .endnote-base-jump{
            color: #4a4a4a;
            text-decoration: none;
            transition: all 0.15s ease;
        }

.endnote-base .endnote-base-jump:hover, .endnote-base .endnote-base-jump:focus{
            color: #e471b4;
        }