/*
 * 数字人 SaaS 控制台 — 共享样式。金色主题，与公开站 demo_site/index.html 一致。
 * 背景 #0f1520 深蓝灰，金色 #d4a853 + 金色渐变，PingFang SC。
 */
:root {
  --bg: #0f1520;
  --bg2: #182030;
  --sidebar: #0a0f18;
  --card: #1a2535;
  --card2: #202c3f;
  --line: #2a3545;
  --line2: #3a4555;
  --ink: #e8e4dc;
  --sub: #9a9a8e;
  --mut: #6b6860;
  --gold: #d4a853;
  --gold2: #b8923e;
  --gold-soft: rgba(212, 168, 83, 0.08);
  --gold-soft2: rgba(212, 168, 83, 0.14);
  --gold-grad: linear-gradient(135deg, #f8eab0 0%, #e3c25a 38%, #cfa236 72%, #a87b1e 100%);
  --serif: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --danger: #e06a5a;
  --ok: #7fc99a;

  /* 间距刻度（4pt 基准）——布局统一用它，避免随手写魔法值 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* 圆角层级：控件小、卡片中、面板大、胶囊全圆 */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* 阴影层级：静置 sm、卡片 md、悬浮/抽屉 lg——深色底以柔和层次替代硬边 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 1px 1px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, 0.42), 0 2px 6px -3px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.62), 0 4px 12px -6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 26px 60px -24px rgba(0, 0, 0, 0.7), 0 8px 20px -10px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 28px -12px rgba(212, 168, 83, 0.4);

  /* 顶部高光：给卡片一层极淡的内描边，暗色下更有质感 */
  --edge-hi: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* 统一过渡与缓动 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.18s;
  --dur-fast: 0.12s;

  /* 可访问焦点环（金色，弱化默认蓝框） */
  --focus-ring: 0 0 0 3px rgba(212, 168, 83, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* 统一键盘焦点环：仅键盘可见，鼠标点击不触发；金色系与主题一致。
   不改 border-radius，焦点环自动跟随元素本身圆角。 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* 细滚动条：深色底下更克制精致（WebKit + Firefox） */
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #4a5566; background-clip: padding-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
.gold-grad {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== 登录页 ===================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 168, 83, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(212, 168, 83, 0.05), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--card2) 0%, var(--card) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px 34px;
  box-shadow: var(--shadow-lg), var(--edge-hi);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--sub);
  margin-bottom: 6px;
}
.login-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 0 10px rgba(212, 168, 83, 0.5);
}
.login-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 20px 0 6px;
}
.login-sub { color: var(--sub); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder { color: var(--mut); }
.field input:hover { border-color: var(--line2); }
.field input:focus { border-color: var(--gold); box-shadow: var(--focus-ring); background: #1b2434; }
.btn-gold {
  width: 100%;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a1206;
  background: var(--gold-grad);
  box-shadow: var(--shadow-gold), var(--edge-hi);
  transition: filter var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 12px 32px -12px rgba(212, 168, 83, 0.5), var(--edge-hi); }
.btn-gold:active { transform: translateY(1px); filter: brightness(0.98); }
.btn-gold:disabled { opacity: 0.55; cursor: default; box-shadow: none; filter: saturate(0.8); }
.btn-gold:disabled:hover { transform: none; }
.login-error {
  display: none;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(224, 106, 90, 0.10);
  border: 1px solid rgba(224, 106, 90, 0.35);
  color: var(--danger);
  font-size: 13px;
  animation: shake 0.3s var(--ease);
}
.login-error.show { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.login-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--mut);
}

/* ===================== 控制台外壳 ===================== */
.console-body {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}
.sidebar {
  width: 232px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}
.sb-logo {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid var(--line);
  height: 61px;
}
.sb-logo .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 0 10px rgba(212, 168, 83, 0.5);
}
.sb-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  border-radius: var(--r-sm);
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  position: relative;
}
.sb-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.sb-item.active {
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}
/* 选中态左侧金色指示条：绝对定位不撑动布局 */
.sb-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--gold-grad);
}
.sb-item .icon { font-size: 16px; width: 22px; text-align: center; opacity: 0.9; }
.sb-item.active .icon { opacity: 1; }
.sb-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.sb-foot button {
  font-size: 13px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  width: 100%;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.sb-foot button:hover { color: var(--gold); background: rgba(255, 255, 255, 0.035); }

.hamburger {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 60;
  width: 40px; height: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hamburger:hover { border-color: var(--gold); color: var(--gold); }
.sb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 45;
}

.main {
  margin-left: 232px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - 232px);
}
.topbar {
  height: 61px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(15, 21, 32, 0.82);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 40;
}
.breadcrumb { font-size: 14px; color: var(--mut); letter-spacing: 0.2px; }
.breadcrumb b { color: var(--ink); font-weight: 700; }
.user { display: flex; align-items: center; gap: 10px; }
.user .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3545, #141c29);
  border: 1px solid var(--line2);
  box-shadow: var(--edge-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.user .who { font-size: 13px; color: var(--ink); line-height: 1.35; }
.user .who .name-text { font-weight: 600; }
.user .who .phone { font-size: 11px; color: var(--mut); }
.logout-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--r-xs);
  margin-left: 4px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.logout-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.content { padding: 32px; flex: 1; max-width: 1560px; width: 100%; }
.panel { display: none; }
.panel.active { display: block; animation: panelIn 0.28s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 6px; }
.panel .panel-intro { color: var(--sub); font-size: 14px; margin-bottom: 26px; max-width: 720px; }
.stub-note {
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 44px 40px;
  text-align: center;
  color: var(--mut);
  font-size: 14px;
  background: var(--card);
  box-shadow: var(--edge-hi);
}

