/* ============================================================
 * by 诗航软件-凯哥 2026.6.16
 * ============================================================ */

/* ============================================================
 * compare.css - 建站方式对比分析页专用样式
 * ============================================================ */

.compare-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    padding: 1.2rem 1rem 1.8rem 1rem;
    transition: all 0.2s;
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}
.header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(120deg, #1e3c4c, #2b6a4e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.2px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.rec-tag {
    background: #2b6a4e;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.9rem;
    border-radius: 40px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(43,106,78,0.3);
}
.sub {
    color: #475569;
    margin-top: 0.4rem;
    font-size: 0.85rem;
}
.swipe-hint {
    display: none;
    text-align: right;
    font-size: 0.7rem;
    color: #5e6f8d;
    margin-bottom: 0.5rem;
    background: #f1f5f9;
    width: fit-content;
    margin-left: auto;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    margin-top: 0.5rem;
}
.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 860px;
    background: white;
    border-radius: 1rem;
}

.comp-table th,
.comp-table td {
    border: 1px solid #d4dfed;
    padding: 0.85rem 0.9rem;
    vertical-align: top;
    line-height: 1.4;
}

.comp-table th {
    background: #1f3a4b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #2d5a7c;
}

.comp-table th:nth-child(4) {
    background: #2b6a4e;
    border-bottom: 2px solid #1f8a62;
}
.comp-table td:nth-child(4) {
    background-color: #effbf5;
    border-left: 2px solid #9ad7bc;
    border-right: 2px solid #9ad7bc;
}
.comp-table td:nth-child(2) {
    background-color: #fffaf2;
}
.comp-table td:nth-child(3) {
    background-color: #fff6e8;
}
.comp-table td:nth-child(5) {
    background-color: #f5f7fc;
}
.comp-table td:first-child {
    background-color: #f8fafc;
    font-weight: 700;
    color: #0f2c3b;
    width: 150px;
    border-right: 2px solid #cbdde9;
}

.dimension-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9em;
    height: 1.9em;
    background-color: #eef2f8;
    border-radius: 12px;
    margin-right: 0.65rem;
    font-size: 1rem;
    font-weight: normal;
    vertical-align: middle;
    transition: all 0.1s ease;
    color: #2c5a6e;
}
.good {
    color: #2b6a4e;
    font-weight: 700;
    background: #e0f2e9;
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.bad {
    color: #b91c1c;
    font-weight: 700;
    background: #ffe6e6;
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.medium {
    color: #b45309;
    font-weight: 700;
    background: #ffedd5;
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.cross {
    color: #b91c1c;
    font-weight: 800;
}
.rec-star {
    background: #f5b042;
    color: #2d3e2b;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-left: 0.3rem;
    white-space: nowrap;
}
.highlight {
    font-weight: 800;
    color: #1f5e46;
}

.footer-note {
    margin-top: 1.8rem;
    background: #eef3fa;
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.8rem;
    border-left: 5px solid #2b6a4e;
    color: #1f3b4a;
}

.footer-copyright-area {
    background: #0f172a;
    border-radius: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: #e2e8f0;
    border: 1px solid #1e293b;
}
.copyright-text {
    flex: 2;
    font-size: 0.8rem;
    line-height: 1.6;
}
.copyright-text a {
    color: #7aa9d9;
    text-decoration: none;
    transition: 0.2s;
}
.copyright-text a:hover {
    color: #ffd966;
    text-decoration: underline;
}
.qr-widget {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.5rem 0.8rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 105px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qr-widget img {
    width: 70px;
    height: 70px;
    border-radius: 0.6rem;
    object-fit: contain;
}
.qr-widget span {
    font-size: 0.7rem;
    color: #1e293b;
    font-weight: 500;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

@media (max-width: 880px) {
    /* 备注：container-header/hero-feature-grid/hero-main-title(2.4rem) 响应式已在 common.css 定义，此处仅覆盖对比页特有的字号 */
    .hero-main-title { font-size: 2rem; }
    .container {
        padding: 0.9rem 0.8rem 1.2rem 0.8rem;
    }
    .header h1 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    .rec-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.7rem;
    }
    .sub {
        font-size: 0.75rem;
    }
    .swipe-hint {
        display: block;
        margin-bottom: 0.6rem;
        font-size: 0.7rem;
    }
    .comp-table {
        min-width: 780px;
        font-size: 0.78rem;
    }
    .comp-table th,
    .comp-table td {
        padding: 0.65rem 0.55rem;
    }
    .comp-table td:first-child {
        width: 125px;
        font-size: 0.78rem;
    }
    .good, .bad, .medium {
        font-size: 0.7rem;
        padding: 0.05rem 0.35rem;
        white-space: normal;
        line-height: 1.3;
    }
    .rec-star {
        font-size: 0.6rem;
        margin-left: 0.2rem;
    }
    .footer-note {
        font-size: 0.73rem;
        padding: 0.7rem 1rem;
    }
}
@media (max-width: 780px) {
    .dimension-icon {
        width: 1.7em;
        height: 1.7em;
        font-size: 0.9rem;
        margin-right: 0.5rem;
        border-radius: 10px;
    }
}
@media (max-width: 700px) {
    .footer-copyright-area {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    .qr-widget {
        margin-top: 0.5rem;
    }
}
@media (max-width: 550px) {
    .comp-table {
        min-width: 720px;
    }
    .comp-table th, .comp-table td {
        padding: 0.55rem 0.45rem;
    }
}
