﻿/* ============================================================
   鹰牛官网 · /compare 竞品比较页
   复用 home.css 的 .hn-* 与 features.css 的 .fd-* 组件，
   以及 advantages.css 的 .adv-hero / .adv-sum（本页也加载）。
   本文件仅补充 .cmp-* 差异项。
   ============================================================ */

/* ---------- "对手"画像卡短评 tag ---------- */
.cmp-tag {
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(248, 113, 113, .12);
    border: 1px solid rgba(248, 113, 113, .3);
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    vertical-align: 2px;
    white-space: nowrap;
}

/* 三类对手卡三列排布（桌面端），窄屏回落 fd-hcards 默认两列/单列 */
@media (min-width: 901px) {
    .cmp-rival-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 九维对比表 ---------- */
.cmp-table-wrap { padding: 0; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp-table th, .cmp-table td {
    padding: 15px 18px;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
    border-bottom: 1px solid var(--hn-line);
    vertical-align: top;
}
.cmp-table thead th {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--hn-muted);
    background: #f0f4f9;
    border-bottom: 1px solid var(--hn-line);
    white-space: nowrap;
}
.cmp-table tbody th, .cmp-table tfoot th { font-size: inherit; }
.cmp-table tbody td:first-child, .cmp-table tbody th:first-child { font-weight: 700; }

/* 我方列：整列淡蓝底 + 渐变表头，形成"推荐列" */
.cmp-table .cmp-self { background: rgba(59, 130, 246, .09); }
.cmp-table thead th.cmp-self {
    background: var(--hn-grad);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1px;
}
.cmp-table tfoot th.cmp-self {
    color: #0a8f74;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 0;
}
.cmp-table tfoot th { border-bottom: 0; }

/* 符号三色：✔ 绿 / △ 黄 / ✘ 红（浅底加深版） */
.cmp-sym { font-weight: 800; margin-right: 6px; }
.cmp-yes { color: #0a8f74; }
.cmp-mid { color: #b45309; }
.cmp-no  { color: #dc2626; }
.cmp-cell-text { color: inherit; opacity: .92; }

.cmp-table tbody tr:hover td { background: rgba(59, 130, 246, .05); }
.cmp-table tbody tr:hover td.cmp-self { background: rgba(59, 130, 246, .14); }

.cmp-footnote { color: var(--hn-muted); font-size: 12.5px; margin-top: 14px; line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .cmp-table th, .cmp-table td { padding: 12px 12px; font-size: 13px; }
    .cmp-table thead th.cmp-self { font-size: 13.5px; }
}
