/* 用户端 · 移动端优先 · 配色克制、圆角柔和 */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --line: #e7e9ec;
  --text: #20242a;
  --text-2: #6d757e;
  --text-3: #9aa2ab;
  --accent: #3f6d63;
  --accent-soft: #e8f0ed;
  --radius: 16px;
  --radius-sm: 11px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #e9ebee;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(30, 40, 50, .05);
}
.view { min-height: 100vh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }
.app.no-tab .view { padding-bottom: 0; }
.app.no-tab .tabbar { display: none; }

/* 顶部提示条（仅预览模式 / 连接异常时出现） */
.banner {
  padding: 7px 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #7a5b1e;
  background: #fbf3df;
  border-bottom: 1px solid #f0e4c4;
  text-align: center;
}
.banner[hidden] { display: none; }

/* ---------- 首页 ---------- */
.home-head { padding: 22px 18px 6px; }
.home-title { font-size: 22px; font-weight: 650; letter-spacing: .5px; margin: 0; }
.home-sub { font-size: 13px; color: var(--text-2); margin: 3px 0 0; }

.search-wrap { padding: 14px 18px 8px; }
.search-box {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
}
.search-box svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.search-box input { flex: 1; border: none; outline: none; background: none; font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); }

/* 横向可滑动分类标签：由数据动态生成 */
.cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 18px 14px; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; padding: 6px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 18px 10px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 14px 14px; text-align: left; min-height: 118px;
  display: flex; flex-direction: column; gap: 7px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:active { transform: scale(.985); box-shadow: 0 4px 14px rgba(30,40,50,.06); }
