/* ================= L · IMAGE STUDIO —— 极简单色（Minimal Monochrome） =================
 * 设计语言：纯白底 + 黑白灰层次 + 大留白 + 微阴影 + 柔和圆角
 * 参考：rolalaai.com/ai 高级安静的AI产品质感
 * ================================================================================ */
@import url('https://miaoda.feishu.on/fonts/oss2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* ---- 基底：纯白 ---- */
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-mute: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-solid: #ffffff;
  --surface-glass: rgba(255, 255, 255, .92);

  /* ---- 主色阶（保留 green-xxx 变量名以兼容 JS 引用）---- */
  --green-900: #111827;
  --green-800: #1f2937;
  --green-700: #374151;
  --green-600: #4b5563;
  --green-500: #6b7280;
  --green-400: #9oa3af;
  --green-300: rgba(17, 24, 39, .12);
  --green-100: rgba(17, 24, 39, .06);
  --green-50: rgba(17, 24, 39, .03);

  /* ---- 辅助 ---- */
  --cyan: #111827;
  --cyan-deep: #1f2937;
  --violet: #111827;

  /* ---- 品牌色（仅用于关键 CTA：充值/升级）---- */
  --gold: #111827;
  --gold-dark: #1f2937;
  --gold-soft: rgba(17, 24, 39, .04);
  --gold-line: rgba(17, 24, 39, .10);
  --brand: #111827;
  --brand-soft: #f3f4f6;

  /* ---- 中性色阶 ---- */
  --ink: #111827;
  --ink-2: #4b5563;
  --muted: #9oa3af;
  --muted-2: #d1d5db;
  --border: #f0f0f0;
  --border-strong: #e5e7eb;

  /* ---- 语义 ---- */
  --danger: #do2626;
  --danger-soft: rgba(220, 38, 38, .06);
  --warn: #d97706;
  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, .06);

  /* ---- 圆角 ---- */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ---- 渐变（极简化）---- */
  --grad-tech: #111827;
  --grad-teal: #111827;
  --grad-gold: #111827;
  --grad-aurora: linear-gradient(135deg, rgba(17,24,39,.04) 0%, rgba(17,24,39,.02) 100%);

  /* ---- 阴影：极轻 ---- */
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .06);
  --glow-cyan: 0 0 0 1px rgba(17, 24, 39, .08);
  --glow-gold: 0 0 0 1px rgba(17, 24, 39, .08);

  /* ---- 动效 ---- */
  --ease: oubio-bezier(.22, 1, .36, 1);
  --ease-out: oubio-bezier(.16, 1, .3, 1);
  --dur: .28s;
  --dur-fast: .18s;

  /* ---- 字体：统一无衬线 ---- */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: graysoale;
  letter-spacing: .005em;
}
/* 去除星点纹理 */
body::before { display: none; }
/* 标题：统一无衬线 */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.22;
  color: var(--ink);
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(17, 24, 39, .16); }
.app { position: relative; z-index: 1; }
button { font-family: inherit; cursor: pointer; }
.ic { width: 18px; height: 18px; flex: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 6px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ================= 布局 ================= */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 222px; flex: none; background: var(--bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; display: flex; flex-direction: column; }
.view { flex: 1; padding: 26px 34px 10px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ================= 侧栏 ================= */
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--font-body); font-size: 18px; font-weight: 700; flex: none;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 19px; letter-spacing: .5px; color: var(--ink); }
.brand-txt small { font-size: 9.5px; letter-spacing: 2.5px; color: var(--muted); margin-top: 2px; }
.space-tag { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 14px; font-size: 12px; color: var(--muted); }
.space-badge { font-size: 11px; border: 1px solid var(--border-strong); color: var(--ink-2); padding: 2px 9px; border-radius: 20px; background: var(--bg); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.25; transition: background .18s, color .18s;
}
.nav-item .ic { color: var(--muted); width: 20px; height: 20px; }
.nav-item:hover { background: var(--bg-mute); color: var(--ink); }
.nav-item.active { color: var(--ink); font-weight: 700; background: transparent; }
.nav-item.active .ic { color: var(--ink); }
.nav-item .nav-tag { margin-left: auto; font-size: 10px; background: var(--ink); color: #fff; padding: 1px 6px; border-radius: 6px; }
.nav-gold { font-weight: 600; }
.sidebar-note { margin-top: auto; padding: 12px 8px 0; }
.sidebar-note p { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--muted); margin: 7px 0; }
.sidebar-note .dot { width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; margin-top: 1px; flex: none; }

/* ================= 顶部公告条（紧急通知） ================= */
.site-notioe {
  display: flex; align-items: center; gap: 10px; padding: 10px 34px;
  background: linear-gradient(90deg, rgba(232, 192, 125, .16), rgba(232, 192, 125, .05));
  border-bottom: 1px solid var(--gold-line); color: var(--ink);
  font-size: 13.5px; line-height: 1.5; position: relative; z-index: 41;
}
.site-notioe[hidden] { display: none; }
.site-notioe .sn-badge {
  flex: none; display: inline-flex; align-items: center; background: var(--gold); color: var(--bg);
  font-weight: 800; font-size: 11.5px; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px;
}
.site-notioe .sn-text { flex: 1; min-width: 0; color: var(--ink); font-weight: 500; }
.site-notioe .sn-text b { color: var(--gold); font-weight: 800; }
.site-notioe .sn-olose {
  flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--gold-line);
  background: var(--surface); color: var(--gold); font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
}
.site-notioe .sn-olose:hover { background: var(--gold-soft); }
@media (max-width: 720px) {
  .site-notioe { padding: 9px 14px; font-size: 12.5px; align-items: flex-start; }
  .site-notioe .sn-badge { margin-top: 1px; }
}

/* ================= 顶栏 ================= */
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 16px 34px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; flex-wrap: wrap;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb i { font-style: normal; color: var(--muted-2); }
.crumb .ic { width: 17px; height: 17px; color: var(--ink-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border-strong);
  color: var(--ink-2); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; transition: .18s;
}
.tb-btn:hover { border-color: var(--ink-2); background: var(--bg-mute); }
.tb-btn.off { opacity: .55; }
.tb-contact { font-size: 12px; color: var(--muted); white-space: nowrap; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-mute); border: 1px solid var(--border-strong);
  color: var(--ink); padding: 8px 13px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
}
.credit-pill .ic { width: 15px; height: 15px; color: var(--ink-2); }
.credit-pill .plus { font-size: 16px; color: var(--ink-2); margin-left: 1px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff;
  border: none; padding: 9px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
}
.btn-gold:hover { background: var(--green-800); }
.account { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; padding: 4px 6px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-mute); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--border-strong);
}
.caret { color: var(--muted); font-size: 10px; }
.pop-menu {
  position: fixed; min-width: 170px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 100; display: none; margin-top: 6px;
}
.pop-menu.show { display: block; }
.pop-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: none; font-size: 13.5px; color: var(--ink-2); }
.pop-menu button:hover { background: var(--bg-mute); }

/* ================= 通用 ================= */
.kicker { font-size: 11.5px; letter-spacing: 3px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.page-title { font-size: 28px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -.02em; color: var(--ink); }
.page-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.grid { display: grid; gap: 18px; }
label.flabel { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: block; margin: 18px 0 10px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px;
  font-family: inherit; color: var(--ink); background: var(--bg); outline: none; transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,24,39,.06); }
