/* ==========================================================================
   toolzx 大众版 v2（P1，2026-11-25）
   --------------------------------------------------------------------------
   只做「怎么被看见」：把默认的白底 + 蓝色 + 16 圆角，换成暖白 + 橙 + 22 圆角，
   并给首页 / 工具页补一套新的版面组件（.tz-* 前缀，与既有类不冲突）。

   ★ 为什么是覆盖令牌而不是改原文件：tools-site.css 有 10000+ 行、107 个工具都挂在上面，
     逐个改配色等于全站回归；这里在 :root 之后覆写同一批令牌，组件规则一个字没动
     （所有按钮/输入框/工作台都自动跟着变暖），要回滚只需取消一张 <link>。
   ★ 令牌用 html:not([data-theme="dark"]) 限定：.tools-site 的暗色主题是
     [data-theme="dark"]，两者特异性相同，谁后加载谁赢 —— 不加限定时暗色会被这里整套盖掉。
   ========================================================================== */

html:not([data-theme="dark"]) {
  --bg: #FFFBF4;
  --surface: #FFFFFF;
  --surface-2: #FFF7EC;
  --ink: #221C15;
  --muted: #7B6E5F;
  --faint: #9C8B77;
  --border: #F0E6D8;
  --border-strong: #E4D6C2;
  --accent: #F2662E;
  --accent-deep: #C24A17;
  /* 主动作按钮底色落 deep 档：#F2662E 对暖白只有 3.03，被 acts-tier 的 WCAG 守卫逮住
     （2026-11-26）；#C24A17 = 4.75 达标，hover 再深一档 #A63D0F = 6.18。 */
  --act-primary-bg: var(--accent-deep);
  --act-primary-bg-hover: #A63D0F;
  --accent-soft: #FFF0E6;
  --accent-line: #FFD8C2;
  --ok: #2C8B5A;
  --ok-soft: #EAF6EF;
  --ok-ink: #1F6B45;
  /* 引导式工具页（toolzx-tool.css）用：虚线上传区的米色、绿框描边、绿字第二档。
     放在令牌里而不是组件里，暗色才能一起换（见下方暗色块）。 */
  --drop-bg: #FFFBF3;
  --drop-bg-hover: #FFF7EA;
  --drop-line: #EBC7A2;
  --drop-line-hover: #E0B183;
  --ok-line: #CBE7D8;
  --ok-ink-2: #3E7A5A;
  --nav-bg: rgba(255, 251, 244, .86);
  --brand-2: #FF8A4C;
  --shadow-brand: 0 6px 14px -6px rgba(242, 102, 46, .7);
  --note-bg: #FFF6D8;
  --note-ink: #6B5A2C;
  --note-line: #F2E3B4;
  --cc-solid-bg: #221C15;
  --cc-solid-ink: #FFFFFF;
  --radius: 22px;
  --shadow-card: 0 1px 2px rgba(94, 68, 40, .05), 0 12px 26px -18px rgba(94, 68, 40, .30);
  --shadow-card-hover: 0 2px 4px rgba(94, 68, 40, .06), 0 20px 40px -20px rgba(94, 68, 40, .34);
  --shadow-lg: 0 2px 8px rgba(94, 68, 40, .05), 0 28px 60px -34px rgba(94, 68, 40, .35);
}

/* 暗色只把品牌色换暖，其余沿用 tools-site 的暗色令牌（对深底对比度已经校准过） */
/* 暗色令牌必须比 tools-site 的 :root[data-theme="dark"]（0,2,0）更高，否则整块被盖掉，
   按钮与步骤条会退回旧站的蓝色（实测）。 */
:root[data-theme="dark"] {
  --accent: #FF8A4C;
  --accent-deep: #FFA772;
  --accent-soft: #2B1A12;
  --accent-line: #4A2C1C;
  /* 主按钮在暗色里沿用暖色，别退回旧站的 ink 底 */
  --act-primary-bg: var(--accent);
  --act-primary-bg-hover: var(--accent-deep);
  --act-primary-fg: #1A120B;
  --drop-bg: #221B15;
  --drop-bg-hover: #2A211A;
  --drop-line: #5A4130;
  --drop-line-hover: #7A5740;
  --ok-line: #2C4A3A;
  --ok-ink-2: #7FBF9B;
  --brand-2: #FFB07A;
  --shadow-brand: 0 6px 14px -6px rgba(255, 138, 76, .45);
  --note-bg: #2C2517;
  --note-ink: #E8D9A8;
  --note-line: #4A3F22;
  --cc-solid-bg: #2A211A;
  --cc-solid-ink: #FFF3E4;
}

