/* ==========================================================================
   CSS 变量定义 (继承自视觉家族契约)
   ========================================================================== */
:root {
    --bg-deep: #08090b;
    --bg-surface: #12141a;
    --bg-elevated: #1a1d26;
    --text-bright: #ffffff;
    --text-dim: #a0a5b5;
    --accent: #f1780e;
    --accent-hover: #ff9033;
    --radius-lg: 22px;
    --radius-md: 18px;
    --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-highlight: 0 4px 20px rgba(241, 120, 14, 0.15);
    --transition-speed: 0.25s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

/* 强制文本换行规范 */
.sheath, .prose, .topic, .path, .macro {
    word-break: break-word;
    overflow-wrap: break-word;
}
.prose {
    word-break: keep-all; /* 中文内容建议保持词组完整 */
}
.topic {
    white-space: normal; /* 标题禁止nowrap */
}

/* ==========================================================================
   强制导航栏样式 (完全复用首页)
   ========================================================================== */
.apex {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap; /* 强制Flex子项换行 */
    align-items: center;
    justify-content: space-between;
}

.ribbon {
    /* 与 .scroll 组合使用 */
}

.seal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0; /* 强制Flex子项防溢出 */
}

.seal img {
    height: 32px;
    width: auto;
    display: block;
}

.stack {
    display: flex;
    flex-wrap: wrap; /* 强制Flex子项换行 */
    gap: 32px;
    align-items: center;
    min-width: 0; /* 强制Flex子项防溢出 */
}

.path {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s ease;
    min-width: 0;
}

.path:hover {
    color: var(--text-bright);
}

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

/* 导航栏响应式 */
@media (max-width: 768px) {
    .scroll {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }
    .stack {
        gap: 16px;
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   页面结构与布局容器 (同族变体)
   ========================================================================== */
.sheath {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-wrap: wrap;
}

.binder {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; /* 强制Flex子项换行 */
    min-width: 0;
}

.chunk {
    max-width: 1100px; /* 沿用首页主版心 */
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* 强制Flex子项换行 */
    min-width: 0;
}

/* ==========================================================================
   Section 1: Hero Tool (高精度 PDF 转 Word)
   创意种子: HERO:vertical_stack
   ========================================================================== */
.cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: radial-gradient(circle at center top, rgba(241, 120, 14, 0.08) 0%, transparent 50%);
    flex-wrap: wrap;
    min-width: 0;
}

.front {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.topic {
    color: var(--text-bright);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    min-width: 0;
}

.front .prose {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.6;
    min-width: 0;
}

/* 转换动效容器 */
.tape {
    width: 100%;
    max-width: 800px;
    height: 240px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-base);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* 动效元素 */
.tape::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(241, 120, 14, 0.05), transparent);
    transform: translateX(-100%);
    animation: sweep 3s infinite linear;
}

@keyframes sweep {
    100% { transform: translateX(100%); }
}

.glyph-doc {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-width: 0;
    transition: transform var(--transition-speed);
}
.tape:hover .glyph-doc {
    transform: translateY(-5px);
}

.glyph-pdf {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.3));
    border: 1px solid rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.1);
}
.glyph-word {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.3));
    border: 1px solid rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.1);
}

.glyph-center {
    width: 60px;
    height: 60px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-width: 0;
}

.glyph-center svg {
    width: 40px;
    height: 40px;
    fill: var(--accent);
    animation: pulse-rotate 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); filter: drop-shadow(0 0 10px var(--accent)); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   Section 2: Editor Features (强大的原生 PDF 编辑器)
   ========================================================================== */
.draft {
    flex-direction: column;
    gap: 48px;
}

.draft .topic {
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
    width: 100%;
}

