/* BMR 基础代谢率计算器样式
   三列输入 + 三张结果卡 + 活动系数参考表；窄屏逐级塌陷。 */

/* style.css 没有 .tool-title-wrapper，每个工具页都要自带，否则标题图标会被挤到左上角 */
.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;
}

.bmr-error {
    display: none;
    margin-bottom: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #c92a2a;
    font-size: 0.9rem;
}
.bmr-error.show { display: block; }

.bmr-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}
.bmr-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.bmr-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}
.bmr-label .bmr-opt { font-weight: 400; color: #8a94a6; font-size: 0.82rem; }
.bmr-unit-row { display: flex; gap: 0.35rem; }
.bmr-unit-row .bmr-mini { flex: 0 0 auto; }

.bmr-seg { display: flex; gap: 0.4rem; }
.bmr-seg button,
.bmr-unit-row button {
    padding: 0.42rem 0.8rem;
    border: 1px solid var(--border-color, #dfe3e8);
    background: #fff;
    color: var(--text-color);
    border-radius: 7px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.bmr-seg button { flex: 1 1 auto; }
.bmr-seg button:hover,
.bmr-unit-row button:hover { border-color: var(--primary-color); }
.bmr-seg button.active,
.bmr-unit-row button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.bmr-height-row { display: flex; gap: 0.5rem; }
.bmr-height-row .form-input { min-width: 0; }
.bmr-ft-suffix { align-self: center; font-size: 0.82rem; color: #8a94a6; white-space: nowrap; }
.bmr-hidden { display: none; }
.is-hidden { display: none !important; }

.bmr-hint {
    margin: -0.3rem 0 1.2rem;
    font-size: 0.85rem;
    color: #7a8394;
    line-height: 1.6;
}

.bmr-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
.bmr-result-card {
    border: 1px solid var(--border-color, #e6e9ef);
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 1rem 0.9rem;
    text-align: center;
    background: #fafbff;
}
.bmr-result-card:nth-child(2) { border-top-color: #4facfe; }
.bmr-result-card:nth-child(3) { border-top-color: #43cea2; }
.bmr-result-label { font-size: 0.88rem; font-weight: 600; color: var(--text-color); }
.bmr-result-value {
    margin: 0.45rem 0 0.2rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}
.bmr-result-card:nth-child(2) .bmr-result-value { color: #2196c9; }
.bmr-result-card:nth-child(3) .bmr-result-value { color: #2a9d72; }
.bmr-result-sub { font-size: 0.8rem; color: #8a94a6; min-height: 1.1em; }

.bmr-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    color: var(--text-color);
}
.bmr-section-title i { color: var(--primary-color); }
.bmr-table-wrap { overflow-x: auto; }
.bmr-table, .cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.bmr-table th, .bmr-table td,
.cs-table th, .cs-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border-color, #e9ecf2);
    text-align: left;
}
.bmr-table th, .cs-table th {
    background: #f5f7fb;
    font-weight: 600;
    white-space: nowrap;
}
.bmr-table .num, .cs-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.bmr-table tbody tr:hover, .cs-table tbody tr:hover { background: #fafbff; }
.bmr-table-note, .cs-hint {
    margin-top: 0.7rem;
    font-size: 0.83rem;
    color: #7a8394;
    line-height: 1.6;
}
.cs-table-wrap { overflow-x: auto; }

@media (max-width: 700px) {
    .bmr-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bmr-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .bmr-input-grid { grid-template-columns: minmax(0, 1fr); }
    .bmr-result-grid { grid-template-columns: minmax(0, 1fr); }
    .bmr-result-value { font-size: 1.7rem; }
    .bmr-seg { flex-wrap: wrap; }
    .bmr-seg button { flex: 1 1 auto; }
}