/* ===================== 原型 v2 基础件：按钮 / 徽标 ===================== */
.btn-line {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-xs);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-line:active { transform: translateY(0.5px); }
.btn-danger-line {
  background: transparent;
  border: 1px solid rgba(224, 106, 90, 0.4);
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-xs);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-danger-line:hover { background: rgba(224, 106, 90, 0.12); border-color: rgba(224, 106, 90, 0.6); }
.btn-danger-line:active { transform: translateY(0.5px); }
.btn-danger-line:disabled {
  opacity: 0.45;
  cursor: default;
  background: transparent;
  border-color: rgba(224, 106, 90, 0.28);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sub);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  white-space: nowrap;
  line-height: 1.5;
}
.badge.gold { color: var(--gold); border-color: rgba(212, 168, 83, 0.4); background: var(--gold-soft); }
.badge.green { color: var(--ok); border-color: rgba(127, 201, 154, 0.35); background: rgba(127, 201, 154, 0.08); }
.badge.blue { color: #7ab8e0; border-color: rgba(122, 184, 224, 0.35); background: rgba(122, 184, 224, 0.08); }
.badge.dim { color: var(--mut); }

/* ===================== 左侧分区骨架：lib-layout / lib-side ===================== */
.lib-layout {
  display: grid;
  grid-template-columns: 214px 1fr;
  gap: 24px;
  align-items: start;
}
.lib-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  position: sticky;
  top: 85px;
  box-shadow: var(--edge-hi);
}
.lib-side-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--mut);
  text-transform: uppercase;
  padding: 6px 10px 10px;
  letter-spacing: 1.2px;
}
.lib-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-align: left;
}
.lib-sec + .lib-sec { margin-top: 2px; }
.lib-sec:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.lib-sec.active {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(212, 168, 83, 0.35);
  font-weight: 600;
}
.lib-sec > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-sec .n {
  font-size: 11px;
  font-weight: 500;
  color: var(--mut);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lib-sec.active .n { color: var(--gold); border-color: rgba(212, 168, 83, 0.4); background: var(--gold-soft2); }
.lib-sec-divider { border-top: 1px solid var(--line); margin: 8px 4px; }
.lib-main { min-width: 0; }

/* ===================== 统一媒体卡封面（4:3 外框 + letterbox + 角标） ===================== */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b111b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb .th-pad {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(20px) brightness(0.42) saturate(0.8);
  transform: scale(1.35);
  background: #0b111b;
}
.thumb .th-pad img,
.thumb img.th-pad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .th-inner {
  position: relative;
  z-index: 1;
  flex: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: #06090f;
}
.thumb .th-inner.port { height: 92%; aspect-ratio: 9 / 16; }
.thumb .th-inner.land { width: 94%; aspect-ratio: 16 / 9; }
.thumb .th-inner.square { width: 74%; aspect-ratio: 1 / 1; }
.thumb img.th-img,
.thumb .th-inner > img,
.thumb .th-inner > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .th-inner.contain > img,
.thumb .th-inner.contain > video,
.thumb img.th-img.contain { object-fit: contain; background: #06090f; }
.thumb .th-video { background: #06090f; }
.thumb .th-unavailable {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: #0b111b;
  color: var(--mut);
  font-size: 12px;
  line-height: 1.5;
}
.thumb .th-unavailable-title {
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb .th-bg { position: absolute; inset: 0; }
.thumb .th-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.05) 40%, rgba(6, 10, 18, 0.72) 100%);
}
.thumb .th-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 3px);
}
.thumb svg {
  position: relative;
  z-index: 2;
  width: 38%;
  max-width: 84px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.thumb .th-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.thumb .th-dur,
.thumb .th-orient {
  position: absolute;
  top: 8px;
  z-index: 3;
  background: rgba(6, 10, 18, 0.78);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}
.thumb .th-dur {
  right: 8px;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.thumb .th-orient {
  left: 8px;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
}
.thumb .th-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 10, 18, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb .th-play::after {
  content: "";
  display: block;
  border-left: 13px solid rgba(255, 255, 255, 0.92);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}
*:hover > .thumb .th-play,
.thumb:hover .th-play { opacity: 1; }

/* 兼容现有素材卡：后续面板会逐步改用 .thumb 结构。 */
.mat-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0b111b;
  overflow: hidden;
}
.mat-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mat-thumb-bg, radial-gradient(circle at center, rgba(212, 168, 83, 0.10), transparent 65%));
  filter: blur(20px) brightness(0.48);
  transform: scale(1.28);
  z-index: 0;
}
.mat-thumb.is-land::after,
.mat-thumb.is-port::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.05) 44%, rgba(6, 10, 18, 0.58) 100%);
  z-index: 1;
}
.mat-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mat-thumb.is-land .mat-thumb-img { object-fit: cover; }
.mat-thumb.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mat-thumb.no-thumb::before { display: none; }
.mat-thumb-fallback { color: var(--mut); font-size: 12px; position: relative; z-index: 2; }

/* ===================== 通用抽屉 / 弹层 / toast ===================== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); z-index: 70; animation: fadeIn 0.2s var(--ease); }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 430px;
  max-width: 94vw;
  background: var(--bg2);
  border-left: 1px solid var(--line);
  z-index: 75;
  transform: translateX(100%);
  transition: transform 0.26s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer.wide { width: 560px; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 21, 32, 0.5);
}
.drawer-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; word-break: break-all; }
.drawer-close {
  flex: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--sub);
  font-size: 20px;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.drawer-close:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-hero { border-radius: var(--r-md); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-md); }
/* 抽屉内小节标题（归属信息 / 选材清单等，JS 动态插入） */
.drawer-sec-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.3px;
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tag-table { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; }
.tag-table dt { font-size: 12px; color: var(--sub); }
.tag-table dd { font-size: 13px; color: var(--ink); word-break: break-word; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.65);
  backdrop-filter: blur(3px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--card2) 0%, var(--card) 55%);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), var(--edge-hi);
  animation: popUp 0.22s var(--ease);
}
@keyframes popUp { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.modal-title { font-size: 17px; font-weight: 800; letter-spacing: -0.1px; }
.modal-x {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--sub);
  font-size: 19px;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.modal-x:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.modal-body { padding: 18px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 24px 24px; }
.modal-desc { font-size: 13px; color: var(--sub); margin-bottom: 16px; line-height: 1.7; }
.modal-desc b { color: var(--ink); }
.modal.confirm { max-width: 400px; }
.confirm-text { font-size: 14px; color: var(--sub); line-height: 1.8; padding: 6px 0 4px; }
.confirm-text b { color: var(--ink); }
.confirm-warn {
  color: var(--danger);
  font-size: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: rgba(224, 106, 90, 0.08);
  border: 1px solid rgba(224, 106, 90, 0.25);
  line-height: 1.6;
}
.confirm-name-field { margin-top: 18px; margin-bottom: 0; }
.confirm-name-field label b { color: var(--ink); }

.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(10, 15, 24, 0.94);
  border: 1px solid rgba(212, 168, 83, 0.5);
  color: var(--ink);
  font-size: 13px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: toastIn 0.22s var(--ease);
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
.toast b { color: var(--gold); }

/* 视频占位/缺片提示：mock 作品文件为占位（404），避免裸黑屏看起来像 bug。
   叠加在 <video> 之上，仍保留 <video controls>；有真实作品时由 JS 隐藏。 */
.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(212, 168, 83, 0.10), transparent 70%),
    #0b111b;
  color: var(--sub);
  pointer-events: none; /* 不挡视频控件 */
  z-index: 2;
}
.video-fallback .vf-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.video-fallback .vf-sub { font-size: 12px; color: var(--mut); line-height: 1.6; max-width: 260px; }

