/* ============================================================
   迈界AIGC站 · 视觉规格
   依据（按优先级）：
     1. app/docs/19_向导入口页复刻规格.md  ← 对标站服务端 HTML className 原文
     2. site_all.css                        ← 对标站生产 CSS（设计令牌 --yh-*）
     3. 各页面截图实测
   ⚠️ 2026-09-29 本文件曾被误截断，此版本为按上述依据完整重建
   ============================================================ */
:root {
  /* ═══ 迈界AIGC站 设计系统（从对标站源码 CSS 提取的精确值）═══ */
  --yh-bg:         #090c12;
  --yh-surface:    #121620;
  --yh-porcelain:  #121620;
  --yh-line:       rgba(255,255,255,.122);   /* #ffffff1f */
  --yh-ink:        #eef5ff;
  --yh-muted:      #9aa6ba;
  --yh-mist:       #20c8ff;    /* 青 */
  --yh-cocoa:      #24d6c8;    /* 青绿 */
  --yh-violet:     #7357ff;    /* 紫 */
  --yh-shadow:     0 24px 70px rgba(0,0,0,.36);
  --yh-shadow-soft:0 14px 38px rgba(0,0,0,.26);
  /* ═══ 主 CTA 按钮令牌（从对标站 884KB CSS 逐字提取）═══
     对标站所有主按钮都用这一组，不是纯色；
     我们原先 .btn-primary 用纯色 #00E0C0、/workflow 两个 CTA 用
     Tailwind 默认色 #2563eb/#7c3aed —— 那 4 个色在对标站 CSS 里出现 0 次。 */
  --yh-dark-blue-button-gradient: linear-gradient(90deg,#18dcd5 0%,#1bd3fd 100%);
  --yh-dark-blue-button-hover:    linear-gradient(90deg,#1bd3fd 0%,#18dcd5 100%);
  --yh-dark-blue-button-foreground: #071014;
  --yh-dark-blue-button-shadow:   0 16px 34px #1bd3fd38;
  --yh-dark-blue-button-shadow-hover: 0 20px 42px #1bd3fd4d;

  /* ═══ 向导页令牌（提取自对标站 ReplicationWorkbench-module CSS）═══
     依据：app/docs/20_向导页复刻规格.md §1                            */
  --workbench-accent:         #45ddd6;   /* 暗色；亮色 #327aff */
  --workbench-border:         #2b686c;   /* 暗色；亮色 #b5cdfb */
  --workbench-tint:           #102c33;   /* 暗色；亮色 #f2f6ff */
  --workbench-radius-shell:   14px;
  --workbench-radius-panel:   12px;
  --workbench-radius-control: 10px;
  --workbench-radius-compact: 8px;

  --bg: #0A0A0F;
  --bg2: #121218;
  --panel: #16161E;
  --panel2: #1A1A22;
  --line: #26262F;
  --line2: #32323D;
  --txt: #FFFFFF;
  --txt2: #8A8A99;
  --txt3: #5A5A68;
  --cyan: #00E0C0;
  --cyan-dim: #0B6B5E;
  --cyan-soft: rgba(0, 224, 192, .12);
  --purple: #7B5CFF;
  --gold: #F5C451;
  --danger: #FF5C5C;
  --warn: #FFB020;
  --r: 12px;
  --r-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--yh-bg);
  color: var(--txt);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--txt); background: none; border: none; outline: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2E2E38; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶部导航 ---------- */
.nav {
  height: 56px; display: flex; align-items: center; gap: 18px;
  padding: 0 24px; background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
/* ============================================================
   交互预览横幅（对齐对标站「当前为交互预览，不提交真实工作流」）
   ------------------------------------------------------------
   ⚠️ 用 fixed 而非 sticky：sticky 的包含块是 body，页面一滚动
      横幅就整体滚出视口，而 .nav 仍吸在顶部 —— 用户在最需要被
      提醒「不扣费、不创建真实任务」的时候反而看不到提示。
      改为 fixed 常驻顶部，并整体下移 .nav 与 #app 让出空间。
   ============================================================ */
#dsh-preview {
  position: fixed; top: 0; left: 0; right: 0; height: 41px; z-index: 150;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 16px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(90deg, rgba(245,196,81,.98), rgba(255,176,32,.96));
  color: #2a1d00; border-bottom: 1px solid rgba(245,196,81,.55);
}
/* 预览开启时：导航与页面内容整体下移 41px，避免被横幅遮住 */
body.has-preview .nav { top: 41px; }
body.has-preview #app { padding-top: 41px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.nav-logo .mark { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), #00A88F); display: grid; place-items: center; font-size: 14px; }
.nav-hot {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 10px; border: 1px solid var(--cyan-dim);
  border-radius: 999px; background: rgba(0, 224, 192, .06); margin-left: 4px;
}
.nav-hot .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--cyan-soft); display: grid; place-items: center; font-size: 13px; }
.nav-hot .t1 { font-size: 9px; color: var(--cyan); letter-spacing: 1px; }
.nav-hot .t2 { font-size: 13px; font-weight: 600; color: var(--cyan); line-height: 1.2; }
.nav-menu {
  display: flex; align-items: center; gap: 4px; margin-left: 8px;
  /* 导航项增多后，中等宽度下会挤成两行导致 56px 的 bar 被撑破；
     这里禁止换行 + 允许收缩，再由下面的媒体查询逐步收紧间距。 */
  flex-wrap: nowrap; min-width: 0; flex: 0 1 auto;
}
.nav-menu a {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; color: var(--txt2); font-size: 14px; transition: .15s;
  white-space: nowrap; flex: 0 0 auto;
}
/* 导航内所有文字都不许换行（否则 logo/徽章/胶囊会被折成两行） */
.nav-logo, .nav-hot, .nav-hot .t1, .nav-hot .t2,
.nav-chip, .nav-user, .nav-user span { white-space: nowrap; }
.nav-logo { flex: 0 0 auto; }
.nav-hot { flex: 0 0 auto; }
.nav-chip, .nav-user { flex: 0 0 auto; }

/* 中等屏幕：收紧间距与内边距，保证 6 个入口一行放下 */
@media (max-width: 1400px) {
  .nav { gap: 10px; padding: 0 14px; }
  .nav-menu { gap: 2px; margin-left: 4px; }
  .nav-menu a { padding: 8px 9px; font-size: 13px; gap: 4px; }
  .nav-logo { font-size: 15px; }
  .nav-hot { padding: 4px 10px 4px 8px; gap: 7px; }
  .nav-hot .t2 { font-size: 12px; }
  .nav-right { gap: 11px; }
}
/* 窄屏：隐藏次要入口的图标，只留文字 */
@media (max-width: 1150px) {
  .nav-menu a > span:first-child { display: none; }
  .nav-hot .ico { display: none; }
  .nav-hot { padding: 5px 11px; }
  .nav-menu a { padding: 8px 7px; font-size: 12.5px; }
  .nav-chip { padding: 6px 9px; font-size: 12px; }
  .nav-right { gap: 9px; }
}
/* 小屏：进一步收起积分商城文字，只留图标 */
@media (max-width: 980px) {
  .nav-hot { display: none; }
  .nav-chip { font-size: 0; padding: 6px 10px; gap: 0; }
  .nav-chip > span { font-size: 14px; }
  .nav-hot .t1 { display: none; }
}
/* 极窄：隐藏次要菜单项（AI 视频已可从 AI 生图页进入） */
@media (max-width: 860px) {
  .nav-menu a[href="/ai-video"] { display: none; }
  .nav-menu a[href="/ai-media"] { display: none; }
}
.nav-menu a:hover { color: var(--txt); background: var(--panel); }
.nav-menu a.on { color: var(--txt); background: var(--panel2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 15px; position: relative; }
.nav-ico .dot { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--cyan); color: #04231E; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.nav-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--panel); border-radius: 999px; font-size: 13px; }
.nav-chip.gold { color: var(--gold); }
.nav-user { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--panel); border-radius: 999px; }
.nav-user .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #3AC0FF, #7B5CFF); display: grid; place-items: center; font-size: 12px; }

/* ---------- 通用布局 ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 20px 24px 60px; }
.wrap-narrow { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; }
.row { display: flex; gap: 16px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.center { display: flex; align-items: center; gap: 8px; }
.vbox { display: flex; flex-direction: column; gap: 10px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-pad { padding: 18px 20px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-b { padding: 18px; }
.panel-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-sub { font-size: 12px; color: var(--txt2); margin-top: 3px; }

.hint-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; color: var(--txt2);
}
.hint-bar.warn { background: rgba(255, 176, 32, .08); border-color: rgba(255, 176, 32, .3); color: var(--warn); }
.hint-bar.info { background: rgba(0, 224, 192, .06); border-color: rgba(0, 224, 192, .25); color: var(--cyan); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--txt);
  transition: .15s; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--cyan-dim); color: var(--cyan); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--yh-dark-blue-button-gradient); border-color: transparent; color: var(--yh-dark-blue-button-foreground); font-weight: 700; box-shadow: var(--yh-dark-blue-button-shadow); }
.btn-primary:hover:not(:disabled) { background: var(--yh-dark-blue-button-hover); color: var(--yh-dark-blue-button-foreground); box-shadow: var(--yh-dark-blue-button-shadow-hover); }
.btn-primary:disabled { background: #2A4A45; border-color: #2A4A45; color: #6E8B86; opacity: 1; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 12px 26px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.btn.on { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }

/* ---------- 标签/徽章 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; background: var(--panel2); color: var(--txt2); border: 1px solid var(--line); }
.tag-cyan { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan-dim); }
.tag-gold { background: rgba(245, 196, 81, .12); color: var(--gold); border-color: rgba(245, 196, 81, .3); }
.tag-warn { background: rgba(255, 176, 32, .12); color: var(--warn); border-color: rgba(255, 176, 32, .3); }
.tag-ok { background: rgba(0, 224, 192, .1); color: var(--cyan); border-color: var(--cyan-dim); }
.tag-danger { background: rgba(255, 92, 92, .12); color: var(--danger); border-color: rgba(255, 92, 92, .3); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; color: var(--txt2); display: flex; align-items: center; gap: 6px; }
.field-label .req { color: var(--danger); }
.field input, .field textarea, .field select,
.input {
  width: 100%; padding: 10px 13px; border-radius: 9px;
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--txt); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--cyan-dim); }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.field select { cursor: pointer; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------- 表格 ---------- */
.table, .tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .tbl th { text-align: left; padding: 10px 12px; color: var(--txt2); font-weight: 500; border-bottom: 1px solid var(--line); font-size: 12px; }
.table td, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td, .tbl tr:last-child td { border-bottom: none; }
.table tbody tr:hover, .tbl tbody tr:hover { background: var(--panel2); }

/* ---------- 弹窗 / 轻提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; }
/* ⚠️ 这里原来写死 max-width:520px，会覆盖 JS 传入的 width 参数，
   导致所有弹窗（含案例详情）都被压到 520px。
   改为只做兜底上限，实际宽度由 JS 的 inline maxWidth 决定。 */
