/* ========== why-jakim.css — JAKIM 认证优势页专属样式 ========== */

/* ========== 官方授权证明区块 ========== */
.auth-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(0,68,189,0.02), rgba(31,188,120,0.03));
}

.auth-badge-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.auth-badge-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #002f6c, #0066cc);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,47,108,0.2);
}

.auth-badge-info {
    flex: 1;
    min-width: 240px;
}

.auth-badge-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.auth-badge-info .auth-id {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.02em;
    background: rgba(0,68,189,0.06);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    margin: 4px 0 10px;
}

.auth-badge-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
}

.auth-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0,68,189,0.08);
    text-decoration: none;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(0,68,189,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.auth-card .auth-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.auth-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.auth-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auth-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0,68,189,0.06);
    color: var(--primary-blue);
}

.auth-tag.green {
    background: rgba(5,150,105,0.08);
    color: #059669;
}

.auth-tag.amber {
    background: rgba(217,119,6,0.08);
    color: #d97706;
}

/* ========== 认证体系对比表 ========== */
.compare-section {
    padding: 60px 0;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 28px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 860px;
}

.compare-table thead th {
    background: linear-gradient(135deg, #002f6c, #0044bd);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.compare-table thead th:first-child {
    border-radius: 14px 0 0 0;
    text-align: left;
    padding-left: 20px;
}

.compare-table thead th:last-child {
    border-radius: 0 14px 0 0;
}

.compare-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f0f3f7;
    color: var(--text-secondary);
    vertical-align: middle;
    text-align: center;
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 20px;
    white-space: nowrap;
}

.compare-table tbody tr:hover {
    background: rgba(0,68,189,0.02);
}

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

.compare-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 14px;
}

.compare-table tbody tr:last-child td:last-child {
    border-radius: 0 0 14px 0;
}

.compare-table .col-jakim {
    background: rgba(0,68,189,0.04);
    font-weight: 600;
    color: var(--primary-blue);
}

.compare-table .rating-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
}

.compare-table .inline-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 12px;
    white-space: nowrap;
}

.compare-table .inline-link:hover {
    color: #002f6c;
}

.compare-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* ========== 交叉链接卡片 hover（替代内联 onmouseover/onmouseout） ========== */
.cross-link-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,68,189,0.08);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-badge-row {
        flex-direction: column;
        text-align: center;
    }

    .compare-table-wrap {
        border-radius: 10px;
    }

    .compare-table {
        min-width: 100%;
        font-size: 12px;
    }

    .compare-table thead th,
    .compare-table tbody td {
        padding: 10px 8px;
    }

    .resource-grid {
        grid-template-columns: 1fr !important;
    }
}
