/* 2eju.com 岗位对比与收藏 | 2026-10-29 */

.compare-main {
    padding: 28px 0 48px;
}

.compare-block {
    margin-bottom: 28px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-l);
    box-shadow: var(--shadow-1);
}

.compare-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.compare-block-head h2 {
    margin: 0;
    font-size: 19px;
    color: var(--c-text);
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-table-wrap[hidden] {
    display: none;
}

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

.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
    color: var(--c-text);
}

.compare-table thead th {
    background: var(--c-bg);
    font-weight: 600;
    white-space: nowrap;
}

.compare-table tbody th {
    width: 110px;
    color: var(--c-text-2);
    font-weight: 500;
    white-space: nowrap;
    background: #fbfcfe;
}

.compare-table .compare-col-head {
    min-width: 180px;
}

.compare-table .compare-col-head a {
    display: block;
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.5;
}

.compare-table .compare-col-head .compare-dept {
    display: block;
    margin-top: 2px;
    color: var(--c-text-3);
    font-size: 12.5px;
    font-weight: 400;
}

.compare-remove {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-primary-dark);
    font-size: 12.5px;
    cursor: pointer;
}

.compare-remove:hover {
    text-decoration: underline;
}

.compare-diff {
    background: #fff8f0;
}

.compare-empty {
    margin: 0;
    color: var(--c-text-3);
    font-size: 14px;
    line-height: 1.7;
}

.compare-empty[hidden] {
    display: none;
}

.fav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fav-list[hidden] {
    display: none;
}

.fav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
}

.fav-item:last-child {
    border-bottom: 0;
}

.fav-main {
    min-width: 220px;
}

.fav-name {
    display: block;
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.5;
}

.fav-meta {
    display: block;
    margin-top: 2px;
    color: var(--c-text-3);
    font-size: 12.5px;
}

.fav-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 720px) {
    .compare-block {
        padding: 16px;
    }

    .compare-block-head h2 {
        font-size: 17px;
    }
}