.modal-b { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: var(--yh-shadow); }
.modal-b, .modal-h, .modal-f { box-sizing: border-box; }
.modal-b > * { min-width: 0; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.toasts { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px;
  background: #1C2431; border: 1px solid #2C3A4A; color: #DCE6F0;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  animation: toastIn .22s ease;
}
.toast.ok { border-color: var(--cyan-dim); color: var(--cyan); }
.toast.err { border-color: rgba(255,92,92,.45); color: #FF8A8A; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.empty { padding: 46px 20px; text-align: center; color: var(--txt3); font-size: 13.5px; }
.empty .ico { font-size: 34px; margin-bottom: 12px; opacity: .5; }

/* ---------- 首页 masonry ----------
   对标站是密集瀑布流（首屏 5 列），我们用更窄的列宽 + 更小的间距来贴近。 */
.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (min-width: 1500px) { .masonry { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); } }
.masonry .item { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: .18s; }
.masonry .item:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.masonry .item .img, .masonry .item > img { width: 100%; display: block; }
.masonry .item .hover { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82)); display: flex; align-items: flex-end; padding: 14px; opacity: 0; transition: .2s; }
.masonry .item:hover .hover { opacity: 1; }
.masonry .item .text { font-size: 13px; line-height: 1.5; }

.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat { padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--txt2); cursor: pointer; transition: .15s; }
.cat:hover { color: var(--txt); border-color: var(--line2); }
.cat.on { background: var(--cyan-soft); border-color: var(--cyan-dim); color: var(--cyan); }

.counter { display: flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--txt2); }
.counter b { font-size: 15px; color: var(--cyan); }