/* ============================ 首页：hero ============================ */
/* 居中而不是左对齐：首屏只回答一个问题，居中 + 一颗大连搜索框是所有人都会用的形态
   （原来左对齐时 1440 屏右半边空着，像少了什么）。 */
/* 留白交给 .wrap（左右 32px）与下方 2026-11-25 两栏版规则，这里只管居中这一件事 */
.tz-hero { text-align: center; }
.tz-hero .tz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-deep); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 14px;
}
.tz-hero h1 {
  margin: 18px auto 0; max-width: 20em;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.2;
}
/* 高亮用「荧光笔划一道」而不是换色：橙字在暖白上对比够，但一行里有一块更重的落地感 */
/* 荧光笔式下划线：只画在基线下方一条，不穿过笔画。
   用 background-size 控制厚度而不是百分比渐变 —— 百分比会随行高变化，字号一调就穿字。 */
.tz-hl {
  display: inline-block;
  background-image: linear-gradient(#FFD9C0, #FFD9C0);
  background-repeat: no-repeat;
  background-size: 100% 10px;
  background-position: 0 92%;
  padding: 0 2px 4px;
}
.tz-hero .tz-sub { margin: 16px auto 0; font-size: 16.5px; color: var(--muted); max-width: 44em; }
.tz-hero .tz-sub b { color: var(--ink); font-weight: 600; }

.tz-search {
  display: flex; margin-left: auto; margin-right: auto; align-items: center; gap: 12px;
  width: 100%; max-width: 720px; height: 62px;
  margin-top: 26px; padding: 0 10px 0 18px;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 18px; box-shadow: 0 12px 26px -20px rgba(94, 68, 40, .5);
  color: var(--muted); font-size: 15.5px; text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tz-search:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 30px -20px rgba(242, 102, 46, .55);
}
.tz-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tz-search svg { flex: 0 0 auto; color: var(--accent); }
.tz-search-ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-kbd {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 3px 7px;
}

.tz-hints { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.tz-hints-label { color: var(--faint); margin-right: 2px; }
.tz-chip {
  display: inline-flex; align-items: center; min-height: 30px;
  padding: 4px 13px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 13px; color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.tz-chip:hover { color: var(--accent-deep); border-color: var(--accent-line); background: var(--accent-soft); }

/* ============================ 首页：分区与卡片 ============================ */
.tz-sec { margin-top: 52px; }
.tz-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tz-sec-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.tz-sec-sub { font-size: 13.5px; color: var(--faint); }
.tz-more { margin-left: auto; font-size: 13.5px; line-height: 24px; font-weight: 600; color: var(--accent-deep); }   /* line-height 撑触控命中 ≥24（touch T7） */
.tz-more:hover { color: var(--accent); }

.tz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tz-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface);
  transition: transform .18s cubic-bezier(.22,.8,.36,1), box-shadow .18s, border-color .18s;
}
.tz-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 34%, var(--border));
  box-shadow: var(--shadow-card-hover);
}
.tz-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tz-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px; border-radius: 13px;
  background: var(--cat-soft, var(--accent-soft)); color: var(--cat, var(--accent));
}
.tz-card-name { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.tz-card-desc { margin-top: 6px; font-size: 13px; line-height: 1.62; color: var(--muted); }

/* 任务卡：三列大卡，标题 + 说明 + 代表工具名，比原来 5 张挤一行好扫 */
.tz-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tz-task {
  display: flex; align-items: flex-start; gap: 13px; min-width: 0;
  padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tz-task:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 32%, var(--border));
  box-shadow: var(--shadow-card);
}
.tz-task:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tz-task .tz-task-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--cat-soft, var(--accent-soft)); color: var(--cat, var(--accent));
}
.tz-task-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tz-task-name { font-size: 15px; font-weight: 650; }
.tz-task-name b { margin-left: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--faint); }
.tz-task-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.tz-task-eg { font-size: 12px; color: var(--faint); line-height: 1.5; }
.tz-task-go { margin-left: auto; align-self: center; flex: 0 0 auto; color: var(--faint); transition: color .18s, transform .18s; }
.tz-task:hover .tz-task-go { color: var(--accent); transform: translateX(2px); }

