/* ============================================================
   飞书 vs 钉钉 深度对比报告 — 长页面样式 v2.0
   优化：视觉层次 / 布局精确 / 性能提升 / 移动端修复
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
    /* 颜色体系 */
    --color-bg:           #FAFAF9;
    --color-surface:      #FFFFFF;
    --color-border:       #E7E5E4;
    --color-border-light: #F0EFEE;
    --color-text:         #1C1917;
    --color-text-sec:     #44403C;
    --color-text-muted:   #78716C;
    --color-text-subtle:  #A8A29E;

    --color-success:  #059669;
    --color-info:     #2563EB;
    --color-warning:  #D97706;
    --color-danger:   #E11D48;
    --color-purple:   #7C3AED;

    /* 排版 */
    --font-sans: 'DM Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 圆角 */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);

    /* 侧边栏 & 内容宽度 */
    --sidebar-width: 228px;
    --content-max:   920px;
    --content-pad:   64px;
}

/* ---- 重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* JS 未加载降级：animate-on-scroll 直接可见 */
.no-js .animate-on-scroll { opacity: 1 !important; transform: none !important; }

/* 辅助功能 */
.skip-to-content {
    position: absolute; top: -40px; left: 16px; z-index: 9999;
    background: var(--color-info); color: white; padding: 8px 16px;
    border-radius: var(--radius); text-decoration: none; font-size: 13px;
    transition: top .2s;
}
.skip-to-content:focus { top: 8px; }

/* ============================================================
   布局
============================================================ */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   折叠按钮 — fixed 定位，始终可见
============================================================ */
.sidebar-collapse-btn {
    position: fixed;
    top: 16px;
    left: calc(var(--sidebar-width) - 12px);
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left .28s ease, background .15s, color .15s, border-color .15s, box-shadow .15s;
    z-index: 300;
    box-shadow: 0 1px 5px rgba(0,0,0,0.14);
    line-height: 1;
}
.sidebar-collapse-btn.collapsed-pos {
    left: 8px;
}
.sidebar-collapse-btn:hover {
    background: var(--color-info);
    color: white;
    border-color: var(--color-info);
    box-shadow: 0 2px 10px rgba(37,99,235,0.30);
}
.sidebar-collapse-btn:focus-visible {
    outline: 2px solid var(--color-info);
    outline-offset: 2px;
}

/* ============================================================
   左侧 TOC 导航
============================================================ */
.sidebar-nav {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0 0;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    transition: width .28s ease, min-width .28s ease, opacity .2s ease;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    flex-shrink: 0;
    /* 阅读进度条用 flex 推到底部 */
    display: flex;
    flex-direction: column;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* 折叠状态 */
.sidebar-nav.sidebar-collapsed {
    width: 0;
    min-width: 0;
    border-right-color: transparent;
    opacity: 0;
    pointer-events: none;
}

/* 文档标题 */
.sidebar-doc-title {
    padding: 4px 16px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-subtle);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 6px;
    flex-shrink: 0;
}

/* TOC 分组 */
.toc-section {
    padding: 4px 0;
    flex-shrink: 0;
}
.toc-group-label {
    padding: 8px 16px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOC 链接 */
.toc-link {
    display: block;
    padding: 4px 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    line-height: 1.5;
}
.toc-link.toc-sub {
    padding-left: 24px;
    font-size: 12.5px;
}
.toc-link:hover {
    color: var(--color-text);
    background: rgba(0,0,0,0.03);
}
.toc-link.toc-active {
    color: var(--color-info);
    border-left-color: var(--color-info);
    background: rgba(37,99,235,0.05);
    font-weight: 600;
}

/* 阅读进度条 — flex 推到底部，用 mt-auto */
.reading-progress-wrap {
    margin-top: auto;
    padding: 12px 16px 20px;
    flex-shrink: 0;
    border-top: 1px solid var(--color-border-light);
}
.reading-progress-label {
    font-size: 10px;
    color: var(--color-text-subtle);
    margin-bottom: 5px;
    letter-spacing: 0.04em;
}
.reading-progress-track {
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}
.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-info), var(--color-purple));
    border-radius: 2px;
    transition: width .2s ease;
    width: 0%;
}