/* ---------- 上传缩略图 ---------- */
.thumb { position: relative; width: 108px; height: 108px; border-radius: 10px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.thumb-add {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 10px;
  border: 1px dashed var(--line2); background: var(--panel); color: var(--txt3);
  font-size: 22px; cursor: pointer; transition: .15s;
}
.thumb-add:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,224,192,.9); color: #04231E;
  display: grid; place-items: center; font-size: 12px;
}
.chk { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; cursor: pointer; flex: none; }
.chk.on { background: var(--cyan); border-color: var(--cyan); color: #04231E; }
.opt { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; transition: .15s; }
.opt:hover { border-color: var(--line2); }
.opt.on { border-color: var(--cyan-dim); background: var(--cyan-soft); color: var(--cyan); }
.cost { font-size: 12px; color: var(--gold); }
.bar { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #3AC0FF); border-radius: 3px; transition: width .3s; }
.idx { font-size: 11px; color: var(--txt3); }
.st { font-size: 11px; }

/* ---------- 向导页步骤头 / 步骤条 ---------- */
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-head .t { font-size: 15px; font-weight: 600; }
.flow-side { display: flex; flex-direction: column; gap: 6px; }
.flow-item {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border-radius: 9px; font-size: 13px; color: var(--txt2); cursor: pointer; transition: .15s;
}
.flow-item:hover { background: var(--panel); color: var(--txt); }
.flow-item.on { background: var(--panel2); color: var(--txt); }
.flow-item.done { color: var(--cyan); }
.flow-item .n { font-size: 11px; color: var(--txt3); }
.flow-sub { padding-left: 30px; font-size: 12px; }
.flow-group-title { font-size: 11px; color: var(--txt3); letter-spacing: .5px; margin: 12px 0 6px; }

/* ============================================================
   ★ 向导入口页（一站式做带货视频 · 你准备从哪里开始？）
   唯一依据：app/docs/19_向导入口页复刻规格.md
   提取自对标站 /sales-video-studio 服务端 HTML 的 className 原文
   结构：max-w-1500 + 居中头部 + grid-cols-2 gap-20 两卡等宽
        + 中间 1px 分隔线与「或」徽章
   ============================================================ */
.wf-wrap {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 32px 56px;      /* pt-8 lg:px-8 pb-14 */
  overflow: hidden;
}
/* 顶部双色光斑（源码：480px 高容器内两枚 blur-3xl 光球） */
.wf-wrap::before,
.wf-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(64px);
}
.wf-wrap::before { left: 4%; top: 32px; width: 240px; height: 240px; background: rgba(147,197,253,.14); }
.wf-wrap::after  { right: 5%; top: 0;    width: 256px; height: 256px; background: rgba(196,181,253,.14); }
.wf-wrap > * { position: relative; z-index: 1; }

/* ---------- 头部（居中，max-w-3xl） ---------- */
.wf-hero-head { max-width: 768px; margin: 0 auto; text-align: center; }
.wf-badge {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 0 auto 16px; padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.6);
  font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.wf-badge svg { width: 14px; height: 14px; color: #3b82f6; flex: none; }
.wf-h1 {
  font-size: clamp(32px, 4.6vw, 60.8px);
  font-weight: 900; letter-spacing: -.055em; line-height: 1.1;
  color: var(--yh-ink);
}
.wf-sub { max-width: 672px; margin: 16px auto 0; font-size: 16px; line-height: 28px; color: rgba(255,255,255,.62); }

/* ---------- ★ 两卡网格：等宽 + 中间「或」徽章 ---------- */
.wf-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* lg:grid-cols-2 */
  gap: 20px;                                          /* gap-5 */
  margin-top: 36px;                                   /* mt-9 */
}
.wf-divider {
  position: absolute; left: 50%; top: 48px; bottom: 48px;
  width: 1px; transform: translateX(-50%);
  background: rgba(255,255,255,.08);                  /* dark:bg-white/8 */
  pointer-events: none;
}
.wf-or {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  display: grid; place-items: center;
  width: 36px; height: 36px;                          /* h-9 w-9 */
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #090c12;
  color: rgba(255,255,255,.35);
  font-size: 10px; font-weight: 700;
}

/* ---------- 卡片 ---------- */
.wf-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 28px;                                      /* sm:p-7 */
  border-radius: 30px;                                /* rounded-[30px] */
  border: 1px solid;
  background: rgba(18,23,34,.95);                     /* dark:bg-[#121722]/95 */
  box-shadow: 0 24px 80px rgba(45,61,89,.09);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.wf-card:hover { transform: translateY(-4px); box-shadow: 0 28px 90px rgba(45,61,89,.14); }
.wf-card:active { transform: scale(.995); }
.wf-card.blue   { border-color: rgba(96,165,250,.18); }
.wf-card.violet { border-color: rgba(167,139,250,.18); }
.wf-card.blue:hover   { border-color: rgba(96,165,250,.34); }
.wf-card.violet:hover { border-color: rgba(167,139,250,.34); }
.wf-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }   /* h-1 */
.wf-card.blue::before   { background: #3b82f6; }
.wf-card.violet::before { background: #8b5cf6; }

.wf-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wf-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.wf-card.blue   .wf-eyebrow { color: #60a5fa; }
.wf-card.violet .wf-eyebrow { color: #a78bfa; }
.wf-card-title {
  margin-top: 8px;
  font-size: clamp(23.2px, 2.6vw, 35.2px);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.15; color: #fff;
}
.wf-card-ico {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex: none;              /* h-14 w-14 */
  border-radius: 20px;                                /* rounded-[20px] */
}
.wf-card.blue   .wf-card-ico { background: rgba(59,130,246,.12); color: #bfdbfe; }
.wf-card.violet .wf-card-ico { background: rgba(139,92,246,.12); color: #ddd6fe; }
.wf-card-ico svg { width: 24px; height: 24px; }

.wf-card-desc { margin-top: 16px; min-height: 56px; font-size: 16px; line-height: 28px; color: rgba(255,255,255,.62); }

/* 步骤盒：mt-6 rounded-[22px] border p-3 */
.wf-steps {
  margin-top: 24px; padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.wf-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.wf-step {
  position: relative;
  padding: 12px 10px;                                 /* px-2.5 py-3 */
  border-radius: 16px;                                /* rounded-2xl */
  background: rgba(255,255,255,.05);
  text-align: center;
  box-shadow: 0 5px 18px rgba(50,65,91,.05);
}
.wf-step-n { position: absolute; left: 8px; top: 8px; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.2); }
.wf-step-ico {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin: 0 auto;          /* h-9 w-9 */
  border-radius: 12px;                                /* rounded-xl */
}
.wf-card.blue   .wf-step-ico { background: rgba(59,130,246,.1); color: #bfdbfe; }
.wf-card.violet .wf-step-ico { background: rgba(139,92,246,.1); color: #ddd6fe; }
.wf-step-ico svg { width: 16px; height: 16px; }       /* h-4 w-4 */
.wf-step-t { display: block; margin-top: 8px; font-size: 11px; line-height: 16px; color: rgba(255,255,255,.68); }

.wf-fit { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.46); }
.wf-fit-ico { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; }
.wf-card.blue   .wf-fit-ico { background: rgba(59,130,246,.1); color: #60a5fa; }
.wf-card.violet .wf-fit-ico { background: rgba(139,92,246,.1); color: #a78bfa; }
.wf-fit-ico svg { width: 12px; height: 12px; }        /* h-3 w-3 */

.wf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px;                          /* h-12 */
  margin-top: 24px;
  border-radius: 16px;                                /* rounded-2xl */
  font-size: 14px; font-weight: 700; color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.wf-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.wf-btn:hover svg { transform: translateX(4px); }
.wf-btn:active { transform: scale(.99); }
.wf-btn.blue   { background: var(--yh-dark-blue-button-gradient); color: var(--yh-dark-blue-button-foreground); box-shadow: var(--yh-dark-blue-button-shadow); }
.wf-btn.blue:hover   { background: var(--yh-dark-blue-button-hover); box-shadow: var(--yh-dark-blue-button-shadow-hover); }
.wf-btn.violet { background: var(--yh-dark-blue-button-gradient); color: var(--yh-dark-blue-button-foreground); box-shadow: var(--yh-dark-blue-button-shadow); }
.wf-btn.violet:hover { background: var(--yh-dark-blue-button-hover); box-shadow: var(--yh-dark-blue-button-shadow-hover); }

/* ---------- 下方：更多工具 ---------- */
.wf-sec { display: flex; align-items: center; gap: 10px; margin: 44px 0 16px; font-size: 15px; font-weight: 700; color: #E4EEF6; }
.wf-sec-bar { width: 3px; height: 16px; border-radius: 2px; background: var(--yh-mist); }
.wf-sec-sub { font-size: 12px; font-weight: 400; color: var(--yh-muted); }
.wf-tools { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.wf-tool {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 18px;
  border: 1px solid var(--yh-line);
  background: rgba(18,22,32,.72);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.wf-tool:hover { border-color: rgba(32,200,255,.42); transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(32,200,255,.28); }
.wf-tool-top { display: flex; align-items: center; gap: 12px; }
.wf-tool-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: rgba(32,200,255,.1); color: var(--yh-mist); }
.wf-tool-ico svg { width: 20px; height: 20px; }
.wf-tool-name { font-size: 15px; font-weight: 700; color: #F0F6FB; }
.wf-tool-cat { font-size: 11px; color: var(--yh-muted); margin-top: 3px; }
.wf-tool-desc { font-size: 12.5px; line-height: 1.6; color: #8A99AA; min-height: 40px; }
.wf-tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.wf-tool-badge { font-size: 11px; color: var(--yh-muted); }
.wf-tool-go {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(32,200,255,.32);
  background: rgba(32,200,255,.08);
  color: var(--yh-mist);
  font-size: 12px; font-weight: 600; transition: .18s;
}
.wf-tool-go:hover { background: rgba(32,200,255,.18); border-color: var(--yh-mist); }

/* ---------- 触摸优化 ---------- */
@media (hover: none) {
  .masonry .item .hover { display: none; }
  .btn { min-height: 36px; }
}

/* ---------- 响应式：入口页 ---------- */
@media (max-width: 1023px) {
  .wf-grid { grid-template-columns: 1fr; }
  .wf-divider { display: none; }
  .wf-tools { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 16px 14px 48px; }
  .row { flex-direction: column; }
}
@media (max-width: 640px) {
  .wf-wrap { padding: 24px 16px 48px; }
  .wf-steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-card { padding: 20px; }
  .wf-h1 { font-size: 32px; }
  .wf-card-title { font-size: 24px; }
  .wf-tools { grid-template-columns: 1fr; }
  .tbl th:nth-child(n+3), .tbl td:nth-child(n+3) { display: none; }
  .cats { gap: 6px; }
  .cat { padding: 6px 12px; font-size: 12px; }
  .field-label { font-size: 12px; }
  .step-head .t { font-size: 14px; }
}

/* ============================================================
   ★ 爆款视频智能二创 · 向导页（ReplicationWorkbench）
   唯一依据：app/docs/20_向导页复刻规格.md
   该规格逐条提取自对标站 site_css2.css 的
   .ReplicationWorkbench-module__YwHsxG__* （293 条生产规则）
   容器：max-w-1720（比入口页 1500 更宽，两套宽度体系）
   ============================================================ */

/* ---------- 外层容器 ---------- */
.wb-page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 12px 28px 0;      /* pt-3 lg:px-7 */
}

/* ---------- 顶栏：240px | 1px | 1fr ---------- */
.wb-header {
  display: grid;
  grid-template-columns: 240px 1px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--yh-surface);
  border-bottom: 1px solid var(--yh-line);
}
.wb-header-divider { width: 1px; height: 32px; background: var(--yh-line); }
.wb-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; height: 36px; padding: 0 12px;
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-control);
  background: var(--yh-surface); color: var(--yh-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .15s, border-color .15s;
}
.wb-back:hover { filter: brightness(1.12); border-color: var(--workbench-border); }

/* ---------- ★ 顶部横向步骤条 ---------- */
.wb-steps {
  display: flex; align-items: center;
  grid-area: 1/1;
  min-height: 44px; padding: 5px 18px;
  background: var(--yh-surface);
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-panel);
  box-shadow: 0 2px 7px #25406608;
}
.wb-steps button {
  position: relative;
  display: flex; flex: 1;
  align-items: center; justify-content: center;
  gap: 9px; min-height: 34px; padding: 3px 12px;
  cursor: pointer; background: none; border: none;
}
/* 步骤间连接线：绕开中间圆点与文字 */
.wb-steps button:not(:last-child)::after {
  content: ''; position: absolute; z-index: 0;
  top: 50%; left: calc(50% + 48px); right: calc(48px - 50%);
  height: 1px; background: var(--yh-line); pointer-events: none;
}
.wb-steps button > span,
.wb-steps button > strong { position: relative; z-index: 1; }
.wb-steps button > span {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--yh-muted) 11%, var(--yh-surface));
  color: var(--yh-muted);
  font-size: 11px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.wb-steps button > strong {
  background: var(--yh-surface);
  color: var(--yh-muted);
  padding: 2px 5px;
  font-size: 13px; font-weight: 600;
}
.wb-steps button[aria-current]        { color: var(--workbench-accent); }
.wb-steps button[aria-current] > span { background: var(--workbench-accent); color: var(--yh-surface); }
.wb-steps button[aria-current] > strong { color: var(--workbench-accent); }
.wb-steps button:focus-visible { outline: 2px solid var(--workbench-accent); outline-offset: 2px; }
.wb-steps button.done > span { background: var(--yh-cocoa); color: #071014; }

/* ---------- 主网格 ---------- */
.wb-shell {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 24%);
  align-items: start;
  gap: 10px 12px;
  min-height: 440px;
  padding: 10px 12px 12px;
}
.wb-steps  { grid-area: 1/1; }
.wb-form   { grid-area: 2/1; min-width: 0; display: flex; flex-direction: column; }
.wb-sidebar{ grid-area: 1/2/3; }
.wb-footer { grid-area: 3/1; }

/* ---------- 区块 ---------- */
.wb-section {
  min-width: 0;
  margin-bottom: 10px;
  padding: 13px 14px 14px;
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-panel);
  background: var(--yh-surface);
  scroll-margin-top: 10px;
}
.wb-section:last-child { margin-bottom: 0; }
.wb-section-head {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; margin-bottom: 11px;
}
.wb-section-head h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 650; color: var(--yh-ink);
}
.wb-section-head h2 > span {
  display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  border: 1px solid var(--workbench-accent);
  color: var(--workbench-accent);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.wb-section-head .wb-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 侧边栏 ---------- */
.wb-sidebar {
  display: flex; flex-direction: column;
  gap: 10px; min-width: 0;
  max-height: calc(100dvh - 100px);
  position: sticky; top: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--yh-line) transparent;
}
.wb-sidebar > .wb-section { flex-shrink: 0; }
.wb-sidebar .wb-gallery > h2 { font-size: 17px; }
.wb-case {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  align-items: center; gap: 12px;
  margin-top: 10px; padding: 10px;
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-control);
  background: color-mix(in srgb, var(--yh-surface) 97%, var(--workbench-accent));
}
.wb-case-media { aspect-ratio: 1.08; border-radius: var(--workbench-radius-compact); overflow: hidden; background: #0d121b; }
.wb-case-media img { width: 100%; height: 100%; object-fit: cover; }
.wb-case-copy { display: flex; flex-direction: column; gap: 8px; }
.wb-case-copy h3 { font-size: 14px; font-weight: 600; color: var(--yh-ink); }
.wb-case-copy p { font-size: 12px; color: var(--yh-muted); line-height: 1.5; }
.wb-case-apply {
  min-width: 76px; min-height: 27px; padding: 3px 12px;
  border: 1px solid var(--workbench-border);
  background: var(--workbench-tint);
  color: var(--workbench-accent);
  border-radius: 999px; font-size: 11px; cursor: pointer;
  align-self: flex-start;
}
.wb-case-apply:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 底栏 ---------- */
.wb-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px; padding: 9px 12px;
  background: var(--yh-surface);
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-panel);
  box-shadow: 0 2px 7px #25406608;
}
.wb-footer-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.wb-footer-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: filter .15s;
}
.wb-footer-actions button:hover:not(:disabled) { filter: brightness(.96); }
.wb-footer-actions button:disabled { cursor: not-allowed; opacity: .45; }
.wb-footer-actions button:focus-visible { outline: 2px solid var(--workbench-accent); outline-offset: 3px; }

.wb-submit {
  min-width: 200px; height: 42px; padding: 0 24px;
  font-size: 14px; font-weight: 600;
  color: #071014 !important;
  background: linear-gradient(110deg, #18dcd5, #1bd3fd) !important;
  border: 1px solid #19cbd5 !important;
  border-radius: var(--workbench-radius-compact) !important;
}
.wb-reset {
  height: 36px; padding: 0 16px; font-size: 13px;
  border: 1px solid var(--yh-line); border-radius: var(--workbench-radius-compact);
  background: transparent; color: var(--yh-muted);
}
.wb-reset:hover { color: var(--yh-ink); border-color: var(--workbench-border); }

/* 报价条 */
.wb-quote { display: flex; align-items: center; min-width: 0; flex: 1; }
.wb-quote > div {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 38px; padding: 8px 4px;
  font-size: 12px; color: var(--yh-muted);
}
.wb-quote b { color: var(--gold); font-size: 14px; }
.wb-quote .wb-quote-box {
  min-height: 48px; padding: 8px 12px;
  color: #ecfeff; background: #08272f;
  border: 1px solid #27d7cc73; border-radius: 12px;
}

/* ---------- ★ 控件：option ---------- */
.wb-option {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-width: 0; padding: 9px 12px;
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-control);
  background: var(--yh-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wb-option:hover { border-color: var(--workbench-border); }
.wb-option:has(input:checked) {
  border-color: var(--workbench-border);
  background: var(--workbench-tint);
  box-shadow: inset 0 0 0 .5px var(--workbench-border);
}
.wb-option:has(input:focus-visible) { outline: 2px solid var(--workbench-accent); outline-offset: 2px; }
.wb-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.wb-option input[type=radio],
.wb-option input[type=checkbox] { width: 13px; height: 13px; accent-color: var(--workbench-accent); flex-shrink: 0; }
.wb-option svg { color: var(--workbench-accent); flex-shrink: 0; }
.wb-option strong { font-size: 12px; font-weight: 600; color: var(--yh-ink); }
.wb-option small { display: block; color: var(--yh-muted); font-size: 11px; line-height: 1.5; }
.wb-option:has(input:checked) strong { color: var(--workbench-accent); }

/* 勾选角标 */
.wb-check {
  display: none; position: absolute; bottom: -1px; right: -1px;
  padding: 3px; background: var(--workbench-accent);
  border-radius: var(--workbench-radius-compact) 0 var(--workbench-radius-control) 0;
}
.wb-check svg { color: var(--yh-surface); width: 11px; height: 11px; }
.wb-option:has(input:checked) .wb-check { display: block; }

/* 分段控件 */
.wb-segmented { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.wb-segmented .wb-option { justify-content: center; min-height: 46px; padding: 7px 10px; }
.wb-segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* 参数按钮组 */
.wb-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 6px; width: 100%;
}
.wb-params button {
  width: 100%; min-width: 0; min-height: 42px; padding: 5px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-compact);
  background: var(--yh-surface); color: var(--yh-muted);
  cursor: pointer; transition: .15s;
}
.wb-params button:hover:not(:disabled) { border-color: var(--workbench-border); }
.wb-params button[aria-checked=true] {
  border-color: var(--workbench-border);
  color: var(--workbench-accent);
  background: var(--workbench-tint);
}
.wb-params button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 素材区 ---------- */
.wb-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 22px; }
.wb-material-grid { display: grid; gap: 8px; }
.wb-field {
  position: relative; z-index: 1;
  min-height: 210px; padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--yh-muted) 48%, var(--yh-line));
  border-radius: var(--workbench-radius-control);
  background: color-mix(in srgb, var(--yh-surface) 98%, var(--workbench-accent));
}
.wb-field[data-fixed-height=true] { height: 248px; min-height: 248px; }
/* 两个投放框之间的连接线 */
.wb-material-grid .wb-field:not(:last-child)::after {
  content: ''; position: absolute; z-index: -1;
  top: 50%; left: 100%;
  width: 13px; height: 1px;
  background: color-mix(in srgb, var(--workbench-accent) 65%, transparent);
}
.wb-upload { display: grid; grid-template-rows: 18px auto auto auto; align-content: start; gap: 7px; }
.wb-upload > label { font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--yh-ink); }
.wb-upload > :nth-child(2) { align-content: start; min-height: 140px; }