/* 万能输入区：结构不动，只换框与节奏 */
.tz-stage textarea { min-height: 132px; }
.tz-input-bar { justify-content: flex-start; gap: 10px; }
.tz-input-hint { font-size: 11.5px; color: var(--faint); }
.tz-stage { margin-top: 0; max-width: 1060px; margin-left: 0; }
.tz-stage .input-card { border-radius: 20px; border-color: var(--border); box-shadow: var(--shadow-card); }
.tz-stage .result-card { border-radius: 20px; }

/* 信任条：首页底部靠左，跟卡片列对齐；不再是 hero 下居中的三个胶囊 */
.tz-trust { justify-content: flex-start; margin-top: 26px; }
.tz-trust span { background: transparent; border-color: var(--border-strong); }

/* 分类 chip 一排：保留原组件，只把形状收紧一点 */
.home-cats { gap: 9px; }
.home-cats .hcat { border-radius: 999px; padding: 7px 14px; transition: border-color .15s, background .15s, color .15s; }
.home-cats .hcat:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ============================ 工具页：人话页头 ============================ */
/* 标题块要吃满行宽：.head-row 是 flex，不给 flex:1 时这一步只有内容宽度，
   三步卡只铺到 2/3、收藏星被挤到下一行（实测）。本地处理 pill 靠 margin-left:auto 仍贴右。 */
.tz-tool .head-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 14px; align-items: start;
}
.tz-tool .head-row > .fx:first-child { grid-column: 1; min-width: 0; }
.tz-tool .head-row > .local-badge,
.tz-tool .head-row > .fav-btn { align-self: center; }
.tz-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  color: var(--cat, var(--accent-deep)); background: var(--cat-soft, var(--accent-soft));
}
.tz-tool-h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.22; }
.tz-alias {
  margin-top: 7px; font-size: 12.5px; color: var(--faint); letter-spacing: .01em;
  /* 分类药丸并进本行（2026-11-26）：flex 对齐 + 可换行，手机上放不下时药丸/名字各自成行 */
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px;
}
/* 评分汇总（.t-rating）随页头统一并进 alias 行：抵消它在 .tool-head 下的行上间距，
   保持与药丸/用量同一基线（2026-11-26 页头全站统一）。 */
.tz-alias .t-rating { margin-top: 0; }
.tz-lead { margin-top: 12px; font-size: 15.5px; color: var(--muted); max-width: 52em; }

/* 2026-11-25 用户口径：三步卡与「工具面板」提示条整体下线（纯占纵向空间，
   要滑很远才看到可操作的地方）。对应的步骤卡与提示条组件规则一并删除 ——
   渲染口已经不在视图里，留着只会误导后来人。
   步骤引导只在引导式分部（tzt- 前缀组件）里保留。 */

/* 工作台高度是按 100vh 扣 --wb-offset 算的：页头矮了工作台底边会缩进折叠线里、
   高了底边被顶出折叠线、底部状态条看不见。
   （2026-11-26 页头全站统一后：这里的静态值按「1 行 lead」口径保留，只做无 JS 兜底 ——
   core.js 的 syncWbOffset 会在装配后实测工作台顶边写准 offset，描述折两行的页也贴线。
   ≤860 工作台转 height:auto 内容撑高，不吃这档。） */