/* ===================== 响应式 (≤900px) ===================== */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .console-body.nav-open .sidebar { transform: translateX(0); }
  .console-body.nav-open .sb-backdrop { display: block; }
  .main { margin-left: 0; width: 100%; }
  .topbar { padding-left: 60px; padding-right: 16px; gap: 10px; }
  /* 面包屑不换行、超长省略，避免与右侧用户区挤成两行。 */
  .breadcrumb {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }
  .user { gap: 8px; flex-shrink: 0; }
  /* 顶栏「退出」按钮在移动端冗余（侧栏抽屉底部已有退出）→ 隐藏，省出横向空间。 */
  .topbar .logout-btn { display: none; }
  .content { padding: 20px 16px; }
  .user .who .name-text { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user .who .phone { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lib-layout { grid-template-columns: 1fr; }
  .lib-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
  }
  .lib-side-title { display: none; }
  .lib-sec { width: auto; padding: 7px 12px; }
  .lib-sec-divider { display: none; }
  .drawer,
  .drawer.wide { width: 100%; max-width: 100%; }
}

/* ===================== 数字人管理面板 (panel-avatars.js) ===================== */
.btn-gold.sm {
  width: auto;
  padding: 9px 17px;
  font-size: 13px;
  letter-spacing: 0.2px;
  border-radius: var(--r-xs);
}
.badge.danger {
  color: var(--danger);
  border-color: rgba(224, 106, 90, 0.35);
  background: rgba(224, 106, 90, 0.08);
}

.f-field { margin-bottom: 18px; }
.f-field label {
  display: block;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
  font-weight: 600;
}
.f-field label .req {
  font-size: 11px;
  color: #1a1206;
  background: var(--gold-grad);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  font-weight: 700;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.f-field label .opt {
  font-size: 11px;
  color: var(--sub);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  font-weight: 500;
}
.f-field input[type="text"],
.f-field input[type="file"],
.f-field textarea,
.f-field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.f-field input[type="text"]::placeholder,
.f-field textarea::placeholder { color: var(--mut); }
.f-field input[type="text"]:hover,
.f-field textarea:hover,
.f-field select:hover { border-color: var(--line2); }
.f-field input[type="file"] {
  color: var(--sub);
  border-style: dashed;
}
.f-field input[type="text"]:focus,
.f-field input[type="file"]:focus,
.f-field textarea:focus,
.f-field select:focus { border-color: var(--gold); box-shadow: var(--focus-ring); background: #1b2434; }
.f-field input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: var(--r-xs);
  padding: 7px 13px;
  margin-right: 12px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.f-field input[type="file"]::file-selector-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.f-hint {
  font-size: 12px;
  color: var(--mut);
  margin-top: 6px;
  line-height: 1.6;
}
.f-filename {
  font-size: 12px;
  color: var(--gold);
  margin-top: 6px;
  word-break: break-all;
  display: none;
}
.f-filename.show { display: block; }
.logic-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.8;
  margin-bottom: 20px;
}
.logic-note strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.logic-note b {
  color: var(--ink);
  font-weight: 700;
}
.modal-error {
  border: 1px solid rgba(224, 106, 90, 0.35);
  background: rgba(224, 106, 90, 0.1);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
}

.empty {
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 52px 24px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 168, 83, 0.045), transparent 65%),
    var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  box-shadow: var(--edge-hi);
}
.empty .e-icon {
  font-size: 30px;
  opacity: 0.9;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--bg2);
  border: 1px solid var(--line);
  margin-bottom: 4px;
}
.empty .e-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.empty .e-sub {
  font-size: 13px;
  color: var(--mut);
  max-width: 420px;
  line-height: 1.7;
}
.empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.side-new,
.side-new.btn-gold {
  width: 100%;
  margin-bottom: 12px;
}
.av-loading {
  padding: 14px 12px;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.6;
}
.av-loading-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.p-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.28), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.pd-head {
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(130% 140% at 0% 0%, rgba(212, 168, 83, 0.06), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md), var(--edge-hi);
}
.pd-head .p-avatar {
  width: 62px;
  height: 62px;
  font-size: 25px;
}
.pd-head-info {
  flex: 1;
  min-width: 180px;
}
.pd-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.pd-note {
  font-size: 13px;
  color: var(--sub);
  margin-top: 3px;
}
.pd-meta {
  font-size: 12px;
  color: var(--mut);
  margin-top: 6px;
}
.pd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.av-sec { margin-bottom: 30px; }
.av-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.av-sec-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.1px;
  color: var(--ink);
}
.av-sec-cnt {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 999px;
  padding: 0 9px;
  font-weight: 700;
}
.av-sec-act {
  margin-left: auto;
  white-space: nowrap;
}
.av-voice-empty {
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--card);
  padding: 18px 20px;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.7;
}