.node-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.sheet {
    flex: 1;
    min-width: 280px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.sheet:hover {
    transform: translateY(-8px);
    border-color: rgba(241, 120, 14, 0.3);
    box-shadow: var(--shadow-highlight), var(--shadow-base);
    background-color: var(--bg-elevated);
}

.sheet .glyph {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(241, 120, 14, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    min-width: 0;
    transition: background var(--transition-speed);
}

.sheet:hover .glyph {
    background: rgba(241, 120, 14, 0.2);
}

.sheet .glyph svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.sheet h3.topic {
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-bottom: 16px;
    text-align: left;
}

.sheet .prose {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ==========================================================================
   Section 3: Organize Flow (文档拆分与合并)
   ========================================================================== */
.folio {
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.folio .sheath-prose {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
}

.folio .topic {
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: left;
    margin-bottom: 20px;
}

.folio .prose {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.sheath-visual {
    flex: 1;
    min-width: 320px;
    height: 360px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.visual-binder {
    width: 90px;
    height: 120px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-width: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.visual-binder::after {
    content: '';
    width: 50%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* 合并/拆分动效表现 */
.sheath-visual:hover .visual-binder:nth-child(1) {
    transform: translate(-50px, -20px) rotate(-10deg);
    border-color: var(--accent);
}
.sheath-visual:hover .visual-binder:nth-child(2) {
    transform: translate(50px, 20px) rotate(10deg);
    border-color: var(--accent);
}
.visual-binder:nth-child(1) { transform: translate(-10px, 0) rotate(-5deg); z-index: 2; }
.visual-binder:nth-child(2) { transform: translate(10px, 0) rotate(5deg); z-index: 1; }

/* ==========================================================================
   Section 4: Batch Process (批量处理，效率翻倍)
   ========================================================================== */
.slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(26, 29, 38, 0.5));
    border-radius: var(--radius-lg);
    padding: 100px 24px;
    margin-bottom: 80px;
    position: relative;
}

.slide .topic {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.slide .prose {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.macro {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-highlight);
    min-width: 0;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.macro:hover, .macro:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 120, 14, 0.4);
    color: #fff;
}

/* ==========================================================================
   Footer (页脚)
   ========================================================================== */
.root {
    background-color: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 24px;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

.appendix {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.appendix .topic {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 8px;
    font-weight: 700;
}

.appendix .prose {
    font-size: 0.85rem;
    color: rgba(160, 165, 181, 0.6);
}

.appendix-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    min-width: 0;
}

.appendix-links .path {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .appendix {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .appendix-links {
        justify-content: center;
    }
}

.ribbon-apex .ribbon-scroll{
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

.ribbon-apex{
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: rgba(8, 9, 11, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

.ribbon-apex .ribbon-ribbon{
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 80px;
        }

.ribbon-apex .ribbon-seal img{ height: 32px; width: auto; }

.ribbon-apex .ribbon-stack{
            display: flex;
            gap: 2rem;
        }

.ribbon-apex .ribbon-path{
            color: #a0a5b5;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            padding: 8px 0;
            position: relative;
        }

.ribbon-apex .ribbon-path:hover, .ribbon-apex .ribbon-path:focus{
            color: #ffffff;
        }

.ribbon-apex .ribbon-path.active{ color: #f1780e; }

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

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

.ribbon-apex {
    background: rgb(8, 9, 11);
    background-image: none;
}

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

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

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

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

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

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

.endnote-root .endnote-scroll{
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

.endnote-root .endnote-topic{
            color: #ffffff;
            white-space: normal;
            font-weight: 700;
        }

.endnote-root .endnote-prose{ word-break: keep-all; margin-bottom: 1.5rem; }

.endnote-root .endnote-path{
            color: #a0a5b5;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            padding: 8px 0;
            position: relative;
        }

.endnote-root .endnote-path:hover, .endnote-root .endnote-path:focus{
            color: #ffffff;
        }

.endnote-root .endnote-path.active{ color: #f1780e; }

.endnote-root .endnote-path.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #f1780e;
            border-radius: 2px;
        }

.endnote-root{
            background-color: #050608;
            padding: 60px 0 40px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

.endnote-root .endnote-root-grid{
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 4rem;
            margin-bottom: 4rem;
        }

.endnote-root .endnote-topic{ font-size: 1.5rem; margin-bottom: 1.5rem; color: #fff; }

.endnote-root .endnote-root-links{ display: flex; flex-direction: column; gap: 0.8rem; }

.endnote-root .endnote-root-links .endnote-path{ padding: 0; font-size: 0.95rem; }

.endnote-root .endnote-legal{
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 2rem;
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #a0a5b5;
        }

@media (max-width: 992px){.endnote-root .endnote-root-grid{ grid-template-columns: 1fr; gap: 2rem; }}