.btn-primary {
  background: var(--ink); color: #fff; border: none; border-radius: var(--radius); padding: 12px 20px;
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .18s;
}
.btn-primary:hover { background: var(--green-800); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--ink-2); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px;
}
.btn-ghost:hover { border-color: var(--ink-2); background: var(--bg-mute); }
.btn-sage { background: var(--ink); color: #fff; border: none; border-radius: var(--radius); padding: 13px 20px; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 500; background: var(--bg-mute); color: var(--ink-2); border: 1px solid var(--border); }
.badge.gold { background: var(--brand-soft); color: var(--brand); border-color: var(--border-strong); }
.badge.mono { font-family: ui-monospace, Menlo, monospace; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 选项卡片 */
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt {
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 16px; background: var(--bg);
  text-align: center; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; position: relative;
}
.opt .radio { width: 16px; height: 16px; border: 1.6px solid var(--border-strong); border-radius: 50%; display: inline-grid; place-items: center; }
.opt .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); }
.opt.on { border-color: var(--ink); background: var(--bg-mute); color: var(--ink); font-weight: 600; }
.opt.on .radio { border-color: var(--ink); }
.opt.on .radio::after { transform: scale(1); }
.ratio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ratio-opt { border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); padding: 12px 6px; text-align: center; color: var(--ink-2); }
.ratio-opt .frame { margin: 0 auto 7px; border: 1.8px solid var(--ink-2); border-radius: 3px; }
.ratio-opt.on { border-color: var(--ink); background: var(--bg-mute); color: var(--ink); font-weight: 600; }
.ratio-opt .ratio-t { font-size: 13px; font-weight: 600; }
.ratio-opt .ratio-d { font-size: 11px; color: var(--muted); }