.avt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.avt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm), var(--edge-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.avt-card:hover {
  border-color: rgba(212, 168, 83, 0.55);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.av-thumb svg { color: rgba(255, 255, 255, 0.9); }
.av-thumb-initial {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46%;
  max-width: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.avt-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.avt-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.avt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.avt-default {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}
.avt-default span { color: var(--mut); }
.avt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mut);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.avt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  flex-wrap: wrap;
  box-shadow: var(--edge-hi);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.vc-row:hover { border-color: var(--line2); background: var(--card2); }
.vc-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.vc-play:hover { background: rgba(212, 168, 83, 0.2); }
.vc-play:active { transform: scale(0.94); }
.vc-play.playing {
  background: var(--gold-grad);
  color: #1a1206;
  border-color: transparent;
}
.vc-play-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: vc-spin 0.75s linear infinite;
}
@keyframes vc-spin {
  to { transform: rotate(360deg); }
}
.vc-info {
  flex: 1;
  min-width: 160px;
}
.vc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.vc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.vc-speed {
  font-size: 12px;
  color: var(--mut);
  white-space: nowrap;
}
.vc-gears {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.vc-gear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  transition: 0.15s;
}
.vc-gear:hover { border-color: var(--line2); color: var(--ink); }
.vc-gear.on {
  background: var(--gold-soft);
  border-color: rgba(212, 168, 83, 0.5);
  color: var(--gold);
  font-weight: 700;
}
.vc-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  margin-left: auto;
}
.vc-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--line2);
  animation: none;
}
.vc-row.playing .vc-wave i {
  background: var(--gold);
  animation: wave 0.9s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.mini-op {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  transition: 0.15s;
}
.mini-op:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.mini-op.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.vc-delete {
  margin-left: 2px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pd-head { padding: 16px; }
  .pd-actions { width: 100%; }
  .av-sec-act { margin-left: 0; }
  .side-new {
    width: auto;
    margin-bottom: 0;
  }
  .side-new.btn-gold { width: auto; }
  .vc-wave { display: none; }
}
@media (max-width: 480px) {
  .pd-head .p-avatar {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .avt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .vc-row {
    gap: 10px;
    padding: 12px;
  }
  .vc-play {
    width: 36px;
    height: 36px;
  }
  .modal-backdrop { padding: 12px; }
}

/* ===================== 作品管理 (products) 面板 ===================== */
.prod-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.prod-list-col { min-width: 0; }
.prod-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prod-count { font-size: 14px; color: var(--sub); }
.prod-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 4px;
}
.prod-card {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  color: var(--ink);
}
.prod-card:hover { border-color: var(--line2); background: var(--card2); }
.prod-card.active { border-color: var(--gold); background: var(--gold-soft); }
.prod-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sub);
}
.tag-ori {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  color: var(--gold);
}
.prod-card-dur { color: var(--mut); }

.prod-detail-col { min-width: 0; }
.prod-detail-empty,
.prod-empty,
.prod-plan-empty,
.prod-plan-loading {
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 32px;
  text-align: center;
  color: var(--mut);
  background: var(--card);
  font-size: 14px;
}

/* 预览：朝向自适应画框（aspect-ratio 由 JS 从数据推导，CSS 不硬编码 9/16）。 */
.prod-preview {
  display: flex;
  justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(212, 168, 83, 0.05), transparent 70%),
    #0a0f18;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 18px;
}
.prod-frame {
  position: relative;
  background: #000;
  border-radius: var(--r-sm);
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--shadow-md);
}
/* 竖屏：高度受限、宽度随比例；横屏：宽度受限。 */
.prod-frame.is-portrait { height: min(62vh, 640px); }
.prod-frame.is-landscape { width: 100%; max-width: 720px; }
.prod-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保证不裁切/不拉伸变形 */
  background: #000;
}

.prod-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.prod-detail-title { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.prod-detail-sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.prod-downloads { display: flex; gap: 10px; flex-shrink: 0; }
.prod-view-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}
.prod-view-target-btn.is-active {
  border-color: rgba(127, 201, 154, 0.38);
  background: rgba(127, 201, 154, 0.1);
  color: var(--ink);
}
.prod-dl-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1206;
  background: var(--gold-grad);
  border: none;
  border-radius: var(--r-xs);
  padding: 9px 16px;
  box-shadow: var(--shadow-gold);
  transition: filter var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.prod-dl-btn:hover { filter: brightness(1.06); }
.prod-dl-btn:active { transform: translateY(1px); }

.prod-plan { margin-top: 8px; }
.prod-review {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.prod-review-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.prod-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-review-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.prod-review-metric,
.prod-review-card,
.prod-review-issue,
.prod-review-request {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
}
.prod-review-metric-label {
  font-size: 12px;
  color: var(--mut);
  margin-bottom: 4px;
}
.prod-review-metric-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.prod-review-banner {
  border: 1px solid rgba(127, 201, 154, 0.28);
  background: rgba(127, 201, 154, 0.08);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.prod-review-banner.warn {
  border-color: rgba(212, 168, 83, 0.34);
  background: rgba(212, 168, 83, 0.08);
}
.prod-review-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.prod-review-banner-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
}
.prod-review-reviewers,
.prod-review-issues {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-review-card-head,
.prod-review-issue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.prod-review-card-title,
.prod-review-issue-title,
.prod-review-request-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.prod-review-badge {
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.prod-review-badge.ok {
  color: #7fc99a;
  background: rgba(127, 201, 154, 0.12);
}
.prod-review-badge.warn {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.14);
}
.prod-review-card-meta,
.prod-review-card-line,
.prod-review-issue-meta,
.prod-review-issue-line,
.prod-review-request-sub,
.prod-review-placeholder,
.prod-review-noissues {
  font-size: 12px;
  color: var(--sub);
}
.prod-review-card-meta,
.prod-review-card-summary,
.prod-review-card-line,
.prod-review-issue-line {
  margin-top: 6px;
}
.prod-review-card-summary {
  font-size: 13px;
  color: var(--ink);
}
.prod-review-issue {
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.prod-review-issue.clickable {
  cursor: pointer;
}
.prod-review-issue.clickable:hover {
  border-color: var(--gold);
}
.prod-review-issue.blocking {
  border-color: rgba(225, 92, 86, 0.3);
}
.prod-review-issue.warning {
  border-color: rgba(212, 168, 83, 0.24);
}
.prod-review-issue-head-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.prod-review-issue-check {
  margin-top: 2px;
}
.prod-review-issue-head-copy {
  min-width: 0;
}
.prod-review-issue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.prod-review-inline-btn,
.prod-review-btn {
  white-space: nowrap;
}
.prod-review-request-sub {
  margin-top: 4px;
}
.prod-review-textarea {
  width: 100%;
  min-height: 88px;
  margin-top: 10px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r-xs);
  color: var(--ink);
  padding: 10px 12px;
  resize: vertical;
}
.prod-review-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus-ring);
}
.prod-plan-head {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.prod-plan-list { display: flex; flex-direction: column; gap: 10px; }
.shot-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  transition: border-color var(--dur) var(--ease);
}
.shot-row:hover { border-color: var(--line2); }
.shot-idx {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.28);
  border-radius: var(--r-xs);
  padding: 3px 9px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.shot-body { flex: 1; min-width: 0; }
