/* ============================================================
   红创助手 REDcraft · 网页版样式（桌面优先的网页排版）
   桌面：顶部导航条 + 内容居中 ≤1100px + 多列技能卡
   移动：≤767px 时导航吸底、单/双列（保留手机可用性）
   ============================================================ */
:root {
  --brand: #ff2442;          /* 品牌色：用于大色块/图标；不要用于浅底上的小字 */
  --brand-dark: #d91e39;     /* 按钮实底：白字对比度 5.0:1（AA） */
  --brand-text: #c81a33;     /* 浅粉底上的品牌文字：对比度 4.97:1（AA） */
  /* ---- 设计 token（2026-09-19 审计：此前字号 11 档、间距 9 种、圆角 8 种、阴影 5 种，靠手感写）----
     第一步：先定义 token 并让 .btn/.pill/.section-title/.card 使用；后续可逐步替换其余硬编码值 */
  --fs-11: 11px;   /* 极小标注 */
  --fs-12: 12px;   /* 次要说明 */
  --fs-13: 13px;   /* 辅助文字 */
  --fs-15: 15px;   /* 正文基准 */
  --fs-17: 17px;   /* 小标题 */
  --fs-22: 22px;   /* 页面大标题 */
  --sp-1: 4px; --sp-2: 6px; --sp-3: 8px; --sp-4: 12px; --sp-5: 16px; --sp-6: 20px;
  --r-sm: 9px; --r-md: 12px; --r-lg: 14px; --r-pill: 999px;
  --shadow-1: 0 1px 3px rgba(24, 26, 40, 0.06);
  --shadow-2: 0 6px 24px rgba(24, 26, 40, 0.05);
  --shadow-3: 0 18px 44px rgba(24, 26, 40, 0.18);
  /* 主按钮底色（白字对比度 ≥4.5:1，AA 达标；此前用 --brand 只有 3.76:1） */
  --btn-bg: #d91e39;
  --safe-b: env(safe-area-inset-bottom, 0px); /* 底部安全区（华为手势条/虚拟键） */
  --tabbar-h: 67px;          /* 底部导航高度（含安全区之外的固定部分），悬浮条据此避让 */
  --brand-soft: #ffe9ed;
  --ink: #23262f;
  --ink-2: #5c6470;
  --ink-3: #7c8592; /* P2-16 提高辅助文字对比度 */
  --line: #e9ebf0;
  --bg: #f6f6f8;
  --card: #ffffff;
  --surface-2: #f6f7f9;      /* 次级面板（浅灰底：内嵌区/骨架/标签） */
  --surface-3: #fff7f8;      /* 品牌浅底（提示条/选中态） */
  --brand-line: #ffd9de;     /* 品牌浅描边 */
  --ok-soft: #f0faf3;        /* 成功浅底（选中态） */
  --ok-line: #bfe8cc;        /* 成功浅描边 */
  --tag-blue-soft: #e8f0ff;  /* 蓝色标签浅底 */
  --ok: #16a34a;
  --warn: #f59e0b;
  --high: #dc2626;
  --mid: #ea6a1e;
  --low: #caa50a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(24, 26, 40, 0.06), 0 6px 24px rgba(24, 26, 40, 0.05);
  --content: 1100px;
  --shadow-nav: 0 1px 0 var(--line), 0 4px 16px rgba(24, 26, 40, 0.04);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--brand); }
.muted { color: var(--ink-2); }
.muted-2 { color: var(--ink-3); }
.hidden { display: none !important; }
.page-loading { padding: 90px 0; text-align: center; color: var(--ink-3); }