/* ============================================================
   右侧主内容区
   content-area 撑满剩余空间，content-inner 居中限宽
============================================================ */
.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg);
}
.content-inner {
    width: 100%;
    max-width: var(--content-max);
    padding: 48px var(--content-pad) 120px;
}
@media (max-width: 1100px) {
    :root { --content-pad: 40px; }
}
@media (max-width: 900px) {
    :root { --content-pad: 28px; }
    .content-inner { padding-top: 36px; }
}

/* ============================================================
   移动端
============================================================ */
@media (max-width: 768px) {
    .layout-wrapper { flex-direction: column; }

    .sidebar-nav {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .28s ease;
        box-shadow: var(--shadow-md);
        opacity: 1;
    }
    .sidebar-nav.mobile-open {
        transform: translateX(0);
    }
    /* 移动端按钮始终在左上角 */
    .sidebar-collapse-btn {
        left: 12px !important;
        top: 12px;
    }
    .content-area {
        flex: 1;
        align-items: stretch;
    }
    .content-inner {
        padding: 52px 16px 80px;
    }
}

/* ============================================================
   文档头部
============================================================ */
.doc-header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 36px;
}
.doc-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.doc-meta-tag {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-info);
    background: rgba(37,99,235,0.08);
    padding: 3px 10px;
    border-radius: 20px;
}
.doc-meta-date {
    font-size: 12px;
    color: var(--color-text-muted);
}
.doc-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: 6px;
}
.doc-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-sec);
    margin-bottom: 12px;
}
.doc-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 760px;
    margin-bottom: 16px;
}
.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    font-size: 11.5px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}
.tag-green  { background: rgba(5,150,105,0.1);  color: #059669; }
.tag-orange { background: rgba(217,119,6,0.1);   color: #D97706; }
.tag-purple { background: rgba(124,58,237,0.1);  color: #7C3AED; }
.tag-blue   { background: rgba(37,99,235,0.1);   color: #2563EB; }

/* ============================================================
   核心数据统计格
============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 44px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 16px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--stat-accent, var(--color-border));
    transition: box-shadow .15s, transform .15s;
}
.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.stat-info    { --stat-accent: var(--color-info); }
.stat-success { --stat-accent: var(--color-success); }
.stat-warning { --stat-accent: var(--color-warning); }
.stat-purple  { --stat-accent: var(--color-purple); }

.stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 11.5px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ============================================================
   章节标识符（01/02/03...）— 更有层次感
============================================================ */
.doc-chapter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    padding: 36px 0 10px;
    margin-top: 8px;
}
.doc-chapter-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-light);
}

/* ============================================================
   章节块
============================================================ */
.doc-section {
    padding: 28px 0 36px;
    border-bottom: 1px solid var(--color-border-light);
}
.doc-section-last { border-bottom: none; }

.doc-section-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 12px;
}
.doc-section-desc {
    font-size: 14px;
    color: var(--color-text-sec);
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 820px;
}

/* ============================================================
   Callout 提示框
============================================================ */
.doc-callout {
    display: flex;
    gap: 12px;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.7;
}
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.callout-info    { background: rgba(37,99,235,0.06);  border-left: 3px solid var(--color-info); }
.callout-warning { background: rgba(217,119,6,0.06);  border-left: 3px solid var(--color-warning); }
.callout-purple  { background: rgba(124,58,237,0.06); border-left: 3px solid var(--color-purple); }
.callout-success { background: rgba(5,150,105,0.06);  border-left: 3px solid var(--color-success); }

/* ============================================================
   VS 战略对比卡片
============================================================ */
.vs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
    margin: 20px 0;
}
@media (max-width: 700px) { .vs-grid { grid-template-columns: 1fr; } }

.vs-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
    will-change: transform;
}
.vs-card:hover { box-shadow: var(--shadow); }
.feishu-card   { border-top: 3px solid var(--color-success); }
.dingtalk-card { border-top: 3px solid var(--color-warning); }