.shot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 4px;
}
.shot-type {
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  font-weight: 600;
}
.shot-type.mat { color: #7fc99a; background: rgba(127, 201, 154, 0.1); }
.shot-type.gap { color: var(--gold); background: var(--gold-soft); }
.shot-time { color: var(--mut); }
.shot-mid { color: var(--mut); }
.shot-text { font-size: 14px; color: var(--ink); }
.shot-name { font-size: 12px; color: var(--mut); margin-top: 2px; }
.shot-actions { flex-shrink: 0; }
.shot-replace-btn {
  font-size: 13px;
  color: var(--sub);
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r-xs);
  padding: 7px 13px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.shot-replace-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.shot-replace-panel {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.shot-replace-select {
  flex: 1;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--ink);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
}
.shot-replace-select:focus { border-color: var(--gold); }
.shot-replace-confirm {
  font-size: 13px;
  font-weight: 600;
  color: #1a1206;
  background: var(--gold-grad);
  border: none;
  border-radius: 8px;
  padding: 9px 15px;
}
.shot-replace-confirm:disabled { opacity: 0.6; cursor: default; }
.shot-replace-loading, .shot-replace-msg { font-size: 12px; color: var(--sub); }
.shot-replace-msg.err { color: var(--danger); }

@media (max-width: 900px) {
  .prod-layout { grid-template-columns: 1fr; }
  .prod-list { max-height: none; }
  .prod-frame.is-portrait { height: min(70vh, 560px); }
}

/* ===================== 素材库面板 (materials.js) ===================== */
.mat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mat-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.mat-count { font-size: 14px; color: var(--sub); }
.mat-count b { color: var(--gold); font-weight: 800; font-size: 16px; }
.mat-reset {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--sub);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-xs);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mat-reset:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.mat-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--edge-hi);
}
.mat-filter { display: flex; flex-direction: column; gap: 6px; }
.mat-filter label { font-size: 12px; font-weight: 500; color: var(--sub); }
.mat-filter select,
.mat-filter input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 11px;
  border-radius: var(--r-xs);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mat-filter input::placeholder { color: var(--mut); }
.mat-filter select:hover,
.mat-filter input:hover { border-color: var(--line2); }
.mat-filter select:focus,
.mat-filter input:focus { border-color: var(--gold); box-shadow: var(--focus-ring); }

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.mat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow-sm), var(--edge-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.mat-card:hover {
  border-color: rgba(212, 168, 83, 0.55);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.mat-thumb.is-land,
.mat-thumb.is-port { aspect-ratio: 4 / 3; }
.mat-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  background: rgba(10, 15, 24, 0.78);
  color: var(--gold);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 168, 83, 0.25);
}
/* 打标状态徽标：ready 不渲染；其余按服务端事实明示。 */
.mat-tag-status {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.mat-tag-status.is-tagging {
  background: rgba(30, 64, 120, 0.85);
  color: #cfe3ff;
  border-color: rgba(120, 170, 255, 0.35);
}
.mat-tag-status.is-failed {
  background: rgba(120, 30, 30, 0.85);
  color: #ffd7d7;
  border-color: rgba(255, 120, 120, 0.4);
}
.mat-tag-status.is-untagged {
  background: rgba(70, 70, 70, 0.8);
  color: #ddd;
  border-color: rgba(200, 200, 200, 0.25);
}
.mat-tag-banner {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mat-tag-banner.is-tagging {
  background: rgba(30, 64, 120, 0.25);
  border: 1px solid rgba(120, 170, 255, 0.3);
  color: #cfe3ff;
}
.mat-tag-banner.is-failed {
  background: rgba(120, 30, 30, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffd7d7;
}
.mat-tag-banner-msg {
  flex: 1;
  word-break: break-all;
}
.mat-delete-row {
  margin: 14px 0 4px;
  display: flex;
  justify-content: flex-end;
}
.mat-delete-btn {
  color: #ffb0b0;
  border-color: rgba(255, 120, 120, 0.45);
}
.mat-delete-btn:hover {
  background: rgba(120, 30, 30, 0.25);
}
.mat-meta { padding: 11px 13px 13px; }
.mat-card-title {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mat-card-sub { font-size: 11px; color: var(--mut); margin-top: 7px; font-variant-numeric: tabular-nums; }

.mat-loading { color: var(--mut); padding: 40px; text-align: center; grid-column: 1 / -1; }
.mat-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 52px 24px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 168, 83, 0.045), transparent 65%),
    var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--edge-hi);
}
.mat-empty-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.mat-empty-sub { font-size: 13px; color: var(--mut); }

/* ---- 素材详情抽屉 ---- */
.mat-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 70;
  animation: fadeIn 0.2s var(--ease);
}
.mat-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--bg2);
  border-left: 1px solid var(--line);
  z-index: 75;
  transform: translateX(100%);
  transition: transform 0.26s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mat-drawer.open { transform: translateX(0); }
.mat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 21, 32, 0.5);
}
.mat-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-all;
}
.mat-drawer-close {
  flex: none;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--sub);
  font-size: 20px;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mat-drawer-close:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.mat-drawer-body { padding: 22px; overflow-y: auto; }
.mat-drawer-loading { color: var(--mut); padding: 24px 0; }
.mat-drawer-hero {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 18px;
  background: #0b111b;
  box-shadow: var(--shadow-md);
}
.mat-drawer-hero img,
.mat-drawer-hero video { width: 100%; display: block; object-fit: contain; }
.mat-drawer-hero video { max-height: 68vh; background: #000; }
.mat-drawer-hero.no-thumb {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: 13px;
}
.mat-drawer-section-title {
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}
.mat-dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 14px;
}
.mat-dl dt { font-size: 12px; color: var(--sub); }
.mat-dl dd { font-size: 13px; color: var(--ink); word-break: break-word; }