/* ---------- 布局骨架：导航吸顶，内容居中 ---------- */
#app { display: flex; flex-direction: column; min-height: 100vh; }
.view {
  padding-bottom: calc(96px + var(--safe-b));
  flex: 1; order: 2; width: 100%; max-width: var(--content);
  margin: 0 auto; padding: 0 24px 64px;
}
.tab-ico { display: inline-flex; align-items: center; justify-content: center; height: 22px; }
.tab-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar {
  order: 1; position: sticky; top: 0; z-index: 60;
  /* 不透明底：部分安卓 WebView 不支持 backdrop-filter，半透明会让正文透出形成「文字遮挡」 */
  background: var(--card);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-nav);
  display: flex; justify-content: center; gap: 4px; padding: 6px 16px;
}
.tab {
  flex: 0 1 220px; max-width: 260px; border: 0; background: none; padding: 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: all .15s;
}
.tab .tab-ico { font-size: 18px; }
.tab:hover { background: var(--bg); }
.tab.active { background: var(--brand); color: #fff; font-weight: 700; }

/* ---------- 品牌（拾稿集·AI） ---------- */
.brand:not(.pill) { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { display: block; border-radius: 10px; box-shadow: 0 2px 8px rgba(255, 46, 77, .22); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; letter-spacing: .3px; line-height: 1.15; display: flex; align-items: baseline; gap: 1px; }
.brand-ai { font-size: .72em; font-weight: 800; color: var(--brand); letter-spacing: 0; }
.brand-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.brand-sm .brand-name { font-size: 17px; }
.brand-md .brand-name { font-size: 20px; }
.brand-lg .brand-name { font-size: 27px; }
.brand-lg { flex-direction: column; align-items: flex-start; gap: 12px; }
.brand-lg .brand-sub { font-size: 14px; }
.brand-line { font-size: 12px; color: var(--ink-3); text-align: center; margin: 14px 0 6px; line-height: 1.7; }
.brand-line b { color: var(--ink-2); }
/* 页头里的品牌与点数徽标同一行 */
.page-head .brand:not(.pill) { flex: 1; min-width: 0; } /* 注意：.pill.brand 是胶囊的配色变体，不是品牌 Logo，不能被 flex:1 拉满 */
/* 标题行右侧的胶囊：内容宽度、不换行、不参与拉伸，避免把标题挤换行 */
.page-head > .pill { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 767px) {
  .brand-sub { display: none; }
  .brand-lg .brand-sub { display: block; }
}

/* ---------- 页面头 ---------- */
.page-head {
  display: flex; align-items: center; gap: 12px; padding: 22px 0 4px;
}
.page-head h1 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.page-head h1 .sub { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.back-btn { border: 0; background: none; font-size: 24px; padding: 4px 8px 4px 0; color: var(--ink); }
.page-lead { color: var(--ink-2); font-size: 14px; margin: 6px 0 18px; }

/* ---------- 卡片 / 按钮 / pill ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin: 14px 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 11px; padding: 10px 20px; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--btn-bg); border-radius: var(--r-md); transition: opacity .15s, transform .05s, box-shadow .15s;
}
.btn:hover { box-shadow: 0 6px 16px rgba(255, 36, 66, .28); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }
.btn.ok { background: var(--ok); }
.btn.danger { background: var(--card); color: var(--high); border: 1px solid #fecaca; box-shadow: none; }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 9px; }
/* 纯文字次级操作（清空/取消等），避免与主按钮争视觉 */
.link-btn { border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 4px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--brand); }
.check-hint-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.check-hint-row .fnote-xs { flex: 1; min-width: 0; }
.btn.block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; margin: 4px; user-select: none; transition: all .12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.sel { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; font-weight: 600; }
.chip.off { opacity: .45; pointer-events: none; }
.chip .x { font-size: 12px; opacity: .8; cursor: pointer; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 11px;
  font-size: 12px; font-weight: 600; vertical-align: middle;
}
.pill.brand { background: var(--brand-soft); color: var(--brand-text); }
.pill.ok { background: #e5f6ec; color: var(--ok); }
.pill.warn { background: #fdf0dd; color: #a35a08; }
.pill.red { background: var(--surface-3); color: var(--high); }
.pill.orange { background: #ffead9; color: #bd4d0c; }
.pill.yellow { background: #fbf3cf; color: #8a6d05; }
.section-title {
  margin: 26px 0 12px; font-size: 16px; color: var(--ink-2); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

/* ---------- 技能卡片（多列） ---------- */
.skill-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; padding: 2px 0 8px;
}
.skill-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; text-align: left;
  border: 1px solid transparent; width: 100%; transition: all .15s;
}
.skill-card:hover { transform: translateY(-2px); border-color: #ffd7de; box-shadow: 0 10px 26px rgba(24,26,40,.10); }
.skill-card .ic { font-size: 30px; }
.skill-card .nm { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.skill-card .sm { color: var(--ink-2); font-size: 13px; line-height: 1.5; flex: 1; }
.skill-card .meta { display: flex; justify-content: space-between; align-items: center; }
.hot-tag { font-size: 11px; background: var(--brand-soft); color: var(--brand-text); border-radius: 6px; padding: 1px 7px; font-weight: 700; }

/* ---------- 公告/演示横幅 ---------- */
.demo-banner {
  margin: 14px 0; padding: 11px 16px; border-radius: 12px; background: #fff7e6; color: #8a6108;
  font-size: 14px; border: 1px solid #ffe3ae;
  /* 不用 flex：flex 会把「裸文本节点 + <b>」变成多个匿名 flex 项，各占一列后
     中文被逐字拆列（曾出现「本条结/果为」错位遮挡），block 流式排版最稳 */
  display: block; line-height: 1.65;
}
.demo-banner b { white-space: nowrap; }

/* ---------- 点选表单 ---------- */
.form-card .field-label { font-weight: 700; font-size: 15px; }
.form-card .field-label .req { color: var(--brand); }
.form-card .fnote { color: var(--ink-3); font-size: 12px; }
.chips-wrap { display: flex; flex-wrap: wrap; margin-top: 6px; }
/* 表单紧凑栅格（赛道/人设/语气/结构）：桌面三列，移动端改为两列 + 关键字段整行 */
.form-grid-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
/* 引导式四模块：桌面 2×2，移动端单列 */
.guided-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.slider-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--brand); }
.slider-val { min-width: 62px; text-align: right; font-weight: 700; color: var(--brand); }
.switch-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 8px 0; }
.switch { position: relative; width: 46px; height: 27px; border-radius: 999px; background: #d8dce4; border: 0; transition: background .2s; }
.switch.on { background: var(--brand); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--card); transition: left .2s; }
.switch.on::after { left: 22px; }
.field-error { color: var(--high); font-size: 12px; margin-top: 6px; display: none; }
.footer-cta {
  position: sticky; bottom: 10px; z-index: 40; display: flex; gap: 10px; align-items: center;
  width: min(680px, 100%); margin: 18px auto 8px; padding: 12px 16px;
  background: var(--card); /* 不透明：避免正文从吸底操作条下透出 */
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.footer-cta .btn { flex: 1; }

/* ---------- 结果块 ---------- */
.result-block {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; margin: 14px 0;
}
.result-block .rb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.result-block .rb-title { font-weight: 700; font-size: 16px; }
.title-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.title-item:last-child { border-bottom: 0; }
.title-item .no { color: var(--brand); font-weight: 800; min-width: 24px; text-align: right; }
.title-item .tx { flex: 1; }
.text-body { white-space: pre-wrap; word-break: break-word; }
.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mini-tag {
  display: inline-flex; align-items: center; border-radius: 8px; background: var(--brand-soft);
  color: var(--brand); font-size: 13px; padding: 4px 10px; margin: 3px;
}
.group-name { font-size: 14px; color: var(--ink-2); margin: 12px 0 4px; font-weight: 700; }
.risk-row { border-left: 5px solid; border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--card); }
.risk-row.high { border-color: var(--high); background: #fdf2f2; }
.risk-row.mid { border-color: var(--mid); background: #fff6ee; }
.risk-row.low { border-color: var(--low); background: #fdfae6; }
.risk-row .rt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.risk-row .fix { font-size: 13px; color: var(--ok); margin-top: 6px; }
.obj-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.obj-card .kv { display: flex; gap: 12px; padding: 3px 0; font-size: 14px; }
.obj-card .kv .k { color: var(--ink-3); min-width: 84px; flex-shrink: 0; }
.obj-card .kv .v { flex: 1; word-break: break-word; }
.action-bar { display: flex; gap: 10px; padding: 4px 0 8px; flex-wrap: wrap; }

/* ---------- 列表 ---------- */
.list-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; margin: 12px 0; display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.list-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-nav); }
.list-item .ic { font-size: 28px; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .t1 { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.list-item .t2 { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.list-item .t3 { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.icon-btn { border: 0; background: none; font-size: 20px; padding: 8px; color: var(--ink-2); border-radius: 8px; }
.icon-btn:hover { background: var(--bg); }
.icon-btn.starred { color: #f5a623; }
.empty { text-align: center; color: var(--ink-3); padding: 70px 20px; }
.empty .e-ico { font-size: 52px; }
.load-more { display: block; margin: 10px auto 24px; }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; gap: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; flex-shrink: 0; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
  font-size: 15px; color: var(--ink);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover .mi-ico { transform: scale(1.1); }
.menu-item .mi-ico { font-size: 19px; transition: transform .12s; }
.menu-item .mi-arrow { margin-left: auto; color: var(--ink-3); }

/* ---------- 套餐 ---------- */
.plan-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; position: relative; background: var(--card); }
.plan-card.popular { border-color: var(--brand); background: var(--surface-3); }
.plan-card .p-name { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.plan-card .p-price { font-size: 30px; font-weight: 800; color: var(--brand); margin: 8px 0 2px; }
.plan-card .p-price small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.plan-card .p-credits { color: var(--ink-2); font-size: 14px; }

/* ---------- 登录 ---------- */
.login-wrap { padding: 10vh 20px 40px; display: flex; flex-direction: column; align-items: center; }
.login-wrap .card { width: min(420px, 100%); }
.login-inner { width: min(420px, 100%); }
/* 登录页品牌区：居中、清晰、有产品气质 */
.login-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 6px; }
.login-head .brand { align-items: center; }
.login-head .brand-name { font-size: 30px; }
.login-lead { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font-size: 15px; background: var(--card); outline: none; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,36,66,.12); }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; }
.send-code { white-space: nowrap; }

/* ---------- 弹层 / Toast / 加载 ---------- */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
/* 手机端：提示条移到底部悬浮栏上方。
   顶部提示会压住刚滚动到顶部的模块头（含「☑️ 确认这一项」按钮）——正是用户反馈的「文字遮挡」 */
@media (max-width: 767px) {
  #toast-root { top: auto; bottom: calc(148px + var(--safe-b)); width: 100%; left: 0; transform: none; padding: 0 14px; box-sizing: border-box; }
  body.has-guided-bar #toast-root { bottom: calc(196px + var(--safe-b)); }
  /* 弹层打开时提示条改到顶部：底部是弹窗的吸底操作条，不能被盖住 */
  body.modal-open #toast-root { top: 12px; bottom: auto; }
  .toast { animation: none; max-width: 100%; text-align: center; border-radius: 14px; }
}
.toast { background: rgba(20, 20, 24, .9); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 14px; max-width: 90vw; animation: slide-down .2s ease; }
.toast.err { background: rgba(190, 30, 30, .94); }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.modal-mask { position: fixed; inset: 0; background: rgba(12, 14, 20, .48); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 26px; }
.modal { background: var(--card); border-radius: 18px; max-width: 560px; width: 100%; padding: 24px; max-height: 84vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.modal h3 { margin: 0 0 12px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .modal-actions .btn { flex: 1; }
#overlay-root .loading-mask { position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,.78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#overlay-root .loading-tip { max-width: 86vw; text-align: center; line-height: 1.7; color: var(--ink-2); }
/* ---------- 等候面板（长任务，如出图）：底部悬浮，不挡页面，可看到新图陆续出现 ---------- */
.waiting-sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 96;
  width: min(520px, calc(100% - 24px)); box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20, 22, 32, .18); padding: 12px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.wait-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.wait-head b { font-size: 14px; }
.wait-count { margin-left: auto; font-weight: 700; color: var(--brand); font-size: 13px; }
.wait-time { font-size: 12px; color: var(--ink-3); }
.wait-bar { height: 6px; border-radius: 999px; background: #eef0f5; overflow: hidden; }
.wait-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #ff7a90); transition: width .4s ease; }
.wait-stage { font-size: 13px; color: var(--ink); }
.wait-tip { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.wait-cancel { align-self: flex-end; }
.spinner.sm { width: 18px; height: 18px; border-width: 2.5px; }
@media (max-width: 767px) {
  .waiting-sheet { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 12px 12px; }
  body.has-guided-bar .waiting-sheet { bottom: calc(var(--tabbar-h) + 128px + env(safe-area-inset-bottom, 0px)); }
  body.has-footer-cta .waiting-sheet { bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom, 0px)); }
  .wait-tip { font-size: 11.5px; }
}
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.credits-pill {
  background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 5px 14px;
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.credits-pill.low { background: var(--surface-3); color: var(--high); }

/* ---------- 移动端适配（≤767px）：导航吸底、卡片改1~2列 ---------- */
@media (max-width: 767px) {
  .view { padding: 0 14px 90px; }
  /* 修复：fixed 元素未设 left/right 会「收缩包裹」，底部导航被压成 ~110px、tab 仅 26px 宽 */
  .tabbar {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: 100%;
    border-bottom: 0; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(24,26,40,.05); gap: 0;
    justify-content: stretch;
  }
  .tab { flex: 1; max-width: none; flex-direction: column; gap: 2px; font-size: 11px; padding: 7px 0 5px; border-radius: 0; }
  .tab .tab-ico { font-size: 21px; }
  .tab.active { background: none; color: var(--brand); }
  .page-head { padding: 16px 0 2px; }
  .page-head h1 { font-size: clamp(15px, 4.6vw, 18px); min-width: 0; }
  .page-head h1 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-head > .pill { font-size: 11px; padding: 2px 9px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 15px 16px; margin: 10px 0; }
  .footer-cta { position: fixed; bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: calc(100% - 20px); margin: 0; }
  .login-wrap { padding-top: 12vh; }
  .action-bar .btn { flex: 1; }
}
@media (max-width: 360px) {
  .skill-grid { grid-template-columns: 1fr; }
}

/* 引导式编辑：底部固定操作栏 */
.guided-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 12px; z-index: 45;
  background: var(--card); /* 不透明：引导式底部栏不得透出模块文字 */
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(24, 26, 40, .06);
}
@media (max-width: 767px) {
  .guided-bottom-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   P2 视觉与可用性规范（v13）
   14 组件化工具类 / 16 字体与对比度 / 17 无障碍 / 18 按钮卡片规范
   19 移动端安全区 / 20 工作台折叠 / 21 图库批量操作
   ============================================================ */

/* --- 14. 间距与布局工具类（替代散落的内联样式） --- */
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.spacer { flex: 1 1 auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--brand); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .grid-2col { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; } }
.grid-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 56vh; overflow: auto; }

/* --- 16. 字体层级与对比度（正文 ≥4.5:1，辅助文字 ≥3:1 且不小于 12px） --- */
.fnote { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.fnote-xs { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.page-lead { color: var(--ink-2); }
.text-body { line-height: 1.7; color: var(--ink); letter-spacing: .1px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--brand-soft, #ffeef0); color: var(--brand-text, #c81a33);
}

/* --- 17. 无障碍：键盘焦点可见、图标按钮最小点击区 --- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .back-btn:focus-visible, .tabbar button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.icon-only, .cover-pick, .work-pick { min-width: 32px; min-height: 32px; }
[aria-busy="true"] { cursor: progress; opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- 18. 按钮 / 卡片统一规范 --- */
/* ---------- 封面图工作台（R4 重做：手机端不再把预览挤在右侧） ---------- */
/* ============================================================
   使用教程页（#/guide）：面向完全不懂 AI 的用户
   全部使用语义变量，深色模式自动适配，无需额外覆盖
   ============================================================ */
.guide-h1 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.guide-lead { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin: 0 0 8px; }
.guide-step { display: flex; gap: 10px; align-items: flex-start; }
.guide-step-no {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--btn-bg); color: #fff;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.guide-step-title { font-weight: 700; font-size: 15px; }
.guide-step-desc { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin: 2px 0 6px; }
.guide-step-body { min-width: 0; }
.guide-divider { height: 1px; background: var(--line); margin: 12px 0; }
.guide-ul, .guide-ol { margin: 0 0 8px; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.guide-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.guide-faq { border-top: 1px solid var(--line); padding: 10px 0; }
.guide-faq:first-of-type { border-top: 0; padding-top: 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.guide-faq-body { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); padding-top: 6px; }
.guide-help { border: 1px solid var(--brand-line, #ffd9de); }

/* ============================================================
   真实样例页（#/demo，免登录）——展示真实生成结果
   全部用语义变量，深色自动适配
   ============================================================ */
.demo-head { border-color: var(--brand-line, #ffd9de); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-titles { list-style: none; margin: 0; padding: 0; }
.demo-titles li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.demo-titles li:first-child { border-top: 0; padding-top: 0; }
.demo-title-text { font-size: 15px; font-weight: 700; line-height: 1.5; min-width: 0; }
.demo-body { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.demo-taggroup { padding: 8px 0; border-top: 1px dashed var(--line); }
.demo-taggroup:first-child { border-top: 0; padding-top: 0; }
.demo-taglabel { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.demo-cover { width: 100%; border-radius: 14px; display: block; border: 1px solid var(--line); }
.demo-risks { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.demo-risk { display: flex; gap: 10px; align-items: flex-start; }
.demo-risk .pill { flex: 0 0 auto; }
.demo-risk-body { min-width: 0; }
.demo-risk-word { font-weight: 700; font-size: 14.5px; }
.demo-cta { border-color: var(--brand-line, #ffd9de); }

/* 页脚备案信息（首页底部中间位置展示，符合 ICP 备案要求） */
.brand-line { text-align: center; font-size: 12px; color: var(--ink-3); padding: 10px 16px 6px; line-height: 1.7; }
.icp-link { color: var(--ink-3); text-decoration: none; }
.icp-link:active, .icp-link:hover { color: var(--ink-2); }

/* 行内文字链接（教程入口等）：用 --brand-text 保证浅底上对比度达标，并补足点击热区 */
.inline-link {
  color: var(--brand-text);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 首页新用户引导卡（说明点数能做什么） */
.newbie-card { border: 1px solid var(--brand-line, #ffd9de); background: var(--brand-soft, #fff5f7); }

/* 封面图工作台外层卡片：浅色为暖白渐变，深色在下方 @media 里覆盖 */
.studio-card { background: linear-gradient(180deg, #fff 0%, #fff7f8 100%); border: 1px solid #ffe0e6; }

.studio-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.studio-head h3 { margin: 0; font-size: 16px; }
.studio-cost { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.studio-help { margin: 0 0 8px; }
.studio-help summary {
  cursor: pointer; font-size: 12.5px; color: var(--ink-2); padding: 7px 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); list-style: none;
}
.studio-help summary::-webkit-details-marker { display: none; }
.studio-help[open] summary { border-radius: 10px 10px 0 0; border-bottom: 0; }
.studio-help .studio-help-body { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--card); }
.studio-help .studio-help-body b { color: var(--ink); }
.studio-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin: 6px 0;
  background: var(--card); border-radius: 12px; border: 1px solid var(--line);
}
.studio-prompt { flex: 1; min-width: 0; }
.studio-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.studio-thumb { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--surface-2); }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-thumb.is-main { border: 2px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-soft, var(--brand-line)); }
.studio-main-badge {
  position: absolute; left: 0; top: 0; padding: 2px 7px; font-size: 11px; border-radius: 0 0 8px 0;
  background: var(--brand); color: #fff; font-weight: 700; border: 0;
}
.studio-main-badge.ghost { background: rgba(20, 20, 24, .62); }
@media (max-width: 767px) {
  /* 单列：勾选在一行，Prompt 独占整宽，生成结果在下方大图网格（不再挤右侧 64px） */
  .studio-row { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .studio-row .pick-wrap { flex: 0 0 44px; }
  .studio-prompt { flex: 1 1 100%; order: 3; }
  .studio-thumbs {
    flex: 1 1 100%; order: 4; margin-top: 2px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  }
  .studio-thumb { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 12px; }
  .studio-main-badge { padding: 5px 10px; font-size: 12px; border-radius: 0 0 10px 0; }
  /* 工作台控件：手机上改成两列网格，标签在上、下拉占满整格
     （原来 3 个控件挤一行，选项文字被裁成“·”） */
  .studio-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px; align-items: stretch;
  }
  .studio-bar .studio-ctrl {
    flex-direction: column; align-items: stretch; gap: 4px; min-width: 0;
  }
  .studio-bar .studio-ctrl-label { font-size: 11px; color: var(--ink-3); }
  .studio-bar select,
  .studio-bar .studio-sel,
  .studio-bar input[type='text'] {
    width: 100%; min-width: 0; height: 38px; font-size: 13px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 0 8px;
  }
  .studio-bar > .btn,
  .studio-bar > label:not(.studio-ctrl),
  .studio-bar .ref-thumbs { grid-column: 1 / -1; }
  .studio-head h3 { font-size: 15px; }
  .studio-cost { margin-left: 0; flex: 1 1 100%; }
}
.studio-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: 10px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(24, 26, 40, .04);
}
.batch-bar { position: sticky; top: 8px; z-index: 30; border-color: var(--brand-soft, var(--brand-line)); background: var(--card); }
.card.selected, .cover-card.selected, .work-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft, var(--brand-line)); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.cover-card { position: relative; padding: 10px; margin: 0; }
.cover-card .cover-img { width: 100%; border-radius: 10px; display: block; cursor: zoom-in; background: var(--surface-2); }
.cover-pick { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .92); border-radius: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
/* 通用勾选热区：手机上 44×44 才够点 */
.pick-wrap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 0; cursor: pointer; }
.pick-wrap input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--brand); }
.cover-pick input { width: 16px; height: 16px; accent-color: var(--brand); }

/* --- 21. 我的作品列表 --- */
.work-card { padding: 12px; }
.work-row { display: flex; gap: 12px; align-items: center; }
.work-thumb {
  width: 76px; height: 76px; flex: 0 0 76px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.work-main { flex: 1; min-width: 0; }
.work-title { font-weight: 700; margin-bottom: 2px; }
.work-actions { display: flex; flex-direction: column; gap: 6px; }
.work-pick { width: 18px; height: 18px; accent-color: var(--brand); }

/* 小红书发布效果预览 */
.xhs-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); max-width: 420px; margin: 0 auto; }
.xhs-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.xhs-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.xhs-name { font-weight: 600; font-size: 14px; }
.xhs-cover { width: 100%; display: block; }
.xhs-body { padding: 12px; }
.xhs-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.xhs-text { font-size: 14px; max-height: 32vh; overflow: auto; }
.xhs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xhs-tags span { color: #3b6fd4; font-size: 13px; }
.xhs-foot { display: flex; gap: 18px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }

/* --- 19. 移动端安全区与横屏 --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .guided-bottom-bar { padding-bottom: env(safe-area-inset-bottom); }
  .tabbar { padding-bottom: env(safe-area-inset-bottom); }
  .studio-bar.batch-bar { top: env(safe-area-inset-top); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .grid-covers { max-height: 44vh; }
  .xhs-text { max-height: 40vh; }
}

/* --- 20. 工作台进阶设置折叠 --- */
details.adv { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; background: var(--surface-2); }
details.adv > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
details.adv[open] > summary { margin-bottom: 8px; }

/* 弹窗头部与关闭按钮（P2-17：显式关闭入口，避免只能点遮罩） */
.modal-head { display: flex; align-items: flex-start; gap: 10px; }
.modal-head h3 { flex: 1; margin: 0 0 8px; }
.modal-close {
  border: 0; background: transparent; color: var(--ink-3); font-size: 15px;
  line-height: 1; padding: 4px 6px; border-radius: 8px; cursor: pointer;
}
.modal-close:hover { background: #f2f3f6; color: var(--ink); }

/* 我的页：每日额度进度条（P0-3 配额可见） */
.quota-bar { height: 6px; border-radius: 999px; background: #f0f1f5; overflow: hidden; margin-top: 4px; }
.quota-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ff7a8a); }

/* ---------- 通用组件类（P2-14：把散落的内联样式收敛成类） ---------- */
.toolbar-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.field-input, .field-select {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  font-size: 13px; background: var(--card); color: var(--ink); font-family: inherit;
}
.field-input { flex: 1; min-width: 150px; }
.field-input:focus, .field-select:focus { border-color: var(--brand); outline: none; }
.summary-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 2px; min-height: 26px; }
.thumb-box {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
}

/* 协议文档页（legal） */
.legal-doc { line-height: 1.85; }
.legal-doc h3 { font-size: 15px; margin: 16px 0 6px; }
.legal-doc p { margin: 0 0 8px; font-size: 14px; }
.legal-doc h3:first-of-type { margin-top: 6px; }


/* ============================================================
   移动端可用性强化（≤767px）—— 真实 Chrome 审计发现后修复
   问题来源：点击目标 <44px、表单控件 <16px、固定操作栏遮挡内容
   ============================================================ */
@media (max-width: 767px) {
  /* 1) 点击目标：主按钮与次按钮统一抬高到 ≥44px（含图标型） */
  .btn { min-height: 44px; padding: 11px 16px; }
  .btn.small { min-height: 40px; padding: 9px 12px; font-size: 13px; }
  .btn.block { min-height: 46px; }
  .back-btn { min-width: 44px; min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .chip { min-height: 38px; padding: 8px 13px; }
  .tab { min-height: 52px; }

  /* 2) 表单控件字号 ≥16px：避免移动端聚焦缩放、提升可读性（内联样式需 !important 覆盖） */
  input, select, textarea, .field-input, .field-select { font-size: 16px !important; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  .cover-pick input, .work-pick { width: 22px; height: 22px; }
  .cover-pick { min-width: 44px; min-height: 44px; padding: 10px; }

  /* 3) 小标签/提示字号下限 11px（10px 在手机上几乎不可读） */
  .hot-tag, .pill.warn, .fnote-xs, .t3 { font-size: 11px; }
  .fnote { font-size: 13px; }

  /* 4) 固定操作栏不再遮挡正文：按页面类型预留底部空间 */
  .view { padding-bottom: 96px; }
  body.has-footer-cta .view { padding-bottom: 176px; }   /* 技能页：底部生成条 + 导航 */
  body.has-guided-bar .view { padding-bottom: 220px; }   /* 引导式：底部操作栏（两行 114px）+ 导航 67px + 余量 */

  /* 5) 底部固定栏贴齐安全区，宽度不再居中偏移 */
  .footer-cta { left: 0; right: 0; transform: none; width: auto; margin: 0 10px; }
  .footer-cta .btn { flex: 1; }
}

/* 移动端细节：小热区与小字号（真实 Chrome 审计第二轮） */
.chip-del { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; position: relative; }
/* 伪元素扩大点击热区到 ~48px，视觉尺寸不变（移动端拇指友好） */
.chip-del::after { content: ''; position: absolute; inset: -7px; }
.ref-del { min-width: 18px; min-height: 18px; }
.pick-wrap { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; }
@media (max-width: 767px) {
  .btn.small { min-height: 44px; min-width: 44px; padding: 10px 14px; }
  select { min-height: 44px; }
  .chip { min-height: 44px; }
  .chip .x, .chip-del { min-width: 36px; min-height: 36px; font-size: 16px; }
  .switch { min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; }
  .pick-wrap { width: 44px; height: 44px; flex: 0 0 44px; }
  .credits-pill { min-height: 44px; padding: 10px 16px; }
  .check-inline { min-height: 44px; }
  .modal-close { min-width: 44px; min-height: 44px; font-size: 17px; }
  /* 弹窗在手机上贴顶 + 内部滚动：居中 + 88vh 会超出视口，底部操作条被裁掉 */
  .modal-mask { padding: 10px; align-items: flex-start; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .link-btn { min-height: 44px; padding: 10px 8px; font-size: 14px; }
  /* 移动端表单排版：三列挤成两列，语气/自定义赛道整行铺开（chips 横向排列不再竖排） */
  .form-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .form-grid-compact .field-tone,
  .form-grid-compact .field-customTrack,
  .form-grid-compact .field-structure { grid-column: 1 / -1; }
  /* 列表行（历史/作品）：内容独占第二行。
     原因：一行内 勾选44 + 图标35 + 两个图标按钮88 + 间距64 = 231px 固定宽度，
     320px 屏幕上留给标题只剩 25px → 标题被挤成「一字一行」的竖排（文字遮挡）。
     移动端改为换行布局：上行「勾选 + 图标 …… ☆ 🗑」，下行正文独占整宽。 */
  .list-item { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .list-item .body { flex: 1 1 100%; order: 9; min-width: 0; }
  .list-item .icon-btn:first-of-type { margin-left: auto; }
  .list-item .t2 { -webkit-line-clamp: 2; }
  /* 引导式四模块改单列（minmax(0,1fr)：防止 nowrap 按钮把轨道撑宽、进而撑宽整个视口） */
  .guided-grid { grid-template-columns: minmax(0, 1fr); }
  .module-head, .guided-actions { min-width: 0; max-width: 100%; }
  .hot-tag, .pill { font-size: 11px !important; }
  .role-badge { font-size: 12px !important; padding: 4px 8px !important; }
}

/* 引导式/结果页容器（桌面默认，移动端在下方覆盖） */
.guided-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.guided-bar-inner { max-width: 1100px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.module-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
/* 模块头部：标题独占一行 + 操作按钮一行（手机上「✏️ 修改」不会再被挤到显示不全） */
.module-head .module-title { font-weight: 700; font-size: 15px; white-space: nowrap; }
.module-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: 100%; }
.module-actions .btn { flex: 0 0 auto; white-space: nowrap; }
/* 模块底部主操作：下一步 / 完成（自动确认本模块） */
.module-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.module-foot .module-next {
  flex: 1 1 auto; min-height: 46px; font-weight: 800; font-size: 15px;
  background: linear-gradient(90deg, var(--brand), #ff5f79); border: 0;
  box-shadow: 0 6px 16px rgba(255, 36, 66, .22);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.module-done { font-size: 13px; color: var(--ok); font-weight: 600; }
/* 正文字数计数（小红书正文上限 1000 字） */
.body-count { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.body-count.over { color: var(--high, #dc2626); font-weight: 600; }
/* 标签推荐 chip */
.tag-chip {
  display: inline-block; background: var(--brand-soft, #ffe9ed); color: var(--brand);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: copy;
}
.tag-chip:active { opacity: .7; }
/* 手机端串行引导：仅「当前待确认」模块高亮描边，已确认/未解锁模块降噪 */
.module-step { margin-top: 10px; font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 8px; }
.module-current { border: 1px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-soft, var(--brand-line)); }

@media (max-width: 767px) {
  /* 按钮文字不再被硬拆成两行 */
  .btn, .btn.small, .chip, .pill, .tab { white-space: nowrap; }
  /* 顶部操作条：横向滚动一行，避免 4 个按钮各占一行/文字折行 */
  .guided-actions { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 6px 0; }
  .guided-actions .btn { flex: 0 0 auto; }
  /* 模块头部：允许换行（避免 min-content 撑宽卡片与视口），按钮文案在移动端已精简 */
  .module-head { flex-wrap: wrap; overflow: visible; }
  .module-head .btn { flex: 0 0 auto; }
  /* 底部固定栏：6 列栅格 → 两行（完成 4 + 预览 2 / 导出 2 + 保存 2 + 进度 2）
     栏高从 ~230px 降到 ~120px，手机上不再吃掉半个屏幕 */
  /* 手机：底栏**一行**（原来两行 114px，滚动后会压住正文与复制按钮） */
  .guided-bar-inner {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); align-items: center;
  }
  .guided-bar-inner > .btn:nth-child(1) { grid-column: auto; }  /* ✅ 完成（主位） */
  .guided-bar-inner > .btn:nth-child(2) { grid-column: auto; }  /* 👁 预览 */
  .guided-bar-inner > .btn:nth-child(3) { grid-column: auto; }  /* 📦 导出 */
  .guided-bar-inner > .btn:nth-child(4) { grid-column: auto; }  /* 💾 保存 */
  /* 进度文字并入完成按钮区域，不再单独占一行 */
  .guided-bar-inner > .muted { display: none; }
  /* 窄列内不换行、缩小内边距：320px 屏幕上 6 列每列仅 ~42px，
     15px 字号 + 14px 内边距会让「👁 预览」折成两行 → 底栏从 114px 涨到 153px 顶掉正文 */
  .guided-bar-inner .btn { white-space: nowrap; min-width: 0; padding: 8px 4px; font-size: 13px; }
  .guided-bar-inner > .btn:nth-child(1) { font-size: 15px; padding: 10px 8px; }
  .guided-bar-inner > .muted { grid-column: span 2; text-align: center; font-size: 11px !important; }
  /* 提示条正常换行，不出现「内置样 / 例」这种断裂 */
  .demo-banner { word-break: normal; overflow-wrap: anywhere; line-height: 1.75; }
  .demo-banner b { white-space: nowrap; }
}

/* ============================================================
   导出成品包面板（R1）：分区清晰、移动端单列、克制不喧哗
   ============================================================ */
.export-panel { display: flex; flex-direction: column; gap: 12px; }
.exp-loading { padding: 24px 4px; text-align: center; color: var(--ink-2); }
.exp-hero { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff 0%, var(--surface-3) 100%); }
.exp-thumb { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; flex: 0 0 96px; background: var(--surface-2); }
.exp-hero-text { flex: 1; min-width: 0; }
.exp-hero-title { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.exp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.exp-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card); }
.exp-sec-head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.exp-sec-head .fnote { margin-left: auto; font-weight: 400; }
.exp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.exp-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; }
.exp-check-mark { flex: 0 0 18px; }
.exp-check-warn { color: #a15c00; }
.exp-overall { margin: 0 0 8px; font-size: 13.5px; }
.exp-risks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.exp-risk { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); cursor: help; }
.exp-risk-high { background: var(--surface-3); border-color: #f5c2c2; color: #b3261e; }
.exp-risk-mid { background: var(--surface-3); border-color: #ffd9a8; color: #9a5b00; }
.exp-risk-low { background: var(--surface-2); color: var(--ink-2); }
.exp-field { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.exp-field:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.exp-field-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.exp-field-label { font-weight: 700; font-size: 13px; }
.exp-field-head .btn { margin-left: auto; }
.exp-field-value { font-size: 13px; line-height: 1.65; max-height: 132px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.exp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.exp-field-hint { margin-left: 2px; }
.exp-field-value { cursor: copy; }
.exp-field-value:hover { background: #fafbfd; border-radius: 8px; }
.exp-sec-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.exp-disclaimer { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 6px; }
.exp-disclaimer .fnote-xs { flex: 1; min-width: 180px; margin: 0; }
.btn.copied { background: #eaf7ef !important; border-color: #bfe8cc !important; color: #1a7f37 !important; }
/* 「怎么发到小红书」步骤 */
.exp-guide { background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); border-color: #d9e8ff; }
.exp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: exp-step; }
.exp-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; }
.exp-step-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
@media (max-width: 767px) {
  .exp-hero { flex-direction: column; }
  .exp-thumb { width: 100%; height: 180px; flex: none; }
  .exp-actions { display: grid; grid-template-columns: 1fr; }
  .exp-actions .btn { width: 100%; }
  .exp-field-head .btn { min-height: 44px; min-width: 76px; }
  /* 主操作吸底：面板很长时，滚到哪都能一键复制/保存。
     手机上一行只留「复制为小红书格式 + 保存主图」，其余收进「⋯ 更多」，
     避免操作条过高把正文/复制按钮压住；并预留安全区与滚动空间。 */
  .exp-actions-sticky {
    position: sticky; bottom: -2px; z-index: 5; margin: 0 -12px -12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
    border-top: 1px solid var(--line); border-radius: 0 0 14px 14px;
    box-shadow: 0 -6px 16px rgba(24, 26, 40, .06);
  }
  .exp-actions-sticky > .btn:first-child { min-width: 0; }
  .exp-actions-sticky .exp-more-toggle { width: auto; min-width: 46px; padding: 10px 12px; }
  .exp-actions-more { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .exp-actions-more.hidden { display: none !important; }
  .exp-field-value { max-height: 96px; }
  .modal { max-height: 88vh; padding: 18px 14px; }
  /* 吸底条预留空间：最后一张卡片不会被操作条盖住（导出面板底部多留 12px） */
  .export-panel { padding-bottom: 12px; }
}

/* 手机端「保存到相册」提示条 */
.save-hint { line-height: 1.6; text-align: center; margin: 10px 0 0; }
/* 小红书话题蓝：浅色/深色各一档，保证可读 */
.xhs-topic { color: #3b6fd4; }

/* ============================================================
   发布前安检（R2）：发布前 30 秒的刚需面
   ============================================================ */
.check-input { width: 100%; min-height: 168px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-family: inherit; line-height: 1.65; resize: vertical; }
.check-conclusion { background: linear-gradient(180deg, #fff 0%, var(--surface-3) 100%); }
.check-conclusion.ok { background: linear-gradient(180deg, #fff 0%, #f2fbf5 100%); border-color: #cfe9d8; }
.check-concl-icon { font-size: 22px; line-height: 1.2; }
.check-concl-title { font-weight: 800; font-size: 16px; }
.check-lv-high { background: var(--surface-3); color: #b3261e; }
.check-lv-mid { background: var(--surface-3); color: #9a5b00; }
.check-lv-low { background: var(--surface-2); color: var(--ink-2); }
.check-risks { display: flex; flex-direction: column; gap: 8px; }
.check-risk { border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; padding: 8px 10px; }
.check-risk-high { border-left-color: #e5484d; }
.check-risk-mid { border-left-color: #f5a524; }
.check-risk-low { border-left-color: #c8ccd4; }
.check-risk-head { display: flex; align-items: baseline; gap: 8px; }
.check-risk-term { font-weight: 700; }
.check-risk-fix { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.check-fixed { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.7; max-height: 220px; overflow: auto; border: 1px dashed var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.check-upgrade { background: linear-gradient(180deg, var(--surface-3) 0%, #fff 100%); border-color: #ffe3ae; }
.check-upgrade-title { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 4px; }
.check-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-log li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check-log li .fnote { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .check-input { min-height: 200px; }
  .check-concl-title { font-size: 17px; }
}

/* ============================================================
   点数不足 → 升级引导（付费转化关键路径）
   ============================================================ */
.roi-card {
  background: linear-gradient(180deg, #fff9f0 0%, var(--card) 100%);
  border-color: #ffe3ae;
}
@media (prefers-color-scheme: dark) {
  .roi-card { background: linear-gradient(180deg, #2a2118 0%, var(--card) 100%); border-color: #6b5426; }
}
.upgrade-box { display: flex; flex-direction: column; gap: 12px; }
.upgrade-head { display: flex; gap: 10px; align-items: center; }
.upgrade-emoji { font-size: 26px; }
.upgrade-title { font-weight: 800; font-size: 16px; }
.upgrade-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.upgrade-account {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface-3); border: 1px solid var(--brand-soft, var(--brand-line));
  border-radius: 12px; padding: 10px 12px; font-size: 13px;
}
.upgrade-op { color: var(--ink-3); }
.upgrade-gap { color: var(--brand); font-weight: 800; }
.upgrade-packs { display: flex; flex-direction: column; gap: 8px; }
.upgrade-pack {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.upgrade-pack:hover { border-color: var(--brand); }
.upgrade-pack.recommended { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft, var(--brand-line)); }
.upgrade-pack-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.upgrade-price { margin-left: auto; font-weight: 800; color: var(--brand); }
.upgrade-pack-body { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--ink-2); }

/* 技能页价值锚：把点数翻译成时间与钱（付费决策点） */
.value-anchor {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 16px 0; padding: 8px 12px; font-size: 12px; color: var(--ink-2);
  background: var(--surface-2); border-radius: 10px;
}
.value-anchor .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* 首页试用横幅（转化位） */
.trial-banner {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin: 10px 16px; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: linear-gradient(90deg, var(--surface-3), #fff); border: 1px solid var(--brand-soft, var(--brand-line));
}
.trial-banner .btn { flex: 0 0 auto; }

/* 登录页赠点/试用说明 */
.signup-gift {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; text-align: center;
  font-size: 13px; color: var(--ink-2); background: linear-gradient(90deg, var(--surface-3), var(--surface-3));
  border: 1px solid var(--brand-soft, var(--brand-line));
}
.signup-gift b { color: var(--brand-text); }

/* 首页卡片：出图另计提示（避免"标 2 点、实际花 20 点"的预期落差） */
.cost-hint { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* 技能页费用明细：一眼看清这一步与后续各花多少点 */
.cost-detail {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 16px 0; font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.cost-detail .cd-label { flex: 0 0 auto; font-weight: 700; color: var(--ink); }
.cost-detail .cd-item { white-space: nowrap; }
.cost-detail .cd-item:not(:last-child)::after { content: '·'; margin-left: 6px; color: var(--ink-3); }

/* 技能页「你将得到」：信息条（刻意不用卡片外观，避免被误认为可点击的列表项） */
.what-you-get {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 8px 16px 2px; padding: 8px 0 8px 10px;
  border-left: 3px solid var(--brand-line); font-size: 12px; color: var(--ink-2); line-height: 1.6;
}
.what-you-get .wyg-label {
  flex: 0 0 auto; font-weight: 700; color: var(--ink); font-size: 12px;
}
.what-you-get .wyg-text { flex: 1; min-width: 0; }

/* 结果页「更多」区（动作条瘦身） */
.action-more { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.action-more .btn { flex: 0 0 auto; }
@media (max-width: 360px) { .action-more { flex-direction: column; } .action-more .btn { width: 100%; } }
.action-bar .btn { white-space: nowrap; }

/* 技能表单：字段合并后的分隔与「更多设置」 */
/* 合并卡片内的字段分隔：**只作用于纵向排列**。
   注意：不能用 `.form-card .field-wrap + .field-wrap` —— 那会把三列紧凑网格
   （赛道/人设/语气）里第 2、3 列也加上 12px 上内边距，导致整列下移 13px（歪的根因）。*/
.form-card > .field-wrap + .field-wrap,
.form-card > .form-more > .field-wrap:first-child,
.form-card > .form-more > .field-wrap + .field-wrap {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
/* 紧凑三列：顶部对齐，任何情况下都不加分隔线与额外内边距 */
.form-grid-compact { align-items: start; }
.form-grid-compact .field-wrap { border-top: 0 !important; padding-top: 0 !important; }
.form-more { border-top: 1px dashed var(--line); }
.form-more-toggle { width: 100%; margin: 10px 0 6px; }

/* ============================================================
   深色模式（跟随系统）：只覆盖语义变量 + 少量固定白/黑的特例
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #ff5a6e;
    --btn-bg: #e0344f; /* 深色下白字对比度 ~4.9:1（AA） */
    --brand-dark: #e0344f;
    --brand-text: #ffa3b0;     /* 深底上的品牌文字：对比度 ≥ 4.6:1 */
    --brand-soft: #3a1f27;
    --brand-line: #5a2b36;
    --ok-soft: #14291d;
    --ok-line: #2c6b45;
    --tag-blue-soft: #1b2740;
    --ink: #e9ecf2;
    --ink-2: #b6bdca;
    --ink-3: #98a1b0;
    --line: #2b303b;
    --bg: #14161c;
    --card: #1c1f27;
    --surface-2: #23272f;
    --surface-3: #2a2126;
    --ok: #34d399;
    --warn: #fbbf24;
    --high: #f87171;
    --mid: #fb923c;
    --low: #facc15;
    --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 6px 24px rgba(0, 0, 0, .4);
    --shadow-nav: 0 1px 0 var(--line), 0 4px 16px rgba(0, 0, 0, .4);
  }
  /* 少数写死白底/黑字的元素（弹层、Toast、代码块等） */
  .modal, .waiting-sheet, .guided-bottom-bar, .tabbar, .login-card,
  .upgrade-pack, .skill-card, .cover-card, .work-card, .card { background: var(--card); }
  .toast { background: #2b303b; color: var(--ink); }
  .xhs-topic { color: #7aa2f7; }
  .toast.err { background: #7f1d1d; color: #fff; }
  input, textarea, select { background: var(--surface-2); color: var(--ink); }
  .btn.ghost { background: var(--brand-soft); color: var(--brand-text); }
  img { filter: brightness(.94); }  /* 深色下图片略降亮度，避免刺眼 */
  /* —— 漏网的"白色蒙层 / 白色渐变"（2026-09-18 夜间反馈修复）—— */
  .loading-mask, #overlay-root .loading-mask { background: rgba(12, 14, 19, .72); color: var(--ink); }
  .exp-guide { background: linear-gradient(180deg, #232a36 0%, var(--card) 100%); border-color: #2c3a52; }
  .exp-hero { background: linear-gradient(180deg, var(--surface-2) 0%, var(--card) 100%); }
  .exp-actions-sticky { background: rgba(20, 22, 28, .97); box-shadow: 0 -6px 16px rgba(0, 0, 0, .35); }
  .exp-field-value:hover { background: var(--surface-2); }
  .exp-risk-high { border-color: #5b2a2a; color: #f7a6a0; }
  .exp-risk-mid { border-color: #6b4a1f; color: #f2c078; }
  .cover-pick { background: rgba(28, 31, 39, .92); }
  .save-hint, .album-hint { color: var(--ink-3); }
  /* —— 浅色芯片 / 横幅 / 结论卡（2026-09-19 静态分析补漏：这些是"小面积但很扎眼"的白块）—— */
  .pill { background: #2a2f3d; color: var(--ink-2); }
  .pill.ok { background: #17331f; color: #7ee2a8; }
  .pill.warn { background: #3a2e14; color: #f2c078; }
  .pill.orange { background: #3a2415; color: #f7b283; }
  .pill.yellow { background: #3a3517; color: #ead97a; }
  .pill.brand { background: #3a1f27; color: #ff9aa8; }
  .demo-banner { background: #3a2e14; color: #f2c078; border-color: #5c4620; }
  .switch { background: #3a4150; }
  .switch.on { background: var(--brand); }
  .risk-row.high { background: #3a1f22; }
  .risk-row.mid { background: #3a2c17; }
  .risk-row.low { background: #33301a; }
  .wait-bar, .quota-bar { background: #2a2f3d; }
  .tag-chip { background: #3a1f27; color: #ff9aa8; }
  .modal-close:hover { background: #2a2f3d; }
  .btn.copied { background: #17331f !important; color: #7ee2a8 !important; }
  .check-conclusion { background: linear-gradient(180deg, var(--surface-2) 0%, var(--card) 100%); }
  .check-conclusion.ok { background: linear-gradient(180deg, var(--surface-2) 0%, #17331f 100%); border-color: #2c5a3c; }
  .check-upgrade { background: linear-gradient(180deg, var(--surface-2) 0%, var(--card) 100%); border-color: #5c4620; }
  .studio-card { background: linear-gradient(180deg, #232630 0%, var(--card) 100%); border-color: #3a2830; }
  .newbie-card { background: #2a1f24; border-color: #3a2830; }
  .guide-step-no { background: #b3262f; } /* 白字对比度 ≈6.6:1（AA） */
}

/* 配额行（每日次数不限时显示「不限」而不是进度条） */
.quota-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.quota-line b { color: var(--ink); }

/* 封面工作台：推荐商品/店铺行（含上传商品/店铺照片） */
.studio-product-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 6px 0 2px; font-size: 12px; color: var(--ink-2);
}
.studio-product-row .studio-ctrl-label { flex: 0 0 auto; font-weight: 600; }
.studio-product-row input { flex: 1 1 200px; min-width: 150px; }

/* ============================================================
   意见反馈 / 工单（用户端与后台共用类名）
   ============================================================ */
.fb-form textarea, .fb-form .field-input, .fb-form .field-select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: var(--card); color: var(--ink); box-sizing: border-box;
}
.fb-thread {
  display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto;
  padding: 10px; border-radius: 12px; background: var(--surface-2, #f6f7f9);
}
.fb-bubble { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.fb-bubble.me { align-self: flex-end; background: var(--btn-bg); color: #fff; }
.fb-bubble.admin { align-self: flex-start; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.fb-meta { font-size: 11px; opacity: .75; margin-bottom: 3px; }
.fb-text { white-space: pre-wrap; word-break: break-word; }
.fb-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fb-imgs img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.shot-box { display: flex; flex-direction: column; gap: 8px; }
.shot-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-thumb { position: relative; }
.shot-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.shot-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: var(--high, #dc2626); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
}