main.tz-tool { --wb-offset: 225px; }
@media (max-width: 920px) { main.tz-tool { --wb-offset: 265px; } }

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
  .tz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .tz-hero { padding-top: 40px; }
  .tz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 页头回到 flex：窄屏上「本地处理 / 收藏」两枚跟标题块换行排，
     留在三列网格里会把标题块挤成 140px 一条（实测 500px 下三步卡每行只剩 4 个字）。 */
  .tz-tool .head-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
  .tz-tool .head-row > .fx:first-child { flex: 1 1 100%; }
  .tz-tool .head-row > .local-badge { margin-left: 0; }
}
@media (max-width: 640px) {
  .tz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tz-card { padding: 14px; border-radius: 18px; }
  .tz-ic { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 11px; }
  .tz-card-name { font-size: 14.5px; }
  .tz-card-desc { font-size: 12.5px; }
  .tz-tasks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tz-search { height: 56px; font-size: 14.5px; }
  .tz-kbd { display: none; }
  .tz-sec { margin-top: 38px; }
  .tz-sec-head h2 { font-size: 19px; }
  .tz-sec-sub { font-size: 12.5px; }
  .tz-tool-h1 { font-size: 26px; }
}

/* ==========================================================================
   全站顶栏 + 移动端底栏（2026-11-25，用户口径：logo、头部、导航都按设计稿重做）
   --------------------------------------------------------------------------
   导航为什么只留三项：普通人到工具站是「有事要办」，不是来逛栏目。真正的一级入口
   只有两个 —— 搜索（我知道我要什么）和「按手头的事找」（我不知道该用哪个，但知道
   手头有什么）。栏目再多一级，就等于让人先在菜单里做一次分类判断，那正是老版最劝
   退的地方。所以：首页 / 全部工具 / 小指南，三项之外不再加下拉、不加分类树。
   移动端把这套搬到底部 tab（拇指够得着、位置固定），顶栏只剩品牌和主题。
   ========================================================================== */

.tz-top {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.tz-top-in {
  max-width: 1240px; margin: 0 auto; height: 70px; padding: 0 32px;
  display: flex; align-items: center; gap: 30px;
}
.tz-brand { display: flex; align-items: center; gap: 11px; flex: none; text-decoration: none; color: var(--ink); }
.tz-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--brand-2), var(--accent));
  box-shadow: var(--shadow-brand);
  display: grid; place-items: center; color: #fff;
}
.tz-mark-img { width: 34px; height: 34px; border-radius: 11px; object-fit: contain; }
.tz-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.tz-brand-name small { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 7px; letter-spacing: .2px; }

.tz-nav { display: flex; align-items: center; gap: 4px; }
.tz-nav a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.tz-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.tz-nav a.on { color: var(--accent-deep); font-weight: 700; }
.tz-nav a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 16px; height: 3px; border-radius: 3px; background: var(--accent);
  transform: translateX(-50%);
}

.tz-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tz-top-search {
  display: flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 8px 0 14px; width: 262px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--faint);
  font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.tz-top-search:hover { border-color: var(--accent-line); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.tz-top-search-txt { flex: 1 1 auto; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-top-kbd { display: inline-flex; gap: 3px; flex: none; }
.tz-top-kbd kbd {
  font: inherit; font-size: 11px; padding: 2px 5px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--faint);
}
.tz-icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.tz-icon-btn:hover { color: var(--ink); border-color: var(--accent-line); }

@media (max-width: 720px) {
  .tz-top-in { height: 60px; padding: 0 18px; gap: 12px; }
  .tz-nav { display: none; }
  .tz-brand-name small { display: none; }
  .tz-top-search { width: 40px; padding: 0; justify-content: center; }
  .tz-top-search-txt, .tz-top-kbd { display: none; }
  .tz-icon-btn { width: 38px; height: 38px; }
}


/* ==========================================================================
   首页 hero：左右两栏 + 右侧「手上的活儿」拼贴（2026-11-25 按设计稿 home.html）
   --------------------------------------------------------------------------
   为什么改成两栏：原来单列居中，1440 屏上右半屏是空的，首屏只说了「你好」；
   右边这块拼贴把四个真实工具做成「刚做完的样子」，普通人一眼能认出
   「这里能帮我把图变小 / 查日子 / 加拼音」，比再列一遍分类有效。
   四张卡都是真链接，不是装饰图；窄屏时整块隐藏，不占手机首屏。
   ========================================================================== */

.tz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 40px;
  align-items: center;
  /* .hero 自带 padding: 58px 0 4px（左右 0）会盖掉 .wrap 的 32px，
     所以左右留白必须在这条规则里显式再给一次，否则首屏内容顶到屏幕边。 */
  padding: 54px 32px 10px;
  text-align: left;
}
.tz-hero-l { min-width: 0; }
.tz-hero .tz-eyebrow { margin-left: 0; }
.tz-hero h1 {
  margin: 18px 0 0;
  text-align: left;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.16;
  letter-spacing: -1.6px;
}
.tz-hero .tz-sub { margin: 18px 0 0; max-width: 470px; font-size: 17.5px; line-height: 1.75; }
.tz-hero .tz-search { margin: 26px 0 0; max-width: 560px; height: 64px; border-radius: 19px; }
.tz-hero .tz-hints { justify-content: flex-start; margin-top: 16px; }

