/* ============================================================
   集知 SEO 门户 - 实用工具子模块样式
   依赖全局 style.css（header/footer 基础样式），此文件覆盖
   工具页布局与控件样式，并统一提精为「精密数字工作台」风格。
   ============================================================ */

:root {
  --t-sec: #2f5ce3;      /* 安全与编码 · 蓝 */
  --t-sec-soft: #eef2ff;
  --t-text: #0f9d8f;     /* 文本处理 · 青 */
  --t-text-soft: #e6f7f5;
  --t-dev: #7c5ce0;      /* 开发数据 · 紫 */
  --t-dev-soft: #f1eefe;
  --t-media: #e8862d;    /* 图片媒体 · 橙 */
  --t-media-soft: #fdf1e3;
  --t-math: #e05c8a;     /* 数学生活 · 玫红 */
  --t-math-soft: #fdeaf1;
}

/* ---------------- 工具英雄区 ---------------- */
.tools-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -12%, rgba(47, 92, 227, .14), transparent 62%),
    radial-gradient(700px 300px at -8% 110%, rgba(124, 92, 224, .10), transparent 60%),
    linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 20px 46px;
}
.tools-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.t-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; }
.t-orb--1 { width: 340px; height: 340px; right: -70px; top: -120px; background: radial-gradient(circle, rgba(47,92,227,.30), transparent 70%); }
.t-orb--2 { width: 280px; height: 280px; left: -80px; bottom: -140px; background: radial-gradient(circle, rgba(124,92,224,.26), transparent 70%); }
.t-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47, 92, 227, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 92, 227, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
}
.t-glyph {
  position: absolute; font-weight: 800; color: rgba(47, 92, 227, .16);
  font-size: 22px; line-height: 1; user-select: none;
  animation: tFloat 9s ease-in-out infinite;
}
.t-glyph--a { top: 22px; right: 12%; font-size: 30px; }
.t-glyph--b { top: 64px; right: 6%; font-size: 20px; color: rgba(124,92,224,.18); animation-delay: -2s; }
.t-glyph--c { top: 120px; right: 22%; font-size: 18px; color: rgba(15,157,143,.18); animation-delay: -4s; }
.t-glyph--d { bottom: 30px; right: 16%; font-size: 24px; color: rgba(232,134,45,.20); animation-delay: -6s; }
.t-glyph--e { bottom: 70px; right: 4%; font-size: 20px; color: rgba(224,92,138,.18); animation-delay: -3s; }
@keyframes tFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.tools-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.tools-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
  background: var(--accent-soft); border: 1px solid #dbe4fb;
  padding: 5px 12px; border-radius: 999px;
}
.tools-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(47,92,227,.16); }
.tools-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.8px; margin: 18px 0 12px; color: var(--ink); }
.tools-title-grad {
  background: linear-gradient(100deg, var(--accent), #6a5ae0 55%, #0f9d8f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tools-sub { max-width: 640px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }

/* ---------------- 工具栏：搜索 + 分类筛选 ---------------- */
.tools-toolbar { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; max-width: 720px; }
.tools-search { position: relative; display: flex; align-items: center; }
.tools-search-icon { position: absolute; left: 15px; color: var(--ink-muted); pointer-events: none; }
.tools-search input {
  width: 100%; padding: 13px 44px 13px 44px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85);
  font-size: 15px; color: var(--ink); font-family: inherit; box-shadow: 0 2px 10px rgba(16,24,40,.04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tools-search input::placeholder { color: var(--ink-muted); }
.tools-search input:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 18px rgba(47,92,227,.10);
}
.tools-search-clear {
  position: absolute; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: var(--bg-soft); color: var(--ink-muted); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tools-search-clear:hover { background: var(--line); color: var(--ink); }
.tools-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.t-filter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; font-family: inherit; transition: all .18s; line-height: 1;
}
.t-filter i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 7px; }
.t-filter:hover { border-color: #c7d2f5; color: var(--accent); transform: translateY(-1px); }
.t-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(47,92,227,.28); }
.t-filter.is-active i { background: rgba(255,255,255,.22); color: #fff; }

/* ---------------- 面包屑 ---------------- */
.tools-breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 0; font-size: 13px; color: var(--ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.tools-breadcrumb a { color: var(--ink-muted); }
.tools-breadcrumb a:hover { color: var(--accent); }
.tools-breadcrumb span { color: var(--line); }

/* ---------------- 工具主容器 ---------------- */
.tools-main { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px 8px; }
.tools-group { margin-bottom: 14px; }
.tools-group.is-hidden { display: none; }

/* ---------------- 分类标题 ---------------- */
.tools-cat {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; letter-spacing: .01em; color: var(--ink);
  margin: 30px 2px 16px;
}
.tools-cat-bar { width: 4px; height: 18px; border-radius: 3px; background: var(--accent); }
.tools-cat-bar--security { background: var(--t-sec); }
.tools-cat-bar--text { background: var(--t-text); }
.tools-cat-bar--dev { background: var(--t-dev); }
.tools-cat-bar--media { background: var(--t-media); }
.tools-cat-bar--math { background: var(--t-math); }
.tools-cat-count { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* ---------------- 工具卡片网格 ---------------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.tool-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg); color: var(--ink); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .5s ease;
  opacity: 0; transform: translateY(14px);
}
.tool-card.is-hidden { display: none; }
.tool-card.is-in { opacity: 1; transform: none; }
.tool-grid .tool-card:nth-child(1) { transition-delay: .02s; }
.tool-grid .tool-card:nth-child(2) { transition-delay: .06s; }
.tool-grid .tool-card:nth-child(3) { transition-delay: .10s; }
.tool-grid .tool-card:nth-child(4) { transition-delay: .14s; }
.tool-grid .tool-card:nth-child(5) { transition-delay: .18s; }
.tool-grid .tool-card:nth-child(6) { transition-delay: .22s; }
.tool-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 160px at 100% 0%, rgba(47,92,227,.06), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.tool-card:hover { transform: translateY(-5px); border-color: #cdd8f7; box-shadow: 0 14px 34px rgba(16,24,40,.10); }
.tool-card:hover::after { opacity: 1; }
.tool-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-card-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 10px rgba(16,24,40,.10);
  transition: transform .25s ease;
}
.tool-card:hover .tool-card-icon { transform: translateY(-2px) scale(1.04); }
.tool-icon--security { background: linear-gradient(135deg, #2f5ce3, #5b7cf0); }
.tool-icon--text { background: linear-gradient(135deg, #0f9d8f, #2fc0b0); }
.tool-icon--dev { background: linear-gradient(135deg, #7c5ce0, #a48bf0); }
.tool-icon--media { background: linear-gradient(135deg, #e8862d, #f0a655); }
.tool-icon--math { background: linear-gradient(135deg, #e05c8a, #f088a8); }
.tool-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.1px; }
.tool-card-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; }
.tool-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 2px; }
.tool-card-arrow { display: inline-block; transition: transform .2s ease; }
.tool-card:hover .tool-card-arrow { transform: translateX(4px); }

/* ---------------- 空结果提示 ---------------- */
.tools-empty {
  text-align: center; padding: 42px 20px; color: var(--ink-muted);
  border: 1px dashed var(--line); border-radius: 16px; margin: 8px 0 30px;
}
.tools-empty-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.tools-tip { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-muted); font-size: 13px; line-height: 1.7; margin: 26px 2px 40px; }
.tools-tip svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ---------------- 工具面板 ---------------- */
.tool-panel {
  position: relative;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); padding: 26px; margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(16,24,40,.03);
}
.tool-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tool-panel-title { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.tool-panel-title em { font-style: normal; color: var(--ink-muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.tool-panel-desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; line-height: 1.7; }

/* ---------------- 表单控件 ---------------- */
.t-field { margin-bottom: 18px; }
.t-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.t-label em { color: #dc2626; }
.t-label-row { display: flex; align-items: center; gap: 6px; }

.t-input, .t-select, .t-textarea {
  width: 100%; box-sizing: border-box; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; color: var(--ink); background: var(--bg); font-family: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.t-input:focus, .t-select:focus, .t-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.t-textarea { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; line-height: 1.6; resize: vertical; }
.t-textarea.mono, .t-input.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* ---------------- 行内组合控件 ---------------- */
.t-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.t-row .t-field { flex: 1; min-width: 140px; }
.t-row .t-field.grow2 { flex: 2; }
.t-seg { display: inline-flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.t-seg button { padding: 8px 17px; font-size: 14px; font-weight: 600; border: 0; border-radius: 9px; background: transparent; color: var(--ink-muted); cursor: pointer; transition: all .18s; }
.t-seg button.on, .t-seg button.is-active { background: var(--bg); color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.10); }

/* ---------------- 选项 / 复选 ---------------- */
.t-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.t-opt { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.t-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.t-opt input[type=number] { accent-color: var(--accent); }

/* ---------------- 按钮 ---------------- */
.t-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 20px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 11px 21px; border-radius: 11px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.t-btn:active { transform: translateY(1px) scale(.99); }
.t-btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgba(47,92,227,.22); }
.t-btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); box-shadow: 0 6px 16px rgba(47,92,227,.30); }
.t-btn-ghost { background: var(--bg); border-color: var(--line); color: var(--ink-soft); }
.t-btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.t-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- 示例标签 ---------------- */
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chips button {
  padding: 6px 13px; font-size: 13px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); color: var(--ink-soft);
  cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s, transform .15s;
}
.t-chips button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------------- 问号提示 ---------------- */
.t-help {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--ink-muted); color: var(--ink-muted);
  font-size: 11px; font-weight: 800; line-height: 1; cursor: help; background: transparent; padding: 0; user-select: none;
}
.t-help:hover, .t-help.open { border-color: var(--accent); color: var(--accent); }
.t-help-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px); width: 240px; padding: 10px 12px;
  background: #1f2937; color: #f3f4f6; font-size: 12px; font-weight: 400; line-height: 1.6;
  border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .15s ease, transform .15s ease; z-index: 30; text-align: left; pointer-events: none;
}
.t-help-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1f2937; }
.t-help:hover .t-help-tip, .t-help.open .t-help-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------------- 输出 / 结果 ---------------- */
.t-out-wrap { position: relative; }
.t-out {
  width: 100%; box-sizing: border-box; min-height: 120px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-soft); color: var(--ink); font-size: 14px; line-height: 1.6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; resize: vertical;
}
.t-out.readonly { background: var(--bg-soft); }
.t-copy {
  position: absolute; top: 10px; right: 10px; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.t-copy:hover { border-color: var(--accent); color: var(--accent); }
.t-copied { background: #eef6f0 !important; border-color: #1f7a4d !important; color: #1f7a4d !important; }

/* ---------------- 复制提示 Toast ---------------- */
.copy-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: #1f2937; color: #f3f4f6; font-size: 14px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.22);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease;
  z-index: 100; pointer-events: none;
}
.copy-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------------- 结果统计 ---------------- */
.t-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.t-stat { display: flex; flex-direction: column; }
.t-stat b { font-size: 24px; color: var(--accent); font-weight: 800; line-height: 1.2; }
.t-stat span { font-size: 12.5px; color: var(--ink-muted); }

/* ---------------- 提示 / 错误 ---------------- */
.t-hint { font-size: 13px; color: var(--ink-muted); margin-top: 8px; line-height: 1.7; }
.t-hint code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.t-error { color: #c0392b; font-size: 13.5px; background: #fdf0ef; border: 1px solid #f5c6c2; padding: 11px 14px; border-radius: 11px; margin-top: 8px; display: none; }
.t-error.show { display: block; }

/* ---------------- 算法选择 ---------------- */
.t-algo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.t-algo {
  text-align: left; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.t-algo:hover { border-color: var(--accent); color: var(--accent); }
.t-algo.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------- 颜色选择输入 ---------------- */
.t-color { width: 64px; height: 44px; padding: 4px; cursor: pointer; }

/* ---------------- 二维码预览 ---------------- */
.qr-preview { display: flex; justify-content: center; align-items: center; min-height: 130px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 13px; padding: 20px; }
.qr-preview canvas, .qr-preview img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------------- 图片预览框 ---------------- */
.img-frame { display: flex; justify-content: center; align-items: center; min-height: 180px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 13px; padding: 12px; overflow: hidden; }
.img-frame-center { min-height: 220px; }
.img-frame img { max-width: 100%; max-height: 320px; border-radius: 8px; object-fit: contain; }

/* ---------------- 占位图预设 ---------------- */
.ph-presets { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- 颜色工具 ---------------- */
.cl-swatch { height: 120px; border-radius: 13px; border: 1px solid var(--line); margin-bottom: 10px; }
.cl-checker { height: 120px; border-radius: 13px; border: 1px solid var(--line); mix-blend-mode: multiply; }
.cl-out-list { display: flex; flex-direction: column; gap: 8px; }
.cl-out-row { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; }
.cl-out-key { width: 120px; font-size: 13px; font-weight: 700; color: var(--ink-soft); flex-shrink: 0; }
.cl-out-val { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 14px; flex: 1; word-break: break-all; }
.cl-out-copy { padding: 5px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.cl-out-copy:hover { border-color: var(--accent); color: var(--accent); }
.cl-palette { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-pal-chip { width: 44px; height: 44px; border-radius: 11px; border: 1px solid rgba(0,0,0,.08); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.cl-pal-chip:hover { transform: scale(1.12); box-shadow: 0 4px 10px rgba(0,0,0,.12); }

/* ---------------- 单位换算 ---------------- */
.un-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.un-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 11px 15px; transition: border-color .15s; }
.un-row.is-self { border-color: var(--accent); background: var(--accent-soft); }
.un-label { font-size: 14px; color: var(--ink-soft); }
.un-val { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 15px; font-weight: 700; color: var(--ink); }
.un-list-empty { grid-column: 1 / -1; color: var(--ink-muted); font-size: 14px; }

/* ---------------- 计算器结果 ---------------- */
.ml-out { display: flex; flex-direction: column; gap: 8px; }
.ml-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 13px 17px; }
.ml-row span { font-size: 14px; color: var(--ink-soft); }
.ml-row b { font-size: 17px; font-weight: 800; color: var(--accent); }

/* ---------------- BMI 标准色带 ---------------- */
.bmi-scale { display: flex; border-radius: 12px; overflow: hidden; margin: 4px 0 12px; }
.bmi-scale-tag { flex: 1; text-align: center; padding: 11px 6px; font-size: 13px; font-weight: 700; color: #fff; }
.bmi-scale-tag.less { background: #13c2c2; }
.bmi-scale-tag.normal { background: #52c41a; }
.bmi-scale-tag.over { background: #faad14; color: #402900; }
.bmi-scale-tag.obese { background: #ff4d4f; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
  .tools-hero { padding: 40px 18px 34px; }
  .tools-toolbar { margin-top: 20px; }
  .tool-panel { padding: 20px; }
  .t-row { flex-direction: column; }
  .t-row .t-field { min-width: 0; }
  .tools-breadcrumb { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card { transition: none; }
  .t-glyph { animation: none; }
  .t-orb { display: none; }
}