/* ---------- 提示 / 通用 ---------- */
.wb-tips {
  flex: 1; padding: 16px 18px;
  background: var(--yh-surface);
  border: 1px solid var(--yh-line);
  border-radius: var(--workbench-radius-panel);
  box-shadow: 0 2px 7px #25406608;
}
.wb-tips h2 { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--yh-ink); }
.wb-tips h2 svg { color: var(--workbench-accent); width: 15px; height: 15px; }
.wb-tips ul { list-style: outside; padding-left: 15px; color: var(--yh-muted); font-size: 12px; line-height: 1.85; }

.wb-field-label { white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--yh-ink); }
.wb-hint { color: var(--yh-muted); font-size: 11px; line-height: 1.65; }

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
  .wb-shell { grid-template-columns: minmax(0,1fr) 300px; gap: 9px; padding: 8px; }
}
@media (max-width: 1100px) {
  .wb-shell { grid-template-columns: minmax(0,1fr) 280px; }
  .wb-header { grid-template-columns: 190px 1px minmax(0,1fr); gap: 14px; padding-inline: 14px; }
}
@media (max-width: 900px) {
  .wb-shell {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto;
    height: auto; min-height: 0; margin-bottom: 130px;
  }
  .wb-steps, .wb-form, .wb-sidebar { grid-area: auto/1; }
  .wb-steps { gap: 8px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
  .wb-steps button { flex-shrink: 0; gap: 6px; min-width: 150px; }
  .wb-steps button:not(:last-child)::after { display: none; }
  .wb-header { grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 8px 12px; }
  .wb-header-divider { display: none; }
  .wb-footer {
    position: fixed; left: 18px; right: 18px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 20; flex-wrap: wrap;
    box-shadow: 0 -4px 24px #20386214;
  }
  .wb-cols-2, .wb-material-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .wb-material-grid .wb-field::after { display: none; }
  .wb-page { padding: 8px 12px 0; }
}
@media (max-width: 640px) {
  .wb-segmented { grid-template-columns: 1fr; }
  .wb-footer { gap: 8px; padding: 10px; }
  .wb-footer-actions { gap: 10px; width: 100%; }
  .wb-submit { flex: 1; min-width: 0; }
  .wb-reset { min-width: 80px; }
}

/* ============================================================
   ★ 任务进度（对齐对标站 task 展示）
   ============================================================ */
.wb-task-progress { display: flex; flex-direction: column; gap: 7px; }
.wb-task-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--yh-muted);
}
.wb-task-stage { color: var(--workbench-accent); font-weight: 600; }
.wb-task-pct { font-variant-numeric: tabular-nums; }
.wb-task-err {
  font-size: 12px; line-height: 1.6;
  color: #ff8a8a;
  background: rgba(255,92,92,.08);
  border: 1px solid rgba(255,92,92,.24);
  border-radius: var(--workbench-radius-compact);
  padding: 7px 10px;
}

/* 状态徽章（对标站：处理中 / 已完成 / 生成失败 / 待解锁） */
.wb-state {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.wb-state.idle       { background: rgba(255,255,255,.05); color: var(--yh-muted); border-color: var(--yh-line); }
.wb-state.processing { background: rgba(32,200,255,.1);  color: var(--workbench-accent); border-color: var(--workbench-border); }
.wb-state.success    { background: rgba(36,214,200,.12); color: var(--yh-cocoa); border-color: rgba(36,214,200,.34); }
.wb-state.failed     { background: rgba(255,92,92,.1);   color: #ff8a8a; border-color: rgba(255,92,92,.3); }
.wb-state svg { width: 11px; height: 11px; }

/* 转圈动画（处理中） */
@keyframes wbSpin { to { transform: rotate(360deg); } }
.wb-spin { animation: wbSpin .9s linear infinite; }

/* ============================================================
   ★ 双路分析卡片（左：对标视频 / 右：新创作素材）
   ============================================================ */
.wb-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) { .wb-dual { grid-template-columns: minmax(0,1fr); } }

.wb-analysis-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.wb-analysis-head h3 { font-size: 14px; font-weight: 650; color: var(--yh-ink); }
.wb-analysis-head .wb-badge-opt {
  font-size: 10px; color: var(--yh-muted);
  border: 1px solid var(--yh-line); border-radius: 999px; padding: 1px 8px;
}

/* 分析结果字段（对标站 17 个字段，逐条展示） */
.wb-analysis-fields { display: flex; flex-direction: column; gap: 0; }
.wb-analysis-row {
  display: grid; grid-template-columns: 132px minmax(0,1fr);
  gap: 12px; padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,.055);
  font-size: 12.5px; line-height: 1.65;
}
.wb-analysis-row:last-child { border-bottom: none; }
.wb-analysis-row dt { color: var(--yh-muted); font-weight: 500; }
.wb-analysis-row dd { color: var(--yh-ink); }
@media (max-width: 640px) {
  .wb-analysis-row { grid-template-columns: minmax(0,1fr); gap: 2px; }
}

/* 分析结果里的「展示逻辑」箭头链 */
.wb-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wb-chain-item {
  background: rgba(32,200,255,.08);
  border: 1px solid rgba(32,200,255,.2);
  color: var(--workbench-accent);
  border-radius: 6px; padding: 1px 7px; font-size: 11.5px;
}
.wb-chain-arrow { color: var(--yh-muted); font-size: 11px; }

/* 一致性约束（分号分隔 → 逐条列表） */
.wb-constraints { display: flex; flex-direction: column; gap: 4px; }
.wb-constraints li {
  list-style: none; padding-left: 14px; position: relative;
  font-size: 12.5px; color: var(--yh-ink);
}
.wb-constraints li::before {
  content: '·'; position: absolute; left: 4px;
  color: var(--workbench-accent); font-weight: 700;
}

/* ============================================================
   ★ 步骤条三态（当前 / 已完成 / 待解锁）—— 对齐对标站文案
   ============================================================ */
.wb-steps button .wb-step-sub {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--yh-muted); margin-top: 1px;
}
.wb-steps button[aria-current] .wb-step-sub { color: var(--workbench-accent); }
.wb-steps button.done .wb-step-sub { color: var(--yh-cocoa); }
.wb-steps button:disabled { cursor: not-allowed; opacity: .5; }

/* ============================================================
   ★ 按钮式选项卡（区别于 wb-option 的原生 input 版）
   —— 比例选择、清晰度选择等用 <button> 的场合
   ============================================================ */
.wb-option.on,
.wb-option[aria-checked=true] {
  border-color: var(--workbench-border);
  background: var(--workbench-tint);
  box-shadow: inset 0 0 0 .5px var(--workbench-border);
}
.wb-option.on strong,
.wb-option[aria-checked=true] strong { color: var(--workbench-accent); }
.wb-option.on .wb-check { display: block; }
.wb-option .wb-check svg { color: var(--yh-surface); }

/* 竖排选项卡（比例选择：标题 + 副标题） */
.wb-option-col {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 10px 6px; text-align: center;
  min-height: 62px; justify-content: center;
}

/* 参考图上传按钮 */
.wb-ref-add {
  width: 76px; height: 76px; border-radius: 10px;
  border: 1px dashed var(--yh-line);
  display: grid; place-items: center;
  color: var(--yh-muted); font-size: 22px; cursor: pointer;
  background: var(--yh-bg);
  transition: border-color .18s, color .18s;
}
.wb-ref-add:hover { border-color: var(--workbench-border); color: var(--workbench-accent); }

/* ============================================================
   站点页脚（对齐对标站：备案 + 9 个法务链接）
   对标站样式：深灰底 #252b35，白色小字，链接竖线分隔
   ============================================================ */
.footer {
  margin-top: 48px; padding: 20px 24px 26px;
  background: #252b35; color: rgba(255,255,255,.82);
  font-size: 12px; text-align: center;
  border-top: 1px solid var(--line);
}
body.has-preview .footer { margin-bottom: 0; }
.footer .f-line {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px; line-height: 2;
}
.footer .f-line + .f-line { margin-top: 4px; }
.footer .f-link { color: rgba(255,255,255,.82); text-decoration: none; white-space: nowrap; }
.footer .f-link:hover { color: #fff; text-decoration: underline; }
.footer .f-sep { color: rgba(255,255,255,.28); }
.footer .f-mail { color: rgba(255,255,255,.55); }

/* ============================================================
   法务文档排版（9 个合规页共用）
   ============================================================ */
.legal-doc {
  max-width: 880px; margin: 0 auto; padding: 32px 4px 8px;
  color: var(--txt1); font-size: 14px; line-height: 1.95;
}
.legal-title {
  font-size: 26px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: .4px;
}
.legal-h2 {
  font-size: 16px; font-weight: 700; margin: 26px 0 8px;
  color: var(--txt1); padding-left: 11px;
  border-left: 3px solid var(--cyan);
}
.legal-h3 { font-size: 14.5px; font-weight: 700; margin: 18px 0 6px; color: var(--txt1); }
.legal-p { margin: 0 0 10px; color: var(--txt2); }
.legal-li {
  margin: 0 0 8px; padding-left: 20px; color: var(--txt2);
  position: relative;
}
.legal-li::before {
  content: '•'; position: absolute; left: 6px;
  color: var(--cyan); font-weight: 700;
}

/* ============================================================
   通用下拉菜单（模型 / 规格选择）
   之前首页的「SD-2.0-Mini版 ▾」是死按钮，点击无任何反应；
   这里给它真实的弹层。
   ============================================================ */
.pk-menu {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.7);
  max-height: 340px; overflow: auto;
}
.pk-group {
  font-size: 11px; color: var(--txt3); padding: 8px 10px 4px;
  letter-spacing: .5px;
}
.pk-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--txt1);
}
.pk-item:hover { background: rgba(255,255,255,.06); }
.pk-item.on { background: rgba(0,224,192,.10); color: var(--cyan); }
.pk-item .pk-label { flex: 1; }
.pk-item .pk-sub { font-size: 11px; color: var(--txt3); }
.pk-item .pk-check { color: var(--cyan); font-weight: 700; }

/* ============================================================
   登录 / 注册
   对齐对标站登录弹窗：两 Tab + 算术验证码 + 三条合规勾选
   ============================================================ */