/* 手绘下划线：比一条实心色块更像「人写的」，也不抢标题的颜色 */
.tz-hl { position: relative; background: none; padding: 0; white-space: nowrap; color: var(--accent-deep); }
.tz-hl-line {
  position: absolute; left: 2px; right: 2px; bottom: -6px;
  width: calc(100% - 4px); height: 10px; overflow: visible;
}

.tz-collage { position: relative; height: 400px; min-width: 0; }
.tz-cc-spark {
  position: absolute; left: -20px; top: 268px;
  width: 32px; height: 32px; color: var(--accent-line);
}
.tz-cc {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.tz-cc:hover { box-shadow: var(--shadow-card-hover); }

.tz-cc-main {
  left: 96px; top: 52px; width: 330px; padding: 18px;
  transform: rotate(-1.2deg); z-index: 2;
}
.tz-cc-main:hover { transform: rotate(0deg) translateY(-2px); }
.tz-cc-main .tz-cc-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.tz-cc-main .tz-cc-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.tz-cc-drop {
  display: grid; place-items: center; margin-top: 14px; height: 118px;
  border: 1.5px dashed var(--drop-line); border-radius: 14px;
  background: var(--drop-bg); text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.tz-cc-drop b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.tz-cc-files { display: grid; gap: 8px; margin-top: 12px; }
.tz-cc-file { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tz-cc-file .thumb { width: 22px; height: 22px; border-radius: 6px; flex: none; background: linear-gradient(140deg, #FFD3B4, #FFB183); }
.tz-cc-file .thumb.b { background: linear-gradient(140deg, #CFDDFF, #A9C0FF); }
.tz-cc-file .nm { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-cc-file .sz { font-variant-numeric: tabular-nums; }
.tz-cc-file .ok { color: var(--ok); font-weight: 700; }

.tz-cc-note {
  left: -24px; top: 126px; width: 168px; padding: 14px 16px;
  border-radius: 14px; transform: rotate(-6deg);
  background: var(--note-bg); border-color: var(--note-line); color: var(--note-ink);
  font-size: 12.5px; line-height: 1.75; z-index: 3;
}
.tz-cc-note b { display: block; margin-bottom: 4px; font-size: 12px; }
.tz-cc-note:hover { transform: rotate(-3deg) translateY(-2px); }

.tz-cc-pinyin {
  right: -8px; top: 0; width: 172px; padding: 16px 18px;
  transform: rotate(2.5deg); z-index: 4; text-align: center;
}
.tz-cc-pinyin:hover { transform: rotate(0deg) translateY(-2px); }
.tz-cc-pinyin .py { display: block; font-size: 12.5px; letter-spacing: .5px; color: var(--accent-deep); }
.tz-cc-pinyin .hz { display: block; font-size: 27px; font-weight: 800; margin-top: 2px; }
.tz-cc-pinyin .cap { display: block; margin-top: 8px; font-size: 11px; color: var(--faint); }

.tz-cc-count {
  right: 8px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; transform: rotate(1.5deg); z-index: 5;
  background: var(--cc-solid-bg); border-color: var(--cc-solid-bg); color: var(--cc-solid-ink);
}
.tz-cc-count:hover { transform: rotate(0deg) translateY(-2px); }
.tz-cc-count .num { font-size: 26px; font-weight: 800; line-height: 1; }
.tz-cc-count .num small { font-size: 12px; font-weight: 600; margin-left: 2px; opacity: .75; }
.tz-cc-count .lab { font-size: 11.5px; line-height: 1.5; opacity: .85; }

@media (max-width: 1080px) {
  .tz-hero { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; }
  .tz-collage { width: 100%; max-width: 520px; margin: 8px auto 0; height: 380px; }
  .tz-cc-note { left: -10px; }
  .tz-cc-pinyin { right: 0; }
}
@media (max-width: 720px) {
  .tz-collage { display: none; }
  /* 与 tools-site.css 在窄屏把 .wrap 收到 12px 对齐 */
  .tz-hero { padding: 30px 12px 6px; }
  .tz-hero h1 { font-size: 34px; letter-spacing: -1px; }
  .tz-hero .tz-sub { font-size: 15.5px; }
  .tz-hero .tz-search { height: 56px; margin-top: 20px; }
  /* 窄屏上「大家在搜」独占一行，否则标签与胶囊混排、第二行从行首顶出来 */
  .tz-hints { gap: 8px; }
  .tz-hints > .tz-hints-label { flex: 1 0 100%; }
}

/* ============ 2026-11-25 修正：工具内容区与顶栏同宽 + 主题图标只显示一枚 ============ */
/* tools-site.css 把工具页 .wrap 放宽到 1560（给代码面板用），结果内容比顶栏宽出 160px：
   面包屑从 48 起、顶栏 logo 从 100 起，看着像两张纸没对齐。统一收回到 1240。 */
main[data-tool] .wrap { max-width: 1240px; }

/* 主题按钮里两枚 SVG 叠在同一个格子里，按主题只显示一枚。
   tools-site.css 的规则只认 .theme-btn，新顶栏换了类名，两条都显示就会被压扁（实测显示不全）。 */
.tz-icon-btn > svg { grid-area: 1 / 1; }
.tz-icon-btn .ic-sun { display: none; }
[data-theme="dark"] .tz-icon-btn .ic-sun { display: block; }
[data-theme="dark"] .tz-icon-btn .ic-moon { display: none; }

/* 索引页的任务入口（2026-11-25）：五个任务正好凑一行，改成竖排卡，
   两行布局会在右侧留下一个空格子，看着像少了一个。 */
.tz-tasks-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tz-tasks-five .tz-task { flex-direction: column; gap: 10px; position: relative; min-height: 148px; }
.tz-tasks-five .tz-task-eg { display: none; }
.tz-tasks-five .tz-task-go { position: absolute; right: 16px; bottom: 14px; margin: 0; }
.tz-tasks-five .tz-task-body { gap: 5px; }
@media (max-width: 1080px) {
  .tz-tasks-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .tz-tasks-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* 手机上五张竖卡挤成三条会把字挤成一条竖线（实测 390px 每张只剩 110px） */
  .tz-tasks-five { grid-template-columns: minmax(0, 1fr); }
  .tz-tasks-five .tz-task { min-height: 0; }
}

/* 同类工具横滑条：内容比容器宽时，右边缘给一道渐隐，示意「还能往右滑」，
   否则最后一个工具名会被齐口切断（收窄到 1240 后更明显）。 */
main[data-tool] .tl-sibs {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}

/* ============ 工具面板操作条扁平化（2026-11-25 口径，2026-11-26 二次修正） ============ */
/* 文件舞台（qrcode / 图片类）的页头原本是一块蓝灰卡片（#F4F6FB + 冷色描边 + 圆角 + 内阴影），
   压在暖色页面上像另一套系统。
   2026-11-26 用户口径：扁平 ≠ 没有底色——要的是「下面就是工具面板」提示条那种
   奶油面 + 细描边圆角的扁条效果（--surface-2 #FFF7EC + hairline + 13px 圆角），
   去掉的是卡片投影和冷色调，不是线条本身。 */
main[data-tool] .fst-head {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: none;
  padding: 6px 10px;
}
/* 双栏工作台的工具条同理：奶油面扁条（卡片外壳仍由 workbench 提供） */
main[data-tool] .pane-bar {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 6px 10px;
}