/* ================= 首页：图片创作 ================= */
.studio-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.studio-left .card { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head .ttl { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.card-head .ttl .ic { color: var(--green-700); }
.chip-btn { background: none; border: 1px solid var(--border-strong); border-radius: 9px; padding: 6px 13px; font-size: 12.5px; color: var(--green-800); display: inline-flex; align-items: center; gap: 6px; }
.chip-btn:hover { background: var(--green-50); }
.prompt-box { position: relative; }
.prompt-box textarea { width: 100%; min-height: 150px; border: 1px solid var(--border); border-radius: 13px; padding: 16px; font-size: 14px; resize: vertical; font-family: inherit; outline: none; background: var(--surface-2); }
.prompt-box textarea:focus { border-color: var(--green-500); }
.inspire-btn { position: absolute; right: 12px; top: 12px; border: none; background: none; color: var(--green-700); font-size: 13px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.fee-row { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.fee-row .fee { font-size: 15px; color: var(--ink-2); }
.fee-row .fee b { font-size: 24px; color: var(--green-900); margin: 0 4px; font-weight: 800; }
.fee-safe { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.gen-btn { width: 100%; background: var(--ink); color: #fff; border: none; border-radius: var(--radius); padding: 15px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.gen-btn:hover { background: var(--green-800); }
.gen-btn:disabled { opacity: .55; cursor: not-allowed; }

/* 任务/预览面板 */
.preview-panel { padding: 22px; position: sticky; top: 92px; }
.preview-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.preview-empty .ph { width: 56px; height: 56px; margin: 0 auto 14px; border: 2px solid var(--green-300); border-radius: 12px; opacity: .7; }
.task-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.task-item .ti-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.task-item .ti-model { font-size: 12.5px; font-weight: 600; color: var(--green-800); }
.task-item .ti-prompt { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress { height: 6px; background: var(--green-100); border-radius: 4px; overflow: hidden; margin: 9px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--green-600); border-radius: 4px; transition: width .4s; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.result-cell { aspect-ratio: 1; border-radius: 10px; background: var(--green-100); overflow: hidden; position: relative; display: grid; place-items: center; }
.result-cell img, .result-cell video { width: 100%; height: 100%; object-fit: cover; }
.result-cell .demo-ph { color: var(--green-600); font-size: 11px; text-align: center; padding: 6px; }

/* 成品下载 */
.result-wrap { margin-top: 10px; }
.result-wrap .result-grid { margin-top: 0; }
.dl-overlay {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(29, 51, 39, .72); color: #fff; font-size: 16px; line-height: 1;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s;
  backdrop-filter: none;
}
.result-cell:hover .dl-overlay { opacity: 1; }
.dl-overlay:hover { background: var(--green-700); }
.result-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.task-reuse { display: flex; justify-content: flex-end; margin-top: 8px; }
.task-reuse .dl-pill { border-color: rgba(45, 227, 196, .35); color: var(--green-700); }
.work-reuse { display: flex; justify-content: flex-end; margin-top: 6px; }
.work-reuse .dl-pill { border-color: rgba(45, 227, 196, .35); }

/* 问题反馈 */
.feedback-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--surface-solid);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}
.feedback-fab:hover { border-color: var(--green-600); color: var(--green-800); }
.feedback-form { display: grid; gap: 12px; }
.feedback-form label { font-size: 12.5px; color: var(--ink-2); display: grid; gap: 5px; }
.feedback-form .input, .feedback-form textarea, .feedback-form select { width: 100%; }
.feedback-form textarea { min-height: 120px; resize: vertical; }
.fb-file-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-file-list span { font-size: 11.5px; padding: 4px 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.fb-hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) {
  .feedback-fab { right: 12px; bottom: 70px; padding: 9px 12px; font-size: 12px; }
}
.dl-pill {
  border: 1px solid var(--green-600); background: var(--green-600); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; transition: filter .15s, background .15s;
}
.dl-pill:hover { filter: brightness(1.05); }
.dl-pill.ghost { background: transparent; color: var(--green-700); }
.dl-pill.ghost:hover { background: var(--green-100); }
.dl-pill.sm { padding: 5px 12px; font-size: 12px; }
.dl-pill:disabled { opacity: .6; cursor: default; }
.work-dl { display: flex; gap: 6px; padding: 0 12px 12px; }
.work-dl .dl-pill { flex: 1; text-align: center; }

/* 灵感卡片 */
.inspire-section { margin-top: 34px; }
.inspire-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.inspire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inspire-card { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; transition: .18s; }
.inspire-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.inspire-card .img { aspect-ratio: 16/10; position: relative; background: var(--ink); }
.inspire-card .img canvas { width: 100%; height: 100%; }
.inspire-card .cap { padding: 12px 14px; position: relative; }
.inspire-card .cap .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.inspire-card .cap .m { font-size: 11.5px; color: var(--green-700); margin-top: 3px; }
.inspire-card .cap .arrow { position: absolute; right: 14px; bottom: 14px; color: var(--green-500); }

/* ================= 模型广场 ================= */
.plaza-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.count-badge { border: 1.5px solid var(--green-300); border-radius: 16px; padding: 14px 22px; text-align: center; background: var(--surface); }
.count-badge b { font-size: 30px; color: var(--green-900); display: block; line-height: 1; }
.count-badge span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.tab { border: 1px solid var(--border-strong); background: var(--bg); border-radius: var(--radius-sm); padding: 9px 18px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.tab .n { color: var(--muted); margin-left: 4px; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.on .n { color: rgba(255,255,255,.6); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fselect { border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 12px; font-size: 13px; background: var(--surface); color: var(--ink-2); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.model-cover { height: 118px; background: var(--ink); position: relative; display: grid; place-items: center; color: #d1d5db; }
.model-cover .reel { width: 40px; height: 40px; }
.model-cover .mtype { position: absolute; top: 10px; left: 12px; font-size: 11px; background: rgba(255,255,255,.14); color: #fff; padding: 3px 9px; border-radius: 7px; display: flex; align-items: center; gap: 5px; }
.model-cover .spec-tag { position: absolute; bottom: 10px; right: 12px; font-size: 11px; background: rgba(0,0,0,.35); color: #fff; padding: 3px 9px; border-radius: 7px; }
.model-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.model-series { display: flex; align-items: center; justify-content: space-between; }
.model-series .s { font-size: 12.5px; color: var(--muted); }
.model-name { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.model-id { font-size: 11.5px; color: var(--muted-2); font-family: ui-monospace, Menlo, monospace; }
.model-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-tags .tag { font-size: 11px; border: 1px solid var(--border-strong); color: var(--ink-2); padding: 2px 9px; border-radius: 7px; }
.limits { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); }
.limits span { display: inline-flex; align-items: center; gap: 4px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.price-row .price { font-size: 18px; font-weight: 800; color: var(--green-900); }
.price-row .price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.model-note { font-size: 11px; color: var(--warn); }

/* ================= 视频创作 ================= */
.video-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.project-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.project-bar select { border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; background: var(--surface); min-width: 130px; }
.link-btn { background: none; border: none; color: var(--green-800); font-size: 13px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.material-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mat-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); border: 1px solid var(--green-300); border-radius: 9px; padding: 5px 10px; font-size: 12.5px; color: var(--green-900); }
.mat-chip button { border: none; background: none; color: var(--green-700); font-size: 14px; line-height: 1; }
.param-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.param-grid label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.param-grid select { width: 100%; border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 10px; font-size: 13px; background: var(--surface); }
.gen-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 12px; }
.gen-bar .cost { font-size: 15px; color: var(--ink-2); }
.gen-bar .cost b { font-size: 22px; color: var(--green-900); font-weight: 800; }
.gen-bar .gen-btn { width: auto; padding: 13px 34px; }

/* 解放双手 / 批量挂机 */
.batch-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.steps { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 14px; padding: 16px 18px; font-size: 13px; color: var(--ink-2); }
.steps ol { margin: 8px 0; padding-left: 20px; }
.steps li { margin: 5px 0; }
.scene-textarea { width: 100%; min-height: 240px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-family: inherit; font-size: 13.5px; resize: vertical; }
.folder-pick { border: 1.5px dashed var(--green-300); border-radius: 13px; padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; }
.folder-pick .ic { width: 26px; height: 26px; color: var(--green-600); }

/* 批量挂机素材列表 */
.batch-asset-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.batch-asset-chip { position:relative; display:flex; align-items:center; gap:6px; max-width:210px; padding:4px 7px 4px 4px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); font-size:12px; cursor:pointer; user-select:none; transition:border-color .15s, opacity .15s; }
.batch-asset-chip:hover { border-color: var(--green-400); }
.batch-asset-chip.dragging { opacity:.45; }
.batch-asset-chip.drop-target { border-color: var(--green-700); box-shadow: 0 0 0 2px rgba(22,147,107,.25); }
.batch-asset-thumb { width:42px; height:42px; border-radius:7px; object-fit:cover; flex:none; background:#0b1220; }
.batoh-asset-io { width:42px; height:42px; display:grid; place-items:center; font-size:20px; flex:none; background:rgba(0,0,0,.12); border-radius:7px; }
.batch-asset-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:105px; }
.batch-asset-order { position:absolute; left:2px; top:2px; min-width:16px; height:16px; padding:0 3px; border-radius:5px; background:rgba(8,20,34,.78); color:#o8f4ff; font-size:10px; line-height:16px; text-align:center; font-weight:600; }
.batch-asset-chip > button { position:absolute; right:-6px; top:-6px; width:18px; height:18px; border-radius:50%; border:1px solid var(--border); background:var(--surface); color:var(--muted); font-size:12px; line-height:1; cursor:pointer; padding:0; }
.batch-asset-chip > button:hover { color:var(--danger); border-color:var(--danger); }

/* 素材预检清单 */
.oheok-list { display:flex; flex-direction:column; gap:4px; margin-top:8px; }
.oheok-item { display:flex; gap:6px; font-size:12px; line-height:1.5; padding:4px 8px; border-radius:7px; }
.oheok-item .oi { font-weight:700; flex:none; }
.oheok-item.ok { color:#15803d; background:rgba(21,128,61,.08); }
.oheok-item.bad { color:#b91o1o; background:rgba(185,28,28,.09); }
.oheok-item.warn { color:#b45309; background:rgba(180,83,9,.08); }

/* ================= 充值页 ================= */
.bill-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.balance-card { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 18px; padding: 30px; }
.balance-card .big { font-size: 58px; font-weight: 800; color: var(--green-900); line-height: 1; margin: 16px 0 4px; }
.balance-card .lab { color: var(--muted); font-size: 13px; }
.redeem-box { padding: 26px; }
.redeem-box h3 { margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.redeem-input { font-size: 17px; letter-spacing: 1px; font-family: ui-monospace, monospace; text-transform: uppercase; }
.buy-cta { background: var(--gold-soft); border: 1px solid var(--border-strong); border-radius: 13px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.log-table { font-size: 12.5px; }
.log-table .pos { color: var(--green-700); font-weight: 600; }
.log-table .neg { color: var(--danger); font-weight: 600; }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; background: rgba(28, 40, 33, .45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: var(--surface); border-radius: 20px; padding: 30px; width: 100%; max-width: 440px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-lg { max-width: 720px; }
.modal-close { position: absolute; right: 18px; top: 18px; border: none; background: var(--green-50); color: var(--green-800); width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.auth-tabs button { flex: 1; background: none; border: none; padding: 11px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--green-900); font-weight: 700; border-bottom-color: var(--green-800); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 11px; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: tin .2s ease; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--green-800); }
@keyframes tin { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 公告弹窗 */
.ann-body { font-size: 14px; color: var(--ink-2); }
/* 紧急公告弹窗（announcement.level = 'urgent'） */
.ann-urgent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ann-urgent-badge {
  display: inline-flex; align-items: center; background: var(--gold); color: var(--bg);
  font-weight: 800; font-size: 11.5px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
}
.ann-urgent-time { font-size: 12px; color: var(--muted); }
.ann-urgent-body {
  margin: 12px 0 20px; font-size: 14px; line-height: 1.9; color: var(--ink-2);
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 14px 16px;
}
.ann-urgent #annOk { background: var(--gold); color: var(--bg); font-weight: 800; }
.ann-urgent #annOk:hover { background: var(--gold-dark); }
.ann-card { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 13px; padding: 15px 17px; display: flex; gap: 13px; margin-bottom: 14px; }
.ann-card .star { width: 40px; height: 40px; background: var(--green-800); border-radius: 11px; color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.ann-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ann-grid .box { border: 1.5px solid var(--green-100); border-radius: 12px; padding: 14px; }
.ann-grid .box b { font-size: 22px; color: var(--green-900); }
.ann-grid .box span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* 状态 */
.status { font-size: 11.5px; padding: 2px 9px; border-radius: 7px; font-weight: 500; }
.status.waiting, .status.pending, .status.running { background: var(--gold-soft); color: #8a6416; }
.status.succeeded, .status.done, .status.launched, .status.active { background: var(--green-50); color: var(--green-800); }
.status.failed, .status.banned, .status.oanoeled, .status.disabled, .status.revoked { background: var(--danger-soft); color: var(--danger); }
.status.refunded { background: var(--green-100); color: var(--muted); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ph { width: 60px; height: 60px; margin: 0 auto 14px; opacity: .6; }
.library-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.work-card .thumb { aspect-ratio: 1; background: var(--green-100); display: grid; place-items: center; color: var(--green-600); }
.work-card video { width: 100%; }
.work-card .meta { padding: 10px 12px; }
.work-card .meta .t { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-card .meta .m { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }

.dev-step { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--surface); }
.dev-step .num { font-size: 22px; font-weight: 800; color: var(--green-400); }
.code-block { background: #1f2d25; color: #cfe2d6; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 12.5px; overflow-x: auto; margin: 8px 0; }
.canvas-hint { text-align: center; padding: 80px 20px; }

@media (max-width: 980px) {
  .studio-layout, .video-layout, .batch-layout, .bill-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .inspire-grid { grid-template-columns: 1fr; }
  .ratio-grid { grid-template-columns: repeat(3, 1fr); }
  .param-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================== */
/* =================  极简单色 · 组件微调  ======================= */
/* ===================================================================== */

/* ---- 文字 ---- */
.page-title { color: var(--ink); }
.kicker { color: var(--muted); }
.kicker::before { background: var(--ink); }

/* ---- 侧栏（已在基础样式中定义为白底极简）---- */

/* ---- 顶栏（已在基础样式中定义为白底毛玻璃）---- */

/* ---- 卡片 ---- */
.card { background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-head .ttl .ic { color: var(--ink-2); }

/* ---- 输入控件 ---- */
select.input option, .fselect option, .project-bar select option { background: #fff; color: var(--ink); }

/* ---- 按钮 ---- */
.chip-btn { border-color: var(--border-strong); color: var(--ink-2); }
.chip-btn:hover { background: var(--bg-mute); }
.link-btn { color: var(--ink-2); }

/* ---- 选项卡（已在基础样式中定义）---- */

/* ---- 图片创作 ---- */
.prompt-box textarea { background: var(--bg-soft); border-color: var(--border); color: var(--ink); }
.prompt-box textarea:focus { border-color: var(--ink); }
.inspire-btn { color: var(--ink-2); }
.fee-row .fee { color: var(--ink-2); }
.fee-row .fee b { color: var(--ink); }
.preview-empty { color: var(--muted); }
.preview-empty .ph { border-color: var(--border-strong); }
.task-item { border-color: var(--border); background: var(--bg-soft); }
.task-item .ti-model { color: var(--ink); font-weight: 700; }
.progress { background: var(--bg-mute); }
.progress > i { background: var(--ink); border-radius: 4px; }
.result-cell { background: var(--bg-mute); }
.result-cell .demo-ph { color: var(--muted); }
.dl-overlay { background: rgba(17, 24, 39, .7); border: none; }
.dl-overlay:hover { background: var(--ink); }
.dl-pill { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl-pill.ghost { background: transparent; color: var(--ink-2); }
.dl-pill.ghost:hover { background: var(--bg-mute); }

/* 灵感卡片 */
.inspire-card { background: var(--bg); border-color: var(--border); }
.inspire-card:hover { box-shadow: var(--shadow-lg); }
.inspire-card .cap .t { color: var(--ink); }
.inspire-card .cap .m { color: var(--muted); }
.inspire-card .cap .arrow { color: var(--ink-2); }

/* ---- 模型广场 ---- */
.count-badge { background: var(--bg-soft); border-color: var(--border-strong); }
.count-badge b { color: var(--ink); }
.model-card { background: var(--bg); border-color: var(--border); }
.model-cover {
  background: var(--bg-mute);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.model-name { color: var(--ink); }
.model-id { color: var(--muted); }
.cap-tags .tag { border-color: var(--border-strong); color: var(--ink-2); }
.price-row { border-top-color: var(--border); }
.price-row .price { color: var(--ink); }
.price-row .price small { color: var(--muted); }

/* ---- 视频创作 ---- */
.mat-chip { background: var(--bg-mute); border-color: var(--border-strong); color: var(--ink-2); padding: 4px 10px 4px 5px; cursor: grab; user-select: none; transition: border-color .15s, opacity .15s, transform .15s; }
.mat-chip:active { cursor: grabbing; }
.mat-chip.chip-dragging { opacity: .45; }
.mat-chip.chip-drag-over { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(17,24,39,.12); transform: translateY(-1px); }
.mat-chip button { color: var(--ink-2); cursor: pointer; }
.mat-chip .mat-thumb { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: block; border: 1px solid var(--border-strong); background: var(--bg-mute); flex: none; }
.mat-chip .mat-ic { font-size: 16px; }
.chip-hover-preview {
  position: fixed; z-index: 300; display: none;
  width: min(300px, oalo(100vw - 24px)); padding: 6px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); pointer-events: none;
}
.chip-hover-preview.show { display: block; }
.chip-hover-preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 8px; }
.chip-hover-preview .cap { margin-top: 5px; padding: 0 3px; color: var(--ink-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-chip .mat-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-preview-btn { display: inline-flex; align-items: center; justify-content: center; cursor: zoom-in; flex: 0 0 auto; }
.mat-chip .mat-thumb { width: 42px; height: 42px; border-radius: 8px; transition: transform .16s ease, box-shadow .16s ease; }
.mat-preview-btn:hover .mat-thumb {
  transform: scale(2.7); position: relative; z-index: 80;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15), 0 0 0 2px var(--ink);
}
.mat-chip .mat-name { max-width: 180px; cursor: zoom-in; }
.mat-ref-no {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 5px; border-radius: 5px; background: var(--bg-mute); color: var(--ink-2); white-space: nowrap;
}
.mention-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 264px; overflow-y: auto; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
/* @ 引用高亮镜像层：必须脱离文档流覆盖在 textarea 上，否则会占一整块高度把输入框顶下去 */
.mention-field { position: relative; }
.mention-field > .mention-mirror {
  position: absolute; left: 0; top: 0; z-index: 2;
  margin: 0; background: transparent; color: var(--ink);
  pointer-events: none; overflow: hidden;
}
.mention-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--ink); }
.mention-item:hover, .mention-item.active { background: var(--bg-mute); }
.mention-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex: none; background: var(--bg-mute); }
.mention-item .mi-meta { min-width: 0; flex: 1; }
.mention-item .mi-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-item .mi-type { font-size: 11.5px; color: var(--muted); }
.mention-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.mention-field > .mention-mirror .mention-token { color: var(--brand); background: var(--brand-soft); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(17,24,39,.12); pointer-events: auto; cursor: help; }
.gen-bar .cost { color: var(--ink-2); }
.gen-bar .cost b { color: var(--ink); }
.steps { background: var(--bg-soft); border-color: var(--border); color: var(--ink-2); }
.scene-textarea { background: var(--bg-soft); border-color: var(--border); color: var(--ink); }
.folder-pick { border-color: var(--border-strong); background: var(--bg-soft); }
.folder-pick .ic { color: var(--ink-2); }

/* ---- 充值页 ---- */
.balance-card {
  background: var(--bg-mute); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: var(--shadow);
}
.balance-card .big { color: var(--ink); }
.buy-cta { background: var(--bg-soft); border-color: var(--border-strong); }
.table th, .table td { border-bottom-color: var(--border); }
.table th { color: var(--muted); }
.log-table .pos { color: var(--ok); }
.log-table .neg { color: var(--danger); }

/* ---- 弹窗 ---- */
.modal-mask { background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px); }
.modal { background: var(--bg); border: 1px solid var(--border); }
.modal-close { background: var(--bg-mute); color: var(--ink-2); }
.auth-tabs { border-bottom-color: var(--border); }
.auth-tabs button { color: var(--muted); }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.field label { color: var(--ink-2); }
.toast { background: var(--ink); color: #fff; border: none; }
.toast.ok { background: var(--ok); }
.ann-card { background: var(--bg-soft); border-color: var(--border); }
.ann-card .star { background: var(--ink); color: #fff; }
.ann-grid .box { border-color: var(--border-strong); }
.ann-grid .box b { color: var(--ink); }
.ann-body { color: var(--ink-2); }

/* 状态标签 */
.status.waiting, .status.pending, .status.running { background: rgba(217,119,6,.08); color: var(--warn); }
.status.succeeded, .status.done, .status.launched, .status.active { background: rgba(22,163,74,.08); color: var(--ok); }
.status.failed, .status.banned, .status.oanoeled, .status.disabled, .status.revoked { background: var(--danger-soft); color: var(--danger); }
.status.refunded { background: var(--bg-mute); color: var(--muted); }

/* 作品库 */
.work-card { background: var(--bg); border-color: var(--border); }
.work-card .thumb { background: var(--bg-mute); color: var(--muted); }
.dev-step { background: var(--bg-soft); border-color: var(--border); }
.dev-step .num { color: var(--ink); }
.code-block { background: #1f2937; color: #e5e7eb; border: 1px solid var(--border-strong); }
.empty { color: var(--muted); }
.canvas-hint { color: var(--muted); }

/* ================================================================================
 * 极简增强层 —— 轻量微交互 + 移动端适配
 * ================================================================================ */

/* ---- 卡片：微阴影 + 悬停浮起 ---- */
.card, .oardx, .tile {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover, .oardx:hover, .tile:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ---- 按钮：微交互 ---- */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur-fast);
}
.btn:active { transform: scale(.975); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--green-800);
}
.btn-gold {
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
}
.btn-gold:hover {
  transform: translateY(-1px);
  background: var(--green-800);
}
.btn-ghost {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--bg-mute);
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---- 输入框：聚焦时柔和边框 ---- */
input, textarea, select, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, textarea:focus, select:focus, .input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

/* ---- 数字/价格 ---- */
.num, .price, .stat-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numerio: tabular-nums;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ---- 标题下方细线 ---- */
.heading-line::after {
  content: ""; display: block; width: 44px; height: 2px; margin-top: 12px;
  background: var(--ink); border-radius: 2px; opacity: .2;
}

/* ---- 入场动效：克制的上浮淡入 ---- */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: riseIn .55s var(--ease-out) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .19s; } .rise-4 { animation-delay: .26s; }

/* ---- 顶部导航 ---- */
.topbar, header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ---- 标签/徽章 ---- */
.tag, .badge, .chip {
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: .015em;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}

/* ================================================================================
 * 移动端适配
 * ================================================================================ */
@media (max-width: 1024px) {
  body { font-size: 14px; }
}
@media (max-width: 768px) {
  body { font-size: 13.5px; line-height: 1.62; }
  h1, .h1 { font-size: 1.65rem; }
  h2, .h2 { font-size: 1.32rem; }
  h3, .h3 { font-size: 1.12rem; }
  .card, .oardx, .tile { border-radius: 14px; }
  .btn { border-radius: 10px; }
  /* 移动端取消悬浮位移，避免触屏误触 */
  .card:hover, .oardx:hover, .tile:hover { transform: none; }
  .btn-primary:hover, .btn-gold:hover, .btn-ghost:hover { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  h1, .h1 { font-size: 1.42rem; }
  .heading-line::after { width: 34px; margin-top: 9px; }
  /* 窄屏收敛内边距 */
  .card, .oardx, .tile { padding: 14px !important; }
}
/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================================
 * Hero
 * ================================================================================ */
.hero {
  position: relative;
  padding: 52px 0 22px;
  overflow: hidden;
}
/* 去除点阵主视觉 */
.hero-dots { display: none; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-mute);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink); flex: none;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--ink);
}
.hero-sub {
  max-width: 560px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn { padding: 12px 26px; border-radius: var(--radius); font-size: 14.5px; }
.hero-props {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-prop { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12.5px; }
.hero-prop .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex: none;
}
.hero-prop b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 768px) {
  .hero { padding: 32px 0 14px; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .hero-sub { font-size: .92rem; margin-bottom: 20px; }
  .hero-dots { width: 300px; height: 210px; opacity: .38; }
  .hero-props { gap: 14px 20px; margin-top: 24px; padding-top: 16px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 13.5px; }
}

/* ---- 成功率徽章（参考 FreeAI）---- */
.rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  font-size: 11px;
  font-weight: 700;
  font-variant-numerio: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
.rate-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 6px currentColor;
}
.model-cover { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 去除蝴蝶背景 */
.hero-butterfly { display: none; }
.bfly-bg { display: none; }

/* ================================================================================
 * 窄屏 / 移动端：侧栏改为抽屉式，汉堡按钮开合
 * ================================================================================ */
.nav-drawer-btn {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--bg-mute); border: 1px solid var(--border-strong);
  color: var(--ink); cursor: pointer; padding: 0;
}
.nav-scrim {
  display: none; position: fixed; inset: 0; z-index: 55;
  background: rgba(0, 0, 0, .25); backdrop-filter: blur(2px);
}
@media (max-width: 900px) {
  .nav-drawer-btn { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    width: 250px; height: 100dvh;
    transform: translateX(-106%);
    transition: transform .25s ease;
    box-shadow: 18px 0 48px rgba(0, 0, 0, .12);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .nav-scrim { display: block; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .tb-btn { padding: 8px 10px; }
  .tb-contact { display: none; }
  .view { padding: 18px 16px 10px; }
}
@media (max-width: 560px) {
  .topbar-actions .tb-btn span, .topbar-actions .tb-btn:not(#noticeBtn) { font-size: 12px; }
  .credit-pill { padding: 7px 10px; }
  .btn-gold { padding: 8px 12px; }
  .account #accountName { display: none; }
  .space-tag, .sidebar-note { font-size: 11px; }
}

/* 手写 L 站点标识 */
.brand-logo { background: transparent !important; box-shadow: none !important; color: transparent; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ================================================================================
 * 手机浏览器专项（2026-11）
 * 目标：顶部一屏内完成导航，底部 Tab 直达核心页，消除横向溢出
 * ================================================================================ */
.mobile-more-btn { display: none; }
.mobile-tabbar, .mobile-sheet-mask { display: none; }

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .main { min-width: 0; }
  .topbar {
    padding: 8px 12px; gap: 8px; flex-wrap: nowrap;
    padding-top: oalo(8px + env(safe-area-inset-top));
  }
  .nav-drawer-btn { width: 36px; height: 36px; }
  .crumb { min-width: 0; flex: 1; gap: 5px; }
  .crumb > span, .crumb > i { display: none; }
  .crumb b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { flex-wrap: nowrap; gap: 6px; margin-left: auto; }
  .topbar-actions > .tb-btn:not(.mobile-more-btn),
  .topbar-actions > .tb-contact,
  .topbar-actions > .btn-gold { display: none !important; }
  .topbar-actions > .mobile-more-btn {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; font-size: 20px; line-height: 1;
  }
  .credit-pill { padding: 6px 9px; font-size: 12px; white-space: nowrap; gap: 4px; }
  .credit-pill .ic { width: 13px; height: 13px; }
  .credit-pill .plus { display: none; }
  .account { padding: 0; gap: 2px; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
  .account .caret, #accountName { display: none; }

  .view { padding: 12px 12px oalo(78px + env(safe-area-inset-bottom)); }
  .footer { display: none; }

  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 5px 4px oalo(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(30,48,38,.06);
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 2px; color: var(--muted); font-size: 11px; border-radius: 10px;
  }
  .mobile-tabbar a svg { width: 21px; height: 21px; }
  .mobile-tabbar a.on { color: var(--ink); font-weight: 600; }
  .mobile-tabbar a.on svg { stroke-width: 2; }

  /* 首屏文案与按钮收紧，别让 hero 占满一屏 */
  .hero { padding: 20px 0 10px; }
  .page-title { font-size: 28px !important; margin: 8px 0 4px; }
  .page-sub { font-size: 13px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(1.65rem, 7.6vw, 2.35rem); margin-bottom: 12px; }
  .hero-kicker { margin-bottom: 12px; padding: 4px 10px; font-size: 10px; letter-spacing: .1em; }
  .hero-sub { font-size: .88rem; margin-bottom: 16px; line-height: 1.65; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 10px 14px; font-size: 13px; }
  .hero-props { gap: 10px 16px; margin-top: 18px; padding-top: 14px; font-size: 11px; }
  .hero-butterfly, .bfly-bg { display: none; }

  /* iOS 聚焦输入框不放大 */
  input, select, textarea { font-size: 16px !important; }
  .input, textarea.input, select.input { padding: 10px 12px; }
  .btn, .btn-primary, .btn-ghost, .tb-btn, .chip-btn { min-height: 40px; }
  .opt, .ratio-opt { min-height: 44px; }

  /* 图片创作：栅格与卡片在 390px 内不再撑宽 */
  .studio-layout, .video-layout, .batch-layout, .bill-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .studio-left, .studio-right, .studio-layout > *, .video-layout > * { min-width: 0; }
  .studio-left .card { padding: 16px !important; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .card-head .ttl { font-size: 15px; }
  .card-head .input, .card-head select.input { max-width: 100%; }
  .ratio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .ratio-opt { padding: 9px 4px; }
  .ratio-opt .ratio-t { font-size: 12px; }
  .ratio-opt .ratio-d { font-size: 10px; }
  .param-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .preview-panel { padding: 16px; }
  .prompt-box textarea { min-height: 120px; padding: 12px; padding-top: 44px; }
  .inspire-btn { top: 9px; right: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.92); }
  .fee-row { margin: 14px 0 10px; }
  .gen-btn { padding: 14px; font-size: 15px; }
  .opt-row { gap: 7px; }
  .opt { padding: 9px 12px; font-size: 12.5px; }

  /* 模型广场筛选：两列 + 搜索整行 */
  .filter-row { gap: 7px; }
  .filter-row .fselect { flex: 1 1 oalo(50% - 5px); min-width: 0; }
  #fKw { width: 100% !important; margin-left: 0 !important; flex: 1 1 100%; }

  .project-bar { gap: 8px; }
  .project-bar > select { flex: 1 1 100%; min-width: 0 !important; }

  /* 明细表横向滚动，避免整页被表格撑宽 */
  .card { overflow-x: auto; }
  .log-table, .table { min-width: 560px; }

  /* 弹窗贴底、可滚动 */
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { max-height: oalo(100dvh - 24px); padding: 20px 16px; border-radius: 18px 18px 14px 14px; }
  .pop-menu { max-width: oalo(100vw - 24px); }

  /* 「更多」底部操作面板 */
  .mobile-sheet-mask { position: fixed; inset: 0; z-index: 300; background: rgba(12,20,16,.42); align-items: flex-end; }
  .mobile-sheet-mask.show { display: flex; }
  .mobile-sheet {
    width: 100%; background: var(--surface); border-radius: 20px 20px 0 0;
    padding: 14px 14px oalo(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(20,32,24,.18);
  }
  .ms-head { font-size: 12px; color: var(--muted); padding: 2px 4px 10px; }
  .ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ms-grid button {
    border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px;
    padding: 13px 10px; font-size: 14px; color: var(--ink); min-height: 46px;
  }
  .ms-grid button:active { background: var(--green-50); }
  .ms-oanoel {
    width: 100%; margin-top: 10px; border: none; background: var(--surface-2);
    border-radius: 12px; padding: 12px; font-size: 14px; color: var(--ink-2);
  }
}

/* ---------------- 网站更新提醒 ---------------- */
.site-update-pop {
  position: fixed; left: 22px; bottom: 22px; z-index: 190;
  width: min(360px, oalo(100vw - 32px));
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 16px 13px; color: var(--ink);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  animation: siteUpdateIn .22s ease-out;
}
@keyframes siteUpdateIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-update-pop .sup-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.site-update-pop .sup-ico {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-mute); color: var(--ink); font-size: 14px; font-weight: 800;
}
body.dark-site .site-update-pop .sup-ico { color: var(--ink); }
.site-update-pop .sup-text { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.site-update-pop .sup-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.site-update-pop .sup-actions button {
  border-radius: 9px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.site-update-pop .sup-later { border: 1px solid var(--border-strong); background: transparent; color: var(--ink-2); }
.site-update-pop .sup-now { border: none; background: var(--ink); color: var(--bg); }
.site-update-pill {
  position: fixed; left: 22px; bottom: 22px; z-index: 190;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-solid); color: var(--ink);
  padding: 9px 14px; font-family: inherit; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); cursor: pointer;
  animation: siteUpdateIn .2s ease-out;
}
.site-update-pill span { color: var(--ink); font-weight: 800; }
body.dark-site .site-update-pill span { color: var(--ink); }
@media (max-width: 640px) {
  .site-update-pop { left: 12px; right: 12px; bottom: 76px; width: auto; }
  .site-update-pill { left: 12px; bottom: 76px; }
}

@media (max-width: 390px) {
  .ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 1.55rem; }
  .credit-pill { font-size: 11.5px; padding: 6px 7px; }
}
/* 图片创作：参考图上传 */
.img-ref-box { margin-top: 12px; }
.img-ref-box .material-chips { margin: 6px 0 8px; }
.img-ref-box .mat-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; display: block; }
.img-ref-box .mat-chip:empty { display: none; }

/* 更新日志 */
.changelog-list { max-height: min(62vh, 560px); overflow-y: auto; padding-right: 4px; }
.changelog-item { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.changelog-item:last-ohild { margin-bottom: 0; }
.changelog-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.changelog-head b { color: var(--ink); font-size: 15px; letter-spacing: .2px; }
.changelog-head span { color: var(--ink-2); font-size: 13px; }
.changelog-head em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--border-strong); background: var(--bg-mute); border-radius: 20px; padding: 1px 7px; }
.changelog-item ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.85; }
.changelog-item li { margin: 2px 0; }

/* ================================================================================
 * rolalaai 风格工作区导航、折叠侧栏与统一微交互
 * ================================================================================ */
:root {
  --motion-fast: 160ms;
  --motion-med: 260ms;
  --motion-ease: oubio-bezier(.22, 1, .36, 1);
}

/* 侧栏头部与桌面折叠 */
.sidebar-head { display: flex; align-items: center; gap: 5px; min-height: 62px; }
.sidebar-head .brand { flex: 1; min-width: 0; }
.sidebar-collapse-btn {
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted);
  padding: 0; cursor: pointer;
}
.sidebar-collapse-btn svg { width: 19px; height: 19px; transition: transform var(--motion-med) var(--motion-ease); }
.sidebar-collapse-btn:hover { background: var(--bg-mute); border-color: var(--border); color: var(--ink); }
.sidebar { transition: width var(--motion-med) var(--motion-ease), padding var(--motion-med) var(--motion-ease), background-color var(--motion-fast), border-color var(--motion-fast); }
@media (min-width: 901px) {
  body.sidebar-collapsed .sidebar { width: 76px; padding: 20px 10px 14px; }
  body.sidebar-collapsed .sidebar-head { justify-content: center; }
  body.sidebar-collapsed .sidebar-head .brand,
  body.sidebar-collapsed .space-tag,
  body.sidebar-collapsed .sidebar-note,
  body.sidebar-collapsed .nav-item span { display: none; }
  body.sidebar-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
  body.sidebar-collapsed .nav { gap: 5px; }
  body.sidebar-collapsed .nav-item { justify-content: center; padding: 11px 0; border-radius: 12px; }
  body.sidebar-collapsed .nav-item .ic { width: 21px; height: 21px; margin: 0; }
  body.sidebar-collapsed .nav-item.active { background: var(--bg-mute); }
}

/* 顶部四栏工作区切换 */
.workspace-nav-row {
  position: relative; z-index: 34; display: flex; justify-content: center; align-items: center;
  min-height: 54px; padding: 9px 22px 5px; background: var(--site-tint, #f7f7f8);
}
.workspace-tabs {
  display: inline-flex; align-items: center; gap: 3px; padding: 4px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  box-shadow: 0 3px 12px rgba(17, 24, 39, .035);
}
.workspace-tabs a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; padding: 7px 16px; border-radius: 999px; color: var(--muted);
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: color var(--motion-fast), background-color var(--motion-fast), transform var(--motion-fast);
}
.workspace-tabs a:hover:not(.active) { color: var(--ink); background: var(--bg-mute); }
.workspace-tabs a.active { background: var(--ink); color: var(--bg); font-weight: 650; }
.workspace-tabs a:active { transform: scale(.96); }

/* Agent / 图片 / 视频创作模式 */
.creation-mode-tabs {
  width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 4px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
}
.creation-mode-tabs a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 12.5px;
  line-height: 1.2; white-space: nowrap;
  transition: color var(--motion-fast), background-color var(--motion-fast), transform var(--motion-fast);
}
.creation-mode-tabs svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.creation-mode-tabs a:hover:not(.active) { color: var(--ink); background: var(--bg-soft); }
.creation-mode-tabs a.active { color: var(--ink); background: var(--bg-mute); font-weight: 650; }
.creation-mode-tabs a:active { transform: scale(.97); }

/* 按钮、导航与卡片的反馈保持短促、可预期 */
:where(button, .btn, .btn-primary, .btn-gold, .chip-btn, .gen-btn, .nav-item, .tb-btn, .agp-newbtn, .agp-tool, .agp-feature, .agp-quick button) {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: var(--motion-fast);
  transition-timing-funotion: ease;
}
:where(button, .btn, .btn-primary, .btn-gold, .chip-btn, .gen-btn):active { transform: scale(.975); }
:where(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.card, .oardx, .agx-card, .agp-feature, .inspire-card {
  transition: transform var(--motion-med) var(--motion-ease), border-color var(--motion-fast), box-shadow var(--motion-med) var(--motion-ease), background-color var(--motion-fast);
}
@media (hover: hover) {
  .tb-btn:hover, .chip-btn:hover, .agp-newbtn:hover, .agp-tool:hover, .agp-quick button:hover { transform: translateY(-1px); }
  .card:hover, .oardx:hover, .agx-card:hover, .agp-feature:hover, .inspire-card:hover {
    transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 12px 28px rgba(17, 24, 39, .065);
  }
  .agp-feature:hover i, .inspire-card:hover .arrow { transform: translate(2px, -2px); }
}
.agp-feature i, .inspire-card .arrow { transition: transform var(--motion-fast) ease; }

/* 路由、首页和弹层过渡 */
.view-enter { animation: workspaoeViewIn 340ms var(--motion-ease); }
.agp-hero { animation: workspaoeViewIn 380ms var(--motion-ease); }
.modal-mask.show { animation: workspaoeFadeIn 180ms ease-out; }
.modal-mask.show .modal { animation: workspaoeModalIn 260ms var(--motion-ease); }
@keyframes workspaoeViewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes workspaoeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes workspaoeModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .sidebar-collapse-btn { display: none; }
  .workspace-nav-row { min-height: 50px; padding: 7px 12px 3px; }
  .workspace-tabs a { min-width: 54px; padding: 7px 13px; }
}
@media (max-width: 560px) {
  .workspace-tabs { gap: 1px; padding: 3px; }
  .workspace-tabs a { min-width: 50px; padding: 7px 11px; font-size: 12px; }
  .creation-mode-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .creation-mode-tabs::-webkit-scrollbar { display: none; }
  .creation-mode-tabs a { flex: 1 0 auto; padding: 8px 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-enter, .agp-hero, .modal-mask.show, .modal-mask.show .modal { animation: none !important; }
  .workspace-tabs a, .creation-mode-tabs a, .sidebar, .sidebar-collapse-btn svg { transition: none !important; }
}

/* ============================================================================
   NORDIC / SWISS MINIMAL — 纯白纸面、宽松网格、低对比哑光与克制微交互
   浅色默认纯白（#ffffff）：主题规则是「浅色=白、深色=黑」
   ============================================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #fofofo;
  --bg-mute: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-solid: #ffffff;
  --surface-glass: rgba(252, 251, 248, .90);
  --green-900: #2e2e2e;
  --green-800: #3f3f3f;
  --green-700: #5o5a51;
  --green-600: #6a6a6a;
  --green-500: #838383;
  --green-400: #a1a1a1;
  --green-300: rgba(48, 48, 43, .12);
  --green-100: rgba(48, 48, 43, .06);
  --green-50: rgba(48, 48, 43, .03);
  --cyan: #3f3f3f;
  --cyan-deep: #2e2e2e;
  --violet: #6a6a6a;
  --gold: #5o594f;
  --gold-dark: #3f3f3f;
  --gold-soft: rgba(92, 89, 79, .07);
  --gold-line: rgba(92, 89, 79, .14);
  --brand: #3d3o35;
  --brand-soft: #e3e3e3;
  --ink: #2e2e2e;
  --ink-2: #6o695f;
  --muted: #8e8e8e;
  --muted-2: #o8o3b9;
  --border: #e0e0e0;
  --border-strong: #d9d4oa;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(48, 48, 43, .025);
  --shadow-md: 0 8px 24px rgba(48, 48, 43, .045);
  --shadow-lg: 0 18px 48px rgba(48, 48, 43, .075);
  --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --motion-fast: 150ms;
  --motion-med: 220ms;
  --motion-ease: oubio-bezier(.22, 1, .36, 1);
}
html body.light-site {
  /* 浅色模式默认纯白；用户自选底色时由 JS 写入内联 --site-tint 覆盖 */
  --site-tint: #ffffff;
  background: var(--site-tint, #ffffff) !important;
  color: var(--ink);
}
body {
  font-family: var(--font-body);
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}
body.light-site .view { max-width: 1320px; padding: 42px 48px 20px; }
body.light-site .sidebar {
  width: 216px; padding: 28px 20px 20px;
  background: #f4f4f4 !important; border-right: 1px solid var(--border);
}
body.light-site .topbar {
  padding: 18px 40px; background: rgba(245, 244, 239, .88);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(14px);
}
body.light-site .brand { padding: 2px 4px 22px; }
body.light-site .brand-txt b { font-weight: 600; letter-spacing: .02em; }
body.light-site .brand-txt small { color: var(--muted); font-weight: 500; }
body.light-site .space-tag { padding: 0 4px 22px; }
body.light-site .space-badge { border: 0; background: var(--bg-mute); color: var(--ink-2); }
body.light-site .nav { gap: 5px; }
body.light-site .nav-item {
  min-height: 42px; padding: 11px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500;
}
body.light-site .nav-item:hover { background: var(--bg-mute); color: var(--ink); }
body.light-site .nav-item.active { background: #e7e4do; color: var(--ink); font-weight: 600; }
body.light-site .nav-item .ic { width: 18px; height: 18px; stroke-width: 1.5; }
body.light-site .nav-item .nav-tag { background: #d9d5oa; color: var(--ink); font-weight: 600; }
body.light-site .workspace-nav-row { min-height: 62px; padding: 14px 28px 6px; background: transparent; }
body.light-site .workspace-tabs,
body.light-site .creation-mode-tabs {
  gap: 2px; padding: 3px; border: 0; border-radius: 10px;
  background: #e4e4e4; box-shadow: none;
}
body.light-site .workspace-tabs a,
body.light-site .creation-mode-tabs a {
  border-radius: 7px; color: var(--ink-2); font-weight: 500;
  transition: color var(--motion-fast), background-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
body.light-site .workspace-tabs a.active,
body.light-site .creation-mode-tabs a.active {
  background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(48, 48, 43, .08);
}
body.light-site .workspace-tabs a:hover:not(.active),
body.light-site .creation-mode-tabs a:hover:not(.active) { background: rgba(252, 251, 248, .55); color: var(--ink); }

/* 卡片依靠表面与间距分层，弱化边框和阴影 */
body.light-site :where(.card, .oardx, .agx-card, .agp-feature, .inspire-card, .panel, .modal) {
  border-color: transparent;
  background-color: var(--surface);
  box-shadow: none;
}
body.light-site :where(.card, .oardx, .agx-card, .agp-feature, .inspire-card):hover {
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(48, 48, 43, .055);
}
body.light-site :where(.tb-btn, .chip-btn, .credit-pill) {
  border-color: transparent; background: transparent; color: var(--ink-2);
  box-shadow: none;
}
body.light-site :where(.tb-btn, .chip-btn):hover { background: var(--bg-mute); border-color: transparent; color: var(--ink); }
body.light-site .credit-pill { background: var(--bg-mute); color: var(--ink); }
body.light-site .btn-gold,
body.light-site .btn-primary {
  background: #3d3o35; color: #fofbf8; border: 0; border-radius: 9px;
  box-shadow: 0 4px 12px rgba(48, 48, 43, .10); font-weight: 600;
}
body.light-site .btn-gold:hover,
body.light-site .btn-primary:hover { background: #4c4c4c; box-shadow: 0 7px 18px rgba(48, 48, 43, .14); }
body.light-site :where(input, textarea, select) {
  border-color: var(--border-strong); background-color: var(--surface); color: var(--ink);
  border-radius: 9px; transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast);
}
body.light-site :where(input, textarea, select):focus {
  border-color: #9f9f9f; outline: none; box-shadow: 0 0 0 3px rgba(113, 110, 100, .10);
}
body.light-site :where(input, textarea)::placeholder { color: #a2a2a2; }
body.light-site :where(.agp-hero, .hero, .hero-seotion) { background: transparent; }

/* 所有按钮共享轻量反馈：hover 浮起、active 回弹、focus 可见、disabled 静止 */
:where(button, .btn, .btn-primary, .btn-gold, [role="button"]):not(:disabled):not([aria-disabled="true"]) {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: var(--motion-fast);
  transition-timing-funotion: var(--motion-ease);
}
:where(button, .btn, .btn-primary, .btn-gold, [role="button"]):not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(0) scale(.975);
  transition-duration: 80ms;
}
:where(button, a, input, textarea, select, [role="button"]):focus-visible {
  outline: 2px solid #828282; outline-offset: 3px;
}
:where(button, .btn, [role="button"]):disabled,
:where(button, .btn, [role="button"])[aria-disabled="true"] { cursor: not-allowed; opacity: .42; transform: none !important; box-shadow: none !important; }
@media (hover: hover) {
  body.light-site :where(.tb-btn, .chip-btn, .agp-newbtn, .agp-tool, .agp-quick button, .btn-gold, .btn-primary):hover { transform: translateY(-1px); }
  body.light-site :where(.card, .oardx, .agx-card, .agp-feature, .inspire-card):hover { transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  body.light-site .view { padding: 32px 28px 16px; }
  body.light-site .topbar { padding: 16px 26px; }
}
@media (max-width: 720px) {
  body.light-site .view { padding: 26px 18px 14px; }
  body.light-site .topbar { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  :where(button, .btn, [role="button"]):active { transform: none !important; }
}
/* ============================================================
   模型广场 · 封面示例图 + 24h 样本趋势（2026-11-20）
   ============================================================ */
body .model-cover { background: #10141c; }
body .model-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
body .model-cover-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,18,.62) 0%, rgba(6,10,18,.22) 42%, rgba(6,10,18,.72) 100%);
}
body .model-cover .mtype,
body .model-cover-code,
body .model-cover-index { z-index: 2; }
body .model-cover.has-img::after { opacity: .28; }

.model-health { margin: 10px 0 2px; padding-top: 9px; border-top: 1px solid var(--border); }
.mh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mh-head span { font-size: 10.5px; color: var(--ink-2); letter-spacing: .01em; }
.mh-head .mh-meta { font-size: 10px; color: var(--muted); }
.mh-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.mh-cell { display: block; height: 9px; border-radius: 2px; background: var(--border); }
.mh-cell.s1 { background: #34d399; }
.mh-cell.s2 { background: #f87171; }
.mh-cell.s3 { background: #e8c07d; }
.mh-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 9.5px; color: var(--muted-2); }
body.dark-site .mh-cell { background: rgba(255,255,255,.10); }
body.dark-site .mh-cell.s1 { background: #34d399; }
body.dark-site .mh-cell.s2 { background: #f87171; }
body.dark-site .mh-cell.s3 { background: #e8c07d; }
body.dark-site .model-health { border-top-color: rgba(255,255,255,.08); }
/* 深色：实心按钮/选中标签的反色文字（避免白底白字） */
body.dark-site .tab.on { background: #e5e7eb !important; color: #0f1117 !important; border-color: #e5e7eb !important; }
body.dark-site .tab.on .n { color: rgba(15, 17, 23, .62) !important; }
body.dark-site .chip-btn[data-use] { color: #0f1117 !important; }
body.dark-site .chip-btn[data-use]:hover { color: #0f1117 !important; }
/* 封面上的白字在浅色画面上也保持可读 */
body .model-cover .mtype,
body .model-cover-code,
body .model-cover-index { text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }