/* ── 五险一金计算器 ── */

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

/* 比例设置表格 */
.rate-table {
    margin-top: 1.5rem;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
}

.rate-table-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    padding: 0.8rem 1.2rem;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaf0;
}

.rate-table-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.6rem 1.2rem;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
}

.rate-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    color: #555;
    align-items: center;
}

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

.rate-col-name {
    font-weight: 500;
    color: #333;
}

.rate-col {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rate-input {
    width: 60px;
    padding: 0.3rem 0.4rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    font-family: 'Fira Code', monospace;
}

/* 结果区域 */
.wx-result {
    margin-top: 1.5rem;
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

/* 计算过程 */
.calc-process {
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
}

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

.process-step:last-child {
    border-bottom: none;
}

.process-label {
    color: #666;
}

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

.process-step-final {
    background: white;
    border-top: 2px solid #2563eb;
}

.process-step-final .process-label {
    font-weight: 700;
    color: #333;
}

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

/* 工资明细区 */
.wx-salary-detail {
    margin-top: 1.5rem;
}

/* 税率表 */
.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) {
    .wx-form {
        grid-template-columns: 1fr;
    }

    .rate-table-head,
    .rate-table-row {
        grid-template-columns: 100px 1fr 1fr;
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .rate-input {
        width: 50px;
        font-size: 0.8rem;
    }

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