.login-wrap {
  min-height: calc(100vh - 160px); display: grid; place-items: center;
  padding: 40px 20px;
}
.login-card {
  width: 100%; max-width: 420px; padding: 26px 24px 22px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 26px 70px -20px rgba(0,0,0,.7);
}
.lg-head { text-align: center; margin-bottom: 18px; }
.lg-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 20px; font-weight: 700;
}
.lg-mark { font-size: 22px; }
.lg-sub { font-size: 12px; color: var(--txt3); margin-top: 4px; }
.lg-welcome { font-size: 15px; font-weight: 700; margin-top: 14px; }
.lg-hint { font-size: 12px; color: var(--txt3); margin-top: 3px; }

.lg-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px; margin-bottom: 16px;
}
.lg-tab {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; border-radius: 7px; border: none; background: none;
  color: var(--txt2); font-size: 13px; cursor: pointer; font-weight: 600;
}
.lg-tab.on { background: var(--cyan); color: #05201C; }

.lg-form { display: flex; flex-direction: column; }
.lg-label { font-size: 12.5px; color: var(--txt2); margin: 10px 0 6px; font-weight: 600; }
.lg-info { color: var(--txt3); cursor: help; }
.lg-input {
  width: 100%; padding: 10px 12px; font-size: 13.5px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; color: var(--txt1); outline: none;
}
.lg-input:focus { border-color: var(--cyan); }
.lg-row { display: flex; gap: 8px; align-items: center; }
.lg-captcha {
  flex: 0 0 108px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, #EEF2F7, #DCE4EE);
  color: #1B2530; border-radius: 9px; font-weight: 700; font-size: 15px;
  cursor: pointer; user-select: none; letter-spacing: 1px;
}
.lg-send {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; color: var(--txt1); font-size: 13px; cursor: pointer;
}
.lg-send:hover { border-color: var(--cyan); }

.lg-agree { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.lg-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--txt3); line-height: 1.6; cursor: pointer;
}
.lg-check input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--cyan); }
.lg-check-last { align-items: center; }
.lg-link { color: var(--cyan); text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

.lg-submit {
  margin-top: 16px; padding: 12px; width: 100%;
  background: var(--cyan); color: #05201C; border: none;
  border-radius: 10px; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.lg-submit:disabled { background: var(--line); color: var(--txt3); cursor: not-allowed; }

/* ============================================================
   AI 功能模块页（/ai-image /ai-media /ai-video）
   配置驱动：卡片来自 /api/feature-definitions
   ============================================================ */
.ai-grid { margin-top: 8px; }
.ai-sec {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 700; color: var(--txt1);
  margin: 30px 0 16px; padding-left: 0;
}
.ai-sec:first-child { margin-top: 8px; }
.ai-sec::before {
  content: ''; width: 4px; height: 22px; border-radius: 2px; flex: none;
  background: var(--yh-dark-blue-button-gradient);
}
.ai-cards {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.ai-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 15px 12px;
  cursor: pointer; transition: border-color .18s, transform .18s;
  display: flex; flex-direction: column; gap: 7px;
}
.ai-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.ai-card-top { display: flex; align-items: center; justify-content: space-between; }
.ai-ico { font-size: 19px; }
.ai-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); color: var(--txt3);
}
.ai-badge.ok { background: rgba(0,224,192,.13); color: var(--cyan); }
.ai-name { font-size: 14.5px; font-weight: 700; color: var(--txt1); }
.ai-desc { font-size: 12px; color: var(--txt2); line-height: 1.65; min-height: 32px; }
.ai-key { font-size: 10.5px; color: var(--txt3); font-family: ui-monospace, monospace; }

/* ============================================================
   AI 功能页（参数化工具页）
   ============================================================ */
.tool-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin-top: 18px;
}
.tf-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tf-row:last-of-type { border-bottom: none; }
.tf-label { flex: 0 0 84px; font-size: 12.5px; color: var(--txt2); font-weight: 600; padding-top: 8px; }
.tf-body { flex: 1; min-width: 0; }
.tf-refs { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-ref, .tf-ref-add {
  width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  border: 1px dashed var(--line); display: grid; place-items: center;
  background: var(--bg); cursor: pointer; color: var(--txt3); font-size: 12px;
}
.tf-ref { border-style: solid; }
.tf-ref img, .tf-ref video { width: 100%; height: 100%; object-fit: cover; }
.tf-ref-add:hover { border-color: var(--cyan); color: var(--cyan); }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--txt2); cursor: pointer;
}
.tf-chip.on { background: rgba(0,224,192,.13); border-color: var(--cyan); color: var(--cyan); font-weight: 600; }
.tf-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.tf-price { font-size: 13px; color: var(--txt2); }
.tf-out { margin-top: 16px; }
.tf-status { font-size: 13px; color: var(--txt2); padding: 12px 0; }
.tf-status.ok { color: var(--cyan); font-weight: 600; }
.tf-status.err { color: #FF6B6B; }
.tf-imgs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.tf-imgs img { width: 180px; border-radius: 10px; border: 1px solid var(--line); }

/* ============================================================
   账号设置页（对齐对标站 /settings）
   ============================================================ */
.st-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; margin-top: 16px;
}
.st-title {
  font-size: 14.5px; font-weight: 700; color: var(--txt1);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.st-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--cyan);
}
.st-body { padding-top: 4px; }
.st-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.st-row:last-child { border-bottom: none; }
.st-label { flex: 0 0 106px; font-size: 13px; color: var(--txt2); font-weight: 600; padding-top: 10px; }
.st-ctrl { flex: 1; min-width: 0; }
.st-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--txt1); cursor: pointer; padding-top: 10px;
}
.st-check input { accent-color: var(--cyan); }
.st-actions {
  display: flex; gap: 10px; padding-top: 14px;
  border-top: 1px solid var(--line); margin-top: 10px;
}

/* ============================================================
   导航通知菜单（替换原先带写死红点的假 🔔 控件）
   ============================================================ */
.nt-menu {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; min-width: 264px; max-width: 320px;
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.7);
}
.nt-empty { padding: 18px 12px; text-align: center; font-size: 12.5px; color: var(--txt3); }
.nt-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.nt-item:hover { background: rgba(255,255,255,.06); }
.nt-dot {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); margin-top: 6px;
}
.nt-dot.ok { background: #3DD68C; }
.nt-dot.err { background: #FF6B6B; }
.nt-title { font-size: 13px; color: var(--txt1); }
.nt-sub { font-size: 11px; color: var(--txt3); margin-top: 2px; }

/* 首页分类下拉（替换原先点了没反应的裸 div「全部 ▾」） */
.cat-sel {
  font-size: 13px; color: var(--txt2); background: none; border: none;
  cursor: pointer; padding: 4px 6px; border-radius: 6px; white-space: nowrap;
}
.cat-sel:hover { background: rgba(255,255,255,.06); color: var(--txt1); }

/* ============================================================
   解决方案列表页 + 详情页（对齐对标站 /solutions 及 21 个详情页）
   ============================================================ */
.sol-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sol-cat {
  display: inline-block; font-size: 11.5px; color: var(--cyan);
  background: rgba(0,224,192,.10); border: 1px solid rgba(0,224,192,.28);
  padding: 3px 11px; border-radius: 999px; margin-bottom: 12px;
}
.sol-h1 { font-size: 27px; font-weight: 700; margin: 0 0 10px; letter-spacing: .3px; }
.sol-desc { font-size: 13.5px; color: var(--txt2); line-height: 1.9; max-width: 760px; }
.sol-h2 {
  font-size: 16px; font-weight: 700; margin: 24px 0 12px;
  padding-left: 11px; border-left: 3px solid var(--cyan);
}
.sol-note { font-size: 12.5px; color: var(--txt3); margin: 0 0 14px; }
.sol-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.sol-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 820px) { .sol-cols { grid-template-columns: 1fr; } }
.sol-card, .sol-sec {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.sol-card { margin-top: 0; }
.sol-sec { margin-top: 16px; }
.sol-card .sol-h2, .sol-sec .sol-h2:first-child { margin-top: 0; }
.sol-list { display: flex; flex-direction: column; gap: 10px; }
.sol-li {
  font-size: 13px; color: var(--txt2); line-height: 1.8;
  padding-left: 18px; position: relative;
}
.sol-li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--cyan); font-weight: 700;
}

.sol-flow { display: flex; flex-direction: column; gap: 14px; }
.sol-step { display: flex; gap: 14px; align-items: flex-start; }
.sol-num {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: rgba(0,224,192,.10); color: var(--cyan);
  border: 1px solid rgba(0,224,192,.28);
}
.sol-step-t { font-size: 13.5px; font-weight: 700; color: var(--txt1); margin-bottom: 3px; }
.sol-step-d { font-size: 12.5px; color: var(--txt2); line-height: 1.8; }

.sol-faq { display: flex; flex-direction: column; gap: 14px; }
.sol-qa { border-left: 2px solid var(--line); padding-left: 14px; }
.sol-q { font-size: 13.5px; font-weight: 700; color: var(--txt1); margin-bottom: 5px; }
.sol-a { font-size: 12.5px; color: var(--txt2); line-height: 1.85; }

.sol-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.sol-item {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 17px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s, transform .18s;
}
.sol-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.sol-item-body { flex: 1; }
.sol-item-t { font-size: 14.5px; font-weight: 700; margin: 0 0 7px; color: var(--txt1); }
.sol-item-d { font-size: 12px; color: var(--txt2); line-height: 1.75; }
.sol-item-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sol-link {
  font-size: 12.5px; color: var(--cyan); text-decoration: none; font-weight: 600;
}
.sol-link:hover { text-decoration: underline; }
.sol-link.ghost { color: var(--txt2); font-weight: 500; }

/* ============================================================
   会员与定价页（/pricing，对齐对标站同名页）
   ============================================================ */
.pr-current {
  display: flex; align-items: center; gap: 10px;
  background: rgba(245,196,81,.10); border: 1px solid rgba(245,196,81,.3);
  color: #F5C451; border-radius: 10px; padding: 12px 16px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.pr-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}
.pr-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px; position: relative;
  display: flex; flex-direction: column;
}
.pr-card.rec { border-color: var(--cyan); box-shadow: 0 18px 44px -18px rgba(0,224,192,.4); }
.pr-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #05201C; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.pr-name { font-size: 15px; font-weight: 700; }
.pr-days { font-size: 12px; color: var(--txt3); margin-top: 3px; }
.pr-price { display: flex; align-items: baseline; gap: 3px; margin: 14px 0 4px; color: var(--cyan); }
.pr-cur { font-size: 15px; font-weight: 700; }
.pr-num { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.pr-origin { font-size: 13px; color: var(--txt3); text-decoration: line-through; margin-left: 6px; }
.pr-per { font-size: 11.5px; color: var(--txt3); }
.pr-perks { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 18px; flex: 1; }
.pr-perk {
  font-size: 12.5px; color: var(--txt2); padding-left: 18px; position: relative;
}
.pr-perk::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ============================================================
   服务计费标准表（/pricing，对齐对标站真实结构）
   ============================================================ */
.pr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; }
.pr-tab {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line);
  color: var(--txt2); font-size: 12.5px;
}
.pr-tab:hover { border-color: var(--cyan); color: var(--txt1); }
.pr-tab.on { background: rgba(0,224,192,.13); border-color: var(--cyan); color: var(--cyan); font-weight: 600; }

