From 7247896f5519c05a412feebb87c8703629773ed6 Mon Sep 17 00:00:00 2001 From: class07f23 Date: Thu, 8 Oct 2026 00:38:10 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=AD=A3=E4=B8=BA=E7=BA=AF?= =?UTF-8?q?=E9=BB=91=E5=BA=95=20+=20=E4=BD=8E=E9=A5=B1=E5=92=8C=E9=87=91?= =?UTF-8?q?=EF=BC=88=E5=8E=BB=E6=8E=89=E5=BD=A9=E8=89=B2=E5=85=89=E9=9B=BE?= =?UTF-8?q?=E4=B8=8E=E5=B1=8F=E5=B9=95=E6=B7=B7=E5=90=88=EF=BC=8C=E5=85=A8?= =?UTF-8?q?=E7=AB=99=E5=8F=AA=E7=94=A8=E9=BB=91=E4=B8=8E=E9=87=91=E4=B8=A4?= =?UTF-8?q?=E8=89=B2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 247 +++++++++++++++++++++++++---------------------------- 1 file changed, 117 insertions(+), 130 deletions(-) diff --git a/index.html b/index.html index d3c3370..ac789a2 100644 --- a/index.html +++ b/index.html @@ -3,64 +3,53 @@ -BMI 与每日热量计算器 · 金 + +BMI 与每日热量计算器 · 黑金 - + - +

BMI 与每日热量 计算器

@@ -262,10 +249,10 @@
- - - - + + + +
@@ -274,22 +261,22 @@
-
+
基础代谢 BMR
0kcal/天
-
+
每日总消耗 TDEE
0kcal/天
-
+
建议每日摄入
0~0kcal/天
-
+
参考目标体重 · BMI 20~21
—
@@ -354,12 +341,13 @@ if (steps < 12500) return [1.50, 1.60]; return [1.60, 1.80]; } + /* 纯金明度阶,不使用红/蓝/绿等彩色 */ function bmiClassOf(bmi, age) { - if (age > 0 && age < 18) return { label: '未成年', color: '#b0a48c' }; - if (bmi < 18.5) return { label: '偏瘦', color: '#8fa8cc' }; - if (bmi < 24) return { label: '正常', color: '#e6c25c' }; - if (bmi < 28) return { label: '超重', color: '#d9903f' }; - return { label: '肥胖', color: '#d9695c' }; + if (age > 0 && age < 18) return { label: '未成年', color: '#a99b74' }; + if (bmi < 18.5) return { label: '偏瘦', color: '#b9ae92' }; + if (bmi < 24) return { label: '正常', color: '#ffeaa2' }; + if (bmi < 28) return { label: '超重', color: '#ddc06a' }; + return { label: '肥胖', color: '#9a7a2c' }; } function compute() { @@ -403,7 +391,6 @@ var tag = $('bmiClass'); tag.textContent = cls.label; tag.style.color = cls.color; - tag.style.boxShadow = '0 0 22px -8px ' + cls.color; $('bmiMarker').style.left = clamp((r.bmi - 13) / (30 - 13) * 100, 0, 100) + '%'; $('bmiScaleNote').textContent = (r.age > 0 && r.age < 18) ? '未满 18 岁:成人阈值 18.5 / 24 / 28 不适用,请用年龄别 BMI 百分位(WS/T 586-2018)判定。'