/**
 * cos.html · 专业厂商对比 · 可读性
 * v=20260622
 */

/* —— Hero：商务紧凑 —— */
body.cos-page.lc-compare-page section.hero#hero {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0 14px !important;
    margin-bottom: 0 !important;
    text-align: left;
    color: #0f172a;
}

body.cos-page.lc-compare-page section.hero#hero::before {
    display: none;
}

body.cos-page section.hero#hero .container {
    max-width: 1100px;
}

body.cos-page .lc-series-label {
    margin-bottom: 8px;
    font-size: 0.75rem;
}

body.cos-page .lc-hero-carousel {
    margin: 0;
}

body.cos-page .lc-hero-carousel__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 10px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: none;
    max-width: 100%;
}

body.cos-page .lc-hero-tab {
    padding: 5px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    border-right: 1px solid #e2e8f0;
}

body.cos-page .lc-hero-tab:last-child {
    border-right: none;
}

body.cos-page .lc-hero-tab.is-active {
    background: #047857;
    color: #fff;
    box-shadow: none;
}

body.cos-page .lc-hero-tab.is-active i {
    color: rgba(255, 255, 255, 0.85);
}

body.cos-page .lc-hero-carousel__viewport {
    min-height: 0 !important;
}

body.cos-page .lc-hero-slide {
    padding: 0;
    text-align: left;
}

body.cos-page .lc-hero-carousel__nav {
    display: none;
}

body.cos-page section.hero#hero h1 {
    font-size: clamp(1.0625rem, 2.2vw, 1.4375rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.35;
    text-align: left;
}

body.cos-page section.hero#hero h1 .hero-accent {
    background: none;
    -webkit-text-fill-color: #047857;
    color: #047857;
    font-weight: 700;
    display: block;
    font-size: 0.92em;
    margin-top: 2px;
}

body.cos-page section.hero#hero p {
    font-size: 0.8125rem;
    color: #64748b;
    max-width: none;
    margin: 0;
    line-height: 1.55;
    text-align: left;
}

body.cos-page .hero-tag-wrap {
    text-align: left;
    margin-bottom: 6px;
}

body.cos-page section.hero#hero .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 0;
    font-weight: 500;
}

body.cos-page section.hero#hero .hero-tag i {
    color: #64748b;
    font-size: 10px;
}

body.cos-page .cos-tldr {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #047857;
    border-radius: 4px;
    padding: 7px 11px;
    margin: 8px 0 0;
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
    box-shadow: none;
}

body.cos-page .cos-tldr strong {
    color: #047857;
    font-weight: 600;
    margin-right: 4px;
}

body.cos-page .hero-vendor-list {
    justify-content: flex-start;
    margin: 0 0 6px;
    max-width: none;
}

body.cos-page .hero-vendor-list span {
    font-size: 0.75rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
}

body.cos-page section.hero#hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 0;
    max-width: 420px;
}

body.cos-page section.hero#hero .stat-item {
    text-align: center;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 6px 4px;
}

body.cos-page section.hero#hero .stat-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #047857;
    line-height: 1.1;
}

body.cos-page section.hero#hero .stat-label {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 2px;
}

body.cos-page section.hero#hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
}

body.cos-page section.hero#hero .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

body.cos-page section.hero#hero .hero-button.primary {
    background: #047857;
    color: #fff;
    box-shadow: none;
}

body.cos-page section.hero#hero .hero-button.primary:hover {
    background: #065f46;
    transform: none;
    box-shadow: none;
}

body.cos-page section.hero#hero .hero-button.secondary {
    background: #fff;
    color: #047857;
    border: 1px solid #d1d5db;
}

body.cos-page section.hero#hero .hero-button.secondary:hover {
    background: #f8fafc;
    transform: none;
}

@media (max-width: 767px) {
    body.cos-page.lc-compare-page section.hero#hero {
        padding: 10px 0 12px !important;
    }

    body.cos-page .lc-hero-carousel__tabs {
        display: flex;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    body.cos-page .lc-hero-tab {
        flex: 0 0 auto;
    }

    body.cos-page section.hero#hero h1 {
        font-size: 1.0625rem;
    }

    body.cos-page section.hero#hero .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    body.cos-page .cos-tldr {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* —— 阅读路线 —— */
body.cos-page .cos-read-path {
    max-width: 1100px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
}

body.cos-page .cos-read-path__lead {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #047857;
    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: #047857;
    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 #e5e7eb;
    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: #047857;
    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 #f1f5f9;
    color: #334155;
    vertical-align: top;
}

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

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

/* —— 矩阵工具栏 —— */
body.cos-page .cos-compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 1.5rem 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 #10B981;
    background: #10B981;
    color: #fff;
    cursor: pointer;
}

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

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: #10B981;
    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: #10B981;
    margin-right: 0.25rem;
}

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

body.cos-page .role-filter-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #047857;
    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: #f8fafc;
    border: 1px solid #e5e7eb;
    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: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

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

body.cos-page .insight-block {
    margin-left: auto;
    margin-right: auto;
}

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

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: #047857;
    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;
    }
}