.pr-table-wrap {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.pr-tr {
  display: grid;
  grid-template-columns: 1.7fr 1.5fr .8fr .8fr .9fr .9fr;
  gap: 10px; padding: 11px 16px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 12.5px; color: var(--txt2);
}
.pr-tr:last-child { border-bottom: none; }
.pr-tr:not(.pr-th):hover { background: rgba(255,255,255,.03); }
.pr-th {
  background: rgba(255,255,255,.03); font-weight: 700;
  color: var(--txt3); font-size: 11.5px; letter-spacing: .4px;
}
.pr-td { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--txt1); }
.pr-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 18px;
}
@media (max-width: 860px) {
  .pr-tr { grid-template-columns: 1.5fr 1fr .6fr .7fr; }
  .pr-td.c3, .pr-td.c4 { display: none; }
}

/* ============================================================
   AI 模块大卡（对齐对标站 /ai-image，按截图复刻）
   左宽预览区（带主图 + 缩略图 + 光晕 + 放大按钮）+ 右窄文字区
   ============================================================ */
.ai-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1180px) { .ai-cards { grid-template-columns: 1fr; } }

.ai-big {
  display: grid; grid-template-columns: 2fr 1fr;   /* 对标站实测 408 : 204 */
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  min-height: 260px;
}
.ai-big:hover {
  border-color: rgba(115,87,255,.55);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -18px rgba(115,87,255,.45);
}

/* ---------- 左：预览区 ---------- */
.ai-big-prev {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;   /* 对标站 408×260 ≈ 4:3 */
  background: linear-gradient(135deg, #2A2350 0%, #3A2A63 45%, #4A2E6E 100%);
  border-right: 1px solid var(--line);
  display: grid; place-items: center; min-height: 168px;
}
/* z-index 分层：海报(0) → 暗角(1) → 标题/放大按钮(2) */
.ai-prev-glow { display: none; }   /* 16:9 海报自带光效，不再叠 CSS 光晕 */

.ai-prev-imgs { position: absolute; inset: 0; z-index: 0; }
.ai-prev-main {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.ai-big:hover .ai-prev-main { transform: scale(1.05); }
.ai-prev-thumb { display: none; }

/* 海报上压一层暗角，保证左上角标题可读 */
.ai-big-prev::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(14,8,28,.82) 0%, rgba(14,8,28,.34) 46%, rgba(14,8,28,.10) 100%);
}

.ai-prev-title {
  position: absolute; top: 13px; left: 15px; right: 48px; z-index: 2;
  font-size: 16px; font-weight: 800; letter-spacing: .02em;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ai-prev-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}

/* ---------- 右：文字区 ---------- */
.ai-big-body {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 7px;
  min-width: 0;
}
.ai-big-tag { font-size: 10.5px; color: var(--txt3); letter-spacing: .3px; }
.ai-big-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ai-big-name { font-size: 15px; font-weight: 700; color: var(--txt1); }
.ai-vip {
  font-size: 10px; font-weight: 700; color: #F5C451;
  background: rgba(245,196,81,.13); border: 1px solid rgba(245,196,81,.34);
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.ai-big-desc { font-size: 12.5px; color: var(--txt2); line-height: 1.7; flex: 1; }
.ai-big-cta {
  align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 2px; padding: 9px 14px; border: none; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit;
  background: var(--yh-dark-blue-button-gradient);
  color: var(--yh-dark-blue-button-foreground);
  box-shadow: var(--yh-dark-blue-button-shadow);
  transition: box-shadow .18s, filter .18s;
}
.ai-big:hover .ai-big-cta { box-shadow: var(--yh-dark-blue-button-shadow-hover); filter: brightness(1.04); }

/* ============================================================
   首页公告条（替换原先居中的 Hero 大标题，对齐对标站）
   ============================================================ */
.hm-notice {
  display: flex; align-items: center; gap: 10px;
  background: rgba(32,200,255,.07); border: 1px solid rgba(32,200,255,.22);
  border-radius: 10px; padding: 9px 14px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--workbench-accent);
}
.hm-notice-ico { font-size: 14px; }
.hm-notice-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-notice-go {
  background: rgba(32,200,255,.14); border: 1px solid rgba(32,200,255,.3);
  color: var(--workbench-accent); border-radius: 999px;
  padding: 3px 12px; font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.hm-notice-go:hover { background: rgba(32,200,255,.22); }

/* 案例卡片：视频悬停播放需要定位上下文 */
.masonry .item { position: relative; overflow: hidden; }
.masonry .item img { width: 100%; display: block; }

/* ============================================================
   案例详情弹窗（对齐对标站：左播放器 + 右信息面板）
   ============================================================ */
.cd-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
@media (max-width: 860px) { .cd-wrap { grid-template-columns: 1fr; } }

.cd-left { position: relative; }
.cd-left .vbox {
  width: 100%; aspect-ratio: 9/16; max-height: 62vh;
  background: #000; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
}
.cd-left .vbox video { width: 100%; height: 100%; object-fit: contain; }
.cd-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px;
  padding: 3px 10px; border-radius: 6px; backdrop-filter: blur(6px);
}

.cd-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cd-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.cd-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--workbench-accent, #20c8ff); color: #04231E;
}
.cd-tag.ghost { background: rgba(255,255,255,.08); color: var(--txt2); font-weight: 500; }

.cd-flow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px;
  font-size: 13px; font-weight: 600; color: var(--txt1);
}
.cd-refresh { color: var(--txt3); cursor: pointer; font-size: 14px; }
.cd-refresh:hover { color: var(--cyan); }

.cd-sec { display: flex; flex-direction: column; gap: 9px; }
.cd-sec-t { font-size: 12px; color: var(--txt2); font-weight: 600; }
.cd-mats { display: flex; gap: 10px; }
.cd-mat { flex: 0 0 84px; }
.cd-mat-t { font-size: 10.5px; color: var(--txt3); margin-bottom: 5px; }
.cd-mat img, .cd-mat video {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: #000;
}

.cd-kv {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px;
  max-height: 210px; overflow: auto;
}
.cd-kv-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.cd-kv-row:last-child { border-bottom: none; }
.cd-kv-row > span { color: var(--txt3); flex: 0 0 auto; }
.cd-kv-row > b { color: var(--txt1); text-align: right; word-break: break-all; font-weight: 600; }

.cd-cta { min-width: 130px; justify-content: center; }

/* 瀑布流卡片：窄列时视频缩略图不要被压扁 */
.masonry .item img { width: 100%; height: auto; display: block; }

/* 对标视频缩略图：显示首帧而不是黑块 */
.cd-mat-v {
  width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.cd-mat-v video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   图片创作页 —— 两栏布局（对齐对标站 /image-generate）
   实测对标站：左栏 329px、卡片 236px、缩略图 183px（3:4）
   我们改前：左栏 380px、卡片 309px、缩略图 412px（大了 2.25 倍）
   ============================================================ */
/* 左栏宽度对齐对标站实测 420px（含 20px 内边距 → 380px 可用）
   两列各约 182px，与对标站 181px 一致，模型名不会被截断 */
.img-2col {
  display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px;
  align-items: start;
}
.img-2col.single { grid-template-columns: 1fr; }
@media (max-width: 1180px) { .img-2col { grid-template-columns: 1fr; } }

/* ---------- 左栏：参数面板 ---------- */
.img-col-left {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
  position: sticky; top: 74px;
}
.img-col-left:empty { display: none; }
.img-col-left .panel { background: none; border: none; padding: 0; margin: 0; }
.img-col-left .panel-h { padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.img-col-left .panel-b { padding: 0; }
.img-col-left .field { margin-bottom: 14px; }
.img-col-left .field:last-child { margin-bottom: 0; }
.img-col-left .field-label { font-size: 12.5px; margin-bottom: 6px; display: block; }
.img-col-left .input, .img-col-left select.input, .img-col-left textarea.input {
  width: 100%; font-size: 13px; padding: 9px 11px; border-radius: 9px;
}
/* 提示词区收窄（对标站约 120px，我们原 184px） */
.img-col-left textarea.input { min-height: 62px; max-height: 62px; resize: none; }
.img-col-left .counter { margin-top: 4px; }
/* 参考图区收窄（对标站约 150px；我们原 212 → 现 193，再压到 ~150） */
.img-col-left .img-ref-drop { padding: 14px 10px; }
/* 字段间距收一点（对标站更紧凑） */
.img-col-left .field { margin-bottom: 12px; }
.img-col-left .img-est { margin-top: 12px; padding: 9px 11px; }
.img-col-left .img-actions { margin-top: 12px; }
/* 两栏等高的观感：右栏案例不足时也撑满 */
.img-col-right { display: flex; flex-direction: column; }
.img-case { flex: 1; }

/* ---------- 右栏：案例参考 ---------- */
.img-col-right { min-width: 0; }
.img-col-right:empty { display: none; }
.img-case {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px 14px;
}
.img-case-head {
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.img-case-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 1360px) { .img-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.img-case-card { display: flex; flex-direction: column; gap: 7px; }
/* 缩略图 3:4 且限高 —— 对标站约 236×183 */
.img-case-thumb {
  position: relative; aspect-ratio: 4 / 3; max-height: 186px;
  border-radius: 10px; overflow: hidden;
  background: #14141C; border: 1px solid var(--line);
}
/* ★ contain 而非 cover：对标站实测 object-fit: contain
   （它的参考图 941×1672 竖图在 276×177 框里完整显示，不裁切；
     用 cover 会把竖图拦腰截断，看不到全貌）*/
.img-case-thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .3s;
}
.img-case-card:hover .img-case-thumb img { transform: scale(1.04); }
.img-case-badge {
  position: absolute; top: 7px; left: 7px;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.55);
  padding: 2px 7px; border-radius: 5px; backdrop-filter: blur(4px);
}
.img-case-name {
  font-size: 12px; color: var(--txt2); line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 1px;
}
.img-case-use {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  background: var(--yh-dark-blue-button-gradient);
  color: var(--yh-dark-blue-button-foreground);
  box-shadow: var(--yh-dark-blue-button-shadow);
}
.img-case-use:hover { box-shadow: var(--yh-dark-blue-button-shadow-hover); filter: brightness(1.05); }

.img-case-skel {
  aspect-ratio: 4/3; max-height: 186px; border-radius: 10px;
  background: linear-gradient(100deg, #171722 30%, #1F1F2C 50%, #171722 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.img-case-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 16px;
}
.img-pg {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--txt2);
  font-size: 13px; display: grid; place-items: center;
}
.img-pg:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.img-pg:disabled { opacity: .35; cursor: not-allowed; }
.img-pg-info { font-size: 12px; color: var(--txt3); }

/* ============================================================
   参考图上传区 —— 对齐对标站真实交互
   上面两个是「来源切换 Tab」（选中态青色边框），不触发上传；
   下面虚线大框才是点击上传区（内含 hidden input）。
   对标站实测：Tab 189×40 / 大框 378×168 / border:dashed
   ============================================================ */
.img-ref-tabs {
  display: flex; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px;
  margin-bottom: 8px;
}
.img-ref-tab {
  flex: 1; min-height: 38px; display: flex; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; font-family: inherit; font-size: 12.5px;
  background: var(--bg); color: var(--txt2);
  border: 1px solid transparent; border-radius: 8px; margin: -1px;
  transition: border-color .15s, color .15s;
}
.img-ref-tab:hover { color: var(--txt1); }
/* 选中态：青色描边（对标站 rgb(36,214,200)） */
.img-ref-tab.on {
  border-color: rgb(36, 214, 200); color: var(--cyan); font-weight: 600;
  background: var(--bg2);
}

.img-ref-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 18px 12px; cursor: pointer; text-align: center;
  background: var(--bg); transition: border-color .18s, background .18s;
}
.img-ref-drop:hover { border-color: var(--cyan); background: rgba(36,214,200,.04); }
.img-ref-ico { font-size: 18px; margin-bottom: 6px; color: var(--txt3); }
.img-ref-t1 { font-size: 12.5px; font-weight: 500; color: var(--txt1); }
.img-ref-t2 { font-size: 11px; color: var(--txt3); margin-top: 4px; line-height: 1.5; }
.img-ref-t3 { font-size: 11px; color: var(--txt3); margin-top: 3px; }

