/**

 * 低代码平台对比页 · 五页统一壳层

 * cont / con2 / cos / con3 / con5

 * v=20260613 — 全站 logo 绿主色 + Hero 多屏切换

 */

@import url('page-shell-unified.css?v=20260616');

:root {

    --lc-header-h: 55px;

    --lc-page-offset: 98px;

    --lc-shell-max: 1100px;

    --lc-accent: #10B981;

    --lc-accent-dark: #047857;

    --lc-accent-light: #ecfdf5;

    --lc-hero-grad-a: #f0fdf4;

    --lc-hero-grad-b: #ecfdf5;

    --lc-hero-grad-c: #f8fafc;

}



body.lc-compare-page {

    padding-top: var(--lc-page-offset, 98px);

}



#navbar {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    width: 100%;

    z-index: 50;

}



.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    border: 0;

}



.lc-fixed-stack {

    position: fixed;

    left: 0;

    right: 0;

    top: var(--lc-header-h, 55px);

    z-index: 48;

    background: #fff;

    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);

}



.lc-subnav {

    position: relative;

    background: linear-gradient(90deg, #047857, #10B981);

    box-shadow: none;

}



.lc-subnav-inner {

    max-width: var(--lc-shell-max);

    margin: 0 auto;

    display: none;

    align-items: center;

    justify-content: flex-start;

    flex-wrap: nowrap;

    gap: 0.15rem;

    padding: 0.4rem 1rem;

    overflow-x: auto;

    scrollbar-width: none;

}



.lc-subnav-inner::-webkit-scrollbar {

    display: none;

}



.lc-subnav-link {

    flex-shrink: 0;

    padding: 0.38rem 0.8rem;

    border-radius: 0.5rem;

    color: rgba(255, 255, 255, 0.95);

    font-size: 0.8125rem;

    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    transition: background 0.2s;

}



.lc-subnav-link:hover {

    background: rgba(255, 255, 255, 0.14);

    color: #fff;

}



.lc-subnav-link.is-active {

    background: rgba(255, 255, 255, 0.24);

    font-weight: 600;

}



.lc-subnav-link.lc-subnav-ai {

    margin-left: auto;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.25);

}



.lc-subnav-mobile {

    display: block;

    padding: 0.4rem 1rem;

    max-width: var(--lc-shell-max);

    margin: 0 auto;

}



.lc-subnav-select {

    width: 100%;

    padding: 0.45rem 0.75rem;

    border-radius: 0.5rem;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.12);

    color: #fff;

    font-size: 16px;

}



.lc-subnav-select option {

    color: #111;

}



@media (min-width: 768px) {

    .lc-subnav-inner {

        display: flex;

    }



    .lc-subnav-mobile {

        display: none;

    }

}



.toc-bar--pinned {

    position: relative;

    top: auto;

    z-index: 1;

    margin: 0;

    border-radius: 0;

    border-left: none;

    border-right: none;

    border-top: 1px solid #e8edf3;

    border-bottom: none;

    box-shadow: none;

    background: #fff;

    padding: 0;

    overflow: hidden;

}



.toc-bar-inner {

    max-width: var(--lc-shell-max);

    margin: 0 auto;

    padding: 8px 16px;

    display: flex;

    flex-wrap: nowrap;

    align-items: center;

    gap: 6px;

    overflow-x: auto;

    scroll-padding-inline: 16px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

}



.toc-bar-inner::-webkit-scrollbar {

    display: none;

}



.toc-label {

    font-size: 12px;

    font-weight: 700;

    color: #047857;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding-right: 8px;

    border-right: 1px solid #e5e7eb;

    margin-right: 4px;

    white-space: nowrap;

    flex-shrink: 0;

}



.toc-chip {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 11px;

    background: #f3f4f6;

    color: #374151;

    border-radius: 16px;

    font-size: 12.5px;

    text-decoration: none;

    transition: all 0.2s;

    white-space: nowrap;

    flex-shrink: 0;

}



.toc-chip:hover,

.toc-chip.active {

    background: #10B981;

    color: #fff;

}



.toc-chip .num {

    width: 17px;

    height: 17px;

    border-radius: 50%;

    background: #fff;

    color: #059669;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 700;

    flex-shrink: 0;

}



@media (max-width: 768px) {

    .toc-bar-inner {

        padding: 8px 12px;

    }



    .toc-chip {

        font-size: 11.5px;

        padding: 5px 10px;

    }

}



.lc-series-label {

    display: inline-flex;

    align-items: center;

    flex-wrap: wrap;

    justify-content: center;

    gap: 6px;

    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 600;

    color: #047857;

}



.lc-series-label a {

    color: #059669;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px 10px;

    background: rgba(16, 185, 129, 0.1);

    border: 1px solid rgba(16, 185, 129, 0.25);

    border-radius: 999px;

}



.lc-series-sep {

    color: #9ca3af;

    font-weight: 400;

}



