/**
 * cos.html · 专业厂商对比 · 正文区
 * v=20260708 — Hero 样式见 cos-hero.css（对齐 cont.html）
 */

/* —— 阅读路线 —— */
body.cos-page .cos-read-path {
    max-width: none;
    margin: 0 0 1.25rem;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, #F0F5FF, #EFF4FF);
    border: 1px solid rgba(51, 112, 255, 0.25);
    border-radius: 14px;
}

body.cos-page .cos-read-path__lead {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1D4ED8;
    margin: 0 0 0.75rem;
}

body.cos-page .cos-read-path__lead i {
    margin-right: 0.35rem;
}

body.cos-page .cos-read-path__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    body.cos-page .cos-read-path__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem 1rem;
    }
}

body.cos-page .cos-read-path__steps li {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.55;
}

body.cos-page .cos-read-path__steps a {
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 600;
}

body.cos-page .cos-read-path__steps a:hover {
    text-decoration: underline;
}

body.cos-page .cos-read-path__steps span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

/* —— 速查表 —— */
body.cos-page .cos-quick-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #DEE0E3;
    border-radius: 12px;
    background: #fff;
}

body.cos-page .cos-quick-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

body.cos-page .cos-quick-table th {
    background: #1D4ED8;
    color: #fff;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

body.cos-page .cos-quick-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #F2F3F5;
    color: #334155;
    vertical-align: top;
}

body.cos-page .cos-quick-table tbody tr:hover td {
    background: #F0F5FF;
}

body.cos-page .cos-quick-table td strong {
    color: #1D4ED8;
}

/* —— 矩阵工具栏 —— */
body.cos-page .cos-compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

body.cos-page .cos-compare-toolbar__text {
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.5;
}

body.cos-page .cos-compare-toolbar__text strong {
    display: block;
    color: #78350f;
    margin-bottom: 0.125rem;
}

body.cos-page .cos-compare-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.cos-page .cos-compare-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.875rem;
    border-radius: 999px;
    border: 1px solid #3370FF;
    background: #3370FF;
    color: #fff;
    cursor: pointer;
}

body.cos-page .cos-compare-btn--ghost {
    background: #fff;
    color: #1D4ED8;
}

body.cos-page .cos-compare-btn:hover {
    filter: brightness(0.95);
}

/* —— 可折叠维度 —— */
body.cos-page .compare-section.cos-collapsed .table-wrap,
body.cos-page .compare-section.cos-collapsed .cos-scroll-hint {
    display: none;
}

body.cos-page .cos-section-toggle {
    cursor: pointer;
    user-select: none;
}

body.cos-page .compare-section.cos-collapsed .cos-section-toggle::after {
    content: ' · 点击展开';
    font-size: 0.75rem;
    font-weight: 500;
    color: #3370FF;
    margin-left: 0.35rem;
}

body.cos-page .cos-scroll-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 0.5rem;
    text-align: center;
}

body.cos-page .cos-scroll-hint i {
    color: #3370FF;
    margin-right: 0.25rem;
}

/* —— 角色筛选 —— */
body.cos-page .role-filter {
    background: #fff;
    border: 1px solid #DEE0E3;
    border-radius: 12px;
    padding: 1rem 1.125rem;
    margin: 0 0 1.25rem;
}

body.cos-page .role-filter-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1D4ED8;
    margin-bottom: 0.625rem;
}

body.cos-page .role-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.625rem;
}

body.cos-page .role-anchors a {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #F6F6FB;
    border: 1px solid #DEE0E3;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
}

body.cos-page .role-anchors a:hover,
body.cos-page .role-anchors a:not(.hidden-by-filter):focus {
    background: #EFF4FF;
    border-color: rgba(51, 112, 255, 0.35);
    color: #1D4ED8;
}

body.cos-page .role-anchors a.hidden-by-filter {
    display: none;
}

body.cos-page .insight-block {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.cos-page .insight-block > h2 {
    font-size: 1.125rem !important;
    padding-left: 0.75rem;
    border-left: 3px solid #3370FF;
}

body.cos-page #vendor-matrix .compare-table-wrap,
body.cos-page .insight-block table {
    font-size: 0.8125rem;
}

body.cos-page .cos-tldr a {
    color: #1D4ED8;
    text-decoration: underline;
}

/* —— 移动端表格可读性 —— */
@media (max-width: 767px) {
    body.cos-page .cos-read-path {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    body.cos-page .cos-compare-toolbar {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    body.cos-page .role-filter {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    body.cos-page .custom-table th,
    body.cos-page .custom-table td {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }

    body.cos-page .custom-table th:first-child,
    body.cos-page .custom-table td:first-child {
        min-width: 88px;
        max-width: 120px;
        white-space: normal;
        word-break: break-word;
    }

    body.cos-page .vendor-grid {
        grid-template-columns: 1fr;
    }

    body.cos-page .vendor-metrics {
        grid-template-columns: 1fr;
    }

    body.cos-page .decision-a a {
        font-size: 12px;
        padding: 6px 12px;
    }

    body.cos-page .lc-guide-bar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    body.cos-page .lc-guide-bar-sep {
        display: none;
    }
}