/* 预估积分行 */
.img-est {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; color: var(--txt2);
}

/* 按钮行：主按钮在左、重置在右，与对标站一致 */
.img-actions {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px;
}
.img-actions .btn-primary { justify-content: center; }

/* 参考图缩略图（上传后显示） */
.img-ref-thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px;
}
.img-ref-del {
  margin-top: 8px; padding: 4px 12px; font-size: 11.5px; cursor: pointer;
  background: none; border: 1px solid rgba(255,107,107,.4); color: #FF6B6B;
  border-radius: 999px; font-family: inherit;
}
.img-ref-del:hover { background: rgba(255,107,107,.1); }

/* ============================================================
   参考素材上传组件（全站统一，buildRefUploader）
   ------------------------------------------------------------
   ★ 数值全部取自对标站 CDP 实测（/image-generate）：
     Tab 容器   378×41，仅下边框 1px rgba(20,120,255,.22)
     Tab 按钮   189×40，选中态「仅下边框 2px 青色 rgb(36,214,200)」，直角
               未选中文字 rgba(238,245,255,.68)，选中文字紫 rgb(115,87,255)
     Tab 字号   14px / 500，padding 8px 12px，gap 6px
     大框       378×168，border 2px dashed，radius 12px，padding 24px
     图标       24×24，紫色 rgb(115,87,255)
     标题       14px/500 rgba(238,245,255,.86)
     副文字     12px/400 rgba(238,245,255,.68)
   ============================================================ */
.ref-up { display: flex; flex-direction: column; }

/* Tab 容器：只有下边框，直角 */
.ref-up-tabs {
  display: flex; min-width: 0;
  border-bottom: 1px solid rgba(20, 120, 255, .22);
  /* 防止 flex 拉伸导致 Tab 被撑高（实测 40px 才是对的） */
  align-items: stretch; height: 41px; flex: none;
}
/* Tab 按钮：直角，选中态仅下边框 2px 青色 */
.ref-up-tab {
  flex: 1; height: 41px; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500; line-height: 1;
  background: none; border: none; border-bottom: 2px solid transparent;
  border-radius: 0; color: rgba(238, 245, 255, .68);
  transition: color .15s, border-color .15s;
}
.ref-up-tab:hover { color: rgba(238, 245, 255, .88); }
/* Tab 里的图标必须限死尺寸，否则 SVG 会撑满容器 */
.ref-up-tab svg { width: 16px; height: 16px; flex: none; display: block; }
.ref-up-tab.on {
  border-bottom-color: rgb(36, 214, 200);
  color: rgb(115, 87, 255);
}

/* 大框：2px 虚线，radius 12，padding 24 */
.ref-up-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--line); border-radius: 12px;
  padding: 24px; margin-top: 12px; min-height: 168px;
  cursor: pointer; text-align: center; background: none;
  transition: border-color .18s, background .18s;
}
.ref-up-zone:hover { border-color: rgba(115, 87, 255, .55); background: rgba(115,87,255,.04); }
.ref-up-zone.has { padding: 16px; min-height: 0; }

/* 图标：24×24 紫色（用 SVG，不用 emoji） */
.ref-up-ico {
  width: 24px; height: 24px; margin-bottom: 10px;
  color: rgb(115, 87, 255); display: grid; place-items: center;
}
.ref-up-ico svg { width: 24px; height: 24px; display: block; }

.ref-up-t1 { font-size: 14px; font-weight: 500; color: rgba(238, 245, 255, .86); line-height: 1.45; }
.ref-up-t2 { font-size: 12px; color: rgba(238, 245, 255, .68); margin-top: 4px; line-height: 1.5; }
.ref-up-t3 { font-size: 12px; color: rgba(238, 245, 255, .68); margin-top: 4px; }

.ref-up-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.ref-up-thumb { position: relative; width: 72px; height: 72px; }
.ref-up-thumb img, .ref-up-thumb video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
.ref-up-x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: #ff5c5c; color: #fff; border: none;
  font-size: 12px; line-height: 1; cursor: pointer;
}

/* AI 功能页表单：字段样式与 /image 一致 */
.tool-card { max-width: 1080px; }
.tf-field { margin-bottom: 14px; }
.tf-field:last-child { margin-bottom: 0; }
.tf-field .field-label { font-size: 12.5px; margin-bottom: 6px; display: block; }
.tf-field select.input, .tf-field textarea.input { width: 100%; font-size: 13px; padding: 9px 11px; border-radius: 9px; }
.tool-card > .tf-row:first-child { display: block; padding: 0 0 14px; border-bottom: none; }
.tool-card > .tf-row:first-child .field-label { margin-bottom: 6px; }

/* 上传组件宽度：与对标站的 378px 量级一致（不随容器拉满） */
.ref-up { max-width: 420px; }

/* ============================================================
   表单字段统一（对齐对标站 CDP 实测值）
   ------------------------------------------------------------
   标签   14px/500 rgba(238,245,255,.9)，与控件间距 8px
   星号   14px/500 琥珀色 lab(80.16 16.6 99.2) = rgb(245,196,81)
   下拉   高 36px / radius 10px / padding 8px 12px / 字号 14px
          背景 rgba(18,22,32,.86)  边框 rgba(255,255,255,.12)
   ============================================================ */
.field-label,
.img-col-left .field-label,
.tf-field .field-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(238, 245, 255, .9) !important;
  margin-bottom: 8px !important;
  display: block;
  line-height: 1.4;
}
/* 必填星号：琥珀色，与标签同尺寸 */
.req,
.field-label .req {
  color: rgb(245, 196, 81) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-left: 3px;
}

/* 下拉 / 输入框统一 */
.img-col-left select.input,
.img-col-left input.input,
.tf-field select.input,
.tf-field input.input,
.ref-up ~ select.input {
  height: 36px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(18, 22, 32, .86);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgb(238, 245, 255);
}
.img-col-left select.input:focus,
.tf-field select.input:focus {
  border-color: rgba(36, 214, 200, .6);
  outline: none;
}
/* 下拉箭头留白，避免文字贴边 */
.img-col-left select.input,
.tf-field select.input { padding-right: 30px; }

/* 字段间距：对标站 space-y-5 = 20px，但两列并排的那组内部更紧 */
.img-col-left .field { margin-bottom: 16px !important; }
.tf-field { margin-bottom: 16px !important; }
/* 两列组（模型/清晰度）内部间距 16px，与对标站 gap-4 一致 */
.img-col-left .field { min-width: 0; }

/* 下拉文字不截断：留够箭头与内边距 */
.img-col-left select.input,
.tf-field select.input {
  text-overflow: ellipsis;
  padding-right: 28px;
  min-width: 0;
}
/* 星号与标签之间留白 */
.field-label .req { margin-left: 4px; }

/* ============================================================
   AI 功能页表单：宽度与 /image 一致（对标站下拉约 181px，不拉满整行）
   ============================================================ */
/* 参考素材上传区 + 下拉都限宽，避免在 1080px 卡片里被拉到 1042px */
.tool-card .tf-field { max-width: 420px; }
.tool-card .tf-field select.input { max-width: 420px; }
/* 提示词可以宽一些（对标站是整栏宽） */
.tool-card .tf-field:has(textarea) { max-width: none; }
/* 「参考素材」那一行是块级，同样限宽 */
.tool-card > .tf-row { max-width: 420px; }

/* 媒体工具页：tf-row 里的标签统一成 field-label 样式 */
.tool-card .tf-row { display: block; }
.tool-card .tf-row .field-label { margin-bottom: 8px; }
.tool-card .tf-row + .tf-row { margin-top: 16px; }

/* ============================================================
   参数面板 —— 严格对齐对标站实测（/image-generate 左栏）
   ------------------------------------------------------------
   卡片     420×797   radius 28px   padding 12px 0
   头部     56px      padding 18px 20px 0
   内容体   727px     padding 12px 20px 20px   块间距 20px (space-y-5)
   提示词   378×150
   模型组   378×138   两列各 181  gap 16
   比例块   181×58    ★只占半宽
   参考图   378×241
   预估积分 378×38    radius 12  bg rgb(8,39,47)  border 1px 青
   按钮行   378×48    gap 12  按钮 radius 16  h 48
   ============================================================ */
.img-col-left {
  border-radius: 28px !important;
  padding: 12px 0 !important;
  overflow: hidden;
}
.img-col-left .panel-h {
  padding: 18px 20px 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  min-height: 56px;
}
.img-col-left .panel-b {
  padding: 12px 20px 20px !important;
  display: flex; flex-direction: column; gap: 20px;   /* space-y-5 */
}
/* 块间距由父容器 gap 控制，块自身不再加 margin */
.img-col-left .field,
.img-col-left .tf-field { margin-bottom: 0 !important; }

/* 提示词块高 150px（内容 102 + 标签 22 + 间距 8 + 计数 18） */
.img-col-left textarea.input {
  min-height: 102px !important;
  max-height: 102px !important;
  line-height: 1.6 !important;
}
.img-col-left .counter { margin-top: 6px !important; font-size: 12px !important; }

/* 图片比例只占半宽（对标站 181px） */
.img-col-left .field-ratio { max-width: calc(50% - 8px); }
.img-col-left .field-ratio select.input { width: 100%; }

/* 预估积分：青色描边胶囊 */
.img-est {
  height: 38px; border-radius: 12px !important;
  background: rgb(8, 39, 47) !important;
  border: 1px solid rgba(36, 214, 200, .45) !important;
  padding: 8px 12px !important; gap: 8px;
  font-size: 14px !important; color: rgb(238, 245, 255) !important;
}

