/* 云海豚 全站样式 —— 复刻门户版式（顶栏 + 左侧图标栏 + Hero 生成卡片 + 热门推荐） */
:root {
  --primary: #3b82f6;
  --primary-deep: #2563eb;
  --grad-blue: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --border: #eceef4;
  --text: #14161f;
  --text-2: #7a8195;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(24, 39, 92, .07);
  --shadow-lg: 0 14px 44px rgba(24, 39, 92, .13);
  /* --- 参考站（点图AI）设计变量，用于 1:1 复刻页面 --- */
  --page: 247 247 248;
  --panel: 255 255 255;
  --line: 226 226 228;
  --line-strong: 199 200 204;
  --ink: 24 24 26;
  --ink-secondary: 86 86 92;
  --ink-faint: 145 145 151;
  --brand-50: 245 245 246;
  --brand-100: 235 235 237;
  --brand-200: 215 216 219;
  --brand-300: 184 185 190;
  --brand-400: 112 114 121;
  --brand-500: 24 25 28;
  --brand-600: 16 17 19;
  --brand-700: 10 10 11;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 24px rgba(15, 23, 42, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 15px; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); outline: none; }
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: 1; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9dce6; border-radius: 8px; }

/* ================= 顶部栏 ================= */
.topbar { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 0; border-bottom: 1px solid var(--border); background: #fff; position: relative; z-index: 60; }
.tb-logo { width: 56px; justify-content: center; display: flex; align-items: center; flex-shrink: 0; }
.tb-logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(37,99,235,.25); }
.tb-logo .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 3px 10px rgba(37,99,235,.35); }
.tb-page { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; flex-shrink: 0; margin-right: 4px; }
.tb-page b { font-size: 14px; }
.tb-page span { font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.tb-search { flex: 1; max-width: 576px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: rgb(var(--page)); color: rgb(var(--ink-faint)); font-size: 14px; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.tb-search .tb-search-ico { width: 17px; height: 17px; flex-shrink: 0; }
.tb-search:focus-within { border-color: rgb(var(--brand-300)); background: rgb(var(--panel)); box-shadow: 0 0 0 2px rgb(var(--brand-100)); }
.tb-search input { flex: 1; border: none; background: none; color: rgb(var(--ink)); }
.tb-search input::placeholder { color: rgb(var(--ink-faint)); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* 顶栏响应式（与参考站一致：小屏隐藏营销按钮与搜索框） */
@media (max-width: 1023px) { .tb-right .pill-gold, .tb-right .pill-pink { display: none; } }
@media (max-width: 767px) { .tb-search { display: none; } .tb-page span { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; transition: .15s; }
/* 第四十四批：首页「积分充值 / 免费领积分」原为无 href 的 <a>（键盘不可聚焦、也不可 Enter 触发，
   旁边的登录/注册用的是 <button>，同一排控件两种语义）。改为 button 后需要抹平 UA 默认样式。 */
button.pill { border: 0; cursor: pointer; font-family: inherit; }
button.pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pill:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pill-gold { background: linear-gradient(100deg, #f59e0b, #d97706); box-shadow: 0 3px 10px rgba(217,119,6,.3); }
.pill-pink { background: linear-gradient(100deg, #f43f5e, #ec4899); box-shadow: 0 3px 10px rgba(236,72,153,.3); }
.bell { display: inline-flex; align-items: center; padding: 6px; border-radius: 10px; color: var(--text-2); position: relative; }
.bell svg { width: 19px; height: 19px; }
.bell:hover { background: var(--bg-soft); }
/* 第二十二批：铃铛未读角标（真实未读数，来自 /api/notices） */
.bell-badge { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; text-align: center; font-style: normal; box-shadow: 0 0 0 2px rgb(var(--page, 255 255 255)); }
.user-chip { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--bg-soft); font-size: 13.5px; }
.user-chip .uavatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.user-chip b { color: var(--primary-deep); }

/* ================= 左侧图标栏 ================= */
.shell { display: flex; height: calc(100vh - 60px); }
.side { width: 56px; border-right: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 4px; flex-shrink: 0; overflow-y: auto; }
.side-item { width: 46px; padding: 7px 0 6px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-2); font-size: 10.5px; transition: .15s; }
.side-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-item:hover { background: var(--bg-soft); color: var(--text); }
.side-item.active { background: #e8f1ff; color: var(--primary-deep); font-weight: 700; }
.side-item.active svg { stroke: var(--primary-deep); stroke-width: 2; }
.side-divider { width: 28px; height: 1px; background: var(--border); margin: 5px 0; flex-shrink: 0; }
/* 左侧菜单「只显示图标」模式（后台页面装修可开启） */
.side.icon-only .side-item { width: 40px; padding: 9px 0; }
.side.icon-only .side-item span { display: none; }
.main-area { flex: 1; overflow-y: auto; background: #fff; }

/* ================= 通用按钮 ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: .15s; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ================= 首页 Hero（蓝→奶油斜向渐变 + 点阵，复刻参考图） ================= */
.home-hero {
  position: relative; padding: 42px 24px 56px; text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 74%, #ffffff 100%),
    radial-gradient(ellipse 36% 70% at 5% 38%, rgba(140,180,255,.55), transparent 70%),
    linear-gradient(100deg, #d9e6fa 0%, #f5eed8 48%, #fcf5df 100%);
}
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #c9bfa4 1.2px, transparent 1.2px); background-size: 24px 24px; opacity: .4; pointer-events: none; }
.home-hero > * { position: relative; }
.home-hero h1 { font-size: clamp(38px, 4.2vw, 72px); font-weight: 900; letter-spacing: 1px; display: inline-block; }
.home-hero h1 .grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .stroke { display: block; width: clamp(270px, 34vw, 500px); margin: -10px auto 0; }

/* ---- 中央生成卡片 ---- */
.gen-card { width: clamp(560px, 42vw, 800px); margin: 26px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 18px 50px rgba(30,50,120,.16); padding: 20px 30px 22px; text-align: left; }
/* Tab 栏：图标 + 黑色胶囊选中态（参考站样式） */
.gen-tabs { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gen-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #5a6172; transition: .15s; }
.gen-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gen-tab:hover { color: var(--text); }
.gen-tab.active { background: #17181c; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.gen-body { display: flex; gap: 18px; align-items: flex-start; }
/* 上传参考图区：竖版斜置矩形 + 下方标签 */
.gen-upload { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; width: 66px; padding: 2px 0 0; }
.gen-drop { width: 56px; height: 74px; border-radius: 12px; background: #f5faff; border: 1px solid #ddeaff; display: grid; place-items: center; overflow: hidden; position: relative; padding: 0;
  transform: rotate(-8deg); transition: .18s; }
.gen-drop:hover { background: #eef6ff; border-color: #bcd9ff; transform: rotate(-8deg) translateY(-2px); box-shadow: 0 5px 14px rgba(93,150,255,.16); }
.gen-drop .gd-plus { font-size: 20px; font-weight: 400; color: #7cb3f4; line-height: 1; transform: rotate(8deg); }
.gen-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen-drop.has-img { border-color: #9fc4ff; }
.gd-label { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #8a93a8; white-space: nowrap; }
.gd-label svg { width: 11px; height: 11px; stroke: #7cb3f4; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gen-body textarea { flex: 1; border: none; resize: none; height: 52px; font-size: 14.5px; line-height: 1.7; background: none; padding-top: 10px; }
.gen-body textarea::placeholder { color: #9aa3b5; }
/* 底部：左侧双胶囊 + 右侧深色按钮 */
.gen-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.gen-pills { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gen-pill { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #e5e8ef; background: #fff; font-size: 13.5px; font-weight: 600; color: #23262e; }
.gen-pill svg { width: 15px; height: 15px; stroke: #5a6172; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gen-pill select { appearance: none; -webkit-appearance: none; border: none; background: none; font: inherit; font-weight: 600; color: inherit; outline: none; max-width: 190px; cursor: pointer; }
.gen-go { height: 42px; min-width: 70px; padding: 0 22px; border-radius: 14px; background: #54585f; color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: .15s; flex-shrink: 0; }
.gen-go:hover { background: #33373d; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.gen-go svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 图片生成选项下拉面板（比例 / 清晰度 / 数量） */
.opt-wrap { position: relative; }
.gen-dd { position: absolute; top: calc(100% + 12px); left: 0; width: 372px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 44px rgba(20,30,60,.16); padding: 18px 18px 16px; z-index: 40; }
.dd-label { font-size: 12.5px; color: #6b7280; margin-bottom: 10px; }
.ratio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 18px; }
.ratio-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 0 7px; border-radius: 10px; font-size: 12px; color: #5a6172; cursor: pointer; transition: .12s; }
.ratio-item:hover { background: #f5f6f8; }
.ratio-item.on { color: #111; font-weight: 700; }
.ratio-icon { height: 26px; display: grid; place-items: center; }
.ri { display: block; border: 1.6px solid #c9cedb; border-radius: 4px; }
.ratio-item.on .ri { background: #17181c; border-color: #17181c; box-shadow: inset 0 0 0 2.5px #fff; }
.seg { display: flex; background: #f1f2f5; border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-size: 13px; color: #5a6172; transition: .12s; }
.seg button:hover { color: #111; }
.seg button.on { background: #fff; color: #111; font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.14); }
/* 视频选项：白色描边小方块按钮（选中黑底） */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dd-chip { min-width: 58px; height: 38px; padding: 0 16px; border: 1px solid #e5e8ef; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: #3c414c; transition: .12s; }
.dd-chip:hover { border-color: #c4cad6; }
.dd-chip.on { background: #17181c; border-color: #17181c; color: #fff; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0f1f4; font-size: 12px; color: #9aa3b5; }
.dd-foot b { font-size: 14px; color: #111; }

/* ================= 智能绘画工作台 ================= */
.draw-page { padding: 22px 28px 48px; }
.draw-head { text-align: center; margin-bottom: 20px; }
.draw-head h2 { font-size: 22px; font-weight: 900; }
.draw-head p { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.draw-cols { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
/* 左侧表单 */
.draw-left { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 14px; box-shadow: var(--shadow); }
.dl-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 0 -18px 14px; padding: 0 18px; }
.dl-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 4px; font-size: 14px; font-weight: 700; color: var(--text); border-bottom: 2px solid #17181c; margin-bottom: -1px; }
.dl-tabs button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-sec { margin-bottom: 15px; }
.dl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dl-row label { font-size: 13.5px; font-weight: 700; }
.dl-row h4 { font-size: 14.5px; font-weight: 800; }
.dl-hint { font-size: 11px; color: #a2a9ba; flex: 1; text-align: right; }
.draw-left textarea { width: 100%; height: 92px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; resize: vertical; background: #fff; }
.draw-left textarea:focus { outline: none; border-color: var(--primary); }
.dl-libbtn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: var(--text); }
.dl-libbtn:hover { background: var(--bg-soft); }
.dl-libbtn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone { border: 1.5px dashed #ccd3e0; border-radius: 12px; background: #fafbfd; text-align: center; padding: 22px 12px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 5px; }
.dropzone b { font-size: 13px; font-weight: 600; }
.dropzone span { font-size: 11px; color: #a2a9ba; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #f4f8ff; }
.ref-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ref-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; }
.model-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .15s; }
.mc:hover { border-color: #b9c6de; }
.mc b { font-size: 13px; }
.mc span { font-size: 11px; color: var(--text-2); }
.mc.on { background: #17181c; border-color: #17181c; color: #fff; }
.mc.on span { color: #b9bdc7; }
/* 比例宫格 */
.ratio-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border-radius: 12px; font-size: 11.5px; color: #5a6172; cursor: pointer; transition: .12s; }
.rt:hover { background: #f5f6f8; }
.rt.on { background: #17181c; color: #fff; }
.rt .ri { border-color: #c9cedb; }
.rt.on .ri { border-color: rgba(255,255,255,.85); }
/* 清晰度 / 张数 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .dd-chip { min-width: 0; height: 34px; padding: 0 14px; border-radius: 9px; }
.chips.nums .dd-chip { width: 34px; padding: 0; justify-content: center; display: inline-flex; align-items: center; }
/* 底部操作行 */
.draw-actions { display: flex; gap: 8px; margin-top: 4px; }
.draw-actions .ghost { height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; }
.draw-actions .ghost:hover { background: var(--bg-soft); }
.draw-actions .go { flex: 1; height: 44px; border-radius: 12px; background: #45494f; color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; }
.draw-actions .go:hover { background: #2e3238; }
.draw-actions .go:disabled { opacity: .55; cursor: not-allowed; }
.draw-actions .icon { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 17px; color: var(--text-2); }
.draw-actions .icon:hover { background: var(--bg-soft); color: var(--text); }
/* 右侧 */
.draw-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dcard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.dcard h4 { font-size: 14.5px; font-weight: 800; }
.dcard .dl-row { margin-bottom: 0; }
.d-empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; color: var(--text-2); font-size: 12.5px; padding: 24px 12px; }
.d-empty.slim { min-height: 0; padding: 18px 8px; }
.d-empty .de-icon { font-size: 26px; }
.d-empty b { font-size: 13.5px; color: var(--text); }
.d-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.d-result-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.d-fail { text-align: center; padding: 26px 12px; color: #dc2626; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.d-fail span { font-size: 12px; color: var(--text-2); font-weight: 400; }
/* 步骤条 */
.stepper { display: flex; margin-top: 14px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: #e7e9ef; }
.step.done:not(:last-child)::after, .step.cur:not(:last-child)::after { background: #17181c; }
.st-num { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d4d8e2; background: #fff; color: #8a93a8; font-size: 12px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.st-label { font-size: 11.5px; color: #8a93a8; }
.step.done .st-num, .step.cur .st-num { background: #17181c; border-color: #17181c; color: #fff; }
.step.cur .st-num { box-shadow: 0 0 0 4px rgba(23,24,28,.12); }
.step.done .st-label, .step.cur .st-label { color: #111; font-weight: 700; }
/* 任务信息 */
.ti-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed #f0f1f4; }
.ti-row:last-child { border-bottom: none; }
.ti-row span { color: var(--text-2); }
.ti-row b { font-weight: 600; }
.draw-notes { font-size: 12px; color: var(--text-2); line-height: 2; padding: 2px 6px; }
@media (max-width: 980px) { .draw-cols { grid-template-columns: 1fr; } }

/* ================= AI 视频创作页 ================= */
.video-page { padding: 20px 24px 48px; }
.video-cols { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.video-left { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 14px; box-shadow: var(--shadow); }
.vl-tab { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid #17181c; margin-bottom: 12px; }
.vl-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 模式列表 */
.vm-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.vm { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: .12s; }
.vm:hover { background: var(--bg-soft); }
.vm.on { background: #f1f4f9; }
.vm-ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.vm b { font-size: 13px; display: block; }
.vm span { font-size: 11px; color: var(--text-2); }
.video-left .dl-sub { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.video-left select { height: 36px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font-size: 13px; background: #fff; }
.v-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-upload { border: 1px solid var(--border); border-radius: 12px; background: #fafbfd; text-align: center; padding: 18px 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.v-upload span:first-child { font-size: 22px; }
.v-upload b { font-size: 12.5px; }
.v-upload span:last-child { font-size: 10px; color: #b0b7c6; letter-spacing: 1px; }
.v-upload:hover { border-color: var(--primary); background: #f4f8ff; }
.v-tgs { display: flex; flex-direction: column; gap: 2px; }
.tg-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; font-size: 13px; font-weight: 600; }
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d8dbe3; transition: .18s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .18s; }
.switch input:checked + i { background: #17181c; }
.switch input:checked + i::after { transform: translateX(16px); }
.acc-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.acc-head:hover { color: var(--text); }
.video-left textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; resize: vertical; background: #fff; }
.video-left textarea:focus { outline: none; border-color: var(--primary); }
.video-go { width: 100%; margin-top: 14px; height: 46px; border-radius: 12px; background: #17181c; color: #fff; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; }
.video-go:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.video-go:disabled { opacity: .55; cursor: not-allowed; }
.video-go em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
/* 右侧结果区 */
.video-right { min-width: 0; }
.vr-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.vr-head span::before { content: "• "; color: #17181c; }
.vr-head a { font-size: 12.5px; color: var(--text-2); font-weight: 400; }
.vr-head a:hover { color: var(--primary-deep); }
.vr-empty { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 34px 28px 30px; text-align: center; box-shadow: var(--shadow); }
.vr-tag { display: inline-block; font-size: 11px; color: #8a93a8; background: var(--bg-soft); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.vr-empty h3 { font-size: 21px; font-weight: 900; }
.vr-empty > p { font-size: 12.5px; color: var(--text-2); margin: 8px 0 24px; }
.vr-flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.vf { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 170px; }
.vf-img, .vf-box, .vf-video { width: 100%; height: 150px; border-radius: 14px; display: grid; place-items: center; }
.vf-img { background: linear-gradient(150deg, #cfe3f7, #e8f1fa); font-size: 40px; }
.vf-box { background: #f1f2f5; font-size: 12px; color: #8a93a8; line-height: 1.8; padding: 0 14px; }
.vf-video { background: linear-gradient(150deg, #3a3f47, #565b63); color: #fff; font-size: 26px; }
.vf > span { font-size: 12px; color: var(--text-2); }
.vf-arrow { align-self: center; color: #c3c9d6; font-size: 16px; margin-top: -26px; }
.v-status { margin-top: 4px; }
.vs-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.vs-card.fail b { color: #dc2626; }
.vs-card span { font-size: 12.5px; color: var(--text-2); }
.spinner { width: 26px; height: 26px; margin: 0 auto; border: 3px solid #e7e9ef; border-top-color: #17181c; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) { .video-cols { grid-template-columns: 1fr; } }
.gen-dd.wide { width: 442px; max-height: 72vh; overflow-y: auto; }
.gen-dd.wide::-webkit-scrollbar { width: 6px; }
.gen-dd.wide::-webkit-scrollbar-thumb { background: #dcdfe8; border-radius: 6px; }
.gen-dd.wide .dd-chip { min-width: 62px; }

/* ================= 首页下方：banner + 快捷卡 + 热门推荐 ================= */
.home-below { display: grid; grid-template-columns: 33% 1fr; gap: 16px; padding: 10px 2.6% 52px; }
.hb-left { display: flex; flex-direction: column; gap: 14px; }
.promo-banner { border-radius: 16px; padding: 24px 22px; background: linear-gradient(115deg, #cdb8f5 0%, #b3c1f7 45%, #c3dafb 100%); position: relative; overflow: hidden; }
.promo-banner .pb-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(124,58,237,.75); padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.promo-banner .pb-title { font-size: clamp(20px, 1.9vw, 28px); font-weight: 900; line-height: 1.3; color: #fff; text-shadow: 0 1px 6px rgba(90,60,190,.25); }
.promo-banner .pb-title em { font-style: normal; color: #fff; }
.promo-banner .pb-sub { margin: 8px 0 14px; font-size: 12.5px; color: #fff; opacity: .92; }
.promo-banner .pb-btn { display: inline-flex; align-items: center; gap: 6px; background: #6d28d9; color: #fff; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; box-shadow: 0 5px 14px rgba(90,40,190,.45); }
.promo-banner .pb-art { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-6deg); font-size: 30px; letter-spacing: 2px; opacity: .9; text-shadow: 0 3px 8px rgba(80,50,180,.3); }
.hb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px 15px; transition: .2s; display: flex; flex-direction: column; gap: 4px; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.quick-card .qc-icon { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; font-size: 16px; margin-bottom: 5px; }
.quick-card b { font-size: 14.5px; }
.quick-card span { font-size: 12px; color: var(--text-2); line-height: 1.55; }

.hb-right { min-width: 0; }
.hot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hot-head h3 { font-size: 18px; font-weight: 800; }
.hot-head a { font-size: 12.5px; color: var(--text-2); }
.hot-head a:hover { color: var(--primary-deep); }
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hot-card { display: flex; justify-content: space-between; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 13px 11px; transition: .2s; cursor: pointer; }
.hot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.hot-card h4 { font-size: 13.5px; margin-bottom: 4px; }
.hot-card p { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.hot-card .thumb { width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.t1 { background: #eef2ff; } .t2 { background: #fdf2f8; } .t3 { background: #ecfdf5; } .t4 { background: #fffbeb; }
.t5 { background: #fef3c7; } .t6 { background: #fce7f3; } .t7 { background: #e0f2fe; } .t8 { background: #ede9fe; }

/* ================= 对话页 ================= */
.app { display: flex; height: 100%; }
.sidebar { width: 250px; background: var(--bg-soft); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px; gap: 10px; }
.sidebar .new-btn { width: 100%; }
.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.conv-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 14px; }
.conv-item:hover { background: #eef0f6; }
.conv-item.active { background: #eaf2ff; color: var(--primary-deep); font-weight: 600; }
.conv-item .del { opacity: 0; color: #ef4444; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.conv-item:hover .del { opacity: 1; }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--border); background: #fff; }
.chat-head select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; max-width: 800px; }
.msg .avatar { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #fff; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .avatar { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.msg.assistant .avatar { background: var(--grad-blue); }
.msg .bubble { padding: 12px 16px; border-radius: 14px; line-height: 1.75; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.msg.user .bubble { background: var(--primary-deep); color: #fff; border-top-right-radius: 4px; }
.msg.assistant .bubble { background: var(--bg-soft); border: 1px solid var(--border); border-top-left-radius: 4px; }
.chat-input { display: flex; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--border); background: #fff; }
.chat-input textarea { flex: 1; resize: none; height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); }
.chat-input textarea:focus { border-color: var(--primary); }
.empty-tip { color: var(--text-2); text-align: center; padding: 60px 0; }

/* ================= 创作页（绘图/视频/音乐） ================= */
.studio { display: grid; grid-template-columns: 380px 1fr; gap: 0; height: 100%; }
.studio .panel { background: #fff; border-right: 1px solid var(--border); padding: 22px; overflow-y: auto; }
.studio .panel h2 { font-size: 18px; margin-bottom: 18px; }
.studio .field { margin-bottom: 16px; }
.studio label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.studio textarea, .studio input, .studio select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); }
.studio textarea { height: 120px; resize: vertical; }
.studio textarea:focus, .studio input:focus, .studio select:focus { border-color: var(--primary); background: #fff; }
.studio .gallery { padding: 22px; overflow-y: auto; background: #fff; }
.studio .gallery h3 { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.task-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.task-card img, .task-card video, .task-card audio { width: 100%; display: block; background: #000; }
.task-card .meta { padding: 12px 14px; }
.task-card .status { font-size: 12px; font-weight: 700; }
.st-succeeded { color: #059669; } .st-queued, .st-running { color: #d97706; } .st-failed { color: #dc2626; }
.task-card .prompt { font-size: 12.5px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= 登录注册 ================= */
.auth-wrap { display: grid; place-items: center; height: 100%; overflow-y: auto; background: radial-gradient(800px 400px at 50% 0%, rgba(59,130,246,.08), transparent 70%); }
.auth-card { width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px; margin: 20px 0; }
/* 登录页配置了宣传图时：左图右表单 */
.auth-wrap.has-side .auth-card { width: 760px; max-width: calc(100vw - 40px); padding: 0; display: flex; overflow: hidden; }
.auth-card .auth-side { flex: 1 1 46%; min-width: 0; }
.auth-card .auth-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-card .auth-form { flex: 1 1 54%; padding: 36px; min-width: 0; }
@media (max-width: 720px) {
  .auth-wrap.has-side .auth-card { flex-direction: column; }
  .auth-card .auth-side { max-height: 200px; }
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .tip { color: var(--text-2); font-size: 13.5px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.auth-card input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); }
.auth-card input:focus { border-color: var(--primary); background: #fff; }
.auth-card .btn { width: 100%; padding: 12px; }
.auth-card .switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-card .switch a { color: var(--primary-deep); font-weight: 600; }
.form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; display: none; }

/* ================= 通用内容页（我的作品 / 灵感广场 / 任务中心） ================= */
.page-wrap { padding: 26px 3% 50px; }
.page-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.page-head h2 { font-size: 20px; }
.page-sub { color: var(--text-2); font-size: 12.5px; }
.inspire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.inspire-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: .2s; }
.inspire-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
.inspire-card .ic-emoji { font-size: 22px; }
.inspire-card b { font-size: 14.5px; }
.inspire-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.data-table th { background: #fafbfe; color: var(--text-2); font-weight: 600; }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; background: rgba(15,18,45,.45); display: grid; place-items: center; z-index: 100; }
.modal { width: 480px; max-height: 84vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 26px; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.modal .field { margin-bottom: 14px; }
.modal label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
/* 第二十二批：绘图页「商品库」选择器（复用 /api/my/products 素材） */
.modal.pklib-host { width: min(760px, 94vw); }
.pklib-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pklib-head b { font-size: 16px; font-weight: 800; color: var(--text); }
.pklib-head span { font-size: 12px; color: var(--text-2); }
.pklib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.pklib-item { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; transition: .15s; }
.pklib-item:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(37,99,235,.12); }
.pklib-item img { width: 100%; height: 96px; object-fit: cover; display: block; }
.pklib-item span { padding: 0 8px 8px; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pklib-note { margin-top: 12px; font-size: 11.5px; color: var(--text-2); }

@media (max-width: 1000px) {
  .home-below { grid-template-columns: 1fr; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero h1 { font-size: 32px; }
  .tb-search { display: none; }
  .studio { grid-template-columns: 1fr; }
  .sidebar { width: 200px; }
}

/* ================= 视频页五模式补充样式 ================= */
.vm-ic svg { width: 15px; height: 15px; stroke: #3a3f4a; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vm.on .vm-ic { background: #17181c; border-color: #17181c; }
.vm.on .vm-ic svg { stroke: #fff; }
.vm-head { margin-bottom: 12px; }
.vm-head b { font-size: 15.5px; display: block; }
.vm-head span { font-size: 11.5px; color: var(--text-2); }
.v-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v-quick button { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; transition: .12s; }
.v-quick button:hover { border-color: var(--primary); color: var(--primary-deep); background: #f4f8ff; }
.v-ref-name { font-size: 11px; color: var(--primary-deep); margin-top: 6px; min-height: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-card { position: relative; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fafbfd; transition: .12s; }
.tpl-card:hover { border-color: #b9c6d8; }
.tpl-card .tp-img { height: 64px; display: grid; place-items: center; font-size: 24px; }
.tpl-card > span { display: block; font-size: 10.5px; text-align: center; padding: 4px 2px; color: var(--text-2); }
.tpl-card.on { border-color: #17181c; }
.tpl-card.on > span { color: #111; font-weight: 700; }
.tpl-card .tp-check { position: absolute; top: 5px; right: 5px; width: 17px; height: 17px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 10px; font-style: normal; display: none; place-items: center; }
.tpl-card.on .tp-check { display: grid; }
.vr-done { font-size: 15px; font-weight: 800; padding: 8px 0; }
/* 右侧引导内卡 */
.vr-inner { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(160deg, #fbfbfd, #f2f4f8); padding: 26px 22px 24px; margin-top: 4px; }
.vr-inner-title { font-size: 16px; font-weight: 800; margin-bottom: 22px; }
.vr-example { display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.vp-col { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 168px; }
.vp-col > span { font-size: 11.5px; color: var(--text-2); }
.vp-photo { width: 100%; height: 132px; border-radius: 12px; display: grid; place-items: center; font-size: 38px; background: linear-gradient(150deg, #d8e6f3, #eef4f9); }
.vp-photo.dark { background: linear-gradient(150deg, #3a3f47, #5a5f67); color: #fff; font-size: 30px; }
.vp-quote { width: 100%; height: 132px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; color: var(--text-2); line-height: 1.8; padding: 0 16px; text-align: center; }
.vp-arrow { align-self: center; color: #f97316; font-size: 20px; margin-top: -34px; }
.vp-cta { margin-top: 22px; height: 36px; padding: 0 30px; border-radius: 999px; background: #17181c; color: #fff; font-size: 13px; font-weight: 700; transition: .15s; }
.vp-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.vr-steps3 { display: flex; justify-content: center; gap: 30px; }
.vstep { width: 130px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vstep em { font-style: normal; font-size: 15px; font-weight: 900; }
.vstep b { font-size: 12px; font-weight: 700; }
.vs-ph { width: 96px; height: 118px; border-radius: 10px; background: linear-gradient(150deg, #d8e6f3, #eef4f9); display: grid; place-items: center; font-size: 32px; position: relative; }
.vs-ph.sel::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 10px; display: grid; place-items: center; }
.vr-more { display: block; margin: 18px 0 10px; font-size: 11.5px; color: var(--text-2); cursor: pointer; }
.vr-more:hover { color: var(--primary-deep); }
.vs-strip { display: flex; justify-content: center; gap: 8px; }
.vs-strip i { width: 54px; height: 66px; border-radius: 8px; background: linear-gradient(150deg, #dbe7f2, #edf3f8); }
.vr-pills { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.vr-pill { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 16px; display: inline-flex; align-items: center; gap: 5px; cursor: default; }
.vr-multi { display: flex; align-items: center; justify-content: center; gap: 16px; }
.vm-grid4 { display: grid; grid-template-columns: repeat(2, 86px); gap: 8px; }
.vm-grid4 .gph { width: 86px; height: 106px; border-radius: 9px; background: linear-gradient(150deg, #d8e6f3, #edf3f8); display: grid; place-items: center; font-size: 26px; position: relative; }
.vm-grid4 .gph em { position: absolute; bottom: 5px; left: 5px; right: 5px; background: rgba(20,22,26,.78); color: #fff; font-size: 9.5px; font-style: normal; border-radius: 6px; padding: 3px 6px; line-height: 1.4; text-align: center; }
.vr-final { width: 132px; height: 172px; border-radius: 12px; background: linear-gradient(150deg, #3a3f47, #5a5f67); display: grid; place-items: center; color: #fff; font-size: 34px; }
.vr-mcaps { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11.5px; color: var(--text-2); }
.vr-mcaps .hl { color: var(--primary-deep); font-weight: 700; }

/* ================= 视频页严格复刻（覆盖前版） ================= */
/* 左栏顶部：模式标题 + 描述 */
.vm-head2 { margin: 2px 0 14px; }
.vm-head2 b { font-size: 16px; font-weight: 800; display: block; letter-spacing: .3px; }
.vm-head2 span { font-size: 11.5px; color: var(--text-2); display: block; margin-top: 4px; }
/* 上传框：圆形图标 + 大框 */
.v-upload { padding: 20px 10px 16px; gap: 3px; }
.vu-ic { width: 38px; height: 38px; border-radius: 50%; background: #edf0f5; display: grid; place-items: center; margin: 0 auto 6px; font-size: 16px; }
.vu-ic svg { width: 16px; height: 16px; stroke: #6b7280; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-upload b { font-size: 12.5px; }
.vu-fmt { font-size: 10px !important; color: #b0b7c6; letter-spacing: .5px; }
/* 表单小标题带图标 */
.dl-sub2 { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.dl-sub2 svg { width: 12px; height: 12px; stroke: #8a93a8; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* 右侧：头部行 + 居中大标题 + 白色内卡 + 底部胶囊 */
.vr2-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; padding: 2px 2px 4px; }
.vr2-head span::before { content: "• "; color: #17181c; }
.vr2-head a { font-size: 12px; color: var(--text-2); font-weight: 400; }
.vr2-head a:hover { color: var(--primary-deep); }
.vr2-hero { text-align: center; padding: 30px 0 24px; }
.vr2-tag { display: inline-block; font-size: 11px; color: #8a93a8; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 16px; }
.vr2-hero h2 { font-size: 27px; font-weight: 900; letter-spacing: 1px; margin: 14px 0 9px; }
.vr2-hero p { font-size: 12.5px; color: var(--text-2); }
.vr2-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 30px 28px; }
.vr2-card-title { text-align: center; font-size: 15px; font-weight: 800; margin-bottom: 26px; }
.vr2-foot { display: flex; justify-content: center; gap: 10px; padding: 22px 0 6px; }
.vr2-pill { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 5px; cursor: default; }
/* 多图成片：双图组 + 分隔线 + 大图 */
.mx-flow { display: flex; align-items: flex-start; justify-content: center; gap: 18px; }
.mx-block { display: flex; flex-direction: column; align-items: center; }
.mx-grid { display: grid; grid-template-columns: repeat(2, 96px); gap: 8px; }
.mx-ph { width: 96px; height: 120px; border-radius: 10px; background: linear-gradient(155deg, #d9e7f3, #edf3f8); display: grid; place-items: center; font-size: 26px; }
.mx-ph.dark { background: linear-gradient(155deg, #55606e, #333a44); }
.mx-chip { color: #fff; font-size: 10px; background: rgba(22, 24, 28, .78); border-radius: 8px; padding: 6px 7px; line-height: 1.5; text-align: center; width: 84%; position: relative; }
.mx-chip em { position: absolute; top: 4px; left: 6px; font-style: normal; font-size: 9px; opacity: .75; }
.mx-divider { width: 2.5px; height: 150px; border-radius: 3px; background: linear-gradient(180deg, #f472b6, #a78bfa); align-self: center; }
.mx-final { width: 134px; height: 248px; border-radius: 12px; background: linear-gradient(155deg, #d9e7f3, #c2d6e8); display: grid; place-items: center; font-size: 34px; }
.mx-caps { margin-top: 12px; font-size: 12px; color: var(--text-2); }
.mx-caps .hl { color: #8b5cf6; font-weight: 700; }

/* 爆款视频参考图校准 */
.v-upload.slim { width: 160px; padding: 16px 10px 12px; margin: 0 auto; border-radius: 14px; background: #f7f8fa; }
.v-upload.slim .vu-ic { width: 34px; height: 34px; }
.vr2-card { max-width: 680px; margin: 0 auto; }
.vr2-hero { padding: 34px 0 26px; }
.vf-img, .vf-box, .vf-video { height: 168px; }
.vf-video { position: relative; }
.vf-video::after { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.28); border: 2px solid rgba(255,255,255,.85); }

/* ================= 视频页 1:1 复刻点图 AI（官方设计变量） ================= */
.vw { --line:#e5e5e8; --line-strong:#cdcdd2; --ink:#18191a; --ink-2:#56565c; --ink-f:#919197; --subtle:#fafafb; --muted:#f3f3f5;
  display:grid; grid-template-columns:154px 392px minmax(0,1fr); grid-template-rows:minmax(0,1fr); margin:14px 16px; height:calc(100% - 28px); min-height:520px;
  border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 2px 10px rgba(15,15,17,.035); }
/* 导航栏 */
.vw-nav { display:flex; flex-direction:column; gap:5px; border-right:1px solid var(--line); padding:14px 9px; background:var(--subtle); overflow-y:auto; scrollbar-width:thin; }
.vw-nav-title { display:flex; align-items:center; gap:9px; margin:0 5px 7px; padding-bottom:10px; border-bottom:1px solid var(--line); color:var(--ink); font-size:13px; font-weight:800; }
.vw-nav-title svg { width:17px; height:17px; }
.vw-nav > button { position:relative; display:grid; grid-template-columns:28px minmax(0,1fr) 14px; align-items:center; gap:7px; min-height:64px;
  border:1px solid transparent; border-radius:11px; padding:9px 7px; color:var(--ink-2); background:transparent; text-align:left; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-nav > button:hover { color:var(--ink); background:var(--muted); }
.vw-nav > button[data-active="true"] { border-color:var(--line); color:var(--ink); background:#fff; box-shadow:0 4px 12px rgba(15,15,17,.055); }
.vw-nav > button[data-active="true"]::before { content:""; position:absolute; left:-1px; width:3px; height:24px; border-radius:0 4px 4px 0; background:var(--ink); }
.vw-nav > button > svg:first-child { width:17px; height:17px; justify-self:center; }
.vm-txt b { display:block; font-size:12px; font-weight:700; }
.vm-txt small { display:block; margin-top:2px; font-size:9px; color:var(--ink-f); }
.vm-chev { width:12px; height:12px; opacity:0; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-nav > button[data-active="true"] .vm-chev { opacity:.65; transform:translateX(1px); }
/* 中栏表单 */
.vw-panel { display:flex; min-width:0; flex-direction:column; border-right:1px solid var(--line); background:#fff; }
.vw-scroll { min-height:0; flex:1; overflow-x:hidden; overflow-y:auto; padding:17px 18px 24px; scrollbar-width:thin; }
.vw-st { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:19px 0 9px; }
.vw-st:first-child { margin-top:0; }
.vw-st strong { color:var(--ink); font-size:12px; font-weight:750; }
.vw-st span { color:var(--ink-f); font-size:9px; }
.vw-ugrid { display:grid; grid-template-columns:repeat(auto-fill,112px); justify-content:start; gap:8px; }
.vw-cell { position:relative; min-width:0; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px;
  border:1px dashed var(--line-strong); border-radius:10px; background:var(--subtle); color:var(--ink-f); transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-cell:hover { border-color:var(--ink-2); color:var(--ink); background:var(--muted); }
.vw-cell svg { width:16px; height:16px; }
.vw-cell strong { color:var(--ink-2); font-size:10px; }
.vw-cell small { font-size:8px; }
.vw-cell.has-img { border-style:solid; border-color:var(--line); overflow:hidden; cursor:zoom-in; background:#f3f3f4; }
.vw-cell.has-img:hover { border-color:var(--primary); box-shadow:0 4px 14px rgba(37,99,235,.18); }
.vw-cell.has-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.vw-cell.has-img b { position:absolute; left:5px; top:5px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:rgba(15,15,17,.62); color:#fff; font-size:9.5px; font-weight:700; line-height:16px; text-align:center; }
.vw-cell.has-img button { position:absolute; top:4px; right:4px; width:18px; height:18px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:12px; display:grid; place-items:center; z-index:2; }
.vw-cell.has-img button:hover { background:#dc2626; }
/* 大图预览 */
.vw-pv { position:fixed; inset:0; z-index:1500; display:grid; place-items:center; padding:48px; background:rgba(15,15,17,.72); backdrop-filter:blur(3px); animation:vw-pv-in .18s ease; }
@keyframes vw-pv-in { from { opacity:0 } }
.vw-pv img { max-width:min(88vw,1100px); max-height:84vh; border-radius:14px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.45); cursor:default; }
.vw-pv-x { position:absolute; top:22px; right:26px; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:20px; display:grid; place-items:center; transition:.15s; }
.vw-pv-x:hover { background:rgba(255,255,255,.3); }
.vw-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.vw-select { width:100%; height:38px; border:1px solid var(--line); border-radius:9px; outline:0; padding:0 10px; color:var(--ink); background:var(--subtle); font-size:11px; }
.vw-lab { margin:13px 0 7px; }
.vw-lab > span { display:flex; align-items:center; gap:6px; color:var(--ink-2); font-size:10px; font-weight:650; }
.vw-og { margin-top:13px; }
.vw-og > span { display:flex; align-items:center; gap:6px; color:var(--ink-2); font-size:10px; font-weight:650; }
.vw-og > span svg { width:12px; height:12px; }
.vw-og > div { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.vw-og button { min-width:54px; height:30px; border:1px solid var(--line); border-radius:8px; padding:0 9px; color:var(--ink-f); background:var(--subtle); font-size:10px; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
.vw-og button:hover { color:var(--ink); border-color:var(--line-strong); }
.vw-og button[data-active="true"] { border-color:#18191c; background:#18191c; color:#fff; }
.vw-prompt { display:block; width:100%; min-height:106px; resize:vertical; border:1px solid var(--line); border-radius:10px; outline:0; padding:11px 12px;
  color:var(--ink); background:var(--subtle); font-size:13px; line-height:20px; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-prompt:focus { border-color:var(--ink-2); background:#fff; box-shadow:0 0 0 3px rgba(24,25,28,.06); }
.vw-presets { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.vw-presets button { height:25px; border:1px solid var(--line); border-radius:6px; padding:0 8px; color:var(--ink-2); background:var(--subtle); font-size:9px; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
.vw-presets button:hover { border-color:var(--line-strong); color:var(--ink); background:var(--muted); }
.vw-toggle { display:flex; align-items:center; justify-content:space-between; height:45px; margin-top:10px; border-top:1px solid var(--line); color:var(--ink-2); font-size:12px; cursor:pointer; }
.vw-toggle > span { display:flex; align-items:center; gap:7px; }
.vw-toggle svg { width:14px; height:14px; }
.vw-toggle input { display:none; }
.vw-toggle i { position:relative; width:32px; height:18px; border-radius:999px; background:var(--line-strong); transition:background-color .18s ease; }
.vw-toggle i::after { content:""; position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,15,17,.2); transition:transform .18s ease; }
.vw-toggle input:checked + i { background:#18191c; }
.vw-toggle input:checked + i::after { transform:translateX(14px); }
.vw-neg { margin-top:7px; border-top:1px solid var(--line); padding-top:11px; }
.vw-neg-head { display:flex; align-items:center; justify-content:space-between; color:var(--ink-2); font-size:11px; cursor:pointer; }
.vw-neg-head em { font-style:normal; color:var(--ink-f); }
.vw-tpl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.vw-tpl button { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:9px; padding:0; background:var(--subtle); transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-tpl button:hover { transform:translateY(-1px); border-color:var(--line-strong); }
.vw-tpl button img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; }
.vw-tpl button > span { display:flex; align-items:center; gap:4px; padding:7px 6px; color:var(--ink-2); font-size:9px; }
.vw-tpl button > i { position:absolute; top:5px; right:5px; display:none; width:19px; height:19px; align-items:center; justify-content:center; border-radius:50%; color:#fff; background:#111113; font-size:10px; font-style:normal; }
.vw-tpl button[data-active="true"] { border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.vw-tpl button[data-active="true"] > i { display:flex; }
.vw-rvideo { display:flex; width:100%; align-items:center; gap:11px; border:1px solid var(--line); border-radius:10px; padding:11px 12px; color:var(--ink-2); background:var(--subtle); text-align:left; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.vw-rvideo:hover { border-color:var(--line-strong); background:var(--muted); }
.vw-rvideo .vr-ic svg { width:18px; height:18px; }
.vw-rvideo strong { display:block; color:var(--ink); font-size:11px; }
.vw-rvideo small { display:block; margin-top:3px; color:var(--ink-f); font-size:9px; }
.vw-submit { flex:0 0 auto; border-top:1px solid var(--line); padding:11px 14px 13px; background:#fff; }
.vw-submit button { display:flex; width:100%; height:44px; align-items:center; justify-content:center; gap:8px; border-radius:10px; background:#18191c; color:#fff; font-size:13px; font-weight:700; transition:background-color .16s ease; }
.vw-submit button:hover:not(:disabled) { background:rgba(24,25,28,.86); }
.vw-submit button:disabled { opacity:.55; cursor:not-allowed; }
.go-spk { font-size:14px; }
.vw-submit i { width:1px; height:14px; background:rgba(255,255,255,.28); }
.vw-submit em { font-style:normal; display:inline-flex; align-items:center; gap:3px; font-size:12px; }
/* 右侧预览 */
.vw-preview { display:flex; min-width:0; min-height:0; flex-direction:column; background:#f5f5f7; overflow-y:auto; scrollbar-width:thin; }
.vw-head { display:flex; height:55px; flex:0 0 auto; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:0 19px; color:var(--ink-f); background:rgba(255,255,255,.76); font-size:11px; }
.vw-head > span { display:flex; align-items:center; gap:7px; color:var(--ink); font-weight:750; }
.vw-head > span::before { content:""; width:6px; height:6px; border-radius:50%; background:#18191c; }
.vw-head a { color:var(--ink-f); font-size:11px; }
.vw-head a:hover { color:var(--ink); }
.vw-stage { display:flex; flex:1; align-items:center; justify-content:center; flex-direction:column; min-height:0; padding:clamp(40px,6vh,92px) 38px 32px;
  background:radial-gradient(circle at 50% 36%,rgba(255,255,255,.98) 0,rgba(255,255,255,.66) 42%,transparent 72%),radial-gradient(circle,rgba(100,181,230,.15) 1px,transparent 1.2px),#f8f8fa;
  background-position:50%,top,50%; background-size:auto,16px 16px,auto; }
.vw-copy { max-width:650px; margin-bottom:26px; text-align:center; }
.vw-copy small { display:inline-flex; border:1px solid #e0e1e4; border-radius:7px; padding:5px 9px; background:rgba(255,255,255,.86); color:var(--ink-f); font-size:10px; }
.vw-copy h2 { margin-top:0; color:var(--ink); font-size:clamp(27px,2.2vw,34px); font-weight:800; line-height:1.2; letter-spacing:-.035em; }
.vw-copy p { margin-top:9px; color:#6d6f75; font-size:13.5px; line-height:22px; }
.vw-ref { display:block; width:min(100%,780px); max-height:500px; object-fit:contain; border-radius:9px; margin-inline:auto; }
.vw-hotflow { display:grid; width:min(100%,790px); margin-inline:auto; grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr); align-items:start;
  border:1px solid #e1e2e5; border-radius:14px; padding:16px; background:rgba(255,255,255,.94); box-shadow:0 14px 36px rgba(17,18,20,.07); }
.vw-hotflow > i { position:relative; height:1px; background:#d7d8db; }
.vw-hotflow > i::after { content:""; position:absolute; top:-3px; right:0; width:7px; height:7px; border-top:1px solid var(--ink-f); border-right:1px solid var(--ink-f); transform:rotate(45deg); }
.vw-pcard > div { position:relative; display:flex; aspect-ratio:4/5; overflow:hidden; align-items:center; justify-content:center; border-radius:10px; background:#f3f3f4; }
.vw-pcard img { width:100%; height:100%; object-fit:cover; }
.vw-pcard p { padding:16px; color:var(--ink-2); font-size:12px; line-height:20px; text-align:center; }
.vw-pcard > div > span { position:absolute; display:flex; width:38px; height:38px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.7); border-radius:50%; color:#fff; background:rgba(15,15,17,.64); backdrop-filter:blur(7px); font-size:13px; }
.vw-pcard > strong { display:block; margin-top:10px; color:var(--ink-2); font-size:11px; font-weight:650; text-align:center; }
.vw-loading { display:flex; width:min(100%,680px); min-height:360px; margin-inline:auto; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px solid var(--line); border-radius:14px; color:var(--ink-f); background:rgba(255,255,255,.76); }
.vw-loading b { color:var(--ink); font-size:14px; }
.vw-loading span { font-size:12px; }
.vw-loading.fail b { color:#dc2626; }
@media (max-width: 1250px) { .vw { grid-template-columns:126px 370px minmax(0,1fr); } }
@media (max-width: 1080px) { .vw { grid-template-columns:110px minmax(0,1fr); height:auto; min-height:520px; } .vw-preview { grid-column:1/-1; border-top:1px solid var(--line); } }

/* ==========================================================================
   AI 绘图页 1:1 复刻点图 AI /generate/create
   设计变量、尺寸、间距全部取自其线上 CSS 的 :root 与 Tailwind 编译结果
   ========================================================================== */
.gwork {
  --gw-page: #f7f7f8;
  --gw-panel: #ffffff;
  --gw-line: #e2e2e4;
  --gw-line-soft: rgba(226, 226, 228, .46);
  --gw-ink: #18181a;
  --gw-ink-2: #56565c;
  --gw-ink-f: #919197;
  --gw-b50: #f5f5f6;
  --gw-b100: #ebebed;
  --gw-b200: #d7d8db;
  --gw-b300: #b8b9be;
  --gw-b400: #707279;
  --gw-b500: #18191c;
  --gw-b600: #101113;
  --gw-b700: #0a0a0b;
  --gw-chip-shadow: 0 5px 16px rgba(15, 15, 17, .16);
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 10px 14px 48px;
  background: var(--gw-page);
}
/* 页面顶部装饰：蓝/黄光晕 + 点阵（对应官方 .site-page-main:before） */
.gwork::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 340px;
  pointer-events: none;
  opacity: .82;
  background:
    linear-gradient(to bottom, rgba(247, 247, 248, 0) 0, rgba(247, 247, 248, 0) 68%, #f7f7f8 100%),
    radial-gradient(ellipse 48% 74% at 8% 22%, rgba(181, 235, 255, .34), transparent 73%),
    radial-gradient(ellipse 44% 72% at 91% 18%, rgba(255, 241, 166, .3), transparent 76%),
    radial-gradient(circle, rgba(77, 188, 255, .34) 1px, transparent 1.2px);
  background-position: top;
  background-size: auto, auto, auto, 16px 16px;
}
@media (min-width: 640px) { .gwork { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 768px) { .gwork { padding: 12px 28px 48px; } }
@media (min-width: 1280px) { .gwork { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1536px) { .gwork { padding-left: 40px; padding-right: 40px; } }

.generate-workbench-page > * + * { margin-top: 20px; }
.gwork .mt1 { margin-top: 4px; }
.gwork .mt2 { margin-top: 8px; }
.gwork .mt3 { margin-top: 12px; }
.gwork .sp3 > * + * { margin-top: 12px; }

.generate-workbench-grid { display: grid; align-items: start; gap: 16px; }
@media (min-width: 1024px) { .generate-workbench-grid { grid-template-columns: minmax(360px, .92fr) minmax(0, 1.45fr); } }
@media (min-width: 1280px) { .generate-workbench-grid { grid-template-columns: minmax(400px, 1fr) minmax(0, 2fr); } }

/* 旧版生成外壳样式已并入 home.css */

/* ---------- 表单元素 ---------- */
.gw-hint { color: var(--gw-ink-f); font-size: 12px; }
.gw-textarea {
  display: block; width: 100%; resize: vertical; outline: none;
  border: 1px solid var(--gw-line); border-radius: 12px;
  background: rgba(247, 247, 248, .6); padding: 10px 14px;
  color: var(--gw-ink); font-size: 14px; line-height: 24px;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.gw-textarea::placeholder { color: var(--gw-ink-f); }
.gw-textarea:focus { border-color: var(--gw-b400); background: #fff; box-shadow: 0 0 0 2px #ebebed; }

.gw-libbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--gw-b200); border-radius: 12px; background: var(--gw-b50);
  padding: 10px 16px; color: var(--gw-b700); font-size: 14px; font-weight: 700;
  transition: border-color .18s, background-color .18s;
}
.gw-libbtn svg { width: 17px; height: 17px; }
.gw-libbtn:hover { border-color: var(--gw-b300); background: var(--gw-b100); }

.gw-drop {
  border: 1px dashed var(--gw-line); border-radius: 12px;
  background: rgba(247, 247, 248, .6); padding: 24px 16px;
  transition: border-color .18s, background-color .18s; cursor: pointer;
}
.gw-drop.drag { border-color: var(--gw-b400); background: rgba(235, 235, 237, .6); }
.gw-drop.is-full { opacity: .55; cursor: not-allowed; }
.gw-dropbtn { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gw-dropbtn svg { width: 22px; height: 22px; color: var(--gw-b400); }
.gw-drop-t { color: var(--gw-ink-2); font-size: 14px; font-weight: 600; }

/* ---------- 第十一批：画面描述紧凑参考图条（+号添加 / 拖拽 / 粘贴） ---------- */
.gw-prompt-wrap {
  border: 1px solid var(--gw-line); border-radius: 12px; background: rgba(247, 247, 248, .6);
  transition: border-color .18s, background-color .18s, box-shadow .18s; overflow: hidden;
}
.gw-prompt-wrap:focus-within { border-color: var(--gw-b400); background: #fff; box-shadow: 0 0 0 2px #ebebed; }
.gw-prompt-wrap.drag { border-color: var(--gw-b400); background: rgba(219, 234, 254, .45); }
.gw-prompt-wrap .gw-textarea { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.gw-prompt-wrap .gw-textarea:focus { border: 0; background: transparent; box-shadow: none; }
.gw-prompt-bar { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-top: 1px dashed var(--gw-line); background: rgba(255, 255, 255, .65); }
.gw-ref-add {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 9px;
  border: 1.5px dashed var(--gw-b300); background: #fff; color: var(--gw-b400);
  font-size: 21px; line-height: 1; display: grid; place-items: center;
  transition: border-color .15s, color .15s, background-color .15s; font-family: inherit;
}
.gw-ref-add:hover { border-color: var(--gw-b500); color: var(--gw-b500); background: var(--gw-b50); }
.gw-ref-add.is-full { opacity: .4; pointer-events: none; }
.gw-ref-strip { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gw-ref-strip:empty { display: none; }
.gw-chip { position: relative; width: 42px; height: 42px; flex: 0 0 auto; }
.gw-chip img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; border: 1px solid var(--gw-line); display: block; }
.gw-chip.main img { border-color: var(--gw-b400); box-shadow: 0 0 0 2px rgba(59, 130, 246, .18); }
.gw-chip-tag {
  position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 9px; line-height: 1;
  padding: 2px 3px; border-radius: 4px; background: rgba(37, 99, 235, .88); color: #fff; font-weight: 700; pointer-events: none;
}
.gw-chip .gw-chip-x {
  position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border-radius: 50%;
  background: #1c1d21; color: #fff; display: grid; place-items: center; border: 1.5px solid #fff; padding: 0;
}
.gw-chip .gw-chip-x svg { width: 8px; height: 8px; stroke-width: 2.6; }
.gw-chip .gw-chip-x:hover { background: #dc2626; }
.gw-prompt-hint { font-size: 11px; color: var(--gw-ink-f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-libbtn-sm { height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 5px; flex: 0 0 auto; }
.gw-libbtn-sm svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .gw-prompt-hint { display: none; } }

/* 业务模型下拉（替代原卡片网格，节省纵向空间；注意：select 固定高度时不可加上下 padding，否则 Chromium 中文缺笔画） */
.gw-empty-box { margin-top: 8px; border: 1px dashed var(--gw-line); border-radius: 12px; background: rgba(247, 247, 248, .6); padding: 12px 14px; color: var(--gw-ink-f); font-size: 14px; }

/* ---------- 左栏「AI制图配置」卡片（参考云海豚生图页 UI） ---------- */
.gw2-card {
  border: 1px solid var(--gw-line-soft); border-radius: 16px; background: var(--gw-panel);
  padding: 20px; box-shadow: 0 8px 24px rgba(20, 24, 28, .045);
}
.gw2-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--gw-ink); font-size: 17px; font-weight: 750; letter-spacing: -.012em; }
.gw2-title svg { width: 18px; height: 18px; color: var(--gw-b500); }
.gw2-sec + .gw2-sec { margin-top: 20px; }
.gw2-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gw2-row > div { min-width: 0; }
.gw2-label { color: var(--gw-ink-2); font-size: 13px; font-weight: 700; }
.gw2-sub { color: var(--gw-ink-f); font-size: 12px; }
.gw2-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gw2-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: none; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700;
  transition: filter .18s; cursor: pointer;
}
.gw2-tool svg { width: 13px; height: 13px; }
.gw2-tool:hover { filter: brightness(.95); }
.gw2-tool.t-amber { background: #fff7e6; color: #b45309; }
.gw2-tool.t-green { background: #ecfdf5; color: #059669; }
.gw2-tool.t-gray { background: #f3f4f6; color: #6b7280; }

/* 模型卡片网格：默认只显示前 4 个，其余折叠 */
.gw2-models { display: grid; gap: 10px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .gw2-models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gw2-model {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; min-width: 0;
  border: 2px solid var(--gw-line); border-radius: 12px; background: #fff; padding: 10px 12px;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.gw2-model:hover { border-color: var(--gw-b300); }
.gw2-model.on { border-color: #3b82f6; background: rgba(59, 130, 246, .06); box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.gw2-model-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--gw-ink); font-size: 13px; }
.gw2-model-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw2-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.gw2-dot.bad { background: #d1d5db; }
.gw2-tag { flex-shrink: 0; border-radius: 5px; padding: 1px 5px; background: rgba(16, 185, 129, .12); color: #059669; font-size: 10px; font-weight: 700; }
.gw2-model-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.gw2-model-foot em { color: #3b82f6; font-size: 14px; font-weight: 800; font-style: normal; font-variant-numeric: tabular-nums; }
.gw2-model-foot span { color: var(--gw-ink-f); font-size: 11px; }
.gw2-models.collapsed .gw2-model:nth-child(n+5) { display: none; }
.gw2-mtoggle {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 10px;
  border: 2px dashed var(--gw-line); border-radius: 10px; background: #fff; padding: 8px;
  color: var(--gw-ink-2); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .18s, color .18s;
}
.gw2-mtoggle svg { width: 14px; height: 14px; transition: transform .2s; }
.gw2-mtoggle:hover { border-color: var(--gw-b300); color: var(--gw-ink); }
.gw2-models:not(.collapsed) + .gw2-mtoggle svg { transform: rotate(180deg); }

/* 两行式选项：比例 / 画质 / 数量 */
.gw2-sizes, .gw2-quals, .gw2-nums { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .gw2-sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gw2-quals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gw2-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gw2-size, .gw2-num {
  display: flex; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--gw-line); border-radius: 10px; background: #fff; padding: 8px 4px;
  color: var(--gw-ink); cursor: pointer; text-align: center;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
.gw2-size b, .gw2-num b { font-size: 13px; font-weight: 750; }
.gw2-size span, .gw2-num span { color: var(--gw-ink-f); font-size: 11px; }
.gw2-size:hover, .gw2-num:hover { border-color: var(--gw-b300); }
.gw2-size.on, .gw2-num.on { border-color: #3b82f6; background: rgba(59, 130, 246, .06); box-shadow: 0 0 0 2px rgba(59, 130, 246, .08); }
.gw2-size.on span, .gw2-num.on span { color: #3b82f6; font-weight: 700; }
.gw2-tip { margin-top: 8px; color: var(--gw-ink-f); font-size: 12px; }

/* 立即生成按钮 */
.gw2-go {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 24px;
  border: none; border-radius: 12px; background: linear-gradient(100deg, #2563eb 0%, #38bdf8 100%);
  padding: 13px 16px; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
  transition: filter .18s, opacity .18s;
}
.gw2-go svg { width: 17px; height: 17px; }
.gw2-go:hover:not(:disabled) { filter: brightness(1.06); }
.gw2-go:disabled { opacity: .55; cursor: not-allowed; }

/* 生图页双栏：参考云海豚左右等宽布局 */
@media (min-width: 1024px) { .gwork .generate-workbench-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

/* 双栏各自独立滚动：整页锁定视口高度，左右两列分别出滚轮 */
@media (min-width: 1024px) {
  .gwork { height: calc(100vh - 60px); display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
  .gwork .generate-workbench-grid { flex: 1; min-height: 0; align-items: stretch; }
  .gwork .generate-workbench-grid > section,
  .gwork .generate-workbench-grid > aside {
    overflow-y: auto; max-height: 100%;
    scrollbar-width: thin; overscroll-behavior: contain;
    padding-right: 2px;
  }
  .gwork .generate-workbench-grid > section { align-self: start; }
}

/* 工具条扩展：翻译 / 反推关键词 */
.gw2-tool.t-sky { background: #f0f9ff; color: #0284c7; }
.gw2-tool.t-purple { background: #faf5ff; color: #9333ea; }
.gw2-tool.busy { opacity: .55; pointer-events: none; }
.gw2-tool:disabled { cursor: wait; }

/* 右栏：结果预览 + 任务进度并列（缩小版） */
.gw2-rrow { display: grid; gap: 16px; }
@media (min-width: 1200px) { .gw2-rrow { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.gw2-sm .gw-steps-wrap { margin-top: 12px; }
.gw2-progress-info { margin-top: 14px; border-top: 1px dashed var(--gw-line); padding-top: 12px; }
.gw2-sm .gw-empty-result { min-height: 300px; padding: 24px 14px; }
@media (min-width: 1024px) { .gw2-sm .gw-empty-result { min-height: 340px; } }
.gw2-sm .gw-loading { min-height: 300px; padding: 20px; }
@media (min-width: 1024px) { .gw2-sm .gw-loading { min-height: 340px; } }
.gw2-sm .gw-loading-ico { height: 52px; width: 52px; }
.gw2-sm .gw-loading-t { margin-top: 12px; font-size: 14px; }
/* 结果预览缩小后图片两列 */
.gw2-rrow .gw-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gw2-rrow .gw-img { border-radius: 10px; }

/* 历史生成记录 */
.gw2-hist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .gw2-hist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .gw2-hist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gw2-hist-item {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden;
  border: 1px solid var(--gw-line-soft); border-radius: 12px; background: #fff; text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
a.gw2-hist-item:hover { transform: translateY(-2px); border-color: var(--gw-b300); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.gw2-hist-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--gw-b50); }
.gw2-hist-p { overflow: hidden; padding: 0 10px; color: var(--gw-ink-2); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gw2-hist-t { padding: 0 10px 8px; color: var(--gw-ink-f); font-size: 11px; }
.gw2-hist-st { display: flex; height: 84px; align-items: center; justify-content: center; background: var(--gw-b50); color: var(--gw-ink-f); font-size: 12px; font-weight: 700; }
.gw2-hist-item.is-failed .gw2-hist-st { background: #fff1f2; color: #f43f5e; }
.gw2-hist-item.is-failed .gw2-hist-p { color: #f43f5e; }
.gw2-hist-more { margin-top: 12px; text-align: center; color: var(--gw-ink-f); font-size: 12px; }

/* 左栏参考图卡片组 */
.gw-refgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .gw-refgrid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gw-ref-card { position: relative; overflow: hidden; border: 1px solid var(--gw-line-soft); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .045); }
.gw-ref-card img { display: block; height: 96px; width: 100%; object-fit: cover; }
.gw-ref-tag { position: absolute; left: 6px; top: 6px; border-radius: 6px; padding: 4px 6px; background: rgba(15, 23, 42, .65); color: #fff; font-size: 10px; font-weight: 700; backdrop-filter: blur(6px); }
.gw-ref-tag.main { background: var(--gw-b500); }
.gw-ref-del { position: absolute; right: 6px; top: 6px; display: flex; height: 24px; width: 24px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; transition: background-color .18s; }
.gw-ref-del svg { width: 12px; height: 12px; }
.gw-ref-del:hover { background: rgba(15, 23, 42, .92); }
.gw-ref-meta { padding: 8px 10px; }
.gw-ref-meta p:first-child { overflow: hidden; color: var(--gw-ink-2); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gw-ref-meta p:last-child { margin-top: 2px; overflow: hidden; color: var(--gw-ink-f); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 右栏卡片 ---------- */
.generate-workbench-results { display: block; min-width: 0; }
.generate-workbench-results > * + * { margin-top: 20px; }
.gw-card {
  border: 1px solid var(--gw-line-soft); border-radius: 16px; background: var(--gw-panel);
  padding: 20px; box-shadow: 0 8px 24px rgba(20, 24, 28, .045);
}
.gw-card > * + * { margin-top: 16px; }
.gw-card h2 { color: var(--gw-ink); font-size: 17px; font-weight: 700; letter-spacing: -.012em; }
.gw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.gw-processing { color: var(--gw-b600); font-size: 12px; font-weight: 600; }
.generate-workbench-result-card { border-radius: 18px; }
@media (max-width: 639px) { .generate-workbench-result-card { border-radius: 14px; } }
.gw-result-body > div { border-color: #e0e1e4; border-radius: 12px; background: #fafafa; }

.gw-empty-result {
  display: flex; min-height: 560px; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 1px dashed var(--gw-line); padding: 40px 16px; text-align: center;
}
@media (min-width: 1024px) { .gw-empty-result { min-height: 640px; } }
.gw-empty-result svg { width: 26px; height: 26px; color: var(--gw-b400); }
.gw-empty-result.gw-fail svg { color: #f43f5e; }
.gw-er-t { color: var(--gw-ink-2); font-size: 14px; font-weight: 600; }
.gw-er-s { max-width: 15rem; color: var(--gw-ink-f); font-size: 12px; line-height: 20px; }

.gw-loading { position: relative; display: flex; min-height: 560px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--gw-line); padding: 32px; text-align: center; }
@media (min-width: 1024px) { .gw-loading { min-height: 640px; } }
.gw-loading-glow { position: absolute; inset: 40px; border-radius: 28px; background: rgba(235, 235, 237, .7); filter: blur(40px); animation: gw-pulse 1.8s ease-in-out infinite; }
.gw-loading-in { position: relative; z-index: 1; max-width: 24rem; }
.gw-loading-ico { display: flex; height: 64px; width: 64px; margin: 0 auto; align-items: center; justify-content: center; border-radius: 16px; background: rgba(24, 25, 28, .1); color: var(--gw-b500); }
.gw-loading-ico svg { width: 28px; height: 28px; animation: gw-spin 1.1s linear infinite; }
.gw-loading-t { margin-top: 20px; color: var(--gw-ink); font-size: 16px; font-weight: 700; }
.gw-loading-s { margin-top: 8px; color: var(--gw-ink-2); font-size: 14px; line-height: 24px; }
.gw-loading-bar { margin: 20px auto 0; height: 8px; width: 12rem; overflow: hidden; border-radius: 999px; background: rgba(226, 226, 228, .7); }
.gw-loading-bar-in { height: 100%; border-radius: 999px; background: var(--gw-b400); transition: width .5s; }
@keyframes gw-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes gw-spin { to { transform: rotate(360deg); } }

.gw-imgs { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .gw-imgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gw-imgs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gw-img { min-width: 0; overflow: hidden; border: 1px solid var(--gw-line-soft); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .045); transition: transform .2s, border-color .2s, box-shadow .2s; }
.gw-img:hover { transform: translateY(-2px); border-color: var(--gw-b200); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.gw-img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* 结果图挂掉时优雅降级：隐藏 alt 文字、显示占位底色，避免布局错乱（第十批） */
.gw-img img, .tk-media img, .gw2-hist-item img { color: transparent; }
.gw-img-media, .tk-media { background: #f2f4f8; }

.gw-refgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gw-refgrid img { height: 96px; width: 100%; border: 1px solid var(--gw-line-soft); border-radius: 12px; object-fit: cover; }
.gwork [hidden] { display: none !important; }

.gw-pill { border-radius: 999px; padding: 4px 10px; background: var(--gw-b50); color: var(--gw-b600); font-size: 12px; font-weight: 700; }
.gw-pill.done { background: #ecfdf5; color: #059669; }
.gw-pill.fail { background: #fff1f2; color: #f43f5e; }

.gw-steps-wrap { margin-top: 20px; }
.gw-steps { display: flex; align-items: flex-start; }
.gw-step { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; }
.gw-step-line { position: absolute; right: 50%; top: 14px; height: 2px; width: 100%; transform: translateY(-50%); background: var(--gw-line); }
.gw-step-line.active { background: var(--gw-b200); }
.gw-step-line.done { background: #34d399; }
.gw-step-dot { position: relative; z-index: 10; display: flex; height: 28px; width: 28px; align-items: center; justify-content: center; border: 1px solid var(--gw-line); border-radius: 50%; background: #fff; color: var(--gw-ink-f); font-size: 12px; font-weight: 700; }
.gw-step-dot svg { width: 14px; height: 14px; }
.gw-step-dot.cur { border-color: var(--gw-b500); background: var(--gw-b500); color: #fff; box-shadow: var(--gw-chip-shadow); }
.gw-step-dot.done { border-color: #10b981; background: #10b981; color: #fff; }
.gw-step-dot.fail { border-color: #f43f5e; background: #f43f5e; color: #fff; }
.gw-step-label { margin-top: 8px; color: var(--gw-ink-f); font-size: 12px; font-weight: 600; }
.gw-step-label.cur { color: var(--gw-b600); }
.gw-step-label.done { color: #059669; }
.gw-step-label.fail { color: #f43f5e; }

.gw-dl { display: flex; flex-direction: column; gap: 10px; }
.gw-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.gw-dl dt { flex-shrink: 0; color: var(--gw-ink-f); font-weight: 500; }
.gw-dl dd { overflow: hidden; color: var(--gw-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gw-info-empty { color: var(--gw-ink-f); font-size: 14px; line-height: 24px; }

.gw-notes { display: flex; flex-direction: column; gap: 10px; }
.gw-notes > * + * { margin-top: 0; }
.gw-note { display: flex; align-items: flex-start; gap: 10px; color: var(--gw-ink-2); font-size: 14px; line-height: 24px; }
.gw-note svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.gw-note:first-child svg { color: #f59e0b; }
.gw-note:last-child svg { color: var(--gw-b400); }

/* ================= 右上角个人中心下拉（复刻参考站） ================= */
.user-menu-anchor { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; transition: .15s; }
.user-trigger:hover { background: var(--bg-soft); }
.user-trigger b { font-size: 13.5px; color: var(--text); }
.uavatar-lg { width: 30px; height: 30px; border-radius: 50%; background: #18191a; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.user-trigger .u-chevron { width: 14px; height: 14px; stroke: var(--text-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.user-trigger[aria-expanded="true"] .u-chevron { transform: rotate(180deg); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: 212px; background: #fff; border: 1px solid #efeff1; border-radius: 14px; box-shadow: 0 4px 12px rgba(20,24,28,.06), 0 16px 40px rgba(20,24,28,.14); padding: 5px; transform-origin: top right; animation: ud-in .16s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ud-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }
.ud-head { padding: 11px 12px 9px; }
.ud-head b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.ud-head span { display: block; margin-top: 2px; font-size: 12px; color: #9aa1ad; word-break: break-all; }
.ud-divider { height: 1px; background: #f0f0f2; margin: 4px 6px; }
.ud-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text); transition: background .13s; }
.ud-item:hover { background: #f5f6f8; }
.ud-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke: #6b7280; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ud-item span { flex: 1; text-align: left; }
.ud-logout { color: #e11d48; font-weight: 600; }
.ud-logout svg { stroke: #e11d48; }

/* ================= 任务中心（复刻 /history） ================= */
.tc-page { display: flex; flex-direction: column; gap: 14px; padding: 22px clamp(16px, 2.4vw, 40px) 56px; }
.tc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid #e8e8ec; border-radius: 16px; box-shadow: 0 5px 18px rgba(20,24,28,.04); }
.tc-badge { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; letter-spacing: .12em; color: #4f46e5; }
.tc-badge svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-head h1 { margin-top: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: #18181a; }
.tc-head p { margin-top: 4px; font-size: 13.5px; line-height: 24px; color: #6b7280; }
.tc-head-right { display: flex; align-items: center; gap: 12px; }
.tc-head-right > span { font-size: 12px; color: #9aa1ad; }
.tc-refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #e2e2e4; border-radius: 12px; background: #fafafb; font-size: 13.5px; font-weight: 700; color: #5c6068; transition: .18s; }
.tc-refresh svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-refresh:hover { border-color: #c7cbe8; background: #eef0ff; color: #4f46e5; }
.tc-refresh.spinning svg, .tc-media-ph .spin { animation: tc-rot 1s linear infinite; }
@keyframes tc-rot { to { transform: rotate(360deg); } }
.tc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tc-stat { padding: 14px 16px; background: #fff; border: 1px solid #e8e8ec; border-radius: 16px; box-shadow: 0 5px 18px rgba(20,24,28,.04); }
.tc-stat-top { display: flex; align-items: center; justify-content: space-between; }
.tc-stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; }
.tc-stat-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-stat strong { font-size: 21px; font-weight: 800; color: #18181a; font-variant-numeric: tabular-nums; }
.tc-stat p { margin-top: 10px; font-size: 12px; font-weight: 700; color: #5c6068; }
.tc-tone-neutral .tc-stat-icon { background: #f4f4f6; color: #5c6068; }
.tc-tone-brand .tc-stat-icon { background: #eef0ff; color: #4338ca; }
.tc-tone-success .tc-stat-icon { background: #e8f8f0; color: #047857; }
.tc-tone-danger .tc-stat-icon { background: #fdeef0; color: #e11d48; }
.tc-filter { padding: 8px; background: #fff; border: 1px solid #e8e8ec; border-radius: 16px; box-shadow: 0 5px 18px rgba(20,24,28,.04); }
.tc-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tc-filter button { min-height: 42px; padding: 9px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #5c6068; transition: .18s; }
.tc-filter button span { margin-left: 6px; font-size: 12px; color: #9aa1ad; }
.tc-filter button:hover { background: #f4f4f6; }
.tc-filter button.active { background: #18191c; color: #fff; box-shadow: 0 2px 8px rgba(24,25,28,.24); }
.tc-filter button.active span { color: rgba(255,255,255,.72); }
.tc-grid { display: grid; align-items: start; gap: 12px; }
.tc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-card { overflow: hidden; background: #fff; border: 1px solid #e8e8ec; border-radius: 16px; box-shadow: 0 5px 18px rgba(20,24,28,.04); transition: border-color .18s, box-shadow .18s; }
.tc-card:hover { border-color: #d5d7ee; box-shadow: 0 8px 24px rgba(20,24,28,.07); }
/* 第二十九批：媒体区统一 4:3（cover 裁切），卡片显示尺寸一致；任务真实比例由 meta 文案展示 */
.tc-media { position: relative; aspect-ratio: 4 / 3; background: #f4f4f6; overflow: hidden; }
/* 第十二批：cover 填满卡片去白边（与灵感大厅 mk-card 一致；contain 会在图片实际比例≠请求比例时留白边） */
.tc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-media-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; }
.tc-media-ph svg { width: 22px; height: 22px; stroke: #9aa1ad; fill: none; stroke-width: 2; stroke-linecap: round; }
.tc-media-ph b { font-size: 14px; font-weight: 800; color: #5c6068; }
.tc-media-ph span { font-size: 12px; color: #9aa1ad; line-height: 18px; }
.tc-media-ph.tc-st-failed b { color: #e11d48; }
.tc-count { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 700; }
.tc-status { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; backdrop-filter: blur(6px); }
.tc-st-queued { background: rgba(255,255,255,.92); color: #5c6068; border: 1px solid rgba(0,0,0,.06); }
.tc-st-running { background: rgba(238,240,255,.94); color: #4338ca; border: 1px solid rgba(79,70,229,.16); }
.tc-st-done { background: rgba(232,248,240,.94); color: #047857; border: 1px solid rgba(4,120,87,.14); }
.tc-st-failed { background: rgba(253,238,240,.94); color: #e11d48; border: 1px solid rgba(225,29,72,.16); }
.tc-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(20,24,28,.08); }
.tc-progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #5c6068; font-weight: 700; }
.tc-bar { margin-top: 8px; height: 7px; overflow: hidden; border-radius: 999px; background: #eceef2; }
.tc-bar i { display: block; height: 100%; border-radius: 999px; background: #18191c; transition: width .5s; }
/* 第二十二批：tasks 表并不存真实百分比，原先进度条写死 running=60%/queued=10% 与「真实任务进度」文案矛盾。
   这里改为不确定进度动画（阶段文案仍来自任务真实状态）。 */
.tc-bar-run i { width: 40%; animation: tcRun 1.2s ease-in-out infinite; }
@keyframes tcRun { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.tc-body { padding: 12px 14px 14px; }
/* 第二十九批：标题只取第一行（单行省略号）。原来是 2 行钳制，标题长短不一导致卡片高度不齐 */
.tc-prompt { display: block; font-size: 13px; font-weight: 600; line-height: 20px; color: #232529; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 11.5px; color: #9aa1ad; }
.tc-actions { display: flex; gap: 8px; margin-top: 10px; }
.tc-act { display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid #e2e2e4; border-radius: 9px; background: #fafafb; font-size: 12px; font-weight: 700; color: #5c6068; transition: .15s; }
.tc-act:hover { border-color: #c7cbe8; color: #4338ca; }
/* 第十一批：任务卡「分享到灵感」=绿色实底，「删除」=红色实底 */
.tc-actions .tc-act.tc-share { border-color: #16a34a; background: #16a34a; color: #fff; }
.tc-actions .tc-act.tc-share:hover { border-color: #15803d; background: #15803d; color: #fff; }
.tc-actions .tc-act.tc-share.is-pending { border-color: #ea8a0a; background: #fdf3e3; color: #b45309; cursor: default; }
.tc-actions .tc-act.tc-share.is-ok { border-color: #059669; background: #eefaf4; color: #047857; cursor: default; }
.tc-actions .tc-act.tc-share.is-rej { border: 0; background: #171a18; color: #fff; }
.tc-actions .tc-act.tc-act-danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.tc-actions .tc-act.tc-act-danger:hover { border-color: #b91c1c; background: #b91c1c; color: #fff; }
.tc-empty { padding: 64px 24px; text-align: center; background: #fff; border: 1px dashed #dcdce2; border-radius: 20px; }
.tc-empty svg { width: 28px; height: 28px; stroke: #a5aee8; fill: none; stroke-width: 2; stroke-linecap: round; }
.tc-empty h2 { margin-top: 14px; font-size: 17px; font-weight: 800; color: #18181a; }
.tc-empty p { margin-top: 6px; font-size: 13.5px; color: #6b7280; }
.tc-empty .btn { margin-top: 18px; }
.tc-trunc { margin-top: 14px; text-align: center; font-size: 12.5px; color: #8b93a1; }

/* ================= 灵感 / 作品大厅（复刻 /curated） ================= */
.cu-page { padding: 22px clamp(16px, 2.4vw, 40px) 64px; display: flex; flex-direction: column; gap: 20px; }
.cu-hero { position: relative; overflow: hidden; padding: 26px clamp(22px, 3vw, 40px); border: 1px solid rgba(0,0,0,.05); border-radius: 22px; background: #f5f1e9; box-shadow: 0 18px 50px rgba(54,45,31,.07); }
.cu-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 8%, rgba(232,187,117,.28), transparent 30%), radial-gradient(circle at 58% 112%, rgba(255,255,255,.75), transparent 38%); }
.cu-hero > * { position: relative; }
.cu-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); color: #765a30; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.cu-badge svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.cu-hero h1 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; letter-spacing: -.045em; color: #18181a; }
.cu-hero > p { margin-top: 12px; max-width: 640px; font-size: 14.5px; line-height: 28px; color: #55575a; }
.cu-stats { display: flex; gap: 12px; margin-top: 22px; }
.cu-stat { min-width: 118px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.cu-stat span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #8b8d90; }
.cu-stat span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.cu-stat strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 900; color: #18181a; }
.cu-stat-dark { background: #171a18; }
.cu-stat-dark span { color: rgba(255,255,255,.65); }
.cu-stat-dark strong { color: #fff; }
.cu-tabs { position: sticky; top: 8px; z-index: 20; }
.cu-tabs-inner { display: flex; gap: 8px; width: max-content; min-width: 100%; padding: 8px; border: 1px solid rgba(0,0,0,.045); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(24,28,25,.055); backdrop-filter: blur(12px); overflow-x: auto; }
.cu-tabs button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #55575a; white-space: nowrap; transition: .18s; }
.cu-tabs button span { margin-left: 8px; font-size: 11px; color: #9aa1ad; }
.cu-tabs button:hover { background: #f4f4f6; color: #18181a; }
.cu-tabs button.active { background: #1c201d; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cu-tabs button.active span { color: rgba(255,255,255,.6); }
.cu-grid { display: grid; align-items: start; gap: 14px; }
.cu-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cu-card { position: relative; overflow: hidden; border-radius: 16px; background: #f7f7f8; box-shadow: 0 0 0 1px rgba(25,29,26,.06), 0 10px 28px rgba(25,29,26,.055); transition: transform .3s, box-shadow .3s; animation: cu-in .4s both; }
@keyframes cu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cu-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(25,29,26,.12); }
.cu-imgbtn { display: block; width: 100%; cursor: zoom-in; }
.cu-imgbtn img { display: block; width: 100%; height: auto; background: #f4f4f6; transition: transform .5s ease-out; }
.cu-card:hover .cu-imgbtn img { transform: scale(1.025); }
.cu-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 45%, rgba(0,0,0,.1)); opacity: 0; transition: opacity .3s; }
.cu-card:hover .cu-overlay, .cu-card:focus-within .cu-overlay { opacity: 1; }
.cu-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cu-cat { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); color: #fff; font-size: 10px; font-weight: 700; }
.cu-eye { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.9); color: #18181a; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cu-eye svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cu-overlay h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 900; line-height: 20px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cu-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.7); }
.cu-go { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 36px; padding: 0 12px; border-radius: 12px; background: #fff; color: #18181a; font-size: 11px; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: .15s; }
.cu-go:hover { background: #eef0ff; color: #4338ca; }
.cu-go svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cu-modal { display: flex; gap: 0; width: min(880px, 92vw); max-height: 84vh; overflow: hidden; border-radius: 18px; background: #fff; }
.cu-modal-img { flex: 1.1; min-width: 0; background: #f4f4f6; }
.cu-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cu-modal-info { flex: 1; padding: 22px 22px 24px; overflow-y: auto; }
.cu-modal-info h3 { font-size: 18px; font-weight: 900; color: #18181a; }
.cu-tag { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #f1f1f4; color: #55575a; font-size: 11px; font-weight: 700; }
.cu-field { margin-top: 14px; }
.cu-field label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #9aa1ad; }
.cu-field p { margin-top: 4px; font-size: 13px; line-height: 21px; color: #33353a; background: #f9f9fb; border-radius: 10px; padding: 10px 12px; }
.cu-modal-info .btn { margin-top: 18px; width: 100%; }

/* ================= 应用（复刻 /apps 官方卡片） ================= */
.apps-page { min-height: calc(100dvh - 130px); padding: 26px 0 56px; }
.apps-search-shell { position: relative; padding: 0 clamp(16px, 3vw, 40px); }
.apps-search-form { position: relative; display: flex; width: min(878px, 100%); height: 52px; align-items: center; margin: 0 auto; padding: 0 8px 0 49px; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 12px 32px rgba(15,23,42,.08); transition: box-shadow .22s ease; }
.apps-search-form:focus-within { box-shadow: 0 3px 8px rgba(15,23,42,.05), 0 16px 38px rgba(15,23,42,.11); }
.apps-search-icon { position: absolute; left: 18px; width: 16px; height: 16px; color: #9aa1ad; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.apps-search-form input[type=search] { min-width: 0; height: 100%; flex: 1; border: 0; background: transparent; color: var(--text); font-size: 14px; outline: none; }
.apps-search-form input[type=search]::placeholder { color: #a3a8ae; }
.apps-search-form input[type=search]::-webkit-search-cancel-button { display: none; }
.apps-search-form button { display: inline-flex; width: 76px; height: 36px; flex: 0 0 76px; align-items: center; justify-content: center; border-radius: 8px; background: #18191c; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 5px 14px rgba(15,23,42,.14); transition: .18s; }
.apps-search-form button:hover { background: #292a2e; box-shadow: 0 7px 18px rgba(15,23,42,.18); transform: translateY(-1px); }
.apps-content { margin-top: 32px; padding: 0 clamp(16px, 3vw, 40px); }
.app-section { max-width: 1480px; margin: 0 auto 44px; }
.apps-group-name { height: 24px; margin: 0 0 12px; color: var(--text); font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: -.01em; }
.app-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; }
@media (max-width: 1359px) { .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25vw 1.05vw; } }
@media (max-width: 1100px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .app-grid { grid-template-columns: 1fr; } }
.apps-tool-card { --apps-hover-duration: 380ms; --apps-hover-fade-duration: 220ms; --apps-hover-easing: cubic-bezier(0.4, 0, 0.2, 1); position: relative; display: block; height: 160px; min-width: 0; padding-left: 17px; color: var(--text); cursor: pointer; isolation: isolate; animation: apps-card-enter .42s both; }
@keyframes apps-card-enter { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
.app-grid .apps-tool-card:nth-child(6n+2) { animation-delay: 35ms; }
.app-grid .apps-tool-card:nth-child(6n+3) { animation-delay: 70ms; }
.app-grid .apps-tool-card:nth-child(6n+4) { animation-delay: 105ms; }
.app-grid .apps-tool-card:nth-child(6n+5) { animation-delay: .14s; }
.app-grid .apps-tool-card:nth-child(6n) { animation-delay: 175ms; }
.apps-tool-card-background { position: absolute; top: auto; right: 0; bottom: 0; left: 0; height: 126px; z-index: 0; overflow: hidden; border: 2px solid #fff; border-radius: 16px; background: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.16); transition: height var(--apps-hover-duration) var(--apps-hover-easing), box-shadow var(--apps-hover-duration) var(--apps-hover-easing); }
.apps-tool-card-background::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(46.35% 71.65% at 50% 100%, #acb6ff 0, #506dff 100%); opacity: 0; transform: scale(0); transform-origin: center bottom; transition: opacity var(--apps-hover-duration) var(--apps-hover-easing), transform var(--apps-hover-duration) var(--apps-hover-easing); }
.apps-tool-card-name { top: 71px; width: calc(47% - 20px); color: var(--text); font-size: 17px; line-height: 24px; transition: top var(--apps-hover-duration) var(--apps-hover-easing), color var(--apps-hover-fade-duration) var(--apps-hover-easing); }
.apps-tool-card-description, .apps-tool-card-name { position: absolute; left: 17px; z-index: 3; display: block; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.apps-tool-card-description { right: 17px; bottom: 17px; color: #595f65; font-size: 12px; line-height: 16px; opacity: 1; visibility: visible; transform: translateY(0); transition: opacity var(--apps-hover-fade-duration) var(--apps-hover-easing) 90ms, transform var(--apps-hover-duration) var(--apps-hover-easing) 40ms, visibility 0s linear 0s; }
.apps-tool-card-action { position: absolute; top: 81px; left: 17px; z-index: 4; display: inline-flex; min-width: 82px; height: 28px; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border-radius: 18px; background: #fff; color: #506dff; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 10px 8px rgba(32,39,227,.1); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(20px); transition: opacity var(--apps-hover-fade-duration) var(--apps-hover-easing), transform var(--apps-hover-duration) var(--apps-hover-easing), visibility 0s linear var(--apps-hover-duration); }
/* ⚠️ 不能给该按钮设固定 width：内容（4 汉字+箭头+内边距）恰好 82px，任何亚像素差异都会让文字换行溢出白底、隐入蓝色卡片背景（线上"立即体验显示不全"根因），只允许 min-width + nowrap 自适应 */
.apps-tool-card-action svg { width: 10px; height: 10px; flex: 0 0 10px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apps-tool-card-cover { position: absolute; top: 0; right: 16px; z-index: 2; display: block; width: 53%; height: 115px; overflow: hidden; border-radius: 12px; background: #f0f2f6; transition: transform var(--apps-hover-duration) var(--apps-hover-easing); }
.apps-tool-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.apps-tool-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #a7adb5; font-size: 28px; font-weight: 800; background: linear-gradient(145deg, #f4f5f8, #edf0f4); }
/* 工具卡：无封面图，用渐变底 + 线性图标（与应用卡同一套卡片结构） */
.apps-tool-card-thumb { display: grid; place-items: center; color: #fff; }
.apps-tool-card-thumb svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apps-tool-card-thumb::after { content: '工具'; position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.24); color: #fff; font-size: 10px; line-height: 15px; font-weight: 700; letter-spacing: .3px; }
.apps-tool-card:hover .apps-tool-card-background { height: 160px; box-shadow: none; }
.apps-tool-card:hover .apps-tool-card-background::after { opacity: 1; transform: scale(1); }
.apps-tool-card:hover .apps-tool-card-name { top: 49px; color: #fff; }
.apps-tool-card:hover .apps-tool-card-description { opacity: 0; visibility: hidden; transform: translateY(-4px); transition-delay: 0s, 0s, var(--apps-hover-fade-duration); }
.apps-tool-card:hover .apps-tool-card-action { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 80ms, 40ms, 0s; }
.apps-tool-card:hover .apps-tool-card-cover { transform: translateY(20px); }
.apps-tool-card:active { transform: scale(.992); }
@media (min-width: 1360px) {
  .apps-tool-card { height: 136px; padding-left: 14px; }
  .apps-tool-card-background { height: 108px; border-radius: 14px; }
  .apps-tool-card-name { top: 59px; left: 14px; width: calc(50% - 27px); font-size: 15px; line-height: 22px; }
  .apps-tool-card-description { right: 12px; bottom: 14px; left: 14px; font-size: 11px; line-height: 15px; }
  .apps-tool-card-action { top: 69px; left: 14px; }
  .apps-tool-card-cover { right: 8px; width: 50%; height: 96px; border-radius: 10px; }
  .apps-tool-card-cover img { object-fit: contain; object-position: center; }
  .apps-tool-card:hover .apps-tool-card-background { height: 136px; }
  .apps-tool-card:hover .apps-tool-card-name { top: 39px; }
  .apps-tool-card:hover .apps-tool-card-cover { transform: translateY(20px); }
}

/* ================= 无限画布 ================= */
/* ================= 无限画布（复刻点图AI：项目列表 + 节点编辑器） ================= */
.cvp-page, .cve { fill: none; }
.cvp-page svg, .cve svg, .cve-picker svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cvp-page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; overflow-y: auto; height: calc(100vh - 60px); }

/* ---- 项目列表 ---- */
.cvp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px 32px; border-radius: 24px; border: 1px solid rgb(var(--line)); background: linear-gradient(120deg, #fdfdf5 0%, #fff 38%, #f4f8ff 100%); box-shadow: var(--shadow-card); }
.cvp-hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgb(var(--panel)); border: 1px solid rgb(var(--line)); color: rgb(var(--ink-faint)); font-size: 11.5px; font-weight: 700; }
.cvp-hero-pill svg { width: 13px; height: 13px; }
.cvp-hero h1 { margin-top: 14px; font-size: 24px; font-weight: 900; color: rgb(var(--ink)); letter-spacing: .5px; }
.cvp-hero p { margin-top: 10px; font-size: 13px; color: rgb(var(--ink-secondary)); }
.cvp-hero-actions { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 4px; }
.cvp-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); color: rgb(var(--ink-secondary)); font-size: 13px; font-weight: 700; transition: .15s; }
.cvp-btn svg { width: 15px; height: 15px; }
.cvp-btn:hover { border-color: rgb(var(--line-strong)); color: rgb(var(--ink)); }
.cvp-btn-dark { background: rgb(var(--brand-600)); border-color: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgba(16,17,19,.22); }
.cvp-btn-dark:hover { color: #fff; filter: brightness(1.15); }
.cvp-btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
.cvp-sec { margin-top: 26px; }
.cvp-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cvp-sec-title b { font-size: 15px; font-weight: 900; color: rgb(var(--ink)); }
.cvp-sec-title span { margin-left: 10px; font-size: 12px; color: rgb(var(--ink-faint)); }
.cvp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cvp-card { border: 1px solid rgb(var(--line)); border-radius: 18px; background: rgb(var(--panel)); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .18s, transform .18s; }
.cvp-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,.1); transform: translateY(-2px); }
.cvp-thumb { position: relative; aspect-ratio: 4 / 2.7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background-color: #fafafb; background-image: radial-gradient(circle, #e3e4e9 1px, transparent 1.2px); background-size: 16px 16px; }
.cvp-thumb-ico { color: rgb(var(--ink-faint)); } .cvp-thumb-ico svg { width: 30px; height: 30px; }
.cvp-thumb-label { font-size: 12px; color: rgb(var(--ink-faint)); }
.cvp-count { position: absolute; left: 12px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid rgb(var(--line)); font-size: 11px; font-weight: 700; color: rgb(var(--ink-secondary)); }
.cvp-card-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 2px; cursor: pointer; }
.cvp-card-row b { font-size: 14px; font-weight: 800; color: rgb(var(--ink)); }
.cvp-card-row svg { width: 15px; height: 15px; color: rgb(var(--ink-faint)); transition: transform .15s; }
.cvp-card:hover .cvp-card-row svg { transform: translateX(2px); color: rgb(var(--ink)); }
.cvp-card-time { padding: 3px 16px 10px; font-size: 11px; color: rgb(var(--ink-faint)); }
.cvp-card-foot { display: flex; border-top: 1px solid rgb(var(--line)); }
.cvp-card-foot button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 0; font-size: 12px; font-weight: 600; color: rgb(var(--ink-secondary)); transition: .14s; }
.cvp-card-foot button + button { border-left: 1px solid rgb(var(--line)); }
.cvp-card-foot button svg { width: 13px; height: 13px; }
.cvp-card-foot button:hover { background: #f7f8fa; color: rgb(var(--ink)); }
.cvp-card-foot button.danger:hover { color: #e11d48; background: #fef2f3; }
.cvp-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 70px 20px; border: 1px dashed rgb(var(--line-strong)); border-radius: 20px; color: rgb(var(--ink-faint)); }
.cvp-empty svg { width: 34px; height: 34px; color: rgb(var(--brand-300)); }
.cvp-empty b { font-size: 15px; font-weight: 800; color: rgb(var(--ink)); }
.cvp-empty p { font-size: 12.5px; }

/* ---- 编辑器 ---- */
.cve { display: flex; flex-direction: column; height: calc(100vh - 60px); background: rgb(var(--page)); }
.cve-top { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: rgb(var(--panel)); border-bottom: 1px solid rgb(var(--line)); flex-shrink: 0; }
.cve-icobtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; color: rgb(var(--ink-secondary)); transition: .14s; flex-shrink: 0; }
.cve-icobtn svg { width: 17px; height: 17px; }
.cve-icobtn:hover { background: rgb(var(--page)); color: rgb(var(--ink)); }
.cve-icobtn:disabled { opacity: .35; cursor: not-allowed; }
.cve-icobtn.on { background: rgb(var(--brand-50)); color: var(--primary-deep); }
.cve-icobtn.danger { color: #f43f5e; }
.cve-icobtn.danger:hover { background: #fef2f3; }
.cve-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgb(var(--line)); color: rgb(var(--ink-secondary)); }
.cve-avatar svg { width: 16px; height: 16px; }
.cve-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cve-title b { font-size: 13.5px; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; border-radius: 6px; padding: 0 4px; margin-left: -4px; }
.cve-title b:hover { background: rgb(var(--page)); }
.cve-title span { font-size: 10.5px; color: rgb(var(--ink-faint)); }
.cve-saved { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 11.5px; font-weight: 700; color: rgb(var(--ink-secondary)); }
.cve-saved i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.cve-saved.ing i { background: #f59e0b; animation: cve-pulse 1s infinite; }
@keyframes cve-pulse { 50% { opacity: .35; } }
.cve-top-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.cve-body { position: relative; display: flex; flex: 1; min-height: 0; }
.cve-side { position: absolute; inset-y: 0; left: 0; z-index: 40; display: flex; flex-direction: column; width: 288px; background: rgb(var(--panel)); border-right: 1px solid rgb(var(--line)); box-shadow: 8px 0 28px rgba(17,24,39,.035); transition: transform .2s; }
.cve-side.collapsed { transform: translateX(-100%); }
/* 第二十二批：侧栏收起后的浮层「展开」手柄（原先收起后无任何恢复入口） */
.cve-side-open { position: absolute; top: 14px; left: 14px; z-index: 45; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: rgb(var(--panel)); border: 1px solid rgb(var(--line)); box-shadow: 0 6px 18px rgba(17,24,39,.12); color: rgb(var(--ink-secondary)); transition: .14s; }
.cve-side-open svg { width: 17px; height: 17px; }
.cve-side-open:hover { color: var(--primary-deep); border-color: var(--primary); }
.cve-side-head { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 8px 0 16px; border-bottom: 1px solid rgb(var(--line)); flex-shrink: 0; }
.cve-side-head p { font-size: 13.5px; font-weight: 900; color: rgb(var(--ink)); }
.cve-side-head span { font-size: 10.5px; color: rgb(var(--ink-faint)); }
.cve-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px; border-bottom: 1px solid rgb(var(--line)); flex-shrink: 0; }
.cve-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border-radius: 12px; font-size: 11px; font-weight: 700; color: rgb(var(--ink-faint)); transition: .14s; }
.cve-tabs button svg { width: 16px; height: 16px; }
.cve-tabs button:hover { background: rgb(var(--page)); color: rgb(var(--ink-secondary)); }
.cve-tabs button.on { background: #eef4ff; color: var(--primary-deep); }
.cve-searchbox { display: flex; align-items: center; gap: 8px; margin: 10px 12px 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: rgb(var(--page)); color: rgb(var(--ink-faint)); flex-shrink: 0; }
.cve-searchbox svg { width: 15px; height: 15px; flex-shrink: 0; }
.cve-searchbox input { flex: 1; min-width: 0; border: none; background: none; font-size: 13px; color: rgb(var(--ink)); }
.cve-chips { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid rgb(var(--line)); flex-shrink: 0; overflow-x: auto; }
.cve-chips button { flex-shrink: 0; padding: 6px 10px; border-radius: 9px; font-size: 11px; font-weight: 700; color: rgb(var(--ink-faint)); background: rgb(var(--page)); transition: .14s; }
.cve-chips button.on { background: #eef4ff; color: var(--primary-deep); }
.cve-list { flex: 1; overflow-y: auto; padding: 12px; }
.cve-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgb(var(--line)); border-radius: 14px; background: rgb(var(--panel)); cursor: pointer; transition: .14s; }
.cve-item:hover { border-color: rgb(var(--line-strong)); box-shadow: var(--shadow-card); }
.cve-item-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(var(--page)); color: rgb(var(--ink-secondary)); flex-shrink: 0; }
.cve-item-ico svg { width: 16px; height: 16px; }
.cve-item-img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cve-item-txt { flex: 1; min-width: 0; line-height: 1.3; }
.cve-item-txt b { display: block; font-size: 12.5px; font-weight: 700; color: rgb(var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cve-item-txt span { font-size: 11px; color: rgb(var(--ink-faint)); }
.cve-item-add { flex-shrink: 0; padding: 5px 10px; border-radius: 8px; background: #eef4ff; color: var(--primary-deep); font-size: 11.5px; font-weight: 700; }
.cve-item-add:hover { filter: brightness(.96); }
.cve-thumbgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cve-thumbitem { position: relative; border: 1px solid rgb(var(--line)); border-radius: 12px; overflow: hidden; cursor: pointer; }
.cve-thumbitem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cve-thumbitem .cve-item-add { position: absolute; right: 6px; bottom: 6px; }
.cve-list-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; padding: 20px; border: 1px dashed rgb(var(--line-strong)); border-radius: 16px; text-align: center; }
.cve-list-empty svg { width: 30px; height: 30px; color: rgb(var(--brand-300)); }
.cve-list-empty b { font-size: 13.5px; font-weight: 800; color: rgb(var(--ink)); }
.cve-list-empty p { font-size: 11.5px; color: rgb(var(--ink-faint)); line-height: 1.6; }

.cve-stage-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.cve-stage { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.cve-stage.grabbing { cursor: grabbing; }
.cve-gridbg { position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(circle, rgb(145 145 151 / .38) 1px, transparent 1.2px); background-size: 48px 48px; }
.cve-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.cve-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; width: 8px; height: 8px; }
.cve-wires .wire { fill: none; stroke: #94a3b8; stroke-width: 1.6; }
.cve-wires .wire-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.cve-wires .wire-hit:hover + .wire, .cve-wires .wire.temp { stroke: var(--primary); stroke-dasharray: 6 4; }

.cve-node { position: absolute; display: flex; flex-direction: column; background: rgb(var(--panel)); border: 1.5px solid rgb(var(--line)); border-radius: 16px; box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 14px 34px rgba(15,23,42,.07); cursor: move; }
.cve-node.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(37 99 235 / .12), 0 14px 34px rgba(15,23,42,.09); }
.cve-node.locked { cursor: not-allowed; }
.cve-node.locked .cve-node-head::after { content: '🔒'; font-size: 11px; margin-left: 4px; }
.cve-node.loading { opacity: .75; }
.cve-node-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.cve-node-head b { flex: 1; font-size: 12.5px; font-weight: 800; color: rgb(var(--ink)); }
.cve-node-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: rgb(var(--page)); color: rgb(var(--ink-secondary)); }
.cve-node-ico svg { width: 14px; height: 14px; }
.cve-node-x { color: rgb(var(--ink-faint)); padding: 3px; border-radius: 6px; }
.cve-node-x svg { width: 13px; height: 13px; }
.cve-node-x:hover { color: #e11d48; background: #fef2f3; }
.cve-ta { border: none; background: none; resize: none; padding: 6px 14px 10px; font-size: 13px; line-height: 1.7; color: rgb(var(--ink)); height: 240px; }
.cve-ta::placeholder { color: rgb(var(--ink-faint)); }
.cve-ta-desc { height: 130px; }
.cve-node-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 12px; border-top: 1px dashed rgb(var(--line)); font-size: 10.5px; color: rgb(var(--ink-faint)); }
.cve-count { font-size: 10.5px; color: rgb(var(--ink-faint)); }
.cve-node-sec { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 4px; }
.cve-lab { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: rgb(var(--ink)); }
.cve-lab svg { width: 13px; height: 13px; color: var(--primary); }
.cve-chipsrow { display: flex; gap: 6px; padding: 6px 14px 4px; flex-wrap: wrap; }
.cve-chipsrow button { padding: 5px 10px; border-radius: 9px; border: 1px solid rgb(var(--line)); font-size: 11px; font-weight: 600; color: rgb(var(--ink-secondary)); background: rgb(var(--panel)); }
.cve-chipsrow button:hover { border-color: var(--primary); color: var(--primary-deep); }
.cve-btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 4px; }
.cve-btnrow button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; border: 1px solid rgb(var(--line)); font-size: 12.5px; font-weight: 700; color: rgb(var(--ink-secondary)); background: rgb(var(--panel)); }
.cve-btnrow button svg { width: 14px; height: 14px; }
.cve-btnrow button:hover { border-color: var(--primary); color: var(--primary-deep); }
.cve-hintline { padding: 6px 14px 2px; text-align: center; font-size: 10.5px; color: rgb(var(--ink-faint)); }
.cve-pointsrow { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 4px; font-size: 11.5px; color: rgb(var(--ink-secondary)); }
.cve-pointsrow > span { display: inline-flex; align-items: center; gap: 5px; }
.cve-pointsrow svg { width: 14px; height: 14px; }
.cve-pointsrow b { color: rgb(var(--ink)); font-weight: 800; }
.cve-modelsel { margin: 6px 14px 0; height: 36px; padding: 0 10px; border: 1px solid rgb(var(--line)); border-radius: 10px; font-size: 12.5px; color: rgb(var(--ink)); background: rgb(var(--page)); }
.cve-genbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 14px 14px; height: 46px; border-radius: 13px; background: rgb(var(--brand-600)); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 6px 16px rgba(16,17,19,.2); transition: .15s; }
.cve-genbtn svg { width: 16px; height: 16px; }
.cve-genbtn:hover:not(:disabled) { filter: brightness(1.18); }
.cve-genbtn:disabled { background: #c9ccd4; box-shadow: none; cursor: not-allowed; }
.cve-node-prev { position: relative; margin: 4px 14px 0; border: 1px solid rgb(var(--line)); border-radius: 12px; overflow: hidden; max-height: 240px; }
.cve-node-prev img { width: 100%; display: block; object-fit: cover; cursor: zoom-in; }
/* 第二十二批：「显示图片尺寸」角标（图片真实像素），由 #cve-tdim 开关控制显隐 */
.cve-dim { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 3px 8px; border-radius: 999px; background: rgba(17,24,39,.72); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2px; backdrop-filter: blur(4px); pointer-events: none; }
.cve-port { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid #b6bac4; cursor: crosshair; z-index: 5; }
.cve-port.in { left: -6px; }
.cve-port.out { right: -6px; }
.cve-port:hover { border-color: var(--primary); transform: scale(1.25); }

.cve-nodetool { position: absolute; z-index: 30; display: flex; gap: 2px; padding: 5px; border-radius: 13px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); box-shadow: 0 10px 30px rgba(15,23,42,.14); }
.cve-nodetool .cve-icobtn { width: 30px; height: 30px; border-radius: 9px; }
.cve-nodetool .cve-icobtn svg { width: 14px; height: 14px; }

.cve-toolbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 3px; padding: 6px; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); box-shadow: 0 14px 40px rgba(15,23,42,.16); }
.cve-tool-smart { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-width: 112px; padding: 0 12px; border-radius: 12px; background: rgb(var(--brand-50)); color: rgb(var(--ink)); font-size: 11px; font-weight: 900; cursor: default; }
.cve-tool-smart svg { width: 15px; height: 15px; }
.cve-tool-div { width: 1px; height: 26px; background: rgb(var(--line)); margin: 0 4px; }
.cve-toolbar .cve-icobtn { width: 36px; height: 36px; }
.cve-viewctl { position: absolute; right: 16px; top: 16px; z-index: 30; display: flex; gap: 2px; padding: 6px; border-radius: 13px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); box-shadow: var(--shadow-card); }
.cve-zoomctl { position: absolute; right: 16px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 13px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); box-shadow: var(--shadow-card); }
.cve-zoomval { min-width: 52px; padding: 8px 4px; border-radius: 10px; font-size: 12px; font-weight: 800; color: rgb(var(--ink-secondary)); font-variant-numeric: tabular-nums; }
.cve-zoomval:hover { background: rgb(var(--page)); color: rgb(var(--ink)); }
.cve-mini { position: absolute; left: 16px; bottom: 18px; z-index: 30; border-radius: 13px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer; }
.cve-mini canvas { display: block; width: 220px; height: 130px; }

.cve-help { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(15,23,42,.35); }
.cve-help-card { width: 400px; max-width: 92vw; background: rgb(var(--panel)); border-radius: 18px; padding: 18px 20px 20px; box-shadow: var(--shadow-lg); }
.cve-help-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cve-help-card header b { font-size: 15px; font-weight: 900; color: rgb(var(--ink)); }
.cve-help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 12.5px; }
.cve-help-card dt { font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; }
.cve-help-card dd { color: rgb(var(--ink-secondary)); }

.cve-picker { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(15,23,42,.35); }
.cve-picker-card { width: 520px; max-width: 94vw; max-height: 76vh; overflow-y: auto; background: rgb(var(--panel)); border-radius: 18px; padding: 16px 18px 18px; box-shadow: var(--shadow-lg); }
.cve-picker-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cve-picker-card header b { font-size: 15px; font-weight: 900; color: rgb(var(--ink)); }
.cve-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cve-picker-item { border: 1px solid rgb(var(--line)); border-radius: 12px; overflow: hidden; cursor: pointer; transition: .14s; }
.cve-picker-item:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.cve-picker-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cve-picker-item span { display: block; padding: 7px 9px; font-size: 11.5px; font-weight: 600; color: rgb(var(--ink-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 767px) {
  .cvp-hero { flex-direction: column; align-items: stretch; }
  .cve-side { width: 260px; }
  .cve-mini { display: none; }
}

/* ================= 账户页（个人资料 / 账户与积分 / 邀请返佣 / 修改密码） ================= */
.acct-page { display: flex; justify-content: center; padding: 30px 16px 60px; }
.acct-card { width: min(520px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 28px; }
.acct-card h2 { font-size: 19px; font-weight: 800; color: var(--text); }
.acct-sub { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.acct-card .field { margin-top: 14px; }
.acct-card .field input:disabled { background: var(--bg-soft); color: var(--text-2); }
.acct-row { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 14px; color: var(--text-2); }
.acct-row b { color: var(--text); font-weight: 600; }
.acct-points { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(98deg, #fff4d8, #ffe5b4); border: 1px solid #ffe0a5; }
.acct-points-label { font-size: 13px; font-weight: 700; color: #8c4804; }
.acct-points strong { font-size: 28px; font-weight: 900; color: #783a00; font-variant-numeric: tabular-nums; flex: 1; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.acct-stat { padding: 14px 8px; border-radius: 12px; background: var(--bg-soft); text-align: center; }
.acct-stat strong { display: block; font-size: 19px; font-weight: 800; color: var(--text); }
.acct-stat span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-2); }
.acct-note { margin-top: 16px; font-size: 12.5px; line-height: 20px; color: #9aa1ad; }
.invite-box { display: flex; gap: 8px; margin-top: 16px; }
.invite-box input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft); color: var(--text); font-size: 13px; }

/* ================= 装修页全屏模式（后台「页面装修」发布后） ================= */
body.decor-mode .topbar { display: none; }
body.decor-mode .side { display: none; }
body.decor-mode .shell { height: 100vh; }
body.decor-mode .main-area { background: #fff; }
.dc-host { min-height: 100%; }
.dc-loading { padding: 90px 20px; text-align: center; color: #9aa1ad; font-size: 14px; }

/* 首页（应用默认版式）样式已拆到 home.css，前台与后台搭建器共用 */

/* ================= 对话页（新版） ================= */
body.chat-mode .main-area { overflow: hidden; padding: 0; }
.chat-app { display: flex; height: 100%; min-height: 0; background: #fff; position: relative; }
/* 对话区内所有 SVG 统一为线条风格（前台无全局 svg 规则，此处兜底） */
.chat-app svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 左：会话侧栏 ---- */
.chat-side { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; background: #fafbfd; border-right: 1px solid var(--border); }
.cs-head { padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.cs-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cs-brand-sub { margin-left: auto; font-size: 11px; color: #9aa3b5; letter-spacing: .02em; }
.cs-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-blue); color: #fff; }
.cs-logo svg { width: 15px; height: 15px; }
.cs-new { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 11px; background: var(--grad-blue); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(37,99,235,.25); transition: .16s; }
.cs-new:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.32); }
.cs-new svg { width: 15px; height: 15px; stroke-width: 2; }
.cs-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-2); }
.cs-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.cs-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--text); }
.cs-shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cs-sc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border-radius: 10px; color: var(--text-2); font-size: 10.5px; transition: .15s; }
.cs-sc svg { width: 17px; height: 17px; }
.cs-sc:hover { background: #e8f1ff; color: var(--primary-deep); transform: translateY(-1px); }
.cs-list { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.cs-group { display: flex; align-items: center; gap: 6px; padding: 12px 6px 6px; font-size: 11.5px; color: #9aa3b5; font-weight: 600; letter-spacing: .04em; }
.cs-pin-label { font-size: 10px; font-weight: 600; color: var(--primary-deep); background: #e8f1ff; border-radius: 5px; padding: 1px 6px; }
.cs-item { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 13.5px; transition: .14s; }
.cs-item:hover { background: #eef1f8; color: var(--text); }
.cs-item.active { background: #e8f1ff; color: var(--primary-deep); font-weight: 600; }
.cs-item-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cs-pin-flag { display: grid; place-items: center; flex-shrink: 0; color: var(--primary-deep); }
.cs-pin-flag svg { width: 13px; height: 13px; }
.cs-op { display: none; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: #b9c0cd; flex-shrink: 0; }
.cs-op svg { width: 14px; height: 14px; }
.cs-item:hover .cs-op { display: grid; }
.cs-op:hover { background: #e2e9f6; color: var(--primary-deep); }
.cs-op-del:hover { background: #fee2e2; color: #ef4444; }
.cs-empty { padding: 26px 12px; text-align: center; font-size: 12.5px; color: #9aa3b5; line-height: 20px; }
.cs-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
.cs-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#406eff,#19b0ec); color: #fff; font-size: 13px; font-weight: 700; }
.cs-user { min-width: 0; flex: 1; }
.cs-user b { display: block; font-size: 13px; }
.cs-user span { font-size: 11.5px; color: var(--text-2); }
.cs-recharge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); color: var(--text-2); background: #fff; transition: .15s; }
.cs-recharge svg { width: 15px; height: 15px; }
.cs-recharge:hover { color: #d97706; border-color: #fde3b3; background: #fffaf0; }

/* ---- 右：主区 ---- */
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.ct-title b { display: block; font-size: 15px; }
.ct-title span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.ct-right { display: flex; align-items: center; gap: 10px; }
.ct-model-wrap { position: relative; }
.ct-model { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; font-size: 13.5px; transition: .15s; }
.ct-model:hover { border-color: #c9d6f5; box-shadow: 0 4px 14px rgba(24,39,92,.07); }
.ct-model-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.ct-model-name { font-weight: 600; }
.ct-model-price { font-size: 11.5px; color: var(--primary-deep); background: #eaf2ff; border-radius: 6px; padding: 2px 7px; }
.ct-model svg { width: 15px; height: 15px; color: var(--text-2); }
.ct-menu { position: absolute; right: 0; top: 46px; z-index: 40; width: 320px; max-height: 340px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .16s ease; }
.ct-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; transition: .14s; }
.ct-item:hover { background: var(--bg-soft); }
.ct-item.on { background: #eaf2ff; }
.cti-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f1f4fb; color: var(--primary-deep); flex-shrink: 0; }
.cti-ic svg { width: 15px; height: 15px; }
.cti-txt { flex: 1; min-width: 0; }
.cti-txt b { display: block; font-size: 13.5px; }
.cti-txt i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cti-price { font-size: 11.5px; color: var(--text-2); flex-shrink: 0; }
.cti-ck { color: var(--primary-deep); }
.cti-ck svg { width: 15px; height: 15px; stroke-width: 2.4; }
.ct-empty { padding: 18px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.ct-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--text-2); transition: .15s; }
.ct-icon:hover { color: #ef4444; border-color: #fbd5d5; background: #fff6f6; }
.ct-icon svg { width: 16px; height: 16px; }

/* ---- 消息区 ---- */
.chat-body { flex: 1; overflow-y: auto; padding: 26px 24px 12px; scroll-behavior: smooth; }
.cw { max-width: 720px; margin: 4vh auto 0; text-align: center; }
.cw-orb { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 20px; background: var(--grad-blue); color: #fff; box-shadow: 0 16px 40px rgba(37,99,235,.28); }
.cw-orb svg { width: 28px; height: 28px; }
.cw h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cw p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.cw-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; text-align: left; }
.cw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.cw-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 12px; transition: .15s; }
.cw-chip svg { width: 14px; height: 14px; }
.cw-chip:hover { color: var(--primary-deep); border-color: #b9cdf7; background: #f2f7ff; transform: translateY(-1px); }
.cw-card { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: .16s; }
.cw-card:hover { border-color: #c9d6f5; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24,39,92,.09); }
.cw-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef4ff; color: var(--primary-deep); font-size: 17px; }
.cw-ic svg { width: 18px; height: 18px; }
.cw-card b { font-size: 13.5px; }
.cw-txt { font-size: 12px; color: var(--text-2); line-height: 1.7; }

.cm { display: flex; gap: 12px; max-width: 860px; margin: 0 auto 22px; }
.cm-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cm-av-ai { background: var(--grad-blue); }
.cm-av-ai svg { width: 17px; height: 17px; }
.cm-av-user { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.cm-body { min-width: 0; flex: 1; }
.cm-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cm-meta b { font-size: 12.5px; }
.cm-meta span { font-size: 11.5px; color: var(--text-2); }
.cm-meta .cm-time { font-style: normal; font-size: 11px; color: #a8b0c0; }
.cm-bubble { font-size: 14.5px; line-height: 1.85; word-break: break-word; }
.cm-user { flex-direction: row-reverse; }
.cm-user .cm-body { display: flex; justify-content: flex-end; }
.cm-user .cm-bubble { max-width: 78%; padding: 11px 16px; border-radius: 16px 16px 4px 16px; background: var(--primary-deep); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.16); }
.cm-assistant .cm-bubble { padding: 14px 18px; border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; background: #fff; box-shadow: 0 4px 16px rgba(24,39,92,.05); }
.cm-bubble p { margin: 0 0 10px; }
.cm-bubble p:last-child { margin-bottom: 0; }
.cm-bubble h3 { font-size: 15.5px; margin: 14px 0 8px; font-weight: 700; }
.cm-bubble h4, .cm-bubble h5, .cm-bubble h6 { font-size: 14.5px; margin: 12px 0 6px; }
.cm-bubble ul { margin: 6px 0 10px; padding-left: 20px; }
.cm-bubble li { margin: 3px 0; }
.cm-bubble a { color: var(--primary-deep); text-decoration: underline; }
.cm-bubble blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid #cbd9f8; background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 13.5px; }
.cm-bubble hr { margin: 14px 0; border: 0; border-top: 1px solid var(--border); }
.cm-bubble .md-ic { padding: 1px 6px; border-radius: 5px; background: #eef1f8; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.cm-bubble .md-code { margin: 10px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #0f1626; }
.md-code-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: #172033; color: #93a3c0; font-size: 11.5px; }
.md-copy { display: flex; align-items: center; gap: 5px; color: #93a3c0; font-size: 11.5px; }
.md-copy:hover { color: #fff; }
.md-copy svg { width: 13px; height: 13px; }
.cm-bubble .md-code pre { margin: 0; padding: 13px 14px; overflow-x: auto; }
.cm-bubble .md-code code { color: #d7e3ff; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.75; white-space: pre; }
.cm-typing { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.cm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9c8e8; animation: cm-bounce 1.1s infinite ease-in-out; }
.cm-typing i:nth-child(2) { animation-delay: .16s; }
.cm-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes cm-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.cm-caret { display: inline-block; width: 8px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--primary-deep); animation: cm-blink 1s steps(2) infinite; }
@keyframes cm-blink { 50% { opacity: 0; } }
.cm-acts { display: flex; gap: 8px; margin-top: 8px; opacity: 0; transition: .15s; }
.cm:hover .cm-acts { opacity: 1; }
.cm-act { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text-2); font-size: 11.5px; }
.cm-act:hover { color: var(--primary-deep); border-color: #c9d6f5; }
.cm-act svg { width: 13px; height: 13px; }
.cm-fb { padding: 0 7px; }
.cm-fb.on { color: var(--primary-deep); border-color: #b9cdf7; background: #eef5ff; }
.cm-fb.on:last-child { color: #d97706; border-color: #fde3b3; background: #fffaf0; }
.chat-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 148px; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 12.5px; box-shadow: var(--shadow); }
.chat-jump:hover { color: var(--primary-deep); }
.chat-jump svg { width: 14px; height: 14px; }

/* ---- 输入区 ---- */
.chat-composer { padding: 8px 24px 16px; }
.cbox { border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(24,39,92,.06); transition: .16s; }
.cbox.focus { border-color: #b9cdf7; box-shadow: 0 10px 30px rgba(37,99,235,.12); }
.cbox textarea { width: 100%; border: 0; outline: none; resize: none; padding: 14px 16px 4px; max-height: 200px; font-size: 14.5px; line-height: 1.7; color: var(--text); background: transparent; }
.cbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 10px; }
.cbox-left { display: flex; align-items: center; gap: 8px; overflow: visible; }
.cbox-tool { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12px; transition: .15s; }
.cbox-tool svg { width: 14px; height: 14px; }
.cbox-tool:hover { color: var(--primary-deep); background: #eef5ff; border-color: #dbe7fb; }
.cbox-tpl-wrap { position: relative; }
.cbox-tpl-pop { position: absolute; left: 0; bottom: 38px; z-index: 50; width: 320px; max-height: 320px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .16s ease; }
.cbox-tpl-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; font-size: 12.5px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.cbox-tpl-head svg { width: 15px; height: 15px; color: var(--primary-deep); }
.cbox-tpl-head span { margin-left: auto; font-size: 10.5px; font-weight: 400; color: #a8b0c0; }
.cbox-tpl-item { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; transition: .14s; }
.cbox-tpl-item:hover { background: #f1f5fd; }
.cbox-tpl-item b { font-size: 12.5px; color: var(--text); }
.cbox-tpl-item span { font-size: 11px; color: #9aa3b5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbox-tag { font-size: 11.5px; color: var(--primary-deep); background: #eaf2ff; border-radius: 7px; padding: 3px 9px; white-space: nowrap; }
.cbox-tag-soft { color: var(--text-2); background: var(--bg-soft); }
.cbox-right { display: flex; align-items: center; gap: 10px; }
.cbox-count { font-size: 11.5px; color: #9aa3b5; }
.cbox-send { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 16px; border-radius: 10px; background: var(--grad-blue); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(37,99,235,.24); transition: .15s; }
.cbox-send:disabled { background: #d9dfec; color: #fff; box-shadow: none; cursor: not-allowed; }
.cbox-send:not(:disabled):hover { transform: translateY(-1px); }
.cbox-send.stop { background: #1f2937; box-shadow: 0 6px 16px rgba(31,41,55,.25); }
.cbox-send svg { width: 15px; height: 15px; stroke-width: 2; }
.cbox-tip { margin-top: 8px; text-align: center; font-size: 11.5px; color: #a8b0c0; }

/* ---- 第十一批：对话模块上传附件 + 输入区 UI 充实 ---- */
.cbox { border-radius: 20px; }
.cbox textarea { padding: 14px 18px 4px; font-size: 14.5px; }
.cbox-atts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 0; }
.cbox-atts[hidden] { display: none; }
.att-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; animation: pop .16s ease; }
.att-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.att-doc { padding: 8px 30px 8px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.att-doc > svg { width: 20px; height: 20px; color: var(--primary-deep); flex-shrink: 0; }
.att-doc-t { display: flex; flex-direction: column; min-width: 0; }
.att-doc-t b { font-size: 12px; color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-doc-t i { font-style: normal; font-size: 10.5px; color: #9aa3b5; }
.att-x {
  position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border-radius: 50%;
  background: #1c1d21; color: #fff; font-size: 9px; line-height: 1; display: grid; place-items: center;
  border: 1.5px solid #fff; padding: 0;
}
.att-x:hover { background: #dc2626; }
.cbox-tool-att { color: var(--primary-deep); background: #eaf2ff; border-radius: 9px; }
.cbox-tool-att:hover { background: #dbe9ff; border-color: #c9dcfb; }
.cbox-tool-att svg { width: 15px; height: 15px; }
/* 消息里的附件图片 */
.cm-att-img { display: block; max-width: min(260px, 100%); max-height: 220px; border-radius: 10px; margin: 4px 0; border: 1px solid rgba(0,0,0,.06); cursor: zoom-in; }
.cm-user .cm-bubble .cm-att-img + br, .cm-bubble .cm-att-img:not(:last-child) { margin-bottom: 6px; }
/* 拖拽遮罩 */
.chat-dropzone {
  position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .08); backdrop-filter: blur(2px);
}
.chat-dropzone[hidden] { display: none; }
.chat-dz-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 46px;
  background: #fff; border: 2px dashed var(--primary); border-radius: 22px; box-shadow: var(--shadow-lg);
  color: var(--primary-deep); pointer-events: none;
}
.chat-dz-card svg { width: 34px; height: 34px; stroke-width: 1.8; }
.chat-dz-card b { font-size: 15px; }
.chat-dz-card span { font-size: 12px; color: var(--text-2); }

@media (max-width: 900px) {
  .chat-side { width: 76px; }
  .cs-brand b, .cs-brand-sub, .cs-new span, .cs-search input, .cs-user, .cs-group, .cs-item-t, .cs-sc span, .cs-recharge, .cs-pin-flag, .cs-op { display: none; }
  .cs-item { justify-content: center; }
  .cs-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .cs-sc { padding: 8px 0; }
  .chat-body { padding: 18px 14px; }
  .chat-top { padding: 12px 14px; }
  .chat-composer { padding: 8px 14px 14px; }
  .ct-title { display: none; }
  .cw-cards { grid-template-columns: 1fr; }
  .cw-chips { display: none; }
  .cm-user .cm-bubble { max-width: 88%; }
  .cbox-tool span { display: none; }
}
.cti-off { font-style: normal; color: #d97706; background: #fef3e2; border-radius: 5px; padding: 2px 6px; font-size: 11px; }
.cbox-send span { white-space: nowrap; }
@media (max-width: 900px) {
  .cs-search { display: none; }
  .cs-empty { display: none; }
  .cs-list::after { content: ""; }
}
@media (max-width: 900px) {
  .ct-model { max-width: 46vw; padding: 0 10px; }
  .ct-model-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ct-model-price { white-space: nowrap; }
  .cs-new { width: 40px; padding: 0; }
}

/* ================= 语言切换（前端顶栏，随右上角控件区对齐） ================= */
.tb-lang { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; }
.lang-switch .lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.lang-switch .lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch .lang-globe { display: inline-flex; line-height: 1; }
.lang-switch .lang-globe svg { width: 14px; height: 14px; }
.lang-switch .lang-chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 150px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; }
.lang-item:hover { background: var(--bg-soft, #f5f7fb); }
.lang-item.on { color: var(--primary); font-weight: 700; }
.lang-item i { font-style: normal; font-size: 12px; }
@media (max-width: 720px) { .tb-lang .lang-cur { display: none; } }

/* ============================================================
   登录 / 注册弹窗（参考 diantuai：左品牌视觉 + 右表单）
   ============================================================ */
.am-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; grid-template-columns: minmax(0, 100%); padding: 20px; }
.am-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: amFade .25s ease; }
@keyframes amFade { from { opacity: 0; } }
.am-modal { position: relative; z-index: 1; width: 860px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; display: flex; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 23, 42, .28); animation: amPop .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes amPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.am-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #98a0ae; background: rgba(255,255,255,.8); transition: .15s; }
.am-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.am-close:hover { background: #f1f3f8; color: var(--text); }
.am-modal .am-side { flex: 0 0 42%; min-width: 0; position: relative; display: flex; flex-direction: column; padding: 22px 24px 26px; background: linear-gradient(160deg, #eef4ff 0%, #f7f9ff 45%, #fdf5ee 100%); overflow: hidden; }
.am-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: var(--text); }
.am-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(59,130,246,.35); }
.am-logo svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.am-collage { position: relative; flex: 1; min-height: 250px; margin: 10px 0 6px; }
.am-shot { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 32px rgba(24, 39, 92, .18); border: 3px solid #fff; }
.am-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-shot.s1 { width: 46%; height: 58%; left: 4%; top: 16%; transform: rotate(-7deg); z-index: 1; }
.am-shot.s2 { width: 40%; height: 66%; left: 34%; top: 4%; transform: rotate(2deg); z-index: 2; }
.am-shot.s3 { width: 34%; height: 44%; right: 2%; top: 34%; transform: rotate(8deg); z-index: 1; }
.am-tag { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%) rotate(-3deg); z-index: 3; padding: 6px 12px; border-radius: 999px; background: #17181c; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.am-side-foot b { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.am-side-foot span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); line-height: 18px; }
.am-form { flex: 1; min-width: 0; padding: 40px 44px 26px; display: flex; flex-direction: column; justify-content: center; }
.am-welcome { font-size: 12.5px; color: var(--text-2); letter-spacing: .5px; }
.am-form h2 { margin-top: 6px; font-size: 24px; font-weight: 800; color: var(--text); }
.am-form .am-tip { margin-top: 7px; font-size: 13.5px; color: var(--text-2); }
.am-error { margin-top: 14px; padding: 9px 12px; border-radius: 9px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 13px; }
.am-field { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 14px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: #f8f9fc; transition: .15s; }
.am-field:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.am-fico { display: grid; place-items: center; color: #a2a9b8; flex: none; }
.am-fico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-field input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; color: var(--text); }
.am-field input::placeholder { color: #aab0be; }
.am-eye { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #a2a9b8; }
.am-eye:hover { color: var(--text-2); background: #eef0f5; }
.am-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-submit { margin-top: 20px; height: 48px; border-radius: 999px; background: #17181c; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px; transition: .18s; }
.am-submit:hover { background: #000; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.am-submit:active { transform: scale(.985); }
.am-submit.loading { opacity: .6; pointer-events: none; }
/* 登录方式 Tab / 验证码 / 微信登录 */
#am-pane-pwd, #am-pane-email, #am-pane-sms { display: flex; flex-direction: column; }
.am-tabs { display: flex; gap: 20px; margin-top: 16px; border-bottom: 1px solid var(--border); }
.am-tabs button { padding: 0 2px 10px; font-size: 14px; font-weight: 600; color: #9aa1af; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.am-tabs button.on { color: var(--text); border-color: var(--primary); }
.am-code .am-send { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: rgb(var(--brand-weak, 239 246 255)); color: var(--primary); font-size: 12.5px; font-weight: 700; transition: .15s; }
.am-code .am-send:hover { filter: brightness(.96); }
.am-code .am-send:disabled { opacity: .55; cursor: not-allowed; }
/* 图片验证码行 */
.am-cap { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.am-cap input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #f8f9fc; font-size: 14px; color: var(--text); outline: none; transition: .15s; }
.am-cap input::placeholder { color: #aab0be; }
.am-cap input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.am-cap img { width: 132px; height: 46px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; flex: none; background: #fff; }
.am-noreg { padding: 18px 0 6px; font-size: 14px; color: var(--text-2); text-align: center; }
.am-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #b3b9c6; font-size: 12px; }
.am-or i { flex: 1; height: 1px; background: var(--border); }
.am-wx { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; height: 44px; border-radius: 999px; border: 1px solid #d5e8d9; background: #f2fbf4; color: #1f9d4d; font-size: 14px; font-weight: 700; transition: .15s; }
.am-wx:hover { background: #e8f7ec; border-color: #bfe3c8; }
.am-wxico { display: grid; place-items: center; }
.am-wxico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.am-switch a { color: var(--primary-deep); font-weight: 700; cursor: pointer; }
.am-switch a:hover { text-decoration: underline; }
.am-forgot { margin-top: 12px; text-align: right; font-size: 13px; }
.am-forgot a { color: var(--primary-deep); font-weight: 600; cursor: pointer; }
.am-forgot a:hover { text-decoration: underline; }
.am-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: #b3b9c6; }
/* 第三十批：原 @media (max-width:760px) 旧块（width:440px + 隐藏 am-side）已删除——
   440px 固定宽正是手机登录卡溢出屏幕的真凶；≤767px 的新全屏方案见文末第三十批块 */

/* ============================================================
   全局 toast
   ============================================================ */
.gl-toast { position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 16px); z-index: 1200; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(23, 24, 28, .92); color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .25s ease; }
.gl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gl-toast.err { background: rgba(190, 32, 38, .95); }
.gl-toast.warn { background: rgba(180, 105, 10, .95); }
.gl-toast.warn .gl-toast-dot { background: #fde68a; }
.gl-toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; }
.gl-toast.err .gl-toast-dot { background: #fecaca; }
/* ============================================================
   个人中心（复刻点图AI：左侧账户导航 + 总览/返佣/资料/安全）
   ============================================================ */
.acc-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; width: min(1160px, 100%); margin: 0 auto; padding: 26px 20px 60px; }
/* 左侧导航 */
.acc-side { position: sticky; top: 76px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 14px; }
.acc-side-me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--border); }
.acc-side-av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #17181c; color: #fff; font-size: 19px; font-weight: 800; }
.acc-side-info { min-width: 0; }
.acc-side-info em { display: block; font-style: normal; font-size: 11.5px; color: #9aa1ad; }
.acc-side-info b { display: block; font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-side-info span { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-nav-group { padding-top: 14px; }
.acc-nav-group > b { display: block; padding: 0 10px 8px; font-size: 11.5px; font-weight: 700; color: #a2a9b8; letter-spacing: .5px; }
.acc-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: .15s; text-align: left; }
.acc-nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acc-nav-item:hover { background: var(--bg-soft); color: var(--text); }
.acc-nav-item.on { background: #17181c; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.acc-nav-item.on i { margin-left: auto; font-style: normal; opacity: .7; }
.acc-logout { margin-top: 14px; color: #d0453e; }
.acc-logout:hover { background: #fef2f2; color: #c12820; }
/* 右侧主区 */
.acc-main { min-width: 0; }
.acc-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.acc-crumb i { width: 6px; height: 6px; border-radius: 50%; background: #c9cede; }
.acc-crumb a:hover { color: var(--primary-deep); }
.acc-crumb span { color: #c3c9d6; }
.acc-crumb b { color: var(--text); font-weight: 600; }
.acc-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 12px; }
.acc-pagehead h1 { font-size: 25px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.acc-pagehead p { margin-top: 7px; font-size: 13.5px; color: var(--text-2); }
.acc-back { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--text); transition: .15s; }
.acc-back:hover { border-color: #c9cede; box-shadow: var(--shadow); }
.acc-body { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.acc-main > .acc-facts3, .acc-main > .acc-grid2, .acc-main > .acc-card, .acc-main > .acc-compose, .acc-main > .acc-sec-head, .acc-main > .acc-invite-hero { margin-top: 20px; }
.acc-main > .acc-safe { margin-top: 26px; }
/* 通用卡片 */
.acc-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 24px; }
.acc-card h2 { font-size: 16.5px; font-weight: 800; color: var(--text); }
.acc-card-sub { margin-top: 5px; font-size: 12.5px; color: var(--text-2); }
.acc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.acc-more { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.acc-more:hover { color: var(--text); }
/* 按钮 */
.acc-btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 22px; border-radius: 999px; background: #17181c; color: #fff; font-size: 13.5px; font-weight: 700; transition: .18s; }
.acc-btn-dark:hover { background: #000; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.acc-btn-dark:disabled { opacity: .55; pointer-events: none; }
.acc-btn-dark.sm { height: 38px; padding: 0 16px; font-size: 12.5px; }
.acc-btn-dark.sm svg { width: 14px; height: 14px; }
.acc-btn-dark.full { width: 100%; }
.acc-btn-dark.done { background: #0e9f6e; }
.acc-btn-dark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13.5px; font-weight: 700; transition: .18s; }
.acc-btn-ghost:hover { border-color: #c9cede; box-shadow: var(--shadow); }
.acc-btn-ghost svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 三列概览 */
.acc-facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acc-fact { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; }
.acc-fact-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #f4f5f8; color: var(--text); margin-bottom: 22px; }
.acc-fact-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-fact em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); }
.acc-fact b { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 800; color: var(--text); word-break: break-all; }
.acc-fact b i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
/* 总览 hero */
.acc-grid2 { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: stretch; }
.acc-tag { font-style: normal; padding: 4px 10px; border-radius: 999px; background: #f4f5f8; border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.acc-bal-head { display: flex; align-items: flex-start; gap: 12px; }
.acc-bal-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f8; color: var(--text); }
.acc-bal-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-bal-t { flex: 1; min-width: 0; }
.acc-bal-t b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.acc-bal-t span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.acc-bal-num { margin-top: 14px; font-size: 44px; font-weight: 900; color: var(--text); line-height: 1.05; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.acc-bal-num i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--text-2); margin-left: 8px; letter-spacing: 0; }
.acc-bal-desc { margin-top: 10px; font-size: 12.5px; line-height: 19px; color: var(--text-2); }
.acc-bal-btns { display: flex; gap: 10px; margin-top: 16px; }
.acc-mini2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.acc-mini2 > div { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-radius: 13px; border: 1px dashed var(--border); background: #fafbfc; }
.acc-mini2 svg { width: 15px; height: 15px; fill: none; stroke: #9aa1ad; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acc-mini2 em { font-style: normal; font-size: 12px; color: var(--text-2); flex: 1; }
.acc-mini2 b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
/* 会员卡 */
.acc-member { display: flex; flex-direction: column; }
.acc-member-head { display: flex; align-items: center; justify-content: space-between; }
.acc-crown { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #17181c; color: #ffd76a; }
.acc-crown svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-member-label { margin-top: 16px; font-size: 12px; color: var(--text-2); }
.acc-member-plan { display: block; margin-top: 3px; font-size: 19px; font-weight: 800; color: var(--text); }
.acc-member-desc { margin-top: 8px; font-size: 12.5px; line-height: 19px; color: var(--text-2); }
.acc-member .acc-btn-full { margin-top: auto; }
/* 积分构成 */
.acc-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.acc-sec-head h2 { font-size: 17px; font-weight: 800; color: var(--text); }
.acc-sec-head span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.acc-sec-head a { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; padding-bottom: 2px; }
.acc-sec-head a:hover { color: var(--primary-deep); }
.acc-compose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acc-compose-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; }
.acc-compose-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.acc-comp-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; }
.acc-comp-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-comp-ico.orange { background: #fff4e0; color: #d97706; }
.acc-comp-ico.blue { background: #eef4ff; color: #2563eb; }
.acc-comp-ico.dark { background: #f4f5f8; color: #17181c; }
.acc-compose-item > b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.acc-compose-item > strong { display: block; margin-top: 4px; font-size: 27px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.acc-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.acc-compose-foot span { font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.acc-compose-foot em { font-style: normal; font-size: 11px; color: #a2a9b8; text-align: right; }
/* 积分流水（复刻 diantuai：圆图标 + 三行主列 + 变动/余额双列） */
.acc-flow { padding: 8px 22px; }
.acc-flow-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--border); }
.acc-flow-row:last-child { border-bottom: 0; }
.acc-flow-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.acc-flow-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-flow-ico.use { background: #fdeef2; color: #e11d48; }
.acc-flow-ico.hold { background: #eef4ff; color: #2563eb; }
.acc-flow-ico.back { background: #ecfdf5; color: #059669; }
.acc-flow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acc-flow-main > b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.acc-flow-src { font-size: 10.5px; font-weight: 600; color: #a2a9b8; background: #f4f5f8; border-radius: 5px; padding: 2px 7px; }
.acc-flow-main > span { font-size: 12px; color: var(--text-2); }
.acc-flow-main > time { font-size: 11.5px; color: #b3b9c6; font-variant-numeric: tabular-nums; }
.acc-flow-num { flex: none; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.acc-flow-num > b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.acc-flow-num > b.back { color: #059669; }
.acc-flow-num > span { font-size: 11.5px; color: #a2a9b8; font-variant-numeric: tabular-nums; }
.acc-empty { padding: 24px 0 14px; text-align: center; font-size: 13px; color: #b3b9c6; }
/* 总览下半区：流水 + 常用入口两列 */
.acc-lower { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; margin-top: 26px; }
.acc-sec-head.in { margin-top: 4px; }
.acc-sec-head h2 { display: flex; align-items: center; gap: 8px; }
.acc-sec-head h2 svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--text-2); }
.acc-count { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: #f1f3f8; border-radius: 999px; padding: 2px 9px; }
.acc-shortcut { padding: 22px 20px; }
.acc-shortcut > b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.acc-shortcut > span { display: block; margin: 4px 0 8px; font-size: 12px; color: var(--text-2); }
.acc-sc-item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px dashed var(--border); transition: .15s; }
.acc-sc-item:last-child { border-bottom: 0; }
.acc-sc-item > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f4f5f8; color: var(--text-2); }
.acc-sc-item > span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-sc-item > div { flex: 1; min-width: 0; }
.acc-sc-item b { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.acc-sc-item em { display: block; margin-top: 1px; font-style: normal; font-size: 11px; color: #a2a9b8; }
.acc-sc-item > svg:last-child { flex: none; width: 14px; height: 14px; fill: none; stroke: #c3c9d6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: .15s; }
.acc-sc-item:hover > svg:last-child { stroke: var(--text); transform: translateX(2px); }
/* 充值弹窗（复刻 diantuai 购买积分） */
.rc-overlay { z-index: 1100; }
.rc-modal { position: relative; z-index: 1; width: 880px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; display: flex; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(15, 23, 42, .3); animation: amPop .28s cubic-bezier(.2, .9, .3, 1.2); }
.rc-side { flex: 0 0 260px; padding: 34px 26px 22px; background: linear-gradient(165deg, #fdf6ec 0%, #f6f9ff 55%, #fdf4f4 100%); display: flex; flex-direction: column; }
.rc-side-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: #fff; color: #17181c; box-shadow: 0 8px 20px rgba(23, 24, 28, .12); }
.rc-side-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rc-side h3 { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 800; color: var(--text); }
.rc-side > p { margin-top: 5px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.rc-perks { flex: 1; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.rc-perk { display: flex; align-items: flex-start; gap: 10px; }
.rc-perk > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.85); color: #17181c; box-shadow: 0 3px 8px rgba(23,24,28,.06); }
.rc-perk > span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rc-perk b { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.rc-perk em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--text-2); }
.rc-side-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(23,24,28,.12); font-size: 11.5px; color: var(--text-2); }
.rc-side-foot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rc-main { flex: 1; min-width: 0; padding: 22px 26px 24px; display: flex; flex-direction: column; }
.rc-user { display: flex; align-items: center; gap: 11px; }
.rc-user-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #17181c; color: #fff; font-size: 16px; font-weight: 800; }
.rc-user > div { flex: 1; min-width: 0; }
.rc-user > div b { display: block; font-size: 14px; font-weight: 800; color: var(--text); }
.rc-user > div span { font-size: 12px; color: var(--text-2); }
.rc-user .am-close { position: static; background: #f4f5f8; }
.rc-tabs { display: flex; gap: 8px; margin-top: 16px; padding: 5px; border-radius: 12px; background: #f4f5f8; }
.rc-tab { flex: 1; height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: .15s; }
.rc-tab.on { background: #fff; color: var(--text); font-weight: 800; box-shadow: 0 2px 8px rgba(23,24,28,.08); }
.rc-panel { margin-top: 18px; }
.rc-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rc-pack { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 16px 14px; border: 1.5px solid var(--border); border-radius: 16px; background: #fff; text-align: left; transition: .15s; }
.rc-pack:hover { border-color: #c9cfdb; }
.rc-pack.on { border-color: #17181c; box-shadow: 0 8px 22px rgba(23, 24, 28, .12); }
.rc-pack-rec { position: absolute; top: -1px; left: -1px; padding: 3px 10px; border-radius: 15px 0 12px 0; background: #17181c; color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; }
.rc-pack-check { position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #17181c; color: #fff; }
.rc-pack-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rc-pack.on .rc-pack-check { display: grid; }
.rc-pack > b { font-size: 14.5px; font-weight: 800; color: var(--text); }
.rc-pack-desc { font-size: 11.5px; color: var(--text-2); line-height: 16px; min-height: 32px; }
.rc-pack > strong { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.rc-pack > strong i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.rc-pack-price { font-size: 12px; color: var(--text-2); }
.rc-pack-price em { font-style: normal; font-size: 19px; font-weight: 800; color: var(--text); }
.rc-pack-unit { padding: 5px 10px; border-radius: 8px; background: #f4f5f8; font-size: 11px; font-weight: 600; color: var(--text-2); }
.rc-pack-tags { display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.rc-pack-tags i { font-style: normal; font-size: 10.5px; color: var(--text-2); }
.rc-checkout { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 15px 18px; border-radius: 14px; background: #f8f9fc; border: 1px solid var(--border); }
.rc-ck-item em { display: block; font-style: normal; font-size: 11px; color: #a2a9b8; }
.rc-ck-item b { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.rc-ck-item b i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-2); }
.rc-pay { display: flex; align-items: center !important; gap: 5px; }
.rc-pay svg { width: 16px; height: 16px; }
.rc-amt { font-size: 21px !important; }
.rc-amt i { font-size: 12px; }
.rc-pay-btn { margin-top: 0 !important; width: auto !important; padding: 0 26px; height: 44px; flex: none; margin-left: auto; }
.rc-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: #a2a9b8; }
.rc-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.rc-member-hero { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: linear-gradient(120deg, #fdf6ec, #fff7f0); border: 1px solid #f5e8d5; }
.rc-member-hero svg { flex: none; width: 34px; height: 34px; fill: #d97706; stroke: #d97706; stroke-width: 1.5; }
.rc-member-hero b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.rc-member-hero span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 18px; }
.rc-member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rc-member-item { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.rc-member-item b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.rc-member-item span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-2); }
.rc-member .rc-pay-btn { width: 100% !important; margin-top: 18px !important; }
/* 第二十二批：套餐拉取失败 / 后台未配置套餐时的空态（不再退回「能看不能买」的本地写死套餐） */
.rc-empty { padding: 40px 24px; text-align: center; }
.rc-empty b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.rc-empty span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 20px; }
/* 通用页卡 / 空态 / 筛选 / 表格 / FAQ */
.acc-pagecard { padding: 28px 30px; }
.acc-pagecard h2 { font-size: 16px; font-weight: 800; color: var(--text); }
.acc-card-sub { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.acc-emptybig { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 30px; }
.acc-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f4f5f8; color: #a2a9b8; }
.acc-empty-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-emptybig > b { margin-top: 16px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.acc-emptybig > p { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.acc-emptybig .acc-btn-dark, .acc-emptybig a.acc-btn-dark { margin-top: 18px; width: auto; padding: 0 24px; display: inline-flex; align-items: center; gap: 7px; height: 44px; text-decoration: none; }
.acc-emptybig .acc-btn-dark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-filter { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.acc-fchip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: .15s; }
.acc-fchip.on { background: #17181c; border-color: #17181c; color: #fff; }
.acc-fcount { margin-left: auto; font-size: 12px; color: #a2a9b8; }
.acc-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; }
.acc-table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; color: #a2a9b8; border-bottom: 1px solid var(--border); }
.acc-table td { padding: 12px; border-bottom: 1px dashed var(--border); color: var(--text-2); font-variant-numeric: tabular-nums; }
.acc-table td b { color: var(--text); font-weight: 700; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-faq { margin-top: 14px; display: flex; flex-direction: column; }
.acc-faq-item { border-bottom: 1px dashed var(--border); }
.acc-faq-item:last-child { border-bottom: 0; }
.acc-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 2px; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; }
.acc-faq-item summary::-webkit-details-marker { display: none; }
.acc-faq-item summary i { font-style: normal; font-size: 18px; font-weight: 400; color: #a2a9b8; transition: .2s; }
.acc-faq-item[open] summary i { transform: rotate(45deg); }
.acc-faq-item > p { padding: 0 2px 15px; font-size: 13px; color: var(--text-2); line-height: 21px; }
@media (max-width: 900px) {
  .acc-lower { grid-template-columns: 1fr; }
  .rc-modal { flex-direction: column; width: 480px; }
  .rc-side { flex: none; padding-bottom: 18px; }
  .rc-perks { display: none; }
  .rc-packs { grid-template-columns: 1fr; }
  .rc-checkout { flex-wrap: wrap; }
  .rc-pay-btn { margin-left: 0; width: 100% !important; }
}
/* 个人资料 */
.acc-profile-grid { display: grid; grid-template-columns: 210px 1fr; gap: 20px; margin-top: 18px; }
.acc-avatar-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 14px; border: 1px dashed var(--border); background: #fafbfc; }
.acc-avatar-box > b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.acc-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: #17181c; color: #fff; font-size: 30px; font-weight: 800; }
.acc-avatar-tip { font-size: 11.5px; line-height: 17px; color: #a2a9b8; }
.acc-formrow { margin-top: 16px; }
.acc-formrow:first-child { margin-top: 0; }
.acc-formrow > label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.acc-formrow > label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #a2a9b8; }
.acc-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #f8f9fc; transition: .15s; }
.acc-input:focus-within { border-color: #17181c; background: #fff; }
.acc-input input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; color: var(--text); }
.acc-input input:disabled { color: #aab0be; cursor: not-allowed; }
.acc-input input::placeholder { color: #aab0be; }
.acc-profile-form .acc-btn-dark { margin-top: 20px; }
/* 邀请返佣 */
.acc-invite-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: 20px; border: 1px solid #f3e4c8; background: linear-gradient(115deg, #fdf8ee 0%, #faf0d8 60%, #f7e7c2 100%); box-shadow: 0 12px 32px rgba(180, 140, 60, .12); }
.acc-invite-badges { display: flex; align-items: center; gap: 10px; }
.acc-invite-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; color: #8c6a1f; }
.acc-invite-eyebrow svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.acc-invite-badges em { font-style: normal; padding: 4px 11px; border-radius: 999px; background: #17181c; color: #ffd76a; font-size: 11.5px; font-weight: 700; }
.acc-invite-l h2 { margin-top: 12px; font-size: 21px; font-weight: 800; color: var(--text); }
.acc-invite-l p { margin-top: 8px; max-width: 520px; font-size: 12.5px; line-height: 20px; color: #8a7a55; }
.acc-invite-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.acc-invite-coin { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 24px; background: #fff; border: 1px solid #f3e4c8; box-shadow: 0 12px 26px rgba(180, 140, 60, .18); transform: rotate(4deg); }
.acc-invite-coin em { font-style: normal; font-size: 25px; font-weight: 900; color: #d97706; }
.acc-invite-coin span { font-size: 11px; color: #a2a9b8; margin-top: 2px; }
.acc-invite-badge2 { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid #f3e4c8; box-shadow: 0 8px 20px rgba(180, 140, 60, .14); }
.acc-invite-badge2 em { display: block; font-style: normal; font-size: 10.5px; color: #a2a9b8; }
.acc-invite-badge2 b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.acc-invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acc-linkbox { margin-top: 12px; }
.acc-linkbox > label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.acc-linkrow { display: flex; gap: 8px; }
.acc-linkrow input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 11px; background: #f8f9fc; font-size: 12.5px; color: var(--text); }
.acc-step2 { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border); background: #fafbfc; margin-top: 10px; }
.acc-step2:first-of-type { margin-top: 12px; }
.acc-step2 b { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); }
.acc-step2 span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); line-height: 18px; }
.acc-invite-empty { padding: 26px 0 16px; text-align: center; }
.acc-invite-empty b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.acc-invite-empty span { display: block; margin-top: 5px; font-size: 12.5px; color: #a2a9b8; }
.acc-rule { margin-top: 16px; font-size: 12px; line-height: 19px; color: #a2a9b8; }
.acc-sub-hd { margin: 16px 0 2px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: var(--text-2); }
/* 账号安全（修改密码） */
.acc-pw { max-width: 560px; }
.acc-pw-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acc-pw-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(140deg, #f4f5f8, #e8eaf1); color: #17181c; }
.acc-pw-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-pw-head h2 { font-size: 16.5px; font-weight: 800; color: var(--text); }
.acc-pw-head p { margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.acc-pw .acc-btn-dark { margin-top: 22px; width: 100%; }
.pwrow { margin-top: 18px; }
/* 密码强度条 */
.pw-meter { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: #e8eaf1; transition: .2s; }
.pw-meter span { flex: none; min-width: 76px; text-align: right; font-size: 11.5px; color: var(--text-2); }
.pw-meter.s1 i:nth-child(1) { background: #f87171; }
.pw-meter.s1 span { color: #dc2626; }
.pw-meter.s2 i:nth-child(-n+2) { background: #fbbf24; }
.pw-meter.s2 span { color: #d97706; }
.pw-meter.s3 i { background: #34d399; }
.pw-meter.s3 span { color: #059669; }
/* 底部安全提示 */
.acc-safe { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #a2a9b8; }
.acc-safe svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* 状态徽章（沿用） */
.acchip { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f1f3f8; color: var(--text-2); }
.acchip-ok { background: #ecfdf5; color: #059669; }
.acchip-run { background: #fffbeb; color: #d97706; }
.acchip-fail { background: #fef2f2; color: #dc2626; }
@media (max-width: 900px) {
  .acc-wrap { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-grid2 { grid-template-columns: 1fr; }
  .acc-compose { grid-template-columns: 1fr; }
  .acc-facts3, .acc-invite-stats { grid-template-columns: 1fr; }
  .acc-profile-grid { grid-template-columns: 1fr; }
  .acc-invite-hero { flex-direction: column; align-items: flex-start; }
  .acc-invite-r { flex-direction: row; align-items: center; }
}

/* ============================================================
   账户中心（前台）— 消息中心 / 商品管理 / 未读角标
   ============================================================ */
.acc-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.acc-btn-ghost.sm { height: 36px; padding: 0 16px; font-size: 12.5px; }
.acc-msglist { margin-top: 6px; }
.acc-msgitem { display: flex; gap: 14px; padding: 15px 4px; border-bottom: 1px dashed var(--border); cursor: pointer; transition: .15s; }
.acc-msgitem:last-child { border-bottom: 0; }
.acc-msgitem:hover { background: #fafbfe; }
.acc-msgitem > div { flex: 1; min-width: 0; }
.acc-msgitem b { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.acc-msgitem.unread b { color: var(--primary-deep); }
.acc-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex: none; }
.acc-msgitem p { margin-top: 5px; font-size: 13px; color: var(--text-2); line-height: 20px; }
.acc-msgitem em { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-style: normal; font-size: 11.5px; color: #a2a9b8; font-variant-numeric: tabular-nums; }
.acc-prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.acc-proditem { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 9px; background: #fff; transition: .18s; }
.acc-proditem:hover { border-color: #c9cede; box-shadow: var(--shadow); }
.acc-prodimg { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f4f5f8; }
.acc-prodimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-proditem b { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-proditem em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: #a2a9b8; font-variant-numeric: tabular-nums; }
.acc-proddel { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(23,24,28,.55); color: #fff; font-size: 12px; opacity: 0; transition: .15s; }
.acc-proditem:hover .acc-proddel { opacity: 1; }
.acc-proddel:hover { background: #dc2626; }

/* ===== AI 音乐工作台 ===== */
.mu-h-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; color: var(--primary); }
.mu-count { float: right; font-weight: 500; font-size: 11.5px; color: var(--text-2); }
.mu-count b { color: var(--text); font-weight: 700; }
.studio label em { font-style: normal; font-weight: 400; font-size: 11px; color: #a2a9b8; margin-left: 4px; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: .15s; line-height: 1.4; }
.mu-chip:hover { color: var(--text); border-color: #d5d9e6; }
.mu-chip.on { background: var(--grad-blue); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.mu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mu-ideas { display: flex; flex-direction: column; gap: 8px; }
.mu-idea { text-align: left; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); cursor: pointer; transition: .15s; }
.mu-idea:hover { border-color: var(--primary); background: #f0f6ff; }
.mu-idea b { display: block; font-size: 13px; color: var(--text); }
.mu-idea span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-go { width: 100%; height: 47px; font-size: 15px; letter-spacing: 3px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mu-go .i { width: 18px; height: 18px; }
.mu-tip { color: var(--text-2); font-size: 12.5px; margin-top: 12px; min-height: 18px; }
.mu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mu-head h3 { font-size: 15px; color: var(--text); }
.mu-head h3 span { font-size: 12px; font-weight: 500; color: var(--text-2); margin-left: 6px; }
.mu-refresh { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: .15s; }
.mu-refresh:hover { color: var(--text); border-color: #d5d9e6; }
.mu-refresh svg { width: 13px; height: 13px; }
.mu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-content: start; }
.mu-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); padding: 15px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mu-top { display: flex; gap: 12px; align-items: center; }
.mu-disc { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 50% 50%, #4b5cf0 0 18%, #17181c 19% 60%, #2a2c34 61% 68%, #17181c 69%); box-shadow: 0 4px 12px rgba(23, 24, 28, .25); }
.mu-disc svg { width: 20px; height: 20px; }
.mu-disc.spin { animation: mu-spin 5s linear infinite; }
@keyframes mu-spin { to { transform: rotate(360deg); } }
.mu-info { min-width: 0; flex: 1; }
.mu-title { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; color: var(--text-2); }
.mu-status { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mu-st-q { background: #f1f2f6; color: #7a8195; }
.mu-st-r { background: #e8f1fe; color: #2563eb; }
.mu-st-r::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2563eb; margin-right: 5px; animation: mu-blink 1.1s ease infinite; }
.mu-st-ok { background: #e7f7ee; color: #159957; }
.mu-st-fail { background: #fdecec; color: #dc2626; }
@keyframes mu-blink { 50% { opacity: .25; } }
.mu-audio { width: 100%; height: 40px; border-radius: 10px; }
.mu-err { padding: 8px 11px; border-radius: 10px; background: #fdecec; color: #b91c1c; font-size: 12px; }
.mu-acts { display: flex; align-items: center; gap: 4px; border-top: 1px dashed var(--border); padding-top: 9px; }
.mu-act { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; font-size: 12px; color: var(--text-2); background: none; border: none; cursor: pointer; transition: .15s; }
.mu-act:hover { background: var(--bg-soft); color: var(--text); }
.mu-act svg { width: 13px; height: 13px; }
.mu-act-del:hover { background: #fdecec; color: #dc2626; }
.mu-empty { grid-column: 1 / -1; text-align: center; padding: 70px 0 60px; color: var(--text-2); }
.mu-empty svg { width: 44px; height: 44px; color: #c3c9d8; }
.mu-empty p { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.mu-empty span { display: block; margin-top: 5px; font-size: 12.5px; }
@media (max-width: 860px) { .mu-row { grid-template-columns: 1fr; } .mu-list { grid-template-columns: 1fr; } }

/* ===== 充值弹窗：支付方式选择与支付阶段 ===== */
.rc-pays { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.rc-pay-opt { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-soft); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .15s; }
.rc-pay-opt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rc-pay-opt:hover { border-color: #c9cfdd; color: var(--text); }
.rc-pay-opt.on { border-color: var(--primary); background: #eef4ff; color: var(--primary); box-shadow: 0 2px 8px rgba(37, 99, 235, .14); }
.rc-stage { padding: 26px 10px 10px; text-align: center; }
.rc-stage-head b { font-size: 16px; color: var(--text); }
.rc-stage-head span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-2); }
.rc-qr { width: 196px; height: 196px; margin: 20px auto 8px; border: 1px solid var(--border); border-radius: 14px; padding: 9px; background: #fff; box-shadow: 0 6px 22px rgba(17, 18, 20, .08); }
.rc-qr svg { width: 100%; height: 100%; display: block; }
.rc-stage-tip { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.rc-stage-tip .link { color: var(--primary); cursor: pointer; }
.rc-stage-status { margin-top: 12px; font-size: 12.5px; color: var(--text-2); min-height: 18px; }
.rc-stage-status.ok { color: #159957; font-weight: 700; }
.rc-stage-status.err { color: #dc2626; font-weight: 600; }
.rc-stage-acts { margin-top: 14px; }
.rc-stage-acts .btn { padding: 8px 18px; border-radius: 10px; border: 1px solid var(--border); background: none; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.rc-stage-acts .btn:hover { color: var(--text); border-color: #c9cfdd; }

/* ================= 作品分享到灵感（我的作品卡片） ================= */
.task-card .tk-media { position: relative; }
.tk-share { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(22, 163, 74, .92); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, transform .15s; font-family: inherit; white-space: nowrap; }
.tk-share:hover { background: rgba(21, 128, 61, .96); transform: translateY(-1px); }
.tk-share svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-share.is-pending { background: rgba(234, 138, 10, .94); cursor: default; }
.tk-share.is-ok { background: rgba(5, 150, 105, .94); cursor: default; }
.tk-share.is-rej { background: rgba(23, 24, 28, .92); }

/* ================= 灵感大厅：作者署名 ================= */
.cu-author { display: inline-flex; align-items: center; gap: 4px; }
.cu-uico { width: 11px; height: 11px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cu-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cu-tag-author { display: inline-flex; align-items: center; gap: 5px; }

/* 任务中心 / 生成结果区 的分享按钮状态 */
.tc-act svg { width: 13px; height: 13px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-act:disabled { opacity: .6; cursor: default; }
.tc-act.is-pending { color: #b45309; border-color: #f0d9a8; background: #fdf7e8; cursor: default; }
.tc-act.is-ok { color: #047857; border-color: #bfe3d3; background: #eefaf4; cursor: default; }
.tc-act.is-rej { color: #b91c1c; border-color: #f3c1cb; background: #fdeff1; }
.gw-img { position: relative; }
.gw-share-tip { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.gw-share-tip svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 分享按钮防折行 */
.tc-actions .tc-act { white-space: nowrap; }

/* ===== 免费赚积分（#/earn：每日签到 + 邀请返佣） ===== */
.earn-page { padding: 22px clamp(16px, 2.4vw, 40px) 64px; display: flex; flex-direction: column; gap: 20px; }
.earn-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; padding: 28px clamp(22px, 3vw, 40px); border-radius: 22px; border: 1px solid rgba(0,0,0,.05); background: linear-gradient(135deg, #fff8ee 0%, #ffeedd 52%, #ffe6ec 100%); box-shadow: 0 18px 50px rgba(120,80,30,.08); }
.earn-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 6%, rgba(255,183,94,.34), transparent 32%), radial-gradient(circle at 62% 118%, rgba(255,255,255,.8), transparent 40%); }
.earn-hero > * { position: relative; }
.earn-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); color: #9a5b16; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.earn-eyebrow svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.earn-hero h1 { margin-top: 15px; font-size: clamp(27px, 3vw, 38px); font-weight: 900; letter-spacing: -.045em; color: #1d1810; }
.earn-hero-l > p { margin-top: 11px; max-width: 620px; font-size: 14px; line-height: 27px; color: #6b5b48; }
.earn-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.earn-hero-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); font-size: 12.5px; font-weight: 700; color: #8a5a1c; }
.earn-hero-tags svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.earn-hero-r { display: flex; gap: 12px; flex-wrap: wrap; }
.earn-hero-stat { min-width: 124px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: 0 10px 24px rgba(120,80,30,.08); }
.earn-hero-stat em { display: block; font-style: normal; font-size: 12px; color: #8a7550; }
.earn-hero-stat b { display: block; margin-top: 6px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: #241a10; font-variant-numeric: tabular-nums; }
.earn-hero-stat span { display: block; margin-top: 4px; font-size: 11.5px; color: #a08a63; }
.earn-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
.earn-sign-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #fffaf2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); }
.earn-sign-streak em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); }
.earn-sign-streak b { display: block; margin-top: 4px; font-size: 30px; font-weight: 900; letter-spacing: -.03em; color: #b45309; font-variant-numeric: tabular-nums; }
.earn-sign-streak b i { font-style: normal; font-size: 13px; font-weight: 700; color: #a16207; margin-left: 3px; }
.earn-sign-streak span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-2); }
.earn-sign-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ff8a3d, #ff5f6d); color: #fff; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 12px 26px rgba(255,95,109,.3); transition: .18s; }
.earn-sign-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(255,95,109,.38); }
.earn-sign-btn:disabled, .earn-sign-btn.done { background: #eef0f4; color: #98a0b0; box-shadow: none; cursor: default; }
.earn-sign-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.earn-dots { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; margin-top: 14px; }
.earn-dot { position: relative; padding: 10px 4px 8px; border-radius: 12px; background: #f6f7fa; text-align: center; color: #98a0b0; }
.earn-dot b { display: block; font-size: 13.5px; font-weight: 800; }
.earn-dot span { display: block; margin-top: 3px; font-size: 10.5px; }
.earn-dot.on { background: linear-gradient(135deg, #fff1de, #ffe4ec); color: #c2410c; }
.earn-dot.on b { color: #b45309; }
.earn-dot.gold { box-shadow: inset 0 0 0 1.5px #f5b64a; }
.earn-dot i { position: absolute; top: -8px; right: -4px; padding: 1px 6px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.earn-tip { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #b45309; font-size: 12.5px; font-weight: 600; }
.earn-tip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.earn-tip b { font-weight: 900; }
.earn-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.earn-facts .acc-fact { padding: 12px 14px; border-radius: 14px; box-shadow: none; background: #f8f9fc; }
.earn-facts .acc-fact-ico { width: 30px; height: 30px; margin-bottom: 10px; border-radius: 9px; }
.earn-facts .acc-fact-ico svg { width: 15px; height: 15px; }
.earn-facts .acc-fact em { font-size: 11.5px; }
.earn-facts .acc-fact b { font-size: 14.5px; }
.earn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.earn-step { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: #f7f9ff; font-size: 12px; color: #4b5563; }
.earn-step b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 11.5px; }
.earn-flow { padding: 4px 0 0; }
.earn-flow .acc-flow-row:last-child { border-bottom: 0; }
.earn-more { display: inline-block; margin-top: 14px; font-weight: 700; color: #2563eb; }
.earn-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.earn-way { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.earn-way > div { min-width: 0; }
.earn-way b { font-size: 14px; font-weight: 800; color: var(--text); }
.earn-way p { margin-top: 6px; font-size: 12.5px; line-height: 20px; color: var(--text-2); }
.earn-way > em { margin-left: auto; flex: none; font-style: normal; font-size: 13px; font-weight: 800; color: #e11d48; }
.acc-comp-ico.green { background: #e7f8f1; color: #059669; }
@media (max-width: 1080px) { .earn-grid, .earn-ways { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .earn-steps, .earn-facts { grid-template-columns: 1fr; } .earn-sign-box { flex-direction: column; align-items: flex-start; } .earn-sign-btn { width: 100%; } .earn-hero-r { width: 100%; } .earn-hero-stat { flex: 1; } }

.earn-hero-l { flex: 1 1 420px; min-width: 0; }

/* ================= 应用中心（#/tools，复刻点图 AI 布局） ================= */
.tl2-page { min-height: calc(100vh - 60px); background: #f7f8fa; }
.tl2-top { display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--border); background: #fff; padding: 0 34px; height: 64px; }
.tl2-brand h1 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tl2-brand p { margin: 1px 0 0; color: var(--ink-3); font-size: 11.5px; }
.tl2-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 460px; }
.tl2-search svg { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.tl2-search input { width: 100%; border: 1px solid transparent; border-radius: 999px; background: #f2f3f5; padding: 9px 16px 9px 36px; color: var(--ink); font-size: 13px; outline: none; transition: background-color .15s, border-color .15s, background .15s; }
.tl2-search input:focus { background: #fff; border-color: var(--brand-200, #bfd6ff); }
.tl2-body { max-width: 1200px; margin: 0 auto; padding: 26px 34px 60px; }
.tl2-sec + .tl2-sec { margin-top: 30px; }
.tl2-sec h2 { margin: 0 0 14px; color: var(--ink); font-size: 16px; font-weight: 800; }
.tl2-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.tl2-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 16px 16px 16px 18px; text-decoration: none; transition: box-shadow .18s, transform .18s, border-color .18s; }
.tl2-card:hover { border-color: var(--brand-200, #bfd6ff); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.tl2-card-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tl2-card-txt b { color: var(--ink); font-size: 14.5px; font-weight: 750; }
.tl2-card-txt p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 5px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.tl2-card-thumb { display: grid; place-items: center; width: 76px; height: 58px; flex-shrink: 0; border-radius: 10px; color: #fff; overflow: hidden; }
.tl2-card-thumb svg { width: 26px; height: 26px; }
/* 第二十五批：应用卡片官方封面图（与参考站 /apps 对齐）——铺满整个缩略块、恒定比例裁切 */
.tl2-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: #f2f4f8; }
.tl2-th-1 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tl2-th-2 { background: linear-gradient(135deg, #f472b6, #db2777); }
.tl2-th-3 { background: linear-gradient(135deg, #34d399, #059669); }
.tl2-th-4 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tl2-th-5 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tl2-none { padding: 70px 0; color: var(--ink-3); font-size: 13px; text-align: center; }

/* ================= 工具工作台（复刻点图 AI：左导航 + 中画布 + 右参数面板） ================= */
.ws-page { height: calc(100vh - 60px); padding: 8px; background: #dfe4ed; }
.ws-shell { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 18px 48px rgba(31, 42, 62, .12); }
.ws-head { display: flex; align-items: center; gap: 10px; height: 56px; flex-shrink: 0; border-bottom: 1px solid #e5eaf2; background: #fff; padding: 0 16px; }
.ws-logo { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: #2878ff; color: #fff; box-shadow: 0 10px 24px rgba(40, 120, 255, .24); }
.ws-logo svg { width: 17px; height: 17px; }
.ws-brand { color: #171d28; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.ws-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; border-radius: 999px; background: #eef5ff; padding: 5px 12px; color: #2878ff; font-size: 10px; font-weight: 800; }
.ws-badge i { display: inline-flex; }
.ws-badge svg { width: 12px; height: 12px; }
.ws-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e1e7f0; border-radius: 10px; color: #657084; font-size: 15px; text-decoration: none; transition: background-color .15s, color .15s; }
.ws-close:hover { background: #f5f7fa; color: #202633; }
.ws-body { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #f0f3fb; }

/* 左侧工具导航（rpSidebar，套用演示站样式） */
.ws-body .rp-side { width: 156px; flex-shrink: 0; border-right: 1px solid #eceef2; background: #fff; padding: 12px 10px; overflow-y: auto; }
.ws-body .rp-back { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; padding: 8px; border-radius: 9px; color: #30343b; font-size: 13px; font-weight: 700; text-decoration: none; }
.ws-body .rp-back:hover { background: #f5f6f8; }
.ws-body .rp-back svg { width: 14px; height: 14px; }
.ws-body .rp-cat + .rp-cat { margin-top: 10px; }
.ws-body .rp-cat-name { margin: 0 8px 4px; color: #9aa3b3; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ws-body .rp-nav { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: #666b74; font-size: 13px; font-weight: 550; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.ws-body .rp-nav:hover { border-color: #eceef1; background: #f7f8f9; color: #24282f; }
.ws-body .rp-nav.on { border-color: #e4e7eb; background: #f3f4f6; color: #20242b; font-weight: 650; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85); }
.rp-nav-ico { display: grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; color: #858b95; }
.rp-nav-ico svg { width: 16px; height: 16px; }
.rp-nav.on .rp-nav-ico { color: #3a3f47; }

/* 中间画布列 */
.ws-main { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; }
.ws-cbar { display: flex; align-items: center; gap: 8px; height: 46px; flex-shrink: 0; border-bottom: 1px solid #e3e8f0; background: #fff; padding: 0 14px; }
.ws-cbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 0; border-radius: 9px; padding: 0 12px; background: transparent; color: #5f697a; font-family: inherit; font-size: 12px; font-weight: 700; transition: background-color .15s, color .15s; }
.ws-cbtn svg { width: 14px; height: 14px; }
.ws-cbtn:hover { background: #f5f7fa; }
.ws-cbtn.on { background: #edf4ff; color: #2878ff; }
.ws-cicon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #5f697a; }
.ws-cicon svg { width: 15px; height: 15px; }
.ws-cicon:hover { background: #f5f7fa; }
.ws-cdanger:hover { background: #fef2f2; color: #e11d48; }
.ws-bsize { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.ws-bsize span { color: #5f697a; font-size: 11px; font-weight: 700; }
.ws-bsize input[type=range] { width: 120px; accent-color: #2878ff; }
.ws-bsize em { min-width: 22px; color: #8f99aa; font-size: 10px; font-style: normal; font-weight: 600; }
.ws-stage { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 20px 44px; }
.ws-demo { display: flex; justify-content: center; margin-bottom: 20px; }
.ws-demo video, .ws-demo img { width: 100%; max-width: 560px; aspect-ratio: 840 / 504; object-fit: contain; border-radius: 18px; background: #e8eef7; }
.ws-up { max-width: 620px; margin: 0 auto; }
.ws-upzone { display: flex; width: 100%; flex-direction: column; align-items: center; justify-content: center; min-height: 132px; border: 1px dashed #bcc9dc; border-radius: 16px; background: #fff; padding: 14px; text-align: center; cursor: pointer; transition: border-color .18s; font-family: inherit; }
.ws-upzone:hover { border-color: #8fb3ec; }
.ws-upico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #edf4ff; color: #2878ff; }
.ws-upico svg { width: 26px; height: 26px; }
.ws-upzone strong { margin-top: 14px; color: #222733; font-size: 15px; }
.ws-uphint { margin-top: 8px; max-width: 420px; color: #8a95a7; font-size: 12px; line-height: 20px; }
.ws-upgo { margin-top: 14px; border-radius: 10px; background: #2878ff; padding: 9px 20px; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 10px 24px rgba(40, 120, 255, .22); }
.ws-upnote { margin-top: 12px; color: #9aa3b3; font-size: 11px; text-align: center; }
.ws-imgbox { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; line-height: 0; }
.ws-imgbox canvas { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; border-radius: 12px; }
/* 第三十六批：笔迹数据不透明（蒙版选区按 alpha 判定），视觉半透明由这里的 opacity 呈现 */
#rp-mask { position: absolute; inset: 0; width: 100%; height: 100%; margin: auto; cursor: crosshair; touch-action: none; opacity: .35; }
.ws-reup { position: absolute; z-index: 3; right: 10px; top: 10px; border: 1px solid #e1e7f0; border-radius: 9px; background: rgba(255, 255, 255, .92); padding: 6px 12px; color: #454c58; font-family: inherit; font-size: 12px; font-weight: 650; }
.ws-reup:hover { background: #fff; border-color: #b9c8df; }

/* 右侧参数面板 */
.ws-panel { display: flex; flex-direction: column; width: 320px; flex-shrink: 0; border-left: 1px solid #e3e8f0; background: #fff; }
.ws-pbody { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.ws-ptag { color: #2878ff; font-size: 11px; font-weight: 800; }
.ws-ptitle h2 { margin: 4px 0 0; color: #171d28; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.ws-pdescr { margin: 8px 0 0; color: #7c8799; font-size: 12px; line-height: 20px; }
.ws-field { display: block; margin-top: 16px; }
.ws-flrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ws-flrow > span:first-child { color: #222733; font-size: 13px; font-weight: 700; }
.ws-freq { color: #9aa3b3; font-size: 11px; }
.ws-input { width: 100%; height: 42px; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; padding: 0 12px; color: #222733; font-family: inherit; font-size: 13px; font-weight: 550; outline: none; transition: border-color .15s, box-shadow .15s; }
.ws-input:focus { border-color: #2878ff; box-shadow: 0 0 0 4px rgba(40, 120, 255, .1); }
.ws-ta { height: auto; padding: 10px 12px; resize: none; line-height: 22px; }
.ws-fhint { margin: 6px 0 0; color: #929dae; font-size: 10px; line-height: 16px; }
.ws-checkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; border: 1px solid #e1e7f0; border-radius: 12px; background: #f8faff; padding: 12px; cursor: pointer; }
.ws-ck-txt strong { display: block; color: #303849; font-size: 12px; }
.ws-ck-txt small { display: block; margin-top: 4px; color: #929dae; font-size: 10px; }
.ws-ck { width: 16px; height: 16px; flex-shrink: 0; accent-color: #2878ff; }
.ws-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-countbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; border: 1px solid #e1e7f0; border-radius: 12px; background: #f8faff; padding: 12px; }
.ws-countbox strong { display: block; color: #303849; font-size: 12px; }
.ws-countbox p { margin: 4px 0 0; color: #929dae; font-size: 10px; }
.ws-step { display: inline-flex; align-items: center; height: 40px; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 10px; background: #fff; }
.ws-step button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: #657084; font-family: inherit; font-size: 17px; }
.ws-step button:hover:not(:disabled) { background: #f7f9fc; }
.ws-step button:disabled { opacity: .3; cursor: not-allowed; }
.ws-step span { min-width: 34px; text-align: center; color: #273142; font-size: 13px; font-weight: 800; }
.ws-pfoot { flex-shrink: 0; border-top: 1px solid #e3e8f0; background: #fff; padding: 14px 16px; }
.ws-go { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: #2878ff; padding: 0 16px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px rgba(40, 120, 255, .26); transition: transform .15s, background-color .15s, box-shadow .15s; }
.ws-go:hover:not(:disabled) { background: #176bef; transform: translateY(-1px); }
.ws-go:disabled { background: #aeb8c8; box-shadow: none; cursor: not-allowed; transform: none; }
.ws-go.busy { opacity: .7; pointer-events: none; }
.ws-pnote { margin: 8px 0 0; color: #9aa3b3; font-size: 10px; text-align: center; }
.rp-result { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; width: 100%; }
.rp-result a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.rp-result img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.rp-hint { margin: 6px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.rp-result-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 10px; }
.rp-result-head h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 800; }
.ws-result { max-width: 760px; margin: 18px auto 0; }

/* 绘图页结果卡片：继续编辑按钮 */
.gw-img { position: relative; }
/* 结果卡：图片可点击查看详情；分享/继续编辑并排显示在图片下方（不再悬浮重叠） */
.gw-img-media { cursor: zoom-in; }
.gw-img-acts { position: static; display: flex; align-items: stretch; gap: 8px; padding: 9px 10px 11px; background: #fff; border-top: 1px solid var(--gw-line-soft, #eef0f4); }
/* 第十一批：分享到灵感=绿色（文字单行不换行），继续编辑=橙色 */
.gw-img-acts .tk-share { position: static; flex: 1 1 0; min-width: 0; height: auto; justify-content: center; background: #171a18; }
.gw-img-acts .tk-share:hover { background: #000; }
.gw-img-acts .tk-share.is-pending { background: #fdf3e3; color: #b45309; cursor: default; }
.gw-img-acts .tk-share.is-ok { background: #eefaf4; color: #047857; }
.gw-img-acts .gw-img-act { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; }
.gw-img-acts .gw-img-act:hover { background: #ea580c; }
/* 纯大图预览弹窗（结果卡点击图片的兜底） */
.cu-modal-img:only-child { background: transparent; }
.cu-modal-img:only-child img, .cu-modal-img:only-child video { height: auto; width: auto; max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 14px; }
.gw-img-act { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 9px; background: rgba(23, 24, 28, .88); padding: 6px 11px; color: #fff; font-size: 12px; font-weight: 650; transition: background-color .15s; }
.gw-img-act svg { width: 13px; height: 13px; }
.gw-img-act:hover { background: rgba(37, 99, 235, .95); }

@media (max-width: 900px) {
  .tl2-top { flex-wrap: wrap; height: auto; padding: 12px 18px; gap: 12px; }
  .tl2-body { padding: 20px 18px 48px; }
  .ws-page { height: auto; padding: 0; background: transparent; }
  .ws-shell { height: auto; min-height: calc(100vh - 60px); border-radius: 0; box-shadow: none; }
  .ws-body { flex-direction: column; }
  .ws-body .rp-side { width: 100%; border-right: 0; border-bottom: 1px solid #eceef2; max-height: 190px; }
  .ws-panel { width: 100%; border-left: 0; border-top: 1px solid #e3e8f0; }
  .ws-cbar { flex-wrap: wrap; height: auto; padding: 8px 12px; }
}

/* ============ 应用工作台（复刻点图 AI /apps/<slug>） ============ */
.aw-shell .ws-head { height: 60px; }
.aw-tabs { display: flex; align-items: center; gap: 4px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.aw-tabs::-webkit-scrollbar { display: none; }
.aw-tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; flex-shrink: 0; border-radius: 999px; padding: 0 14px; color: #4c5566; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.aw-tab i { display: inline-flex; }
.aw-tab i svg { width: 15px; height: 15px; }
.aw-tab:hover { background: #f3f5f9; color: #20242c; }
.aw-tab.on { background: #17181c; color: #fff; box-shadow: 0 8px 20px rgba(23, 24, 28, .22); }
.aw-body { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #f6f6f8; }
.aw-main { flex: 1; min-width: 0; overflow-y: auto; padding: 34px 30px 60px; }
.aw-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.aw-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #fff; border: 1px solid #ffe1b8; padding: 5px 13px; color: #d97706; font-size: 11px; font-weight: 800; box-shadow: 0 6px 16px rgba(217, 119, 6, .1); }
.aw-badge svg { width: 12px; height: 12px; }
.aw-hero h1 { margin: 14px 0 0; color: #17181c; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.045em; }
.aw-hero p { margin: 10px auto 0; max-width: 620px; color: #7b8494; font-size: 13px; line-height: 22px; }
.aw-showcase { max-width: 860px; margin: 26px auto 0; }
.aw-sc-card { border-radius: 26px; background: #fff; border: 1px solid #ececef; padding: 16px; box-shadow: 0 14px 40px rgba(23, 28, 40, .05); }
.aw-sc-note { margin: 0 0 14px; color: #3c4350; font-size: 13px; font-weight: 700; }
.aw-sc-grid { display: flex; align-items: stretch; gap: 14px; }
.aw-sc-big { position: relative; flex: 1.15; min-width: 0; }
.aw-sc-big img, .aw-sc-big .aw-sc-ph { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 14px; background: #f2f3f6; display: block; }
.aw-sc-arrow { display: grid; place-items: center; flex-shrink: 0; width: 34px; color: #b3bac6; }
.aw-sc-arrow svg { width: 26px; height: 26px; transform: rotate(90deg); }
.aw-sc-cells { display: grid; flex: 1.6; min-width: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
.aw-sc-cell { position: relative; min-width: 0; }
.aw-sc-cell img, .aw-sc-cell .aw-sc-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f2f3f6; display: block; }
.aw-sc-tag { position: absolute; z-index: 2; left: 8px; top: 8px; border-radius: 7px; background: rgba(23, 24, 28, .78); padding: 3px 8px; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.aw-sc-ph { display: block; }
.aw-sc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.aw-sc-dots button { width: 8px; height: 8px; border: 0; border-radius: 999px; background: #d7dae1; padding: 0; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s, opacity .2s; }
.aw-sc-dots button.on { width: 22px; background: #17181c; }

/* 右侧面板 */
.aw-panel { display: flex; flex-direction: column; width: 340px; flex-shrink: 0; border-left: 1px solid #e7e8ec; background: #fff; }
.aw-pbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; }
.aw-sec { margin-bottom: 18px; }
.aw-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.aw-sec-head b { color: #1c1f26; font-size: 13.5px; font-weight: 750; }
.aw-sec-note { color: #a2a9b6; font-size: 11px; }
.aw-sec-hint { margin: 8px 0 0; color: #a8afbb; font-size: 11px; line-height: 17px; }
.aw-upgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-upbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 92px; justify-content: center; border: 1px solid #e4e5ea; border-radius: 14px; background: #fff; color: #333a46; font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: border-color .15s, background-color .15s; }
.aw-upbtn:hover { border-color: #17181c; }
.aw-upbtn-alt { border-color: #17181c; border-width: 1.5px; font-weight: 750; }
.aw-upbtn i { display: grid; place-items: center; width: 30px; height: 30px; color: #555c68; }
.aw-upbtn i svg { width: 19px; height: 19px; }
.aw-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.aw-thumb { position: relative; width: 54px; height: 54px; }
.aw-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid #e4e5ea; }
.aw-thumb button { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 999px; background: #17181c; color: #fff; font-size: 9px; cursor: pointer; }
.aw-models { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; }
.aw-model { display: flex; align-items: center; gap: 10px; border: 1px solid #e7e8ec; border-radius: 13px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.aw-model:hover { border-color: #c9cdd6; }
.aw-model.on { border-color: #17181c; box-shadow: 0 0 0 1px #17181c inset; }
.aw-model-ico { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: #f3f4f7; color: #444b57; }
.aw-model-ico svg { width: 15px; height: 15px; }
.aw-model-txt { min-width: 0; flex: 1; }
.aw-model-txt b { display: block; color: #22252c; font-size: 12.5px; font-weight: 700; }
.aw-model-txt small { display: block; margin-top: 1px; color: #a2a9b6; font-size: 10.5px; }
.aw-dot { width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid #d3d6dd; border-radius: 999px; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.aw-model.on .aw-dot { border-color: #17181c; background: radial-gradient(circle, #17181c 0 45%, #fff 50%); }
.aw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.aw-sel small { display: block; margin-bottom: 6px; color: #565d69; font-size: 11px; font-weight: 700; }
.aw-sel select { width: 100%; height: 38px; border: 1px solid #e4e5ea; border-radius: 11px; background: #fff; padding: 0 10px; color: #22252c; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.aw-sel select:focus { outline: none; border-color: #17181c; }
.aw-gtypes { display: flex; flex-direction: column; gap: 8px; }
.aw-gtype { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ececef; border-radius: 13px; padding: 9px 12px; }
.aw-ckrow { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.aw-ckrow input { display: none; }
.aw-ckb { display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid #c9cdd6; border-radius: 6px; background: #fff; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.aw-ckrow input:checked + .aw-ckb { border-color: #17181c; background: #17181c; }
.aw-ckrow input:checked + .aw-ckb::after { content: ''; width: 9px; height: 5px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.aw-gt-txt { min-width: 0; }
.aw-gt-txt b { display: block; color: #22252c; font-size: 12.5px; font-weight: 700; }
.aw-gt-txt small { display: block; margin-top: 1px; color: #a2a9b6; font-size: 10.5px; }
.aw-step { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; border: 1px solid #e4e5ea; border-radius: 999px; padding: 2px; }
.aw-step button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: #333a46; font-size: 14px; cursor: pointer; }
.aw-step button:hover:not(:disabled) { background: #f2f3f6; }
.aw-step button:disabled { color: #ccd1d9; cursor: not-allowed; }
.aw-step span { min-width: 22px; text-align: center; color: #1c1f26; font-size: 12px; font-weight: 750; }
.aw-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-radio { display: flex; flex-direction: column; gap: 3px; border: 1px solid #e7e8ec; border-radius: 13px; background: #fff; padding: 12px; text-align: left; font-family: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.aw-radio b { color: #22252c; font-size: 12.5px; font-weight: 750; }
.aw-radio small { color: #a2a9b6; font-size: 10.5px; line-height: 15px; }
.aw-radio.on { border-color: #17181c; box-shadow: 0 0 0 1px #17181c inset; }
.aw-countrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ececef; border-radius: 13px; padding: 10px 12px; }
.aw-countrow small { color: #a2a9b6; font-size: 11px; }
.aw-input { width: 100%; border: 1px solid #e4e5ea; border-radius: 12px; background: #fff; padding: 9px 12px; color: #22252c; font-family: inherit; font-size: 12.5px; resize: none; }
.aw-input:focus { outline: none; border-color: #17181c; }
.aw-genmodel { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: #17181c; color: #fff; font-family: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: opacity .15s; }
.aw-genmodel:hover { opacity: .88; }
.aw-genmodel i { display: inline-flex; }
.aw-genmodel i svg { width: 15px; height: 15px; }
.aw-genmodel.busy { opacity: .6; pointer-events: none; }
.aw-pfoot { flex-shrink: 0; border-top: 1px solid #ececef; background: rgba(255, 255, 255, .96); padding: 12px 16px; }
.aw-go { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: #17181c; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 800; transition: opacity .15s, transform .15s; }
.aw-go:hover:not(:disabled) { transform: translateY(-1px); }
.aw-go:disabled { background: #b9bec8; cursor: not-allowed; transform: none; }
.aw-go.busy { opacity: .7; pointer-events: none; }
.aw-go i { display: inline-flex; }
.aw-go i svg { width: 15px; height: 15px; }
.aw-pnote { margin: 8px 0 0; color: #a8afbb; font-size: 10px; text-align: center; }
.aw-result { max-width: 860px; margin: 26px auto 0; }
.aw-result-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.aw-result-head h2 { margin: 0; color: #17181c; font-size: 17px; font-weight: 800; }
.aw-result-head span { color: #a2a9b6; font-size: 11px; }
.aw-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.aw-result-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid #ececef; display: block; }
@media (max-width: 960px) {
  .aw-body { flex-direction: column; overflow-y: auto; }
  .aw-main { overflow: visible; padding: 24px 16px; }
  .aw-panel { width: 100%; border-left: 0; border-top: 1px solid #e7e8ec; }
  .aw-sc-grid { flex-direction: column; }
  .aw-sc-arrow svg { transform: none; }
}

/* ============ 布局二：AI_PRODUCT 左表单 + 右展示 ============ */
.lp-form { display: flex; flex-direction: column; width: 430px; flex-shrink: 0; border-right: 1px solid #ececef; background: #fff; }
.lp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 26px 10px; }
.lp-eyebrow { margin: 0; color: #565d69; font-size: 11.5px; font-weight: 750; }
.lp-title { margin: 6px 0 0; color: #17181c; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.lp-sub { margin: 7px 0 0; color: #8a91a0; font-size: 12px; line-height: 19px; }
.lp-up { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; border: 1.5px dashed #dcdee5; border-radius: 16px; padding: 24px 18px 16px; text-align: center; transition: border-color .15s; }
.lp-up:hover { border-color: #9aa1ae; }
.lp-upico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f3f4f7; color: #555c68; margin-bottom: 4px; }
.lp-upico svg { width: 21px; height: 21px; }
.lp-up strong { color: #20242c; font-size: 13.5px; font-weight: 750; }
.lp-uphint { color: #9aa1ae; font-size: 11.5px; line-height: 17px; }
.lp-upbtn { margin-top: 8px; height: 34px; border: 0; border-radius: 999px; background: #17181c; padding: 0 18px; color: #fff; font-family: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: opacity .15s; }
.lp-upbtn:hover { opacity: .86; }
.lp-upnote { margin: 8px 0 0; color: #b3bac6; font-size: 10.5px; }
.lp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lp-thumb { position: relative; width: 56px; height: 56px; }
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid #e4e5ea; }
.lp-thumb > button { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 999px; background: #17181c; color: #fff; font-size: 9px; cursor: pointer; }
.lp-add { display: grid; place-items: center; border: 1.5px dashed #c9cdd6; border-radius: 10px; background: #fff; color: #7b8494; font-size: 18px; cursor: pointer; }
.lp-add:hover { border-color: #17181c; }
.lp-checkcard { margin: 10px 0; border: 1px solid #ececef; border-radius: 13px; background: #f8f9fb; padding: 11px 13px; }
.lp-scroll .ws-field { margin-top: 12px; }
.lp-scroll .ws-2col { margin-top: 12px; }
.lp-scroll .ws-countbox { margin-top: 12px; }
.lp-foot { flex-shrink: 0; border-top: 1px solid #ececef; background: #fff; padding: 12px 22px; }
.lp-go { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: #17181c; color: #fff; font-family: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: opacity .15s, transform .15s; }
.lp-go:hover:not(:disabled) { transform: translateY(-1px); }
.lp-go:disabled { background: #b9bec8; cursor: not-allowed; transform: none; }
.lp-go.busy { opacity: .7; pointer-events: none; }
.lp-go i { display: inline-flex; }
.lp-go i svg { width: 14px; height: 14px; }
.lp-gonote { margin: 8px 0 0; color: #a8afbb; font-size: 10.5px; text-align: center; }
.lp-stage { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 40px 40px 30px; background: linear-gradient(180deg, #f7f8fb, #f2f3f7); }
.lp-media { width: min(520px, 100%); border-radius: 18px; background: #fff; border: 1px solid #ececf0; box-shadow: 0 16px 44px rgba(23, 28, 40, .07); overflow: hidden; }
.lp-media video, .lp-media img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.bt-ph { min-height: 300px; background: repeating-conic-gradient(#f1f2f6 0 25%, #fff 0 50%) 0 0/28px 28px; }
.lp-stagenote { margin: 16px 0 0; color: #a2a9b6; font-size: 12px; }
.lp-result { width: 100%; max-width: 680px; margin-top: 22px; }
.lp-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lp-result-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid #ececf0; display: block; }

/* ============ 布局三：BATCH 批量卡 ============ */
.bt-main { flex: 1; min-width: 0; overflow-y: auto; padding: 44px 48px 60px; background: linear-gradient(180deg, #f5f6fa 0%, #eef0f5 100%); }
.bt-hero { max-width: 980px; margin: 0 auto; text-align: center; }
.bt-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e5e2f3; border-radius: 999px; background: #fff; padding: 6px 14px; color: #20242c; font-size: 11px; font-weight: 800; box-shadow: 0 6px 18px rgba(23, 28, 40, .06); }
.bt-badge svg { width: 12px; height: 12px; color: #7c5cff; }
.bt-hero h1 { margin: 16px 0 0; color: #17181c; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.045em; }
.bt-sub { margin: 10px auto 0; max-width: 560px; color: #8a91a0; font-size: 13px; }
.bt-cols { display: flex; align-items: stretch; gap: 20px; margin-top: 30px; text-align: left; }
.bt-demo { flex: 1.2; min-width: 0; }
.bt-demo .lp-media { width: 100%; height: 100%; }
.bt-demo .lp-media video, .bt-demo .lp-media img { height: 100%; min-height: 300px; }
.bt-upwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bt-upcard { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; justify-content: center; border-radius: 20px; background: #fff; border: 1px solid #ececf0; padding: 30px 22px; text-align: center; box-shadow: 0 16px 44px rgba(23, 28, 40, .05); }
.bt-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin-top: 0; }
.bt-thumbs .lp-thumb { width: 100%; height: 64px; }
.bt-thumbs .lp-add { height: 64px; }
.bt-params { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; margin-top: 26px; text-align: left; }
.bt-params .ws-field { width: 210px; margin: 0; }
.bt-go { display: block; width: min(560px, 100%); min-height: 50px; margin: 28px auto 0; border: 0; border-radius: 14px; background: #17181c; color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: opacity .15s, transform .15s; }
.bt-go:hover:not(:disabled) { transform: translateY(-1px); }
.bt-go:disabled { background: #b9bec8; cursor: not-allowed; transform: none; }
.bt-go.busy { opacity: .7; pointer-events: none; }
.bt-result { margin-top: 30px; text-align: left; }
.bt-result-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.bt-result-head b { color: #17181c; font-size: 15px; font-weight: 800; }
.bt-result-head span { color: #a2a9b6; font-size: 11px; }
@media (max-width: 900px) { .bt-cols { flex-direction: column; } }

/* ============ 布局四：COPYWRITING 场景文案 ============ */
.cp-side { display: flex; flex-direction: column; width: 360px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid #ececef; background: #fff; padding: 22px 18px; }
.cp-side > b { color: #17181c; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.cp-group { margin-top: 14px; }
.cp-gname { margin: 0 0 8px; color: #8a91a0; font-size: 11px; font-weight: 750; }
.cp-scene { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 12px; background: transparent; padding: 10px 12px; color: #2a2e37; font-family: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; text-align: left; transition: background-color .15s; }
.cp-scene:hover { background: #f3f5f9; }
.cp-scene.on { background: #eef1fd; color: #17181c; }
.cp-ico { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: #eef0f4; color: #444b57; font-size: 11px; font-weight: 800; }
.cp-scene.on .cp-ico { background: #fff; }
.cp-main { flex: 1; min-width: 0; overflow-y: auto; padding: 34px 40px 50px; background: linear-gradient(180deg, #f7f8fb, #f2f3f7); }
.cp-eyebrow { margin: 0; color: #565d69; font-size: 11.5px; font-weight: 750; }
.cp-title { margin: 6px 0 0; color: #17181c; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.cp-sub { margin: 7px 0 0; color: #8a91a0; font-size: 12px; }
.cp-editor { margin-top: 20px; border-radius: 18px; background: #fff; border: 1px solid #ececf0; box-shadow: 0 16px 44px rgba(23, 28, 40, .05); padding: 20px; }
.cp-input { width: 100%; min-height: 190px; border: 0; resize: none; color: #22252c; font-family: inherit; font-size: 13px; line-height: 21px; background: transparent; }
.cp-input:focus { outline: none; }
.cp-input::placeholder { color: #b3bac6; }
.cp-row { display: flex; align-items: flex-end; gap: 16px; margin-top: 14px; border-top: 1px solid #f0f1f5; padding-top: 16px; }
.cp-rowfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-rowfield small { color: #565d69; font-size: 11px; font-weight: 700; }
.cp-sel { height: 38px; border: 1px solid #e4e5ea; border-radius: 11px; background: #fff; padding: 0 10px; color: #22252c; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; min-width: 150px; }
.cp-sel:focus { outline: none; border-color: #17181c; }
.cp-countf { margin-left: auto; }
.cp-step { background: #fff; }
.cp-go { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 0; border-radius: 12px; background: #17181c; padding: 0 26px; color: #fff; font-family: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: opacity .15s; }
.cp-go:hover { opacity: .88; }
.cp-go.busy { opacity: .6; pointer-events: none; }
.cp-go i { display: inline-flex; }
.cp-go i svg { width: 14px; height: 14px; }
.cp-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; margin-top: 22px; border-radius: 18px; background: #fff; border: 1px solid #ececf0; padding: 34px; text-align: center; }
.cp-rempty-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f3f4f7; color: #555c68; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.cp-result b { color: #20242c; font-size: 13.5px; font-weight: 750; }
.cp-result > span { color: #a2a9b6; font-size: 11.5px; }
.cp-result .cp-result-head { align-self: flex-start; display: flex; align-items: baseline; gap: 10px; }
.cp-result .cp-result-head b { font-size: 14.5px; }
.cp-result .lp-result-grid { width: 100%; }
@media (max-width: 960px) {
  .lp-form { width: 100%; border-right: 0; }
  .cp-side { width: 100%; border-right: 0; border-bottom: 1px solid #ececef; }
}

/* ---- 工作台：顶栏与侧栏已按需求移除，仅保留右上角浮动关闭按钮 ---- */
.ws-shell { position: relative; }
.ws-float-close { position: absolute; top: 14px; right: 16px; z-index: 30; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1px solid #e5eaf2; color: #657084; font-size: 15px; text-decoration: none; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); transition: background-color .15s, color .15s, border-color .15s; }
.ws-float-close:hover { background: #17181c; border-color: #17181c; color: #fff; }

/* ================= 灵感广场（market 布局）：绘画广场 / 视频创作 ================= */
.mk-page { max-width: none; padding: 14px 0 60px; }
.mk-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 0 16px; }
.mk-tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 1px solid #e5e7ee; border-radius: 10px; background: #fff; color: #3a3f4b; font-size: 14px; font-weight: 500; cursor: pointer; transition: .15s; }
.mk-tab span { min-width: 20px; padding: 0 6px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #f1f2f6; color: #8a8f9d; font-size: 11px; }
.mk-tab:hover { border-color: #c9cede; }
.mk-tab.on { background: #17181c; border-color: #17181c; color: #fff; }
.mk-tab.on span { background: rgba(255, 255, 255, .18); color: #fff; }
.mk-tabs-gap { flex: 1; }
.mk-cats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-cats button { height: 30px; padding: 0 13px; border: none; border-radius: 999px; background: transparent; color: #6b7180; font-size: 13px; cursor: pointer; transition: .15s; }
.mk-cats button:hover { background: #f1f2f6; color: #17181c; }
.mk-cats button.on { background: #17181c; color: #fff; font-weight: 500; }
.mk-grid { display: grid; gap: 10px; align-items: start; }
.mk-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* 参考站 market 复刻：绝对定位瀑布流（JS 计算 top/left），缩放窗口时卡片 transition 平滑重排 */
.mk-grid.mk-abs { display: block; position: relative; overflow: hidden; }
.mk-grid.mk-abs .mk-card { position: absolute; left: 0; top: 0; transition: left .5s cubic-bezier(.4, 0, .2, 1), top .5s cubic-bezier(.4, 0, .2, 1), width .5s cubic-bezier(.4, 0, .2, 1); }
.mk-card { position: relative; overflow: hidden; border-radius: 6px; background: #f4f4f6; cursor: pointer; isolation: isolate; z-index: 10; }
.mk-media { display: block; position: relative; }
/* 第四十一批：灵感/精选卡片图片加载失败时保留卡片并显示占位（旧版直接整卡隐藏，
   导致「分类数字 8 张、实际只看到 5 张」的数字不真实 + 内容静默消失）。 */
.mk-media.is-dead { aspect-ratio: 4 / 5; }
/* 第四十一批：灵感卡片坏图走自己的占位块（.mk-dead），此处屏蔽第二十八批通用 .media-broken 的
   ::before/::after 占位，避免出现「图片已失效」+「⚠ 原图已失效」两份文案叠加（双保险，与 app.js 的
   MK_MEDIA_DEAD 摘除 media-broken 类互补）。 */
.mk-media.is-dead.media-broken::after, .mk-media.is-dead.media-broken::before { content: none; }
.mk-dead {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; min-height: 120px; box-sizing: border-box;
  background: repeating-linear-gradient(45deg, #f1f4f9 0 10px, #e9edf4 10px 20px);
  border: 1px dashed #c4ccd9; border-radius: 6px;
  color: #8a93a6; font-size: 12px; font-weight: 700; letter-spacing: .02em; user-select: none;
}
html[data-theme='dark'] .mk-dead {
  background: repeating-linear-gradient(45deg, #171b26 0 10px, #131722 10px 20px);
  border-color: #2c3242; color: #6d7689;
}
.mk-media img, .mk-media video { display: block; width: 100%; height: auto; min-height: 120px; object-fit: cover; border-radius: 6px; transition: transform .6s cubic-bezier(.19, 1, .22, 1); user-select: none; }
.mk-card:hover .mk-media img, .mk-card:hover .mk-media video { transform: scale(1.1); }
.mk-badge { position: absolute; left: 12px; top: 12px; z-index: 3; max-width: 62%; padding: 0 12px; border-radius: 9999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 400; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.mk-hot { position: absolute; right: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 7px; background: linear-gradient(135deg, #ff4d6a, #ff2e4d); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; }
.mk-author { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; max-width: 70%; padding: 3px 8px 3px 3px; border-radius: 999px; background: rgba(23, 24, 28, .55); color: #fff; font-size: 11px; backdrop-filter: blur(4px); }
.mk-ava { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #6a7bff, #9b6aff); color: #fff; font-size: 10px; font-weight: 700; }
.mk-author b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-dur { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255, 255, 255, .22); opacity: 0; transition: opacity .2s; }
.mk-progress i { display: block; width: 0; height: 100%; background: #ffd53d; }
.mk-card:hover .mk-progress { opacity: 1; }
.mk-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px; background: linear-gradient(180deg, rgba(10, 12, 18, 0) 45%, rgba(10, 12, 18, .72)); opacity: 0; transition: opacity .2s; pointer-events: none; }
.mk-card:hover .mk-overlay { opacity: 1; pointer-events: auto; }
.mk-prompt { margin: 0; color: #fff; font-size: 12px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: #fff; color: #17181c; font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; }
.mk-go:hover { background: #ffd53d; }
.mk-go svg { width: 13px; height: 13px; }
.cu-modal-img video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.mk-empty { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 80px 0 100px; color: #8a8f9d; }
.mk-empty svg { width: 34px; height: 34px; opacity: .5; }
.mk-empty p { margin: 0; font-size: 15px; font-weight: 500; color: #3a3f4b; }
.mk-empty span { font-size: 13px; }

/* ---- 灵感详情弹窗：突破通用 .modal 外壳，真正的图片 + 详情左右分栏 ---- */
.modal.cu-host { display: flex; width: min(1020px, 94vw); max-height: min(88vh, 760px); padding: 0; overflow: hidden; background: #fff; border-radius: 18px; }
.modal.cu-host .cu-modal { width: 100%; max-height: none; border-radius: 0; }
.cu-modal-img { display: flex; align-items: center; justify-content: center; align-self: stretch; max-height: min(88vh, 760px); background: #101114; }
.cu-modal-img img { width: 100%; height: 100%; object-fit: contain; max-height: min(88vh, 760px); }
@media (max-width: 760px) {
  .modal.cu-host { flex-direction: column; overflow-y: auto; max-height: 90vh; }
  .modal.cu-host .cu-modal { flex-direction: column; }
  .cu-modal-img { max-height: 46vh; }
  .cu-modal-img img, .cu-modal-img video { max-height: 46vh; }
}
.cu-modal-info .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cu-modal-info .btn svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; stroke: currentColor; }

/* ---- 灵感详情弹窗：媒体列随详情列高度拉伸，图片填满高度不留白边 ---- */
.modal.cu-host { width: fit-content; max-width: min(1020px, 94vw); max-height: min(88vh, 780px); }
.modal.cu-host .cu-modal { width: auto; }
.cu-modal-img { flex: 0 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; max-height: min(88vh, 780px); background: #0f1014; }
.cu-modal-img img, .cu-modal-img video { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.cu-modal-img .tm-ph { height: 100%; min-height: 0; }
.cu-modal-info { flex: 0 0 400px; width: 400px; max-height: min(88vh, 780px); overflow-y: auto; }
@media (max-width: 900px) {
  .modal.cu-host { width: 94vw; }
  .cu-modal-info { flex: 1 1 auto; width: auto; min-width: 0; }
  .cu-modal-img { max-height: 46vh; }
  .cu-modal-img img, .cu-modal-img video { height: auto; width: 100%; max-height: 46vh; }
}

/* ---- 灵感详情弹窗（参考站布局）：作者卡 + 制作同款/收藏 + 指令与参数卡片 ---- */
.cu-modal-info { padding: 20px 20px 24px; }
.cu-author { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f1f1f4; }
.cu-ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
span.cu-ava { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6d8bff, #9db1ff); color: #fff; font-weight: 800; font-size: 18px; }
.cu-author-info { min-width: 0; }
.cu-author-info b { display: block; font-size: 15px; font-weight: 800; color: #18181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-author-info i { display: inline-block; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 700; color: #cf9436; }
.cu-modal-info .cu-make { margin-top: 14px; width: 100%; height: 42px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.cu-fav { margin-top: 10px; width: 100%; height: 40px; border-radius: 10px; border: 1px solid #e3e5ea; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: #33353a; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.cu-fav:hover { border-color: #ff9db0; color: #ff4d6a; }
.cu-fav svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cu-fav.on { color: #ff4d6a; border-color: #ffd0d9; background: #fff5f7; }
.cu-fav.on svg { fill: #ff4d6a; stroke: #ff4d6a; }
/* 第二十二批：官方精选示例作品的收藏说明（替代原先点了必然无效的「加入收藏」按钮） */
.cu-favnote { margin-top: 10px; height: 40px; border-radius: 10px; border: 1px dashed #e3e5ea; background: #fafbfc; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font-size: 12.5px; color: #9aa0aa; }
.cu-favnote svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cu-card { margin-top: 14px; padding: 13px 15px 15px; border-radius: 12px; background: #f7f8fa; }
.cu-card-head { display: flex; align-items: center; justify-content: space-between; }
.cu-card-head label { font-size: 12px; font-weight: 800; color: #18181a; }
.cu-copy { border: 0; background: transparent; cursor: pointer; color: #8a8f99; padding: 2px; display: inline-flex; }
.cu-copy:hover { color: #33353a; }
.cu-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cu-card p { margin-top: 8px; font-size: 13px; line-height: 21px; color: #33353a; word-break: break-all; }
.cu-kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; font-size: 13px; }
.cu-kv:first-of-type { margin-top: 12px; }
.cu-kv span { color: #6b7078; flex-shrink: 0; }
.cu-kv b { color: #18181a; font-weight: 600; text-align: right; }
.cu-card .cu-creative { margin-top: 8px; color: #55575a; }

/* ---- 个人中心「我的收藏」 ---- */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.fav-card { border: 1px solid #ececf0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; transition: box-shadow .15s, transform .15s; }
.fav-card:hover { box-shadow: 0 6px 18px rgba(20, 20, 40, .08); transform: translateY(-2px); }
.fav-media { position: relative; display: block; aspect-ratio: 1; background: #f4f4f6; }
.fav-media img, .fav-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.fav-meta { padding: 10px 12px 12px; }
.fav-meta b { display: block; font-size: 13px; font-weight: 700; color: #18181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-meta span { display: block; margin-top: 3px; font-size: 11px; color: #9aa1ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-empty { text-align: center; padding: 52px 20px; color: #9aa1ad; }
.fav-empty svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fav-empty p { margin-top: 14px; font-size: 15px; font-weight: 800; color: #33353a; }
.fav-empty span { display: block; margin: 8px auto 18px; max-width: 400px; font-size: 13px; line-height: 20px; }
.fav-empty .btn { display: inline-flex; }

/* ---- 自定义头像（img 形态的圆形头像容器） ---- */
img.acc-side-av, img.acc-avatar, img.uavatar { object-fit: cover; display: block; }

/* ---- 任务详情弹窗（任务中心 / 生成记录共用） ---- */
.tc-media { cursor: pointer; }
.gw2-hist-item { cursor: pointer; }
div.gw2-hist-item:hover { transform: translateY(-2px); border-color: var(--gw-b300); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.tm-ph { width: 100%; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px 20px; min-height: 320px; }
.tm-ph svg { width: 30px; height: 30px; stroke: #9aa1ad; fill: none; stroke-width: 2; stroke-linecap: round; }
.tm-ph .spin { animation: tc-rot 1s linear infinite; }
.tm-ph b { font-size: 16px; font-weight: 800; color: #5c6068; }
.tm-ph span { font-size: 13px; color: #9aa1ad; line-height: 20px; max-width: 320px; word-break: break-all; }
.tm-ph.tm-st-failed b { color: #e11d48; }
.tm-st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f2f6; color: #5c6068; }
.tm-st.tc-st-done { background: #e5f8ef; color: #0c9d61; }
.tm-st.tc-st-failed { background: #fdeef2; color: #e11d48; }
.tm-st.tc-st-running, .tm-st.tc-st-queued { background: #e8f1fe; color: #2b7de0; }
.tm-err { color: #e11d48; }
#tm-down, .tm-share .cu-fav { text-decoration: none; }
#tm-down svg, .tm-share .cu-fav svg { fill: none; }
/* 第十一批：任务详情弹窗「分享到灵感」=绿色实底；待审核态醒目展示 */
.tm-share .cu-fav { border: 0; background: #16a34a; color: #fff; white-space: nowrap; }
.tm-share .cu-fav:hover { background: #15803d; color: #fff; }
.tm-share .cu-fav.is-pending { background: #ea8a0a; color: #fff; cursor: default; pointer-events: none; }
.tm-share .cu-fav.is-ok { background: #059669; color: #fff; cursor: default; pointer-events: none; }
.tm-share .cu-fav.is-rej { background: #dc2626; color: #fff; }

/* ============ 今日签到日历弹窗（彩色） ============ */
.modal.ck-host { width: min(480px, 94vw); max-height: min(90vh, 760px); overflow-y: auto; padding: 0; }
.ck-modal { position: relative; display: flex; flex-direction: column; }
.ck-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); color: #fff; font-size: 14px; cursor: pointer; }
.ck-x:hover { background: rgba(255,255,255,.4); }
/* 头部右侧预留 58px 给绝对定位的关闭按钮 ✕（否则与「连续天数」徽章重叠，见线上截图反馈） */
.ck-hero { display: flex; align-items: center; gap: 14px; padding: 22px 58px 18px 22px; background: linear-gradient(120deg,#ff7a45 0%,#ff4d8d 55%,#a855f7 100%); color: #fff; border-radius: 14px 14px 0 0; }
.ck-hero-ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: 0 0 auto; }
.ck-hero-ico svg { width: 26px; height: 26px; }
/* 签到弹窗头像：占满左侧图标位，白描边 + 圆角；无头像时回退首字母 */
.ck-ava { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; border: 2px solid rgba(255,255,255,.55); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
span.ck-ava { display: grid; place-items: center; background: rgba(255,255,255,.3); color: #fff; font-size: 20px; font-weight: 800; }
.ck-hero > div { flex: 1; min-width: 0; }
.ck-hero b { font-size: 18px; font-weight: 800; display: block; }
.ck-hero p { margin: 3px 0 0; font-size: 12.5px; opacity: .92; }
.ck-hero p i { font-style: normal; font-weight: 800; color: #ffe082; }
.ck-hero-streak { text-align: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 8px 14px; }
.ck-hero-streak b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.ck-hero-streak span { font-size: 11px; opacity: .9; }
.ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 18px 0; }
.ck-stats > div { background: #fff7f0; border: 1px solid #ffe3d0; border-radius: 10px; padding: 8px 6px; text-align: center; }
.ck-stats em { display: block; font-style: normal; font-size: 11px; color: #b4703f; margin-bottom: 2px; }
.ck-stats b { font-size: 16px; font-weight: 800; color: #ff4d6d; }
.ck-stats b i { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 1px; }
.ck-stats > div:nth-child(2) { background: #fff0f5; border-color: #ffd4e4; } .ck-stats > div:nth-child(2) b { color: #e6448f; } .ck-stats > div:nth-child(2) em { color: #c04a80; }
.ck-stats > div:nth-child(3) { background: #f0f9ff; border-color: #cfeaff; } .ck-stats > div:nth-child(3) b { color: #2b8fd8; } .ck-stats > div:nth-child(3) em { color: #3f7fb4; }
.ck-stats > div:nth-child(4) { background: #f5f0ff; border-color: #e2d4ff; } .ck-stats > div:nth-child(4) b { color: #8b5cf6; } .ck-stats > div:nth-child(4) em { color: #7a63b8; }
.ck-cal { margin: 14px 18px 0; border: 1px solid #ffe3d0; border-radius: 12px; padding: 12px; background: #fffaf6; }
.ck-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ck-cal-head b { font-size: 14px; color: #33353a; }
.ck-cal-head span { font-size: 11.5px; color: #ff6b6b; font-weight: 600; }
.ck-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.ck-week span { text-align: center; font-size: 11px; color: #c98a5e; font-weight: 600; padding: 2px 0; }
.ck-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ck-day { position: relative; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; color: #6b5d52; background: #fff; border: 1px solid #f3e4d7; }
.ck-day.empty { background: transparent; border: none; }
.ck-day.today { border: 1.6px solid #ff7a45; box-shadow: 0 0 0 3px rgba(255,122,69,.14); font-weight: 800; color: #ff5a2b; }
.ck-day.today em { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 8.5px; color: #fff; background: #ff7a45; border-radius: 6px; padding: 0 3px; line-height: 1.5; }
.ck-day.signed { background: linear-gradient(135deg, #ff8a5c, #ff4d8d); border-color: transparent; }
.ck-day.signed .ck-check { font-style: normal; color: #fff; font-weight: 900; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.ck-go { margin: 14px 18px 0; padding: 13px; border: none; border-radius: 12px; background: linear-gradient(120deg,#ff7a45,#ff4d8d); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: 1px; box-shadow: 0 6px 18px -6px rgba(255,77,141,.55); transition: transform .15s, box-shadow .15s, opacity .15s; }
.ck-go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(255,77,141,.6); }
.ck-go.done { background: #f1f2f6; color: #9aa0ac; box-shadow: none; cursor: default; }
.ck-go.busy { opacity: .7; }
.ck-note { margin: 10px 18px 0; font-size: 11.5px; color: #b4703f; background: #fff7f0; border: 1px dashed #ffd9bd; border-radius: 8px; padding: 7px 10px; }
.ck-recs { margin: 12px 18px 18px; }
.ck-recs > b { font-size: 13px; color: #33353a; display: block; margin-bottom: 6px; }
.ck-rec-list { max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.ck-rec { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7080; background: #f8f9fc; border-radius: 8px; padding: 7px 10px; }
.ck-rec-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #ff8a5c, #ff4d8d); flex: 0 0 auto; }
.ck-rec em { font-style: normal; color: #33353a; font-weight: 600; min-width: 78px; }
.ck-rec span { flex: 1; }
.ck-rec b { color: #ff4d6d; font-weight: 800; }
.ck-empty { font-size: 12px; color: #9aa0ac; text-align: center; padding: 12px 0; }
/* 瀑布流内部校正重排：瞬时完成不加过渡（缩放窗口重排仍保留 0.5s 动画） */
.mk-noanim .mk-card { transition: none !important; }

/* ================= 工具/应用「生成中」动画（刷新后自动接续） ================= */
.ws-gen-host { position: relative; }
.ws-gen { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; padding: 16px; border: 1px solid #e6ecff; border-radius: 14px; background: linear-gradient(160deg, #f5f8ff, #fdf5ff); }
.ws-gen-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #23252b; }
.ws-gen-head b { font-weight: 750; }
.ws-gen-tip { font-size: 11.5px; color: #9199ab; margin-left: auto; }
.ws-gen-spin { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; border: 2.5px solid #c9d8ff; border-top-color: #4f6ef7; animation: ws-gen-rot .8s linear infinite; }
@keyframes ws-gen-rot { to { transform: rotate(360deg); } }
.ws-gen-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-gen-card { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 10px; background: linear-gradient(120deg, #eef2fb, #f6effd); }
.ws-gen-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.85) 50%, transparent 68%); animation: ws-gen-sheen 1.6s ease-in-out infinite; transform: translateX(-100%); }
@keyframes ws-gen-sheen { to { transform: translateX(100%); } }
.ws-gen-err { margin: 8px 0; padding: 10px 14px; border: 1px solid #ffd9dd; border-radius: 10px; background: #fff5f6; color: #d63384; font-size: 13px; }
@media (max-width: 640px) { .ws-gen-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-gen-tip { display: none; } }

/* ================= H5 / iPhone 适配增强 =================
   1) viewport-fit=cover 后用 env(safe-area-inset-*) 避开刘海屏与底部横条；
   2) 100dvh 修正 iOS Safari 地址栏导致的 100vh 溢出；
   3) 输入框 ≥16px 避免 iOS 聚焦自动放大；4) 触控体验优化。 */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
.topbar { padding-top: env(safe-area-inset-top, 0); height: calc(60px + env(safe-area-inset-top, 0px)); }
@supports (height: 100dvh) {
  .shell { height: calc(100dvh - 60px - env(safe-area-inset-top, 0px)); }
}
.side { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.main-area { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.main-area > .home-page { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.modal { margin-bottom: env(safe-area-inset-bottom, 0); }
@media (hover: none) {
  a, button, .hs-tile, .side-item { touch-action: manipulation; }
}
/* iOS 聚焦缩放：移动端统一把输入字号提到 16px */
@media (max-width: 767px) {
  input, textarea, select { font-size: 16px !important; }
  .side-item { padding: 9px 0 8px; }           /* 触控目标更高 */
  .modal { max-width: 96vw; }
  .modal, .ck-host { max-height: min(88dvh, 760px); }
  .pixpix-home-textarea { font-size: 16px; }   /* 覆盖 13px，防 iOS 缩放 */
  ::-webkit-scrollbar { width: 0; height: 0; }  /* 小屏隐藏滚动条，观感更接近原生 */
}
/* iPhone 横屏 / 全面屏：左侧图标栏贴边 */
@media (max-width: 767px) and (orientation: landscape) {
  .side { padding-left: max(6px, env(safe-area-inset-left, 0px)); }
}

/* ================= 第十一批：明暗主题（黑夜模式） =================
 * html[data-theme='dark'] 由 app.js initTheme/applyTheme 控制；
 * 翻转全局变量 + 覆盖主要硬编码表面色，未覆盖到的细节默认继承深色变量。 */
html[data-theme='dark'] {
  --bg: #0f1117; --bg-soft: #171a23; --border: #262a36; --text: #e6e8f0; --text-2: #9aa3b8;
  --shadow: 0 4px 20px rgba(0, 0, 0, .4); --shadow-lg: 0 14px 44px rgba(0, 0, 0, .55);
  --page: 15 17 23; --panel: 23 26 35; --line: 38 42 54; --line-strong: 55 61 78;
  --ink: 230 232 240; --ink-secondary: 154 163 184; --ink-faint: 120 129 150;
  --brand-50: 30 34 46; --brand-100: 38 43 57; --brand-200: 48 54 70; --brand-300: 62 70 92;
  --brand-400: 148 156 176; --brand-500: 226 229 238; --brand-600: 236 239 246; --brand-700: 244 246 250;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
html[data-theme='dark'] body { background: var(--bg); color: var(--text); }
/* 第十一批：home.css 为后台装修画布在 .home-page/.home-footer-holder 等容器上
   兜底定义了浅色变量（元素自身定义优先于继承，压过上面的文档级翻转），
   这里用更高特异性把前台首页容器翻回深色；.dc-home-canvas/.dc-root（后台装修画布）不覆盖。 */
html[data-theme='dark'] .home-page, html[data-theme='dark'] .home-footer-holder {
  --page: 15 17 23; --panel: 23 26 35; --line: 38 42 54; --line-strong: 55 61 78;
  --ink: 230 232 240; --ink-secondary: 154 163 184; --ink-faint: 120 129 150;
  --brand-50: 30 34 46; --brand-100: 38 43 57; --brand-200: 48 54 70; --brand-300: 62 70 92;
}
html[data-theme='dark'] ::-webkit-scrollbar-thumb { background: #333949; }
html[data-theme='dark'] input, html[data-theme='dark'] textarea, html[data-theme='dark'] select { color: var(--text); }
/* 顶栏 / 侧栏 */
html[data-theme='dark'] .topbar { background: #12141c; border-bottom-color: var(--border); }
html[data-theme='dark'] .side { background: #12141c; border-right-color: var(--border); }
html[data-theme='dark'] .side-item.active { background: #1b2a44; color: #7fb0ff; }
html[data-theme='dark'] .side-item.active svg { stroke: #7fb0ff; }
html[data-theme='dark'] .tb-search { background: rgb(var(--panel)); }
html[data-theme='dark'] .tb-lang .lang-btn { background: #171a23; border-color: var(--border); color: var(--text-2); }
html[data-theme='dark'] .user-trigger { color: var(--text); }
html[data-theme='dark'] .user-dropdown { background: #171a23; border-color: var(--border); box-shadow: var(--shadow-lg); }
html[data-theme='dark'] .ud-item { color: var(--text-2); }
html[data-theme='dark'] .ud-item:hover { background: #1e2330; color: var(--text); }
html[data-theme='dark'] .ud-head b { color: var(--text); }
html[data-theme='dark'] .ud-head span { color: var(--ink-faint); }
html[data-theme='dark'] .ud-divider { background: var(--border); }
/* 明暗切换按钮 */
.tb-theme { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); transition: .15s; flex-shrink: 0; }
.tb-theme svg { width: 18px; height: 18px; }
.tb-theme:hover { color: var(--primary-deep); border-color: #b9cdf7; background: #eaf2ff; }
html[data-theme='dark'] .tb-theme:hover { color: #7fb0ff; border-color: #2c3d63; background: #1b2a44; }
/* 通用卡片 / 面板 */
html[data-theme='dark'] .modal { background: #171a23; color: var(--text); box-shadow: var(--shadow-lg); }
html[data-theme='dark'] .modal-mask { background: rgba(0, 0, 0, .62); }
html[data-theme='dark'] .studio .panel, html[data-theme='dark'] .studio .gallery,
html[data-theme='dark'] .gwork, html[data-theme='dark'] .gw2-card, html[data-theme='dark'] .gw-card,
html[data-theme='dark'] .task-card, html[data-theme='dark'] .acc-side, html[data-theme='dark'] .acc-card,
html[data-theme='dark'] .cu-modal, html[data-theme='dark'] .tc-page, html[data-theme='dark'] .mk-page,
html[data-theme='dark'] .chat-app, html[data-theme='dark'] .chat-side, html[data-theme='dark'] .cbox,
html[data-theme='dark'] .cw, html[data-theme='dark'] .empty-tip { background: #141721; color: var(--text); }
html[data-theme='dark'] .chat-side { background: #101320; border-right-color: var(--border); }
html[data-theme='dark'] .cbox { border-color: var(--border); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
html[data-theme='dark'] .cbox.focus { border-color: #2c3d63; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
html[data-theme='dark'] .cbox-tool:hover { background: #1b2a44; border-color: #24345a; color: #7fb0ff; }
html[data-theme='dark'] .cbox-tag { background: #1b2a44; color: #7fb0ff; }
html[data-theme='dark'] .cbox-tag-soft { background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .cbox-tpl-pop { background: #171a23; border-color: var(--border); }
html[data-theme='dark'] .cbox-tpl-item:hover { background: #1e2330; }
html[data-theme='dark'] .cbox-tpl-head { border-bottom-color: var(--border); color: var(--text); }
html[data-theme='dark'] .ct-menu { background: #171a23; border-color: var(--border); }
html[data-theme='dark'] .ct-item:hover { background: #1e2330; }
html[data-theme='dark'] .cs-item.active { background: #1b2a44; }
html[data-theme='dark'] .cs-item:hover { background: #1a1e2b; }
html[data-theme='dark'] .cs-search { background: var(--bg-soft); border-color: var(--border); }
html[data-theme='dark'] .cs-empty { color: var(--ink-faint); }
/* 绘图工作台 */
html[data-theme='dark'] .gw-prompt-wrap { background: #101320; border-color: var(--border); }
html[data-theme='dark'] .gw-prompt-wrap:focus-within { background: #101320; box-shadow: 0 0 0 2px #1b2a44; border-color: #2c3d63; }
html[data-theme='dark'] .gw-prompt-wrap.drag { background: rgba(29, 78, 216, .12); }
html[data-theme='dark'] .gw-prompt-bar { background: rgba(16, 19, 32, .7); border-top-color: var(--border); }
html[data-theme='dark'] .gw-ref-add { background: #141721; border-color: #333c52; color: var(--text-2); }
html[data-theme='dark'] .gw-ref-add:hover { background: #1b2a44; border-color: #2c3d63; color: #7fb0ff; }
html[data-theme='dark'] .gw-textarea { background: #101320; border-color: var(--border); color: var(--text); }
html[data-theme='dark'] .gw-textarea:focus { background: #101320; border-color: #2c3d63; box-shadow: 0 0 0 2px #1b2a44; }
html[data-theme='dark'] .gw2-model { background: #101320; border-color: var(--border); }
html[data-theme='dark'] .gw2-model.on { border-color: #2c5cc5; background: #14213c; }
html[data-theme='dark'] .gw2-size, html[data-theme='dark'] .gw2-num { background: #101320; border-color: var(--border); }
html[data-theme='dark'] .gw2-size.on, html[data-theme='dark'] .gw2-num.on { border-color: #2c5cc5; background: #14213c; }
html[data-theme='dark'] .gw2-mtoggle, html[data-theme='dark'] .gw-libbtn { background: var(--bg-soft); border-color: var(--border); color: var(--text-2); }
html[data-theme='dark'] .gw-libbtn:hover { background: #1b2a44; border-color: #2c3d63; }
html[data-theme='dark'] .gw-empty-box, html[data-theme='dark'] .gw2-hist-more { background: var(--bg-soft); border-color: var(--border); color: var(--ink-faint); }
html[data-theme='dark'] .gw-img-acts { background: #141721; border-top-color: var(--border); }
html[data-theme='dark'] .gw-share-tip { color: var(--text-2); }
html[data-theme='dark'] .gw-hist-item, html[data-theme='dark'] .gw2-hist { color: var(--text-2); }
html[data-theme='dark'] .gw-drop { background: var(--bg-soft); border-color: var(--border); }
html[data-theme='dark'] .gw-hint, html[data-theme='dark'] .gw-prompt-hint, html[data-theme='dark'] .gw-info-empty { color: var(--ink-faint); }
/* 任务中心 */
html[data-theme='dark'] .tc-card, html[data-theme='dark'] .tc-stat, html[data-theme='dark'] .tc-filter,
html[data-theme='dark'] .tc-head, html[data-theme='dark'] .tc-empty { background: #141721; border-color: var(--border); color: var(--text); }
html[data-theme='dark'] .tc-filter button { background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .tc-filter button.active { background: #1b2a44; color: #7fb0ff; }
html[data-theme='dark'] .tc-empty h2 { color: var(--text); }
html[data-theme='dark'] .tc-trunc { color: #97a0b3; }
/* 灵感大厅 */
html[data-theme='dark'] .mk-tabs { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .mk-cats button { background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .mk-cats button.on { background: #1b2a44; color: #7fb0ff; }
html[data-theme='dark'] .mk-empty { color: var(--text-2); }
html[data-theme='dark'] .mk-card { background: var(--bg-soft); }
/* 签到弹窗 */
html[data-theme='dark'] .ck-modal { background: #171a23; color: var(--text); }
html[data-theme='dark'] .ck-stats div { background: var(--bg-soft); }
html[data-theme='dark'] .ck-cal, html[data-theme='dark'] .ck-note { background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .ck-day { color: var(--text); }
html[data-theme='dark'] .ck-day.signed { background: #163a2c; color: #7ee2b0; }
html[data-theme='dark'] .ck-day.today { border-color: #2c5cc5; }
html[data-theme='dark'] .ck-rec { background: var(--bg-soft); }
html[data-theme='dark'] .ck-empty { color: var(--ink-faint); }
/* 账户中心 / 通用 */
html[data-theme='dark'] .acc-head { color: var(--text-2); }
html[data-theme='dark'] .acc-head:hover { color: var(--text); }
html[data-theme='dark'] .pill-gold { background: linear-gradient(100deg, #b7791f, #d69e2e); }
html[data-theme='dark'] .btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
html[data-theme='dark'] .btn-ghost:hover { color: var(--text); border-color: var(--brand-300); }
/* 签到弹窗「日期+天气」胶囊（第十三批：替代原金句；日期即时渲染，天气异步增强） */
.ck-hero-datechip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; flex-shrink: 0;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 9px 15px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  line-height: 1.35;
}
.ck-hero-datechip .ck-wx { display: inline-flex; align-items: center; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .28); }
.ck-hero-datechip .ck-wx-pending { gap: 3.5px; }
.ck-hero-datechip .ck-wx-pending i { width: 3.5px; height: 3.5px; border-radius: 999px; background: rgba(255, 255, 255, .8); animation: ck-wxdot 1.1s ease-in-out infinite; }
.ck-hero-datechip .ck-wx-pending i:nth-child(2) { animation-delay: .16s; }
.ck-hero-datechip .ck-wx-pending i:nth-child(3) { animation-delay: .32s; }
@keyframes ck-wxdot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---- 暗黑模式：首页（home.css / home-blocks.css 硬编码浅色翻深） ---- */
html[data-theme='dark'] .home-workbench-hero { background: linear-gradient(180deg, #0f1117 0, rgba(15, 17, 23, .97) 54%, #12141c 100%); }
html[data-theme='dark'] .home-workbench-ambient { opacity: .35; }
html[data-theme='dark'] .home-workbench-dots { opacity: .18; }
html[data-theme='dark'] .home-workbench-title, html[data-theme='dark'] .hs-title-row b, html[data-theme='dark'] .hs-title-row span,
html[data-theme='dark'] .home-function-recommend-title, html[data-theme='dark'] .hot-head h3 { color: var(--text); }
html[data-theme='dark'] .pixpix-home-composer .home-generate-tabs { background: rgba(23, 26, 35, .96); border-color: var(--border); box-shadow: 0 -4px 18px rgba(0,0,0,.3); }
html[data-theme='dark'] .pixpix-home-panel { background: #171a23; border-color: var(--border); box-shadow: 0 24px 54px -20px rgba(0,0,0,.5), 0 8px 22px rgba(0,0,0,.3); }
html[data-theme='dark'] .pixpix-home-textarea { background: transparent; color: var(--text); }
html[data-theme='dark'] .pixpix-home-textarea::placeholder { color: var(--ink-faint); }
html[data-theme='dark'] .pixpix-home-upload-card { background: #14213c; border-color: #1d3a66; }
html[data-theme='dark'] .hp-ref { background: var(--bg-soft); border-color: var(--border); }
html[data-theme='dark'] .pixpix-home-pill { border-color: var(--border); color: var(--text-2); }
html[data-theme='dark'] .pixpix-home-pill:hover:not(:disabled) { border-color: var(--brand-300); color: var(--text); background: var(--bg-soft); }
html[data-theme='dark'] .pixpix-home-submit { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .hp-dd { background: #171a23; border-color: var(--border); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
html[data-theme='dark'] .hp-mi:hover { background: #1e2330; }
html[data-theme='dark'] .pixpix-home-product-trigger { color: var(--text-2); }
html[data-theme='dark'] .home-function-banner-card { border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
html[data-theme='dark'] .home-function-quick-card { background: #141721; border-color: var(--border); color: var(--text); box-shadow: inset 0 3px 30px rgba(255,255,255,.02); }
html[data-theme='dark'] .home-function-quick-card p, html[data-theme='dark'] .home-function-app-copy p { color: var(--text-2); }
html[data-theme='dark'] .home-function-quick-card h4, html[data-theme='dark'] .home-function-app-copy b { color: var(--text); }
html[data-theme='dark'] .home-function-quick-arrow { background: var(--bg-soft); color: var(--text); }
html[data-theme='dark'] .home-function-recommend { background: #141721; }
html[data-theme='dark'] .home-function-app-card { background: var(--bg-soft); color: var(--text); }
html[data-theme='dark'] .home-function-app-visual { background: #1a1e2a; }
html[data-theme='dark'] .hot-card { background: var(--bg-soft); border-color: var(--border); }
html[data-theme='dark'] .hot-card:hover { background: #1e2330; box-shadow: var(--shadow); }
html[data-theme='dark'] .hot-card h4 { color: var(--text); }
html[data-theme='dark'] .hs-cat { border-color: var(--line); color: var(--text-2); }
html[data-theme='dark'] .hs-cat[aria-pressed=true] { background: rgb(var(--panel)); color: var(--text); border-color: transparent; }
html[data-theme='dark'] .hs-media { background: linear-gradient(135deg, #161a26, rgb(var(--page)) 45%, #12141c); }
html[data-theme='dark'] .hs-masonry .hs-tile { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .home-footer { background: #12141c; color: var(--text-2); border-color: var(--border); }
html[data-theme='dark'] .home-footer a { color: var(--text-2); }
html[data-theme='dark'] .hb-btn-light { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .hb-notice { background: var(--bg-soft); color: var(--text-2); }

/* ============================== Dark 块三（第十二批走查补漏 2026-10-09） ============================== */
/* 12.1 首页：热门推荐卡标题/描述（元素实为 strong/span，旧覆盖误写 b/p 未命中→深字看不见）+ 快捷卡图标 */
html[data-theme='dark'] .home-function-app-copy > strong { color: var(--text); font-weight: 800; }
html[data-theme='dark'] .home-function-app-copy > span { color: var(--text-2); }
html[data-theme='dark'] .home-function-quick-icon { color: #fff; }
/* 12.2 对话：模型选择按钮原白底+继承白字 → 模型名不可见 */
html[data-theme='dark'] .ct-model { background: var(--bg-soft); border-color: var(--border); color: var(--text); }
html[data-theme='dark'] .ct-model:hover { border-color: #2c3d63; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
html[data-theme='dark'] .ct-model-price { background: rgba(59,130,246,.16); color: #93c5fd; }
/* 12.3 绘画工作台：整体翻转 --gw-* 变量体系（面板/墨色/线/徽章一步到位，字体与背景同时修好） */
html[data-theme='dark'] .gwork {
  --gw-page: #0f1117; --gw-panel: #141721; --gw-line: #262a36; --gw-line-soft: rgba(38, 42, 54, .46);
  --gw-ink: #e6e8f0; --gw-ink-2: #9aa3b8; --gw-ink-f: #788196;
  --gw-b50: #171a23; --gw-b100: #1b1f2b; --gw-b200: #242a38; --gw-b300: #333c52;
  --gw-b400: #94a0b8; --gw-b500: #c9d0e0; --gw-b600: #e6e8f0; --gw-b700: #f2f4f9;
  --gw-chip-shadow: 0 5px 16px rgba(0, 0, 0, .4);
}
html[data-theme='dark'] .gw2-hist-item { background: var(--gw-panel); }
html[data-theme='dark'] .gw-empty-result { background: transparent; }
/* 12.3' 绘画页顶部装饰层（::before 渐变末端为纯白 #f7f7f8 + 浅色光晕点阵，dark 下形成白色亮带） */
html[data-theme='dark'] .gwork::before {
  opacity: .5;
  background:
    linear-gradient(to bottom, rgba(15, 17, 23, 0) 0, rgba(15, 17, 23, 0) 68%, #0f1117 100%),
    radial-gradient(ellipse 48% 74% at 8% 22%, rgba(37, 99, 235, .16), transparent 73%),
    radial-gradient(ellipse 44% 72% at 91% 18%, rgba(250, 204, 21, .08), transparent 76%),
    radial-gradient(circle, rgba(59, 130, 246, .20) 1px, transparent 1.2px);
  background-position: top;
  background-size: auto, auto, auto, 16px 16px;
}
/* 12.4 视频页：翻转 .vw 局部变量 + 主要表面 */
html[data-theme='dark'] .vw { --line:#262a36; --line-strong:#333c52; --ink:#e6e8f0; --ink-2:#9aa3b8; --ink-f:#788196; --subtle:#101320; --muted:#171a23;
  background:#141721; border-color:#262a36; box-shadow:0 2px 10px rgba(0,0,0,.4); }
html[data-theme='dark'] .vw-nav { background:#101320; }
html[data-theme='dark'] .vw-nav > button[data-active="true"] { background:#1b2030; }
html[data-theme='dark'] .vw-panel { background:#141721; }
html[data-theme='dark'] .vw-preview { background:#0f1117; }
/* 12.4' 右侧预览区：头部白条 / 中央白色渐变 / 三步卡 / 加载卡 */
html[data-theme='dark'] .vw-head { background:rgba(16,19,32,.76); }
html[data-theme='dark'] .vw-head > span::before { background:#e6e8f0; }
html[data-theme='dark'] .vw-stage { background:radial-gradient(circle at 50% 36%, rgba(23,26,35,.98) 0, rgba(23,26,35,.66) 42%, transparent 72%), radial-gradient(circle, rgba(59,130,246,.16) 1px, transparent 1.2px), #0f1117; background-position:50%,top,50%; background-size:auto,16px 16px,auto; }
html[data-theme='dark'] .vw-copy small { border-color:#262a36; background:rgba(23,26,35,.86); }
html[data-theme='dark'] .vw-copy p { color:var(--ink-2); }
html[data-theme='dark'] .vw-hotflow { border-color:#262a36; background:rgba(20,23,33,.94); box-shadow:0 14px 36px rgba(0,0,0,.4); }
html[data-theme='dark'] .vw-hotflow > i { background:#333c52; }
html[data-theme='dark'] .vw-pcard > div { background:#101320; }
html[data-theme='dark'] .vw-loading { border-color:#262a36; background:rgba(20,23,33,.76); }
/* 12.5 画布列表页：cvp 用全局 RGB 三元组变量，容器级翻转 + 表面覆盖 */
html[data-theme='dark'] .cvp-page { --page:15 17 23; --panel:23 26 35; --line:38 42 54; --line-strong:55 61 78; --ink:230 232 240; --ink-secondary:154 163 184; --ink-faint:120 129 150; --brand-50:30 34 46; --brand-100:38 43 57; --brand-200:48 54 70; --brand-300:62 70 92; }
html[data-theme='dark'] .cvp-hero { background: linear-gradient(120deg, #141721 0%, #101320 55%, #131a2b 100%); border-color:#262a36; box-shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
html[data-theme='dark'] .cvp-hero-pill { background:#1b2030; border-color:#262a36; color:#9aa3b8; }
html[data-theme='dark'] .cvp-btn { background:#1b2030; border-color:#262a36; color:#c9d0e0; }
html[data-theme='dark'] .cvp-btn-dark { background:#e6e8f0; border-color:#e6e8f0; color:#101114; }
html[data-theme='dark'] .cvp-card { background:#141721; border-color:#262a36; box-shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
html[data-theme='dark'] .cvp-thumb { background-color:#101320; background-image:radial-gradient(circle, #232939 1px, transparent 1.2px); }
html[data-theme='dark'] .cvp-count { background:rgba(16,19,32,.92); border-color:#262a36; color:#9aa3b8; }
/* 12.6 应用中心：搜索框/标题/卡片 */
html[data-theme='dark'] .apps-search-form { background:#141721; box-shadow:0 2px 6px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.35); }
html[data-theme='dark'] .apps-search-form input[type=search] { color: var(--text); }
html[data-theme='dark'] .apps-search-form input[type=search]::placeholder { color:#6b7488; }
html[data-theme='dark'] .apps-search-form button { background:#e6e8f0; color:#101114; }
html[data-theme='dark'] .apps-search-form button:hover { background:#fff; }
html[data-theme='dark'] .apps-group-name { color: var(--text); }
html[data-theme='dark'] .apps-tool-card-background { border-color:#141721; background:#1b2030; box-shadow:0 3px 10px rgba(0,0,0,.4); }
html[data-theme='dark'] .apps-tool-card-description { color:#9aa3b8; }
html[data-theme='dark'] .apps-tool-card-cover { background:#101320; border:1px solid #262a36; }
html[data-theme='dark'] .apps-tool-card-placeholder { background:linear-gradient(145deg,#171a23,#12141c); color:#6b7488; }
/* 12.7 作品/任务详情弹窗：作者昵称（原 #18181a 深字在深底弹窗上不可见）+ 白底按钮统一 */
html[data-theme='dark'] .cu-author-info b { color: var(--text); }
html[data-theme='dark'] .cu-modal-info .cu-fav { background:#1b2030; border-color:#262a36; color:#c9d0e0; }
/* 12.8 任务中心：媒体占位底色翻色（配合 img cover 去白边） */
html[data-theme='dark'] .tc-media { background:#101320; }
/* 12.9 全站主内容容器（.gwork/.vw 等页面容器之外的露出区，绘画页顶部白带根因） */
html[data-theme='dark'] .main-area { background:#0f1117; }

/* ================= 第十三批（2026-10-09）：结果预览 dark / 动画流畅 / 任务文字 / 质感按钮 / 工作台 dark / 签到弹窗 ================= */

/* 13.1 生成动画流畅化：大面积 blur(40px) 光晕逐帧重算是旋转掉帧根因 → 改零滤镜 radial-gradient 光晕；
        图标旋转降速至 2.4s/圈并提升为独立合成层（will-change），观感更顺滑 */
.gw-loading-glow { filter: none; background: radial-gradient(closest-side, rgba(100, 116, 139, .14), transparent 74%); will-change: opacity; }
.gw-loading-ico svg { animation-duration: 2.4s; will-change: transform; backface-visibility: hidden; }

/* 13.2 结果预览区 dark（白边+文字看不清根因：.gw-result-body>div 硬编码 #fafafa、.gw-img 白底——
        单图时结果网格另一列直接透出白底；--gw-ink 翻浅后的文字叠白底不可读） */
html[data-theme='dark'] .gw-result-body > div { border-color: #262a36; background: transparent; }
html[data-theme='dark'] .gw-img { background: #141721; border-color: #262a36; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
html[data-theme='dark'] .gw-img-media { background: #101320; }
html[data-theme='dark'] .gw-loading-glow { background: radial-gradient(closest-side, rgba(59, 130, 246, .16), transparent 74%); }
html[data-theme='dark'] .gw-loading-ico { background: rgba(255,255,255,.08); color: #9cc0ff; }
html[data-theme='dark'] .gw-loading-bar { background: #1b2030; }
html[data-theme='dark'] .gw-loading-bar-in { background: #3b82f6; }

/* 13.3 任务中心卡片文字 dark 对比度（.tc-prompt 原 #232529 深字在深底卡片上不可读） */
html[data-theme='dark'] .tc-prompt { color: #e6e8f0; }
html[data-theme='dark'] .tc-meta { color: #97a0b3; }
html[data-theme='dark'] .tc-media-ph b { color: #c9d0e0; }
html[data-theme='dark'] .tc-media-ph span { color: #97a0b3; }
html[data-theme='dark'] .tc-media-ph svg { stroke: #97a0b3; }
html[data-theme='dark'] .tc-progress { border-color: rgba(255,255,255,.16); background: rgba(20,23,33,.94); }
html[data-theme='dark'] .tc-progress-row { color: #c9d0e0; }
html[data-theme='dark'] .tc-bar { background: #1b2030; }
html[data-theme='dark'] .tc-bar i { background: #e6e8f0; }

/* 13.4（第三十四批重写）动作/状态按钮统一语言（对齐任务卡「预览 / 发布」参考样式）：
   动作 = 黑色实心主按钮 / 白底描边次按钮；状态 = 浅底徽章（待审核琥珀 / 已上架绿）；
   重新申请与发布动作同形同色（驳回理由走 title 悬浮），不再用突兀的红色大块 */
.gw-img-acts { padding: 10px 10px 12px; gap: 9px; }
.gw-img-acts .tk-share, .gw-img-acts .gw-img-act {
  min-height: 38px; border-radius: 11px; font-size: 13px; font-weight: 800; letter-spacing: .02em;
  transition: transform .16s, box-shadow .16s, filter .16s, background-color .16s, border-color .16s, color .16s;
}
/* 动作·主（发布 / 分享到灵感）：黑色实心 */
.gw-img-acts .tk-share { border: 0; background: #171a18; color: #fff; box-shadow: 0 4px 14px -4px rgba(15, 23, 42, .35); }
.gw-img-acts .tk-share:hover { background: #000; transform: translateY(-1.5px); box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .5); }
/* 动作·次（继续编辑 / 预览）：白底描边 */
.gw-img-acts .gw-img-act { border: 1px solid #e3e5e8; background: #fff; color: #45494f; }
.gw-img-acts .gw-img-act:hover { border-color: #cfd3d9; background: #f5f6f7; transform: translateY(-1.5px); }
.gw-img-acts .tk-share:active, .gw-img-acts .gw-img-act:active { transform: translateY(0); filter: brightness(.97); }
/* 状态徽章：浅底语义色（不可点，无投影） */
.gw-img-acts .tk-share.is-pending { background: #fdf3e3; color: #b45309; cursor: default; transform: none; box-shadow: none; }
.gw-img-acts .tk-share.is-ok { background: #eefaf4; color: #047857; cursor: default; transform: none; box-shadow: none; }
.gw-img-act svg, .gw-img-acts .tk-share svg { width: 14px; height: 14px; }
/* 任务卡同语言：tc-share 黑色实心已在 b31 块（.tc-act.tc-act-dark, .tc-actions .tc-act.tc-share）定义，此处只补状态徽章确认 */
.tc-actions .tc-act.tc-share.is-pending { background: #fdf3e3; color: #b45309; cursor: default; box-shadow: none; }
.tc-actions .tc-act.tc-share.is-ok { background: #eefaf4; color: #047857; cursor: default; box-shadow: none; }
/* 悬浮在作品图上的小号分享按钮同语言（黑色实心） */
.mk-card .tk-share, .cu-modal .tk-share { background: rgba(23, 26, 24, .92); box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .5); }
/* dark：主按钮反白 + 次按钮深底描边 + 状态徽章深底 */
html[data-theme='dark'] .gw-img-acts .tk-share { background: #f0f2f5; color: #12141a; border: 1px solid rgba(255, 255, 255, .1); }
html[data-theme='dark'] .gw-img-acts .tk-share:hover { background: #fff; }
html[data-theme='dark'] .gw-img-acts .gw-img-act { background: #1b2030; border-color: #2b3143; color: #c9d0e0; }
html[data-theme='dark'] .gw-img-acts .tk-share.is-pending { background: #32290f; color: #d9b45c; }
html[data-theme='dark'] .gw-img-acts .tk-share.is-ok { background: #10291e; color: #4ade80; }
html[data-theme='dark'] .tc-actions .tc-act.tc-share.is-pending { background: #32290f; color: #d9b45c; }
html[data-theme='dark'] .tc-actions .tc-act.tc-share.is-ok { background: #10291e; color: #4ade80; }

/* 13.5 工具/应用工作台整页 dark（ws-* / aw-* / lp-* / bt-* 四套布局全是硬编码浅色，
        点进应用后整页白底的根因；选择器按左导航/中画布/右参数面板分组） */
html[data-theme='dark'] .ws-page { background: #0b0d14; }
html[data-theme='dark'] .ws-shell { background: #101320; box-shadow: 0 18px 48px rgba(0,0,0,.5); color-scheme: dark; }
html[data-theme='dark'] .ws-head { border-bottom-color: #1f2432; background: #101320; }
html[data-theme='dark'] .ws-brand { color: #e6e8f0; }
html[data-theme='dark'] .ws-badge { background: rgba(59,130,246,.16); color: #7fb0ff; }
html[data-theme='dark'] .ws-close { border-color: #262a36; color: #9aa3b8; }
html[data-theme='dark'] .ws-close:hover { background: #1b2030; color: #e6e8f0; }
html[data-theme='dark'] .ws-body { background: #0d101b; }
/* 左侧工具导航 */
html[data-theme='dark'] .ws-body .rp-side { border-right-color: #1f2432; background: #101320; }
html[data-theme='dark'] .ws-body .rp-back { color: #d5d9e4; }
html[data-theme='dark'] .ws-body .rp-back:hover { background: #1b2030; }
html[data-theme='dark'] .ws-body .rp-cat-name { color: #6b7488; }
html[data-theme='dark'] .ws-body .rp-nav { color: #9aa3b8; }
html[data-theme='dark'] .ws-body .rp-nav:hover { border-color: #262a36; background: #171a23; color: #d5d9e4; }
html[data-theme='dark'] .ws-body .rp-nav.on { border-color: #2c3550; background: #1b2334; color: #e6e8f0; box-shadow: none; }
html[data-theme='dark'] .rp-nav-ico { color: #788196; }
html[data-theme='dark'] .rp-nav.on .rp-nav-ico { color: #9cc0ff; }
/* 中间画布列 */
html[data-theme='dark'] .ws-cbar { border-bottom-color: #1f2432; background: #101320; }
html[data-theme='dark'] .ws-cbtn, html[data-theme='dark'] .ws-cicon { color: #9aa3b8; }
html[data-theme='dark'] .ws-cbtn:hover, html[data-theme='dark'] .ws-cicon:hover { background: #1b2030; }
html[data-theme='dark'] .ws-cbtn.on { background: rgba(59,130,246,.18); color: #7fb0ff; }
html[data-theme='dark'] .ws-cdanger:hover { background: rgba(225,29,72,.14); color: #fb7185; }
html[data-theme='dark'] .ws-bsize span { color: #9aa3b8; }
html[data-theme='dark'] .ws-bsize em { color: #788196; }
html[data-theme='dark'] .ws-demo video, html[data-theme='dark'] .ws-demo img { background: #101320; }
html[data-theme='dark'] .ws-upzone { border-color: #2c3550; background: #141721; }
html[data-theme='dark'] .ws-upzone:hover { border-color: #3b82f6; }
html[data-theme='dark'] .ws-upico { background: rgba(59,130,246,.16); color: #7fb0ff; }
html[data-theme='dark'] .ws-upzone strong { color: #e6e8f0; }
html[data-theme='dark'] .ws-uphint { color: #8f97a8; }
html[data-theme='dark'] .ws-upnote { color: #788196; }
html[data-theme='dark'] .ws-reup { border-color: #262a36; background: rgba(20,23,33,.92); color: #c9d0e0; }
html[data-theme='dark'] .ws-reup:hover { background: #1b2030; border-color: #333c52; }
/* 右侧参数面板 */
html[data-theme='dark'] .ws-panel { border-left-color: #1f2432; background: #101320; }
html[data-theme='dark'] .ws-ptag { color: #7fb0ff; }
html[data-theme='dark'] .ws-ptitle h2 { color: #e6e8f0; }
html[data-theme='dark'] .ws-pdescr { color: #9aa3b8; }
html[data-theme='dark'] .ws-flrow > span:first-child { color: #e6e8f0; }
html[data-theme='dark'] .ws-freq { color: #788196; }
html[data-theme='dark'] .ws-input { border-color: #262a36; background: #141721; color: #e6e8f0; }
html[data-theme='dark'] .ws-input::placeholder { color: #6b7488; }
html[data-theme='dark'] .ws-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
html[data-theme='dark'] .ws-fhint { color: #788196; }
html[data-theme='dark'] .ws-checkrow, html[data-theme='dark'] .ws-countbox { border-color: #262a36; background: #141721; }
html[data-theme='dark'] .ws-ck-txt strong, html[data-theme='dark'] .ws-countbox strong { color: #d5d9e4; }
html[data-theme='dark'] .ws-ck-txt small, html[data-theme='dark'] .ws-countbox p { color: #788196; }
html[data-theme='dark'] .ws-step { border-color: #262a36; background: #141721; }
html[data-theme='dark'] .ws-step button { color: #9aa3b8; }
html[data-theme='dark'] .ws-step button:hover:not(:disabled) { background: #1b2030; }
html[data-theme='dark'] .ws-step span { color: #e6e8f0; }
html[data-theme='dark'] .ws-pfoot { border-top-color: #1f2432; background: #101320; }
html[data-theme='dark'] .ws-go { background: #3b82f6; box-shadow: 0 12px 28px rgba(59,130,246,.22); }
html[data-theme='dark'] .ws-go:hover:not(:disabled) { background: #2f74ec; }
html[data-theme='dark'] .ws-go:disabled { background: #262e42; }
html[data-theme='dark'] .ws-pnote { color: #788196; }
html[data-theme='dark'] .rp-result a { background: #141721; border-color: #262a36; }
html[data-theme='dark'] .ws-float-close { background: rgba(20, 23, 33, .92); border-color: #262a36; color: #9aa3b8; }
html[data-theme='dark'] .ws-float-close:hover { background: #e6e8f0; border-color: #e6e8f0; color: #101114; }
/* 应用工作台 aw-*（应用集 kind=appset 点进后的页面，如「材质增强」） */
html[data-theme='dark'] .aw-body { background: #0d101b; }
html[data-theme='dark'] .aw-tab { color: #9aa3b8; }
html[data-theme='dark'] .aw-tab:hover { background: #1b2030; color: #e6e8f0; }
html[data-theme='dark'] .aw-tab.on { background: #e6e8f0; color: #101114; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
html[data-theme='dark'] .aw-badge { background: #1b2030; border-color: #4a3a1e; color: #f0b95c; }
html[data-theme='dark'] .aw-hero h1 { color: #e6e8f0; }
html[data-theme='dark'] .aw-hero p { color: #9aa3b8; }
html[data-theme='dark'] .aw-sc-card { background: #141721; border-color: #262a36; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
html[data-theme='dark'] .aw-sc-note { color: #d5d9e4; }
html[data-theme='dark'] .aw-sc-big img, html[data-theme='dark'] .aw-sc-big .aw-sc-ph,
html[data-theme='dark'] .aw-sc-cell img, html[data-theme='dark'] .aw-sc-cell .aw-sc-ph { background: #101320; }
html[data-theme='dark'] .aw-sc-arrow { color: #6b7488; }
html[data-theme='dark'] .aw-sc-tag { background: rgba(0,0,0,.66); }
html[data-theme='dark'] .aw-sc-dots button { background: #333c52; }
html[data-theme='dark'] .aw-sc-dots button.on { background: #e6e8f0; }
html[data-theme='dark'] .aw-panel { border-left-color: #1f2432; background: #101320; }
html[data-theme='dark'] .aw-sec-head b { color: #e6e8f0; }
html[data-theme='dark'] .aw-sec-note, html[data-theme='dark'] .aw-sec-hint { color: #788196; }
html[data-theme='dark'] .aw-upbtn { border-color: #262a36; background: #141721; color: #c9d0e0; }
html[data-theme='dark'] .aw-upbtn:hover { border-color: #e6e8f0; }
html[data-theme='dark'] .aw-upbtn-alt { border-color: #e6e8f0; }
html[data-theme='dark'] .aw-upbtn i { color: #9aa3b8; }
html[data-theme='dark'] .aw-thumb img { border-color: #262a36; }
html[data-theme='dark'] .aw-thumb button { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .aw-model { border-color: #262a36; }
html[data-theme='dark'] .aw-model:hover { border-color: #3b4560; }
html[data-theme='dark'] .aw-model.on { border-color: #7fb0ff; box-shadow: 0 0 0 1px #7fb0ff inset; }
html[data-theme='dark'] .aw-model-ico { background: #1b2030; color: #9aa3b8; }
html[data-theme='dark'] .aw-model-txt b { color: #e6e8f0; }
html[data-theme='dark'] .aw-model-txt small { color: #788196; }
html[data-theme='dark'] .aw-dot { border-color: #3b4560; }
html[data-theme='dark'] .aw-model.on .aw-dot { border-color: #7fb0ff; background: radial-gradient(circle, #7fb0ff 0 45%, #101320 50%); }
html[data-theme='dark'] .aw-sel small { color: #9aa3b8; }
html[data-theme='dark'] .aw-sel select { border-color: #262a36; background: #141721; color: #e6e8f0; }
html[data-theme='dark'] .aw-sel select:focus { border-color: #3b82f6; }
html[data-theme='dark'] .aw-gtype { border-color: #262a36; }
html[data-theme='dark'] .aw-ckb { border-color: #3b4560; background: #141721; }
html[data-theme='dark'] .aw-ckrow input:checked + .aw-ckb { border-color: #7fb0ff; background: #7fb0ff; }
html[data-theme='dark'] .aw-gt-txt b { color: #e6e8f0; }
html[data-theme='dark'] .aw-gt-txt small { color: #788196; }
html[data-theme='dark'] .aw-step { border-color: #262a36; }
html[data-theme='dark'] .aw-step button { color: #c9d0e0; }
html[data-theme='dark'] .aw-step button:hover:not(:disabled) { background: #1b2030; }
html[data-theme='dark'] .aw-step button:disabled { color: #5f6a80; }
html[data-theme='dark'] .aw-step span { color: #e6e8f0; }
html[data-theme='dark'] .aw-radio { border-color: #262a36; background: #141721; }
html[data-theme='dark'] .aw-radio b { color: #e6e8f0; }
html[data-theme='dark'] .aw-radio small { color: #788196; }
html[data-theme='dark'] .aw-radio.on { border-color: #7fb0ff; box-shadow: 0 0 0 1px #7fb0ff inset; }
html[data-theme='dark'] .aw-countrow { border-color: #262a36; }
html[data-theme='dark'] .aw-countrow small { color: #788196; }
html[data-theme='dark'] .aw-input { border-color: #262a36; background: #141721; color: #e6e8f0; }
html[data-theme='dark'] .aw-input:focus { border-color: #3b82f6; }
html[data-theme='dark'] .aw-genmodel, html[data-theme='dark'] .aw-go { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .aw-genmodel:hover, html[data-theme='dark'] .aw-go:hover:not(:disabled) { opacity: 1; filter: brightness(1.06); }
html[data-theme='dark'] .aw-go:disabled { background: #262e42; color: #6b7488; }
html[data-theme='dark'] .aw-pfoot { border-top-color: #1f2432; background: rgba(16,19,32,.96); }
html[data-theme='dark'] .aw-pnote { color: #788196; }
html[data-theme='dark'] .aw-result-head h2 { color: #e6e8f0; }
html[data-theme='dark'] .aw-result-head span { color: #788196; }
html[data-theme='dark'] .aw-result-grid img { border-color: #262a36; }
/* 布局二 lp-*（AI_PRODUCT 左表单 + 右展示） */
html[data-theme='dark'] .lp-form { border-right-color: #1f2432; background: #101320; }
html[data-theme='dark'] .lp-eyebrow { color: #9aa3b8; }
html[data-theme='dark'] .lp-title { color: #e6e8f0; }
html[data-theme='dark'] .lp-sub { color: #9aa3b8; }
html[data-theme='dark'] .lp-up { border-color: #2c3550; }
html[data-theme='dark'] .lp-up:hover { border-color: #3b82f6; }
html[data-theme='dark'] .lp-upico { background: #1b2030; color: #9aa3b8; }
html[data-theme='dark'] .lp-up strong { color: #e6e8f0; }
html[data-theme='dark'] .lp-uphint { color: #8f97a8; }
html[data-theme='dark'] .lp-upnote { color: #788196; }
html[data-theme='dark'] .lp-thumb img { border-color: #262a36; }
html[data-theme='dark'] .lp-thumb > button { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .lp-add { border-color: #333c52; background: #141721; color: #9aa3b8; }
html[data-theme='dark'] .lp-add:hover { border-color: #e6e8f0; }
html[data-theme='dark'] .lp-checkcard { border-color: #262a36; background: #141721; }
html[data-theme='dark'] .lp-foot { border-top-color: #1f2432; background: #101320; }
html[data-theme='dark'] .lp-go { background: #e6e8f0; color: #101114; }
html[data-theme='dark'] .lp-go:disabled { background: #262e42; color: #6b7488; }
html[data-theme='dark'] .lp-gonote { color: #788196; }
html[data-theme='dark'] .lp-stage { background: linear-gradient(180deg, #0f1117, #0d101b); }
html[data-theme='dark'] .lp-media { background: #141721; border-color: #262a36; box-shadow: 0 16px 44px rgba(0,0,0,.4); }
html[data-theme='dark'] .bt-ph { background: repeating-conic-gradient(#171a23 0 25%, #101320 0 50%) 0 0/28px 28px; }
html[data-theme='dark'] .lp-stagenote { color: #788196; }
html[data-theme='dark'] .lp-result-grid img { border-color: #262a36; }
/* 布局三 bt-*（BATCH 批量卡） */
html[data-theme='dark'] .bt-main { background: linear-gradient(180deg, #0f1117 0%, #0d101b 100%); }
html[data-theme='dark'] .bt-badge { border-color: #2c3550; background: #141721; color: #d5d9e4; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
html[data-theme='dark'] .bt-hero h1 { color: #e6e8f0; }
html[data-theme='dark'] .bt-sub { color: #9aa3b8; }
html[data-theme='dark'] .bt-upcard { background: #141721; border-color: #262a36; box-shadow: 0 16px 44px rgba(0,0,0,.35); }

/* 13.6 签到弹窗 dark 文字修复（日历标题/星期/统计/记录原硬编码暖棕深灰在深底不可读） */
html[data-theme='dark'] .ck-cal-head b, html[data-theme='dark'] .ck-recs > b { color: var(--text); }
html[data-theme='dark'] .ck-week span { color: #b08d68; }
html[data-theme='dark'] .ck-day { background: #171a23; border-color: #2a2f3d; }
html[data-theme='dark'] .ck-day.today { color: #ff8a5c; }
html[data-theme='dark'] .ck-stats > div { border-color: #2a2f3d; }
html[data-theme='dark'] .ck-stats em { color: var(--text-2); }
html[data-theme='dark'] .ck-stats > div:nth-child(3) b { color: #5eb0f0; }
html[data-theme='dark'] .ck-note { color: #d4a574; }
html[data-theme='dark'] .ck-rec { color: var(--text-2); }
html[data-theme='dark'] .ck-rec em { color: var(--text); }
html[data-theme='dark'] .ck-go.done { background: #1b2030; color: #6b7488; }

/* ============ 第十四批：外链失效破图兜底 ============ */
/* 第三方图床过期 404 后，<img> 会渲染成系统破图图标；统一替换为「原图已失效」占位块 */
.img-dead-tip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; min-height: 44px;
  background: repeating-linear-gradient(45deg, #f1f4f9 0 10px, #e9edf4 10px 20px);
  border: 1px dashed #c4ccd9; border-radius: 8px;
  color: #8a93a6; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  user-select: none; box-sizing: border-box;
}
/* 历史记录小缩略图（1:1 方块） */
.gw2-hist-item .img-dead-tip.is-thumb { border-radius: 0 0 0 0; font-size: 11px; min-height: 0; aspect-ratio: 1 / 1; }
/* 结果预览卡片 */
.gw-img-media .img-dead-tip.is-card { min-height: 180px; font-size: 13px; }
/* 任务详情弹窗大图区 */
.cu-modal-img .img-dead-tip.is-modal { min-height: 240px; font-size: 14px; border-radius: 12px; }
html[data-theme='dark'] .img-dead-tip {
  background: repeating-linear-gradient(45deg, #171b26 0 10px, #131722 10px 20px);
  border-color: #2c3242; color: #6d7689;
}

/* ============ 第二十四批：流畅度专项（首屏反馈 / 长列表少渲染 / 动画不触发重排） ============ */

/* 1) 路由切换顶部进度条：点导航立刻有反馈，视图渲染完成后淡出。
      ★ 它是 fixed 定位、只动 width（不触发布局），因此本身几乎不产生开销。 */
.route-bar {
  position: fixed; left: 0; top: 0; width: 100%; height: 2px;
  z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.route-bar.on { opacity: 1; }
.route-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, .5);
  transition: width .28s cubic-bezier(.2, .8, .2, 1);
}

/* 2) 长列表跳过屏外渲染（content-visibility:auto）。
      任务卡 / 收藏作品 / 积分流水等列表动辄几十上百条，原先每次进入都要把整列全部渲染+合成；
      现在视口外的条目直接跳过渲染。必须配 contain-intrinsic-size 提供占位高度，
      否则滚动条会在滚动中不断变化（反而更卡）。
      ★ 刻意不加到画布缩略图 / 市场瀑布流：前者依赖实测尺寸、后者靠绝对定位算列高，跳过渲染会算错。 */
.cu-grid > *      { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.tc-grid > *      { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.acc-flow > *     { content-visibility: auto; contain-intrinsic-size: auto 64px; }

/* 3) 尊重系统「减少动态效果」：进度条与瀑布流重排动画直接瞬时完成 */
@media (prefers-reduced-motion: reduce) {
  .route-bar > i { transition: none; }
  .mk-grid.mk-abs .mk-card { transition: none !important; }
}

/* ===== 第二十八批：失效媒体统一占位 =====
   外链图床会停摆（如 imgv1.817778.xyz 已失联），error 委托（app.js
   installBrokenMediaFallback）给媒体容器加 .media-broken 并隐藏死图，
   这里显示占位提示，替代浏览器破损图标。配色走全局变量，暗色自动适配。 */
.media-broken { position: relative; min-height: 120px; }
.media-broken::after {
  content: '图片已失效';
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding-top: 30px; /* 上方留给图标 */
  font-size: 13px; color: var(--text-2);
  background: var(--bg-soft);
  border-radius: inherit;
  pointer-events: none;
}
.media-broken::before {
  content: '';
  position: absolute; top: calc(50% - 44px); left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  z-index: 1; /* 浮在 ::after 底色之上 */
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M4.5 17.5l4.5-4.5 3.5 3.5 4-4 3 3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
  opacity: .8;
  pointer-events: none;
}
html[lang='en'] .media-broken::after { content: 'Image unavailable'; }
html[lang='zh-Hant'] .media-broken::after { content: '圖片已失效'; }
.media-broken.is-video::after { content: '视频已失效'; }
html[lang='en'] .media-broken.is-video::after { content: 'Video unavailable'; }
html[lang='zh-Hant'] .media-broken.is-video::after { content: '影片已失效'; }
/* 占位浮层不挡按钮：分享/重试等操作按钮保持在浮层之上可点 */
.media-broken .tk-share, .media-broken button { position: relative; z-index: 1; }

/* ================= 第二十九批：移动端 App 风格布局（≤767px） =================
   手机访问时整体切换为 App 手感：隐藏左侧图标栏、顶栏收敛、新增底部 Tab 导航
   （#mobile-tabbar，条目由 renderTabbar 按「左侧菜单」配置派生）、弹窗改底部抽屉。 */
.mtabbar { display: none; }
@media (max-width: 767px) {
  /* ---- 骨架：去侧栏，顶栏 App 化 ---- */
  .side { display: none; }
  .topbar { height: 54px; gap: 10px; padding-right: 12px; }
  .tb-logo { width: 44px; }
  .shell { height: calc(100vh - 54px); height: calc(100dvh - 54px); }
  .main-area { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* ---- 底部 Tab 导航（毛玻璃 + 安全区） ---- */
  .mtabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(24, 39, 92, .06);
  }
  .mtab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 4px 0 2px; border-radius: 12px;
    color: var(--text-2); font-size: 10.5px; font-weight: 600;
    transition: color .15s, transform .15s;
  }
  .mtab:active { transform: scale(.94); }
  .mtab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mtab.active { color: var(--primary-deep); font-weight: 800; }
  .mtab.active svg { stroke-width: 2.1; }
  html[data-theme='dark'] .mtabbar { background: rgba(23, 26, 35, .95); border-top-color: #262a38; box-shadow: 0 -6px 24px rgba(0, 0, 0, .4); }
  /* ---- 任务中心 App 化：大卡、双列等宽 ---- */
  .tc-page { padding: 12px 12px 28px; gap: 10px; }
  .tc-head { padding: 14px 16px; border-radius: 14px; }
  .tc-head h1 { font-size: 18px; }
  .tc-head p { font-size: 12.5px; line-height: 20px; }
  .tc-head-right > span { display: none; }
  .tc-refresh { min-height: 36px; padding: 6px 12px; border-radius: 10px; }
  .tc-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tc-stat { padding: 12px 14px; border-radius: 14px; }
  .tc-stat strong { font-size: 19px; }
  .tc-filter { padding: 6px; border-radius: 14px; }
  .tc-filter-grid { gap: 3px; }
  .tc-filter button { min-height: 38px; padding: 6px 8px; font-size: 12.5px; border-radius: 10px; }
  .tc-card { border-radius: 14px; }
  .tc-body { padding: 10px 12px 12px; }
  .tc-actions { gap: 6px; }
  .tc-act { padding: 6px 10px; font-size: 11.5px; }
  /* ---- 弹窗 → 底部抽屉（App 手感） ---- */
  .modal-mask { place-items: end center; }
  .modal {
    width: 100%; max-width: 100vw;
    border-radius: 18px 18px 0 0;
    max-height: 88dvh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: mSheet .26s cubic-bezier(.2, .8, .3, 1);
  }
  .modal.cu-host, .modal.pklib-host { width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; }
}
@keyframes mSheet { from { transform: translateY(28px); opacity: .55; } to { transform: none; opacity: 1; } }

/* 第二十九批补：任务中心暗色遗漏项（统计数字/页标题/刷新与操作按钮此前硬编码浅色，暗色下不可见） */
html[data-theme='dark'] .tc-head h1 { color: var(--text); }
html[data-theme='dark'] .tc-stat strong { color: var(--text); }
html[data-theme='dark'] .tc-refresh { border-color: var(--border); background: var(--bg-soft); color: var(--text-2); }
html[data-theme='dark'] .tc-refresh:hover { border-color: #2c3550; background: #1b2030; color: #7fb0ff; }
html[data-theme='dark'] .tc-act { border-color: var(--border); background: #1b2030; color: #c9d0e0; }
html[data-theme='dark'] .tc-act:hover { border-color: #2c3550; color: #7fb0ff; }
html[data-theme='dark'] .tc-filter button:hover { background: #1b2030; }
html[data-theme='dark'] .tc-empty p { color: var(--text-2); }

/* ================= 第三十批：移动端登录/注册/找回 全面重设计 =================
   根因（双因叠加）：
   ① 旧 @media(max-width:760px) 块给 .am-modal 固定 width:440px——390px 屏直接横向溢出
     （该块已删除）；
   ② .am-overlay 为 place-items:center 的自动轨道 grid，>760px 时 .am-modal 固定
     width:860px 把轨道撑宽，max-width:100% 解析到轨道自身宽 → 失去约束。
     已给 .am-overlay 加 grid-template-columns: minmax(0, 100%)（桌面端零影响）。 */

/* ---- ≤767px：弹窗 → 全屏页（App 手感） ---- */
@media (max-width: 767px) {
  .am-overlay { padding: 0; }
  .am-modal {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0; box-shadow: none;
    flex-direction: column;
    animation: amSheetUp .3s cubic-bezier(.2, .8, .3, 1);
  }
  @keyframes amSheetUp { from { transform: translateY(36px); opacity: .5; } to { transform: none; opacity: 1; } }
  /* 侧栏 → 顶部品牌条（保留品牌露出，拼贴画/侧栏文案收起） */
  .am-modal .am-side {
    flex: none; flex-direction: row; align-items: center; justify-content: space-between;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px;
    background: linear-gradient(135deg, #eef4ff 0%, #f7f9ff 60%, #fdf5ee 100%);
  }
  .am-collage, .am-side-foot { display: none; }
  .am-brand { font-size: 16px; }
  .am-logo { width: 32px; height: 32px; }
  /* 表单区铺满 + 触控友好 */
  .am-form {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 26px 22px calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .am-form h2 { font-size: 22px; }
  .am-field, .am-cap input { height: 50px; border-radius: 13px; }
  .am-submit { height: 50px; margin-top: 24px; }
  .am-wx { height: 48px; }
  .am-cap img { height: 48px; }
  /* 关闭按钮加大触控 */
  .am-close { top: calc(12px + env(safe-area-inset-top, 0px)); width: 38px; height: 38px; }
  /* ★ 防 iOS 聚焦自动放大：移动端输入字号 ≥16px */
  .am-field input, .am-cap input, .am-form input, .am-form select, .am-form textarea { font-size: 16px; }
}
/* 桌面端回退保护：任何宽度下弹窗都不超过视口 */
@media (min-width: 768px) {
  .am-modal { width: min(860px, calc(100vw - 40px)); }
}

/* ---- 第三十批：登录弹窗暗色主题适配（此前恒为白底，暗色下刺眼） ---- */
html[data-theme='dark'] .am-modal { background: #1b1f2a; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
html[data-theme='dark'] .am-close { color: #8b93a5; background: rgba(35, 40, 54, .85); }
html[data-theme='dark'] .am-close:hover { background: #262c3b; color: #e6e9f2; }
html[data-theme='dark'] .am-modal .am-side { background: linear-gradient(160deg, #1f2637 0%, #1b2130 55%, #241f2d 100%); }
html[data-theme='dark'] .am-brand { color: #e6e9f2; }
html[data-theme='dark'] .am-form h2 { color: #e6e9f2; }
html[data-theme='dark'] .am-welcome, html[data-theme='dark'] .am-form .am-tip { color: #99a1b3; }
html[data-theme='dark'] .am-field { border-color: #2b3143; background: #222836; }
html[data-theme='dark'] .am-field:focus-within { border-color: var(--primary); background: #242b3c; box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
html[data-theme='dark'] .am-field input { color: #e6e9f2; }
html[data-theme='dark'] .am-field input::placeholder, html[data-theme='dark'] .am-cap input::placeholder { color: #6b7385; }
html[data-theme='dark'] .am-cap input { border-color: #2b3143; background: #222836; color: #e6e9f2; }
html[data-theme='dark'] .am-cap input:focus { border-color: var(--primary); background: #242b3c; box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
html[data-theme='dark'] .am-cap img { border-color: #2b3143; background: #fff; }
html[data-theme='dark'] .am-tabs { border-bottom-color: #2b3143; }
html[data-theme='dark'] .am-tabs button { color: #7c8496; }
html[data-theme='dark'] .am-tabs button.on { color: #e6e9f2; }
html[data-theme='dark'] .am-error { background: #3a2226; border-color: #5c2f36; color: #ff8f8f; }
html[data-theme='dark'] .am-switch { color: #99a1b3; }
html[data-theme='dark'] .am-forgot a, html[data-theme='dark'] .am-switch a { color: #7fb0ff; }
html[data-theme='dark'] .am-eye:hover { color: #c3c9d6; background: #262c3b; }
html[data-theme='dark'] .am-code .am-send { background: rgba(59, 130, 246, .16); color: #7fb0ff; }
html[data-theme='dark'] .am-or { color: #5d6577; }
html[data-theme='dark'] .am-or i { background: #2b3143; }
html[data-theme='dark'] .am-wx { border-color: #2e4a38; background: #1c2a22; color: #4ecb78; }
html[data-theme='dark'] .am-wx:hover { background: #213327; }
html[data-theme='dark'] .am-foot { color: #6b7385; }
html[data-theme='dark'] .am-noreg { color: #99a1b3; }

/* ================= 第三十一批：一比一复刻 diantuai 详情弹窗 + 任务卡 =================
   灵感详情弹窗（openCuModal）与任务详情弹窗（openTaskModal）共用 .cu-modal.dz 壳：
   左大图（浅灰底 + 径向高光 + 角标）右信息（章行/标题/标签/提示词分卡/底栏）。
   设计令牌取自 diantuai 实站：26px 圆角、#171a18 主按钮、#eef0ed 次按钮、#f7f7f4 信息底。 */
.modal-mask { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.cu-host .cu-modal.dz {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  /* 第三十三批：行允许收缩（minmax(0,auto)），矮窗口下内容超高时由信息列内部滚动，底栏不被裁 */
  grid-template-rows: minmax(0, auto);
  width: min(1180px, 96vw); max-height: min(94vh, 940px);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
  animation: dzIn .26s cubic-bezier(.2, .8, .3, 1);
}
.cu-modal.dz .cu-modal-img { min-height: 0; }
/* 第三十二批：解锁通用外壳的 1020px/780px 上限，对齐 diantuai max-w-[1180px] + 94vh */
.modal.cu-host:has(.cu-modal.dz) { width: min(1180px, 96vw); max-width: min(1180px, 96vw); max-height: min(94vh, 940px); }
@keyframes dzIn { from { transform: translateY(14px) scale(.985); opacity: .6; } to { transform: none; opacity: 1; } }
/* ---- 左：媒体区 ---- */
.cu-modal.dz .cu-modal-img {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 0; max-height: none; padding: 24px; background: #e8e9e5; overflow: hidden;
}
.cu-modal.dz .cu-modal-img::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .92), transparent 52%); opacity: .7;
}
.cu-modal.dz .cu-modal-img img, .cu-modal.dz .cu-modal-img video {
  position: relative; display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 16px; box-shadow: 0 18px 60px rgba(18, 22, 19, .16);
}
.cu-modal.dz .cu-modal-img .tm-ph { position: relative; }
.dz-hint {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 700;
}
.dz-hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ---- 右：信息面板 ---- */
.cu-modal.dz .cu-modal-info { display: flex; flex-direction: column; min-height: 0; max-height: none; flex: 1 1 auto; width: auto; padding: 0; background: #f7f7f4; overflow: hidden; }
.dz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid rgba(20, 24, 28, .06); flex-shrink: 0; }
.dz-head-l { min-width: 0; }
.dz-chiprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dz-chip-brand {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: #f5f5f6; color: #18181a; font-size: 10px; font-weight: 900; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .06);
}
.dz-chip-brand svg { width: 11px; height: 11px; }
.dz-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fff; color: #8b909b; font-size: 10px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .06); }
.dz-stchip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(22, 24, 28, .8); color: #fff; font-size: 10.5px; font-weight: 800; }
.dz-stchip.tc-st-failed { background: #b91c1c; }
.dz-title { margin-top: 12px; font-size: 24px; font-weight: 900; letter-spacing: -.035em; color: #18181a; line-height: 1.25; }
.dz-sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; color: #9aa0aa; }
.dz-sub svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dz-close {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: #fff; color: #5b6068; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .08); transition: background-color .15s, color .15s;
}
.dz-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dz-close:hover { background: #ececea; color: #18181a; }
.dz-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 24px; -webkit-overflow-scrolling: touch; }
/* ★ 第四十六批追补：`.dz-desc`（灵感弹窗描述行）已删除 —— 它的内容恒为下方「中文提示词」的开头，
   同屏重复；样式规则一并清掉，不留死代码。 */
.dz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* ★ 第四十六批追补（三）：用户反馈「中间的小标签上下居中会更好看」。
   排查过程（三层，都做了量具）：
     ① 像素法读用户截图：胶囊 [182..207]、文字墨迹 [190..199] → 上下留白都是 8px，**几何上已居中**；
     ② 全站结构走查（Range 行矩形真实测量）：53 页 619 个候选控件里，「单行控件文字垂直不居中」= **0 个**；
     ③ 深色主题复现渲染比对：与本机渲染一致。
   → 说明这不是本项目 CSS 的缺陷，而是**字体度量的视觉重心问题**：字体的 ascent 区大于 descent 区，
     而中文与数字都不占用 descender 空间，于是「按行盒几何居中」看起来就偏上（约 1px）。
     解法是排版学里的**光学居中**：上内边距比下内边距大 1px，把文字视觉重心压到中线上。
   注意两点：
     · `.dz-tags` 是 flex 容器 → `span` 是 flex item，`display` 会被 blockify，
       所以显式写 align-items/justify-content 才是有效保证（同族 .dz-chip 也是这么写的）；
     · 不要把 line-height 压成 1 —— 实测那会让内容盒从 ~14px 塌到 10.5px、胶囊从 26px 变矮到
       22.5px（用户没要求的尺寸变化）。这里 1.33 ≈ 原 normal 行高，胶囊总高仍是 26px。 */
.dz-tags span { display: inline-flex; align-items: center; justify-content: center; line-height: 1.33; padding: 7px 10px 5px; border-radius: 999px; background: #fff; color: #8b909b; font-size: 10.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .06); }
.dz-sect { margin-top: 20px; border: 1px solid rgba(20, 24, 28, .06); border-radius: 12px; background: rgba(255, 255, 255, .65); padding: 16px; }
.dz-sect:first-of-type { margin-top: 0; }
.dz-sect-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dz-sect-head h3 { font-size: 14px; font-weight: 800; color: #232529; }
.dz-sect-head p { margin-top: 3px; font-size: 12px; color: #a0a5b0; }
.dz-mini {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e5e7ea; border-radius: 8px; background: #fff; padding: 6px 10px;
  font-size: 12px; font-weight: 600; color: #5b6068; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.dz-mini svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-mini:hover { border-color: #b9cdf5; background: #f0f4ff; color: #3b6ff0; }
.dz-pcards { display: grid; gap: 12px; margin-top: 12px; }
.dz-pcard { border: 1px solid #e8eaec; border-radius: 12px; background: #fff; padding: 14px; }
.dz-pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dz-pcard-head p { font-size: 12px; font-weight: 700; color: #5b6068; }
.dz-ptext { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.65; color: #5b6068; }
.dz-haslead { margin-top: 12px; }
.dz-sect-err { border-color: rgba(220, 38, 38, .22); background: rgba(253, 236, 238, .6); }
.dz-sect-err .dz-ptext { color: #c2384c; }
/* 第三十二批：规格区改为 diantuai 结构——标题在盒外，白底单盒内居中瓦片 + 分隔线 */
.dz-specsect { margin-top: 20px; }
.dz-specsect .dz-sect-head { margin-bottom: 12px; }
.dz-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 0; border: 1px solid #e8eaec; border-radius: 12px; background: #fff; overflow: hidden; }
.cu-modal.dz .dz-specs .cu-kv {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0;
  border: 0; border-radius: 0; background: transparent; padding: 14px 12px; text-align: center;
}
.cu-modal.dz .dz-specs .cu-kv:nth-child(even) { border-left: 1px solid #e8eaec; }
.cu-modal.dz .dz-specs .cu-kv:nth-child(n+3) { border-top: 1px solid #e8eaec; }
.cu-modal.dz .dz-specs .cu-kv span { flex-shrink: 1; font-size: 11px; font-weight: 600; color: #a0a5b0; }
.cu-modal.dz .dz-specs .cu-kv b { font-size: 13.5px; font-weight: 800; color: #232529; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* 作品操作区（任务详情） */
.dz-workbtns { display: grid; gap: 10px; margin-top: 12px; }
.dz-workrow { display: flex; gap: 8px; }
.dz-workrow .dz-ghost { flex: 1 1 auto; }
.dz-sharebox { display: flex; flex: 1 1 auto; min-width: 0; }
.dz-sharebtn { width: 100%; justify-content: center; }
.dz-meta { font-size: 11.5px; font-weight: 600; color: #a0a5b0; }
.dz-delbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; border: 0; border-radius: 12px; background: #fdecee; color: #c2384c;
  font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background-color .15s, color .15s;
}
.dz-delbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-delbtn:hover { background: #fbdde1; color: #a82638; }
/* 作者行（第三十三批：置顶到信息栏首行，下加分隔线） + 创意参数 */
.cu-modal.dz .cu-author { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid #f1f1f4; }
.cu-modal.dz .dz-creative { margin-left: auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: #a0a5b0; }
/* ---- 底栏 ---- */
.dz-foot {
  flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  border-top: 1px solid rgba(20, 24, 28, .06); background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 20px;
}
/* 第三十二批：右侧按钮组桌面端也要单行 flex（diantuai flex gap-2），否则块级 div 内按钮换行把底栏撑到 96px */
.dz-foot-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dz-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 0; border-radius: 12px; background: #171a18; color: #fff;
  padding: 0 20px; font-size: 14px; font-weight: 900; cursor: pointer; white-space: nowrap;
  box-shadow: 0 12px 28px rgba(20, 24, 28, .18); transition: transform .18s, background-color .18s;
}
.dz-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dz-primary:hover { transform: translateY(-2px); background: #000; }
.dz-primary:disabled { opacity: .6; transform: none; cursor: default; }
.dz-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border: 0; border-radius: 12px; background: #eef0ed; color: #5b6068;
  padding: 0 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.dz-ghost svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-ghost:hover { background: #e5e8e3; color: #232529; }
.dz-favbtn.on { background: #fdecec; color: #e5484d; }
.cu-modal.dz .cu-favnote { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #f5f5f6; color: #a0a5b0; font-size: 11.5px; font-weight: 700; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-modal.dz .cu-favnote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-modal.dz .cu-favnote svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.dz-sq { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #eef0ed; color: #5b6068; transition: background-color .15s, color .15s; }
.dz-sq svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-sq:hover { background: #e5e8e3; color: #232529; }
/* ---- 任务卡：diantuai /history 同款 ---- */
.tc-card .tc-status { top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(22, 24, 28, .62); color: #fff; border: 0; }
.tc-card .tc-count { gap: 5px; }
.tc-card .tc-count svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-card .tc-status svg { width: 12px; height: 12px; }
.tc-keep {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px;
  padding: 8px 10px; border-radius: 10px; background: #fdf6e3; color: #8a6d1f;
  font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tc-keep svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tc-keep.is-err { background: #fdecee; color: #c2384c; }
.tc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tc-act.tc-act-dark, .tc-actions .tc-act.tc-share { border: 0; background: #171a18; color: #fff; box-shadow: 0 8px 18px rgba(20, 24, 28, .16); }
.tc-act.tc-act-dark:hover, .tc-actions .tc-act.tc-share:hover { background: #000; color: #fff; transform: translateY(-1px); }
.tc-actions .tc-act.tc-share.is-pending, .tc-actions .tc-act.tc-share.is-ok, .tc-actions .tc-act.tc-share.is-rej { box-shadow: none; transform: none; }
/* 删除按钮在 .tc-actions 之外（diantuai 整行独立），选择器不带 .tc-actions 前缀 */
.tc-act.tc-del-full { width: 100%; justify-content: center; min-height: 38px; margin-top: 8px; border: 0; border-radius: 10px; background: #fdecee; color: #c2384c; box-shadow: none; transform: none; }
.tc-act.tc-del-full:hover { background: #fbdde1; color: #a82638; transform: none; }
/* ---- 暗色主题适配 ---- */
html[data-theme='dark'] .modal.cu-host .cu-modal.dz { box-shadow: 0 30px 100px rgba(0, 0, 0, .6); }
html[data-theme='dark'] .cu-modal.dz .cu-modal-img { background: #101318; }
html[data-theme='dark'] .cu-modal.dz .cu-modal-info { background: #171b24; }
html[data-theme='dark'] .dz-head { border-bottom-color: rgba(255, 255, 255, .08); }
html[data-theme='dark'] .dz-chip-brand { background: #232a3a; color: #e6e9f2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html[data-theme='dark'] .dz-chip, html[data-theme='dark'] .dz-tags span { background: #202634; color: #99a1b3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html[data-theme='dark'] .dz-title { color: #e6e9f2; }
html[data-theme='dark'] .cu-modal.dz .cu-author { border-bottom-color: rgba(255, 255, 255, .08); }
html[data-theme='dark'] .dz-sub, html[data-theme='dark'] .dz-ptext, html[data-theme='dark'] .dz-pcard-head p, html[data-theme='dark'] .dz-sect-head h3 { color: #c9d0e0; }
html[data-theme='dark'] .dz-sect-head p, html[data-theme='dark'] .dz-meta, html[data-theme='dark'] .cu-modal.dz .dz-specs .cu-kv span, html[data-theme='dark'] .cu-modal.dz .dz-creative { color: #7c8496; }
html[data-theme='dark'] .cu-modal.dz .dz-specs .cu-kv b, html[data-theme='dark'] .dz-sect-head h3 { color: #e6e9f2; }
html[data-theme='dark'] .dz-sect { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); }
html[data-theme='dark'] .dz-pcard { border-color: #2b3143; background: #1d2330; }
html[data-theme='dark'] .dz-specs { border-color: #2b3143; background: #1d2330; }
html[data-theme='dark'] .cu-modal.dz .dz-specs .cu-kv { border-color: #2b3143; }
html[data-theme='dark'] .dz-mini { border-color: #2b3143; background: #202634; color: #c9d0e0; }
html[data-theme='dark'] .dz-mini:hover { border-color: #2c3550; background: #1b2540; color: #7fb0ff; }
html[data-theme='dark'] .dz-close { background: #202634; color: #c9d0e0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html[data-theme='dark'] .dz-close:hover { background: #2a3145; color: #fff; }
html[data-theme='dark'] .dz-foot { border-top-color: rgba(255, 255, 255, .08); background: rgba(23, 27, 36, .92); }
html[data-theme='dark'] .dz-primary { background: #f0f2f5; color: #12141a; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
html[data-theme='dark'] .dz-primary:hover { background: #fff; }
html[data-theme='dark'] .dz-ghost, html[data-theme='dark'] .dz-sq { background: #232a3a; color: #c9d0e0; }
html[data-theme='dark'] .dz-ghost:hover, html[data-theme='dark'] .dz-sq:hover { background: #2a3145; color: #fff; }
html[data-theme='dark'] .dz-favbtn.on { background: #3a2226; color: #ff8f8f; }
html[data-theme='dark'] .cu-modal.dz .cu-favnote { background: #202634; color: #7c8496; }
html[data-theme='dark'] .dz-delbtn, html[data-theme='dark'] .tc-keep.is-err { background: #3a2226; color: #ff8f8f; }
html[data-theme='dark'] .tc-keep { background: #32290f; color: #d9b45c; }
html[data-theme='dark'] .tc-act.tc-act-dark, html[data-theme='dark'] .tc-actions .tc-act.tc-share { background: #f0f2f5; color: #12141a; box-shadow: none; }
html[data-theme='dark'] .tc-act.tc-act-dark:hover, html[data-theme='dark'] .tc-actions .tc-act.tc-share:hover { background: #fff; }
html[data-theme='dark'] .tc-card .tc-status { background: rgba(10, 12, 16, .68); }
html[data-theme='dark'] .dz-stchip.tc-st-failed { background: #7f1d1d; }
/* ---- 移动端（≤767px）：弹窗全宽、双栏转上下 ---- */
@media (max-width: 767px) {
  .modal.cu-host .cu-modal.dz { display: flex; flex-direction: column; width: 100vw; max-width: 100vw; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  /* 第三十三批：手机端 flex 纵列——图片固定高、信息列内部滚动、底栏始终钉在弹窗底部（grid 自动行会把底栏挤出被裁） */
  .cu-modal.dz .cu-modal-img { flex: 0 0 auto; }
  .cu-modal.dz .cu-modal-info { flex: 1 1 auto; min-height: 0; }
  /* 第三十二批：桌面 96vw 的 :has() 解锁在手机上要还原成满宽（抽屉），否则 390 视口算成 374 */
  .modal.cu-host:has(.cu-modal.dz) { width: 100vw; max-width: 100vw; max-height: 92dvh; }
  .cu-modal.dz .cu-modal-img { padding: 14px; max-height: 40dvh; }
  .cu-modal.dz .cu-modal-img img, .cu-modal.dz .cu-modal-img video { max-height: 34dvh; }
  .dz-head { padding: 16px 18px; }
  .dz-scroll { padding: 16px 18px; }
  .dz-foot { grid-template-columns: 1fr; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .dz-foot-r { display: flex; gap: 8px; }
  .dz-foot-r .dz-ghost, .dz-foot-r .dz-favbtn, .dz-foot-r .cu-favnote, .dz-foot-r .dz-sq { flex: 1 1 auto; min-height: 44px; }
  .dz-foot-r .dz-sq { flex: 0 0 44px; width: 44px; height: 44px; }
  .dz-specs { grid-template-columns: 1fr 1fr; }
  /* 第三十三批：手机端任务卡单列 + 触控目标 ≥40px */
  .tc-act { min-height: 40px; padding: 8px 14px; font-size: 12.5px; }
  .tc-act.tc-del-full { min-height: 44px; }
  .tc-keep { font-size: 11.5px; }
}

/* 第三十一批补：任务详情「分享到灵感」待发布态给主按钮质感（对齐 diantuai「发布并作品」） */
.dz-ghost.dz-sharebtn:not(.is-pending):not(.is-ok):not(.is-rej) { background: #171a18; color: #fff; box-shadow: 0 12px 28px rgba(20, 24, 28, .18); }
.dz-ghost.dz-sharebtn:not(.is-pending):not(.is-ok):not(.is-rej):hover { background: #000; color: #fff; }
html[data-theme='dark'] .dz-ghost.dz-sharebtn:not(.is-pending):not(.is-ok):not(.is-rej) { background: #f0f2f5; color: #12141a; box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
html[data-theme='dark'] .dz-ghost.dz-sharebtn:not(.is-pending):not(.is-ok):not(.is-rej):hover { background: #fff; }

/* ================= 第三十五批：暗色模式全站补全（CDP 逐页走查 97 页后定向修复） =================
 * 走查范围：前台 23 路由 + 30 工具页 + 后台 44 页签。
 * 本块补齐此前完全没有暗色规则的组件面（应用中心 tl2-* / 充值弹窗 rc-* / 文案工作台 cp-*）
 * 与账户中心、对话、绘图、任务中心的漏项。 */

/* —— A. 应用中心（#/tools .tl2-*：白底 + 浅字，几乎不可读，最严重） —— */
html[data-theme='dark'] .tl2-page { background: var(--bg); }
html[data-theme='dark'] .tl2-top { background: #12141c; border-bottom-color: var(--border); }
html[data-theme='dark'] .tl2-search input { background: #171a23; color: var(--text); }
html[data-theme='dark'] .tl2-search input:focus { background: #171a23; border-color: #2c3d63; }
html[data-theme='dark'] .tl2-card { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .tl2-card:hover { border-color: #2c3d63; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
html[data-theme='dark'] .tl2-card-thumb img { background: #1b2030; }

/* —— B. 充值弹窗（.rc-*：整窗白底、侧栏浅色渐变） —— */
html[data-theme='dark'] .rc-modal { background: #171a23; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
html[data-theme='dark'] .rc-side { background: linear-gradient(165deg, #26221c 0%, #161a26 55%, #211c1e 100%); }
html[data-theme='dark'] .rc-side-ico { background: #242a3a; color: #e6e8f0; box-shadow: none; }
html[data-theme='dark'] .rc-perk > span { background: rgba(255, 255, 255, .07); color: #e6e8f0; box-shadow: none; }
html[data-theme='dark'] .rc-side-foot { border-top-color: rgba(255, 255, 255, .14); }
html[data-theme='dark'] .rc-user-av { background: #e6e8f0; color: #12141c; }
html[data-theme='dark'] .rc-user .am-close { background: #242a3a; }
html[data-theme='dark'] .rc-tabs { background: #101320; }
html[data-theme='dark'] .rc-tab.on { background: #242a3a; color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
html[data-theme='dark'] .rc-pack { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .rc-pack:hover { border-color: #333c52; }
html[data-theme='dark'] .rc-pack.on { border-color: #e6e8f0; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
html[data-theme='dark'] .rc-pack-rec { background: #e6e8f0; color: #12141c; }
html[data-theme='dark'] .rc-pack-check { background: #e6e8f0; color: #12141c; }
html[data-theme='dark'] .rc-pack-unit { background: #1b2030; }
html[data-theme='dark'] .rc-checkout { background: #101320; }
html[data-theme='dark'] .rc-ck-item em, html[data-theme='dark'] .rc-note { color: #788196; }
html[data-theme='dark'] .rc-member-hero { background: linear-gradient(120deg, #27211a, #221d18); border-color: #3a3222; }

/* —— C. AI 文案工作台（#/tool/copywriting .cp-*：白侧栏/白编辑器 + 暗底深字标题） —— */
html[data-theme='dark'] .cp-side { background: #12141c; border-right-color: var(--border); border-bottom-color: var(--border); }
html[data-theme='dark'] .cp-side > b { color: var(--text); }
html[data-theme='dark'] .cp-gname { color: #788196; }
html[data-theme='dark'] .cp-scene { color: var(--text-2); }
html[data-theme='dark'] .cp-scene:hover { background: #1e2330; }
html[data-theme='dark'] .cp-scene.on { background: #1b2a44; color: #e6e8f0; }
html[data-theme='dark'] .cp-ico { background: #242a3a; color: #9aa3b8; }
html[data-theme='dark'] .cp-scene.on .cp-ico { background: #2c3d63; color: #7fb0ff; }
html[data-theme='dark'] .cp-main { background: linear-gradient(180deg, #0f1117, #12141c); }
html[data-theme='dark'] .cp-eyebrow { color: #788196; }
html[data-theme='dark'] .cp-title, html[data-theme='dark'] .cp-result b { color: var(--text); }
html[data-theme='dark'] .cp-sub { color: #788196; }
html[data-theme='dark'] .cp-editor { background: #141721; border-color: var(--border); box-shadow: 0 16px 44px rgba(0, 0, 0, .4); }
html[data-theme='dark'] .cp-input { color: var(--text); }
html[data-theme='dark'] .cp-input::placeholder { color: #5a6478; }
html[data-theme='dark'] .cp-row { border-top-color: var(--border); }
html[data-theme='dark'] .cp-rowfield small { color: #9aa3b8; }
html[data-theme='dark'] .cp-sel { background: #101320; border-color: var(--border); color: var(--text); }
html[data-theme='dark'] .cp-sel:focus { border-color: #2c3d63; }
html[data-theme='dark'] .cp-step { background: #141721; }
html[data-theme='dark'] .cp-go { background: #f0f2f5; color: #12141a; }
html[data-theme='dark'] .cp-result { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .cp-rempty-ico { background: #1b2030; color: #5a6478; }
html[data-theme='dark'] .cp-result > span { color: #9aa3b8; }

/* —— D. 账户中心系列补充（返回钮/统计卡/标签/迷你卡/头像框/表单底/邀请金币卡/空态图标） —— */
html[data-theme='dark'] .acc-back, html[data-theme='dark'] .acc-btn-ghost, html[data-theme='dark'] #pf-avatar { background: #171a23; }
html[data-theme='dark'] .acc-back:hover, html[data-theme='dark'] .acc-btn-ghost:hover { border-color: #333c52; box-shadow: none; }
html[data-theme='dark'] .acc-fact, html[data-theme='dark'] .acc-compose-item { background: #141721; }
html[data-theme='dark'] .acc-fact-ico { background: #1b2030; }
html[data-theme='dark'] .acc-tag { background: #1b2030; }
html[data-theme='dark'] .acc-mini2 > div { background: #101320; }
html[data-theme='dark'] .acc-avatar-box { background: #101320; }
html[data-theme='dark'] .acc-input { background: #101320; }
html[data-theme='dark'] .acc-invite-coin { background: #1d1a14; border-color: #3a3222; box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
html[data-theme='dark'] .acc-invite-coin em { color: #f0b13e; }
html[data-theme='dark'] .acc-invite-badge2 { background: #1d1a14; border-color: #3a3222; box-shadow: none; }
html[data-theme='dark'] .acc-invite-eyebrow { color: #d9b45c; }
html[data-theme='dark'] .acc-empty-ico { background: #1b2030; color: #5a6478; }
html[data-theme='dark'] .acc-linkrow input, html[data-theme='dark'] .acc-step2 { background: #101320; }

/* —— E. 消息中心 / 收藏空态 —— */
html[data-theme='dark'] #msg-all { background: #171a23; }
html[data-theme='dark'] .acc-msgitem.unread > div > b { color: #6ea0ff; }
html[data-theme='dark'] .fav-empty p { color: var(--text-2); }

/* —— F. 对话页：快捷芯片/卡片/上传按钮；发送按钮禁用态（两个主题下都浅底白字不可读，顺带修） —— */
html[data-theme='dark'] .cw-chip { background: #171a23; }
html[data-theme='dark'] .cw-chip:hover { background: #1b2a44; border-color: #2c3d63; color: #7fb0ff; }
html[data-theme='dark'] .cw-card { background: #141721; }
html[data-theme='dark'] .cw-card:hover { border-color: #2c3d63; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
html[data-theme='dark'] .cbox-tool-att { background: #1b2a44; color: #7fb0ff; }
html[data-theme='dark'] .cbox-tool-att:hover { background: #22345c; border-color: #2c3d63; }
.cbox-send:disabled { background: #e5e8ef; color: #98a1b3; box-shadow: none; }
html[data-theme='dark'] .cbox-send:disabled { background: #242a3a; color: #6e7891; }

/* —— G. 绘图页工具胶囊（彩色浅底在暗色下刺眼）与步骤点当前项 —— */
html[data-theme='dark'] .gw2-tool.t-amber { background: #2a2313; color: #d9b45c; }
html[data-theme='dark'] .gw2-tool.t-green { background: #10291e; color: #4ade80; }
html[data-theme='dark'] .gw2-tool.t-gray { background: #1b2030; color: #9aa3b8; }
html[data-theme='dark'] .gw2-tool.t-sky { background: #12233a; color: #7cc4f8; }
html[data-theme='dark'] .gw2-tool.t-purple { background: #251a38; color: #c39bf5; }
html[data-theme='dark'] .gw-step-dot.cur { color: #10141c; }

/* —— H. 任务中心统计卡与徽章对比度（原 cr≈2.8，提至 ≥4.5） —— */
html[data-theme='dark'] .tc-stat p { color: #9aa3b8; }
html[data-theme='dark'] .tc-badge { color: #8ea2ff; }

/* —— I. 首页 banner 卡（浅蓝底在暗色下突兀） —— */
html[data-theme='dark'] .home-function-banner-card { background: #161b2a; }

/* —— J. 数量步进器当前值文字（继承深字未随主题反转） —— */
html[data-theme='dark'] .aw-step span { color: var(--text); }

/* ================= 第四十三批：接口失败不再伪装成「就是 0」 =================
   账户总览 / 任务中心某个接口拉取失败时，原先静默兜底为 0 或空列表，
   页面看起来像「确实没有数据」（数字不真实）。现在对应位置显示「—」，
   并在就近位置说明原因、提示可刷新重试。以下为两类提示块的样式。 */
.acc-load-warn {
  margin: 0 0 16px; padding: 11px 14px;
  background: #fff8ed; border: 1px solid #f2ddb4; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; line-height: 1.6; color: #9a6a12;
}
.tc-stat-note {
  margin: 10px 2px 0; font-size: 12px; font-weight: 600; line-height: 1.6; color: #9a6a12;
}
@media (max-width: 767px) {
  .acc-load-warn { margin-bottom: 12px; padding: 10px 12px; font-size: 12px; border-radius: 10px; }
  .tc-stat-note { font-size: 11.5px; }
}
html[data-theme='dark'] .acc-load-warn { background: #241d10; border-color: #4a3c1c; color: #e0b458; }
html[data-theme='dark'] .tc-stat-note { color: #d9b45c; }

/* ================= 第四十四批：全局优化（复制可靠性 / 失败与空态区分 / 无障碍命名） =========
   ① .rc-pay-fail：充值弹窗里「支付方式**加载失败**」与「管理员确实没配支付方式」
      是两回事，样式上也要能一眼区分（失败=红色可重试，未开通=琥珀色说明）。
   ② .admin-est-note：后台按列表估算的统计提示（复用 empty-tip 的观感，需与面板有间距）。
   ③ .b44-sr：给纯图标/无可见文字的控件补一个视觉隐藏但读屏可见的名称。 */
.rc-pay-fail {
  color: #dc2626; font-weight: 600; font-size: 12px; line-height: 1.55;
  display: inline-block;
}
.admin-est-note { margin: -6px 0 14px; }
/* 视觉隐藏但保留无障碍名称（不用 display:none，否则读屏也读不到） */
.b44-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 767px) {
  .rc-pay-fail { font-size: 11.5px; }
}
html[data-theme='dark'] .rc-pay-fail { color: #f87171; }

/* ---------------- 第四十四批 · 窄屏布局修复 ----------------
   ④ 输入区把「发送」挤出视口（390px 实测 #btn-send right=555 / 视口 390 / 点不到）
      根因：.cbox-left 内 #cbox-model（「模型 · banana-pr…」133px）与 #cbox-points（「消耗 5 积分」78px）
            均为 flex 默认 min-width:auto + white-space:nowrap，不肯收缩，把 .cbox-right 顶到容器外。
      修法：.cbox-left 允许收缩、.cbox-right 固定不收缩、标签超宽走省略号。
      ★ 不给 .cbox-left 加 overflow:hidden —— 会连带裁掉向上弹出的 .cbox-tpl-pop（模板浮层）。 */
.cbox-left { min-width: 0; flex: 1 1 auto; }
.cbox-left > .cbox-tool, .cbox-left > .cbox-tpl-wrap { flex: 0 0 auto; }
.cbox-left > .cbox-tag { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.cbox-right { flex: 0 0 auto; }
@media (max-width: 767px) {
  /* 当前模型与每次消耗在顶部模型选择器已完整展示，底部不再重复占用宽度 */
  .cbox-left > #cbox-points { display: none; }
  .cbox-left > #cbox-model { max-width: 120px; }
}

/* ⑤ 账户/积分流水筛选行溢出（360px 实测 .acc-fcount 被裁 12px、.acc-fchip 溢出右边缘）：
      筛选胶囊 + 右侧计数在窄屏放不下时改为换行，数字本身不许被压缩。 */
.acc-filter { flex-wrap: wrap; row-gap: 8px; }
.acc-fcount { flex: 0 0 auto; }
/* ⑥ 小节标题行（标题 + 右侧「查看全部」链接）在窄屏把链接挤出去：标题块允许收缩、链接固定完整。 */
.acc-sec-head > div { min-width: 0; }
.acc-sec-head > a { flex: 0 0 auto; }
/* ⑦ ★真凶：.acc-sec-head a 里的箭头 <svg> 没有尺寸约束（只有 h2 svg 设了 17px），
      内联 svg 会取默认尺寸并撑出容器 —— 360/390px 实测 svg right=449（视口 390），
      图标被 main#app 横向裁剪。这里补尺寸与描边，链接本体宽度不变。 */
.acc-sec-head a { display: inline-flex; align-items: center; gap: 4px; }
.acc-sec-head a svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) {
  .acc-sec-head { flex-wrap: wrap; row-gap: 4px; align-items: flex-start; }
}

/* ================= 第四十五批：H5（移动端）可用性优化 =================
   第四十五批用 4 组真机视口（390×844 / 360×640 / 414×896 × 明暗）逐页扫描
   前台 22 页 + 工具 17 页 + 后台 27 页，逐条实测每个可点元素的 `getBoundingClientRect`。
   结论：① 顶栏图标按钮热区只有 31～36px；② 视频页存在 8px/9px 文案；
        ③ 聊天输入区按钮 28px、视频选项按钮 30px；④ 轮播指示点仅 8×8px。
   原则：能明确「按不准」的一律扩大；纯图标/指示器**视觉尺寸不变**，
        只用 ::after 把热区扩到 ≥40px（不改任何布局，桌面端零变化）。 */
@media (max-width: 767px) {
  /* ① 顶栏图标按钮（.bell 31px / .tb-theme 36px / .lang-btn 34px）：
        热区扩到 40px。顶栏高 54px，四周为空白，扩展不会盖住相邻控件；
        扩展量按「与相邻控件的中心距」算过 —— .tb-right 的 gap 是 10px，
        扩展后任意两个热区仍不重叠（不会出现「点 A 中 B」）。
        ★ 有 1px 边框的按钮（.tb-theme / .lang-btn）要少算 1px：绝对定位伪元素的
          包含块是**内边距盒**，`left:-2px` 实际只到边框盒外 1px（实测热区只有 38px）。 */
  .bell, .tb-theme, .lang-switch .lang-btn { position: relative; }
  .bell::after { content: ''; position: absolute; left: -4px; right: -4px; top: -4px; bottom: -4px; }
  .tb-theme::after { content: ''; position: absolute; left: -3px; right: -3px; top: -3px; bottom: -3px; }
  .lang-switch .lang-btn::after { content: ''; position: absolute; left: -4px; right: -4px; top: -4px; bottom: -4px; }
  /* ② 顶栏「登录 / 免费注册」（.btn-sm 实测 29～31px）抬到 40px（顶栏高 54px，放得下） */
  .topbar .btn-sm { height: 40px; padding: 0 14px; }
  /* ③ 聊天输入区：上传/模板/清空 28px、发送 34px —— 单手操作时误触高发 */
  .cbox-tool { height: 38px; padding: 0 11px; }
  .cbox-send { height: 40px; padding: 0 18px; }
  /* ④ 视频页 8px/9px 文案在手机上完全读不清（.vw-cell small 8px 尤甚） */
  .vm-txt small, .vw-st span, .vw-cell small { font-size: 11px; }
  .vw-cell strong { font-size: 12px; }
  .vw-og > span { font-size: 11px; }
  .vw-og button { height: 40px; font-size: 12.5px; }
  /* ⑤ 工具/图片页操作按钮（实测 29～34px）抬到 40px；数量步进 24px → 38px */
  .gw2-tool, .gw-libbtn, .lp-upbtn, #bt-upbtn { min-height: 40px; }
  .aw-step { padding: 3px; }
  .aw-step button { width: 38px; height: 38px; }
  /* ⑥ 轮播指示点 8×8（工具页 .aw-sc-dots，实测在很多工具页里真实只有 8×8）：
        热区扩到 40×40。
        ★ 横向扩展量被「相邻圆点中心距」硬约束：中心距 = 点宽 + gap，
          两个热区半径之和必须 ≤ 中心距，否则就会「点第 1 个圆点却切到第 2 张」。
          第一版只把 gap 从 6px 拉到 14px，于是横向最多扩 3px（热区仅 14×28）——
          第二轮扫描（补上「滚动到视口内再量」）后这批点全部暴露出来。
          现在把点从 8px 放大到 12px、gap 拉到 30px（相邻中心距 42px），
          横向各扩 14px 即得 12+28=40 宽、40 高，且互不重叠：
            · 未选中点：12 宽，中心距 42 → 各扩 14px（42/2=21 ≥ 12/2+14=20）✓
            · 选中点（宽 24）：与邻点中心距 12+30+6=48 → 半径 26+20=46 ≤ 48 ✓ */
  .aw-sc-dots { gap: 30px; }
  .aw-sc-dots button { width: 12px; height: 12px; position: relative; }
  .aw-sc-dots button.on { width: 24px; }
  .aw-sc-dots button::after {
    content: ''; position: absolute; left: -14px; right: -14px; top: -14px; bottom: -14px;
  }
  /* ⑦ 筛选胶囊 / 分类标签（30～32px）抬到 38px */
  .acc-fchip { padding: 10px 16px; }
  .mk-cats button { height: 38px; }
  /* ⑧ 工具页「涂抹选区 / 擦除选区」等主操作按钮：高 38px 且宽度不小于 38px
        （实测图标按钮只有 34px 宽） */
  .ws-cbar button { min-height: 38px; min-width: 38px; }
  /* ⑨ 工具页 10px 说明/提示文字（.ws-fhint 参数说明、.ws-pnote/.aw-pnote 面板脚注、
        .ws-countbox p 计费说明）在手机上读不清，抬到 11px；.ws-ck-txt small 同理 */
  .aw-pnote, .ws-pnote, .ws-fhint, .ws-countbox p, .ws-ck-txt small { font-size: 11px; }
  /* ⑩ 视频页分组小标题（.vw-lab「上传参考图」等）也是 10px */
  .vw-lab > span { font-size: 11px; }
  /* ⑪ 密码可见性开关 28×28 → 40×40（.am-eye 在输入框右侧，手机上是高频误触位） */
  .am-eye { width: 40px; height: 40px; }
  /* ⑫ 前台遗留的 32～37px 控件统一抬到 40px（均为实测值）
        · .tc-refresh：基础样式本来是 min-height:40px，但本文件更靠后的移动端块把它降到 36px；
        · .mu-chip（音乐风格标签）、.cvp-btn（控制台刷新）、.gw2-mtoggle（图片页展开更多模型）
        · .mu-refresh：音乐页「刷新」胶囊按钮 padding:6px 13px + 12.5px 字号 → 实测仅 30px 高，
          是第二轮扫描里前台唯一残留的「低于阈值」项，抬到 40px。
        · .ws-bsize em 是笔刷大小数值，原本 10px，手机上读不清。 */
  .tc-refresh { min-height: 40px; }
  .apps-search-form button { height: 40px; }
  .cvp-btn { min-height: 40px; }
  .gw2-mtoggle { min-height: 40px; }
  .mu-chip { min-height: 38px; }
  .mu-refresh { min-height: 40px; }
  .ws-bsize em { font-size: 11px; }
  /* ⑬ 二轮扫描（补上「滚动到视口内再量」后）新暴露的几处：
        · .ws-step 的数量步进按钮声明了 width:40px，但在「AI 文案」这类
          .cp-row > .cp-rowfield（列向 flex，会被压缩）里，按钮作为 flex item
          被压成 13px 宽（实测 13×40）—— 固定住不参与压缩。
        · .cp-row 在手机上本来就放不下「字段 + 数量」两组，允许换行。
        · .acc-btn-ghost.sm（消息中心「全部标记已读」）实测 36px 高 → 40px。 */
  .ws-step button { flex: 0 0 40px; }
  .cp-row { flex-wrap: wrap; row-gap: 12px; }
  .cp-step { align-self: flex-start; flex: 0 0 auto; }
  .acc-btn-ghost.sm { height: 40px; }
  /* ⑭ 手机端顶栏：登录后的昵称文字去掉，只留头像 + 箭头。
        ★ 实测：昵称「H5审计账号」（5 字）会把 #nav-user 从 266px 撑到 296px，
          顶栏总宽 115+296=411 > 390 —— 昵称越长溢出越多，且整页因此被浏览器
          「缩小以适配」（innerWidth 412）。昵称在头像下拉菜单顶部仍完整可见。 */
  .user-trigger b { display: none; }
}

/* ============================================================================
   第四十六批：功能一致性 + 暗色补漏（音乐页组件 / 加载失败态）
   ----------------------------------------------------------------------------
   ★ 为什么第三十五批「暗色全站补全」漏了音乐页：
     那次走查用的是**空库**，而 `.mu-card`（音乐作品卡）只有在「真的有作品」时才渲染 ——
     空库下页面只显示 .mu-empty 空态，`.mu-card{background:#fff}` 从未出现在任何截图里。
     第四十六批的暗色走查改为**先造内容再走查**，才把它暴露出来：
     白底 #fff 配暗色正文色 var(--text)=#e6e8f0 → 对比度约 1.1:1（白底白字）。 */
html[data-theme='dark'] .mu-card { background: #141721; border-color: var(--border); box-shadow: var(--shadow); }
html[data-theme='dark'] .mu-refresh { background: #171a23; color: var(--text-2); border-color: var(--border); }
html[data-theme='dark'] .mu-refresh:hover { color: var(--text); border-color: #3a3f52; }
html[data-theme='dark'] .mu-chip:hover { border-color: #3a3f52; }
html[data-theme='dark'] .mu-idea:hover { background: #1b2030; }
html[data-theme='dark'] .mu-st-q { background: #232734; color: #9aa3b8; }

/* 第四十六批：音乐页「作品列表加载失败」态（接口失败不再伪装成「还没有音乐作品」的空态）。
   ★ .mu-empty svg 是空态大图标（44px）；重试按钮里的图标是 13px —— 两者同优先级时
     后加载的 .mu-empty svg 会胜出，把按钮图标撑成 44px。这里用更高优先级压回来。 */
.mu-empty.mu-fail span { color: var(--text-2); }
.mu-empty .mu-refresh { margin-top: 16px; }
.mu-empty .mu-refresh svg { width: 13px; height: 13px; }

/* —— 第四十六批：暗色盲区（需要「有数据」才渲染的组件，第三十五批空库走查完全看不到）——
   统一说明：这些都是「列表里至少有一条数据」时才出现在 DOM 里的卡片 / 占位块，
   空库走查时页面只有空态，所以它们的浅色硬编码从未被任何截图覆盖到。
   证据：带数据的暗色走查实测对比度 —— 我的商品卡 1.22:1（白底白字）、
        任务中心失败占位 1.22:1 / 2.07:1、积分流水来源标签 2.16:1。 */
html[data-theme='dark'] .acc-proditem { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .acc-proditem:hover { border-color: #3a3f52; }
html[data-theme='dark'] .acc-prodimg { background: #1b2030; }
html[data-theme='dark'] .acc-proditem em { color: var(--text-2); }
html[data-theme='dark'] .fav-card { background: #141721; border-color: var(--border); }
html[data-theme='dark'] .fav-media { background: #1b2030; }
html[data-theme='dark'] .acc-fchip { background: #171a23; color: var(--text-2); }
html[data-theme='dark'] .acc-fchip.on { background: #e6e8f0; border-color: #e6e8f0; color: #17181c; }
html[data-theme='dark'] .acc-flow-src { background: #1b2030; color: var(--text-2); }
/* 任务卡「生成失败」占位：浅粉底是硬编码 rgba(.94)（合成后仍是浅色），
   而暗色段里的 .tc-media-ph b{color:#c9d0e0}（0,2,2）盖过了
   .tc-media-ph.tc-st-failed b{color:#e11d48}（0,2,1）→ 浅字压浅底。 */
html[data-theme='dark'] .tc-st-failed { background: rgba(127, 29, 29, .34); color: #fca5a5; border-color: rgba(248, 113, 113, .28); }
html[data-theme='dark'] .tc-media-ph.tc-st-failed b { color: #fca5a5; }
html[data-theme='dark'] .tc-media-ph.tc-st-failed span { color: #e7a3a3; }
/* 音乐卡里的错误条同理（浅粉底） */
html[data-theme='dark'] .mu-err { background: rgba(127, 29, 29, .34); color: #fca5a5; }
/* 工具页主按钮的禁用态：浅灰底在暗色下过于刺眼（禁用态不要求对比度，只做观感统一） */
html[data-theme='dark'] .bt-go:disabled { background: #2a2f3d; color: #6b7385; }

/* —— 第四十六批（二轮）：复跑带数据的暗色走查后新暴露的三处 ——
   ① .fav-meta b 的 #18181a 是浅色态硬编码，落在暗色卡底 #141721 上对比度 1.01:1（几乎不可见）；
   ② 视频页 .vw-submit 是 #fff 白底，暗色下整条底栏发白；里面的按钮又是深色 → 必须一起反转；
   ③ 工具页历史卡「失败」角标 #fff1f2 浅粉底同样留在暗色里。 */
html[data-theme='dark'] .fav-meta b { color: var(--text); }
html[data-theme='dark'] .fav-meta span { color: var(--text-2); }
html[data-theme='dark'] .vw-submit { background: #141721; border-top-color: #262a36; }
html[data-theme='dark'] .vw-submit button { background: #e6e8f0; color: #17181c; }
html[data-theme='dark'] .vw-submit button:hover:not(:disabled) { background: #d7dae4; }
html[data-theme='dark'] .vw-submit i { background: rgba(23, 24, 28, .26); }
html[data-theme='dark'] .gw2-hist-item.is-failed .gw2-hist-st { background: rgba(127, 29, 29, .34); color: #fca5a5; }
html[data-theme='dark'] .gw2-hist-item.is-failed .gw2-hist-p { color: #fca5a5; }

/* —— 第四十六批追补（二）：无限画布（.cve-* 编辑器 / .cvp-* 项目列表）——
   用户截图反馈「画布黑夜模式不对」。根因两条，都不是「忘了写暗色规则」那么简单：
   ① 【量具盲区】dark-audit 的 FRONT_ROUTES 里只有 'canvas'（= #/canvas 项目列表），
      而用户实际停留的是**编辑器 #/canvas?id=N**；且造数据模块原先造的画布是 nodes: []，
      空画布下 .cve-node / .cve-item / .cve-mini / .cve-toolbar 根本不在 DOM 里
      → 编辑器从来没被走过查（与上一轮「空库走查漏检音乐卡」同一类）。
   ② 【代码问题】.cve-* 共 145 条规则**零暗色覆盖**，其中 17 条容器/卡片硬编码 background:#fff
      （顶栏 / 图层面板 / 图层项 / 画布节点 / 底部工具栏 / 视图条 / 缩放条 / 小地图 / 帮助与选择弹窗），
      暗色下整页白底 + 近白字，实测对比度 1.22:1。
   修法：那 17 处不写暗色覆盖，直接改成 rgb(var(--panel)) —— 浅色下 --panel 就是 255 255 255（等价于 #fff，零视觉变化），
   暗色下自动是 #171a23。**能用主题变量的地方就不要「硬编码 + 暗色覆盖」。**
   本段只列变量解决不了的语义色（选中态 / 危险态 / 悬浮态 / 主按钮反白 / 网格点 / 连线 / 遮罩）。 */
html[data-theme='dark'] .cve-tabs button.on,
html[data-theme='dark'] .cve-chips button.on { background: #1d2b4a; color: #7fb0ff; }
html[data-theme='dark'] .cve-item-add { background: #1d2b4a; color: #7fb0ff; }
html[data-theme='dark'] .cve-icobtn.on { color: #7fb0ff; }
html[data-theme='dark'] .cve-icobtn.danger:hover,
html[data-theme='dark'] .cve-node-x:hover,
html[data-theme='dark'] .cvp-card-foot button.danger:hover { background: rgba(127, 29, 29, .34); }
html[data-theme='dark'] .cvp-card-foot button:hover { background: #1b2030; }
/* 主按钮：--brand-600 在暗色下会翻成浅色，写死的白字必须跟着翻成深字（同 .cvp-btn-dark / .vw-submit 的口径） */
html[data-theme='dark'] .cve-genbtn { color: #101114; }
html[data-theme='dark'] .cve-genbtn:disabled { background: #2a2f3d; color: #6b7385; }
html[data-theme='dark'] .cve-gridbg { background-image: radial-gradient(circle, rgb(255 255 255 / .10) 1px, transparent 1.2px); }
html[data-theme='dark'] .cve-wires .wire { stroke: #5b6580; }
html[data-theme='dark'] .cve-help, html[data-theme='dark'] .cve-picker { background: rgba(0, 0, 0, .58); }
