/**
 * con2.html 国际低代码对比页 · 布局重构
 * logo 绿主色 · 模块分区 · 浅绿 Hero / 表头
 * v=20260625 — cont-nav-slim 首屏导航压缩
 */
body.lc-compare-page.con2-page section.hero {
    background: linear-gradient(165deg, #f0fdf4 0%, #ecfdf5 55%, #f8fafc 100%) !important;
    padding: 20px 0 24px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

body.con2-page section.hero::before,
body.con2-page section.hero::after {
    display: none;
}

body.con2-page section.hero h1 {
    color: #1D2129 !important;
    text-shadow: none !important;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem) !important;
}

body.con2-page section.hero p {
    color: #64748b !important;
    font-weight: 400 !important;
}

body.con2-page section.hero .hero-tag {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #047857 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

body.con2-page section.hero .hero-accent {
    color: #047857 !important;
}

body.con2-page .con2-platform-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 16px;
    max-width: 720px;
}

body.con2-page .con2-platform-chips 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;
}

/* 主体模块 */
.con2-module {
    margin-top: 48px;
    scroll-margin-top: calc(var(--lc-page-offset, 98px) + 12px);
}

.con2-module:first-of-type {
    margin-top: 32px;
}

.con2-module__head {
    margin-bottom: 20px;
}

.con2-module__head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D2129;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.con2-module__head h2 i {
    color: #10B981;
}

.con2-module__desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 820px;
}

.con2-module__note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #10B981;
}

/* 平台分层卡片 */
.con2-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.con2-tier-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.con2-tier-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #047857;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.con2-tier-card h3 i {
    color: #10B981;
}

.con2-tier-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 10px;
}

.con2-tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.con2-tier-card li {
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .con2-tier-grid {
        grid-template-columns: 1fr;
    }
}

/* 对比表头：浅绿底替代紫色大色块 */
body.con2-page .compare-header {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding: 20px 24px !important;
}

body.con2-page .compare-header h2 {
    color: #065f46 !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

body.con2-page .compare-header p {
    color: #64748b !important;
}

body.con2-page .compare-header a.con2-ai-link,
body.con2-page .compare-header .con2-ai-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: #fff !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 20px;
    color: #047857 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

body.con2-page .compare-header .con2-ai-link:hover {
    background: #ecfdf5 !important;
}

body.con2-page .lowcode-compare-section {
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08) !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible !important;
    margin: 0 !important;
    min-height: 0 !important;
}

body.con2-page .compare-section {
    padding: 28px 24px;
}

body.con2-page .section-header {
    font-size: 1rem;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 16px;
}

body.con2-page .section-header span {
    background: linear-gradient(180deg, #10B981, #059669) !important;
}

body.con2-page .compare-section .section-intro {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: -8px 0 16px 17px;
    max-width: 72ch;
}

/* 子区块标签（详细定价等） */
body.con2-page .compare-subsection {
    border-top: 1px dashed #e5e7eb;
    margin-top: 0;
}

body.con2-page .compare-subsection .section-header {
    font-size: 0.9375rem;
    color: #475569;
}

/* 平台图标统一绿色 */
body.con2-page .platform-name i.fa-check-circle {
    color: #10B981 !important;
}

body.con2-page .star-rating {
    color: #059669 !important;
    text-shadow: none !important;
}

body.con2-page .star-rating:hover {
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.35) !important;
}

/* 选型建议 */
body.con2-page .selection-advice li {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #10B981;
    border-radius: 10px;
}

body.con2-page .selection-advice strong i {
    color: #10B981 !important;
}

body.con2-page .save-tip {
    color: #047857;
    font-weight: 700;
}

body.con2-page .con2-action-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

body.con2-page .con2-action-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

body.con2-page .con2-action-row a.con2-btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

body.con2-page .con2-action-row a.con2-btn-outline {
    background: #fff;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

body.con2-page .con2-action-row a.con2-btn-muted {
    background: #fff;
    color: #475569;
    border: 1px solid #e5e7eb;
}

/* 图表区 */
body.con2-page .con2-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

body.con2-page .con2-chart-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

body.con2-page .con2-chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    body.con2-page .con2-chart-grid {
        grid-template-columns: 1fr;
    }
}

/* 老板视角：统一绿色调，去掉蓝/紫渐变 */
body.con2-page #boss-optimization {
    background: transparent !important;
    padding: 0 !important;
}

body.con2-page #boss-optimization .con2-boss-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

body.con2-page #boss-optimization .module-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: #fff;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

body.con2-page #boss-optimization .module-btn.active {
    background: linear-gradient(135deg, #047857, #10B981);
    color: #fff;
    border-color: transparent;
}

body.con2-page #boss-optimization .module-content > div {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
    border-left: 4px solid #10B981 !important;
}

body.con2-page #boss-optimization .module-btn.active {
    background: linear-gradient(135deg, #047857, #10B981) !important;
    color: #fff !important;
    border-color: transparent !important;
}

body.con2-page .con2-news-card ul {
    font-size: 13px;
    color: #374151;
    line-height: 1.85;
    padding-left: 16px;
    margin: 0;
}

body.con2-page .con2-news-card p:last-child {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
    margin-bottom: 0;
}

body.con2-page #platform-matching {
    background: #f8fafc !important;
    padding: 48px 0 !important;
}

body.con2-page #platform-matching .container {
    max-width: var(--lc-shell-max, 1440px);
}

/* 最新动态 */
body.con2-page .con2-news-section {
    max-width: var(--lc-shell-max, 1440px);
    margin: 48px auto 0;
    padding: 0 20px;
}

body.con2-page .con2-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

body.con2-page .con2-news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}

body.con2-page .con2-news-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 10px;
}

body.con2-page .con2-news-card .con2-news-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

/* 隐藏冗余右侧悬浮导航（已有顶栏 TOC） */
body.con2-page #floatConsult {
    display: none !important;
}

/* ── 滚动条收敛：整页纵滚 + 表格容器单次横滚 ── */
body.con2-page .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}

body.con2-page .table-wrap table.custom-table {
    display: table !important;
    width: max-content;
    min-width: 100%;
    overflow: visible !important;
}

body.con2-page .table-wrap th,
body.con2-page .table-wrap td {
    white-space: nowrap;
}

body.con2-page .toc-bar-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 6px;
}

body.con2-page .lc-subnav-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 4px;
}

body.con2-page .lowcode-compare-section .compare-section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

@media (max-width: 768px) {
    body.con2-page .table-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    body.con2-page .table-wrap th,
    body.con2-page .table-wrap td {
        white-space: normal;
    }
}

body.con2-page .contact-info .btn:hover {
    background: #059669 !important;
}
