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

/* ── BMI结果卡片 ── */
.tz-result {
    margin-top: 1.5rem;
}

.tz-bmi-card {
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

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

.tz-bmi-label {
    color: #666;
}

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

/* ── 理想体重范围卡片 ── */
.tz-ideal-card {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.tz-ideal-title {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 0.8rem;
}

.tz-ideal-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.tz-ideal-item {
    text-align: center;
}

.tz-ideal-label {
    display: block;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.tz-ideal-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Fira Code', monospace;
}

.tz-ideal-sep {
    font-size: 1.2rem;
    color: #999;
    margin-top: 0.8rem;
}

.tz-ideal-mid {
    text-align: center;
    font-size: 0.88rem;
    color: #555;
    padding: 0.5rem;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.tz-ideal-mid strong {
    color: #2563eb;
    font-family: 'Fira Code', monospace;
}

.tz-ideal-note {
    text-align: center;
    font-size: 0.78rem;
    color: #999;
}

.tz-ideal-note strong {
    color: #666;
}

/* ── 当前体重位置提示 ── */
.tz-position {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.tz-position.pos-normal {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.tz-position.pos-thin {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.tz-position.pos-over {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tz-position.pos-obese {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── 理想体重参考表 ── */
.tz-table-wrap {
    max-width: 720px;
    margin: 0 auto;
}

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

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

.tz-table td {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: #555;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Fira Code', monospace;
}

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

.tz-table tr:hover {
    background: #f8f9fb;
}

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

    .tz-ideal-val {
        font-size: 1.2rem;
    }

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