/* ===========================================================
   好时光 · 工具页浅色皮肤（与新版首页统一）
   仅用于 body.page-tool 的页面，最后加载
   =========================================================== */

:root {
  --bg: #ffffff;
  --card: #f7f9f6;
  --card2: #eef2ec;
  --ink: #16211c;
  --muted: #667a71;
  --line: #e3e8e0;
  --accent: #0f7d55;
  --green: #0f7d55;
  --warn: #b3702f;
}

body.page-tool {
  --ui-bg: #ffffff;
  --ui-card: #f7f9f6;
  --ui-card-2: #eef2ec;
  --ui-line: #e3e8e0;
  --ui-line-2: #d3dcd4;
  --ui-ink: #16211c;
  --ui-ink-head: #0d1712;
  --ui-muted: #667a71;
  --ui-accent: #0f7d55;
  --ui-accent-bg: rgba(15, 125, 85, .08);
  --ui-solid: #0f7d55;
  --ui-solid-ink: #ffffff;

  background: #fff;
  color: var(--ink);
}

html { background: #fff; }

/* 顶部导航：浅色 */
body.page-tool .site-head {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
}
body.page-tool .site-head .brand-text { color: var(--ink); }
body.page-tool .site-nav a { color: #3c4a43; }
body.page-tool .site-nav a:hover { color: var(--accent); }

/* 标题 */
body.page-tool h1 { color: var(--ink); }
body.page-tool .tagline,
body.page-tool .lede { color: var(--muted); }

/* 卡片 */
body.page-tool .card,
body.page-tool .panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 32, 24, .04);
}

/* 进度/滑块轨道原来是深色，浅色下看不见 */
body.page-tool .bar .track,
body.page-tool .prog-bar,
body.page-tool .ba {
  background: #e9efea;
  border-color: var(--line);
}
body.page-tool .prog-bar i,
body.page-tool .bar .track i { background: var(--accent); }

/* 选中态文字改成白色 */
body.page-tool .tab.is-on,
body.page-tool .t-nav a.on,
body.page-tool .chip.is-on {
  color: #fff;
}

/* 上传框 */
body.page-tool .tun-drop {
  background: #fafcfa;
  border: 1.5px dashed #cbd8d0;
  color: var(--ink);
}
body.page-tool .tun-drop:hover,
body.page-tool .tun-drop.over {
  border-color: var(--accent);
  background: #f4faf6;
}
body.page-tool .tun-drop-t { color: var(--ink); }
body.page-tool .tun-drop-h,
body.page-tool .tun-drop-h2 { color: var(--muted); }
body.page-tool .tun-drop-h b { color: var(--accent); }

/* 缩略图与换一张 */
body.page-tool .tun-thumb,
body.page-tool .tun-tile {
  border: 1px solid var(--line);
  background: #fff;
}
body.page-tool .tun-tile-t { color: var(--muted); }

/* 输入框 */
body.page-tool input,
body.page-tool textarea,
body.page-tool select {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
body.page-tool input:focus,
body.page-tool textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 125, 85, .12);
}

/* 底栏（工具页内的 t-nav） */
body.page-tool .t-nav {
  background: #fff;
  border-top: 1px solid var(--line);
}
body.page-tool .t-nav a {
  background: #f4f7f4;
  border: 1px solid var(--line);
  color: #33413a;
  forced-color-adjust: none;
}
body.page-tool .t-nav a.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 结果区 */
body.page-tool .result-video { background: #0c1410; border-color: var(--line); }
body.page-tool .result-hint,
body.page-tool .result-meta,
body.page-tool .note { color: var(--muted); }

/* 祝福卡片在浅色下用白底 */
body.page-tool .fortune-card {
  background: #fff;
  border: 1px solid var(--line);
}
body.page-tool .fortune-note { color: var(--muted); }

/* 弹窗 */
body.page-tool .tools-modal,
body.page-tool .modal-panel {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ===== 覆盖 ui.css 里写死的深色（原来用 !important）===== */
body.page-tool .wrap h1,
body.page-tool .repair-title h1,
body.page-tool .studio-section h1 {
  color: #16211c !important;
}
body.page-tool .btn[disabled],
body.page-tool .btn-block[disabled] {
  background: #dfe5e0 !important;
  color: #7e8b84 !important;
  box-shadow: none !important;
}

/* 标题下的说明文字 */
body.page-tool .tagline { color: #667a71 !important; }

/* 结果标题、分区小标题 */
body.page-tool .result-title,
body.page-tool .fortune-title { color: #16211c; }

/* 卡内正文 */
body.page-tool .card,
body.page-tool .panel { color: #16211c; }

/* 顶部导航在浅色下的分隔 */
body.page-tool .site-head { box-shadow: none; }

/* 页面主按钮用绿色实心 */
body.page-tool .btn-block:not([disabled]),
body.page-tool .btn-primary:not([disabled]) {
  background: #0f7d55;
  color: #fff;
}
body.page-tool .btn-block:not([disabled]):hover { background: #0a5f40; }

/* ===== 覆盖 app.css 的一套变量（修复页仍在用）===== */
body.page-tool {
  --paper: #ffffff;
  --paper-raised: #f7f9f6;
  --paper-sunk: #eef2ec;
  --ink: #16211c;
  --ink-head: #101a14;
  --ink-soft: #3c4a43;
  --ink-body: #4c5a52;
  --muted: #667a71;
  --muted-2: #8a9a92;
  --line: #e3e8e0;
  --line-strong: #d3dcd4;
  --accent: #0f7d55;
  --accent-soft: rgba(15, 125, 85, .08);
  --accent-ink: #0a5f40;
  --gold: #b8892c;
  --dark: #0f7d55;
  --dark-2: #0a5f40;
  --solid-bg: #0f7d55;
  --solid-fg: #ffffff;
  --bar-bg: rgba(255, 255, 255, .94);
  --head-bg: rgba(255, 255, 255, .9);
  --hover: rgba(15, 125, 85, .06);
  --tag-bg: rgba(12, 24, 18, .6);
}

/* 上传圆形图标 */
body.page-tool .drop-ico {
  background: #eef2ec;
  color: #0f7d55;
  border-color: #d3dcd4;
}
body.page-tool .drop-ico svg { color: #0f7d55; }

/* 选中的服务卡片 */
body.page-tool .svc-card.is-selected,
body.page-tool .svc-card.is-in {
  background: #ffffff;
  border-color: var(--accent);
  color: #16211c;
}
body.page-tool .svc-card.is-selected h3,
body.page-tool .svc-card.is-in h3 { color: #101a14; }

/* 提示条 */
body.page-tool .panel-note {
  background: #f4f7f4;
  color: #3c4a43;
  border-color: #e3e8e0;
}