.vs-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.vs-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.feishu-card .vs-title   { color: var(--color-success); }
.dingtalk-card .vs-title { color: var(--color-warning); }
.vs-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.vs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.vs-list li {
    font-size: 13px;
    color: var(--color-text-sec);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}
.vs-list li::before {
    content: "·";
    position: absolute; left: 0;
    color: var(--color-text-subtle);
}
.vs-score {
    font-size: 12px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-light);
    padding-top: 10px;
}
.score-val { font-weight: 700; font-size: 15px; }
.vs-divider {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 36px;
}

/* ============================================================
   Feature 网格
============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    will-change: transform;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.feature-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    margin-bottom: 10px;
}
.feature-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}
.feature-desc {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
}
.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.feature-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.badge-success { background: rgba(5,150,105,0.1);  color: #059669; }
.badge-info    { background: rgba(37,99,235,0.1);  color: #2563EB; }
.badge-purple  { background: rgba(124,58,237,0.1); color: #7C3AED; }
.badge-warning { background: rgba(217,119,6,0.1);  color: #D97706; }

/* ============================================================
   时间线（竖向）
============================================================ */
.timeline {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
    margin: 18px 0;
}
.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    margin-left: -26px;
}
.timeline-title {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ============================================================
   Case（案例）Grid
============================================================ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}
@media (max-width: 700px) { .case-grid { grid-template-columns: 1fr 1fr; } }

.case-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    transition: box-shadow .15s, transform .15s;
    will-change: transform;
}
.case-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.case-metric {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-info);
    letter-spacing: -0.02em;
    margin-bottom: 5px;
    line-height: 1.2;
}
.case-label {
    font-size: 12px;
    color: var(--color-text-sec);
    margin-bottom: 6px;
    line-height: 1.5;
}
.case-company {
    font-size: 11px;
    color: var(--color-text-subtle);
    font-style: italic;
}

/* ============================================================
   Bento Grid（信息卡）
============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}
.bento-large { grid-column: 1 / -1; }
@media (max-width: 600px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    border-left: 3px solid var(--bento-accent, var(--color-info));
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.bento-card:hover { box-shadow: var(--shadow); }
.bento-title {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--bento-accent, var(--color-info));
}
.bento-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bento-tags span {
    font-size: 11.5px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 3px 9px;
    border-radius: 20px;
    color: var(--color-text-sec);
}

/* ============================================================
   表格
============================================================ */
.table-wrap {
    overflow-x: auto;
    margin: 14px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--color-surface);
}
.doc-table thead { background: #F5F4F2; }
.doc-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--color-text-sec);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.doc-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: top;
    line-height: 1.55;
}
.doc-table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.012); }
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover td { background: rgba(37,99,235,0.03); }
.doc-table .highlight-col { background: rgba(37,99,235,0.04) !important; }

/* 对比徽章 */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-feishu   { background: rgba(5,150,105,0.1);  color: #059669; }
.badge-dingtalk { background: rgba(217,119,6,0.1);  color: #D97706; }
.badge-tie      { background: rgba(124,58,237,0.1); color: #7C3AED; }

/* ============================================================
   进度条对比
============================================================ */
.progress-compare {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 14px 0;
}
.progress-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}
.progress-bars { display: flex; flex-direction: column; gap: 7px; }
.progress-bar-row {
    display: grid;
    grid-template-columns: 44px 1fr minmax(80px, auto);
    align-items: center;
    gap: 10px;
}
.bar-brand { font-size: 12px; font-weight: 600; text-align: right; }
.bar-track {
    height: 7px;
    background: var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}
.feishu-fill   { background: linear-gradient(90deg, #059669, #2563EB); }
.dingtalk-fill { background: linear-gradient(90deg, #D97706, #E11D48); }
.bar-val {
    font-size: 11.5px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   硬件卡片
============================================================ */
.hardware-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}
@media (max-width: 700px) { .hardware-grid { grid-template-columns: 1fr; } }

.hardware-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    will-change: transform;
}
.hardware-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.hw-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.hw-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 7px;
}
.hw-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}
.hw-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hw-specs span {
    font-size: 11.5px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 3px 9px;
    border-radius: 20px;
    color: var(--color-text-sec);
}

/* ============================================================
   深度洞察 Hero
============================================================ */
.insight-hero {
    background: linear-gradient(135deg,
        rgba(124,58,237,0.06) 0%,
        rgba(37,99,235,0.04) 60%,
        rgba(5,150,105,0.03) 100%);
    border-left: 4px solid var(--color-purple);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin: 28px 0 22px;
}
.insight-hero-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-purple);
    margin-bottom: 8px;
}
.insight-hero-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 9px;
    line-height: 1.35;
}
.insight-hero-desc {
    font-size: 13.5px;
    color: var(--color-text-sec);
    line-height: 1.8;
}

