/* ============ 养老金计算器 - 工具专属样式 ============ */
/* 布局 / 卡片 / 按钮 / 空状态 / 说明区块均复用 common.css 公共样式 */

.form-row {
    display: flex;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.error-msg {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.result-item-card {
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.result-item-card.highlight {
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
    border-color: #c4b5fd;
}

.result-item-card.total {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border-color: #a78bfa;
}

.item-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.item-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.item-value.small {
    font-size: 15px;
}

.result-item-card.highlight .item-value,
.result-item-card.total .item-value {
    color: #6b21a8;
}

.result-note {
    padding: 14px 16px;
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #5b21b6;
}

/* ============ 缴费基数一览表 ============ */
.table-card {
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.pension-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 620px;
}

.pension-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.pension-table th {
    padding: 12px 14px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.pension-table td {
    padding: 10px 14px;
    border-top: 1px solid #f0eaf9;
    text-align: center;
    color: #374151;
    white-space: nowrap;
}

.src-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-prov {
    background: #eef2ff;
    color: #4f46e5;
}

.badge-city {
    background: #f3e8ff;
    color: #7c3aed;
}

.pension-table tbody tr:nth-child(even) {
    background: #faf8ff;
}

.pension-table tbody tr:hover {
    background: #f3e8ff;
}

.pension-table .td-region {
    font-weight: 600;
    color: #6b21a8;
}

.table-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
    color: #6b21a8;
}

@media (max-width: 560px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ 首屏紧凑化：让左侧配置区一屏显示 ============ */
#app .settings-card {
    padding: 12px;
}

/* 省份 + 地级市两个下拉并排一行 */
#app .region-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#app .region-col {
    flex: 1;
    min-width: 0;
}

#app .settings-card .card-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
}

#app .settings-card .setting-item {
    margin-bottom: 9px;
}

#app .settings-card .setting-label {
    font-size: 13px;
    margin-bottom: 4px;
}

#app .settings-card .form-control {
    padding: 7px 10px;
    font-size: 13px;
}

/* 精简提示行，节省纵向空间（关键信息保留在标签与占位符中） */
#app .settings-card .input-hint {
    display: none;
}

/* 地区行的直辖市提示例外显示 */
#app .region-row .input-hint {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.5;
}

/* 窄屏时地区行恢复上下排列 */
@media (max-width: 420px) {
    #app .region-row {
        flex-direction: column;
        gap: 0;
    }
}

#app .settings-card .divider {
    margin: 8px 0;
}

#app .settings-card .btn-md {
    padding: 8px 14px;
    font-size: 13px;
}