.lc-series-current {

    color: #065f46;

    font-weight: 700;

}



/* ===== Hero 区（简洁绿渐变） ===== */

body.lc-compare-page section.hero,

body.lc-compare-page section.hero#hero {

    background: linear-gradient(165deg, var(--lc-hero-grad-a) 0%, var(--lc-hero-grad-b) 55%, var(--lc-hero-grad-c) 100%);

    padding: 20px 0 24px !important;

    margin-bottom: 0;

    text-align: center;

    position: relative;

    overflow: hidden;

}



body.lc-compare-page section.hero::before {

    content: '';

    position: absolute;

    inset: 0;

    background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(16, 185, 129, 0.07) 0%, transparent 70%);

    pointer-events: none;

}



body.lc-compare-page section.hero .container {

    position: relative;

    z-index: 1;

}



body.lc-compare-page section.hero h1 {

    font-size: clamp(1.25rem, 3.5vw, 1.75rem);

    font-weight: 800;

    color: #1D2129;

    margin-bottom: 8px;

    line-height: 1.35;

}



body.lc-compare-page section.hero .hero-accent {

    background: linear-gradient(135deg, #047857, #10B981);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    font-weight: 800;

}



body.lc-compare-page section.hero .hero-tag {

    display: inline-block;

    background: rgba(16, 185, 129, 0.08);

    border: 1px solid rgba(16, 185, 129, 0.2);

    color: #047857;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 500;

}



body.lc-compare-page section.hero .hero-tag i {

    color: #10B981;

    margin-right: 4px;

}



body.lc-compare-page section.hero p {

    font-size: 14px;

    color: #64748b;

    max-width: 640px;

    margin: 0 auto 12px;

    line-height: 1.6;

}



/* ===== Hero 多屏切换 ===== */

.lc-hero-carousel {

    max-width: 100%;

    margin: 0 auto;

}



.lc-hero-carousel__tabs {

    display: inline-flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 6px;

    margin-bottom: 16px;

    padding: 4px;

    background: rgba(255, 255, 255, 0.75);

    border: 1px solid rgba(16, 185, 129, 0.15);

    border-radius: 999px;

    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.06);

}



.lc-hero-tab {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 8px 16px;

    border: none;

    border-radius: 999px;

    background: transparent;

    color: #64748b;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s;

    white-space: nowrap;

}



.lc-hero-tab i {

    font-size: 12px;

    color: #94a3b8;

}



.lc-hero-tab:hover {

    color: #047857;

    background: rgba(16, 185, 129, 0.06);

}



.lc-hero-tab.is-active {

    background: linear-gradient(135deg, #047857, #10B981);

    color: #fff;

    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);

}



.lc-hero-tab.is-active i {

    color: rgba(255, 255, 255, 0.9);

}



.lc-hero-carousel__viewport {

    overflow: hidden;

    min-height: 140px;

}



.lc-hero-carousel__track {

    display: flex;

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform;

}



.lc-hero-slide {

    flex: 0 0 100%;

    width: 100%;

    padding: 4px 8px 8px;

    box-sizing: border-box;

    opacity: 0.4;

    transition: opacity 0.3s;

}



.lc-hero-slide.is-active {

    opacity: 1;

}



.lc-hero-carousel__nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 12px;

}



.lc-hero-arrow {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    border: 1px solid rgba(16, 185, 129, 0.25);

    background: #fff;

    color: #047857;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    transition: all 0.2s;

}



.lc-hero-arrow:hover {

    background: #10B981;

    color: #fff;

    border-color: #10B981;

}



.lc-hero-dots {

    display: flex;

    gap: 6px;

}



.lc-hero-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    border: none;

    padding: 0;

    background: #cbd5e1;

    cursor: pointer;

    transition: all 0.2s;

}



.lc-hero-dot.is-active {

    background: #10B981;

    width: 20px;

    border-radius: 4px;

}



/* 厂商 / 统计（cos 等） */

.lc-hero-slide .hero-vendor-list {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;

    margin: 12px auto 16px;

    max-width: 720px;

}



.lc-hero-slide .hero-vendor-list span {

    padding: 4px 10px;

    background: #fff;

    border: 1px solid rgba(16, 185, 129, 0.2);

    border-radius: 999px;

    font-size: 12px;

    color: #047857;

    font-weight: 500;

}



.lc-hero-slide .hero-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    max-width: 520px;

    margin: 0 auto;

}



.lc-hero-slide .stat-item {

    background: #fff;

    border: 1px solid rgba(16, 185, 129, 0.15);

    border-radius: 10px;

    padding: 12px 8px;

}



.lc-hero-slide .stat-number {

    font-size: 1.5rem;

    font-weight: 800;

    color: #10B981;

    line-height: 1.2;

}



.lc-hero-slide .stat-label {

    font-size: 11px;

    color: #64748b;

    margin-top: 2px;

}



.lc-hero-slide .cos-tldr,