/* ============================================================
   L1-L4 洞察层级
============================================================ */
.insight-level {
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.insight-level:hover { box-shadow: var(--shadow); }
.insight-level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: #F9F8F7;
    border-bottom: 1px solid var(--color-border);
}
.insight-level-content {
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--color-text-sec);
    line-height: 1.8;
}
.insight-level-content p { margin-bottom: 10px; }
.insight-level-content p:last-child { margin-bottom: 0; }

.level-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}
.level-1 { background: rgba(217,119,6,0.1);  color: #D97706; }
.level-2 { background: rgba(225,29,72,0.1);  color: #E11D48; }
.level-3 { background: rgba(37,99,235,0.1);  color: #2563EB; }
.level-4 { background: rgba(124,58,237,0.1); color: #7C3AED; }
.level-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

/* ============================================================
   哲学对比卡片
============================================================ */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}
@media (max-width: 700px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    border-top: 3px solid;
}
.feishu-phil   { border-top-color: var(--color-success); }
.dingtalk-phil { border-top-color: var(--color-warning); }
.phil-brand {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.feishu-phil   .phil-brand { color: var(--color-success); }
.dingtalk-phil .phil-brand { color: var(--color-warning); }
.phil-quote {
    font-size: 13.5px;
    font-weight: 600;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 9px;
    border-left: 2px solid var(--color-border);
    padding-left: 10px;
    line-height: 1.5;
}
.phil-body {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================================
   历史对比表
============================================================ */
.history-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 12px 0;
    font-size: 13px;
}
.history-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr 1.5fr;
    border-bottom: 1px solid var(--color-border-light);
}
.history-row:last-child { border-bottom: none; }
.history-header {
    background: #F5F4F2;
    font-weight: 600;
    font-size: 11.5px;
    color: var(--color-text-sec);
}
.history-row > div {
    padding: 9px 13px;
    border-right: 1px solid var(--color-border-light);
    line-height: 1.5;
}
.history-row > div:last-child { border-right: none; }
.result-cell { color: var(--color-success); font-weight: 500; }
.result-unknown { color: var(--color-purple); font-weight: 500; }
.highlight-row > div { background: rgba(124,58,237,0.04); }

/* ============================================================
   类比卡片
============================================================ */
.analogy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}
@media (max-width: 700px) { .analogy-grid { grid-template-columns: 1fr; } }
.analogy-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.analogy-icon { font-size: 22px; margin-bottom: 8px; }
.analogy-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--color-text);
}
.analogy-desc {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 9px;
}
.analogy-strength { font-size: 12px; color: var(--color-success); margin-bottom: 4px; }
.analogy-weakness { font-size: 12px; color: var(--color-warning); }
.analogy-conclusion {
    background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(37,99,235,0.03));
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--color-text-sec);
    line-height: 1.8;
    margin-top: 12px;
}

/* ============================================================
   护城河分析
============================================================ */
.moat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0;
}
@media (max-width: 700px) { .moat-grid { grid-template-columns: 1fr; } }

