/* ==========================================================================
   CSS 变量定义 (继承自首页视觉契约)
   ========================================================================== */
:root {
    --wps-primary: #5d8bdf;
    --wps-primary-hover: #4a72bc;
    --wps-primary-light: #e6f0fa;
    --wps-text: #475569;
    --wps-text-dark: #1e293b;
    --wps-bg: #ffffff;
    --wps-bg-alt: #f8fafc;
    --wps-radius: 20px;
    --wps-radius-sm: 12px;
    --wps-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --wps-shadow-hover: 0 12px 40px rgba(93, 139, 223, 0.12);
    --wps-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wps-transition: all 0.25s ease;
}

/* ==========================================================================
   基础重置与排版
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--wps-font);
    color: var(--wps-text);
    background-color: var(--wps-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 强制 Flexbox 与文本换行规范 */
.batch {
    display: flex;
    flex-wrap: wrap;
}

.batch > * {
    min-width: 0;
}

.prose,
.prose-lead,
.head,
.head-huge,
.head-small {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 版心控制 (Ream) */
.ream {
    width: 100%;
    display: block;
}

.fold-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   导航区域 (复用结构匹配样式)
   ========================================================================== */
.apex {
    background-color: var(--wps-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.index > * {
    min-width: 0;
}

.glyph {
    display: flex;
    align-items: center;
}

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

.ribbon {
    gap: 24px;
    align-items: center;
}

.tie {
    text-decoration: none;
    color: var(--wps-text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--wps-transition);
}

.tie:hover {
    color: var(--wps-primary);
}

.tie.active {
    color: var(--wps-primary);
    font-weight: 600;
}

/* ==========================================================================
   组件：按钮 (Seal)
   ========================================================================== */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--wps-transition);
    cursor: pointer;
    border: none;
}

.seal-primary {
    background-color: var(--wps-primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(93, 139, 223, 0.3);
}

.seal-primary:hover,
.seal-primary:focus {
    background-color: var(--wps-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--wps-shadow-hover);
}

.seal-ghost {
    background-color: transparent;
    color: var(--wps-text-dark);
    border: 2px solid #e2e8f0;
}

.seal-ghost:hover,
.seal-ghost:focus {
    border-color: var(--wps-primary);
    color: var(--wps-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   区块 1: 强大的PDF专业处理工具 (Article - Splash)
   ========================================================================== */
.splash {
    background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 100%);
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
}

.splash-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash .head-huge {
    color: var(--wps-text-dark);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    white-space: normal;
    max-width: 800px;
}

.splash .prose-lead {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--wps-text);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.splash-actions {
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

/* Hero 视觉承载 - SVG 动效区 */
.splash-graphic {
    width: 100%;
    max-width: 800px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wps-primary-light) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    animation: pulse 4s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

.splash-rune-fold {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
}

.splash-doc {
    width: 120px;
    height: 160px;
    background: #ffffff;
    border-radius: var(--wps-radius-sm);
    box-shadow: var(--wps-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: var(--wps-transition);
}

.splash-doc:hover {
    transform: translateY(-5px);
    box-shadow: var(--wps-shadow-hover);
}

.splash-doc svg {
    width: 64px;
    height: 64px;
}

.splash-arrow {
    color: var(--wps-primary);
    animation: slideRight 2s infinite;
}

@keyframes slideRight {
    0% { transform: translateX(-10px); opacity: 0.5; }
    50% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(10px); opacity: 0.5; }
}

/* ==========================================================================
   区块 2: 精准无损的PDF转Word (Section - Binder)
   ========================================================================== */
.binder {
    padding: 80px 0;
    background-color: var(--wps-bg);
}

.binder-head-fold {
    text-align: center;
    margin-bottom: 64px;
}

.binder .head {
    color: var(--wps-text-dark);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.3;
    margin-bottom: 20px;
}

.binder .prose {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
}

/* 流程线 (仅在大屏幕显示) */
@media (min-width: 1024px) {
    .flow-grid::before {
        content: '';
        position: absolute;
        top: 48px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--wps-primary-light) 10%, var(--wps-primary-light) 90%, transparent);
        z-index: 0;
    }
}

.flow-bullet {
    background: #ffffff;
    border-radius: var(--wps-radius);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--wps-transition);
}

.flow-bullet:hover {
    transform: translateY(-8px);
    box-shadow: var(--wps-shadow);
    border-color: var(--wps-primary-light);
}

.flow-rune {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px auto;
    background-color: var(--wps-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(93, 139, 223, 0.1);
    color: var(--wps-primary);
}

.flow-bullet .head-small {
    font-size: 20px;
    color: var(--wps-text-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.flow-bullet .prose-small {
    font-size: 15px;
    color: var(--wps-text);
}

/* ==========================================================================
   区块 3: 像编辑Word一样编辑PDF (Aside - Sheaf)
   ========================================================================== */
.sheaf {
    padding: 100px 0;
    background-color: var(--wps-bg-alt);
    border-top: 1px solid #f1f5f9;
}

.folio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.folio {
    background-color: #ffffff;
    border-radius: var(--wps-radius);
    padding: 40px;
    box-shadow: var(--wps-shadow);
    transition: var(--wps-transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.folio:hover {
    box-shadow: var(--wps-shadow-hover);
    transform: translateY(-4px);
}

.folio-rune {
    width: 64px;
    height: 64px;
    background-color: var(--wps-primary-light);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--wps-primary);
    margin-bottom: 24px;
}

.folio .head-small {
    font-size: 22px;
    color: var(--wps-text-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

.folio .prose {
    font-size: 16px;
    color: var(--wps-text);
}

/* ==========================================================================
   页脚区域 (Base)
   ========================================================================== */
.base {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 64px 0 40px;
}

.base-fold {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

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

.head-base {
    font-size: 24px;
    font-weight: 700;
    color: var(--wps-text-dark);
}

.base-links {
    gap: 24px;
}

.base-prose {
    width: 100%;
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #94a3b8;
}

/* ==========================================================================
   响应式断点
   ========================================================================== */
@media (max-width: 768px) {
    .index {
        justify-content: center;
        gap: 16px;
    }
    
    .ribbon {
        justify-content: center;
        width: 100%;
    }
    
    .splash {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .splash-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 24px;
    }
    
    .seal {
        width: 100%;
    }
    
    .splash-rune-fold {
        gap: 16px;
    }
    
    .splash-doc {
        width: 90px;
        height: 120px;
    }
    
    .splash-doc svg {
        width: 48px;
        height: 48px;
    }
    
    .splash-orbit {
        width: 300px;
        height: 300px;
    }

    .flow-grid,
    .folio-grid {
        grid-template-columns: 1fr;
    }

    .base-fold {
        flex-direction: column;
        text-align: center;
    }
    
    .base-links {
        justify-content: center;
    }
}

.index-apex {
    font-family: var(--wps-font);
    line-height: 1.7;
    color: var(--wps-text);
}
.index-apex,
.index-apex *,
.index-apex *::before,
.index-apex *::after {
    box-sizing: border-box;
}

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

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

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

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

.index-apex a.index-tie.index-active,
.index-apex a.index-tie {
    --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;
}

.index-apex a.index-tie.index-active,
.index-apex a.index-tie.index-active:hover,
.index-apex a.index-tie.index-active:focus,
.index-apex a.index-tie.index-active:active,
.index-apex a.index-tie.index-active.active,
.index-apex a.index-tie.index-active[aria-current="page"],
.index-apex a.index-tie,
.index-apex a.index-tie:hover,
.index-apex a.index-tie:focus,
.index-apex a.index-tie:active,
.index-apex a.index-tie.active,
.index-apex a.index-tie[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);
}

.index-apex .index-batch{
            display: flex;
            flex-wrap: wrap;
        }

.index-apex .index-batch > *{
            min-width: 0;
        }

.index-apex{
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

.index-apex .index-index{
            max-width: 1240px;
            margin: 0 auto;
            padding: 16px 24px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
        }

.index-apex .index-glyph img{
            height: 36px;
            width: auto;
            display: block;
        }

.index-apex .index-ribbon{
            gap: 28px;
            align-items: center;
        }

.index-apex .index-tie{
            color: #475569;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.25s ease;
            white-space: normal;
        }

.index-apex .index-tie:hover, .index-apex .index-tie.index-active{
            color: #5d8bdf;
        }

@media (max-width: 768px){.index-apex .index-ribbon{
                width: 100%;
                margin-top: 16px;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 8px;
            }}

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

.endnote-base {
    font-family: var(--wps-font);
    line-height: 1.7;
    color: var(--wps-text);
}
.endnote-base,
.endnote-base *,
.endnote-base *::before,
.endnote-base *::after {
    box-sizing: border-box;
}

.endnote-base nav,
.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-batch{
            display: flex;
            flex-wrap: wrap;
        }

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

.endnote-base .endnote-tie{
            color: #475569;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.25s ease;
            white-space: normal;
        }

.endnote-base .endnote-tie:hover{
            color: #5d8bdf;
        }

.endnote-base .endnote-head{
            color: #1e293b;
            white-space: normal;
            margin-top: 0;
            font-weight: 700;
        }

.endnote-base .endnote-prose{
            margin-top: 0;
            margin-bottom: 24px;
            word-break: keep-all;
        }

.endnote-base{
            background-color: #1e293b;
            color: #94a3b8;
            padding: 60px 24px 40px;
        }

.endnote-base .endnote-endnote{
            max-width: 1240px;
            margin: 0 auto;
        }

.endnote-base .endnote-batch-base{
            gap: 40px;
            justify-content: space-between;
            margin-bottom: 48px;
        }

.endnote-base .endnote-binder-base{
            flex: 1 1 300px;
            min-width: 260px;
        }

.endnote-base .endnote-head{
            color: #ffffff;
            font-size: 20px;
            margin-bottom: 16px;
        }

.endnote-base .endnote-prose{
            font-size: 14px;
        }

.endnote-base .endnote-margin{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            font-size: 14px;
        }

.endnote-base .endnote-margin .endnote-tie{
            color: #94a3b8;
        }

.endnote-base .endnote-margin .endnote-tie:hover{
            color: #ffffff;
        }