/* ======= 年终奖个税计算器样式 ======= */

.tool-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.tool-title-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
}

.tool-title-wrapper .tool-title {
    margin-bottom: 0;
    border-bottom: none;
}

/* 输入区 */
.bt-input-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bt-field input.form-input {
    font-size: 22px;
    font-weight: 600;
    padding: 12px 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    text-align: center;
}

.bt-field-main input.form-input {
    font-size: 28px;
    font-weight: 700;
}

.bt-help {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 错误提示 */
.error-tip {
    min-height: 20px;
    margin: 6px 0 2px;
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* 结果 */
.bt-result {
    margin-top: 12px;
}

.bt-sep-box {
    padding: 20px 16px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.bt-big-row {
    font-size: 46px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.2;
    word-break: break-all;
}

.bt-label-line {
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bt-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat-box {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.stat-box .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.25;
    word-break: break-all;
}

.stat-box .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 并入对比 */
.bt-cmb-box {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.bt-cmb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bt-cmb-title i {
    color: var(--primary-color);
}

.bt-cmb-box .bt-stat-grid {
    margin-top: 0;
}

/* 临界点提示 */
.bt-critical {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(250, 173, 20, 0.12);
    border: 1px solid rgba(250, 173, 20, 0.4);
    border-radius: var(--radius-md);
    color: #ad6800;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

.lc-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* 政策提示 */
.bt-policy-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* 税率表 */
.rate-table-wrap {
    margin-top: 18px;
}

.rate-table-wrap:first-child {
    margin-top: 0;
}

.rate-table-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.vc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.vc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.vc-table th {
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.vc-table td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

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

.vc-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.015);
}

/* 响应式 */
@media (max-width: 640px) {
    .bt-stat-grid {
        grid-template-columns: 1fr;
    }

    .bt-big-row {
        font-size: 34px;
    }
}