.lc-hero-slide .ai-tldr {

    max-width: 680px;

    margin: 12px auto 0;

    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.85);

    border: 1px solid rgba(16, 185, 129, 0.15);

    border-radius: 10px;

    font-size: 12px;

    color: #475569;

    text-align: left;

    line-height: 1.55;

}



.lc-hero-slide .cos-tldr strong {

    color: #047857;

}



.lc-hero-slide .hero-buttons {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    max-width: 480px;

    margin: 8px auto 0;

}



.lc-hero-slide .hero-button.primary {

    background: linear-gradient(135deg, #047857, #10B981);

    color: #fff;

    border: none;

}



.lc-hero-slide .hero-button.secondary {

    background: #fff;

    color: #047857;

    border: 1px solid rgba(16, 185, 129, 0.35);

}



@media (max-width: 640px) {

    .lc-hero-tab {

        padding: 7px 12px;

        font-size: 12px;

    }



    .lc-hero-slide .hero-stats {

        grid-template-columns: repeat(2, 1fr);

    }



    .lc-hero-carousel__viewport {

        min-height: 120px;

    }

}



/* 废弃：底部五维卡（改由顶栏二级导航承担） */

.lc-hero-foot {

    display: none !important;

}

/* ── 20260615：选型辅助条 + 关联阅读 + 可读性 ── */

.lc-guide-bar {
    background: linear-gradient(90deg, #ecfdf5 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding: 10px 0;
}

.lc-guide-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    max-width: var(--lc-shell-max);
    margin: 0 auto;
    padding: 0 16px;
    font-size: 13px;
}

.lc-guide-bar-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #047857;
    text-decoration: none;
}

.lc-guide-bar-primary:hover {
    color: #065f46;
}

.lc-guide-bar-link {
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.lc-guide-bar-link:hover {
    color: #047857;
}

.lc-guide-bar-sep {
    color: #cbd5e1;
    user-select: none;
}

.lc-crosslinks {
    max-width: var(--lc-shell-max);
    margin: 2rem auto 1.5rem;
    padding: 1.25rem 1.375rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.lc-crosslinks h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1D2129;
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-crosslinks h2 i {
    color: #10B981;
}

.lc-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.lc-crosslink-card {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lc-crosslink-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.lc-crosslink-card strong {
    display: block;
    font-size: 0.875rem;
    color: #047857;
    margin-bottom: 4px;
}

.lc-crosslink-card span {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

body.lc-compare-page .compare-section,
body.lc-compare-page .lowcode-compare-section,
body.lc-compare-page .insight-block {
    scroll-margin-top: calc(var(--lc-page-offset, 98px) + 12px);
}

body.lc-compare-page .compare-header h2,
body.lc-compare-page .section-header {
    font-size: 1.125rem !important;
    line-height: 1.45;
}

body.lc-compare-page .compare-header p,
body.lc-compare-page .insight-block > p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
}

body.lc-compare-page .ai-tldr,
body.lc-compare-page .cos-tldr {
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
}

.toc-chip.is-active {
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: #ecfdf5 !important;
}

@media (max-width: 640px) {
    .lc-guide-bar-inner {
        font-size: 12px;
        gap: 6px 10px;
    }

    .lc-crosslinks-grid {
        grid-template-columns: 1fr;
    }

    .lc-pair-bar {
        grid-template-columns: 1fr;
        padding: 0 12px;
        margin: 12px auto 16px;
    }
}

/* ── 仅二级导航（fec / diff / diff2） ── */
body.lc-hub-page {
    --lc-page-offset: 91px;
}

.lc-fixed-stack--solo .lc-subnav-link {
    font-size: 0.75rem;
    padding: 0.34rem 0.65rem;
}

@media (min-width: 1200px) {
    .lc-subnav-link {
        font-size: 0.78rem;
        padding: 0.36rem 0.7rem;
    }
}

/* ── 配对引流条 ── */
.lc-pair-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    max-width: var(--lc-shell-max);
    margin: 16px auto 20px;
    padding: 0 16px;
}

.lc-pair-bar__item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lc-pair-bar__item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.lc-pair-bar__item--ai {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #a7f3d0;
}

.lc-pair-bar__item--calc {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-color: #bfdbfe;
}

.lc-pair-bar__item--compare {
    background: linear-gradient(135deg, #faf5ff, #f5f3ff);
    border-color: #ddd6fe;
}

.lc-pair-bar__label {
    grid-column: 1;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: none;
}

.lc-pair-bar__item strong {
    grid-column: 1;
    font-size: 0.9rem;
    color: #047857;
    font-weight: 700;
}

.lc-pair-bar__item--calc strong {
    color: #1d4ed8;
}

.lc-pair-bar__item--compare strong {
    color: #6d28d9;
}

.lc-pair-bar__desc {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.lc-pair-bar__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #94a3b8;
    font-size: 1.1rem;
}

.lc-pair-bar__item:hover .lc-pair-bar__arrow {
    color: #10B981;
}