.card-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; overflow: hidden;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.card-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 6px; color: var(--text-2); background: var(--surface-2); }
.tag.fin { color: #a06a2c; background: #f7efe2; }
.tag.pay { color: var(--accent); background: var(--accent-soft); }

.empty { padding: 64px 24px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.empty .empty-mark { font-size: 30px; display: block; margin-bottom: 10px; opacity: .55; }

/* ---------- 通用子页头（仅返回 + 标题） ---------- */
.sub-head {
  height: 54px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.back-btn {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.back-btn:active { background: var(--surface-2); }
.back-btn svg { width: 20px; height: 20px; }
.sub-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 工具容器页 ---------- */
.tool-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--surface); }
.tool-head {
  height: 52px; flex: none; display: flex; align-items: center; gap: 6px;
  padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.tool-frame-wrap { flex: 1; min-height: 0; position: relative; }
.tool-frame { width: 100%; height: 100%; border: none; display: block; background: #fff; }
/* 金融类免责：独立一行小字，位于 iframe 下方，不遮挡工具 */
.disclaimer {
  flex: none; padding: 7px 14px calc(7px + var(--safe-b));
  font-size: 11px; line-height: 1.5; color: #9a7a48; background: #fbf7ee;
  border-top: 1px solid #f0e7d4; text-align: center;
}

/* ---------- AI 助手页 ---------- */
.ai-wrap { padding: 26px 20px; }
.ai-lead { text-align: center; margin: 18px 0 26px; }
.ai-lead .ai-mark {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ai-lead .ai-mark svg { width: 26px; height: 26px; }
.ai-lead h2 { font-size: 18px; font-weight: 620; margin: 0 0 6px; }
.ai-lead p { font-size: 13px; color: var(--text-2); margin: 0; }
.ai-input-row { display: flex; gap: 9px; }
.ai-input {
  flex: 1; height: 46px; padding: 0 14px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line); outline: none; font-size: 14px;
}
.ai-input:focus { border-color: var(--accent); }
.ai-go { flex: none; padding: 0 18px; border-radius: 13px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.ai-go:active { opacity: .88; }
.ai-result { margin-top: 18px; }
.ai-hint { font-size: 13px; color: var(--text-2); text-align: center; padding: 8px 0; }
.ai-error { font-size: 13px; color: #a06a2c; background: #fbf3e6; border-radius: 11px; padding: 12px 14px; text-align: center; }
.ai-match .card { min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.chip { font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------- 我的 ---------- */
.me-wrap { padding: 20px 18px; }
.me-profile { display: flex; align-items: center; gap: 13px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.me-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 21px; flex: none; }
.me-name { font-size: 16px; font-weight: 600; }
.me-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.me-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.me-stat .k { font-size: 12px; color: var(--text-2); }
.me-stat .v { font-size: 20px; font-weight: 650; margin-top: 4px; }
.me-stat .v.small { font-size: 14px; font-weight: 600; padding-top: 5px; }
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.me-action { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 14px; text-align: left; }
.me-action .ic { font-size: 20px; }
.me-action .t { font-size: 13.5px; font-weight: 600; margin-top: 7px; }
.me-action .d { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.me-list { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.me-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.me-row:last-child { border-bottom: none; }
.me-row:active { background: var(--surface-2); }
.me-row .arrow { color: var(--text-3); font-size: 16px; }
.me-foot { text-align: center; color: var(--text-3); font-size: 11.5px; padding: 22px 0 6px; }

/* ---------- 开源致谢 / 隐私 ---------- */
.doc { padding: 18px 18px 30px; }
.doc p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin: 0 0 14px; }
.credit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 11px; }
.credit .cname { font-size: 14.5px; font-weight: 600; }
.credit .cmeta { font-size: 12px; color: var(--text-2); margin-top: 5px; line-height: 1.6; word-break: break-all; }
.credit .clicense { display: inline-block; margin-top: 9px; font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.doc-h { font-size: 15px; font-weight: 620; margin: 20px 0 9px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); z-index: 20;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; }
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--accent); }

/* ---------- 弹窗（仅次数不足 / 下单确认） ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(24,28,33,.38); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 28px; }
.modal-mask[hidden] { display: none; }
.modal-card { width: 100%; max-width: 320px; background: var(--surface); border-radius: 18px; padding: 22px 20px 16px; }
.modal-title { font-size: 16px; font-weight: 620; text-align: center; }
.modal-desc { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 8px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn { flex: 1; height: 40px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.btn-ghost { background: var(--surface-2); color: var(--text-2); }
.btn-primary { background: var(--accent); color: #fff; }

.toast { position: fixed; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); left: 50%; transform: translateX(-50%); background: rgba(32,36,42,.9); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 10px; z-index: 60; max-width: 80%; text-align: center; }
.toast[hidden] { display: none; }

@media (min-width: 481px) {
  body { padding: 0; }
  .app { min-height: 100vh; }
}

/* ---------- 工具访问校验遮罩（第 7 条） ---------- */
.gate-mask {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.gate-mask[hidden] { display: none; }
.gate-card { text-align: center; padding: 0 22px; }
.gate-spin {
  width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: gatespin .8s linear infinite;
}
.gate-spin[hidden] { display: none; }
@keyframes gatespin { to { transform: rotate(360deg); } }
.gate-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.gate-btn { margin-top: 14px; flex: none; height: 36px; padding: 0 18px; }
.me-note { font-size: 11.5px; color: var(--text-3); margin-top: 10px; text-align: center; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { padding: 72px 26px 26px; }
.auth-h { font-size: 23px; font-weight: 600; letter-spacing: -.3px; color: var(--text); }
.auth-p { margin: 8px 0 30px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.auth-input {
  display: block; width: 100%; box-sizing: border-box; height: 50px; padding: 0 15px;
  margin-bottom: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 15px;
  outline: none; -webkit-appearance: none; transition: border-color .15s;
}
.auth-input::placeholder { color: var(--text-3); }
.auth-input:focus { border-color: var(--accent); }
.auth-btn {
  display: block; width: 100%; height: 50px; margin-top: 10px;
  border-radius: var(--radius-sm); font-size: 15px;
}
.auth-switch { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--text-2); text-decoration: none; }

/* 登录方式切换（验证码 / 密码） */
.auth-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px;
}
.auth-tab {
  flex: 1; height: 40px; border-radius: 8px; font-size: 14px;
  color: var(--text-2); background: transparent; transition: background .15s, color .15s;
}
.auth-tab.active { background: var(--surface); color: var(--text); font-weight: 600; }
.auth-row { display: flex; gap: 10px; align-items: flex-start; }
.auth-code { flex: 1; letter-spacing: 2px; }
.auth-send {
  flex: 0 0 116px; height: 50px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--accent); font-size: 14px; white-space: nowrap;
}
.auth-send[disabled] { color: var(--text-3); }
.auth-wechat { margin-top: 26px; text-align: center; }
.auth-wx {
  padding: 8px 14px; font-size: 13px; color: var(--text-3);
  background: none; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 管理员预览（E）：顶部标记 + iframe 覆盖水印 ---------- */
.pv-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--surface); }
.pv-bar {
  flex: none; height: 48px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: #fdf5f4; border-bottom: 1px solid #f3dcd9;
}
.pv-tag {
  flex: none; padding: 2px 9px; border-radius: 7px; background: #b4443c; color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
}
.pv-name { flex: 1; min-width: 0; font-size: 13px; color: #7a4b46; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-note { flex: none; font-size: 11px; color: #b08a86; }
.pv-x {
  flex: none; margin-left: 4px; padding: 3px 10px; border: 1px solid #eccfcc;
  border-radius: 7px; background: #fff; color: #8c3a34; font-size: 12px;
}
.pv-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.pv-frame { width: 100%; height: 100%; border: none; display: block; background: #fff; }
.pv-mask {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; background: var(--surface);
}
.pv-mask[hidden] { display: none; }
.pv-mask-card { text-align: center; padding: 0 26px; font-size: 13px; color: var(--text-2); }

/* 水印层：盖在 iframe 之上、不吃点击；工具自己改样式也盖不住它 */
.pv-wm {
  position: absolute; inset: 0; z-index: 10; pointer-events: none; overflow: hidden;
  display: flex; flex-wrap: wrap; align-content: flex-start;
  transform: rotate(-22deg) scale(1.35); transform-origin: center; opacity: .17;
}
.pv-wm span {
  flex: 0 0 26%; padding: 34px 0; text-align: center;
  font-size: 12px; font-weight: 600; color: #b4443c; white-space: nowrap; letter-spacing: 1px;
}
@media (prefers-color-scheme: dark) {
  .pv-bar { background: #2a1e1d; border-bottom-color: #3d2a28; }
  .pv-name { color: #e3b7b2; }
  .pv-note { color: #9c7d79; }
}

/* ============================================================================
   F · 合规 / 兜底 / 会员 / PWA
   ============================================================================ */

/* ---------- 离线横幅 ---------- */
.net-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding: 7px 12px calc(7px); text-align: center;
  background: #40201e; color: #ffd9d5; font-size: 12px;
}
.net-bar[hidden] { display: none; }
body.is-offline .app { padding-top: 30px; }

/* ---------- 隐私同意弹层（法定必要弹窗） ---------- */
.consent-layer {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 24, 28, .48);
  backdrop-filter: blur(2px);
}
.consent-card {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(20px + var(--safe-b));
  animation: csUp .24s ease-out;
}
@keyframes csUp { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.consent-h { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.consent-p { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.consent-list { margin: 14px 0 4px; padding-left: 18px; }
.consent-list li { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 7px; }
.consent-list b { color: var(--text); font-weight: 600; }
.consent-links { display: flex; gap: 16px; margin: 12px 0 16px; font-size: 13px; }
.consent-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent-acts { display: flex; gap: 10px; }
.consent-btn { flex: 1; height: 46px; border-radius: var(--radius-sm); font-size: 15px; }
.consent-foot { margin-top: 12px; text-align: center; font-size: 11px; color: var(--text-3); }

/* 仅浏览：工具卡片可点但会被拦回弹窗 */
body.browse-only .grid { opacity: .96; }

/* ---------- 统一状态页（错误 / 封禁 / 空态） ---------- */
.state-page { padding: 56px 26px 30px; text-align: center; }
.state-icon { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.state-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.state-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 auto 18px; max-width: 340px; }
.state-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.state-btn, .err-btn { min-width: 120px; height: 44px; border-radius: var(--radius-sm); font-size: 14px; }
.state-note { margin-top: 18px; font-size: 11px; color: var(--text-3); }
.ban-box {
  margin: 0 auto 16px; max-width: 320px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  padding: 10px 14px;
}
.ban-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: var(--text-2); }
.ban-row b { color: var(--text); font-weight: 600; }

/* ---------- 会员引导 ---------- */
.member-wrap { padding: 18px 16px 40px; }
.member-tip {
  padding: 11px 13px; border-radius: 12px; margin-bottom: 16px;
  background: #fdf5f4; border: 1px solid #f3dcd9; color: #8c3a34; font-size: 12.5px; line-height: 1.6;
}
.member-h { font-size: 14px; font-weight: 600; margin: 18px 2px 10px; }
.member-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mb-item {
  display: flex; gap: 9px; padding: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.mb-ic { font-size: 18px; line-height: 1.2; }
.mb-t { font-size: 13px; font-weight: 600; }
.mb-d { font-size: 11px; color: var(--text-3); line-height: 1.5; margin-top: 2px; }
.plan-box { display: flex; gap: 10px; flex-wrap: wrap; }
.plan {
  position: relative; flex: 1 1 30%; min-width: 96px; padding: 14px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center;
}
.plan-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: #b4443c; color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 7px; white-space: nowrap;
}
.plan-name { font-size: 13px; color: var(--text-2); }
.plan-price { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.plan-old { font-size: 11px; color: var(--text-3); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.plan-days { font-size: 11px; color: var(--text-3); }
.plan-buy {
  margin-top: 10px; width: 100%; height: 32px; font-size: 12px;
  border-radius: 9px; background: var(--accent); color: #fff;
  border: none; font-weight: 600; cursor: pointer;
}
.plan-buy:disabled { opacity: .6; cursor: default; }

/* 支付弹窗（扫码 / 客服引导）—— 手机和电脑都居中显示 */
.pay-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 26, 28, .5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pay-mask[hidden] { display: none; }
.pay-card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 16px;
  padding: 22px 20px 18px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.pay-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.pay-qr { width: 200px; height: 200px; margin: 0 auto 12px; }
.pay-qr img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.pay-order {
  font-size: 12px; color: var(--text-3); font-family: ui-monospace, monospace;
  background: var(--surface-2); border-radius: 8px; padding: 7px 10px;
  margin-bottom: 10px; word-break: break-all;
}
.pay-tip { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.pay-card .btn { width: 100%; height: 40px; margin-bottom: 8px; display: block; }
.pay-card .btn:last-child { margin-bottom: 0; }
.member-note { margin: 16px 2px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.member-acts { display: flex; gap: 10px; }
.member-acts .btn { flex: 1; height: 46px; border-radius: var(--radius-sm); }

/* ---------- 最近使用（首页顶部，仅登录且未筛选时显示） ---------- */
.recent-h { font-size: 12px; color: var(--text-3); margin: 14px 2px 8px; }
.recent-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px 8px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-1); cursor: pointer; white-space: nowrap;
}
.recent-chip:active { background: var(--surface-2); }
.recent-ic { font-size: 15px; line-height: 1; display: inline-flex; }
.recent-ic img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; display: block; }
.recent-n { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 订单 / 使用记录列表 ---------- */
.hist-list { padding: 4px 16px 0; }
.hist-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.hist-row:last-child { border-bottom: none; }
.hist-l { min-width: 0; flex: 1; }
.hist-t { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.hist-s { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.hist-r { flex: none; }
.hist-badge {
  display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 7px;
  white-space: nowrap; font-weight: 600;
}
.hist-badge.ok { background: #e8f6ee; color: #1f7a4c; }
.hist-badge.warn { background: #fdf3e3; color: #9a6b1e; }
.hist-badge.mute { background: var(--surface-2); color: var(--text-3); }
.hist-foot { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 18px 0 28px; }
.empty-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- 文档页补充 ---------- */
.doc-meta { font-size: 11.5px; color: var(--text-3); }
.doc-foot { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--text-3); }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }

/* ---------- 我的页补充 ---------- */
.me-login { width: 100%; height: 46px; margin: 4px 0 14px; border-radius: var(--radius-sm); }
.me-row.danger { color: #b4443c; }

/* ---------- SW 更新条 ---------- */
.sw-bar {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-radius: 12px; background: #20242a; color: #fff;
  font-size: 12.5px; box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}
.sw-bar button {
  border: 0; background: #fff; color: #20242a; font-size: 12px;
  padding: 4px 10px; border-radius: 8px; font-weight: 600;
}

/* ================= 分享页面 ================= */
.share-wrap { padding: 16px 0 40px; max-width: 460px; margin: 0 auto; }
.share-poster-box { text-align: center; margin-bottom: 20px; }
.share-poster {
  width: 100%; max-width: 340px; height: auto;
  border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  display: block; margin: 0 auto;
}
.share-poster-tip { font-size: 12px; color: #9aa2ab; margin-top: 10px; }
.share-ops { display: flex; flex-direction: column; gap: 10px; }
.share-reward-tip {
  background: #f0f6f4; border: 1px solid #d6e5df; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #3f6d63; line-height: 1.7;
  margin-bottom: 4px;
}
.share-reward-tip b { color: #2f6e5f; font-size: 15px; }
.btn-block { width: 100%; display: block; }
.share-stats {
  display: flex; gap: 12px; margin: 22px 0 18px;
}
.share-stat {
  flex: 1; text-align: center; background: #fff;
  border: 1px solid #e6eae8; border-radius: 12px; padding: 14px 8px;
}
.share-stat b { display: block; font-size: 22px; color: #2f6e5f; font-variant-numeric: tabular-nums; }
.share-stat span { font-size: 11.5px; color: #9aa2ab; }
.share-rules {
  background: #fafbfa; border: 1px solid #e6eae8; border-radius: 12px;
  padding: 14px 16px; margin-top: 6px;
}
.share-rules-h { font-size: 13px; font-weight: 650; color: #20242a; margin-bottom: 8px; }
.share-rules-b { font-size: 12.5px; color: #4a5651; line-height: 2; }
.share-rules-b b { color: #2f6e5f; }

/* ================= 收藏 / 相关推荐 ================= */
.fav-btn {
  margin-left: auto; flex: none;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid #d6ddd9; background: #fff;
  font-size: 12.5px; color: #4a5651; cursor: pointer;
  transition: all .15s;
}
.fav-btn:hover { border-color: #3f6d63; color: #3f6d63; }
.fav-btn.fav-on {
  background: #fff8e6; border-color: #f0c36d; color: #b8860b;
}
.fav-btn:disabled { opacity: .6; }

.related-h {
  font-size: 13px; font-weight: 650; color: #20242a;
  margin: 22px 0 12px; padding-top: 16px;
  border-top: 1px solid #eef1ef;
}

/* ================= 订单退款 ================= */
.order-refund-btn {
  display: inline-block; margin-top: 8px;
  padding: 5px 12px; border-radius: 7px;
  border: 1px solid #e0c4c0; background: #fff;
  font-size: 12px; color: #b4443c; cursor: pointer;
}
.order-refund-btn:hover { background: #fdf3f2; }
.order-refund-btn:disabled { opacity: .5; }

.order-refund-tip {
  display: inline-block; margin-top: 8px;
  font-size: 11.5px; color: #9aa2ab;
}

.refund-note {
  padding: 0 16px 24px;
  font-size: 11.5px; line-height: 1.7; color: #9aa2ab;
}

/* ================= 分享战绩 ================= */
.sh-funnel {
  background: #f7f9f8; border: 1px solid #e3e8e5;
  border-radius: 12px; padding: 16px 12px; margin-bottom: 14px;
}
.sh-funnel-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px;
}
.sh-f-item { flex: 1; text-align: center; }
.sh-f-item b {
  display: block; font-size: 20px; font-weight: 700;
  color: #20242a; line-height: 1.2;
}
.sh-f-item span {
  display: block; font-size: 11px; color: #9aa2ab; margin-top: 4px;
}
.sh-f-arrow { color: #c8d0cc; font-size: 12px; flex: none; }

.sh-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 14px;
}
.sh-card {
  background: #fff; border: 1px solid #e3e8e5;
  border-radius: 10px; padding: 12px 10px; text-align: center;
}
.sh-card .k { font-size: 11px; color: #9aa2ab; }
.sh-card .v {
  font-size: 19px; font-weight: 700; color: #2f6e5f;
  margin-top: 4px; line-height: 1.2;
}
.sh-card .v small { font-size: 11px; font-weight: 400; color: #9aa2ab; margin-left: 2px; }

.sh-tier {
  background: #fff8e6; border: 1px solid #f0d9b0;
  border-radius: 9px; padding: 10px 14px;
  font-size: 12.5px; color: #7a5314; margin-bottom: 12px;
}
.sh-today {
  font-size: 11.5px; color: #9aa2ab;
  text-align: center; margin-bottom: 14px;
}

.sh-recent { border-top: 1px solid #eef1ef; padding-top: 14px; }
.sh-recent-h {
  font-size: 12.5px; font-weight: 650; color: #20242a; margin-bottom: 10px;
}
.sh-recent-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f4f6f5;
  font-size: 12.5px;
}
.sh-recent-row:last-child { border-bottom: none; }
.sh-acc { flex: 1; color: #4a5651; }
.sh-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
  background: #f0f2f1; color: #9aa2ab; flex: none;
}
.sh-tag.paid { background: #e8f4ef; color: #2f6e5f; }
.sh-time { font-size: 11px; color: #b8bfc4; flex: none; }
.sh-empty {
  text-align: center; font-size: 12px; color: #9aa2ab;
  padding: 20px 0;
}

/* ================= 首页模板 ================= */
/* ② 紧凑列表 */
.tpl-list { display: flex; flex-direction: column; gap: 1px; background: #eef1ef;
  border-radius: 12px; overflow: hidden; }
.tpl-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border: none;
  text-align: left; cursor: pointer; width: 100%;
  transition: background .12s;
}
.tpl-list-item:active { background: #f7f9f8; }
.tpl-list-ic { flex: none; width: 38px; height: 38px; }
.tpl-list-ic .ic, .tpl-list-ic img {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
}
.tpl-list-body { flex: 1; min-width: 0; }
.tpl-list-name { font-size: 14px; font-weight: 600; color: #20242a; }
.tpl-list-desc {
  font-size: 12px; color: #9aa2ab; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tpl-list-arrow { flex: none; color: #c8d0cc; font-size: 18px; }

/* ③ 分类分组 */
.tpl-group { margin-bottom: 26px; }
.tpl-group-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; color: #20242a;
  margin-bottom: 12px; padding-left: 2px;
}
.tpl-group-n {
  font-size: 11px; font-weight: 400; color: #9aa2ab;
  background: #f0f2f1; padding: 1px 7px; border-radius: 8px;
}

/* ④ 主推大卡 */
.tpl-hero {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, #f0f6f4, #e4efeb);
  border: 1px solid #d6e5df; border-radius: 14px;
  text-align: left; cursor: pointer;
}
.tpl-hero:active { opacity: .9; }
.tpl-hero-ic { flex: none; width: 52px; height: 52px; }
.tpl-hero-ic .ic, .tpl-hero-ic img {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover;
}
.tpl-hero-body { flex: 1; min-width: 0; }
.tpl-hero-name { font-size: 16px; font-weight: 700; color: #20242a; }
.tpl-hero-desc {
  font-size: 12.5px; color: #6d757e; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tpl-hero-go {
  flex: none; font-size: 12.5px; font-weight: 600;
  color: #2f6e5f; white-space: nowrap;
}

/* ⑤ 左侧分类栏 */
.tpl-sidebar { display: flex; gap: 14px; align-items: flex-start; }
.tpl-side-nav {
  flex: none; width: 88px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 8px;
}
.tpl-side-item {
  padding: 9px 8px; border: none; background: transparent;
  font-size: 12.5px; color: #6d757e; text-align: left;
  border-radius: 8px; cursor: pointer; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tpl-side-item.active {
  background: #e8f0ed; color: #2f6e5f; font-weight: 650;
}
.tpl-side-body { flex: 1; min-width: 0; }
.tpl-side-body .grid { grid-template-columns: repeat(2, 1fr); }

/* ⑥ 搜索优先 */
.tpl-hot-h {
  font-size: 13px; font-weight: 650; color: #20242a;
  margin: 18px 0 12px; padding-left: 2px;
}

/* ⑦ 双列大卡 */
.tpl-card2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tpl-card2-item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px 16px; background: #fff;
  border: 1px solid #eef1ef; border-radius: 14px;
  text-align: left; cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.tpl-card2-item:active {
  border-color: #d6e5df; box-shadow: 0 2px 10px rgba(47,110,95,.08);
}
.tpl-card2-ic { width: 46px; height: 46px; margin-bottom: 12px; }
.tpl-card2-ic .ic, .tpl-card2-ic img {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
}
.tpl-card2-name { font-size: 14.5px; font-weight: 650; color: #20242a; }
.tpl-card2-desc {
  font-size: 12px; color: #9aa2ab; margin-top: 4px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ⑧ 极简文字 */
.tpl-min { display: flex; flex-direction: column; }
.tpl-min-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 4px; border: none; background: transparent;
  border-bottom: 1px solid #f4f6f5;
  text-align: left; cursor: pointer; width: 100%;
}
.tpl-min-item:last-child { border-bottom: none; }
.tpl-min-name { font-size: 14px; font-weight: 600; color: #20242a; flex: none; }
.tpl-min-desc {
  font-size: 12px; color: #9aa2ab;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 后台模板选择卡片 */
.tpl-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tpl-pick-item {
  padding: 16px; border: 2px solid #eef1ef; border-radius: 12px;
  cursor: pointer; background: #fff; transition: all .15s;
}
.tpl-pick-item:hover { border-color: #d6e5df; }
.tpl-pick-item.on {
  border-color: #3f6d63; background: #f0f6f4;
}
.tpl-pick-name {
  font-size: 14px; font-weight: 650; color: #20242a;
  display: flex; align-items: center; gap: 8px;
}
.tpl-pick-badge {
  font-size: 10px; padding: 1px 7px; border-radius: 6px;
  background: #3f6d63; color: #fff; font-weight: 500;
}
.tpl-pick-desc {
  font-size: 12px; color: #6d757e; margin-top: 8px; line-height: 1.6;
}
.tpl-pick-best {
  font-size: 11px; color: #9aa2ab; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid #f0f2f1;
}

/* ============================================================================
   场景工作台（第 38 段）· 首页场景入口 / AI 助手语音唤起
   全部使用 CSS 变量，跟随后台主题色与深色模式自动适配，不硬编码浅色背景。
   ============================================================================ */

/* 首页：场景入口优先于工具卡片 */
.scene-entries { padding: 6px 18px 2px; }
.scene-h { font-size: 14px; font-weight: 620; margin: 8px 0 10px; color: var(--text); }
.scene-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.scene-row::-webkit-scrollbar { display: none; }
.scene-card {
  flex: none; width: 190px; min-height: 84px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.scene-card:active { transform: scale(.985); border-color: var(--accent); }
.scene-ic {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.scene-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scene-txt b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.scene-txt small {
  font-size: 11px; color: var(--text-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scene-arrow { margin-left: auto; color: var(--text-3); font-size: 20px; line-height: 1; flex: none; }

/* AI 助手：语音按钮 + 状态行（麦克风不可用时按钮禁用，文字输入始终可用） */
.ai-mic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--line); font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ai-mic:active { opacity: .8; }
.ai-mic:disabled { opacity: .45; cursor: not-allowed; }
.ai-state {
  min-height: 18px; margin-top: 8px; text-align: center;
  font-size: 12.5px; color: var(--text-2);
}
.ai-state:empty { display: none; }

/* 统一 AI 网关：服务端代答的纯文本回答（esc 转义后展示，保留换行） */
.ai-answer {
  white-space: pre-wrap; word-break: break-word; line-height: 1.75;
  font-size: 14px; color: var(--text); background: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px;
}

/* ===== 第 41 段：首页「场景优先」 =====
 * 三条业务流大卡做首屏主入口，工具网格收进折叠区。
 * 场景接口失败时脚本会给 #toolsBox 去掉 collapsed，首页退回工具合集，不变砖。 */
.scene-hero { display: grid; grid-template-columns: 1fr; gap: 11px; padding: 8px 18px 4px; }
@media (min-width: 620px) { .scene-hero { grid-template-columns: repeat(3, 1fr); } }
.scene-big {
  display: flex; flex-direction: column; gap: 7px;
  padding: 15px 16px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.scene-big:active { transform: scale(.985); border-color: var(--accent); }
.scene-big-top { display: flex; align-items: center; justify-content: space-between; }
.scene-big-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.scene-big-count { font-size: 11px; color: var(--text-2); background: var(--surface-2); padding: 3px 9px; border-radius: 20px; }
.scene-big-name { font-size: 16px; font-weight: 650; line-height: 1.3; }
.scene-big-sub {
  font-size: 12px; color: var(--text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scene-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 2px; }
.scene-step { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 5px; }
.scene-step-sep { font-size: 11px; color: var(--text-3); }
.scene-big-go { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent); }

.tools-toggle-wrap { padding: 12px 18px 4px; }
.tools-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.tools-toggle b { font-weight: 600; color: var(--text-2); font-size: 12.5px; margin-left: 4px; }
.tools-toggle-arrow { font-size: 20px; color: var(--text-3); transition: transform .16s ease; }
.tools-toggle[aria-expanded="true"] .tools-toggle-arrow { transform: rotate(90deg); }
#toolsBox.collapsed { display: none; }

.wb-runs { padding: 10px 18px 2px; }
.wb-runs-h { font-size: 14px; font-weight: 620; margin: 8px 0 10px; color: var(--text); }
.wb-runs-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.wb-runs-row::-webkit-scrollbar { display: none; }
.wb-run {
  flex: none; width: 168px; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.wb-run-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wb-run-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 20px; }
.wb-run-tag.done { background: var(--accent-soft); color: var(--accent); }
.wb-run-tag.running { background: #fff3e0; color: #a5651a; }
.wb-run-time { font-size: 10.5px; color: var(--text-3); }
.wb-run-name { font-size: 13px; font-weight: 600; }
.wb-run-code { font-size: 11px; color: var(--text-2); word-break: break-all; }

/* ===== 第 42 段：首页五段式（成套流程优先） =====
 * 视觉铁律：流程工作台卡片（section.flow-sec / .scene-big）与单点工具卡片
 * （.card）一眼可区分：流程区带主推色带 + 大卡 + 步骤链，工具区保持小方格。
 * 留白充足：区块之间 22px 以上，卡片内 16px 以上。 */
.home-head { padding: 22px 18px 2px; }
.home-title { font-size: 22px; font-weight: 650; margin: 0; letter-spacing: .3px; }
.home-sub { font-size: 12.5px; color: var(--text-2); margin: 4px 0 0; line-height: 1.5; }

.home-top { padding: 14px 18px 4px; position: relative; }
.search-row { display: flex; gap: 9px; align-items: center; }
.search-row .search-box { flex: 1; height: 46px; border-radius: 14px; }
.home-mic {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.home-mic svg { width: 21px; height: 21px; }
.home-mic:disabled { opacity: .45; }
.voice-state { font-size: 12px; color: var(--accent); min-height: 17px; padding: 6px 2px 0; }

.suggest-box {
  display: none; margin-top: 8px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); overflow: hidden;
  box-shadow: 0 8px 26px rgba(30, 45, 40, .08);
}
.suggest-box.show { display: block; }
.sg-group { font-size: 11px; color: var(--text-3); padding: 10px 14px 4px; letter-spacing: .4px; }
.sg-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 0; border-top: 1px solid var(--line);
  background: transparent; text-align: left; color: var(--text);
}
.sg-item:active { background: var(--surface-2); }
.sg-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sg-tx b { font-size: 13.5px; font-weight: 600; }
.sg-tx small { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-tag { flex: none; font-size: 10.5px; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 20px; }
.sg-tag.plain { color: var(--text-2); background: var(--surface-2); }
.sg-wb .sg-ic { background: var(--accent-soft); }
.sg-none { padding: 16px; font-size: 12.5px; color: var(--text-2); text-align: center; }

.home-sec { padding: 22px 0 0; }
.sec-hd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.sec-title { font-size: 16px; font-weight: 650; color: var(--text); }
.sec-desc { font-size: 11.5px; color: var(--text-2); flex: 1 1 100%; line-height: 1.5; }
.sec-kicker {
  font-size: 10.5px; font-weight: 600; color: #fff; background: var(--accent);
  padding: 3px 9px; border-radius: 6px; letter-spacing: .5px;
}
.flow-sec .sec-hd { border-left: 3px solid var(--accent); margin-left: 15px; padding-left: 12px; }

.reco-grid { padding: 0 18px; }
.reco-grid .grid { padding: 0; }
.reco-cards { grid-template-columns: repeat(2, 1fr); }
.reco-empty { padding: 18px; font-size: 12.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.cat-sec .cats { padding-top: 2px; }

.home-all-wrap { padding: 20px 18px 6px; }
.all-tools-btn {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.all-tools-btn span { font-size: 18px; color: var(--text-3); }
.all-tools-btn:active { border-color: var(--accent); }

.tools-result-h { padding: 16px 18px 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tools-result-h b { color: var(--accent); }

/* 完整工具列表页 #/all */
.all-head { display: flex; align-items: center; gap: 12px; padding: 20px 18px 6px; }
.all-back {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 22px; line-height: 1; color: var(--text);
}
.all-title { font-size: 19px; font-weight: 650; margin: 0; }
.all-sub { font-size: 11.5px; color: var(--text-2); margin: 2px 0 0; }