.moat-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.moat-brand {
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.feishu-moat   { background: rgba(5,150,105,0.07);  color: #059669; border-bottom: 1px solid rgba(5,150,105,0.12); }
.dingtalk-moat { background: rgba(217,119,6,0.07);  color: #D97706; border-bottom: 1px solid rgba(217,119,6,0.12); }
.moat-item {
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-border-light);
}
.moat-item:last-child { border-bottom: none; }
.moat-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text);
}
.moat-depth {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}
.depth-highest { background: rgba(225,29,72,0.1);   color: #E11D48; }
.depth-high    { background: rgba(217,119,6,0.1);   color: #D97706; }
.depth-mid     { background: rgba(37,99,235,0.1);   color: #2563EB; }
.depth-low     { background: rgba(120,113,108,0.1); color: #78716C; }
.moat-desc { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }

/* 裁决卡 — 有明确背景和样式 */
.moat-verdict {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(124,58,237,0.03));
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--color-text-sec);
    margin-top: 6px;
    box-shadow: var(--shadow-sm);
}
.verdict-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   风险卡片
============================================================ */
.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0;
}
@media (max-width: 700px) { .risk-grid { grid-template-columns: 1fr; } }

.risk-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feishu-risk   { border-top: 3px solid var(--color-success); }
.dingtalk-risk { border-top: 3px solid var(--color-warning); }
.risk-brand {
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
}
.risk-item {
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-border-light);
}
.risk-item:last-child { border-bottom: none; }
.risk-level {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.critical .risk-level { color: var(--color-danger); }
.high     .risk-level { color: var(--color-warning); }
.medium   .risk-level { color: var(--color-info); }
.risk-name { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.risk-desc { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   水平时间线（趋势推演）
============================================================ */
.timeline-h {
    display: flex;
    flex-direction: column;
    padding-left: 22px;
    border-left: 2px solid var(--color-border);
    margin: 18px 0;
}
.tlh-item {
    position: relative;
    padding: 0 0 26px 20px;
}
.tlh-item:last-child { padding-bottom: 0; }
.tlh-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--color-info);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4.5px rgba(37,99,235,0.25);
    transition: background .2s;
}
.tlh-item:hover::before { background: var(--color-purple); }
.tlh-year {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-info);
    margin-bottom: 4px;
}
.tlh-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.tlh-body {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.72;
}
.tlh-signal {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--color-info);
    font-style: italic;
    opacity: 0.85;
}

/* ============================================================
   参考资料网格
============================================================ */
.ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}
@media (max-width: 700px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card {
    display: block;
    text-decoration: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    will-change: transform;
}
.ref-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--color-info);
}
.ref-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-info);
    margin-bottom: 5px;
}
.ref-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.4;
}
.ref-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ============================================================
   页脚
============================================================ */
.doc-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.footer-info {
    font-size: 11.5px;
    color: var(--color-text-subtle);
}

/* ============================================================
   回到顶部按钮
============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--color-text);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}
.scroll-to-top.visible {
    opacity: 0.78;
    transform: translateY(0);
}
.scroll-to-top:hover { opacity: 1; }

/* ============================================================
   入场动画（IntersectionObserver 驱动）
============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .42s ease, transform .42s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 链式延迟（轻微错落）*/
.feature-card:nth-child(2) { transition-delay: .06s; }
.feature-card:nth-child(3) { transition-delay: .12s; }
.feature-card:nth-child(4) { transition-delay: .04s; }
.feature-card:nth-child(5) { transition-delay: .10s; }
.feature-card:nth-child(6) { transition-delay: .16s; }
.timeline-item:nth-child(2) { transition-delay: .07s; }
.timeline-item:nth-child(3) { transition-delay: .14s; }
.timeline-item:nth-child(4) { transition-delay: .21s; }
.tlh-item:nth-child(2) { transition-delay: .09s; }
.tlh-item:nth-child(3) { transition-delay: .18s; }
.tlh-item:nth-child(4) { transition-delay: .27s; }
.case-card:nth-child(2) { transition-delay: .07s; }
.case-card:nth-child(3) { transition-delay: .14s; }
.stat-card:nth-child(2) { transition-delay: .06s; }
.stat-card:nth-child(3) { transition-delay: .12s; }
.stat-card:nth-child(4) { transition-delay: .18s; }

/* ============================================================
   Print 样式（顺手加）
============================================================ */
@media print {
    .sidebar-nav,
    .sidebar-collapse-btn,
    .scroll-to-top { display: none; }
    .content-area { display: block; }
    .content-inner { padding: 0; max-width: 100%; }
    .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}