@media (max-width: 900px) {
  .mat-drawer { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .mat-toolbar { align-items: flex-start; }
  .mat-toolbar-actions { width: 100%; justify-content: space-between; }
  .mat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mat-meta { padding: 8px 9px 10px; }
  .mat-card-title { font-size: 12px; }
  .mat-card-sub { font-size: 10px; }
  .mat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
}

/* ===================== 创作中心 (creation) ===================== */
.cr-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.cr-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.cr-step-head { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.cr-step-hint { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.cr-label { display: block; font-size: 13px; color: var(--sub); margin: 12px 0 6px; }

/* Step 1: 数字人卡片 */
.cr-avatars { display: flex; flex-wrap: wrap; gap: 12px; }
.cr-avatars-loading, .cr-avatars-empty { color: var(--mut); font-size: 14px; }
.cr-avatar-card {
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 180px;
  transition: border-color .15s, box-shadow .15s;
}
.cr-avatar-card:hover { border-color: var(--line2); }
.cr-avatar-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.cr-avatar-name { font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.cr-avatar-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-avatar-badge {
  font-size: 11px;
  color: var(--sub);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
}
.cr-avatar-badge.vs { color: var(--gold); }

/* Step 2: 素材筛选 */
.cr-mat-row { display: flex; gap: 10px; }
.cr-mat-input, .cr-input, .cr-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cr-mat-input:focus, .cr-input:focus, .cr-textarea:focus { border-color: var(--gold); outline: none; box-shadow: var(--focus-ring); }
.cr-textarea { resize: vertical; line-height: 1.6; }
.cr-script { min-height: 120px; }
.cr-mat-btn, .cr-gen-btn {
  white-space: nowrap;
  background: var(--gold-soft);
  border: 1px solid var(--gold2);
  color: var(--gold);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 13px;
  transition: background var(--dur) var(--ease);
}
.cr-mat-btn:hover, .cr-gen-btn:hover { background: var(--gold-soft2); }
.cr-mat-count { margin-top: 10px; font-size: 13px; color: var(--sub); }

/* Step 3: 生成文案 */
.cr-gen-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.cr-gen-status { font-size: 13px; color: var(--sub); }
.cr-gen-status.pending { color: var(--sub); }
.cr-gen-status.ok { color: #7fc99a; }
.cr-gen-status.err { color: var(--danger); }

/* Step 4: 开始创作 */
.cr-start-btn { margin-top: 16px; }
.cr-start-status { margin-top: 12px; font-size: 13px; color: var(--sub); }
.cr-start-status.pending { color: var(--sub); }
.cr-start-status.ok { color: #7fc99a; }
.cr-start-status.err { color: var(--danger); }

/* Step 5: 进度 */
.cr-progress {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.cr-progressbar {
  height: 8px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cr-progressbar-fill {
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  border-radius: 999px;
  transition: width .35s ease;
}
.cr-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cr-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
}
.cr-step-dot {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--sub);
}
.cr-step-name { flex: 1; font-size: 14px; color: var(--ink); }
.cr-step-state { font-size: 12px; color: var(--sub); }
.cr-step-item.running { border-color: var(--gold); }
.cr-step-item.running .cr-step-dot { border-color: var(--gold); color: var(--gold); }
.cr-step-item.running .cr-step-state { color: var(--gold); }
.cr-step-item.succeeded .cr-step-dot { background: var(--gold-grad); border-color: transparent; color: var(--bg); }
.cr-step-item.succeeded .cr-step-state { color: #7fc99a; }
.cr-step-item.failed { border-color: var(--danger); }
.cr-step-item.failed .cr-step-state { color: var(--danger); }

/* Step 6: 结果 */
.cr-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.cr-result-loading, .cr-result-error { font-size: 14px; color: var(--mut); }
.cr-result-error { color: var(--danger); }
.cr-preview { display: flex; justify-content: center; margin-bottom: 16px; }
.cr-frame {
  position: relative;
  background: #0b111b;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}
.cr-frame.is-portrait { max-height: 70vh; }
.cr-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.cr-frame.is-portrait video { max-height: 70vh; width: auto; }
.cr-result-head { margin-bottom: 16px; }
.cr-result-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.cr-result-sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.cr-plan-head { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.cr-plan-list { display: flex; flex-direction: column; gap: 8px; }
.cr-plan-loading, .cr-plan-empty { color: var(--mut); font-size: 13px; }
.cr-shot-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
}
.cr-shot-idx { flex: 0 0 auto; font-size: 12px; color: var(--mut); }
.cr-shot-body { flex: 1; min-width: 0; }
.cr-shot-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.cr-shot-type {
  font-size: 11px;
  border-radius: 6px;
  padding: 1px 8px;
}
.cr-shot-type.mat { color: var(--gold); background: var(--gold-soft); border: 1px solid var(--line); }
.cr-shot-type.gap { color: #7fc99a; background: rgba(127,201,154,.1); border: 1px solid var(--line); }
.cr-shot-time, .cr-shot-mid { font-size: 12px; color: var(--sub); }
.cr-shot-text { font-size: 13px; color: var(--ink); word-break: break-word; }
.cr-shot-name { font-size: 12px; color: var(--mut); margin-top: 2px; }

@media (max-width: 640px) {
  .cr-mat-row { flex-direction: column; }
  .cr-avatar-card { min-width: 100%; }
}

/* ===================== 创作中心 v2 六步向导 ===================== */
.cw-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1400px;
}
.cw-steps {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  overflow-x: auto;
  gap: 2px;
  box-shadow: var(--edge-hi);
}
.cw-step {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--mut);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0;
}
.cw-step:not(:disabled):hover { color: var(--ink); }
.cw-step:not(:disabled):hover .num { border-color: var(--line2); }
.cw-step:disabled { cursor: default; opacity: 0.85; }
.cw-step .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg2);
  color: var(--sub);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cw-step.current { color: var(--gold); font-weight: 700; }
.cw-step.current .num {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.cw-step.done { color: var(--sub); }
.cw-step.done .num {
  background: var(--gold-grad);
  border-color: transparent;
  color: #1a1206;
}
.cw-arrow {
  flex: 1;
  min-width: 18px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--line);
  margin: 0 8px;
  flex-shrink: 1;
}
.cw-pane {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: none;
  box-shadow: var(--edge-hi);
}
.cw-pane.active { display: block; animation: fadeUp 0.25s var(--ease); }
.cw-pane-title { font-size: 17px; font-weight: 800; letter-spacing: -0.1px; margin-bottom: 6px; }
.cw-pane-sub { font-size: 13px; color: var(--sub); margin-bottom: 20px; line-height: 1.7; }
.cw-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.cw-pane-head-copy { min-width: 0; }
.cw-pane-head .cw-pane-sub { margin-bottom: 0; }
.cw-pane-head-action { flex: none; margin-top: 2px; }
.cw-loading,
.cw-status-line {
  font-size: 13px;
  color: var(--sub);
  padding: 12px 0;
}
.cw-status-line.err { color: var(--danger); }
.cw-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cw-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cw-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--edge-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  min-width: 0;
}
.cw-person-card:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cw-person-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
  background: var(--gold-soft);
}
.cw-person-card.is-empty { opacity: 0.78; }
.cw-person-card .p-avatar { width: 44px; height: 44px; font-size: 18px; }
.cw-person-info { min-width: 0; flex: 1; }
.cw-person-card .n { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-person-card .m { font-size: 12px; color: var(--mut); margin-top: 2px; }
.cw-inline-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  border: 1px dashed var(--line2);
  border-radius: var(--r-md);
  background: var(--bg2);
  padding: 14px 16px;
  color: var(--sub);
  font-size: 13px;
  flex-wrap: wrap;
}
.cw-inline-guide b { color: var(--gold); }
.cw-avt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cw-avt-card {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: var(--ink);
  box-shadow: var(--edge-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.cw-avt-card:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cw-avt-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cw-avt-card.is-disabled { opacity: 0.55; cursor: not-allowed; }
.cw-avt-card.is-disabled:hover { transform: none; box-shadow: var(--edge-hi); }
.cw-avt-card .b { padding: 12px 13px; }
.cw-avt-card .n { font-size: 13px; font-weight: 700; }
.cw-avt-card .m { font-size: 11px; color: var(--mut); margin-top: 4px; }
.cw-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--mut);
}
.cw-voice-blocks { display: flex; flex-direction: column; gap: 14px; }
.cw-vblock {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: var(--edge-hi);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cw-vblock:hover { border-color: var(--line2); }
.cw-vblock.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: var(--gold-soft); }
.cw-vblock.is-disabled { opacity: 0.56; cursor: not-allowed; }
.cw-vblock-head { display: flex; align-items: center; gap: 10px; }
.cw-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  flex-shrink: 0;
  transition: 0.15s;
  position: relative;
}
.cw-vblock.active .cw-radio,
.cw-voice-opt.active .cw-radio { border-color: var(--gold); }
.cw-vblock.active .cw-radio::after,
.cw-voice-opt.active .cw-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold-grad);
}
.cw-vblock-title { font-size: 14px; font-weight: 700; }
.cw-vblock-sub { font-size: 12px; color: var(--mut); margin-left: auto; text-align: right; }
.cw-vblock-body { margin: 12px 0 0 28px; display: none; }
.cw-vblock.active .cw-vblock-body { display: block; }
.cw-voice-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.15s;
  color: var(--ink);
  text-align: left;
}
.cw-voice-opt:hover { border-color: var(--line2); }
.cw-voice-opt.active { border-color: var(--gold); background: var(--gold-soft); }
.cw-voice-opt .vo-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.cw-voice-opt .cw-radio { width: 15px; height: 15px; }
.cw-voice-opt.active .cw-radio::after { inset: 2.5px; }
/* Step 3 声音列表（创作中心只从人物已有声音里选） */
.cw-voice-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cw-voice-opt .vo-speed,
.cw-voice-opt .vo-created { font-size: 12px; color: var(--mut); white-space: nowrap; }
/* Step 3 本条作品语速挡位 */
.cw-speed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cw-speed-label { font-size: 13px; color: var(--sub); }
.cw-speed-gear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  transition: 0.15s;
}
.cw-speed-gear:hover { border-color: var(--line2); color: var(--ink); }
.cw-speed-gear.on {
  background: var(--gold-soft);
  border-color: rgba(212, 168, 83, 0.5);
  color: var(--gold);
  font-weight: 700;
}
.cw-speed-hint { font-size: 12px; color: var(--mut); flex-basis: 100%; }
/* Step 5 选生成方式 */
.cw-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.cw-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: 0.15s;
  color: var(--ink);
  text-align: left;
}
.cw-mode-card:hover { border-color: var(--line2); }
.cw-mode-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cw-mode-icon { font-size: 24px; line-height: 1.1; }
.cw-mode-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cw-mode-title { font-size: 15px; font-weight: 700; }
.cw-mode-sub { font-size: 12px; color: var(--mut); line-height: 1.6; }
.cw-mode-card .cw-radio { flex: none; margin-top: 2px; }
.cw-mode-card.active .cw-radio { border-color: var(--gold); }
.cw-mode-card.active .cw-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}
@media (max-width: 720px) { .cw-mode-grid { grid-template-columns: 1fr; } }
.cw-small-muted { font-size: 13px; color: var(--mut); padding: 8px 0; line-height: 1.7; }
.cw-intro-area,
.cw-script-area {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  outline: none;
  resize: vertical;
  line-height: 1.7;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cw-intro-area::placeholder,
.cw-script-area::placeholder { color: var(--mut); }
.cw-intro-area:hover,
.cw-script-area:hover { border-color: var(--line2); }
.cw-script-area { min-height: 180px; }
.cw-intro-area:focus,
.cw-script-area:focus { border-color: var(--gold); box-shadow: var(--focus-ring); background: #1b2434; }
.cw-gen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cw-gen-status { font-size: 13px; color: var(--sub); }
.cw-gen-status.ok { color: var(--ok); }
.cw-gen-status.err { color: var(--danger); }
.cw-script-note {
  border: 1px dashed var(--line2);
  background: var(--bg2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 14px;
  display: none;
  line-height: 1.7;
}
.cw-script-note.show { display: block; }
.cw-script-note b { color: var(--gold); }
.cw-progress { max-width: 860px; }
.cw-progressbar {
  height: 8px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.cw-progressbar-fill {
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  border-radius: var(--r-pill);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.45);
  transition: width 0.4s var(--ease);
}
.cw-stage-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cw-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cw-stage .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--mut);
  flex-shrink: 0;
}
.cw-stage .nm { flex: 1; font-size: 14px; color: var(--sub); }
.cw-stage .st { font-size: 12px; color: var(--mut); }
.cw-stage.running, .cw-stage.waiting_remote { border-color: var(--gold); background: var(--gold-soft); }
.cw-stage.running .dot, .cw-stage.waiting_remote .dot { border-color: var(--gold); color: var(--gold); animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(212, 168, 83, 0); }
}
.cw-stage.running .nm, .cw-stage.waiting_remote .nm { color: var(--ink); }
.cw-stage.running .st, .cw-stage.waiting_remote .st { color: var(--gold); }
.cw-stage.succeeded .dot { background: var(--gold-grad); border-color: transparent; color: #1a1206; }
.cw-stage.succeeded .nm { color: var(--ink); }
.cw-stage.succeeded .st { color: var(--ok); }
.cw-stage.failed { border-color: var(--danger); }
.cw-stage.failed .st { color: var(--danger); }
.cw-result-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cw-result-left { min-width: 0; }
.cw-result-right { min-width: 0; }
.cw-player-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card2);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cw-player-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
/* Step6 预览：竖屏作品用 3:4 外框，预览更大更饱满 */
.cw-video-thumb.is-port { aspect-ratio: 3 / 4; }
.cw-video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.cw-player-note {
  font-size: 12px;
  color: var(--mut);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  line-height: 1.6;
}
.cw-owner-card {
  margin-top: 14px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--sub);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cw-owner-card .row { display: flex; justify-content: space-between; gap: 10px; }
