/* =========================================================
   狂犇工作台 · 简约明亮主题
   暖米白底 + 白色卡片 + 墨绿主色，干净清爽
   ========================================================= */
:root {
  --bg-0: #F3F1EA;
  --bg-1: #F7F5EF;
  --panel: #FFFFFF;
  --panel-solid: #FFFFFF;
  --panel-hi: #FAF8F3;
  --cyan: #0E6B54;
  --blue: #2563EB;
  --violet: #7C6BD9;
  --accent: #0E6B54;
  --accent-2: #149074;
  --ink: #22312B;
  --ink-2: #52645C;
  --muted: #8B988F;
  --line: #E7E3D8;
  --line-hi: #BFDCD1;
  --white: #1D2B25;
  --ok: #1E9E6A;
  --warn: #C08A1E;
  --danger: #D45B4E;
  --shadow-sm: 0 1px 3px rgba(60, 58, 48, .06), 0 2px 10px rgba(60, 58, 48, .05);
  --shadow: 0 6px 22px rgba(60, 58, 48, .1);
  --shadow-lg: 0 18px 46px rgba(60, 58, 48, .16);
  --glow: 0 0 0 4px rgba(14, 107, 84, .1);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 10% -6%, rgba(14, 107, 84, .05) 0%, rgba(14, 107, 84, 0) 55%),
    radial-gradient(760px 480px at 96% 0%, rgba(124, 107, 217, .04) 0%, rgba(124, 107, 217, 0) 58%),
    var(--bg-1);
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(14, 107, 84, .18); }
.hidden { display: none !important; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(139, 152, 143, .35); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(14, 107, 84, .45); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   登录页
   ========================================================= */
.login-wrap {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: #9CCDBD; top: -120px; left: -100px; animation: float1 16s ease-in-out infinite; }
.blob.b2 { width: 400px; height: 400px; background: #E4D9C3; bottom: -130px; right: -90px; animation: float2 19s ease-in-out infinite; }
.blob.b3 { width: 300px; height: 300px; background: #C4D8CF; top: 40%; right: 16%; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px, 34px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-34px, -28px) scale(1.06); } }

.login-card {
  position: relative; width: 100%; max-width: 406px; padding: 40px 34px 30px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); text-align: center;
  animation: rise .55s cubic-bezier(.2,.8,.25,1) both;
}
.login-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--r-xl); pointer-events: none;
  background: linear-gradient(135deg, rgba(14,107,84,.25), rgba(19,144,116,.08) 40%, rgba(124,107,217,.2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .4;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 22% { transform: translateX(-8px); } 44% { transform: translateX(7px); } 66% { transform: translateX(-4px); } 88% { transform: translateX(3px); } }
.login-cat { font-size: 46px; line-height: 1; margin-bottom: 8px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(14,107,84,.25)); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.login-card h1 { font-size: 21px; margin: 6px 0 4px; letter-spacing: .5px; color: var(--ink); }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }

.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: #FFFFFF;
  border: 1.5px solid var(--line); border-radius: var(--r); outline: none; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 107, 84, .12);
}
.input::placeholder, .textarea::placeholder { color: #A8B2AB; }
.textarea { resize: vertical; min-height: 86px; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%238B988F' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.select option { background: #FFFFFF; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .16s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  background: linear-gradient(135deg, #116A54 0%, #0E6B54 55%, #149074 100%);
  color: #FFFFFF; font-weight: 700; box-shadow: 0 8px 20px rgba(14, 107, 84, .28);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(14, 107, 84, .36); transform: translateY(-1px); }
.btn-ghost { background: #FFFFFF; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: rgba(14, 107, 84, .1); color: var(--accent); }
.btn-soft:hover { background: rgba(14, 107, 84, .18); }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.login-foot { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.login-foot code { background: rgba(14, 107, 84, .1); color: var(--accent); padding: 2px 7px; border-radius: 6px; font-size: 12px; font-family: var(--mono); }
.err { color: var(--danger); font-size: 12.5px; margin-top: 10px; min-height: 18px; }

/* =========================================================
   主体框架
   ========================================================= */
.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.app > .ver-banner { margin: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; flex: 0 0 auto; }
.shell { flex: 1; display: flex; min-height: 0; }

.sidebar {
  width: 244px; flex: 0 0 244px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 14px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(140deg, rgba(14,107,84,.16), rgba(20,144,116,.2) 60%, rgba(124,107,217,.12));
  box-shadow: inset 0 0 0 1px rgba(14,107,84,.28);
  color: var(--accent);
}
.brand-txt b { display: block; font-size: 14.5px; letter-spacing: .3px; color: var(--ink); }
.brand-txt span { font-size: 11px; color: var(--muted); letter-spacing: .6px; }

.nav { flex: 1; overflow-y: auto; padding: 6px 10px 10px; }
.nav-group { margin-bottom: 2px; }
.nav-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 13.5px;
  transition: background .16s, color .16s;
}
.nav-head:hover { background: rgba(14, 107, 84, .07); color: var(--ink); }
.nav-head .ico { font-size: 15px; width: 20px; text-align: center; }
.nav-head .arrow { margin-left: auto; font-size: 9px; color: #A8B2AB; transition: transform .22s; }
.nav-group.open .nav-head { background: rgba(14, 107, 84, .1); color: var(--accent); }
.nav-group.open .nav-head .arrow { transform: rotate(90deg); }
.nav-sub { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.nav-group.open .nav-sub { max-height: 320px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px 8px 26px; border-radius: 10px; font-size: 13px; color: var(--ink-2);
  position: relative; transition: background .16s, color .16s;
}
.nav-item::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: #D5D0C4; transform: translateY(-50%); transition: background .2s;
}
.nav-item:hover { background: rgba(14, 107, 84, .07); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(14,107,84,.14), rgba(20,144,116,.1)); color: var(--accent); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(14,107,84,.28);
}
.nav-item.active::before { background: var(--accent); }
/* 三级类目（图片制作：产品替换 / 人物替换 / 其他改图，2026-11-06 用户要求） */
.nav-sub2 { margin: 1px 0 3px; }
.nav-sub2 .nav-item2 { padding-left: 42px; font-size: 12.3px; padding-top: 6px; padding-bottom: 6px; }
.nav-sub2 .nav-item2::before { left: 29px; width: 3px; height: 3px; }
.nav-item .tag {
  margin-left: auto; font-size: 9.5px; padding: 1px 6px; border-radius: 999px;
  background: rgba(139, 152, 143, .1); color: var(--muted); border: 1px solid var(--line); font-weight: 500;
}
.nav-item.active .tag { background: rgba(14, 107, 84, .12); color: var(--accent); border-color: rgba(14, 107, 84, .3); }
/* 二级菜单：名称可换行、标签固定不压字 */
.nav-item { align-items: flex-start; line-height: 1.42; }
.nav-item .nm { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.nav-item .tag { flex: 0 0 auto; margin-top: 2px; white-space: nowrap; }

.side-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.link-quit { margin-left: auto; font-size: 11.5px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; transition: all .16s; }
.link-quit:hover { color: var(--danger); border-color: rgba(212, 91, 78, .45); }
.side-foot .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 8px rgba(30, 158, 106, .5); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; flex: 0 0 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.crumb .sep { color: #CFC9BC; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: #FFFFFF; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px;
  transition: all .18s;
}
.icon-btn:hover { border-color: var(--line-hi); transform: translateY(-1px); color: var(--accent); }

.content { flex: 1; overflow-y: auto; padding: 24px 28px 64px; }
.page { max-width: 1180px; margin: 0 auto; animation: fadeup .35s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 通用块 ---------- */
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .ph-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(140deg, rgba(14,107,84,.14), rgba(20,144,116,.12));
  box-shadow: inset 0 0 0 1px rgba(14,107,84,.22);
}
.page-head h2 { margin: 0; font-size: 19px; letter-spacing: .3px; color: var(--ink); }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.8px; max-width: 720px; }
.page-head .head-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px;
  transition: box-shadow .22s, border-color .22s;
}
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.card-h h3 { margin: 0; font-size: 14.5px; color: var(--ink); }
.card-h .badge { margin-left: auto; }
.card-h-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-h-right .btn { padding: 4px 10px; font-size: 12px; }
.card-h .hint { font-size: 11.8px; color: var(--muted); margin-left: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1080px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 16px 14px 60px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: rgba(14, 107, 84, .1); color: var(--accent);
}
.badge.lav { background: rgba(124, 107, 217, .12); color: #6A59C7; }
.badge.mint { background: rgba(30, 158, 106, .12); color: var(--ok); }
.badge.butter { background: rgba(192, 138, 30, .12); color: var(--warn); }
.badge.gray { background: rgba(139, 152, 143, .12); color: var(--muted); }
/* 2026-11-11 第 30 轮：最终面试结果「不通过」红色标识 + 整行淡红 */
.badge.danger { background: rgba(211, 61, 61, .13); color: #C0392B; }
.lg-tb tr.lg-row-fail { background: rgba(211, 61, 61, .055); }
.lg-tb tr.lg-row-fail:hover { background: rgba(211, 61, 61, .09); }
.lg-tb tr.lg-row-fail td:first-child { box-shadow: inset 3px 0 0 #D33D3D; }

/* 台账附件（简历拍照 / PDF）：选择区 + 待提交缩略图 + 查看弹层网格 */
.lg-attach { border-top: 1px dashed var(--line); padding-top: 12px; }
.lg-attach-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-attach-pick { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.lg-attach-prev { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-attach-prev:not(:empty) { margin-top: 10px; }
.lg-att-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; color: var(--ink-2); }
.lg-att-chip img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; background: #f2f5f3; }
.lg-att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-att-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.lg-att-chip button:hover { color: #C0392B; }
.lg-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-height: 68vh; overflow: auto; }
.lg-att-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: #fff; }
.lg-att-item img, .lg-att-pdf { width: 100%; height: 180px; object-fit: contain; border-radius: 6px; background: #f6f8f7; }
.lg-att-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.lg-att-pdf small { font-size: 11px; }
.lg-att-name { font-size: 11.5px; color: var(--ink-2); margin: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-att-ops { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--line);
  font-size: 12.8px; color: var(--ink-2); transition: all .16s; font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: linear-gradient(135deg,#116A54,#149074); color: #FFFFFF; font-weight: 700; border-color: transparent; box-shadow: 0 6px 16px rgba(14,107,84,.25); }

.label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: block; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

/* ---------- 模式选择 ---------- */
.mode-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-card {
  flex: 1; min-width: 128px; padding: 14px 12px; border-radius: var(--r);
  background: #FFFFFF; border: 1.5px solid var(--line); text-align: center;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.mode-card .em { font-size: 20px; display: block; margin-bottom: 4px; }
.mode-card b { font-size: 14px; display: block; color: var(--ink); }
.mode-card small { color: var(--muted); font-size: 11px; line-height: 1.5; display: block; margin-top: 3px; }
.mode-card:hover { transform: translateY(-2px); border-color: rgba(14, 107, 84, .4); box-shadow: var(--shadow); }
.mode-card.active {
  border-color: var(--accent); background: linear-gradient(160deg, rgba(14,107,84,.1), rgba(20,144,116,.06));
  box-shadow: 0 10px 22px rgba(14, 107, 84, .14);
}
.mode-card.active b { color: var(--accent); }

/* ---------- 结果区 ---------- */
.result-empty {
  display: grid; place-items: center; gap: 8px; padding: 40px 16px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.result-empty .big { font-size: 34px; opacity: .7; }

.kv { display: flex; gap: 8px; font-size: 12.8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex: 0 0 88px; }
.kv .v { color: var(--ink); flex: 1; word-break: break-word; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 12px; border-radius: 10px; background: rgba(14, 107, 84, .06); border: 1px dashed rgba(14, 107, 84, .3);
  font-size: 12.5px; color: var(--ink-2);
}

.scene {
  border: 1px solid var(--line); border-radius: var(--r); background: #FFFFFF;
  padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden;
}
.scene::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #149074, #7C6BD9);
}
.scene-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.scene-no {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(14, 107, 84, .12); color: var(--accent); font-size: 11.5px; font-weight: 700; font-family: var(--mono);
}
.scene-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--mono); }
.scene-shot { font-size: 11.5px; color: #6A59C7; background: rgba(124, 107, 217, .12); padding: 1px 8px; border-radius: 999px; }
.scene-line { font-size: 13.5px; color: var(--ink); margin: 6px 0; padding: 8px 10px; background: rgba(14, 107, 84, .05); border-radius: 10px; }
.scene-visual { font-size: 12.5px; color: var(--ink-2); }
.scene-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.code-box {
  background: #F7F5EF; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; font-size: 12.5px; line-height: 1.85; color: #3A4A42;
  white-space: pre-wrap; word-break: break-word; font-family: var(--mono);
  max-height: 480px; overflow-y: auto;
}
.code-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
  background: #FFFFFF; border: 1.5px solid var(--line); font-size: 11.8px; color: var(--ink-2);
  transition: all .16s; font-weight: 600;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(14, 107, 84, .06); }
.copy-btn.done { background: rgba(30, 158, 106, .12); border-color: rgba(30, 158, 106, .4); color: var(--ok); }

.upload {
  border: 2px dashed #C9DFD6; border-radius: var(--r-lg); background: #FAF8F3;
  padding: 34px 20px; text-align: center; transition: all .2s; cursor: pointer;
}
.upload:hover, .upload.drag { border-color: var(--accent); background: rgba(14, 107, 84, .05); box-shadow: var(--glow); }
.upload .up-ico { font-size: 34px; display: block; margin-bottom: 8px; }
.upload b { font-size: 14px; display: block; color: var(--ink); }
.upload small { color: var(--muted); font-size: 12px; }
.video-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.video-box { position: relative; width: 220px; flex: 0 0 220px; }
.video-box video { width: 100%; border-radius: var(--r); background: #1A1A1A; display: block; box-shadow: var(--shadow); }
.frame-canvas { display: none; }

.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px; font-size: 13px; color: var(--muted); border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px; font-weight: 600; border-radius: 8px 8px 0 0; transition: all .16s;
}
.tab:hover { color: var(--ink); background: rgba(14, 107, 84, .06); }
.tab.active { color: var(--accent); border-color: var(--accent); }

.check-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px;
  background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer;
  transition: all .16s; font-size: 13px; line-height: 1.6;
}
.check-item:hover { border-color: rgba(14, 107, 84, .35); background: rgba(14, 107, 84, .04); }
.check-item input { appearance: none; width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; border: 1.8px solid rgba(14, 107, 84, .4); border-radius: 6px; position: relative; transition: all .16s; }
.check-item input:checked { background: linear-gradient(135deg,#116A54,#149074); border-color: transparent; }
.check-item input:checked::after { content: '✓'; position: absolute; inset: 0; color: #FFFFFF; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }

.stat { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stat .lb { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .nm { font-size: 22px; font-weight: 700; letter-spacing: .5px; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .nm.pink { color: var(--accent); }
.stat .nm.green { color: var(--ok); }
.stat .nm.red { color: var(--danger); }
.stat .sub { font-size: 11.5px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: #22312B; color: #EAF3EE; border: 1px solid rgba(14, 107, 84, .5);
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 12px 30px rgba(34, 49, 43, .3); opacity: 0; pointer-events: none;
  transition: all .26s cubic-bezier(.2,.8,.25,1); z-index: 999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(52, 50, 42, .38); backdrop-filter: blur(5px);
  display: grid; place-items: center; z-index: 200; padding: 20px; animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-lg); max-height: 86vh; overflow-y: auto; animation: rise .3s both;
}
.modal h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.modal .m-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.m-sub { color: var(--muted); font-size: 12.5px; margin: -6px 0 12px; }
.mt12 .m-sub, .m-sub.mt0 { margin: 0 0 12px; }
/* 按钮下方的提示文字：负上边距会把文字拉进按钮造成重叠（2026-11-06 用户反馈），统一恢复正常间距 */
.btn + .m-sub { margin-top: 10px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(192, 138, 30, .08), rgba(192, 138, 30, .04)); border: 1px solid rgba(192, 138, 30, .3);
  font-size: 12.5px; color: #8A651A; line-height: 1.75;
}
.note.blue { background: linear-gradient(135deg, rgba(14,107,84,.07), rgba(37,99,235,.05)); border-color: rgba(14, 107, 84, .28); color: #2A6B58; }
.note .ni { flex: 0 0 auto; }

table.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; }
table.tb th {
  text-align: left; padding: 9px 12px; background: rgba(14, 107, 84, .08); color: var(--ink-2);
  font-weight: 600; font-size: 12px; white-space: nowrap;
}
table.tb th:first-child { border-radius: 10px 0 0 10px; }
table.tb th:last-child { border-radius: 0 10px 10px 0; }
table.tb td { padding: 9px 12px; border-bottom: 1px dashed var(--line); vertical-align: top; color: var(--ink); }
table.tb tr:last-child td { border-bottom: none; }

.empty-hint { color: var(--muted); font-size: 12.5px; text-align: center; padding: 22px; }

/* 搜索框 */
.search-wrap { position: relative; flex: 1; max-width: 300px; }
.search-wrap .input { padding-left: 34px; }
.search-wrap .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #A8B2AB; font-size: 13px; }

/* 首页 */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 28px;
  background: linear-gradient(135deg, rgba(14, 107, 84, .08) 0%, rgba(20, 144, 116, .06) 45%, rgba(124, 107, 217, .07) 100%);
  border: 1px solid rgba(14, 107, 84, .22); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero::after {
  content: '⚡'; position: absolute; right: 26px; bottom: -18px; font-size: 108px; opacity: .08;
  transform: rotate(-8deg);
}
.hero h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: .4px; color: var(--ink); }
.hero p { margin: 0; color: var(--ink-2); font-size: 13px; max-width: 560px; }
.hero .hero-chips { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .hero-chips .chip { background: #FFFFFF; }

.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-sm); transition: all .22s; cursor: pointer; text-align: left;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(14, 107, 84, .4); }
.cat-card .ci { font-size: 22px; }
.cat-card b { display: block; margin: 6px 0 2px; font-size: 14.5px; color: var(--ink); }
.cat-card small { color: var(--muted); font-size: 11.8px; line-height: 1.55; display: block; }
.cat-card .cc { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cat-card .cc span { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(14, 107, 84, .08); color: var(--accent); }

/* ---- 空分组（待补充） ---- */
.nav-empty { padding: 8px 14px 10px 40px; font-size: 11.5px; color: var(--muted); opacity: .7; }
.cat-empty { opacity: .45; cursor: default; filter: grayscale(.4); }
.cat-empty .cc .pending { font-size: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 2px 8px; }

/* ---- 爆款视频拆解 · 参考版式 ---- */
.ver-banner { font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px; line-height: 1.6; margin-top: 14px; }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-top: 16px; }
.bd-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bd-main .card { margin-top: 0; }
.guide-panel { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.gp-eyebrow { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.gp-title { margin: 6px 0 8px; font-size: 17px; color: var(--ink); }
.gp-lead { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 14px; }
.gp-sec { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 10px; }
.gp-step { margin-bottom: 12px; }
.gp-step b { display: block; font-size: 13px; color: var(--accent); font-weight: 600; }
.gp-step p { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.gp-confirm { margin-top: 14px; background: rgba(30, 158, 106, .08); border: 1px solid rgba(30, 158, 106, .3); border-radius: var(--r-sm); padding: 12px; }
.gp-confirm b { font-size: 13px; color: var(--ok); }
.gp-confirm p { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.gp-foot { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.fs-warn { background: rgba(192, 138, 30, .08); border: 1px solid rgba(192, 138, 30, .3); color: var(--warn); font-size: 12.5px; border-radius: var(--r-sm); padding: 9px 12px; }
.fs-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; padding-top: 24px; flex: 0 0 34px; }
.fs-flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-hi); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; flex-wrap: wrap; }
.fs-flow-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.fs-flow-txt small { color: var(--muted); font-size: 11.5px; }
.status-strip { background: var(--panel-hi); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { font-size: 11.5px; color: var(--ink-2); background: var(--panel-hi); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.rec-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; background: var(--panel-hi); }
.rec-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rec-name { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-all; }
.rec-meta { font-size: 11.5px; color: var(--muted); }
.rec-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.rec-detail { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.rec-tabbody { margin-top: 12px; }
@media (max-width: 1024px) { .bd-layout { grid-template-columns: 1fr; } .guide-panel { position: static; } }

/* ---- 已爆框架裂变 / 新爆款视频裂变 ---- */
.vf-panel { background: var(--panel-hi); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.vf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf-up2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf-fields { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 1.2fr .7fr; gap: 10px; }
.upload-slim { padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.up-plus { width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.vf-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 34px 16px; }
.script-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 14px; background: var(--panel-hi); }
.sl-table { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sl-row { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #FFFFFF; }
.sl-t { flex: 0 0 56px; font-size: 11.5px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.sl-shot { flex: 0 0 90px; font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.sl-main { min-width: 0; flex: 1; }
.sl-line { font-size: 13px; color: var(--ink); line-height: 1.6; }
.sl-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.sb-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.sb-shot { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #FFFFFF; transition: border-color .15s, box-shadow .15s; }
.sb-shot:hover { border-color: var(--accent); }
.sb-shot.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(14, 107, 84, .2); }
.sb-ratio { aspect-ratio: 9/12; border-radius: 8px; background: linear-gradient(160deg, rgba(14,107,84,.08), rgba(124,107,217,.07)); border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--accent); font-size: 12px; }
.sb-ratio b { color: var(--ink-2); font-size: 13px; }
.sb-shot p { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.im-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.im-preview { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-hi); min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.im-preview img { max-width: 100%; max-height: 420px; border-radius: 10px; display: block; }
.im-cap { display: block; margin-top: 8px; font-size: 11.5px; }
.im-desc b { color: var(--ink); }
.im-desc p { font-size: 12px; line-height: 1.7; margin-top: 6px; max-width: 90%; }
@media (max-width: 900px) { .vf-fields { grid-template-columns: 1fr 1fr; } .vf-row2, .vf-up2 { grid-template-columns: 1fr; } .im-grid { grid-template-columns: 1fr; } .sb-shots { grid-template-columns: 1fr; } }

/* ---- AI 创作中心（图片制作 / 视频制作） ---- */
.studio-tabbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.studio-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-tab {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #FFFFFF;
  transition: all .18s; text-align: left;
}
.studio-tab:hover { border-color: rgba(14, 107, 84, .4); }
.studio-tab.active { background: linear-gradient(135deg, rgba(14,107,84,.12), rgba(20,144,116,.08)); border-color: rgba(14,107,84,.4); box-shadow: inset 0 0 0 1px rgba(14,107,84,.15); }
.studio-tab .st-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--panel-hi); border: 1px solid var(--line); }
.studio-tab.active .st-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.studio-tab .st-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.studio-tab .st-txt small { font-size: 11px; color: var(--muted); }
.studio-tabbar .btn { margin-left: auto; }

.up-dash { display: flex; align-items: center; gap: 14px; border: 2px dashed #C9DFD6; border-radius: var(--r); background: var(--panel-hi); padding: 12px; flex-wrap: wrap; }
.up-dash .upload { flex: 0 0 210px; padding: 18px 12px; background: #FFFFFF; }
.up-dash .upload b, .up-dash .upload small { color: var(--ink-2); }
.up-side { margin-left: auto; text-align: right; padding-right: 8px; }
.up-side small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.up-side b { font-size: 13.5px; color: var(--accent); }
.up-side-select select { min-width: 200px; }
.up-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

.model-list { display: flex; flex-direction: column; gap: 10px; }
.model-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #FFFFFF;
  cursor: pointer; transition: all .16s;
}
.model-row:hover { border-color: rgba(14, 107, 84, .4); }
.model-row.sel { background: rgba(14, 107, 84, .07); border-color: rgba(14, 107, 84, .45); box-shadow: inset 0 0 0 1px rgba(14, 107, 84, .2); }
.model-row .md-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: var(--accent); background: rgba(14, 107, 84, .08); flex: 0 0 30px; }
.model-row .md-txt { min-width: 0; flex: 1; }
.model-row .md-txt b { display: block; font-size: 13.5px; color: var(--ink); }
.model-row .md-txt small { font-size: 11.5px; color: var(--muted); }
.model-row .badge { flex: 0 0 auto; }

.studio-bottom { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sb-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; flex: 1; min-width: 0; }
.sb-selects .select { width: auto; min-width: 96px; padding-top: 9px; padding-bottom: 9px; }
.sb-actions { display: flex; gap: 8px; align-items: center; }
.dur-box { border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #FFFFFF; padding: 6px 12px; min-width: 190px; }
.dur-box > span { font-size: 12px; color: var(--ink-2); }
.dur-box > span b { color: var(--accent); }
.dur-box input[type=range] { width: 100%; accent-color: var(--accent); margin: 4px 0 0; }
.dur-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

.studio-empty { display: grid; place-items: center; gap: 6px; padding: 46px 16px; text-align: center; }
.studio-empty .se-ico { font-size: 34px; color: var(--accent); }
.studio-empty b { font-size: 15px; color: var(--ink); }
.studio-empty p { margin: 0; font-size: 12.5px; color: var(--muted); }

.thumb-vid { display: grid; place-items: center; width: 100%; height: 100%; background: var(--panel-hi); color: var(--accent); font-size: 16px; }
@media (max-width: 720px) { .up-dash .upload { flex: 1 1 100%; } .up-side { margin-left: 0; text-align: left; } .studio-tabbar .btn { margin-left: 0; } }

/* ---------------- 人事 · BEI 复试 ---------------- */
.score-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.score-pill {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 86px; padding: 9px 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--panel-hi); color: var(--ink-2);
  font-size: 17px; font-weight: 800; transition: all .15s;
}
.score-pill small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.score-pill:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.score-pill.active { background: var(--cyan); border-color: var(--cyan); color: #fff; box-shadow: var(--glow); }
.score-pill.active small { color: rgba(255, 255, 255, .82); }

.bei-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.bei-dim { background: var(--panel-hi); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.bei-dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); }
.bei-dim-top b { color: var(--ink); font-size: 12.5px; }
.bei-dim-val { font-size: 24px; font-weight: 800; color: var(--cyan); margin-top: 4px; }
.bei-dim-val small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.bei-comp { font-size: 22px; color: var(--cyan); }

.bei-anchor { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); margin-top: 8px; padding: 8px 10px 8px 12px; background: var(--panel-hi); border-radius: 8px; border-left: 3px solid var(--line-hi); }
.bei-anchor b { display: inline-block; margin-right: 8px; font-size: 11px; padding: 1px 7px; border-radius: 20px; color: #fff; vertical-align: 1px; }
.bei-anchor .g5 { background: #1E9E6A; } .bei-anchor .g4 { background: #56A85E; }
.bei-anchor .g3 { background: #C08A1E; } .bei-anchor .g2 { background: #D4784E; }
.bei-anchor .gnv { background: #8B988F; }
.bei-anchor.bei-demo { background: #EEF6F2; border-left-color: var(--cyan); }
.bei-anchor.bei-demo b { background: var(--cyan); }
@media (max-width: 900px) { .bei-dims { grid-template-columns: repeat(2, 1fr); } }
details.bei-kx { padding: 0; overflow: hidden; }
details.bei-kx summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 13.5px; color: var(--ink); user-select: none; }
details.bei-kx summary:hover { color: var(--cyan); }
details.bei-kx[open] summary { border-bottom: 1px solid var(--line); }
details.bei-kx > *:not(summary) { margin-left: 18px; margin-right: 18px; }
details.bei-kx > .note { margin-left: 18px; }

/* ---- BEI · Q1-Q8 提问清单（折叠面板） ---- */
.bei-ask { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-hi); border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(14,107,84,.05), rgba(124,107,217,.05)); }
.bei-ask-main { display: flex; gap: 10px; align-items: flex-start; font-size: 13.2px; line-height: 1.75; color: var(--ink); }
.bei-ask-main b { flex: 0 0 auto; margin-top: 2px; padding: 1px 9px; border-radius: 999px; background: rgba(14,107,84,.12); color: var(--accent); font-size: 11.5px; }
.bei-ask-label { margin: 14px 0 4px; font-size: 11.8px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.bei-ask-list { margin: 0; padding-left: 22px; font-size: 12.8px; line-height: 1.95; color: var(--ink-2); }
.bei-ask-list li::marker { color: var(--accent); font-weight: 700; }
.bei-ask .row > * { flex: 0 0 auto; min-width: 0; }
.btn[data-ask] { flex: 0 0 auto; white-space: nowrap; }

/* =========================================================
   AI 制作 · 图片制作：产品替换（product-scene-swap Skill）
   ========================================================= */
.ss-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ss-step { display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.ss-step > span { color: var(--accent); font-weight: 800; font-size: 14px; }
.ss-step b { color: var(--ink); font-weight: 650; }
.ss-step i { font-style: normal; font-size: 11px; color: var(--muted); background: var(--panel-hi); border-radius: 5px; padding: 1px 6px; }
.ss-step i.req { color: #A36C10; background: #FFF3D9; font-weight: 600; }

.ss-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 16px; align-items: start; }
.ss-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ss-col .card { margin: 0; }
.ss-req { color: var(--danger); }

.ss-uploads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss-up { min-width: 0; }
.ss-up-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.ss-up-h b { color: var(--ink); }
.ss-no { color: var(--accent); font-weight: 800; }
.ss-drop { display: flex; align-items: center; justify-content: center; min-height: 138px; border: 1.5px dashed var(--line-hi); border-radius: var(--r-sm); background: var(--panel-hi); cursor: pointer; transition: .18s; overflow: hidden; padding: 8px; }
.ss-drop:hover, .ss-drop.over { border-color: var(--accent); background: rgba(14,107,84,.06); }
.ss-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-size: 12px; color: var(--ink-2); width: 100%; }
.ss-inner b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.ss-inner small { color: var(--muted); font-size: 11px; }
.ss-plus { font-size: 26px; line-height: 1; color: var(--accent); font-weight: 300; }
.ss-thumb { display: block; max-width: 100%; max-height: 108px; object-fit: contain; border-radius: 8px; background: #fff; }
.ss-fn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-2); }
.ss-clear { border: 0; background: rgba(212,91,78,.1); color: var(--danger); border-radius: 6px; font-size: 11px; padding: 3px 9px; cursor: pointer; margin-top: 2px; }
.ss-up.has .ss-drop { border-style: solid; border-color: var(--line-hi); background: #fff; }
.ss-up:focus { outline: none; }
.ss-up.sel .ss-drop { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(14,107,84,.13); }
.ss-up.sel .ss-up-h b { color: var(--accent); }
.ss-up.sel .ss-up-h::after { content: '粘贴目标'; margin-left: auto; font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(14,107,84,.09); border-radius: 5px; padding: 2px 6px; }
.ss-up-desc { margin-top: 7px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.ss-up-hint { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

.ss-kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 12px; }
.ss-kit > div { min-width: 0; }
.ss-fld { min-width: 0; }
.ss-spec { display: flex; gap: 8px; }
.ss-spec > input:first-child { flex: 1 1 auto; min-width: 0; }
.ss-weight { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; padding: 13px 15px; }
.ss-unit { flex: 0 0 60px; width: 60px; text-align: center; color: var(--muted); font-size: 12px; padding: 10px 6px; }
.ss-compact { padding: 10px 12px; font-size: 14px; border-width: 1px; }
.ss-api { padding: 0 !important; overflow: hidden; }
.ss-api summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 13.5px; color: var(--ink); user-select: none; }
.ss-api summary:hover { color: var(--accent); }
.ss-api[open] summary { border-bottom: 1px solid var(--line); }
.ss-api-body { padding: 16px 18px 18px; }
.ss-api-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.ss-api-status { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

.ss-model-list { display: flex; flex-direction: column; gap: 8px; max-height: 236px; overflow-y: auto; padding-right: 2px; }
.ss-model-list .model-row { padding: 9px 11px; gap: 9px; }
.ss-model-list .model-row .md-ico { width: 26px; height: 26px; flex: 0 0 26px; font-size: 12px; }
.ss-model-list .model-row .md-txt b { font-size: 12.5px; word-break: break-all; }
.ss-model-list .model-row .md-txt small { font-size: 11px; }
.ss-model-list .model-row .badge { font-size: 10.5px; }

.ss-plan-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; line-height: 1.7; }
.ss-plan-row:last-child { border-bottom: 0; }
.ss-plan-row > span { color: var(--accent); font-weight: 700; }
.ss-plan-row > div { color: var(--ink-2); word-break: break-word; }
.ss-miss, .ss-ok { margin-top: 12px; border-radius: var(--r-sm); padding: 9px 12px; font-size: 12px; }
.ss-miss { background: #FFF6DF; color: #8A6516; }
.ss-ok { background: rgba(30,158,106,.1); color: #146A49; }
.ss-ok-inline { color: var(--ok); font-weight: 700; }
.ss-warn-inline { color: var(--warn); font-weight: 700; }

.ss-prompt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 11.5px !important; line-height: 1.65 !important; background: var(--panel-hi) !important; }
.ss-status { font-size: 12px; line-height: 1.75; color: var(--ink-2); background: var(--panel-hi); border-radius: var(--r-sm); padding: 10px 12px; }
.ss-result { margin-top: 12px; }
.ss-out-img { display: block; width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-hi); }
.ss-out-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* 并发生成：进行中任务行 + 全部成图卡片（每张可复制 / 下载原图） */
.ss-run-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-hi); margin-bottom: 8px; }
.ss-run-row:last-child { margin-bottom: 0; }
.ss-run-row.is-err { border-color: rgba(197, 62, 62, .3); background: rgba(197, 62, 62, .05); }
.ss-run-ico { font-size: 18px; flex: 0 0 auto; }
.ss-run-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ss-run-t b { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-run-t small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.ss-run-row .btn { flex: 0 0 auto; font-size: 11px; padding: 4px 8px; }
.ss-task-card { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; margin-bottom: 12px; }
.ss-task-card:last-child { margin-bottom: 0; }
.ss-task-img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--panel-hi); border-bottom: 1px solid var(--line); }
.ss-task-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 10px 2px; }
.ss-task-meta b { font-size: 12.5px; color: var(--ink); }
.ss-task-meta small { font-size: 11px; color: var(--muted); }
.ss-task-ops { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 10px 10px; }
.ss-task-ops .btn { font-size: 11px; padding: 4px 9px; }

.ss-hist { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ss-hist:last-child { border-bottom: 0; }
.ss-hist > img, .ss-hist-ph { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 8px; background: var(--panel-hi); display: flex; align-items: center; justify-content: center; }
.ss-hist-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ss-hist-t b { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-hist-t small { font-size: 11px; color: var(--muted); }
.ss-hist-b { display: flex; gap: 4px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.ss-hist-b .btn { font-size: 11px; padding: 4px 8px; }
.ss-empty { font-size: 12px; color: var(--muted); padding: 12px 0; }
.ss-brief { margin: 12px 0 4px; padding-left: 20px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.ss-brief li { margin-bottom: 6px; }

/* 图片制作 · 子类目切换 + 子类目占位 */
.img-sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 18px; }
.img-sub-tab {
  appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .18s;
}
.img-sub-tab:hover { border-color: var(--accent); color: var(--accent); }
.img-sub-tab.sel { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }

.ss-sub-bar { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ss-sub-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ss-sub-ico { font-size: 18px; }
.ss-sub-t b { font-size: 17px; color: var(--ink); }
.ss-sub-t small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ss-sub-tools { margin-left: auto; display: flex; gap: 8px; }

.ss-empty-xl { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 64px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--panel-hi); }
.ss-empty-xl .ss-empty-ico { font-size: 46px; line-height: 1; }
.ss-empty-xl h3 { margin: 0; font-size: 17px; color: var(--ink); }
.ss-empty-xl p { margin: 0; max-width: 460px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* 图片制作 · 其他改图（自由改图区） */
.oe-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 118px; border: 1.5px dashed var(--line-hi); border-radius: var(--r-sm); background: var(--panel-hi); cursor: pointer; transition: .18s; padding: 14px; text-align: center; }
.oe-drop:hover, .oe-drop.over { border-color: var(--accent); background: rgba(14,107,84,.06); }
.oe-drop b { font-size: 13px; color: var(--ink); }
.oe-drop small { font-size: 11.5px; color: var(--muted); }
.oe-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.oe-ref { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 5px; align-items: center; cursor: pointer; min-width: 0; }
.oe-ref.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(14,107,84,.13); }
.oe-ref img { width: 100%; height: 96px; object-fit: contain; border-radius: 6px; background: var(--panel-hi); }
.oe-ref-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-2); }
.oe-opts { display: flex; flex-direction: column; gap: 8px; }
.oe-opt { cursor: pointer; }
.oe-ratios { flex-direction: row; flex-wrap: wrap; }
.oe-ratio { flex: 1 1 140px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; cursor: pointer; background: var(--panel-hi); transition: .18s; }
.oe-ratio b { display: block; font-size: 13px; color: var(--ink); }
.oe-ratio small { font-size: 11px; color: var(--muted); }
.oe-ratio:hover { border-color: var(--accent); }
.oe-ratio.sel { border-color: var(--accent); background: rgba(14,107,84,.07); box-shadow: inset 0 0 0 1px rgba(14,107,84,.2); }
.oe-out { max-height: 560px; }

/* 其他改图 · 任务流排版（2026-11-06 用户要求对齐截图）：上方任务流 + 底部固定输入栏 */
.oe-feed { max-width: 860px; margin: 0 auto; }
/* 第 52 轮（2026-11-13）：生成区改为 absolute 锚到 .main——滚动发生在 .content，
   生成区彻底不随滚动移动；水平与 .page 同宽（max 1180px 居中、两侧 28px）；底部间隙缩到 2px */
.oe-composer { position: sticky; bottom: 5px; z-index: 6; box-shadow: 0 8px 28px rgba(17,43,32,.14); }
.oe-comp-spacer { height: 150px; }
/* 生成区是 absolute 钉在底部的：给页面尾部留出与生成区等高的滚动余量，滚到底时最后一张卡不被盖住 */
.oe-comp-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oe-comp-refs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; align-items: center; }
.oe-comp-refs .oe-ref { flex-direction: row; padding: 4px 6px; gap: 6px; width: auto; align-items: center; }
.oe-comp-refs .oe-ref img { width: 42px; height: 42px; border-radius: 6px; }
.oe-comp-refs .oe-ref-n { max-width: 96px; }
.oe-comp-refs .oe-ref .ss-clear { font-size: 10.5px; padding: 2px 6px; }
.oe-ref-empty { font-size: 11.5px; color: var(--muted); }
.oe-drop-mini { width: 42px; height: 42px; border: 1.5px dashed var(--line-hi); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); cursor: pointer; flex: 0 0 auto; transition: .18s; }
.oe-drop-mini:hover, .oe-drop-mini.over { border-color: var(--accent); color: var(--accent); background: rgba(14,107,84,.06); }
.oe-comp-ta { min-height: 58px; resize: vertical; margin-top: 8px; }
.oe-comp-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.oe-chip { border: 1px solid var(--line); background: var(--panel-hi); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: .16s; white-space: nowrap; }
.oe-chip:hover { border-color: var(--accent); color: var(--accent); }
.oe-chip b { font-weight: 600; }
.oe-comp-hint { font-size: 11px; color: var(--muted); }
.oe-task-card { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; margin-bottom: 14px; }
.oe-task-card:last-child { margin-bottom: 0; }
.oe-task-card.is-err { border-color: rgba(197,62,62,.3); }
/* 第 46 轮：自己打字的任务卡提示词存档块（TTImage2 排版：提示词在成图上方，可复制 / 编辑 / 再次生成） */
.oe-task-prompt { margin: 10px 12px 0; padding: 8px 10px; background: rgba(14,107,84,.06); border: 1px dashed rgba(14,107,84,.25); border-radius: 8px; font-size: 12.5px; line-height: 1.7; color: #33544a; white-space: pre-wrap; word-break: break-word; max-height: 138px; overflow: auto; }
.oe-task-h { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.oe-task-ref { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 auto; background: var(--panel-hi); }
.oe-task-ref-ph { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.oe-task-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.oe-task-t b { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-task-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oe-t-time { color: var(--muted); font-size: 11px; margin-left: auto; }
.oe-task-run { display: flex; align-items: center; gap: 10px; padding: 16px 12px; color: var(--muted); font-size: 12px; }
.oe-task-run .oe-spin { font-size: 16px; animation: oePulse 1.2s infinite; flex: 0 0 auto; }
.oe-task-card.is-err .oe-task-run { color: #a33a3a; }
@keyframes oePulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* 产品替换 · 生成替换图卡内的模型选择 chips（2026-11-06 用户要求：去掉独立「图片模型」卡） */
.ss-model-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.oe-chip small { color: var(--muted); font-weight: 400; font-size: 11px; }
.oe-chip.sel { border-color: var(--accent); color: var(--accent); background: rgba(14,107,84,.08); box-shadow: inset 0 0 0 1px rgba(14,107,84,.18); }
.oe-chip.sel b { color: var(--accent); }
/* 图片点击放大（2026-11-06 用户要求）：所有用户上传 / 生成的图片缩略图 */
img.ss-thumb, .oe-ref img, img.oe-task-ref, img.ss-task-img, .ss-hist img, .thumb img, #imPreview img { cursor: zoom-in; }
/* 快捷预设（2026-11-06 用户要求）：高频场景一键填入提示词 */
.oe-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.oe-preset {
  appearance: none; border: 1px solid rgba(14,107,84,.28); background: rgba(14,107,84,.06);
  color: var(--accent); font: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.oe-preset:hover { background: rgba(14,107,84,.12); border-color: var(--accent); }
.oe-preset:active { transform: scale(.96); }
/* 第 45 轮：Skill 从大瓦片改为预设行里的小框，点选后文本域只读显示短标签，真实提示词不暴露 */
.oe-skill-chip.on { border-color: var(--accent); background: rgba(14,107,84,.16); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.oe-chip-lock { font-style: normal; font-size: 10px; opacity: .6; }
/* 隐藏式 Skill（2026-11-12）：并排瓦片，点选后文本域只读显示短标签，真实提示词不暴露 */
.oe-skills { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.oe-skill {
  flex: 1 1 0; min-width: 150px; appearance: none; cursor: pointer; text-align: left; font: inherit;
  border: 1.5px solid rgba(14,107,84,.28); background: rgba(14,107,84,.05);
  border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); transition: .16s;
}
.oe-skill:hover { border-color: var(--accent); background: rgba(14,107,84,.1); }
.oe-skill.on { border-color: var(--accent); background: rgba(14,107,84,.14); box-shadow: inset 0 0 0 1px var(--accent); }
.oe-skill-ico { font-size: 18px; }
.oe-skill-t { font-size: 13px; font-weight: 700; color: var(--accent); }
.oe-skill-lock { font-size: 10.5px; color: var(--muted); }
.oe-prompt-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; position: relative; }
.oe-prompt-wrap .oe-comp-ta { margin-top: 0; }
.oe-at-bar { display: flex; gap: 8px; align-items: center; }
/* 第 48 轮：@ 引用已上传参考图的弹出菜单（输入 @ 或点「🖼 @ 引用图片」触发） */
.oe-at-menu { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30; min-width: 250px; max-width: 340px; max-height: 264px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; }
.oe-at-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: inherit; text-align: left; }
.oe-at-item:hover { background: rgba(14,107,84,.08); }
.oe-at-item img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.oe-at-item b { color: #0e6b54; }
.oe-at-item small { color: #909090; font-size: 12px; }
.oe-at-empty { padding: 10px; font-size: 12.5px; color: #909090; }
/* 第 48/49 轮：其他改图任务流成图以正方形缩略图显示（居中裁切预览），点击仍放大看完整原图 */
.ss-other .ss-task-img { width: 200px; height: 200px; max-width: none; margin: 12px auto; object-fit: cover; }
.oe-comp-ta.oe-skill-mode { background: rgba(14,107,84,.06); color: var(--accent); font-weight: 600; cursor: default; }
.oe-skill-exit { align-self: flex-start; }
/* 输入栏 chip 的下拉菜单：向上弹出（输入栏吸底），点开能看到全部可选项与说明 */
.oe-dd { position: relative; }
.oe-dd-c { font-size: 10px; color: var(--muted); margin-left: 2px; }
.oe-dd-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(17,43,32,.16); padding: 6px; z-index: 40; }
.oe-dd-menu.hidden { display: none; }
.oe-dd-opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; text-align: left; transition: .14s; }
.oe-dd-opt:hover { background: rgba(14,107,84,.07); }
.oe-dd-opt.on { background: rgba(14,107,84,.1); }
.oe-dd-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.oe-dd-t b { font-size: 12.5px; color: var(--ink); }
.oe-dd-t small { font-size: 11px; color: var(--muted); }
.oe-dd-opt.on .oe-dd-t b { color: var(--accent); }
.oe-dd-check { width: 18px; text-align: center; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
/* 空参考图区：虚线框入口，点击/拖入/粘贴均可 */
.oe-ref-empty { width: 100%; border: 1.5px dashed var(--line-hi); border-radius: 8px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); text-align: center; cursor: pointer; transition: .18s; }
.oe-comp-refs.over .oe-ref-empty, .oe-ref-empty:hover { border-color: var(--accent); color: var(--accent); background: rgba(14,107,84,.06); }
.oe-comp-refs.over { outline: 1.5px dashed var(--accent); outline-offset: 3px; border-radius: 8px; }

/* 排版微调：备注与上方表单/卡片保持间距，不再贴到边线 */
.ss-kit + .note { margin-top: 14px; }
.ss-col .row + .m-sub, .ss-col .textarea + .m-sub { margin-top: 8px; }

/* =========================================================
   产品替换 · 紧凑版式（2026-11-07 用户要求）
   ① 隐藏页面里框出来的所有静态介绍 / 说明文字；动态状态、badge、按钮、标签保留。
   ② 重新排版：两栏等宽、卡片内边距与间距收窄、同一排方框等宽等高
      （三张上传框 / 五个步骤条 / 四个规格字段）。
   作用域 .ss-product 只命中产品替换页，不影响同用 .ss-sub 的「其他改图」等页面。
   ========================================================= */
.ss-product .ss-sub-t small,
.ss-product .ss-up-desc,
.ss-product .ss-up-hint,
.ss-product .m-sub:not(.ss-keep),
.ss-product .note,
.ss-product .ss-empty { display: none !important; }

.ss-product .ss-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ss-product .ss-col { gap: 12px; }
.ss-product .card { padding: 15px 16px; }
.ss-product .card-h { margin-bottom: 12px; }
.ss-product .ss-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ss-product .ss-step { justify-content: center; padding: 8px 6px; }

.ss-product .ss-uploads { gap: 12px; }
.ss-product .ss-up { display: flex; flex-direction: column; }
.ss-product .ss-up-h { margin-bottom: 6px; }
.ss-product .ss-drop { flex: 1 1 auto; min-height: 156px; }

.ss-product .ss-model-inline { margin: 0 0 8px; }
.ss-product .ss-status { padding: 7px 10px; font-size: 11.5px; line-height: 1.55; }
.ss-product .ss-kit { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ss-product .ss-unit { flex: 0 0 40px; width: 40px; padding: 10px 3px; }
.ss-product .ss-weight { padding: 10px 8px; font-size: 15px; }
.ss-product .ss-result { margin-top: 10px; }
.ss-product .ss-task-card { margin-bottom: 10px; }

/* 第 17 轮 · 模块一「透明包装生成」：用户要求去掉全部备注字幕。
   HTML 里已删除说明节点；这里再兜底隐藏，避免任何残留说明文字重新露出来。
   动态状态 / badge / 按钮 / 标签 / 模板编号 / 步骤条一律保留。 */
.ss-pack .ss-sub-t small,
.ss-pack .ss-up-desc,
.ss-pack .ss-up-hint,
.ss-pack .m-sub,
.ss-pack .note { display: none !important; }
.ss-pack .ss-empty { display: block !important; }
/* 条件性错误提示、动态空态（如「该分类暂无模板」）不属于备注字幕，保留可见 */
.ss-pack .pk-alert {
  margin: 0 0 8px; padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 11.5px; line-height: 1.55; color: #8A6516; background: #FFF6DF;
}
.ss-pack .ss-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 10px; }
.ss-pack .ss-step { padding: 6px 6px; }
.ss-pack .ss-uploads { grid-template-columns: 1fr; }
.ss-pack .ss-up .ss-drop { min-height: 132px; }
.ss-pack .ss-up .ss-thumb { max-height: 82px; }

/* 透明包装成图只显示一半大小：两列并排 + 图片高度上限 460 → 230 */
.ss-pack .ss-result {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin-top: 8px; align-items: start;
}
.ss-pack .ss-task-card { margin-bottom: 0; }
.ss-pack .ss-task-img { max-height: 230px; }
.ss-pack .ss-task-meta { padding: 6px 8px 2px; }
.ss-pack .ss-task-meta small { display: none; }
.ss-pack .ss-task-ops { padding: 4px 8px 8px; gap: 4px; }
.ss-pack .ss-task-ops .btn { font-size: 10.5px; padding: 4px 6px; }

/* 紧凑：卡片间距与内边距收窄，顶部横幅不再留大段说明的位置 */
.ss-pack .ss-sub-bar { margin-bottom: 10px; }
.ss-pack .ss-grid { gap: 10px; }
.ss-pack .ss-col { gap: 10px; }
.ss-pack .card { padding: 12px 13px; }
.ss-pack .card-h { margin-bottom: 10px; }
.ss-pack .ss-tpl-grid { max-height: 480px; margin-top: 8px; }
/* 第 18 轮：修分类下拉框「12px 上下 padding + 固定 32px 高」把选项文字裁成一条线的问题。
   一行放齐 select / 取消选择 / 已选状态，互不挤压；提高层级避免展开的选项被模板网格盖住。 */
.ss-pack .ss-tpl-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  position: relative; z-index: 5;
}
.ss-pack .ss-tpl-bar .select {
  flex: 1 1 auto; min-width: 156px; width: auto; max-width: none;
  height: 36px; line-height: 33px; padding: 0 30px 0 11px;
  font-size: 13px; font-weight: 600; color: var(--ink); background-color: #FFFFFF;
  border: 1.5px solid var(--line); text-overflow: ellipsis;
}
.ss-pack .ss-tpl-bar .select option { line-height: 1.6; padding: 6px 8px; font-size: 13px; color: var(--ink); }
.ss-pack .ss-tpl-bar .btn { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; font-size: 12px; }
.ss-pack .ss-tpl-bar .badge { flex: 0 0 auto; white-space: nowrap; }
.ss-pack .ss-tpl-grid { position: relative; z-index: 0; }

/* 第 19 轮 · 三输入标题统一等级：① 产品图 / ② 准确产品名 / ③ 透明包装模板
   字号、编号、文字颜色与「必填」小方框完全一致；红色星号 / 必选 1 只 / 步骤条必填角标全部去掉。 */
.ss-pack .pk-h {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 10px; font-size: 14.5px; line-height: 1.35;
  font-weight: 600; color: var(--ink);
}
.ss-pack .pk-h .pk-no { color: var(--accent); font-size: 15px; font-weight: 800; line-height: 1; }
.ss-pack .pk-h b { color: var(--ink); font-size: 14.5px; font-weight: 650; }
.ss-pack .pk-h .badge { margin-left: 0; font-size: 11px; padding: 2px 8px; }
/* 选中上传卡时标题不再变色，避免三处视觉等级再次分叉 */
.ss-pack .ss-up.sel .pk-h b { color: var(--ink); }
.ss-pack .ss-up.sel .ss-up-h::after { display: none; }
/* 模板网格：可视区完整容纳 3 行 × 4 列，缩略图略放大且仍完整显示不裁提手 */
.ss-pack .ss-tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss-pack .ss-tpl-item img { height: 128px; }
@media (max-width: 560px) {
  .ss-pack .ss-tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ss-pack .ss-tpl-bar { flex-wrap: wrap; }
  .ss-pack .ss-tpl-bar .select { flex: 1 1 100%; min-width: 0; }
}

/* 任务行：失败要能看完整原因，并放得下「重新生成」按钮 */
.ss-run-ops { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
.ss-run-row.is-err { align-items: flex-start; }
.ss-run-row.is-err .ss-run-ico { margin-top: 1px; }
.ss-run-row.is-err .ss-run-detail {
  color: var(--danger); white-space: normal; word-break: break-word;
  max-height: 88px; overflow-y: auto; padding-right: 2px;
}
.ss-run-detail { white-space: normal; word-break: break-word; }
@media (max-width: 720px) {
  .ss-pack .ss-result { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) { .ss-product .ss-grid { grid-template-columns: 1fr; } }

/* 第 25 轮（2026-11-10）：场景替换页改版
   ① 第五部分 · 可用透明包装图：小图网格，每行 3～4 张，点图一键带入 ② 位
   ② 场景成图：每行 2 张小图 */
.ss-product .ss-packlib {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 8px; align-items: start;
}
@media (min-width: 1500px) {
  .ss-product .ss-packlib { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ss-product .ss-packlib .ss-task-card { margin-bottom: 0; }
.ss-product .ss-packlib .ss-task-img { max-height: 150px; cursor: pointer; }
.ss-product .ss-packlib .ss-task-img:hover { border-color: var(--accent, #4f7cff); }
.ss-product .ss-packlib .ss-task-meta { padding: 5px 8px 0; }
.ss-product .ss-packlib .ss-task-meta b { font-size: 11.5px; }
.ss-product .ss-packlib .ss-task-meta small { display: none; }
.ss-product .ss-packlib .ss-task-ops { padding: 4px 6px 7px; gap: 3px; }
.ss-product .ss-packlib .ss-task-ops .btn { font-size: 10.5px; padding: 3px 6px; }
.ss-product .ss-sceneres {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 8px; align-items: start;
}
.ss-product .ss-sceneres .ss-task-card { margin-bottom: 0; }
.ss-product .ss-sceneres .ss-task-img { max-height: 300px; }
.ss-product .ss-sceneres .ss-task-meta { padding: 6px 8px 1px; }
.ss-product .ss-sceneres .ss-task-ops { padding: 5px 8px 9px; gap: 4px; }
@media (max-width: 720px) {
  .ss-product .ss-packlib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-product .ss-sceneres { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ss-product .ss-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-product .ss-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-product .ss-drop { min-height: 110px; }
}

/* =========================================================
   其他改图 · 紧凑版式（2026-11-07 用户要求）
   ① 隐藏框出的介绍文字：顶部长横幅、任务流卡片内空状态与说明；同类说明一并收掉。
      动态状态栏、上传虚线占位、chips、按钮、输入控件保留。
   ② 任务流卡片原本 860px 居中、底部输入栏 1140px 全宽，两者差 280px；
      现统一为页面全宽且左右对齐，并收紧内边距与间距。
   作用域 .ss-other 只命中其他改图页，不影响产品替换页（.ss-product）。
   ========================================================= */
.ss-other .ss-sub-t small,
.ss-other .oe-feed > .m-sub,
.ss-other .oe-feed .ss-empty,
.ss-other .oe-comp-hint { display: none !important; }

.ss-other .ss-sub-bar { margin-bottom: 12px; }
.ss-other .oe-feed { max-width: none; margin: 0 0 12px; }
.ss-other .oe-feed .card,
.ss-other .oe-composer { padding: 15px 16px; }
.ss-other .card-h { margin-bottom: 10px; }
.ss-other .ss-status { padding: 7px 10px; font-size: 11.5px; line-height: 1.55; }
.ss-other .oe-ref-empty { padding: 7px 10px; }
.ss-other .oe-comp-ta { min-height: 52px; margin-top: 6px; }
.ss-other .oe-presets { margin-bottom: 5px; }
.ss-other .oe-comp-bar { margin-top: 6px; }

/* 生成记录汇总（跨设备） */
.gen-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gen-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .18s, transform .16s; }
.gen-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.gen-thumb { position: relative; aspect-ratio: 9 / 16; background: var(--panel-hi); cursor: zoom-in; overflow: hidden; }
.gen-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-thumb img.gen-broken { object-fit: contain; opacity: .35; }
.gen-info { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gen-name { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gen-time { font-size: 11.5px; color: var(--muted); }
.gen-spec { font-size: 11.5px; color: var(--ink-2); background: var(--panel-hi); border-radius: var(--r-sm); padding: 4px 7px; }
.gen-actions { display: flex; gap: 6px; margin-top: 2px; }
.gen-actions .btn { flex: 1; }

@media (max-width: 1180px) { .ss-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ss-uploads { grid-template-columns: 1fr; }
  .ss-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-drop { min-height: 110px; }
  .gen-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* =========================================================
   人事 · 自动编号 / 时间选择 / 台账扩展列
   ========================================================= */
.lb-hint { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--muted); margin-left: 6px; }
input.auto-no { background: var(--panel-hi); color: var(--cyan); font-family: var(--mono); font-weight: 700; letter-spacing: .3px; cursor: default; }

/* 日期时间控件：不再撑破所在列（原 min-width:210px 会溢出 160px 的栅格列） */
input[type="datetime-local"] {
  min-width: 0; width: 100%; max-width: 100%;
  padding-right: 8px;
  -webkit-appearance: none; appearance: none;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator { margin-left: 2px; opacity: .65; cursor: pointer; }
.row > div:has(> input[type="datetime-local"]) { flex: 1 1 224px; min-width: 200px; }
.row > div > .input, .row > div > .select, .row > div > .textarea { max-width: 100%; }
@media (max-width: 720px) {
  .row > div:has(> input[type="datetime-local"]) { flex: 1 1 100%; min-width: 0; }
}
#lgBody { overflow-x: auto; }
table.lg-tb { min-width: 1080px; }
table.lg-tb td { word-break: break-word; }

/* =========================================================
   人事 · AI 出题评分 / 飞书听记链接 / 最终面试结果
   ========================================================= */
.ai-subject { margin: 12px 0 14px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--panel-hi); border: 1px dashed var(--line-hi); font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-subject b { color: var(--cyan); font-family: var(--mono); }
.ai-subject .rec-meta { margin-left: auto; }

.ai-two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; }
.ai-col { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--panel-hi); }
.ai-col-h { font-size: 12.5px; font-weight: 700; color: var(--cyan); padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.ai-qrow { display: grid; grid-template-columns: 34px 152px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ai-qrow:last-child { border-bottom: 0; }
.ai-qid { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--violet); }
.ai-qrow .select { padding: 5px 8px; font-size: 12px; }
.ai-qtitle { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-rrow { padding: 5px 0; }
.ai-rrow .label { margin-bottom: 4px; font-size: 11.5px; }
.ai-rrow .textarea { min-height: 46px; font-size: 12px; }
.ai-paste { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(14,107,84,.04), rgba(124,107,217,.04)); }
.ai-tools { align-items: center; }
.ai-tools .m-sub { flex: 1 1 260px; min-width: 0; }

.ai-link-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.ai-link-row:last-child { border-bottom: 0; }
.ai-link-i { flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(14,107,84,.1); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ai-link-u { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-link-row .rec-meta { flex: 0 0 auto; }

.ai-final-sum { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.ai-verdict { border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); }
.ai-verdict.ok { background: linear-gradient(140deg, rgba(30,158,106,.12), rgba(30,158,106,.03)); border-color: rgba(30,158,106,.35); }
.ai-verdict.no { background: linear-gradient(140deg, rgba(212,91,78,.1), rgba(212,91,78,.02)); border-color: rgba(212,91,78,.3); }
.ai-verdict-l { font-size: 11.5px; letter-spacing: 1px; color: var(--muted); }
.ai-verdict-v { font-size: 40px; line-height: 1.25; font-weight: 800; }
.ai-verdict.ok .ai-verdict-v { color: var(--ok); }
.ai-verdict.no .ai-verdict-v { color: var(--danger); }
.ai-verdict-w { font-size: 11.5px; line-height: 1.7; color: var(--ink-2); }
.ai-metrics { align-self: start; }
.ai-confirm { align-items: flex-end; }
.ai-final-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ai-chip { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-hi); font-size: 12px; }
#aiFinalBody table.tb td { font-size: 12px; }

@media (max-width: 1000px) {
  .ai-two, .ai-final-sum { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ai-qrow { grid-template-columns: 30px 1fr; }
  .ai-qtitle { display: none; }
}


/* ===== 透明包装模板选择区（2026-11-07 第 10 轮新增） ===== */
.ss-tpl { margin-top: 8px; }
.ss-tpl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ss-tpl-bar .select { max-width: 220px; height: 32px; font-size: 12px; }
.ss-tpl-bar .badge { font-size: 11px; }
.ss-tpl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px; max-height: 288px; overflow-y: auto; margin-top: 8px; padding: 6px;
  border: 1px solid #e3e9e5; border-radius: 8px; background: #f8faf9;
}
.ss-tpl-item {
  position: relative; overflow: hidden; cursor: pointer; background: #fff;
  border: 2px solid transparent; border-radius: 7px; transition: border-color .15s, box-shadow .15s;
}
.ss-tpl-item:hover { border-color: #9dc9b9; }
.ss-tpl-item img { display: block; width: 100%; height: 118px; object-fit: contain; background: #fff; }
/* ⤢ 放大角标（2026-11-09 第 14 轮）：点角标看大图，点卡片其它区域为选中 */
.ss-tpl-zoom {
  position: absolute; top: 3px; right: 3px; z-index: 2;
  width: 23px; height: 23px; padding: 0; line-height: 20px; text-align: center;
  border: 1px solid rgba(14,107,84,.3); border-radius: 6px;
  background: rgba(255,255,255,.92); color: #0E6B54; font-size: 14px;
  cursor: zoom-in; opacity: .82; transition: opacity .15s, background .15s, color .15s;
}
.ss-tpl-item:hover .ss-tpl-zoom, .ss-tpl-zoom:focus-visible { opacity: 1; }
.ss-tpl-zoom:hover { background: #0E6B54; color: #fff; border-color: #0E6B54; }
.ss-tpl-item span {
  display: block; padding: 3px 4px; font-size: 10px; line-height: 1.35; color: #4a5a54;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-tpl-item.sel { border-color: #0E6B54; box-shadow: 0 0 0 2px rgba(14,107,84,.16); }
.ss-tpl-item.rec::after {
  content: '荐'; position: absolute; top: 3px; left: 3px; padding: 1px 4px;
  font-size: 10px; color: #fff; background: rgba(14,107,84,.82); border-radius: 4px;
}
/* 成品风格参考（2026-11-09 第 15 轮）：竖版成品图比方形模板更高，完整显示不裁切 */
.ss-ref-item img { height: 148px; background: #fff; }
.ss-ref-item span { text-align: center; }
.ss-ref-item.rec::after { content: '荐'; }

/* ===== 第 37 轮（2026-11-13）：人事台账 序号 / 日期排序 / 长评价可展开 ===== */
/* 新增表单里的长文本字段：占整行 + 更高、可拉伸的文本框 */
.lg-field-long { flex: 1 1 100% !important; }
.lg-ta { min-height: 110px; line-height: 1.7; }
/* 记录列表序号列 */
.lg-tb th.lg-seq, .lg-tb td.lg-seq { width: 44px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-tb td.lg-seq { font-weight: 600; }
/* 日期表头：可点击切换升 / 降序 */
.lg-tb th.lg-th-sort { cursor: pointer; user-select: none; color: var(--accent); }
.lg-tb th.lg-th-sort:hover { background: rgba(14,107,84,.08); }
.lg-sort-arrow { font-size: 10px; margin-left: 2px; }
/* 记录卡片列表（复试记录 / 阶段评价记录）序号徽标 */
.rec-seq { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 5px; margin-right: 8px; border-radius: 6px; background: rgba(14,107,84,.1); color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 长评价单元格：默认折叠，点「展开」看全文 */
.lg-tb .lg-cell { white-space: pre-wrap; word-break: break-word; line-height: 1.65; max-width: 320px; }
.lg-tb .lg-cell.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lg-more { margin-top: 5px; padding: 1px 0; border: 0; background: none; color: var(--accent); font-size: 11.5px; cursor: pointer; }
.lg-more:hover { text-decoration: underline; }

/* ===== 第 38 轮（2026-11-13）：总经理复试台 · 日期筛选 / 本期一览 ===== */
.gm-filter { padding: 14px 18px; border-left: 3px solid var(--accent); }
.gm-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-filter-lb { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.gm-filter-row > .select { width: auto; min-width: 168px; flex: 0 0 auto; }
.gm-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-range .input { width: 152px; }
.gm-range.hidden { display: none; }
.gm-filter-now { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.gm-filter-now b { color: var(--accent); }
.gm-filter > .m-sub { margin-top: 9px; line-height: 1.6; }
.gm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.gm-stat { background: var(--card, #fff); border: 1px solid var(--line, #e6e9e5); border-radius: 12px; padding: 14px 16px; }
.gm-stat .lb { font-size: 12px; color: var(--muted); }
.gm-stat .nm { font-size: 26px; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.gm-stat .nm small { font-size: 12px; font-weight: 500; color: var(--muted); }
.gm-stat .nm.green { color: var(--accent); }
.gm-table-wrap { overflow-x: auto; }
.gm-tb { min-width: 820px; }
.gm-tb td { vertical-align: middle; }
.gm-tb .rec-meta { margin-top: 2px; }
@media (max-width: 760px) { .gm-stats { grid-template-columns: repeat(2, 1fr); } .gm-filter-now { margin-left: 0; } }

/* ===== 第 39 轮：台账回收站 ===== */
.lg-trash-card { border-left: 3px solid #f59e0b; }
.lg-trash-tb td { vertical-align: middle; }
.lg-trash-tb .copy-btn { margin-left: 4px; }


/* ===== 第 43 轮：场景替换 2（新版对比页） ===== */
.ss2 .ss-uploads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s2-pos-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.s2-pos { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; transition: .16s; font-family: inherit; }
.s2-pos i { font-style: normal; font-size: 13px; }
.s2-pos:hover { border-color: var(--accent); color: var(--accent); }
.s2-pos.on { border-color: var(--accent); color: var(--accent); background: rgba(14,107,84,.08); box-shadow: inset 0 0 0 1px rgba(14,107,84,.16); font-weight: 600; }
.s2-pos-sub { margin: 14px 0 8px; font-size: 12px; color: var(--muted); }
.s2-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s2-style { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .16s; font-family: inherit; }
.s2-style b { font-size: 12.5px; color: var(--ink); font-weight: 650; }
.s2-style small { font-size: 11px; color: var(--muted); line-height: 1.55; }
.s2-style:hover { border-color: var(--accent); }
.s2-style.on { border-color: var(--accent); background: rgba(14,107,84,.06); box-shadow: inset 0 0 0 1px rgba(14,107,84,.16); }
.s2-style.on b { color: var(--accent); }
.s2-radio-grid { display: flex; flex-direction: column; gap: 8px; }
.s2-radio { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; cursor: pointer; background: var(--panel); }
.s2-radio input { margin-top: 3px; accent-color: var(--accent); }
.s2-radio span { display: flex; flex-direction: column; gap: 2px; }
.s2-radio b { font-size: 12.5px; color: var(--ink); font-weight: 650; }
.s2-radio small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.s2-radio:hover { border-color: var(--accent); }
.s2-checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.s2-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.s2-checks input { accent-color: var(--accent); }
@media (max-width: 1100px) { .s2-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .s2-style-grid, .ss2 .ss-uploads { grid-template-columns: 1fr; } }

/* ===== 第 44 轮：场景替换 2 简化（默认全量替换 + 特殊备注第一优先级） ===== */
.s2-note-card { border-color: rgba(14,107,84,.34); box-shadow: inset 0 0 0 1px rgba(14,107,84,.10); }
.s2-preset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.s2-preset { display: inline-flex; align-items: center; border: 1px dashed var(--line); background: var(--panel-hi); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: .16s; font-family: inherit; }
.s2-preset:hover { border-color: var(--accent); border-style: solid; color: var(--accent); }
.s2-preset.on { border-style: solid; border-color: var(--accent); color: var(--accent); background: rgba(14,107,84,.08); font-weight: 600; }
.s2-adv { padding: 0; overflow: hidden; }
.s2-adv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.s2-adv > summary::-webkit-details-marker { display: none; }
.s2-adv > summary::before { content: '▸'; color: var(--muted); font-size: 12px; transition: .16s; }
.s2-adv[open] > summary::before { transform: rotate(90deg); }
.s2-adv > summary b { font-size: 13.5px; color: var(--ink); }
.s2-adv > summary small { font-size: 11.5px; color: var(--muted); }
.s2-adv-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.s2-adv-row { display: flex; flex-direction: column; gap: 6px; }