/* 按钮行：提交 270 / 重置 96，高 48，圆角 16 */
.img-actions {
  display: flex !important; gap: 12px !important;
  grid-template-columns: none !important;
}
.img-actions .btn,
.img-actions .btn-primary {
  height: 48px !important; border-radius: 16px !important;
  font-size: 14px !important; padding: 8px 12px !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.img-actions .btn-primary { flex: 1 1 auto; }        /* 270px */
.img-actions .btn:not(.btn-primary) { flex: 0 0 96px; padding: 8px 32px !important; }

/* 字段内部用 block 布局（对标站如此），label 的 margin-bottom 才能生效；
   用 flex 时 gap 会额外撑高（实测 70.6 vs 对标 58） */
.img-col-left .field { display: block !important; }
.img-col-left .field > .field-label { display: block; }

/* 提示词块 160 → 150：textarea 102→92，计数行更紧 */
.img-col-left textarea.input { min-height: 92px !important; max-height: 92px !important; }
.img-col-left .counter { margin-top: 5px !important; line-height: 1.3 !important; }

/* 参考图块 249 → 241：Tab 与虚线框之间 12 → 8 */
.img-col-left .ref-up-zone { margin-top: 8px !important; }
.img-col-left .ref-up-tabs { height: 41px; }
.img-col-left .ref-up-tab { height: 41px; }

/* ============================================================
   功能页「比例 / 清晰度」按钮组（对齐对标站，它不用 select）
   ============================================================ */
.chip-grp { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 54px; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  font-size: 12.5px; font-family: inherit; font-weight: 600;
  background: rgba(255,255,255,.04); color: var(--txt2);
  border: 1px solid var(--line); transition: all .15s;
}
.chip:hover { border-color: rgba(115,87,255,.5); color: var(--txt1); }
.chip.on {
  background: var(--yh-dark-blue-button-gradient);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px -8px rgba(27,211,253,.6);
}

/* ============================================================
   功能页两栏：左参数栏（420px）+ 右案例参考（对齐对标站）
   ============================================================ */
.tf-2col {
  display: grid; grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px; align-items: start;
}
@media (max-width: 1180px) { .tf-2col { grid-template-columns: 1fr; } }
.tf-2col .tool-card { max-width: none; }
.tf-2col .tool-card .tf-field,
.tf-2col .tool-card .tf-field select.input,
.tf-2col .tool-card > .tf-row { max-width: none; }

/* 右栏案例参考 */
.case-panel {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px 20px;
}
.case-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--txt1); margin-bottom: 4px;
}
.case-panel-head .ico { color: var(--cyan); font-size: 13px; }
.case-panel-sub { font-size: 12px; color: var(--txt3); margin-bottom: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.case-cell .ttl {
  font-size: 12px; color: var(--txt2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.case-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.case-imgs img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 9px; background: rgba(255,255,255,.04); display: block;
}
.case-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.case-btn {
  padding: 7px 8px; border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--txt2); transition: all .15s;
}
.case-btn:hover { color: var(--txt1); border-color: rgba(115,87,255,.5); }
.case-btn-primary {
  background: var(--yh-dark-blue-button-gradient);
  border-color: transparent; color: #fff;
}
.case-btn-primary:hover { filter: brightness(1.06); }

/* ============================================================
   作品详情弹窗（对齐对标站：1200×828，左图 850 + 右详情 350）
   ============================================================ */
.cd-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2,4,12,.62); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  animation: cd-in .18s ease-out;
}
@keyframes cd-in { from { opacity: 0 } to { opacity: 1 } }

.cd-box {
  position: relative; display: grid; grid-template-columns: 850fr 350fr;
  /* ★ grid 子项默认 min-height:auto 会被内容撑高（实测 1048 > 828），
     必须 minmax(0,1fr) 强制单行、并给子项 min-height:0 */
  grid-template-rows: minmax(0, 1fr);
  width: min(1200px, 96vw); height: min(828px, 92vh);
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
}
@media (max-width: 1100px) {
  .cd-box { grid-template-columns: 1fr; height: 92vh; }
  .cd-left { display: none; }
}

.cd-close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--txt2);
  border: 1px solid var(--line); font-size: 14px; line-height: 1;
}
.cd-close:hover { color: var(--txt1); background: rgba(255,255,255,.14); }

/* ---- 左：图片区 ---- */
.cd-left {
  position: relative; min-width: 0; min-height: 0;
  background: #0B0B12; display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.cd-stage {
  position: relative; flex: 1; min-height: 0;
  padding: 20px 20px 8px; overflow: hidden;
}
/* ★ 必须同时给 max-width/max-height 且父级 overflow:hidden，
   否则竖图会按宽度撑开、底部被裁（实测 1145×1374 在 849 宽区里超高） */
.cd-img {
  position: absolute; inset: 20px 20px 8px;
  width: calc(100% - 40px); height: calc(100% - 28px);
  object-fit: contain; border-radius: 10px; display: block;
}
.cd-img.zoom { position: static; width: auto; height: auto; max-width: none; max-height: none; }
.cd-stage:has(.cd-img.zoom) { overflow: auto; display: grid; place-items: center; }
.cd-zoom {
  align-self: center; margin-bottom: 16px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,.07); color: var(--txt2);
  border: 1px solid var(--line);
}
.cd-zoom:hover { color: var(--txt1); }

/* ---- 右：详情栏（可滚动）---- */
.cd-right {
  min-width: 0; min-height: 0; padding: 20px 24px 18px;
  display: flex; flex-direction: column; gap: 13px;
}
/* 中间内容单独滚动，「做同款」吸底常驻可见 */
.cd-right > .cd-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 13px;
}
.cd-title-row { display: flex; flex-direction: column; gap: 6px; padding-right: 34px; }
.cd-title { font-size: 17px; font-weight: 700; color: var(--txt1); line-height: 1.4; }
.cd-model-tag {
  align-self: flex-start; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  color: var(--cyan); background: rgba(27,211,253,.1);
  border: 1px solid rgba(27,211,253,.3);
}
.cd-sec-label {
  font-size: 12.5px; font-weight: 700; color: var(--txt2);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.cd-kv { display: flex; gap: 6px; font-size: 12.5px; line-height: 1.65; }
.cd-kv .k { color: var(--txt3); flex: none; }
.cd-kv .v { color: var(--txt1); word-break: break-word; }
.cd-kv-col { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.cd-kv-col .k { color: var(--txt3); }
.cd-prompt {
  color: var(--txt2); line-height: 1.8; white-space: pre-wrap;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px; max-height: 300px; overflow-y: auto;
}
.cd-foot { flex: none; padding-top: 14px; border-top: 1px solid var(--line); }
.cd-use {
  width: 100%; padding: 11px; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--yh-dark-blue-button-gradient);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cd-use:hover { filter: brightness(1.06); }

/* ============================================================
   全屏看图（对标站「查看原图」：独立 z-100 全屏层，非弹窗内放大）
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: #000; display: flex; flex-direction: column;
  animation: cd-in .18s ease-out;
}
.lb-bar {
  flex: none; height: 64px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; position: relative; z-index: 2;
}
.lb-btn {
  width: 36px; height: 36px; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.14); transition: background .15s;
}
.lb-btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.lb-btn:disabled { opacity: .4; cursor: not-allowed; }
.lb-pct {
  min-width: 60px; text-align: center; font-size: 13.5px;
  font-weight: 500; color: #fff;
}
/* 关闭按钮推到最右 */
.lb-bar .lb-btn:last-child { margin-left: 0; }
.lb-hint {
  margin-left: auto; margin-right: 8px;
  font-size: 12px; color: rgba(255,255,255,.45);
}
@media (max-width: 700px) { .lb-hint { display: none; } }

.lb-stage {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  display: grid; place-items: center; cursor: grab;
}
.lb-stage.grab { cursor: grabbing; }
/* ★ 尺寸由 JS 用 width/height 控制（不用 transform:scale，
   否则布局盒不等于视觉尺寸，居中会偏）。
   这里只负责 transform-origin 与拖拽相关样式。 */
.lb-img {
  max-width: none; max-height: none;
  transform-origin: center center; transition: width .12s ease-out, height .12s ease-out;
  user-select: none; -webkit-user-drag: none;
}

/* ============================================================
   我的作品（右侧下方：提交后占位 → 成品 + 提示词信息）
   ============================================================ */
.img-work {
  margin-top: 18px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 20px;
}
.img-work-body { margin-top: 14px; }

.img-work-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 10px; text-align: center;
}
.img-work-empty .ico { font-size: 26px; opacity: .5; }
.img-work-empty .t { font-size: 13.5px; color: var(--txt2); font-weight: 600; }
.img-work-empty .d { font-size: 12px; color: var(--txt3); }

.img-work-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; color: var(--txt2);
}
.img-work-bar .spin { color: var(--cyan); animation: img-spin 1s linear infinite; display: inline-block; }
@keyframes img-spin { to { transform: rotate(360deg); } }

.img-work-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.img-work-cell {
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.img-work-cell img {
  width: 100%; display: block; background: var(--bg);
  cursor: zoom-in; aspect-ratio: 3 / 4; object-fit: contain;
}
.img-work-cell-ft {
  display: flex; justify-content: flex-end;
  padding: 8px 10px; border-top: 1px solid var(--line);
}

/* 提示词信息块 */
.img-work-info {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.img-work-prompt {
  font-size: 12.5px; color: var(--txt2); line-height: 1.75;
  white-space: pre-wrap; max-height: 96px; overflow-y: auto;
  word-break: break-word;
}
.img-work-meta { font-size: 11.5px; color: var(--txt3); }
.img-work-acts { display: flex; gap: 8px; margin-top: 2px; }

/* 我的作品：多条并存（每次生成一条，互不覆盖） */
.img-work-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--txt3); margin-bottom: 10px;
}
.img-work-item {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 12px;
  background: rgba(255,255,255,.02);
}
.img-work-item.failed { border-color: rgba(255,120,120,.35); }
.img-work-item-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.img-work-item-hd .time { font-size: 11.5px; color: var(--txt3); }
.img-work-item-hd .tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
}
.img-work-item-hd .tag.run { color: var(--cyan); background: rgba(27,211,253,.12); }
.img-work-item-hd .tag.ok { color: #4ade80; background: rgba(74,222,128,.12); }
.img-work-item-hd .tag.bad { color: #ff8080; background: rgba(255,128,128,.12); }
.img-work-item .img-work-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }
.img-work-item-ft { display: flex; justify-content: flex-end; margin-top: 8px; }
.img-work-del {
  font-size: 11px; color: var(--txt3); cursor: pointer; font-family: inherit;
  background: none; border: none; padding: 3px 6px; border-radius: 6px;
}
.img-work-del:hover { color: #ff8080; background: rgba(255,128,128,.1); }
/* 作品卡片内的信息块更紧凑 */
.img-work-item .img-work-info { margin-top: 10px; padding: 10px 12px; }
