/* ── 个税计算器专题页 ── */

/* 表单2列 */
.gs-form {
    grid-template-columns: 1fr 1fr;
}

/* 专项附加扣除勾选 */
.deduction-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin-top: 0.3rem;
}

.deduction-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}

.deduction-check input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
}

/* 计算结果 */
.tax-result {
    margin-top: 1.5rem;
}

.tax-result-card {
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.tax-row:last-child {
    border-bottom: none;
}

.tax-label {
    color: #666;
}

.tax-val {
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    color: #333;
}

.tax-row-highlight {
    background: #fffbeb;
    border-top: 2px solid #fde68a;
}

.tax-row-highlight .tax-label {
    font-weight: 600;
    color: #92400e;
}

.tax-row-highlight .tax-val {
    color: #d97706;
    font-size: 1.05rem;
    font-weight: 700;
}

.tax-row-final {
    background: white;
    border-top: 2px solid #e8eaf0;
}

.tax-row-final .tax-label {
    font-weight: 600;
    color: #333;
}

.tax-row-final .tax-val {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 700;
}

/* 税率表 */
.tax-table-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.tax-table th {
    background: #f5f7fa;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.tax-table td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Mobile */
@media (max-width: 640px) {
    .gs-form {
        grid-template-columns: 1fr;
    }

    .deduction-checks {
        gap: 0.5rem 1rem;
    }

    .tax-table th,
    .tax-table td {
        padding: 0.6rem 0.6rem;
        font-size: 0.82rem;
    }
}