.cw-owner-card .row b { color: var(--ink); font-weight: 600; text-align: right; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  flex-wrap: wrap;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.plan-row:hover { border-color: var(--line2); }
.plan-idx {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.28);
  border-radius: var(--r-xs);
  padding: 3px 9px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.plan-body { flex: 1; min-width: 200px; }
.plan-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin-bottom: 3px; }
.plan-time { color: var(--mut); font-variant-numeric: tabular-nums; }
.plan-type { border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 600; }
.plan-type.mat { color: var(--ok); background: rgba(127, 201, 154, 0.1); }
.plan-type.face { color: var(--gold); background: var(--gold-soft); }
.plan-text { font-size: 14px; color: var(--ink); word-break: break-word; }
.plan-mat-name { font-size: 12px; color: var(--mut); margin-top: 2px; word-break: break-word; }
.plan-inspect {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.plan-inspect-current {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.plan-inspect-line,
.plan-candidate-meta {
  font-size: 12px;
  color: var(--mut);
  margin-top: 3px;
  word-break: break-word;
}
.plan-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.plan-candidate {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg2);
  padding: 8px 10px;
}
.plan-candidate.ok { border-color: rgba(127, 201, 154, 0.45); }
.plan-candidate.bad { border-color: rgba(212, 168, 83, 0.34); }
.plan-candidate-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.shot-segment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
@media (max-width: 1100px) {
  .cw-result-grid { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cw-result-grid { grid-template-columns: 1fr; }
  .cw-player-card { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .cw-wrap { gap: 16px; }
  .cw-pane { padding: 16px; }
  .cw-pane-head { align-items: stretch; flex-direction: column; }
  .cw-pane-head-action { width: 100%; }
  .cw-person-grid,
  .cw-avt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cw-steps { padding: 12px; }
  .cw-step span.lbl { display: none; }
  .cw-step.current span.lbl { display: inline; }
  .cw-vblock { padding: 14px; }
  .cw-vblock-head { align-items: flex-start; }
  .cw-vblock-sub { margin-left: 0; }
  .cw-vblock-body { margin-left: 0; }
  .plan-body { min-width: 0; }
}

/* ===================== 作品管理 v2：人物分区 + 统一卡片网格 + 宽抽屉 ===================== */
.prod-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prod-toolbar-copy { min-width: 0; }
.prod-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.prod-section-sub {
  font-size: 13px;
  color: var(--sub);
  margin-top: 2px;
  line-height: 1.6;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.prod-grid-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  color: var(--ink);
  min-width: 0;
  box-shadow: var(--shadow-sm), var(--edge-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.prod-grid-card:hover {
  border-color: rgba(212, 168, 83, 0.55);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.prod-grid-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-md);
}
.prod-grid-card .thumb { border-bottom: 1px solid var(--line); }
.prd-meta { padding: 11px 13px 13px; min-width: 0; }
.prd-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prd-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11px;
  color: var(--mut);
}
.prod-origin-hint {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-empty-full {
  grid-column: 1 / -1;
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 42px 24px;
  text-align: center;
  color: var(--mut);
  background: var(--card);
  font-size: 14px;
}
.prod-drawer-loading {
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  padding: 36px 20px;
  text-align: center;
  color: var(--mut);
  background: var(--card);
}
.prod-drawer-detail .prod-preview { margin-bottom: 18px; }
.prod-info-table { margin-bottom: 16px; }
.prod-plan-download:disabled {
  opacity: 0.55;
  cursor: default;
}
.prod-jianying-export {
  border-color: rgba(212, 168, 83, 0.48);
  color: var(--gold);
  white-space: nowrap;
}
.prod-jianying-export:disabled {
  opacity: 0.62;
  cursor: wait;
}
.prod-plan-row .shot-actions {
  align-self: center;
}

@media (max-width: 900px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 480px) {
  .prod-toolbar { align-items: stretch; }
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .prod-grid-card .prd-meta { padding: 9px 10px 11px; }
  .prod-grid-card .prd-title { font-size: 12px; }
  .prod-grid-card .prd-sub { gap: 6px; font-size: 10px; }
  .prod-grid-card .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .prod-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
  .prod-downloads { flex-wrap: wrap; }
  .prod-dl-btn,
  .prod-plan-download,
  .prod-jianying-export { text-align: center; flex: 1 1 130px; }
}
