/* ===== 精装层 · 工具盒子（主题色 靛 #4C5BD4）===== */
:root { --acc: #4C5BD4; --acc-soft: rgba(76,91,212,.10); --acc-deep: #33409e; }
body {
  background: linear-gradient(180deg, #eef0fb 0%, #f6f7fc 340px, var(--bg) 720px);
  min-height: 100vh;
}
/* 品牌 hero */
.hero {
  margin: 8px -16px 4px; padding: 30px 24px 26px;
  background: linear-gradient(135deg, var(--acc-deep) 0%, var(--acc) 62%, #7a86e8 100%);
  border-radius: 0 0 26px 26px; color: #fff;
}
.hero .ht { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.hero .hs { margin-top: 6px; font-size: 13px; opacity: .85; }
.hero .hn { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; font-size: 12px; }
/* 工具页头也用主题色小 hero */
.phero { margin: 8px -16px 8px; padding: 20px 22px 18px;
  background: linear-gradient(135deg, var(--acc-deep), var(--acc));
  border-radius: 0 0 22px 22px; color: #fff; }
.phero .pt { font-size: 20px; font-weight: 700; }
.phero .ps { margin-top: 4px; font-size: 12px; opacity: .85; }
.phero a.back-all { color: rgba(255,255,255,.85); text-decoration: none; font-size: 12px; float: right; margin-top: 4px; }
/* 卡片质感 */
.tool-card, .result, .about, .search-box {
  border: 1px solid rgba(20,24,64,.06);
  box-shadow: 0 1px 2px rgba(20,24,64,.04), 0 4px 14px rgba(20,24,64,.04);
  transition: box-shadow .16s ease, transform .16s ease;
}
.tool-card:active { transform: scale(.98); box-shadow: 0 1px 3px rgba(20,24,64,.08); }
@media (hover:hover) { .tool-card:hover { box-shadow: 0 2px 4px rgba(20,24,64,.06), 0 10px 26px rgba(20,24,64,.10); } }
.tool-card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--acc-soft);
}
.tool-card b { margin-top: 10px; }
/* 控件精修 */
.input:focus, .select:focus, .search-box:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.bigbtn { background: linear-gradient(180deg, var(--acc) 0%, var(--acc-deep) 100%); box-shadow: 0 2px 8px rgba(51,64,158,.28); border-radius: 14px; }
.bigbtn:active { transform: scale(.98); }
.bigbtn.ghost { background: #fff; color: var(--acc-deep); border: 1px solid var(--acc); box-shadow: none; }
.catpill.on { background: var(--acc); }
.result .v { color: var(--acc-deep); }
.result .row b { color: var(--text); }
.search-box { border-color: rgba(20,24,64,.08); }
.search-box svg { color: var(--acc); }
/* 分类标题带主题色点 */
.grp-h::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px;
  background: var(--acc); margin-right: 8px; vertical-align: 1px; }
/* 页脚 */
.sitefoot { text-align: center; padding: 28px 0 8px; font-size: 11px; color: var(--t3); }
.sitefoot b { color: var(--t2); font-weight: 600; }
/* PC 增强 */
@media (min-width: 768px) {
  .hero { margin: 12px -32px 8px; padding: 44px 40px 38px; border-radius: 0 0 32px 32px; }
  .hero .ht { font-size: 32px; }
  .phero { margin: 12px -32px 12px; padding: 26px 32px; }
}

/* 工具页精修：footer 贴底 + about 分级条 */
.page { display: flex; flex-direction: column; min-height: 100dvh; }
.page > *:not(:last-child) { flex-shrink: 0; }
.sitefoot { margin-top: auto; padding-top: 32px; }
.about h2 { font-size: 15px; }
.about .ae { color: var(--t3); font-size: 12px; margin: 8px 0 0; }
.bmi-bar { display: flex; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.bmi-bar i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; font-style: normal; }
.bmi-bar b { font-size: 12px; font-family: var(--mono); }
.bmi-bar span { font-size: 11px; opacity: .9; }
.bmi-bar .b1 { background: #dbe7f7; color: #1d4e89; }
.bmi-bar .b2 { background: #cdecdc; color: #14663c; }
.bmi-bar .b3 { background: #fbe8cd; color: #8a5a10; }
.bmi-bar .b4 { background: #f8d5d2; color: #98352e; }
