/* 方案对比一级页（compare/index.html） */
@layer modules {

body.page-compare .compare-section {
    padding: 88px 0;
}

body.page-compare .compare-section-alt {
    background: #f8fafc;
}

body.page-compare .section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: -36px auto 48px;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

body.page-compare .compare-notice {
    max-width: 920px;
    margin: 0 auto 8px;
    padding: 20px 24px;
    background: var(--platform-light, #eef2ff);
    border: 1px solid var(--platform-hover, #c7d2fe);
    border-radius: 12px;
    color: #334155;
    line-height: 1.75;
    font-size: 0.95rem;
}

body.page-compare .compare-q-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-compare .compare-q-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.page-compare .compare-q-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

body.page-compare .compare-q-body {
    padding: 24px;
}

body.page-compare .compare-q-no {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--platform-primary, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

body.page-compare .compare-q-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
}

body.page-compare .compare-q-body p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

body.page-compare .compare-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.page-compare .compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

body.page-compare .compare-table th,
body.page-compare .compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.94rem;
    line-height: 1.6;
}

body.page-compare .compare-table th {
    background: var(--platform-light, #eef2ff);
    color: var(--platform-primary-dark, #3730a3);
    font-weight: 600;
}

body.page-compare .compare-table td:first-child {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

body.page-compare .compare-table tr:last-child td {
    border-bottom: none;
}

body.page-compare .hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-compare .hub-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

body.page-compare .hub-card {
    display: block;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-compare .hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);
    border-color: var(--platform-hover, #c7d2fe);
}

body.page-compare .hub-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

body.page-compare .hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.page-compare .hub-card:hover .hub-card-image img {
    transform: scale(1.05);
}

body.page-compare .hub-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(79, 70, 229, 0.92);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

body.page-compare .hub-card-body {
    padding: 22px 22px 24px;
}

body.page-compare .hub-card-body h3 {
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

body.page-compare .hub-card-body p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

body.page-compare .hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--platform-primary, #4f46e5);
    font-size: 0.9rem;
    font-weight: 600;
}

body.page-compare .hub-card:hover .hub-card-link {
    gap: 10px;
}

body.page-compare .compare-path-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

body.page-compare .compare-path {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 24px;
}

body.page-compare .compare-path h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

body.page-compare .compare-path p,
body.page-compare .compare-path a {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

body.page-compare .compare-path a {
    color: var(--platform-primary, #4f46e5);
    font-weight: 600;
    text-decoration: none;
}

body.page-compare .compare-path a:hover {
    text-decoration: underline;
}

body.page-compare .compare-pitfall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-compare .compare-pitfall {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    border: 1px solid #eef0f3;
}

body.page-compare .compare-pitfall i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--platform-light, #eef2ff);
    color: var(--platform-primary, #4f46e5);
    margin-bottom: 14px;
}

body.page-compare .compare-pitfall h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

body.page-compare .compare-pitfall p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

body.page-compare .compare-glossary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

body.page-compare .compare-term {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 20px 16px;
}

body.page-compare .compare-term h3 {
    font-size: 1rem;
    color: var(--platform-primary, #4f46e5);
    margin-bottom: 8px;
}

body.page-compare .compare-term p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

body.page-compare .cta-section {
    background: linear-gradient(135deg, var(--platform-primary, #4f46e5), var(--platform-primary-end, #6366f1));
}

body.page-compare .cta-section .btn-primary {
    background: #fff;
    color: #3730a3;
    box-shadow: none;
}

body.page-compare .cta-section .btn-primary:hover {
    background: #f5f5f5;
    color: #3730a3;
}

@media (max-width: 1024px) {
    body.page-compare .compare-q-grid,
    body.page-compare .hub-grid,
    body.page-compare .compare-pitfall-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.page-compare .compare-glossary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body.page-compare .compare-section {
        padding: 56px 0;
    }

    body.page-compare .compare-q-grid,
    body.page-compare .hub-grid,
    body.page-compare .hub-grid-2,
    body.page-compare .compare-path-grid,
    body.page-compare .compare-pitfall-grid,
    body.page-compare .compare-glossary {
        grid-template-columns: 1fr;
    }

    body.page-compare .hub-card-image,
    body.page-compare .compare-q-card img {
        height: 170px;
    }
}

}
