/* ============================================================
   主应用 app.html 样式
   ============================================================ */
body.app { padding: 0; }

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100vh;
  height: 100vh;
  overflow: hidden;
}
body.sidebar-collapsed { --sidebar-w: var(--sidebar-w-collapsed); }

/* 侧栏 */
.sidebar {
  background: linear-gradient(180deg, #0a1418 0%, #0d1a1f 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: var(--fs-md);
  overflow: hidden;
}
.sidebar-logo img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.sidebar-logo .name {
  white-space: nowrap;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--fs-base);
}
body.sidebar-collapsed .sidebar-logo .name { display: none; }
.collapse-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.collapse-btn:hover { background: var(--bg-card-hover); color: var(--color-primary); }
body.sidebar-collapsed .collapse-btn svg { transform: rotate(180deg); }

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}
.menu-group { margin-bottom: var(--sp-3); }
.menu-group-title {
  font-size: var(--fs-xs);
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 6px;
}
body.sidebar-collapsed .menu-group-title { text-align: center; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
  white-space: nowrap;
}
.menu-item:hover { background: var(--bg-card-hover); color: var(--text); }
.menu-item.active {
  background: var(--grad-primary-soft);
  color: var(--color-primary);
  font-weight: 500;
}
.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--grad-cta);
  border-radius: 0 3px 3px 0;
}
.menu-item .icon { width: 18px; height: 18px; flex-shrink: 0; }
body.sidebar-collapsed .menu-item { justify-content: center; padding: 10px; }
body.sidebar-collapsed .menu-item .label { display: none; }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.balance-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--grad-primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}
.balance-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.balance-icon { font-size: 18px; }
.balance-info { flex: 1; min-width: 0; }
.balance-label { font-size: var(--fs-xs); color: var(--text-3); }
.balance-value { font-size: var(--fs-base); font-weight: 600; color: var(--color-primary); }
body.sidebar-collapsed .balance-info { display: none; }

.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.user-card:hover { background: var(--bg-card-hover); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: flex; align-items: center; justify-content: center;
  color: #06241f; font-weight: 600; font-size: var(--fs-md);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: var(--fs-sm); font-weight: 500; }
.user-level { font-size: var(--fs-xs); color: var(--text-3); }
body.sidebar-collapsed .user-info { display: none; }

/* 主内容区 */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-page-2);
}
.main-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  min-height: var(--header-h);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: var(--fs-md); }
.breadcrumb .crumb-home { color: var(--text-3); }
.breadcrumb .sep { color: var(--text-4); }
.main-head-actions { display: flex; align-items: center; gap: 8px; }
.head-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--t-fast);
  position: relative;
}
.head-btn:hover { background: var(--bg-card-hover); color: var(--color-primary); }
.head-btn .badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: #ff4d4f;
  border-radius: 50%;
}

.main-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.view { display: none !important; height: 100%; }
.view.active { display: flex !important; }

/* ============================
   聊天界面
   ============================ */
.chat-view { height: 100%; }
.chat-sidebar {
  width: 260px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.chat-sidebar-head {
  padding: 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.chat-sidebar-head h3 { font-size: var(--fs-md); }
.new-chat-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-cta);
  color: #06241f;
  transition: transform var(--t-fast);
}
.new-chat-btn:hover { transform: rotate(90deg); }
.chat-search {
  margin: 8px 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-sm);
}
.chat-list { flex: 1; overflow-y: auto; padding: 4px; }
.chat-group { margin-bottom: var(--sp-3); }
.chat-group-title {
  font-size: var(--fs-xs);
  color: var(--text-4);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
  margin-bottom: 2px;
}
.chat-item:hover { background: var(--bg-card-hover); }
.chat-item.active { background: var(--grad-primary-soft); color: var(--text); }
.chat-item-title { flex: 1; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { font-size: var(--fs-xs); color: var(--text-4); }
.chat-item-actions { display: none; gap: 4px; }
.chat-item:hover .chat-item-actions { display: flex; }
.chat-item-actions button {
  width: 24px; height: 24px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.chat-item-actions button:hover { background: rgba(255,255,255,0.08); color: var(--color-primary); }

/* 聊天主区 */
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--sp-6);
  text-align: center;
}
.chat-empty-icon { font-size: 64px; margin-bottom: var(--sp-4); }
.chat-empty h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.chat-empty p { color: var(--text-3); margin-bottom: var(--sp-6); max-width: 500px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); width: 100%; max-width: 600px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  cursor: pointer;
}
.quick-action:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.quick-action .qa-icon { font-size: 28px; }
.quick-action .qa-label { font-size: var(--fs-sm); }

/* 消息区 */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.message {
  display: flex; gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.message.user { flex-direction: row-reverse; }
.message-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: flex; align-items: center; justify-content: center;
  color: #06241f; font-weight: 600;
  flex-shrink: 0;
  font-size: var(--fs-sm);
}
.message.assistant .message-avatar { background: var(--grad-primary-soft); color: var(--color-primary); border: 1px solid var(--border-strong); }
.message-body { flex: 1; min-width: 0; }
.message-name { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 4px; }
.message.user .message-name { text-align: right; }
.message-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.7;
  font-size: var(--fs-md);
}
.message.user .message-content {
  background: var(--grad-primary-soft);
  border-color: var(--border-strong);
}
.message-actions { display: flex; gap: 6px; margin-top: 6px; opacity: 0; transition: opacity var(--t-fast); }
.message:hover .message-actions { opacity: 1; }
.message-action {
  font-size: var(--fs-xs);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.message-action:hover { background: var(--bg-card-hover); color: var(--color-primary); }
.message.thinking .message-content { color: var(--text-2); }
.thinking-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.4s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* 输入区 */
.chat-input-wrap {
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
  padding: 12px 20px 16px;
}
.model-selector {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.model-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--t-fast);
}
.model-pill:hover, .model-pill.active { border-color: var(--border-strong); background: var(--grad-primary-soft); color: var(--color-primary); }
.model-pill img { width: 14px; height: 14px; }
.input-toolbar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.tool-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--t-fast);
  position: relative;
}
.tool-btn:hover, .tool-btn.active { background: var(--bg-card-hover); color: var(--color-primary); }
.tool-btn .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--color-primary);
  color: #06241f;
  font-size: 9px; padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}
.chat-input-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px;
  transition: all var(--t-fast);
}
.chat-input-box:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(0,212,181,0.1); }
.chat-input {
  width: 100%; min-height: 60px; max-height: 240px;
  background: transparent; border: 0; outline: 0; resize: none;
  color: var(--text); font-size: var(--fs-md);
  line-height: 1.6;
  font-family: inherit;
}
.input-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.input-foot-left { display: flex; gap: 6px; }
.send-btn {
  padding: 6px 16px;
  background: var(--grad-cta);
  color: #06241f;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: var(--fs-sm);
  display: flex; align-items: center; gap: 4px;
  transition: all var(--t-fast);
}
.send-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(0,212,181,0.4); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.input-tip { font-size: var(--fs-xs); color: var(--text-4); text-align: center; padding-top: 8px; }

/* ============================
   大模型界面 · 新版
   ============================ */
.chat-view {
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.llm-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 32px 20px;
  background:
    radial-gradient(circle at 80% 20%, rgba(126,232,155,0.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(126,232,155,0.06), transparent 35%),
    linear-gradient(180deg, #061912 0%, #0c2a1f 100%);
  position: relative;
}
.llm-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none;
}

.llm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.llm-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.llm-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.llm-title::before {
  content: '';
  width: 30px;
  height: 30px;
  background: url("../logo-head.png") center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(126,232,155,0.45));
}
.llm-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.llm-model-select {
  position: relative;
}
.llm-select {
  appearance: none;
  min-width: 140px;
  padding: 10px 34px 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.25);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}
.llm-select:hover,
.llm-select:focus {
  border-color: rgba(126,232,155,0.45);
  background: rgba(0,0,0,0.3);
}
.llm-select option { background: #0c2a1f; color: #fff; }
.llm-model-select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.llm-chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.llm-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  animation: llm-fade-in 0.35s ease;
}
.llm-message.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}
@keyframes llm-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.llm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: radial-gradient(circle, #0a5028 0%, #0a2818 70%);
  box-shadow: 0 0 16px rgba(126,232,155,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.llm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
}
.llm-message.user .llm-avatar {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 0 12px rgba(245,158,11,0.35);
}
.llm-message.user .llm-avatar::after {
  content: '我';
  font-size: 14px;
  font-weight: 700;
  color: #0a2818;
}
.llm-message.user .llm-avatar img { display: none; }

.llm-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(126,232,155,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: calc(100% - 60px);
}
.llm-message.user .llm-bubble {
  background: rgba(126,232,155,0.12);
  border-color: rgba(126,232,155,0.3);
  color: #fff;
}
.llm-bubble p { margin: 0 0 10px; }
.llm-bubble p:last-child { margin-bottom: 0; }
.llm-bubble pre {
  background: rgba(0,0,0,0.35);
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  font-family: var(--ff-mono);
  font-size: 13px;
  margin: 10px 0;
}
.llm-bubble code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 13px;
}

.llm-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 0 16px;
  position: relative;
  z-index: 1;
}
.llm-quick-tag {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.18);
  background: rgba(126,232,155,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.llm-quick-tag:hover {
  background: rgba(126,232,155,0.14);
  border-color: rgba(126,232,155,0.35);
  color: #fff;
  transform: translateY(-1px);
}
.llm-refresh {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.18);
  background: rgba(126,232,155,0.06);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.llm-refresh:hover {
  background: rgba(126,232,155,0.14);
  border-color: rgba(126,232,155,0.35);
  color: #fff;
}

.llm-input-area {
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}
.llm-input-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126,232,155,0.18);
  background: rgba(0,0,0,0.22);
  transition: all 0.2s;
}
.llm-input-box:focus-within {
  border-color: rgba(126,232,155,0.4);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(126,232,155,0.08);
}
.llm-voice-btn,
.llm-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  border: 0;
}
.llm-voice-btn {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
}
.llm-voice-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.llm-send-btn {
  background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
  color: #06241f;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35);
}
.llm-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(34,197,94,0.45);
}
.llm-input {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
  padding: 9px 4px;
}
.llm-input::placeholder { color: rgba(255,255,255,0.4); }

.llm-foot-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding: 8px 0 4px;
  position: relative;
  z-index: 1;
}

.llm-thinking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.llm-thinking-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: llm-bounce 1.4s ease-in-out infinite;
}
.llm-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.llm-thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes llm-bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

@media (max-width: 768px) {
  .llm-page { padding: 20px 16px 16px; }
  .llm-head { flex-direction: column; gap: 14px; }
  .llm-title { font-size: 22px; }
  .llm-quick-actions { gap: 8px; }
  .llm-quick-tag { font-size: 12px; padding: 8px 12px; }
  .llm-head-tools { flex-wrap: wrap; justify-content: flex-start; }
  .llm-toolbar { gap: 8px 12px; }
}

/* ============================
   智能对话 · 增值聊天（过程卡片 / 附件 / 弹窗）
   ============================ */
.llm-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.llm-tool-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.22);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.llm-tool-btn:hover {
  border-color: rgba(126,232,155,0.5);
  background: rgba(0,0,0,0.32);
  color: #fff;
}
/* r420 工具按钮图标化：线性 SVG + 文字（替代 emoji，风格与底部导航一致） */
.llm-tool-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.llm-tool-icon svg { flex: none; opacity: .9; }
.llm-tool-icon:hover svg { opacity: 1; }

.llm-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126,232,155,0.12);
  background: rgba(0,0,0,0.16);
  position: relative;
  z-index: 1;
}
.llm-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  user-select: none;
}
.llm-switch input {
  width: 15px;
  height: 15px;
  accent-color: #22c55e;
  cursor: pointer;
}
.llm-switch:hover { color: #fff; }
.llm-sess-tag {
  margin-left: auto;
  font-size: 12px;
  color: rgba(126,232,155,0.85);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(126,232,155,0.2);
  border-radius: 999px;
  padding: 4px 12px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 附件条 */
.llm-attach-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 0;
  position: relative;
  z-index: 1;
}
.acc-att-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 26px 4px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acc-att-chip img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; }
.acc-att-chip button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

/* 助手消息内部 */
.acc-msg .llm-bubble { max-width: 100%; }
.acc-body { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.92); word-break: break-word; }
.acc-body > *:first-child { margin-top: 0; }
.acc-body p { margin: 0 0 10px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body h1, .acc-body h2, .acc-body h3,
.acc-body h4, .acc-body h5, .acc-body h6 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.acc-body h1 { font-size: 19px; }
.acc-body h2 { font-size: 17px; }
.acc-body ul, .acc-body ol { margin: 0 0 10px; padding-left: 22px; }
.acc-body li { margin: 4px 0; }
.acc-body blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 3px solid rgba(126,232,155,0.5);
  background: rgba(126,232,155,0.06);
  color: rgba(255,255,255,0.75);
}
.acc-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 14px 0; }
.acc-body a { color: #7ee89b; text-decoration: underline; }
.md-code {
  background: rgba(0,0,0,0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--ff-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
}
.md-pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  overflow-x: auto;
}
.md-pre code {
  font-family: var(--ff-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  color: #d7f7e4;
}

/* 思考过程 */
.acc-think {
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}
.acc-think-hd {
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.acc-think-bd {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* 过程卡片 */
.acc-status { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.acc-status:empty { margin-bottom: 0; }
.acc-card {
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.16);
  background: rgba(126,232,155,0.05);
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}
.acc-card-hd { font-size: 13px; color: rgba(255,255,255,0.85); }
.acc-card-hd a { color: #7ee89b; }
.acc-src-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-src-list li { padding-left: 10px; border-left: 2px solid rgba(126,232,155,0.25); }
.acc-src-list a { color: #7ee89b; text-decoration: none; font-weight: 600; }
.acc-src-list a:hover { text-decoration: underline; }
.acc-src-list p { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,0.5); }
.acc-src { margin-left: 6px; font-size: 11px; color: rgba(255,255,255,0.45); }
.acc-file {
  display: inline-block;
  margin-top: 8px;
  color: #7ee89b;
  text-decoration: none;
  font-weight: 600;
}
.acc-file:hover { text-decoration: underline; }
.acc-media {
  display: block;
  margin-top: 10px;
  max-width: 420px;
  max-height: 420px;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
}

/* 元信息 / 状态 */
.acc-meta {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.acc-meta:empty { display: none; }
.acc-err {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,77,79,0.12);
  border: 1px solid rgba(255,77,79,0.3);
  color: #ffb3b3;
  font-size: 13px;
}
.acc-dim { color: rgba(255,255,255,0.45); font-size: 13px; }
.acc-strong { color: #7ee89b; font-weight: 700; }
.acc-dots { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.acc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee89b;
  animation: llm-bounce 1.4s ease-in-out infinite;
}
.acc-dots i:nth-child(2) { animation-delay: 0.2s; }
.acc-dots i:nth-child(3) { animation-delay: 0.4s; }

/* 用户消息附件 */
.acc-att { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.acc-att-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}
.acc-att-file {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 停止按钮 */
.llm-stop-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s;
}
.llm-stop-btn:hover { background: rgba(255,77,79,0.35); }

/* 通用弹窗（会话列表 / 接口设置） */
.acc-modal { color: #fff; min-width: 380px; }
/* ★ r469：标题栏改成「标题在左 / 圆形 ✕ 在右上角」的一行。
   此前三个 .acc-modal（历史会话 / 添加附件链接 / 聊天接口设置）都没有任何关闭键，
   只能点背板或按 ESC —— 手机端看不出怎么退出。
   关闭钮复用全站统一的 .modal-close（32×32 正圆 + 描边 + 热区，见 common.css），
   这里只负责把它摆到标题行最右侧。 */
.acc-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.acc-modal-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-modal-bd { font-size: 14px; color: rgba(255,255,255,0.78); }
.acc-modal-ft { display: flex; gap: 10px; margin-top: 16px; }
.acc-field { display: block; margin-bottom: 12px; }
.acc-field > span { display: block; font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.acc-input,
.acc-modal input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.acc-input:focus,
.acc-modal input:focus { border-color: rgba(126,232,155,0.5); }
.acc-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
  color: #06241f;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.acc-btn:hover { filter: brightness(1.08); }
.acc-btn.ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.14);
}
.acc-sess-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  cursor: pointer;
}
.acc-sess-item:hover { background: rgba(126,232,155,0.08); border-color: rgba(126,232,155,0.3); }
.acc-sess-item.active { border-color: rgba(126,232,155,0.55); background: rgba(126,232,155,0.1); }
.acc-sess-main { flex: 1; min-width: 0; }
.acc-sess-title {
  font-size: 14px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-sess-del {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 6px;
}
.acc-sess-del .zg-ic { margin-right: 0; }
.acc-sess-del:hover { background: rgba(255,77,79,0.2); color: #ffb3b3; }

/* ============================
   绘画界面 · 新版图片生成
   ============================ */
.draw-view {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-5);
}
.draw-page {
  max-width: 1100px;
  margin: 0 auto;
}
.draw-head { margin-bottom: var(--sp-5); }
.draw-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.draw-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.draw-workspace {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--sp-4);
  align-items: start;
}

.draw-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.draw-section-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

/* 描述文字 */
.draw-textarea-wrap {
  position: relative;   /* ★ r194：拖入高亮层 .draw-drop-hint 的定位父级 */
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
/* ★ r194：参考图可以直接拖进来 —— 拖到描述区上时整块高亮，明确"松手就上传" */
.draw-textarea-wrap.drag-on {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.07);
}
.draw-drop-hint {
  position: absolute; inset: 0; z-index: 3; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(10,20,24,0.82);
  color: var(--text-2); font-size: var(--fs-sm);
  pointer-events: none;   /* 别挡住 drop 事件 */
}
.draw-textarea-wrap.drag-on .draw-drop-hint { display: flex; }
.draw-drop-hint b { color: var(--color-primary); font-size: var(--fs-base); }
.draw-textarea {
  width: 100%;
  min-height: 140px;
  background: transparent;
  border: 0;
  resize: none;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.7;
}
/* ★ r364 视频页描述框统一尺寸：外框高度本来跟着模型素材区行数变，切模型忽大忽小。
   r364c：统一 440px —— 用户反馈「又高又窄」，440 比标准（用户指定的 Omni 1.1 原版
   ≈ 300px：文字区 140 + 计数 19 + 首帧行 66 + 内边距）高出一截。
   r364e：用户以「SD 2.5 满血版（Seedance）」的框为标准截图 → 该框外框 ≈ 460px
   （文字区 320 + 计数 19 + 首尾帧行 + 内边距）。外框统一 min-height:460px，
   文字区 flex 填充（最低 80px 兜底）：所有模型外框都和这张标准图一个尺寸。 */
/* r375：外框高度也一并锁死（原先 height:auto + min-height，素材区多一行的模型会被撑到 340px，
   比如 万相3.0 参考生）。文字区改成 flex 填充、允许压缩，素材区贴底 —— 任何模型都是同一个框。 */
/* ★ r431 用户反馈两件事：①「网页链接」那一行被外框下沿裁掉、点不到（参考文档行还看得见、
   网页链接行只露一半）；② 文字输入区上下太窄，希望像图片生成那样「框随文字多少增减」。
   真根因（r375 那条锁高留下的）：外框锁死 307px + `overflow:hidden`，而素材区
   `#videoAssets` 是 `flex:0 0 auto`（行数完全由模型 schema 决定：参考图/首尾帧/参考文档/网页链接…），
   行数多的模型总高超过 307px → 超出的部分被 `overflow:hidden` 直接裁掉；
   文字区又被 `flex:1 1 auto; min-height:0` 反压，挤到只剩两三行，越挤越窄。
   改法：① 外框高度交还给内容（height:auto + overflow:visible），素材区一行都不会被裁；
        ② 文字区改成 `flex:0 0 auto` + 内容自适应高度，与图片生成页 `.draw-textarea` 同款
           「输入越多框越高、删字框回缩」；只在超长时（max-height 50vh）才内部滚动，避免整页被顶太长。 */
.video-view .draw-textarea-wrap {
  height: auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.video-view .draw-textarea {
  flex: 0 0 auto;         /* r431：不被压缩也不被拉伸 —— 高度 = 内容高度 */
  height: auto;
  min-height: 150px;      /* 基准高度 ≈ 5~6 行，不再是「又高又窄」的 2~3 行 */
  max-height: 50vh;       /* 兜底：超长提示词才内部滚动 */
  overflow-y: auto;
}
.video-view .draw-textarea-foot { flex: 0 0 auto; }
.video-view #videoAssets { flex: 0 0 auto; }
.video-view .video-asset-row { margin-top: 6px; }
.video-view .video-url-row { margin-top: 4px; }
.video-view .video-url-input { padding: 6px 10px; }

/* ★ r364h 选项 chip 条（用户指定样式，参考截图一排 [图标 当前值 ▾] 药丸）：
   右列设置卡（比例/分辨率/高级/时长/数量）整列隐藏——仍留在 DOM 作状态源与事件源，
   选项容器由 JS 物理搬进 chip 的弹出面板；workspace 收成单列，页面高度大幅压缩。 */
/* ★ r375 描述框尺寸统一（真根因）：
   原来写 `1fr`，而 grid 里 `1fr` 的最小尺寸默认是 `auto` —— 列宽会被**内容**撑开。
   视频页 chip 条是 flex-wrap 的，不同模型 chip 数量不同（omni-flash 5 个 / SD 2.5 7 个…），
   于是把 .draw-left 连同描述框一起撑成不同宽度：实测遍历 73 个模型出现 **28 种框宽（414~1066px）**，
   这才是用户看到的「不同模型描述框大小不一样」。改 minmax(0, 1fr) 后列宽锁死在容器内，
   chip 放不下就换行（.vchip-bar 本来就是 flex-wrap）。
   .draw-left 补 min-width:0：grid 项默认 min-width:auto，不补照样会被撑。 */
.video-view .draw-workspace { grid-template-columns: minmax(0, 1fr); }
.video-view .draw-left { min-width: 0; }
.video-view .draw-left > .draw-card { box-sizing: border-box; }
.video-view .draw-right { display: none; }

/* ★ r375 撑宽的最源头在这里：.view.active 是 display:flex，.draw-page 作为 flex item
   宽度按 flex-basis:auto = 内容宽算（max-width:1100px 只封顶、不撑满），
   于是 chip 条内容多宽、整页就多宽 —— 描述框跟着一起变。补 width:100% 后，
   整页固定按 max-width:1100px 走，auto margin 仍可居中。 */
.video-view .draw-page {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vchip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.vchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.vchip:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); }
.vchip.is-open { border-color: var(--color-primary); color: var(--color-primary); }
.vchip-ic { color: var(--text-3); font-size: 14px; line-height: 1; }
.vchip.is-open .vchip-ic { color: var(--color-primary); }
.vchip-caret { font-size: 10px; color: var(--text-3); transition: transform var(--t-fast); }
.vchip.is-open .vchip-caret { transform: rotate(180deg); color: var(--color-primary); }
.vchip.is-static { cursor: default; }
.vchip.is-static:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }
.vchip-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  min-width: 240px;
  max-width: 340px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,24,22,0.98);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
/* 面板里选项排布微调：原网格是给 320px 卡设计的，弹层里收窄 */
.vchip-pop .video-ratio-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.vchip-pop .video-ratio { padding: 9px 12px; }
.vchip-pop .draw-quality { gap: var(--sp-2); }
.vchip-pop .draw-quality-item { padding: var(--sp-2); }
.vchip-pop .draw-count { grid-template-columns: repeat(4, 1fr); }
.vchip-pop .video-adv { min-width: 220px; }
.vchip-pop .video-url-input { width: 100%; }
/* ---- r366 高级参数弹层：标题 + 描述 + 选项行（对齐上游「联网搜索」弹层） ---- */
.vchip-pop { min-width: 260px; text-align: left; white-space: normal; }   /* ★ 弹层在 <button> 里，不重置会继承 center / nowrap */
.vchip-pop .video-adv-item { display: block; cursor: default; }   /* ★ 覆盖旧 checkbox 的 flex 横排 */
.vopt-head { padding: 2px 4px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 8px; }
.vopt-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.vopt-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 6px; }
.vopt-list { display: flex; flex-direction: column; gap: 4px; }
.vopt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid transparent;
  font-size: var(--fs-sm); color: var(--text-2);
  cursor: pointer; transition: all var(--t-fast);
}
.vopt-row:hover { background: rgba(255,255,255,0.08); }
.vopt-row.active { background: rgba(255,255,255,0.10); color: var(--text); }
.vopt-dot { font-size: 13px; color: var(--text-4); line-height: 1; }
.vopt-row.active .vopt-dot { color: var(--text-2); }
.vopt-row-label { flex: 1 1 auto; }
.vopt-check { font-size: 14px; color: var(--text-2); opacity: 0; }
.vopt-row.active .vopt-check { opacity: 1; }
/* ---- r366 选择渠道弹层（智能调度 + 指定渠道） ---- */
.vch-pop { width: 360px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; }
.vch-title { font-size: 16px; font-weight: 800; color: var(--text); padding: 2px 4px 10px; }
.vch-sec {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 8px 4px;
}
/* ★ r366n 「自动容错」徽章（对齐上游，推到行尾） */
.vch-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 600;
  color: #34d2a5;
  border: 1px solid rgba(52, 210, 165, 0.45);
  border-radius: 6px;
  padding: 2px 7px;
}
/* ★ r366n 策略卡下方跟一条说明（跟随选中项） */
.vch-s-desc-line { font-size: 11px; color: var(--text-3); line-height: 1.6; padding: 8px 4px 2px; }
.vch-sec-ic { color: #34d2a5; font-size: 12px; }
.vch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vch-strategy {
  position: relative;
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer; transition: all var(--t-fast);
}
.vch-strategy:hover { border-color: rgba(255,255,255,0.22); }
.vch-strategy.active { border-color: #34d2a5; background: rgba(52,210,165,0.08); }
.vch-s-top { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.vch-s-ic { font-size: 13px; line-height: 1; }
.vch-s-ic.ic-best { color: #a78bfa; }
.vch-s-ic.ic-success { color: #34d2a5; }
.vch-s-ic.ic-speed { color: #56b4ff; }
.vch-s-ic.ic-price { color: #f5a623; }
.vch-check { margin-left: auto; color: #34d2a5; font-size: 13px; opacity: 0; }
.vch-strategy.active .vch-check { opacity: 1; }
.vch-s-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; margin-top: 7px; }
.vch-list { display: flex; flex-direction: column; gap: 8px; }
.vch-ch {
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  cursor: pointer; transition: all var(--t-fast);
}
.vch-ch:hover { border-color: rgba(255,255,255,0.22); }
.vch-ch.active { border-color: #34d2a5; background: rgba(52,210,165,0.08); }
.vch-ch-name { font-size: 14px; font-weight: 700; color: var(--text); }
/* ★ r366n 卡首行：名称 …… ★成功率 🕐时长（对齐上游右对齐统计） */
.vch-ch-top { display: flex; align-items: baseline; gap: 8px; }
.vch-ch-top .vch-ch-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vch-ch-stat { flex: none; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.vch-ch-stat .vch-star { color: #f5a623; }
.vch-ch-stat .vch-clock { font-size: 10px; }
.vch-ch-stat .vch-dot { opacity: 0.5; }
.vch-ch-price { font-size: 13px; font-weight: 600; color: #f5a623; line-height: 1.7; }
.vch-ch-note { font-size: 11px; color: var(--text-3); line-height: 1.6; margin-top: 2px; }
/* ★ r431 「文字输入区上下太窄」的真凶就是这条 ID 选择器（特异性 1,0,0 压过一切类选择器）：
   它把视频描述框锁成 `flex:1 1 auto; min-height:80px` —— 素材区行数再多，文字区也永远只有 80px（约 3 行）；
   且被 `flex-shrink` 反压时更窄。现改为与图片生成页 `.draw-textarea` 同款行为：
   不拉伸、不压缩、按内容自适应高度（输入越多框越高、删字框回缩），超高才内部滚动。 */
#videoPrompt {
  flex: 0 0 auto;
  height: auto;
  min-height: 150px;
  max-height: 50vh;
  overflow-y: auto;
}
.draw-textarea::placeholder { color: var(--text-4); }
.draw-textarea:focus { outline: none; }
.draw-textarea-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-2);
}
.draw-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.draw-ref-btn:hover { border-color: var(--border-strong); color: var(--color-primary); }
.draw-ref-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor;
  color: var(--color-primary);
  font-size: 14px; line-height: 1;
}
.draw-char-count { font-size: var(--fs-xs); color: var(--text-4); }

/* AI 模型 */
.draw-models {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.draw-model {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.draw-model:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.draw-model.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
}
.draw-model-icon {
  position: relative;
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.draw-model-icon svg { width: 32px; height: 32px; }
.draw-model-check {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #06241f;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
}
.draw-model.active .draw-model-check { display: flex; }
.draw-model-name {
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draw-model.active .draw-model-name { color: var(--color-primary); font-weight: 600; }

/* 尺寸规格 */
.draw-ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
}
.draw-ratio {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.draw-ratio:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.draw-ratio.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
}
.draw-ratio.active span { color: var(--color-primary); font-weight: 600; }
.draw-ratio span { font-size: var(--fs-sm); color: var(--text-2); }
.draw-ratio-shape {
  border: 1.5px solid var(--text-3);
  border-radius: 3px;
  background: transparent;
}
.draw-ratio.active .draw-ratio-shape { border-color: var(--color-primary); }
.draw-ratio-square { width: 20px; height: 20px; }
.draw-ratio-portrait { width: 16px; height: 22px; }
.draw-ratio-landscape { width: 22px; height: 16px; }
.draw-ratio-tall { width: 12px; height: 24px; }
.draw-ratio-wide { width: 24px; height: 12px; }

/* 质量 */
.draw-quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.draw-quality-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.draw-quality-item:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.draw-quality-item.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
}
.draw-quality-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-2); }
.draw-quality-item.active .draw-quality-title { color: var(--color-primary); }
.draw-quality-sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ★ r151：Midjourney 没有质量档 —— 选中它时把两档换成这行说明
   （宁可讲清"出什么"，也不要让用户点一个不生效的档位） */
.draw-quality-note {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-3);
  padding: var(--sp-3);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
}
.draw-quality-note b { color: var(--text-2, #cbd5e1); }
.draw-card.is-mj .draw-quality-note { border-style: solid; }
/* ★ 必须显式写：`.draw-quality` 有 display:grid，类选择器会盖掉 UA 的 [hidden]{display:none}
   ⇒ 只加 hidden 属性是**藏不住**的（本项目 .ps-resume-bar / .wd-slot-* 都是同一个坑） */
.draw-quality[hidden] { display: none; }


/* 生成数量 */
.draw-count {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
}
.draw-count-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 10px var(--sp-2);
  text-align: center;
  font-size: var(--fs-md);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}
.draw-count-item:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.draw-count-item.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
  color: var(--color-primary);
  font-weight: 600;
}
/* ★ r194：并发说明 —— 选几张就同时提交几张，不再受"同时出图数"档位限制 */
.draw-count-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs, 12px);
  color: var(--text-3);
  line-height: 1.6;
}

/* 生成按钮 */
.draw-actions { margin: var(--sp-2) 0 var(--sp-4); display: flex; gap: 10px; }
.draw-generate-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 0;
  background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
  color: #06241f;
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: 0 8px 24px rgba(34,197,94,0.25);
}
.draw-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34,197,94,0.35);
}
.draw-generate-btn:active { transform: translateY(0); }
.draw-generate-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

/* API 设置按钮 */
.draw-api-btn {
  padding: 14px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.draw-api-btn:hover { border-color: #22c55e; color: var(--text-1); }

/* 参考图（图生图） */
.draw-ref-list {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.draw-ref-item {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.draw-ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.draw-ref-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.draw-ref-del:hover { background: rgba(220,38,38,0.85); }

/* 生成进度 / 失败态 */
.draw-result-status {
  padding: 0 12px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
  z-index: 1;
}
.draw-result-error { border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.06); }
.draw-error-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
}
.draw-error-msg {
  margin: 0;
  font-size: var(--fs-xs);
  color: #fca5a5;
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
}
.draw-retry-btn {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(239,68,68,0.5);
  background: transparent;
  color: #fca5a5;
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--t-fast);
}

/* 远端链接失效且本地无存档：不再留一个沉默的碎图标，明确说明发生了什么 */
.draw-result.is-broken {
  border-color: rgba(239,68,68,0.45);
  background: rgba(239,68,68,0.06);
}
.draw-broken-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
}
/* ★ r484：失效兜底框里的「重新加载」按钮（弱网抖动时用户自己就能救回来） */
.draw-broken-retry {
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(126, 232, 155, .45);
  background: rgba(126, 232, 155, .12);
  color: #d7f5e2;
  font-size: 13px;
  cursor: pointer;
}
.draw-broken-retry:active { background: rgba(126, 232, 155, .22); }
.draw-broken-msg {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.5;
}
.draw-broken-sub {
  margin: 0;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 220px;
}
.draw-retry-btn:hover { background: rgba(239,68,68,0.15); color: #fff; }

/* 底部提示 */
.draw-footer-note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-4);
  margin-bottom: var(--sp-5);
}

/* 结果展示（沿用旧结构） */
.draw-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }

/* ===== r193: 生图记录流（图片生成页） ===== */
.draw-records { display: flex; flex-direction: column; gap: var(--sp-4); }
.dr-empty {
  padding: 48px 0; text-align: center; color: var(--text-4); font-size: var(--fs-sm);
}
.dr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.dr-head { display: flex; gap: var(--sp-2); align-items: flex-start; }
.dr-refs { display: flex; gap: 4px; flex-shrink: 0; padding-top: 2px; }
.dr-refs img {
  width: 36px; height: 36px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border);
}
.dr-refs-more {
  width: 36px; height: 36px; border-radius: 6px; border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3);
}
.dr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-prompt {
  font-size: var(--fs-sm); line-height: 1.6; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px;
  transition: background var(--t-fast);
}
.dr-prompt:hover { background: var(--bg-hover, rgba(0,0,0,0.04)); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chip {
  font-size: 12px; color: var(--text-3);
  background: var(--bg-hover, rgba(0,0,0,0.04));
  border-radius: 999px; padding: 3px 10px;
  /* ★ r280 长参数串（如「V4.5 最新（推荐）· 歌曲模式 · 44100 Hz…」）不得溢出屏幕：允许换行 */
  white-space: normal; overflow-wrap: anywhere; max-width: 100%;
}
.dr-chip-btn {
  border: 1px dashed var(--border-strong); background: transparent;
  cursor: pointer; color: var(--text-2); transition: all var(--t-fast);
}
.dr-chip-btn:hover { border-color: var(--accent, #6366f1); color: var(--accent, #6366f1); }
.dr-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-2); }
.dr-imgs.multi { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dr-foot { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.dr-btn {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-2);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  white-space: nowrap;   /* ★ r280 窄卡下「重新编辑」不再折成两行，按钮整体换行 */
  transition: all var(--t-fast);
}
.dr-btn:hover { border-color: var(--border-strong); color: var(--text-1); background: var(--bg-hover, rgba(0,0,0,0.04)); }
.dr-btn.danger:hover { border-color: #e5484d; color: #e5484d; }
/* r421 记录卡图标：线性 SVG 替代彩色 emoji（__zgIconify 注入），跟随文字色 */
.zg-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  vertical-align: -2px;
  opacity: .85;
}
.zg-ic svg { display: block; }
.dr-time { margin-left: auto; font-size: 12px; color: var(--text-4); }

/* 悬停浮层：预览提示词 / 使用提示词（屏幕坐标定位） */
/* ★ r194：浮层底色改成完全不透明的 --bg-pop —— 之前用 --bg-card（rgba(255,255,255,.04)）
   在深色主题下几乎与背景融为一体，用户反馈「有点看不到」。 */
#drawPromptPop {
  position: fixed; z-index: 1200; display: none; flex-direction: column; gap: 4px;
  background: var(--bg-pop, #17252d); border: 1px solid var(--border-strong, rgba(255,255,255,0.16));
  border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}
#drawPromptPop.show { display: flex; }
#drawPromptPop button {
  border: none; background: transparent; text-align: left;
  padding: 7px 12px; border-radius: 7px; font-size: 13px; color: var(--text-1, var(--text));
  cursor: pointer; white-space: nowrap; transition: background var(--t-fast);
}
#drawPromptPop button:hover { background: rgba(255,255,255,0.1); }

/* 提示词预览弹窗 */
.dr-prev { display: flex; flex-direction: column; gap: 14px; min-width: 320px; max-width: 640px; }
.dr-prev-h { display: flex; align-items: center; gap: 12px; }
.dr-prev-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg-hover, rgba(99,102,241,0.12));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.dr-prev-t { font-size: 16px; font-weight: 700; color: var(--text-1); }
.dr-prev-s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dr-prev-body {
  font-size: 14px; line-height: 1.9; color: var(--text-1);
  white-space: pre-wrap; word-break: break-word;
  background: var(--bg-hover, rgba(0,0,0,0.03));
  border-radius: 10px; padding: 14px 16px; max-height: 46vh; overflow-y: auto;
}
.dr-prev-f { display: flex; justify-content: flex-end; }
.draw-result {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
  cursor: pointer;
}
.draw-result:hover { transform: scale(1.02); border-color: var(--border-strong); }
.draw-result img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.draw-result .result-actions {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 8px;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45));
  opacity: 0; transition: opacity var(--t-fast);
  /* ★ 关键：result-actions 容器本身不响应点击，否则会截掉「图片任意位置点击放大」。
     只有按钮自己需要 pointer-events: auto（紧跟在下面放开）。 */
  pointer-events: none;
}
.draw-result:hover .result-actions { opacity: 1; }
.draw-result .result-actions > * { pointer-events: auto; }
.draw-result .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-4); font-size: 48px; }
.draw-result.generating {
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  /* ★ r166：改成纵向排列 —— logo 伪元素与状态文字上下排（见下方出图态动效） */
  flex-direction: column; gap: 10px;
}
.draw-result.generating::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,212,181,0.2), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============================================================
   ★ r166 出图态统一「logo 顺时针旋转」（用户点名）：
   「出图时，黑屏状态设计一个 logo 顺时针滚动的特效（所有正在出图状态都用这种形式，
     避免完全黑屏状态），让用户知道系统正在生图中」。

   为什么之前就是一块黑屏：全站是深色主题（--bg-card = rgba(255,255,255,.04) 叠在
   #0a1418 上），出图占位只有一个 13px 的灰字，方块本体看起来就是纯黑。

   做法：**纯 CSS 的 ::before 伪元素**，不碰任何 JS 结构 —— 出图占位的 DOM 由三处产生
   （内核 runOneDrawTask 的 .draw-result.generating、品牌/电商的 .bvi-mini-status、
   试衣间节点被内核换成 .draw-result 的图框），而且内核会把容器 class **整串替换**掉，
   任何"插一个 div 进去"的方案都会在重渲时丢。挂在类名上的伪元素则永远跟着 class 走。

   ★ 排布：用 flex 纵向 + gap（不是 absolute + 负 margin）—— 卡片高度千差万别
     （1:1 / 3:4 / 9:16 / 16:9），纵向流式排布在任何尺寸下都不会和文字叠在一起。
   ★ 亮度：logo.png 主体是深绿 rgb(20,72,19)，直接贴深色底几乎看不见
     ⇒ brightness() 提亮 + drop-shadow 加一圈品牌绿光晕（与试衣间画布同一套取色思路）。 */
.draw-result.generating::before,
.bvi-mini-status::before,
.music-result-item.generating::before {
  content: '';
  flex: none;
  /* flex item 上的 z-index 有效（会建立层叠上下文）—— 保证 logo 压在 shimmer 扫光之上 */
  position: relative; z-index: 2;
  width: 46px; height: 46px;
  background: url("../logo.png") center / contain no-repeat;
  /* ★ 亮度标定：logo.png 主色是深绿 #144813，直接贴 #0a1418 几乎看不见；
     但提太亮（3.2 实测）会变成霓虹青柠，不像品牌。2.1 落在「看得出来 + 仍是品牌绿」，
     再叠一圈品牌绿光晕（#2ecc71）把边缘从深底里拉出来。 */
  filter: brightness(1.7) saturate(1.05) drop-shadow(0 0 10px rgba(46, 204, 113, .6));
  animation: draw-logo-spin 1.5s linear infinite;
  pointer-events: none;
}
/* 顺时针一圈 */
@keyframes draw-logo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* .bvi-mini-status 原本是横向 flex 居中，同样改成纵向让 logo 落在文字上方 */
.bvi-mini-status { flex-direction: column; gap: 8px; text-align: center; }

/* ★ r174：失败态不渲染 logo —— 出图失败时卡片 class 可能残留 .draw-result.generating
   （内核 runOneDrawTask 先整串换成 'draw-result generating'，失败由各模块 catch 接管），
   外层 ::before 的旋转 logo 会叠在报错文字上（用户实测「重叠的 logo」）。
   失败卡统一写 bvi-mini-status--fail：自己不渲染 logo，配合 JS 摘掉 generating。 */
.bvi-mini-status--fail::before { display: none; }
.bvi-mini-status--fail { color: #ff8a8a; padding: 0 10px; }

/* 小框（试衣间节点图、品牌物料小图、电商详情/海报缩略框）里用缩小版，
   否则 46px 的 logo 比图框本身还大 */
.nc-shot .draw-result.generating::before,
.bvi-item [data-shot] .draw-result.generating::before,
.bvi-item-shot .draw-result.generating::before,
.bvi-logo-shot .draw-result.generating::before,
.ecom-det-shot .bvi-mini-status::before,
.ecom-poster-shot .bvi-mini-status::before,
/* 音乐结果条是 64px 高的横向条，46px 的 logo 会顶出内边距 */
.music-result-item.generating::before { width: 30px; height: 30px; }
.nc-shot .draw-result.generating,
.bvi-item [data-shot] .draw-result.generating { gap: 7px; }

/* 尊重系统的"减少动态效果"设置：不取消旋转（它是在告知"正在生图"），只放慢 */
@media (prefers-reduced-motion: reduce) {
  .draw-result.generating::before,
  .bvi-mini-status::before,
  .music-result-item.generating::before { animation-duration: 6s; }
}

/* 响应式 */
@media (max-width: 980px) {
  .draw-workspace { grid-template-columns: 1fr; }
  .draw-models { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   视频生成
   ============================ */
.video-view {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-5);
}
.video-page { max-width: 1100px; margin: 0 auto; }

/* 下拉选择 */
.draw-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  color: var(--text);
  font-size: var(--fs-base);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.draw-select:focus { border-color: var(--color-primary); }
.draw-select option { background: #0f2a1f; color: var(--text); }

/* 视频尺寸规格 */
.video-ratio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.video-ratio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}
.video-ratio:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.video-ratio.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
  color: var(--color-primary);
  font-weight: 600;
}
.video-ratio-icon {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  display: inline-block;
}
.video-ratio-portrait { height: 22px; width: 14px; }
.video-ratio-landscape { width: 22px; height: 14px; }

/* 时长 */
.video-duration {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.video-duration-item {
  min-width: 42px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.video-duration-item:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.video-duration-item.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
  color: var(--color-primary);
  font-weight: 600;
}

/* 视频高级选项开关 */
.video-adv { display: flex; flex-direction: column; gap: 10px; }

/* ★ r270 生成模式（首尾帧/参考生）与素材槽（参考图/参考视频/参考音频） */
.video-mode { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.video-mode-item {
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}
.video-mode-item:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.video-mode-item.active {
  border-color: var(--color-primary);
  background: rgba(0,212,181,0.08);
  color: var(--color-primary);
  font-weight: 600;
}
.video-mode-hint {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.6;
}
.video-asset-row { margin-top: 10px; }
.video-asset-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.video-asset-label { font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.video-asset-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-url-row { display: flex; gap: 8px; margin-top: 6px; }
.video-url-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-1);
  font-size: var(--fs-sm);
  outline: none;
}
.video-url-input:focus { border-color: var(--color-primary); }

/* ★ r366j 已填直链回显行（参考文档 / 网页链接 / 参考视频）—— 带「移除」 */
.video-url-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px 6px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.video-url-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-url-del {
  flex: none;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--r-sm);
}
.video-url-del:hover { color: var(--color-primary); background: rgba(255, 255, 255, 0.05); }

/* ★ r365b 素材槽卡片化：对齐上游输入框底部细节 ——
   小卡（大加号 + 标签在下）+ 卡间箭头串联；空卡微倾斜像拍立得，已传卡显示缩略图 + ×
   ★ r366n 整体缩小一档（用户反馈框太大） */
.va-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.va-chain { display: flex; align-items: center; gap: 7px; }
.va-arrow { font-size: 13px; color: var(--text-3); line-height: 1; }
.va-card {
  position: relative;
  width: 56px;
  height: 70px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
/* 空卡微倾斜（上游同款拍立得感），已传卡摆正方便看图 */
.va-chain > .va-card:not(.is-filled):nth-child(1) { transform: rotate(-5deg); }
.va-chain > .va-card:not(.is-filled):nth-child(3) { transform: rotate(4deg); }
.va-chain > .va-card:not(.is-filled):nth-child(5) { transform: rotate(-3deg); }
.va-card:hover { border-color: var(--color-primary); background: rgba(255, 255, 255, 0.09); transform: rotate(0deg); }
.va-plus { font-size: 19px; font-weight: 300; color: var(--text-2); line-height: 1; }
.va-card-label { position: relative; z-index: 2; font-size: 10px; color: var(--text-2); line-height: 1.2; }
.va-card.is-filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.va-card.is-filled .va-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.va-card-del {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.va-card-del:hover { background: rgba(220, 60, 60, 0.85); }
.va-audio-chip { font-size: 18px; line-height: 1; }

/* ★ r271 视频模型选择器：每个模型前置厂商 logo（icon 来自 video-catalog.js）
   浮层用 fixed + JS 屏幕坐标定位，避免被祖先 overflow 裁掉；面板背景不透明（不用 --bg-card）。 */
.vmp { position: relative; }
.vmp-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.vmp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text);
  font-size: var(--fs-base);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-fast);
}
.vmp-btn:hover { border-color: rgba(255, 255, 255, 0.16); }
.vmp-btn[aria-expanded="true"] { border-color: var(--color-primary); }
.vmp-logo {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vmp-logo img { width: 18px; height: 18px; object-fit: contain; display: block; }
.vmp-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vmp-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-family {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-caret { flex: 0 0 auto; color: var(--text-3); font-size: 12px; transition: transform var(--t-fast); }
.vmp-btn[aria-expanded="true"] .vmp-caret { transform: rotate(180deg); }
.vmp-panel {
  position: fixed;
  z-index: 9999;
  width: 340px;
  max-height: 400px;
  /* ★ r434 矮视口兜底（软键盘弹出后 vh 骤降）：不改则列表底部被键盘盖住。
     上一行是给老内核的降级值，支持 min() 的内核用这一行。 */
  max-height: min(400px, 70vh);
  display: flex;
  flex-direction: column;
  background: #12211c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.vmp-panel[hidden] { display: none; }
.vmp-search { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vmp-search input {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: var(--fs-sm);
  outline: none;
}
.vmp-search input:focus { border-color: var(--color-primary); }
.vmp-list { flex: 1 1 auto; overflow-y: auto; padding: 6px; }
.vmp-group {
  padding: 8px 8px 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.vmp-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-md); cursor: pointer; }
.vmp-item:hover { background: rgba(255, 255, 255, 0.06); }
.vmp-item.active { background: rgba(0, 212, 181, 0.1); }
.vmp-item-logo {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vmp-item-logo img { width: 18px; height: 18px; object-fit: contain; display: block; }
.vmp-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vmp-item-name {
  font-size: var(--fs-sm);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-item-tag {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vmp-empty { padding: 20px 10px; text-align: center; font-size: var(--fs-sm); color: var(--text-3); }

/* ★ r272 音乐/语音生成：模型目录 schema 驱动表单（chip 下拉 + 动态文本输入） */
.music-model-hint {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.6;
}
.music-field { margin-top: 10px; }
.music-field-label {
  font-size: var(--fs-sm);
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 6px;
}
.music-field-input,
.music-field-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text);
  font-size: var(--fs-sm);
  outline: none;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}
.music-field-input:focus,
.music-field-textarea:focus { border-color: var(--color-primary); }
.music-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.music-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  user-select: none;
  transition: all var(--t-fast);
}
.music-chip:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.music-chip-icon { font-size: 11px; opacity: 0.65; }
.music-chip-caret { font-size: 10px; opacity: 0.6; }
.music-chip-menu {
  position: fixed;
  z-index: 9999;
  min-width: 150px;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px;
  background: #12211c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.music-chip-item {
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.music-chip-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.music-chip-item.active { background: rgba(0, 212, 181, 0.1); color: var(--color-primary); }
.music-count-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.music-count-label { font-size: var(--fs-sm); color: var(--text-3); }
.music-count-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== r275 视频/音乐生成记录流（复用 .dr-* 卡片样式） ===== */
.music-rec-imgs { display: flex; flex-direction: column; gap: 10px; }
.music-rec-item { padding: 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); }
#videoResults video { width: 100%; height: 100%; object-fit: cover; background: #000; border-radius: var(--r-md); display: block; }
#videoResults .dr-imgs.multi { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ===== r274 海螺语音克隆：音色条（新建 / 选择音色） ===== */
.music-voice-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.music-voice-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0, 212, 181, 0.35);
  background: rgba(0, 212, 181, 0.08); color: var(--text-1);
  font-size: var(--fs-sm); font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.music-voice-btn:hover { background: rgba(0, 212, 181, 0.16); border-color: rgba(0, 212, 181, 0.6); transform: translateY(-1px); }
.music-voice-btn.new { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }
.music-voice-btn.new:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }
.music-voice-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #06231c; font-size: 11px; font-weight: 700;
}
.music-voice-cur { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.music-voice-cur.ok { color: var(--color-primary); }
.music-voice-menu {
  position: fixed; z-index: 9999; max-height: 320px; overflow-y: auto;
  background: #12211c; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  padding: 6px;
}
.music-voice-menu-tip { padding: 14px 10px; text-align: center; font-size: var(--fs-sm); color: var(--text-3); }
.music-voice-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-md); cursor: pointer;
}
.music-voice-item:hover { background: rgba(255, 255, 255, 0.06); }
.music-voice-item.active { background: rgba(0, 212, 181, 0.1); }
.music-voice-item-main { flex: 1 1 auto; min-width: 0; }
.music-voice-item-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); }
.music-voice-item-sub { margin-top: 2px; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-voice-item-status { flex: 0 0 auto; font-size: 11px; color: var(--color-primary); }
/* ★ r281 音色卡通头像（男/女分形象） */
.music-voice-item-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; line-height: 0; background: var(--bg-hover, rgba(0,0,0,0.06)); }
.music-voice-item-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.music-voice-item.active .music-voice-item-avatar { box-shadow: 0 0 0 2px var(--color-primary); border-radius: 50%; }

/* ===== ★ r281 自定义音频播放器（原生 controls 时间线深色下不可见） ===== */
.ap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.30); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px;
}
.ap-btn {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary, #00d4b5); color: #04150f; transition: transform var(--t-fast);
}
.ap-btn:hover { transform: scale(1.06); }
.ap-btn svg { display: block; }
.ap-ic-pause { display: none; }
.ap.playing .ap-ic-play { display: none; }
.ap.playing .ap-ic-pause { display: block; }
.ap-time { flex: 0 0 auto; font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ap-track {
  flex: 1 1 auto; min-width: 60px; height: 16px; position: relative;
  cursor: pointer; touch-action: none;
}
/* 视觉 5px 细条，命中区 16px（好点好拖） */
.ap-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.18);
}
.ap-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: 999px; background: var(--color-primary, #00d4b5);
}
/* 播放头圆点：始终可见（修原生时间线播放时隐藏的坑） */
.ap-fill::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ===== r276 歌词生成 / 预置音色试听 / 音色搜索 ===== */
.music-field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.music-genlyrics-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0, 212, 181, 0.35);
  background: rgba(0, 212, 181, 0.08); color: var(--color-primary);
  font-size: var(--fs-xs); font-weight: 500; flex: 0 0 auto;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.music-genlyrics-btn:hover { background: rgba(0, 212, 181, 0.16); border-color: rgba(0, 212, 181, 0.6); transform: translateY(-1px); }
.music-genlyrics-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.music-voice-demo {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(0, 212, 181, 0.4); background: rgba(0, 212, 181, 0.1);
  color: var(--color-primary); font-size: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.music-voice-demo:hover { background: rgba(0, 212, 181, 0.22); transform: scale(1.08); }
.music-voice-demo.playing { background: var(--color-primary); color: #04211c; border-color: var(--color-primary); }
.music-voice-search {
  width: 100%; box-sizing: border-box; margin-bottom: 6px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05);
  color: var(--text-1); font-size: var(--fs-sm); outline: none;
}
.music-voice-search:focus { border-color: rgba(0, 212, 181, 0.55); }
.music-voice-search::placeholder { color: var(--text-3); }

/* ===== r274 新建克隆音色弹窗 ===== */
.vc-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2, 12, 9, 0.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.vc-overlay.show { display: flex; }
.vc-card {
  width: 520px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column;
  background: #10241d; border: 1px solid rgba(0, 212, 181, 0.22);
  border-radius: var(--r-xl); box-shadow: 0 24px 72px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.vc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vc-title { font-size: 18px; font-weight: 700; color: var(--text-1); }
.vc-sub { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-3); }
/* ★ r467：补齐圆框 —— 原来是「纯色圆 + 无描边」，跟 .modal-close / .mcl-x /.dh-modal-x
   那一套不成体系（用户要求全站这类右上角 X 统一）。同时锁 1:1，防 mobile.css 的
   button{min-height:44px} 把 30px 圆撑成竖椭圆。 */
.vc-close {
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: var(--text-2); cursor: pointer; font-size: 13px; padding: 0;
  width: 30px; height: 30px; border-radius: 50%;
  min-height: 0; max-height: 30px; flex: 0 0 auto; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.vc-close::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.vc-close:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); color: var(--text-1); }
.vc-body { padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.vc-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-label em { color: #ff7b6b; font-style: normal; }
.vc-label .vc-hint { font-weight: 400; font-size: 12px; color: var(--text-3); }
.vc-label .vc-opt {
  font-weight: 500; font-size: 11px; color: var(--color-primary);
  border: 1px solid rgba(0, 212, 181, 0.4); border-radius: 999px; padding: 1px 8px;
}
.vc-desc { margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-3); }
.vc-input {
  width: 100%; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: var(--text-1); font-size: var(--fs-sm); outline: none;
}
.vc-input:focus { border-color: var(--color-primary); }
.vc-box {
  border: 1.5px dashed rgba(0, 212, 181, 0.35); border-radius: var(--r-lg);
  padding: 26px 16px; text-align: center; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.vc-box:hover { border-color: rgba(0, 212, 181, 0.7); background: rgba(0, 212, 181, 0.05); }
.vc-box.error { border-color: rgba(255, 123, 107, 0.7); }
.vc-box-icon {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 181, 0.12); color: var(--color-primary); font-size: 18px;
}
.vc-box-text { font-size: var(--fs-sm); color: var(--text-2); }
.vc-box.error .vc-box-text { color: #ff9a8d; }
.vc-price-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(0, 212, 181, 0.07); border: 1px solid rgba(0, 212, 181, 0.15);
  font-size: var(--fs-sm); color: var(--text-2);
}
.vc-price { color: var(--color-primary); font-weight: 700; }
.vc-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vc-btn {
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.vc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vc-btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--text-2); }
.vc-btn.ghost:hover { color: var(--text-1); border-color: rgba(255, 255, 255, 0.32); }
.vc-btn.primary { border: none; background: linear-gradient(135deg, #00d4b5, #00b894); color: #06231c; }
.vc-btn.primary:hover:not(:disabled) { transform: translateY(-1px); }
.music-count-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}
.music-count-chip:hover { border-color: rgba(255, 255, 255, 0.2); }
.music-count-chip.active {
  border-color: var(--color-primary);
  background: rgba(0, 212, 181, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}
.music-result-real { display: block; }
.music-result-status {
  padding: 14px 6px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.music-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.music-result-meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-adv-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.video-adv-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.video-adv-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: all var(--t-fast);
}
.video-adv-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #06241f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--t-fast);
}
.video-adv-item input:checked + .video-adv-box {
  background: linear-gradient(135deg, #86efac, #22c55e);
  border-color: #22c55e;
}
.video-adv-item input:checked + .video-adv-box::after { transform: rotate(45deg) scale(1); }
.video-adv-text { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
.video-adv-text em {
  display: block;
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--text-4);
  margin-top: 2px;
}

@media (max-width: 980px) {
  .video-ratio-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   音频生成（r286 原「音乐生成」）
   ============================ */
.view.active.music-view {
  display: block !important;
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-5);
}
.music-page {
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: var(--sp-5);
  max-width: 1320px;
  margin: 0 auto;
  min-height: 100%;
}
@media (max-width: 980px) {
  .music-page { grid-template-columns: 1fr; }
}

/* 左侧面板 */
.music-left { display: flex; flex-direction: column; }
.music-card {
  background: rgba(10, 36, 28, 0.78);
  border: 1px solid rgba(0, 212, 181, 0.18);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.music-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 4px;
}
.music-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,181,0.25), rgba(46,204,113,0.15));
  border: 1px solid rgba(0,212,181,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 0 16px rgba(0,212,181,0.15);
}
.music-title { font-size: var(--fs-2xl); font-weight: 600; }
.music-subtitle { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }

.music-section { display: flex; flex-direction: column; gap: 10px; }
.music-section-title {
  font-size: var(--fs-sm); color: var(--text-2); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}

.music-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  font-size: var(--fs-base);
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all .2s ease;
}
.music-select:focus { border-color: rgba(0,212,181,0.45); box-shadow: 0 0 0 3px rgba(0,212,181,0.08); }
.music-select option { background: #0f2a1f; color: var(--text); }

.music-desc-actions { display: flex; gap: 8px; }
.music-mini-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-3);
  font-size: var(--fs-xs);
  cursor: pointer; transition: all .2s ease;
}
.music-mini-btn:hover { border-color: rgba(0,212,181,0.35); color: var(--color-primary); background: rgba(0,212,181,0.08); }

.music-textarea-wrap {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.music-textarea {
  width: 100%; min-height: 120px;
  padding: 14px;
  padding-bottom: 32px;
  border: none; background: transparent;
  color: var(--text); font-size: var(--fs-base);
  resize: vertical; outline: none;
}
.music-textarea::placeholder { color: var(--text-4); }
.music-textarea:focus { background: rgba(0,0,0,0.22); }
.music-char-count {
  position: absolute; bottom: 8px; right: 12px;
  font-size: var(--fs-xs); color: var(--text-4);
}

.music-voice-picker {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.12);
  color: var(--text-2);
  cursor: pointer; transition: all .2s ease;
}
.music-voice-picker:hover { border-color: rgba(0,212,181,0.35); background: rgba(0,212,181,0.06); color: var(--color-primary); }
.music-voice-picker svg { color: var(--color-primary); }
.music-voice-label { font-size: var(--fs-base); text-align: left; }
.music-voice-hint { font-size: var(--fs-xs); color: var(--text-4); text-align: left; margin-top: 2px; }

.music-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.music-setting {
  display: flex; flex-direction: column; gap: 6px;
}
.music-setting label { font-size: var(--fs-xs); color: var(--text-3); }

.music-generate-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px;
  border-radius: var(--r-pill);
  border: none;
  background: linear-gradient(135deg, #00d4b5 0%, #2ecc71 100%);
  color: #06241f;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,212,181,0.25);
  transition: all .2s ease;
}
.music-generate-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,212,181,0.35); }
.music-generate-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.music-generate-text { display: flex; flex-direction: column; align-items: flex-start; }
.music-generate-text strong { font-size: var(--fs-lg); font-weight: 600; }
.music-generate-text small { font-size: var(--fs-xs); opacity: 0.8; }

/* 右侧：背景 + 结果 */
.music-right {
  position: relative;
  min-height: 520px;
  border-radius: var(--r-xl);
  background: url('/assets/login-bg.jpg') center center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
  padding: var(--sp-5);
  overflow: hidden;
}
.music-right::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,24,0.25) 0%, rgba(10,20,24,0.55) 100%);
  pointer-events: none;
}
.music-result-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: rgba(10, 36, 28, 0.82);
  border: 1px solid rgba(0, 212, 181, 0.2);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  backdrop-filter: blur(14px);
}
.music-result-head {
  font-size: var(--fs-base); font-weight: 500;
  margin-bottom: var(--sp-4);
}
.music-result-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-3);
  text-align: center;
}
.music-result-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4);
}
.music-result-title { font-size: var(--fs-base); color: var(--text-2); }
.music-result-hint { font-size: var(--fs-xs); color: var(--text-4); max-width: 280px; }
/* ★ r277 历史记录区（上方）与本次生成（下方）分离 */
.records-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--text-4); letter-spacing: .04em;
  padding-bottom: 2px;
}
.records-count { opacity: .72; }
.music-records { display: none; flex-direction: column; gap: 10px; margin-top: var(--sp-4); }
/* ★ r280 记录流限高：历史多了内部滚动（滚动条隐藏），不再把页面无限撑长 */
.music-records-body, .video-records-body {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 72vh; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.music-records-body::-webkit-scrollbar, .video-records-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
#musicResults:empty { display: none; }
.music-results { display: none; flex-direction: column; gap: 12px; }
.video-records-body { display: flex; flex-direction: column; gap: var(--sp-4); }
#videoRecords { margin-top: var(--sp-4); }
#videoResults:empty { display: none; }
.music-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .2s ease;
}
.music-result-item:hover { border-color: rgba(0,212,181,0.25); background: rgba(0,212,181,0.05); }
.music-result-item.generating {
  justify-content: center;
  min-height: 64px;
  background: rgba(0,0,0,0.12);
}
.music-result-cover {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,212,181,0.2), rgba(46,204,113,0.15));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.music-result-info { flex: 1; min-width: 0; }
.music-result-name { font-size: var(--fs-base); font-weight: 500; margin-bottom: 2px; }
.music-result-meta { font-size: var(--fs-xs); color: var(--text-4); }
.music-result-play {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,212,181,0.15);
  border: 1px solid rgba(0,212,181,0.3);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.music-result-play:hover { background: rgba(0,212,181,0.25); }

/* ============================
   历史记录
   ============================ */
.view.active.history-view {
  display: block !important;
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-5);
}
.history-page { max-width: 1320px; margin: 0 auto; }
.history-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5);
}
.history-head-left { display: flex; align-items: center; gap: 14px; }
.history-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(0,212,181,0.12);
  border: 1px solid rgba(0,212,181,0.28);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.history-title { font-size: var(--fs-2xl); margin: 0 0 4px; }
.history-subtitle { font-size: var(--fs-sm); color: var(--text-3); margin: 0; }
.history-head-right { display: flex; align-items: center; gap: 12px; }
.history-retention { font-size: var(--fs-xs); color: var(--text-3); }
.history-retention b { color: var(--color-primary); font-weight: 600; }

/* ★ r429 用户反馈：「全部/图片/视频/音频」四个筛选按钮太大、形状难看，图片/视频/音频不要图标。
   真根因：.history-tab 里的 <svg class="htab-ic"> **没有 width/height 属性**，而
   .htab-ic 尺寸只在 mobile.css 的 @media(max-width:700px) 里定义 → >700px 时 SVG 走浏览器默认
   300×150，把胶囊撑成大方块；flex 默认 align-items:stretch 又把没图标的「全部」拉成同高 → 四个大椭圆。
   处置：① 三个图标直接去掉（改纯文字）；② 筛选条改固定高度紧凑胶囊，任何宽度都正常；
   ③ 兜底给 .htab-ic 一个基准尺寸，以后万一加回图标也不会再炸。 */
.history-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.history-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 30px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  font-size: var(--fs-sm); line-height: 1; color: var(--text-2);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .18s ease;
}
.history-tab:hover { border-color: rgba(0,212,181,0.45); color: var(--text-1); }
.history-tab.active {
  background: rgba(0,212,181,0.14);
  border-color: rgba(0,212,181,0.55);
  color: var(--color-primary); font-weight: 600;
}
.history-tab-count { font-size: var(--fs-xs); opacity: .7; font-weight: 500; }
.htab-ic { width: 13px; height: 13px; flex: 0 0 auto; }

.history-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.history-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .18s ease;
}
.history-card:hover { border-color: rgba(0,212,181,0.45); transform: translateY(-2px); }
.history-thumb {
  position: relative; width: 100%; aspect-ratio: 1/1;
  background: var(--bg-input); cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-thumb-emoji { font-size: 40px; opacity: .5; }
.history-type {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(4px);
}
.history-expire {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: var(--fs-xs); color: #fff;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.history-expire.urgent { background: rgba(255,77,79,0.75); }
/* 已有本地存档副本 —— 平台链接失效也不影响查看与下载 */
.history-vaulted {
  position: absolute; bottom: 8px; left: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(16,122,90,0.82); backdrop-filter: blur(4px);
  pointer-events: none;
}
.history-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.history-prompt {
  font-size: var(--fs-sm); color: var(--text-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.history-meta { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.history-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.history-actions button {
  flex: 1; min-width: 62px; padding: 5px 8px; border-radius: 7px; cursor: pointer;
  font-size: var(--fs-xs); color: var(--text-2);
  background: var(--bg-input); border: 1px solid var(--border);
  transition: all .18s ease;
}
.history-actions button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.history-actions button.danger:hover { border-color: #ff4d4f; color: #ff4d4f; }
.history-actions button[disabled] { opacity: .45; cursor: not-allowed; }
.history-actions button[disabled]:hover { border-color: var(--border); color: var(--text-2); }

.history-empty {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px; color: var(--text-3); gap: 8px; text-align: center;
}
.history-empty.show { display: flex; }
.history-empty-icon { font-size: 56px; opacity: .4; }
.history-empty-text { font-size: var(--fs-md); }
.history-empty-hint { font-size: var(--fs-sm); opacity: .75; }

/* 侧栏角标 */
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600;
  line-height: 18px; text-align: center;
  background: var(--color-primary); color: #04140d;
}

@media (max-width: 640px) {
  .history-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .history-head-right { width: 100%; justify-content: space-between; }
}

/* ============================
   视频、漫剧等
   ============================ */
.video-view, .manju-view, .gallery-view, .agent-view, .api-view, .mine-view, .audio-view {
  display: flex; flex-direction: column; height: 100%;
  padding: var(--sp-5);
}
.view-title { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.view-sub { color: var(--text-3); margin-bottom: var(--sp-5); }
.empty-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); gap: 12px;
  font-size: var(--fs-md);
}
.empty-state .icon { font-size: 64px; opacity: 0.4; }

/* 智能体网格 */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.agent-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-med);
}
.agent-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.agent-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: var(--grad-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--color-primary);
  border: 1px solid var(--border-strong);
}
.agent-name { font-size: var(--fs-md); font-weight: 500; }
.agent-desc { font-size: var(--fs-xs); color: var(--text-3); }

/* 照片背景智能体卡片：基础样式（黑色滤镜 + 居中醒目文字 + 隐藏图标）
   用法：class="agent-card agent-card--photo agent-card--xxx"，新增卡片只需补一条背景图规则 */
.agent-card.agent-card--photo {
  position: relative;
  justify-content: center;
  min-height: 180px;
  background-size: cover;
  background-position: center 30%;
  border-color: var(--border-strong);
  overflow: hidden;
  isolation: isolate;
}
.agent-card.agent-card--photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.52) 55%, rgba(0,0,0,0.74) 100%);
  z-index: 0;
}
.agent-card.agent-card--photo > * { position: relative; z-index: 1; }
.agent-card.agent-card--photo .agent-icon { display: none; }
.agent-card.agent-card--photo .agent-name {
  color: #fff;
  font-size: calc(var(--fs-md) * 1.05);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 18px rgba(0,0,0,0.35);
}
.agent-card.agent-card--photo .agent-desc {
  color: rgba(255,255,255,0.9);
  font-size: calc(var(--fs-xs) * 1.05);
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* 各卡片的背景图 */
.agent-card.agent-card--xhs { background-image: url('../img/agent-xhs.jpg'); }
.agent-card.agent-card--portrait { background-image: url('../img/agent-portrait.jpg'); }
.agent-card.agent-card--package { background-image: url('../img/agent-package.jpg'); }
.agent-card.agent-card--poster { background-image: url('../img/agent-poster.jpg'); }
.agent-card.agent-card--brand { background-image: url('../img/agent-brand.jpg'); }
.agent-card.agent-card--food { background-image: url('../img/agent-food.jpg'); }
.agent-card.agent-card--pet { background-image: url('../img/agent-pet.jpg'); }
.agent-card.agent-card--wedding { background-image: url('../img/agent-wedding.jpg'); }
.agent-card.agent-card--digital-human { background-image: url('../img/agent-digital-human.jpg'); background-position: center 22%; }
.agent-card.agent-card--fitting { background-image: url('../img/agent-fitting.jpg'); }
.agent-card.agent-card--ecom { background-image: url('../img/agent-ecom.jpg'); }
.agent-card.agent-card--home-design { background-image: url('../img/agent-interior.jpg'); }
.agent-card.agent-card--edu { background-image: url('../img/agent-edu.jpg'); }
.agent-card.agent-card--ppt { background-image: url('../img/agent-ppt.jpg'); }
.agent-card.agent-card--baby { background-image: url('../img/agent-baby.jpg'); }

/* ---- r202b PPT 详情页专属 ----
   ★ 全局 --brand-b 是玫红（所有详情页标题共用），不能动 —— 只在本页覆盖成绿。
   ★ detail-logo 中间放一个大写"P"（原来是小号图表 emoji），字号按方块大小给。 */
.agent-detail-view--ppt .agent-detail-title .hl { color: var(--accent); }
.agent-detail-view--ppt .detail-logo {
  background: linear-gradient(135deg, #16a34a, var(--accent));
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
  font-size: 30px;
}
/* 内容输入区：上传文本 / 上传图片 / AI 写文案 一排按钮 + 大输入框 */
.ppt-src-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ppt-src-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font-size: var(--fs-sm); color: var(--text-2);
  background: var(--bg-card); border: 1px dashed var(--input-border);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.ppt-src-btn:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(46, 204, 113, 0.08); }
.ppt-src-btn--ai { border-style: solid; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ppt-src-btn--ai:disabled { opacity: .55; cursor: default; }
.ppt-brief-ta {
  width: 100%; box-sizing: border-box;
  min-height: 110px; max-height: 320px; padding: 10px 12px;
  background: var(--input-bg, rgba(255,255,255,0.04)); color: var(--text-primary);
  border: 1px solid var(--input-border); border-radius: 10px;
  font-size: var(--fs-sm); line-height: 1.7; resize: vertical; font-family: inherit;
}
.ppt-brief-ta:focus { outline: none; border-color: var(--accent); }
.ppt-parse-info {
  margin-top: 8px; font-size: var(--fs-xs); color: var(--text-3);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 8px 10px; line-height: 1.6;
  word-break: break-all;
}
.ppt-img-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ppt-img-list:empty { display: none; }
.ppt-img-item {
  position: relative; width: 64px; height: 64px;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light);
}
.ppt-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppt-img-item button {
  position: absolute; right: 2px; top: 2px; width: 16px; height: 16px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; line-height: 16px; padding: 0;
}
/* 品牌 Logo 预览（r205）：白底衬透明 png，描边用强调色点出「已融入」 */
.ppt-logo-preview {
  position: relative; width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 10px; overflow: visible;
  background: #fff; border: 2px solid var(--accent, #2ecc71);
}
.ppt-logo-preview img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.ppt-logo-del {
  position: absolute; right: -7px; top: -7px; width: 18px; height: 18px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,0.72); color: #fff; font-size: 11px; line-height: 18px; padding: 0;
}
.ppt-logo-hint { font-size: 12px; color: var(--accent, #2ecc71); opacity: 0.9; }

/* ---- r209b PPT 展示尺寸（用户：出图页图片缩小一倍；风格定调去掉多余空白、文字贴近图）----
   ★ 只改「看稿展示」，出图参数与下载原图一个字不动（同电商 r155/r167 的做法）。
   ① 出图页：PPT 是 16:9 横版，原来占满整列宽的 1:1 大方块 → 缩到半宽居中（面积≈1/4），
      框比例同步 16:9，图不再被裁边；.draw-result 出图时会被换壳，用 absolute inset 填满父框，
      不管内核把 class 换成什么都不跑形（同 .bvi-item-shot 塌陷教训的防法）。
   ② 风格定调：卡片网格 auto-fit 按内容收列 —— 只勾 1 套风格时不再留两整格空白；
      样图框 1:1 → 16:9（样图本身就是 16:9），图下不再拖一条空底，文字直接贴着图；
      文字与按钮补内边距（原先是贴着卡片边缘的）。 */
.agent-detail-view--ppt .bvi-item [data-shot],
.agent-detail-view--ppt .bvi-item-shot {
  width: 50%; margin: 10px auto 0; aspect-ratio: 16 / 9;
}
.agent-detail-view--ppt .bvi-item [data-shot] .draw-result,
.agent-detail-view--ppt .bvi-item-shot .draw-result {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
}
/* ★★ r210c（用户：风格定调展示图缩小至四分之一）—— 4 列网格，每张卡恒占容器宽的 1/4。
   原 r209b 的 auto-fit 会让单张卡撑满整行（看着过大），现在不管选几套风格都是统一的小卡片，
   多选时每排 4 个自动换行；窄屏降列保可读。 */
.agent-detail-view--ppt .bvi-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agent-detail-view--ppt .bvi-logo-card { min-width: 0; }
.agent-detail-view--ppt .bvi-logo-card .bvi-logo-acts { flex-wrap: wrap; }
.agent-detail-view--ppt .bvi-logo-card .hd-shot { aspect-ratio: 16 / 9; }
.agent-detail-view--ppt .bvi-logo-card .hd-shot .draw-result {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
}
.agent-detail-view--ppt .bvi-logo-card .hd-shot .bvi-shot-holder img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.agent-detail-view--ppt .bvi-logo-card .bvi-logo-name { margin: 10px 14px 0; }
.agent-detail-view--ppt .bvi-logo-card .hd-concept { margin: 4px 14px 0; }
.agent-detail-view--ppt .bvi-logo-card .hd-note { margin: 3px 14px 0; }
.agent-detail-view--ppt .bvi-logo-card .bvi-logo-acts { margin: 10px 14px 14px; }
@media (max-width: 900px) {
  .agent-detail-view--ppt .bvi-item [data-shot],
  .agent-detail-view--ppt .bvi-item-shot { width: 78%; }
  /* 窄屏下 1/4 太窄（≈200px），降列保可读 */
  .agent-detail-view--ppt .bvi-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .agent-detail-view--ppt .bvi-logo-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 海报图/萌宠图/婚纱摄影/试衣间/电商生图/家装设计/教培视觉整体偏亮，单独加深遮罩保证文字始终可读 */
.agent-card.agent-card--poster::before,
.agent-card.agent-card--pet::before,
.agent-card.agent-card--wedding::before,
.agent-card.agent-card--fitting::before,
.agent-card.agent-card--ecom::before,
.agent-card.agent-card--home-design::before,
.agent-card.agent-card--edu::before,
.agent-card.agent-card--ppt::before {
  background: rgba(0,0,0,0.58);
}

/* 智能体详情页（通用骨架；各智能体通过 --accent / --brand-* / --text-* 变量换肤） */
.agent-detail-view {
  /* ★ r378：作为返回键的定位参照（.agent-detail-scroll 是滚动容器，
     返回键必须挂在这一层才不会被卷走、也不会随内容滚动）。 */
  position: relative;
  --accent: #2ecc71;              /* 功能强调色（勾选、按钮、在线点） */
  --accent-rgb: 46,204,113;
  --accent-ink: #04140c;          /* 强调色底上的文字色 */
  --brand-a: #ff2442;             /* 品牌主色（logo / 认证章 / 主管徽章） */
  --brand-b: #ff4d6d;
  --detail-bg: url('../img/xhs-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(6,18,12,0.88) 0%, rgba(3,10,6,0.90) 50%, rgba(2,8,4,0.92) 100%);
  /* 深色模式默认：白字 + 半透明面板 */
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.85);
  --text-tertiary: rgba(255,255,255,0.55);
  --text-muted: rgba(255,255,255,0.65);
  --title-shadow: 0 2px 12px rgba(0,0,0,0.45);
  --panel-bg: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.1);
  --chip-bg: rgba(255,255,255,0.06);
  --chip-hover-bg: rgba(255,255,255,0.12);
  --chip-border: rgba(255,255,255,0.12);
  --chip-text: rgba(255,255,255,0.78);
  --input-bg: rgba(0,0,0,0.2);
  --input-border: rgba(255,255,255,0.15);
  --input-placeholder: rgba(255,255,255,0.35);
  --compose-bg: rgba(255,255,255,0.06);
  --compose-border: rgba(255,255,255,0.1);
  --upload-text: rgba(255,255,255,0.55);
  --avatar-border: rgba(255,255,255,0.2);
  --scrollbar: rgba(255,255,255,0.12);
  position: relative;
  flex-direction: column;
  background: var(--detail-mask), var(--detail-bg) center top / cover no-repeat;
  color: var(--text-primary);
  overflow: hidden;
}
/* 电商生图：橙金换肤 + 独立背景 */
.agent-detail-view--ecom {
  --accent: #ffb020;
  --accent-rgb: 255,176,32;
  --accent-ink: #2a1800;
  --brand-a: #ff8a00;
  --brand-b: #ffb020;
  --detail-bg: url('../img/ecom-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(14,10,4,0.58) 0%, rgba(8,6,3,0.68) 50%, rgba(4,3,2,0.78) 100%);
}
/* AI写真馆：暗绿背景 + 白字 + 绿色主题 */
.agent-detail-view--portrait {
  --accent: #00d4b5;
  --accent-rgb: 0,212,181;
  --accent-ink: #05352d;
  --brand-a: #00bfa0;
  --brand-b: #00d4b5;
  --detail-bg: url('../img/portrait-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(4,12,8,0.75) 0%, rgba(3,10,6,0.82) 50%, rgba(2,6,4,0.90) 100%);
}
/* AI海报工厂：暗绿背景 + 白字 + 紫色主题 */
.agent-detail-view--poster {
  --accent: #a78bfa;
  --accent-rgb: 167,139,250;
  --accent-ink: #1e1b4b;
  --brand-a: #8b5cf6;
  --brand-b: #a78bfa;
  --detail-bg: url('../img/poster-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(6,4,14,0.76) 0%, rgba(4,3,10,0.83) 50%, rgba(2,2,6,0.91) 100%);
}
/* AI婚纱摄影：暗绿背景 + 白字 + 粉色主题 */
.agent-detail-view--wedding {
  --accent: #f472b6;
  --accent-rgb: 244,114,182;
  --accent-ink: #4a0a2a;
  --brand-a: #ec4899;
  --brand-b: #f472b6;
  --detail-bg: url('../img/wedding-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(10,4,8,0.76) 0%, rgba(6,3,6,0.83) 50%, rgba(3,2,4,0.91) 100%);
}
/* AI品牌VI工厂：暗绿背景 + 白字 + 蓝色主题 */
.agent-detail-view--brand {
  --accent: #60a5fa;
  --accent-rgb: 96,165,250;
  --accent-ink: #0a1a3a;
  --brand-a: #3b82f6;
  --brand-b: #60a5fa;
  --detail-bg: url('../img/brand-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(4,8,14,0.78) 0%, rgba(3,6,10,0.84) 50%, rgba(2,4,6,0.92) 100%);
}
/* AI试衣间：暗绿背景 + 白字 + 玫红主题 */
.agent-detail-view--fitting {
  --accent: #fb7185;
  --accent-rgb: 251,113,133;
  --accent-ink: #3a0a12;
  --brand-a: #f43f5e;
  --brand-b: #fb7185;
  --detail-bg: url('../img/fitting-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(10,4,6,0.76) 0%, rgba(6,3,4,0.83) 50%, rgba(3,2,3,0.91) 100%);
}
/* AI包装设计：暗绿背景 + 白字 + 绿色主题 */
.agent-detail-view--package {
  --accent: #84cc16;
  --accent-rgb: 132,204,22;
  --accent-ink: #1a2e05;
  --brand-a: #65a30d;
  --brand-b: #84cc16;
  --detail-bg: url('../img/package-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(4,10,4,0.76) 0%, rgba(3,6,3,0.83) 50%, rgba(2,4,2,0.91) 100%);
}
/* AI家装设计：室内场景背景 + 白字 + 绿色主题 */
.agent-detail-view--home-design {
  --accent: #84cc16;
  --accent-rgb: 132,204,22;
  --accent-ink: #1a2e05;
  --brand-a: #65a30d;
  --brand-b: #84cc16;
  --detail-bg: url('../img/home-design-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(6,10,4,0.66) 0%, rgba(4,8,3,0.74) 50%, rgba(2,4,2,0.82) 100%);
}
/* AI萌宠工作室：暗绿萌宠森林背景 + 白字 + 鲜绿主题 */
.agent-detail-view--pet {
  --accent: #a3e635;
  --accent-rgb: 163,230,53;
  --accent-ink: #1a2e05;
  --brand-a: #84cc16;
  --brand-b: #a3e635;
  --detail-bg: url('../img/pet-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(4,10,4,0.75) 0%, rgba(3,8,3,0.82) 50%, rgba(2,6,2,0.90) 100%);
}
/* 宝宝写真：柔和奶白暖调 + 粉橙主题（与成人写真/萌宠区分开） */
.agent-detail-view--baby {
  --accent: #ffb4a2;
  --accent-rgb: 255,180,162;
  --accent-ink: #4a2318;
  --brand-a: #f9a8d4;
  --brand-b: #ffd1b8;
  --detail-bg: url('../img/baby-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(28,18,14,0.72) 0%, rgba(22,14,11,0.80) 50%, rgba(16,10,8,0.90) 100%);
}
/* AI餐饮视觉：暗绿餐饮场景背景 + 白字 + 橙色主题 */
.agent-detail-view--food {
  --accent: #fb923c;
  --accent-rgb: 251,146,60;
  --accent-ink: #431407;
  --brand-a: #f97316;
  --brand-b: #fb923c;
  --detail-bg: url('../img/food-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(8,6,4,0.75) 0%, rgba(6,4,3,0.82) 50%, rgba(4,3,2,0.90) 100%);
}
/* AI教培视觉：暗绿教育场景背景 + 白字 + 靛蓝主题 */
.agent-detail-view--edu {
  --accent: #818cf8;
  --accent-rgb: 129,140,248;
  --accent-ink: #1e1b4b;
  --brand-a: #6366f1;
  --brand-b: #818cf8;
  --detail-bg: url('../img/edu-detail-bg.jpg');
  --detail-mask: linear-gradient(180deg, rgba(4,6,12,0.75) 0%, rgba(3,5,10,0.82) 50%, rgba(2,4,8,0.90) 100%);
}
.agent-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}
.agent-detail-scroll::-webkit-scrollbar { width: 6px; }
.agent-detail-scroll::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }
/* ★★ r433（中葛：「返回键太突兀了，改成文字『返回智能体』放左上角」）——
   r378 的右上角主题实色圆钮在深色 hero 上确实刺眼：实心底 + 光晕 + 投影三重强调，
   第一眼就被它抢走注意力。现改回**左上角的轻量文字按钮**：细箭头 + 「返回智能体」，
   去掉实心底 / 光晕 / 投影，只留一层极淡玻璃，hover 才微微提亮。
   ★ 定位层级仍挂 .agent-detail-view（不在滚动容器内）→ 滚到底也一直在，随手可点。 */
.agent-detail-back {
  position: absolute;
  top: 12px;
  left: 14px;
  right: auto;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 5px 12px 5px 9px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.agent-detail-back svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent-detail-back:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.agent-detail-back:active { transform: scale(0.96); }
.agent-detail-back:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 46, 204, 113), 0.9);
  outline-offset: 3px;
}
/* 按钮里可见的文案（r433 起由 sr-only 改成真实可见文字） */
.adb-txt { white-space: nowrap; }
/* 返回键移到左上角后按钮只有 30px 高（底边 42px），滚动区顶部留白由 60px 收到 52px，
   hero 顺势上提一点；仍保证不与按钮重叠。 */
.agent-detail-view > .agent-detail-scroll { padding-top: 52px; }
/* 无障碍兜底：视觉隐藏但读屏可取（防个别漏改的按钮退化成"无字图标"） */
.adb-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.agent-detail-hero {
  text-align: center;
  margin-bottom: 28px;
}
.agent-detail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  line-height: 1.15; text-align: center;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}
.detail-logo--wide { width: auto; min-width: 56px; padding: 0 10px; }
.agent-detail-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: var(--title-shadow);
}
.agent-detail-title .hl { color: var(--brand-b); }
.agent-detail-title .hl:first-child { color: var(--text-primary); }
.agent-detail-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-a); color: #fff; font-size: 12px;
  margin-left: 6px; vertical-align: middle;
}
.agent-detail-s2 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; padding: 0 6px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}
.agent-detail-tags {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 18px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.agent-detail-tags span {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 4px 10px; border-radius: 100px;
}
.agent-detail-features {
  display: flex; justify-content: center; gap: 18px 28px;
  flex-wrap: wrap; color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.agent-detail-feature { display: flex; align-items: center; gap: 6px; }
.agent-detail-feature .dot { color: var(--accent); font-size: 8px; }

.agent-detail-team { margin-bottom: 24px; }
.agent-detail-team-title {
  text-align: center;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.agent-detail-team-title .online {
  color: var(--accent); font-size: var(--fs-xs); margin-left: 8px;
}
.agent-detail-team-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.team-member {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
}
.team-member.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  padding: 14px;
}
.team-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--avatar-border, rgba(255,255,255,0.2));
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-member.lead .team-avatar { width: 64px; height: 64px; }
.team-info { flex: 1; min-width: 0; }
.team-name-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.team-name { font-size: var(--fs-xs); color: var(--text-secondary); }
.team-badge {
  font-size: 10px; color: #fff;
  background: var(--brand-a); padding: 1px 6px; border-radius: 4px;
}
.team-desc {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  margin-top: 4px; line-height: 1.5;
}

.agent-detail-video {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: max-content;
  margin: 0 auto 28px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(var(--accent-rgb),0.12);
  border: 1px solid rgba(var(--accent-rgb),0.35);
  color: var(--accent);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.agent-detail-video:hover {
  background: rgba(var(--accent-rgb),0.2);
  box-shadow: 0 0 18px rgba(var(--accent-rgb),0.2);
}
.play-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; padding-left: 1px;
}

.agent-detail-formcard {
  max-width: 720px;
  margin: 0 auto 24px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-xl);
  padding: 22px;
  backdrop-filter: blur(8px);
}
.formcard-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.formcard-head .formcard-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(var(--accent-rgb),0.15);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
}
.formcard-title { font-size: var(--fs-lg); font-weight: 600; }
.formcard-sub { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 3px; }
.formcard-group { margin-bottom: 20px; }
.formcard-group:last-child { margin-bottom: 0; }
.formcard-label {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--text-secondary);
  margin-bottom: 12px;
}
.formcard-icon-s { color: var(--accent); }
.chip-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 10px;
}
.chip {
  padding: 7px 14px; border-radius: 100px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-size: var(--fs-xs);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.chip:hover { background: var(--chip-hover-bg); }
.chip.active {
  background: rgba(var(--accent-rgb),0.18);
  border-color: rgba(var(--accent-rgb),0.55);
  color: var(--accent);
}


.agent-detail-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px dashed var(--input-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  outline: none;
}
.agent-detail-input::placeholder { color: var(--input-placeholder); }
.agent-detail-input:focus { border-color: rgba(var(--accent-rgb),0.45); }

.agent-detail-compose {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px 24px;
  flex-shrink: 0;
}
.compose-box {
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--compose-bg);
  border: 1px solid var(--compose-border);
  border-radius: var(--r-xl);
  padding: 12px;
}
.compose-upload {
  flex-shrink: 0;
}
.upload-btn {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  border: 1px dashed var(--input-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--upload-text);
  font-size: 20px; cursor: pointer;
}
.upload-btn span { font-size: 10px; margin-top: 2px; }
.compose-textarea {
  flex: 1;
  min-height: 104px; max-height: 280px;
  line-height: 1.6;
  background: transparent; border: none;
  color: var(--text-primary); font-size: var(--fs-sm);
  resize: vertical; outline: none;
  padding: 10px 6px;
}
.compose-textarea::placeholder { color: var(--input-placeholder); }
.compose-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.compose-send:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(var(--accent-rgb),0.35); }

@media (max-width: 640px) {
  .agent-detail-scroll { padding: 16px 16px 24px; }
  .agent-detail-title { font-size: var(--fs-2xl); }
  .agent-detail-features { gap: 10px 16px; }
  .agent-detail-team-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
  .team-avatar { width: 44px; height: 44px; font-size: 10px; }
  .team-member.lead { flex-direction: column; align-items: center; text-align: center; }
}

/* 小红书爆款笔记结果区 */
.xhs-results {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.xhs-copy-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.xhs-copy-title {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-primary);
  margin-bottom: 10px;
}
.xhs-copy-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}
.xhs-image-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.xhs-image-box .draw-result {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.xhs-image-box .draw-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 小红书爆款笔记 · 多智能体访谈工作台 */
.xhs-studio {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 28px;
}
.xhs-studio .xhs-results { max-width: none; margin: 0; padding: 0; }

.xhs-team-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.xhs-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.xhs-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 34px;
  background: var(--bg-input);
}
.xhs-msg-body { flex: 1; min-width: 0; }
.xhs-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.xhs-msg-name { font-weight: 600; font-size: var(--fs-sm); color: var(--text-primary); }
.xhs-msg-role { font-size: 12px; color: var(--text-secondary); opacity: .75; }
.xhs-msg-text {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.xhs-msg.is-typing .xhs-msg-text::after {
  content: '思考中';
  display: inline-block;
  color: var(--text-secondary);
  opacity: .6;
  animation: xhs-blink 1.2s ease-in-out infinite;
}
@keyframes xhs-blink { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }

/* 模型调用过程卡：真实调用动辄几十秒，进度必须摊给用户看 */
.xhs-prog-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-input, rgba(127, 127, 127, .08));
  border: 1px solid var(--border-color, rgba(127, 127, 127, .22));
}
.xhs-prog-line { display: flex; align-items: center; gap: 8px; }
.xhs-prog-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #f43f5e);
  animation: xhs-prog-pulse 1.1s ease-in-out infinite;
}
@keyframes xhs-prog-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
.xhs-prog-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  word-break: break-all;
}
.xhs-prog-sub { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.xhs-prog-item {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: .8;
  word-break: break-all;
}
.xhs-prog.is-done .xhs-prog-dot { animation: none; background: #22c55e; }
.xhs-prog.is-done .xhs-prog-box { border-color: rgba(34, 197, 94, .35); }
.xhs-prog.is-fail .xhs-prog-dot { animation: none; background: #ef4444; }
.xhs-prog.is-fail .xhs-prog-box { border-color: rgba(239, 68, 68, .4); }
.xhs-prog.is-fail .xhs-prog-text { color: #ef4444; }

.xhs-iv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.xhs-iv-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.xhs-iv-title { font-weight: 600; font-size: var(--fs-base); color: var(--text-primary); }
.xhs-iv-sub { font-size: 12px; color: var(--text-secondary); opacity: .75; }
.xhs-iv-list { display: flex; flex-direction: column; gap: 14px; }
.xhs-iv-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  margin-bottom: 6px;
}
.xhs-iv-label em { color: #ff6b6b; font-style: normal; }
.xhs-iv-input,
.xhs-iv-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-family: inherit;
}
.xhs-iv-textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.xhs-iv-input:focus,
.xhs-iv-textarea:focus { outline: none; border-color: var(--accent); }
.xhs-iv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xhs-iv-chips .chip { cursor: pointer; }
.xhs-iv-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.xhs-out-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.xhs-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.xhs-out-title { font-weight: 600; font-size: var(--fs-sm); color: var(--text-primary); }
.xhs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.xhs-tags span {
  font-size: 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 3px 10px;
}
.xhs-prompt-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  background: transparent;
}
.xhs-out-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.xhs-hint { font-size: var(--fs-sm); color: var(--text-secondary); }
.xhs-image-box { margin-bottom: 14px; }

/* ---- 步骤标题 ---- */
.xhs-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.xhs-step-no {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

/* ---- ① 上传参考图 ---- */
.xhs-upload { margin-bottom: 18px; }
.xhs-upload-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.xhs-upload-hint-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.xhs-drop {
  border: 1px dashed var(--border-light);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color .15s;
}
.xhs-drop:hover { border-color: var(--accent); }
.xhs-drop-icon { font-size: 22px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.xhs-drop-text { font-size: var(--fs-sm); color: var(--text-primary); margin-bottom: 4px; }
.xhs-drop-sub { font-size: 12px; color: var(--text-secondary); opacity: .8; }
.xhs-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xhs-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-input); }
.xhs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhs-thumb-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; line-height: 16px; text-align: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 0;
}

/* ---- 工作台：步骤条式 Tab ---- */
/* 工作台顶栏：当前项目 + 新建项目出口 */
.xhs-wb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.xhs-wb-topic {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xs);
  color: var(--text-tertiary, var(--text-secondary));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xhs-wb-bar .btn { flex: none; }

.xhs-wb { margin-top: 20px; }
.xhs-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: linear-gradient(180deg, var(--bg-card), rgba(255,255,255,.02));
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px 14px 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.xhs-tab {
  position: relative;
  border: 1.5px solid transparent;
  background: var(--bg-page);
  cursor: pointer;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  color: var(--text-secondary);
  text-align: center;
  border-radius: var(--r-md);
  transition: transform .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.xhs-tab:hover:not(.active) {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.xhs-tab:hover .xhs-step-go { color: var(--accent); opacity: 1; }
.xhs-step-num {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--border-light);
  box-shadow: 0 0 0 3px transparent;
  transition: all .2s;
}
.xhs-step-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2px;
}
.xhs-step-meta {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: .8;
  min-height: 14px;
}
.xhs-step-go {
  font-size: 10.5px;
  color: var(--text-secondary);
  opacity: .65;
  letter-spacing: .5px;
  margin-top: 2px;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.xhs-tab:hover .xhs-step-go { transform: translateX(2px); }
.xhs-tab.active {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(122, 207, 169, .22), 0 0 0 3px rgba(122, 207, 169, .14);
  color: var(--text-primary);
}
.xhs-tab.active .xhs-step-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 207, 169, .25);
  transform: scale(1.08);
}
.xhs-tab.active .xhs-step-name { color: var(--accent); font-weight: 700; }
.xhs-tab.active .xhs-step-meta { color: var(--accent); opacity: 1; }
.xhs-tab.active .xhs-step-go { color: var(--accent); opacity: 1; }
.xhs-tab.completed:not(.active) {
  border-color: #22c55e;
  background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(34,197,94,.02));
}
.xhs-tab.completed .xhs-step-num {
  background: #22c55e; color: #fff; border-color: #22c55e;
}
.xhs-tab.completed .xhs-step-num::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.xhs-tab.completed .xhs-step-num > .xhs-num-text { display: none; }
.xhs-tab.completed .xhs-step-name { color: #15803d; font-weight: 700; }
.xhs-tab.completed:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(34,197,94,.18); }
.xhs-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .xhs-tabs { gap: 6px; padding: 10px 8px; }
  .xhs-tab { padding: 10px 2px 8px; }
  .xhs-step-name { font-size: 12px; }
  .xhs-step-meta { font-size: 10px; }
  .xhs-step-go { display: none; }
}

/* ---- 分析结论卡片 ---- */
.xhs-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.xhs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.xhs-card--warn { border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .06); }
.xhs-card-title { font-weight: 600; font-size: var(--fs-sm); color: var(--text-primary); margin-bottom: 8px; }
.xhs-card-list { margin: 0; padding-left: 18px; }
.xhs-card-list li {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.xhs-card-list li b { color: var(--text-primary); font-weight: 600; }
.xhs-chip-line { display: flex; flex-wrap: wrap; gap: 8px; }
.xhs-chiplet {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---- 出图方案 ---- */
.xhs-count-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.xhs-count-label { font-size: var(--fs-sm); color: var(--text-primary); font-weight: 600; }
.xhs-count-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.xhs-count-val { min-width: 24px; text-align: center; font-weight: 700; color: var(--text-primary); }
.xhs-count-hint { font-size: 12px; color: var(--text-secondary); opacity: .8; margin-right: auto; }
.xhs-plan-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.xhs-plan-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.xhs-plan-no {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.xhs-plan-type { font-weight: 600; font-size: var(--fs-sm); color: var(--text-primary); }
.xhs-plan-note { font-size: 12px; color: var(--text-secondary); opacity: .8; }
.xhs-plan-prompt {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: transparent;
  padding: 0;
}
/* round52 · 分镜图逐张「文字排版」控制区（开关 + 文字内容 + 排版形态） */
.xhs-overlay-ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  margin: 2px 0 10px;
  border: 1px dashed var(--border-light);
  border-radius: var(--r-md);
  background: var(--bg-card);
}
.xhs-overlay-ctl.off {
  opacity: .55;
}
.xhs-overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.xhs-overlay-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px; height: 15px;
  cursor: pointer;
}
.xhs-overlay-text {
  flex: 1 1 160px;
  min-width: 140px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--r-md);
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: var(--fs-xs);
  outline: none;
}
.xhs-overlay-text:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.xhs-overlay-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xhs-overlay-styles .chip {
  padding: 4px 10px;
  font-size: 11px;
}

/* ---- 生成图片 ---- */
.xhs-gen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.xhs-gen-hint { font-size: var(--fs-sm); color: var(--text-secondary); }
.xhs-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.xhs-image-grid .draw-result { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.xhs-image-grid .draw-result img { width: 100%; height: 100%; object-fit: cover; }
.xhs-shot-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: 11px;
  text-align: center;
}
/* round46 · 封面「换一张」按钮 */
.xhs-reroll-btn {
  color: #fff;
  border-color: rgba(255,255,255,0.24);
  font-size: 12px;
  padding: 4px 8px;
}
.xhs-reroll-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.72) !important;
}
.xhs-reroll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ---- 开始按钮 + 主题输入 ---- */
.xhs-start-actions { display: flex; justify-content: center; margin-top: 4px; }
.xhs-start-actions .btn { padding: 10px 28px; font-size: var(--fs-sm); }
.xhs-brief-input { min-height: 72px; resize: vertical; line-height: 1.6; }

/* ---- 首页「现场照片」上传区（点 / 拖 均可）---- */
.formcard-label-sub {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: .8;
}
/* 表单组下方的浅色说明（封面标题风格 / 标题内容 等新增选项用） */
.formcard-tip {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: .78;
}
.xhs-brief-upload { margin-top: 4px; }
.xhs-brief-drop {
  border: 1.5px dashed var(--border-light);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
  user-select: none;
}
.xhs-brief-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-card)); }
.xhs-brief-drop.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-card));
  transform: scale(1.01);
}
.xhs-brief-drop-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}
.xhs-brief-drop-text {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
}
.xhs-brief-drop-sub {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .8;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}
.xhs-brief-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.xhs-brief-thumbs:empty { display: none; }
.xhs-brief-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-input);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.xhs-brief-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.xhs-brief-thumb-del {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  line-height: 16px; text-align: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 13px; padding: 0;
}
.xhs-brief-thumb-del:hover { background: rgba(255,60,60,.85); }

/* ---- 笔记预览 ---- */
.xhs-phone {
  max-width: 320px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
}
.xhs-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 2px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}
.xhs-phone-status { letter-spacing: 1px; opacity: .8; }
.xhs-phone-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-primary);
}
.xhs-phone-back { font-size: 22px; line-height: 1; }
.xhs-phone-logo {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.xhs-phone-app { font-weight: 600; }
.xhs-phone-follow {
  margin-left: auto;
  color: #fff;
  background: #ff2442;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.xhs-phone-share { font-size: 15px; }
.xhs-phone-cover { position: relative; aspect-ratio: 3 / 4; background: var(--bg-input); }
.xhs-phone-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhs-phone-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .7;
}
/* ---- 笔记预览：封面文字排版（呼应 canvas 导出版本）---- */
.xhs-cover-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px;
  font-size: 12px; font-weight: 700; line-height: 1;
  border-radius: 8px;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 2;
}
.xhs-cover-badge i {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .95;
}
.xhs-cover-hot {
  position: absolute;
  top: 18px; right: 14px;
  display: inline-block;
  background: #ff2741;
  color: #fff;
  font-size: 11px; font-weight: 900; line-height: 1;
  padding: 7px 11px;
  border-radius: 8px;
  letter-spacing: .5px;
  transform: rotate(-10deg);
  transform-origin: center;
  box-shadow: 0 3px 10px rgba(255,39,65,.45);
  z-index: 2;
}
/* 标题 + 副标共用一个纵向栈，副标跟着标题流下来，标题再长也不会压字 */
.xhs-cover-stack {
  position: absolute;
  left: 18px; right: 18px;
  top: 34%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 1;
}
.xhs-cover-text {
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.28;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.6);
  -webkit-text-stroke: .6px rgba(0,0,0,.4);
}
.xhs-cover-text .xhs-hl {
  /* 黄色马克笔高亮：纯 CSS 近似 */
  background: linear-gradient(180deg, transparent 18%, #ffe23a 18%, #ffe23a 88%, transparent 88%);
  padding: 0 2px;
  border-radius: 2px;
  -webkit-text-stroke: 0;
  text-shadow: none;
  color: #1a1a1a;
  font-weight: 900;
}
.xhs-cover-sub {
  display: inline-block;
  background: #ffe23a;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px 6px 6px 999px;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  z-index: 1;
}
.xhs-cover-pager {
  position: absolute;
  top: 56px; right: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}
.xhs-cover-brand {
  position: absolute;
  left: 14px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 1;
}
.xhs-cover-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: #ff2442;
  color: #fff;
  font-weight: 900; font-size: 13px;
  border-radius: 6px;
}
.xhs-cover-brand-text {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  letter-spacing: .3px;
}
.xhs-phone-body { padding: 12px 14px 14px; }
.xhs-phone-title { font-weight: 700; font-size: var(--fs-base); color: var(--text-primary); margin-bottom: 8px; line-height: 1.5; }
.xhs-phone-text {
  margin: 0 0 10px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
  background: transparent;
  padding: 0;
}
.xhs-phone-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}
.xhs-alt-titles {
  max-width: 320px;
  margin: 14px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.xhs-alt-titles pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.xhs-preview-actions { display: flex; justify-content: center; margin-top: 14px; }

@media (max-width: 640px) {
  .xhs-studio { padding: 0 16px 24px; }
  .xhs-iv-actions { justify-content: stretch; }
  .xhs-iv-actions .btn { flex: 1; }
  .xhs-card-grid { grid-template-columns: 1fr; }
  .xhs-image-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* 灵感广场 */
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: var(--fs-sm);
}

/* 我的 */
.mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 900px) { .mine-grid { grid-template-columns: 1fr; } }
.mine-card { padding: var(--sp-5); }
.mine-stat { display: flex; align-items: center; gap: 12px; }
.mine-stat-icon { font-size: 32px; width: 56px; height: 56px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--grad-primary-soft); color: var(--color-primary); }
.mine-stat-value { font-size: var(--fs-3xl); font-weight: 600; }
.mine-stat-label { font-size: var(--fs-sm); color: var(--text-3); }
.mine-list { margin-top: var(--sp-3); }
.mine-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
}
.mine-item:hover { background: var(--bg-card-hover); }
.mine-item-icon { font-size: 20px; color: var(--color-primary); width: 32px; text-align: center; }
.mine-item-title { flex: 1; }
.mine-item-extra { font-size: var(--fs-xs); color: var(--text-3); }
.mine-item-arrow { color: var(--text-4); }

/* ============================
   登录弹窗
   ============================ */
.login-bg-deco {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,212,181,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(241,196,15,0.1), transparent 50%);
  pointer-events: none;
}
.login-content { position: relative; padding: var(--sp-6); }
.login-title { text-align: center; font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.login-subtitle { text-align: center; color: var(--text-3); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.login-offer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: var(--sp-4);
  padding: 10px;
  background: var(--grad-primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.login-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-card); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.login-tab {
  flex: 1; padding: 8px;
  border-radius: var(--r-sm);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
  transition: all var(--t-fast);
  cursor: pointer;
}
.login-tab.active { background: var(--grad-cta); color: #06241f; font-weight: 500; }
.login-fields { display: flex; flex-direction: column; gap: 12px; }
.login-fields .input { font-size: var(--fs-md); }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.code-btn {
  padding: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.code-btn:hover { border-color: var(--border-strong); }
.code-btn:disabled { color: var(--text-4); cursor: not-allowed; }
.login-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); margin: var(--sp-3) 0; }
.login-checkbox input { margin-top: 3px; accent-color: var(--color-primary); }
.login-checkbox a { color: var(--color-primary); }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--text-4); font-size: var(--fs-xs); margin: var(--sp-4) 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-third { display: flex; justify-content: center; gap: 12px; }
.login-third-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.login-third-btn:hover { border-color: var(--border-strong); color: var(--color-primary); }
.login-foot { text-align: center; font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-4); }
.login-foot a { color: var(--color-primary); }

/* 客服弹窗 */
.kefu-modal { max-width: 480px; }
.kefu-list { display: flex; flex-direction: column; gap: 12px; margin-top: var(--sp-4); }
.kefu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  cursor: pointer;
}
.kefu-item:hover { border-color: var(--border-strong); }
.kefu-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-cta); display: flex; align-items: center; justify-content: center; color: #06241f; font-weight: 600; }
.kefu-info { flex: 1; }
.kefu-name { font-weight: 500; }
.kefu-id { font-size: var(--fs-xs); color: var(--text-3); }
.kefu-btn { padding: 6px 14px; background: var(--grad-cta); color: #06241f; border-radius: var(--r-pill); font-size: var(--fs-sm); }

/* 价格弹窗 */
.price-modal { max-width: 720px; }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.price-table th, .price-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { color: var(--text-3); font-weight: 500; background: var(--bg-card); }
.price-table tr:hover td { background: var(--bg-card-hover); }
.price-model { display: flex; align-items: center; gap: 8px; }
.price-model img { width: 24px; height: 24px; border-radius: 4px; }

/* 用户手册 */
.manual-modal { max-width: 800px; }
.manual-search { margin-bottom: var(--sp-4); }
.manual-categories { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.cat-chip { padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-sm); cursor: pointer; transition: all var(--t-fast); }
.cat-chip:hover, .cat-chip.active { border-color: var(--border-strong); background: var(--grad-primary-soft); color: var(--color-primary); }
.manual-list { display: flex; flex-direction: column; gap: 4px; }
.manual-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
}
.manual-item:hover { background: var(--bg-card-hover); }
.manual-item-icon { color: var(--color-primary); }
.manual-item-title { flex: 1; }
.manual-item-time { font-size: var(--fs-xs); color: var(--text-3); }

/* 余额不足 */
.yuebuzu-modal { text-align: center; max-width: 380px; padding: var(--sp-7) var(--sp-5); }
.yuebuzu-icon { font-size: 56px; margin-bottom: var(--sp-4); }

/* ============================
   真实 /home 模型广场重构
   ============================ */

/* 新侧栏：新建对话 + 对话历史 + 置顶模型 */
.sidebar-newchat {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px 12px 8px;
  padding: 10px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #06241f;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.sidebar-newchat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,212,181,0.25); }
.sidebar-newchat svg { stroke: currentColor; }

.sidebar-section-title {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 6px;
  font-size: var(--fs-xs);
  color: var(--text-4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-history, .sidebar-pinned {
  overflow-y: auto;
}
.history-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-4);
  font-size: var(--fs-sm);
}

.pinned-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 12px;
}
.model-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}
.model-card:hover { background: var(--bg-card-hover); border-color: var(--border); }
.model-card.active { background: var(--grad-primary-soft); border-color: var(--border-strong); }
.model-card .model-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  font-size: 18px;
  flex-shrink: 0;
}
.model-card .model-info { flex: 1; min-width: 0; }
.model-card .model-title {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}
.model-card .model-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: rgba(0,212,181,0.15);
  color: var(--color-primary);
}
.model-card .model-desc {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-card .model-type {
  font-size: 10px;
  color: var(--text-4);
  margin-top: 4px;
}

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; transition: background var(--t-fast); }
.user-card:hover { background: var(--bg-card-hover); }
.user-balance {
  margin-left: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.recharge-btn {
  width: 100%;
  padding: 8px;
  border-radius: var(--r-md);
  background: rgba(0,212,181,0.12);
  border: 1px solid var(--border-strong);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--t-fast);
}
.recharge-btn:hover { background: var(--color-primary); color: #06241f; }

/* 首页模型广场 */
.home-view {
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 24px;
}
.home-top-tabs, .home-sub-tabs {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.home-sub-tabs { margin-bottom: 20px; }
.top-tab, .sub-tab {
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
}
.top-tab:hover, .sub-tab:hover { color: var(--text); background: var(--bg-card-hover); }
.top-tab.active {
  background: var(--grad-primary-soft);
  color: var(--color-primary);
  border-color: var(--border-strong);
  font-weight: 500;
}
.sub-tab.active { color: var(--text); background: var(--bg-card); border-color: var(--border); }

.home-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}
.announcement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.announcement-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-cta);
}
.announcement-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: rgba(0,212,181,0.12);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  margin-bottom: 12px;
}
.announcement-card h2 { font-size: var(--fs-xl); margin-bottom: 8px; color: var(--text); }
.announcement-meta { font-size: var(--fs-xs); color: var(--text-4); margin-bottom: 16px; }
.announcement-body { color: var(--text-2); line-height: 1.8; font-size: var(--fs-base); }
.announcement-body h3 { font-size: var(--fs-md); margin: 16px 0 8px; color: var(--text); }
.announcement-body ul { padding-left: 18px; margin: 8px 0; }
.announcement-body li { margin-bottom: 6px; }
.announcement-body p { margin-bottom: 10px; }

.home-quick-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ============================
   双模对比 / 多模型协作
   ============================ */
.duo-view {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}
.duo-hero { text-align: center; margin-bottom: 40px; }
.duo-hero-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,181,0.2), rgba(168,85,247,0.2));
  border: 1px solid var(--border-strong);
  font-size: 32px;
  color: var(--color-primary);
}
.duo-hero-title { font-size: var(--fs-3xl); font-weight: 600; margin-bottom: 10px; }
.duo-hero-title span { color: var(--color-primary); }
.duo-hero-sub { color: var(--text-3); font-size: var(--fs-md); }
.duo-features {
  display: grid; grid-template-columns: repeat(2, minmax(240px, 320px)); gap: 16px;
  margin-bottom: 40px;
}
.duo-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.duo-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.duo-feature-title { font-weight: 600; margin-bottom: 4px; }
.duo-feature-desc { font-size: var(--fs-sm); color: var(--text-3); }
.duo-input-area { width: 100%; max-width: 760px; }
.duo-quickstart { font-size: var(--fs-sm); color: var(--color-primary); margin-bottom: 10px; }
.duo-input-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
}
.duo-input-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.duo-tool-btn {
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: var(--bg-page-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.duo-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: var(--fs-base);
  resize: none;
  outline: none;
  margin-bottom: 12px;
}
.duo-input-foot { display: flex; align-items: center; justify-content: space-between; }
.duo-foot-left { display: flex; gap: 8px; flex-wrap: wrap; }
.duo-role-btn {
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.duo-role-btn.active { background: var(--grad-primary-soft); color: var(--color-primary); border-color: var(--border-strong); }
.duo-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #06241f;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.duo-side-panel {
  position: absolute; right: 24px; bottom: 100px;
  display: flex; flex-direction: column; gap: 10px;
}
.duo-side-card {
  width: 180px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.duo-side-title { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 4px; }
.duo-side-status { font-size: var(--fs-xs); color: var(--text-4); }

/* ============================
   AI 漫剧工作室
   ============================ */
.manju-view {
  flex-direction: column;
  overflow-y: auto;
}
.manju-hero {
  position: relative;
  padding: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,212,181,0.12), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(168,85,247,0.10), transparent 40%),
    linear-gradient(180deg, #0a1418 0%, #0d1f25 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.manju-hero-head { display: flex; justify-content: space-between; margin-bottom: 30px; }
.manju-hero-core { margin-bottom: 40px; }
.manju-hero-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #06241f;
  font-size: 36px;
}
.manju-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(0,212,181,0.15);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  margin-bottom: 12px;
}
.manju-hero-title { font-size: var(--fs-3xl); font-weight: 600; margin-bottom: 10px; }
.manju-hero-sub { color: var(--text-3); font-size: var(--fs-md); }
.manju-features {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.manju-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
}
.manju-feature:hover, .manju-feature.active { background: var(--grad-primary-soft); border-color: var(--border-strong); }
.manju-feature-icon { font-size: 20px; }
.manju-feature-title { font-size: var(--fs-sm); font-weight: 500; }
.manju-feature-desc { font-size: var(--fs-xs); color: var(--text-3); }
.manju-projects { padding: 24px; }
.manju-section-title { font-size: var(--fs-lg); margin-bottom: 16px; }

/* ============================
   我的
   ============================ */
.mine-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px;
  padding: 20px; overflow-y: auto;
}
.mine-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.mine-back {
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: var(--fs-sm);
}
.mine-tabs { display: flex; gap: 6px; }
.mine-tab {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--text-3);
  cursor: pointer;
}
.mine-tab.active { background: var(--grad-primary-soft); color: var(--color-primary); }
.mine-date, .mine-batch {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.mine-batch { margin-left: 0; }
.mine-warning {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(241,196,15,0.08);
  border: 1px solid rgba(241,196,15,0.2);
  border-radius: var(--r-md);
  color: #f1c40f;
  font-size: var(--fs-sm);
  margin-bottom: 16px;
}
.mine-info-card { padding: 20px; margin-bottom: 16px; }
.mine-info-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-size: var(--fs-md);
  font-weight: 600;
}
.mine-id {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: rgba(0,212,181,0.12);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.mine-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mine-profile-name { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 4px; }
.mine-profile-level {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-page-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
}
/* ★ r441：管理员身份标识 —— 此前身份标签是写死的「普通用户」，管理员也照显普通用户。
   用金色强调（不改内边距，避免尺寸位移，只叠一层 inset 描边）。 */
.mine-profile-level.is-admin {
  background: rgba(241, 196, 15, 0.14);
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.32);
}
.mine-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-sm);
  margin-bottom: 14px;
}
.mine-balance-value { color: var(--color-primary); font-weight: 600; font-size: var(--fs-lg); }
.mine-account-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.mine-account-tag {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: rgba(241,196,15,0.12);
  color: #f1c40f;
  font-size: var(--fs-xs);
}
.mine-functions { padding: 20px; }
.mine-func-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mine-func-item { cursor: pointer; }
.mine-func-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}
.mine-func-title { font-size: var(--fs-sm); font-weight: 500; margin-bottom: 2px; }
.mine-func-desc { font-size: var(--fs-xs); color: var(--text-3); }

/* ============================
   开放平台 API 文档
   ============================ */
.api-layout {
  display: grid; grid-template-columns: 260px 1fr;
  height: 100%; overflow: hidden;
}
.api-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.api-search { padding: 16px; border-bottom: 1px solid var(--border); }
.api-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--border); }
.api-cat {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.api-cat.active { background: var(--grad-primary-soft); color: var(--color-primary); border-color: var(--border-strong); }
.api-cat span { opacity: 0.7; margin-left: 3px; }
.api-model-list { flex: 1; overflow-y: auto; padding: 8px; }
.api-model-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.api-model-item:hover { background: var(--bg-card-hover); }
.api-model-item.active { background: var(--grad-primary-soft); }
.api-model-item img { width: 28px; height: 28px; border-radius: 6px; }
.api-model-name { font-size: var(--fs-sm); font-weight: 500; }
.api-model-id { font-size: var(--fs-xs); color: var(--text-4); }
.api-main { padding: 28px; overflow-y: auto; }
.api-main-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.api-title { font-size: var(--fs-2xl); display: flex; align-items: center; gap: 12px; }
.api-badge { padding: 4px 10px; border-radius: var(--r-md); background: rgba(0,212,181,0.12); color: var(--color-primary); font-size: var(--fs-xs); }
.api-subtitle { color: var(--text-4); font-size: var(--fs-sm); margin-top: 4px; }
.api-tip {
  display: flex; gap: 10px;
  padding: 14px;
  background: rgba(0,212,181,0.08);
  border: 1px solid rgba(0,212,181,0.2);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--fs-sm);
  margin-bottom: 20px;
}
.api-tip code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; color: var(--color-primary); }
.api-section-title { font-size: var(--fs-md); font-weight: 600; margin: 24px 0 12px; }
.api-endpoint {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
}
.api-method { padding: 3px 8px; border-radius: var(--r-sm); background: #3b82f6; color: #fff; font-size: 11px; }
.api-url { color: var(--color-primary); }
.api-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.api-code-header { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); }
.api-code-block pre { padding: 14px; font-family: var(--ff-mono); font-size: 13px; color: var(--text-2); overflow-x: auto; }

/* ============================
   Home V2 — 设计图重构（深绿主题）
   ============================ */
:root.app-green {
  --green-bg-1: #061912;
  --green-bg-2: #0c2a1f;
  --green-bg-3: #0f3a29;
  --green-line: rgba(126, 232, 155, 0.15);
  --green-soft: rgba(126, 232, 155, 0.08);
  --green-glow: rgba(126, 232, 155, 0.35);
  --gold-1: #fde68a;
  --gold-2: #f59e0b;
}

/* 新侧栏 */
.sidebar-v2 {
  background: linear-gradient(180deg, #0c2a1f 0%, #061912 100%);
  border-right: 1px solid var(--green-line);
  width: 240px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  position: relative;
}
.sidebar-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(126,232,155,0.12), transparent 55%);
  pointer-events: none;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
/* r345 侧栏横排 logo：自带文字，去掉圆形底座与旋转动画 */
.brand-logo {
  height: 42px; width: auto;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo img {
  /* r356b：装饰线已精准擦除（保留完整机器人），825x256，40px 高 ≈ 原始视觉宽度 */
  width: auto; height: 40px; max-height: 42px;
  object-fit: contain;
  display: block;
  animation: none;
  filter: drop-shadow(0 0 8px rgba(126,232,155,0.3));
}
.brand-title {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--green-soft);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff;
  border-color: rgba(126,232,155,0.4);
  box-shadow: 0 4px 14px rgba(22,101,52,0.4);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  background: #fde68a;
  border-radius: 0 3px 3px 0;
}
.nav-icon { flex-shrink: 0; }

/* 底部智能体卡 */
/* ---- r331 左下角小智机器人：3D 视差 + 悬停挥手打招呼 ---- */
.xz-bot {
  margin-top: auto;
  position: relative;
  width: 116px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 16px;
  perspective: 520px;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}
.xz-float {
  transform-style: preserve-3d;
  animation: xzFloat 3.4s ease-in-out infinite;
  transform-origin: 50% 88%;
}
.xz-img {
  width: 100%;
  display: block;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(126,232,155,.18));
  will-change: transform;
  pointer-events: none;
}
.xz-bot:hover .xz-float { animation: xzWave .55s ease-in-out infinite; }
@keyframes xzFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.2deg); }
}
@keyframes xzWave {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-3px); }
}
.xz-shadow {
  width: 62%;
  height: 10px;
  margin: -2px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%);
  animation: xzShadow 3.4s ease-in-out infinite;
}
@keyframes xzShadow {
  0%, 100% { transform: scaleX(1); opacity: .9; }
  50% { transform: scaleX(.8); opacity: .5; }
}
.xz-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(.85);
  background: linear-gradient(135deg, #0f3a29, #0c2a1f);
  border: 1px solid rgba(126,232,155,.4);
  color: #eaf7f0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 14px rgba(126,232,155,.15);
  z-index: 5;
}
.xz-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(126,232,155,.4);
}
.xz-bot:hover .xz-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* 顶栏（深绿风） */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: transparent;
  position: relative;
  z-index: 2;
}
.topbar-spacer { flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.bell-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  /* ★ r436：同 .login-page-close/.modal-close —— 显式取消 mobile.css 里
     @media(max-width:700px){ button{min-height:44px} } 的触控高度，
     否则这个 36×36 的圆钮会被撑成 36×44 的竖椭圆。 */
  min-height: 0; max-height: 36px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
/* 同上：透明热区补到 ~50px（视觉仍 36×36） */
.bell-btn::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.bell-btn:hover { background: rgba(126,232,155,0.12); }
.bell-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #0c2a1f;
  box-shadow: 0 0 4px rgba(239,68,68,0.6);
}
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 30px;
  background: rgba(126,232,155,0.08);
  border: 1px solid var(--green-line);
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255,255,255,0.9);
}
.topbar-user:hover { background: rgba(126,232,155,0.15); border-color: rgba(126,232,155,0.3); }
.topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #0a2818;
  font-weight: 700;
  font-size: 13px;
}
.topbar-login { font-size: 13px; }

/* 主区 V2 */
.main-v2 {
  background:
    radial-gradient(circle at 80% 30%, rgba(126,232,155,0.18), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(126,232,155,0.08), transparent 40%),
    linear-gradient(135deg, #061912 0%, #0c2a1f 50%, #061912 100%);
  color: rgba(255,255,255,0.92);
  position: relative;
  overflow: hidden;
}
.main-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px;
  pointer-events: none;
}
.main-body-v2 {
  padding: 0;
  overflow-y: auto;
  position: relative;
}
/* r395 桌面默认：手机专属元素隐藏（mobile.css ≤1000px 内反转） */
.m-only, .m-home-only { display: none !important; }
.hero-shot { display: none !important; }
.hero-star { display: none !important; } /* r414 手机专属星空 logo 区，桌面不渲染 */
/* r408 手机专属叠加层（机器人/logo/标语）：桌面隐藏 */
.hero-mix { display: none !important; }

/* r399 logo 固定：去掉旋转与信号波纹（用户要求不做特效） */
.big-eye { animation: none !important; }
.er-pulse { display: none !important; }

.home-v2 {
  padding: 0;
  flex-direction: column;
  gap: 32px;
  color: rgba(255,255,255,0.92);
}

/* Hero — 大眼睛视觉中心 */
.home-hero {
  position: relative;
  padding: 32px 32px 16px;
  text-align: center;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(126,232,155,0.25) 0%, transparent 55%);
  pointer-events: none;
  filter: blur(40px);
}
.home-hero-eyes {
  position: relative;
  width: 360px;
  height: 360px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 30px rgba(126,232,155,0.5));
  /* r332 用户要求 logo 定住，不做上下浮动（eye-float 已停用） */
}
.big-eye {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
  animation: logo-spin 30s linear infinite;
}
@keyframes eye-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.home-hero-text { position: relative; margin-top: -20px; }
.home-title {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 10px;
}
.home-title-main {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(251,191,36,0.4);
}
.home-title-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3em;
  font-weight: 300;
}
.home-tagline {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-weight: 500;
}
.home-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* 能力卡组 */
.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 32px;
}
.home-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(126,232,155,0.10), rgba(126,232,155,0.02));
  border: 1px solid rgba(126,232,155,0.18);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.home-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  opacity: 0;
  transition: opacity 0.25s;
}
.home-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(126,232,155,0.45);
  background: linear-gradient(135deg, rgba(126,232,155,0.18), rgba(126,232,155,0.06));
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}
.home-feature:hover::before { opacity: 1; }
.hf-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}
.hf-icon::after { content: none; }
.hf-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hf-text { flex: 1; min-width: 0; }
.hf-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.hf-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.hf-arrow {
  font-size: 24px;
  color: #fde68a;
  opacity: 0.4;
  transition: all 0.25s;
}
.home-feature:hover .hf-arrow { opacity: 1; transform: translateX(4px); }

/* 智能体横幅 */
.home-agent {
  margin: 0 32px 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(126,232,155,0.08), rgba(245,158,11,0.06));
  border: 1px solid rgba(126,232,155,0.18);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1px 1fr auto;
  gap: 24px;
  align-items: center;
}
.ha-left {
  display: flex; align-items: center; gap: 20px;
}
.ha-icon {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  filter: none;
}
.ha-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ha-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.ha-name {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.ha-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.ha-divider {
  width: 1px;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(126,232,155,0.3), transparent);
}
.ha-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.ha-trait {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1;
  cursor: pointer;
  transition: transform 0.2s;
}
.ha-trait:hover { transform: translateY(-2px); }
.ha-trait-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(126,232,155,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ha-trait-title {
  font-size: 13px;
  font-weight: 600;
  color: #fde68a;
}
.ha-trait-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.ha-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #166534, #15803d);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(126,232,155,0.4);
  box-shadow: 0 4px 16px rgba(22,101,52,0.4);
  transition: all 0.2s;
  flex-shrink: 0;
}
.ha-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(22,101,52,0.6); }

@media (max-width: 960px) {
  .home-features { grid-template-columns: repeat(2, 1fr); }
  .home-agent { grid-template-columns: 1fr; }
  .ha-divider { display: none; }
  .ha-left { flex-direction: column; text-align: center; align-items: center; }
  .ha-right { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .home-features { grid-template-columns: 1fr; padding: 0 16px; }
  .home-hero-eyes { width: 240px; height: 240px; }
  .home-title-main { font-size: 40px; }
  .sidebar-v2 { width: 200px; }
}

@media (max-width: 900px) {
  .app-layout { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
  .chat-sidebar { display: none; }
  .draw-form { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .draw-view { flex-direction: column; }
  .mine-grid { grid-template-columns: 1fr; }
  .duo-features { grid-template-columns: 1fr; }
  .duo-side-panel { position: static; margin-top: 20px; flex-direction: row; width: 100%; }
  .manju-hero-head { flex-direction: column; gap: 10px; }
  .mine-layout { grid-template-columns: 1fr; }
  /* r373：「我的作品」的隐藏规则移到 mobile.css 的 ≤1000px 块
     （app.css 这里是 900px，会漏掉 901~1000px 那段单列布局） */
  .api-layout { grid-template-columns: 1fr; }
  .api-sidebar { display: none; }
}

/* ============================================================
   AI写真馆 · 多智能体协作工作台
   ============================================================ */
/* ---------- 进度 ---------- */
.ps-progress { margin-bottom: 16px; }
.ps-progress-track {
  height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.10);
}
.ps-progress-track > span {
  display: block; height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  transition: width .35s ease;
}
.ps-progress-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: var(--fs-xs); color: var(--text-tertiary);
}
.ps-reset {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: var(--fs-xs); padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- 上传参考照片 ---------- */
.ps-upload {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.ps-upload-head { display: flex; align-items: flex-start; gap: 12px; }
.ps-avatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--avatar-border);
  background: rgba(0,0,0,0.25);
}
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-upload-meta { flex: 1; min-width: 0; }
.ps-upload-name {
  font-size: var(--fs-sm); font-weight: 600;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ps-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: rgba(var(--accent-rgb),0.16); color: var(--accent);
}
.ps-upload-tip {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  margin-top: 4px; line-height: 1.6;
}
.ps-upload-body { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.ps-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-thumb { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 1px solid var(--panel-border); }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; cursor: pointer; line-height: 16px; padding: 0;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 13px;
}
.ps-drop {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 150px; min-height: 62px; padding: 10px;
  border: 1px dashed var(--input-border); border-radius: 12px;
  background: var(--input-bg); color: var(--upload-text);
  cursor: pointer; transition: all .18s ease;
  font-family: inherit;
}
.ps-drop:hover, .ps-drop.dragging {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),0.08);
  color: var(--text-secondary);
}
.ps-drop.has-photos { width: 118px; }
.ps-drop-icon { font-size: 18px; line-height: 1; color: var(--accent); }
.ps-drop-text { font-size: var(--fs-xs); color: var(--text-secondary); }
.ps-drop-sub { font-size: 10px; color: var(--text-tertiary); text-align: center; line-height: 1.4; }

/* 鉴定结论 */
.ps-verdict {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(var(--accent-rgb),0.08);
  border: 1px solid rgba(var(--accent-rgb),0.22);
}
.ps-verdict-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-verdict-name { font-size: var(--fs-sm); font-weight: 600; }
.ps-verdict-score {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(var(--accent-rgb),0.18); color: var(--accent);
}
.ps-verdict-detail { font-size: 11px; color: var(--text-tertiary); margin-top: 5px; }
.ps-verdict-advice { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 5px; line-height: 1.6; }

/* ---------- 对话流 ---------- */
.ps-chat { display: flex; flex-direction: column; gap: 14px; }
.ps-msg { display: flex; gap: 12px; align-items: flex-start; }
.ps-msg--user { justify-content: flex-end; }
.ps-bubble {
  flex: 1; min-width: 0;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.ps-bubble--wide { border-color: rgba(var(--accent-rgb),0.28); }
.ps-bubble-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.ps-name { font-size: var(--fs-sm); font-weight: 600; }
.ps-role { font-size: 11px; color: var(--text-tertiary); }
.ps-step-no {
  margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--text-tertiary);
}
.ps-say { font-size: var(--fs-sm); line-height: 1.7; color: var(--text-secondary); }
.ps-bubble--note {
  background: rgba(var(--accent-rgb),0.06);
  border-color: rgba(var(--accent-rgb),0.18);
}
.ps-bubble--note .ps-say { font-size: var(--fs-xs); }

/* 用户气泡 */
.ps-msg--user .ps-bubble {
  max-width: 78%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  border-color: transparent;
}
.ps-user-label { font-size: 10px; opacity: .75; margin-bottom: 4px; }
.ps-user-text { font-size: var(--fs-sm); line-height: 1.6; }

/* 提问卡 */
.ps-q { font-size: var(--fs-md); font-weight: 600; line-height: 1.5; color: var(--text-primary); }
.ps-hint { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 6px; line-height: 1.6; }
.ps-group { margin-top: 14px; }
.ps-group-label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 7px; }
.ps-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-opt {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  color: var(--chip-text); font-size: var(--fs-xs);
  font-family: inherit; transition: all .16s ease;
}
.ps-opt:hover:not(:disabled) { background: var(--chip-hover-bg); color: var(--text-primary); }
.ps-opt.on {
  background: rgba(var(--accent-rgb),0.18);
  border-color: var(--accent); color: var(--accent); font-weight: 600;
}
.ps-opt:disabled { cursor: default; opacity: .55; }
.ps-opt.on:disabled { opacity: 1; }
.ps-extra-input {
  width: 100%; margin-top: 10px; padding: 9px 12px;
  border-radius: 10px; font-size: var(--fs-xs); font-family: inherit;
  background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text-primary); outline: none; box-sizing: border-box;
}
.ps-extra-input::placeholder { color: var(--input-placeholder); }
.ps-extra-input:focus { border-color: var(--accent); }
.ps-extra-input:disabled { opacity: .55; }

/* 按钮 */
.ps-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ps-btn {
  padding: 9px 20px; border-radius: 10px; cursor: pointer;
  font-size: var(--fs-xs); font-family: inherit; font-weight: 500;
  border: 1px solid transparent; transition: all .16s ease;
}
.ps-btn-primary {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--accent-ink); border-color: transparent;
}
.ps-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.ps-btn-primary:disabled { opacity: .6; cursor: default; }
.ps-btn-ghost {
  background: transparent; border-color: var(--panel-border);
  color: var(--text-secondary);
}
.ps-btn-ghost:hover:not(:disabled) { background: var(--chip-hover-bg); color: var(--text-primary); }
.ps-btn-sm { padding: 5px 12px; font-size: 11px; border-radius: 8px; }
.ps-btn-lg { padding: 12px 26px; font-size: var(--fs-sm); }

/* 已作答 */
.ps-msg--done .ps-bubble { opacity: .95; }
.ps-answer {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--panel-border);
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.ps-answer-line { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.6; }
.ps-answer-key { color: var(--text-tertiary); }
.ps-answer-val { color: var(--accent); font-weight: 600; }
.ps-answer-extra { color: var(--text-tertiary); }
.ps-redo {
  margin-top: 4px; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; color: var(--text-tertiary); font-family: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.ps-redo:hover { color: var(--accent); }

/* ---------- 欢迎态 ---------- */
.ps-welcome {
  text-align: center; padding: 28px 20px;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 16px; backdrop-filter: blur(8px);
}
.ps-welcome-icon { font-size: 34px; }
.ps-welcome-title { font-size: var(--fs-lg); font-weight: 600; margin-top: 10px; }
.ps-welcome-sub {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  margin: 8px auto 0; max-width: 520px; line-height: 1.8;
}
.ps-examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.ps-example {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  color: var(--chip-text); font-size: var(--fs-xs); font-family: inherit;
  transition: all .16s ease;
}
.ps-example:hover { background: var(--chip-hover-bg); color: var(--text-primary); border-color: var(--accent); }

/* ---------- 提示词 ---------- */
.ps-prompt-box {
  width: 100%; margin-top: 12px; padding: 12px;
  border-radius: 10px; resize: vertical; box-sizing: border-box;
  background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.75; outline: none;
}
.ps-prompt-box:focus { border-color: var(--accent); }
.ps-prompt-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 10px;
  font-size: 11px; color: var(--text-tertiary);
}

/* ---------- 方案摘要 ---------- */
.ps-summary {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px; margin-top: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.18); border: 1px solid var(--panel-border);
}
.ps-sum-row { display: flex; gap: 8px; font-size: var(--fs-xs); min-width: 0; }
.ps-sum-k { color: var(--text-tertiary); flex: 0 0 auto; }
.ps-sum-v { color: var(--text-secondary); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- 出片结果 ---------- */
.ps-results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin-top: 16px;
}
.ps-results:empty { display: none; }
.ps-result {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px;
  overflow: hidden; background: rgba(0,0,0,0.28);
  border: 1px solid var(--panel-border);
}
.ps-result img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ps-result.generating {
  display: flex; align-items: center; justify-content: center;
}
.ps-result-status { font-size: var(--fs-xs); color: var(--text-tertiary); }
.ps-result-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; justify-content: center;
  padding: 10px; opacity: 0; transition: opacity .18s ease;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.ps-result:hover .ps-result-actions { opacity: 1; }
.ps-result-actions .ps-btn { background: rgba(0,0,0,0.5); color: #fff; border-color: rgba(255,255,255,0.24); }
.ps-result-error { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; }
.ps-error-box { text-align: center; padding: 14px; }
.ps-error-msg { font-size: 11px; color: var(--text-tertiary); margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .ps-upload-body { flex-direction: column; }
  .ps-drop { width: 100%; }
  .ps-summary { grid-template-columns: 1fr; }
  .ps-results { grid-template-columns: repeat(2, 1fr); }
  .ps-msg--user .ps-bubble { max-width: 90%; }
}

/* ============================================================
   AI写真馆 · 独立拍摄工作台（portraitWork 视图）
   ============================================================ */
.ps-view {
  /* 沿用 AI写真馆的绿色主题变量（与 .agent-detail-view--portrait 一致） */
  --accent: #00d4b5;
  --accent-rgb: 0,212,181;
  --accent-ink: #05352d;
  --brand-a: #00bfa0;
  --brand-b: #00d4b5;
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.85);
  --text-tertiary: rgba(255,255,255,0.55);
  --panel-bg: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.1);
  --chip-bg: rgba(255,255,255,0.06);
  --chip-hover-bg: rgba(255,255,255,0.12);
  --chip-border: rgba(255,255,255,0.12);
  --chip-text: rgba(255,255,255,0.78);
  --input-bg: rgba(0,0,0,0.2);
  --input-border: rgba(255,255,255,0.15);
  --input-placeholder: rgba(255,255,255,0.35);
  --upload-text: rgba(255,255,255,0.55);
  --avatar-border: rgba(255,255,255,0.2);

  height: 100%;
  overflow-y: auto;
  padding: var(--sp-5);
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(4,12,8,0.80) 0%, rgba(3,10,6,0.90) 55%, rgba(2,6,4,0.95) 100%),
    url('../img/portrait-detail-bg.jpg') center top / cover no-repeat;
}
.ps-page { width: 100%; max-width: 820px; margin: 0 auto; }

/* 顶栏 */
.ps-topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ps-back {
  flex: 0 0 auto; cursor: pointer;
  font-size: var(--fs-xs); color: var(--text-tertiary);
  transition: color .16s ease;
}
.ps-back:hover { color: var(--accent); }
.ps-topbar-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ps-topbar-logo {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}
.ps-topbar-titles { min-width: 0; }
.ps-topbar-title { font-size: var(--fs-lg); font-weight: 700; }
.ps-topbar-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* 参考照片条 */
.ps-refbar {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.ps-refbar-head { display: flex; align-items: flex-start; gap: 12px; }
.ps-refbar-meta { flex: 1; min-width: 0; }

/* 详情页底部输入框上方的缩略图 */
.ps-compose-thumbs { gap: 8px; padding: 0 2px 10px; }
.ps-compose-thumbs .ps-thumb { width: 52px; height: 52px; border-radius: 8px; }
.agent-detail-compose.ps-dragging .compose-box {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),0.08);
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .ps-view { padding: 16px 14px; }
  .ps-topbar { gap: 10px; }
  .ps-topbar-sub { display: none; }
}

/* ---------- 分镜方案表 ---------- */
.ps-plan {
  margin-top: 14px; border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,0.18); border: 1px solid var(--panel-border);
}
.ps-plan-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  background: rgba(var(--accent-rgb),0.08);
  border-bottom: 1px solid var(--panel-border);
}
.ps-plan-title { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.ps-plan-list { padding: 6px 0; }
.ps-plan-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; font-size: var(--fs-xs);
}
.ps-plan-row + .ps-plan-row { border-top: 1px dashed rgba(255,255,255,0.07); }
.ps-plan-no {
  flex: 0 0 auto; min-width: 42px;
  font-size: 11px; color: var(--accent); font-weight: 600;
}
.ps-plan-combo {
  flex: 1; min-width: 0; color: var(--text-secondary);
  overflow-wrap: anywhere; line-height: 1.6;
}
.ps-plan-copy {
  flex: 0 0 auto; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; font-family: inherit; color: var(--text-tertiary);
  text-decoration: underline; text-underline-offset: 2px;
}
.ps-plan-copy:hover { color: var(--accent); }
.ps-plan-label { margin-top: 14px; font-size: 11px; color: var(--text-tertiary); }
.ps-prompt-box--common { margin-top: 7px; }
.ps-prompt-box--identity { margin-top: 7px; line-height: 1.7; }

/* 成片左上角标出这张用的组合 */
.ps-result-tag {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 6px 10px; font-size: 10px; line-height: 1.4;
  color: #fff; background: linear-gradient(rgba(0,0,0,0.72), transparent);
  pointer-events: none; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* 详情页「返回工作台」入口（工作台有内容时才显示） */
.ps-resume-bar {
  display: flex; align-items: center; gap: 14px;
  max-width: 720px; margin: 0 auto 18px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.18), rgba(var(--accent-rgb),0.06));
  border: 1px solid rgba(var(--accent-rgb),0.38);
  backdrop-filter: blur(8px);
}
.ps-resume-bar[hidden] { display: none; }
.ps-resume-icon { font-size: 24px; flex: 0 0 auto; line-height: 1; }
.ps-resume-text { flex: 1; min-width: 0; }
.ps-resume-title { font-size: var(--fs-sm); font-weight: 600; }
.ps-resume-sub {
  font-size: var(--fs-xs); color: var(--text-tertiary);
  margin-top: 3px; line-height: 1.5;
}
@media (max-width: 640px) {
  .ps-resume-bar { flex-wrap: wrap; }
  .ps-resume-text { flex: 1 1 100%; }
}

/* ============================================================================
   AI 品牌 VI 工厂（brand-ai.js + brand-studio.js）
   前缀 .bvi- —— 骨架与 .xhs- 同构，但内容围绕「品牌物料」组织
   ⚠️ 出图容器（[data-shot] / [data-logo-shot]）用**属性选择器**而不是类名：
      app.js 的 renderDrawImage/runOneDrawTask 会把 card.className 整个覆写成
      'draw-result'，类名会被冲掉，data- 属性不会。
   ============================================================================ */

.bvi-studio { padding-bottom: 40px; }

/* ---- 团队日志 ---- */
.bvi-team-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bvi-msg { display: flex; gap: 10px; align-items: flex-start; }
.bvi-msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex: none; border: 1px solid var(--border-light);
}
.bvi-msg-body {
  flex: 1; min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 9px 12px;
}
.bvi-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.bvi-msg-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.bvi-msg-role { font-size: 11px; color: var(--text-tertiary); }
.bvi-msg-text {
  font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  white-space: pre-wrap; word-break: break-word;
}
.bvi-prog-box {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-secondary);
}
.bvi-prog-spin {
  width: 13px; height: 13px; flex: none;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: bvi-spin .7s linear infinite;
}
@keyframes bvi-spin { to { transform: rotate(360deg); } }
.bvi-prog-ok { color: #16a34a; font-weight: 700; }
.bvi-prog-bad { color: #dc2626; font-weight: 700; }

/* ---- 工作区 / 步骤条 ---- */
.bvi-wb { margin-top: 20px; }
.bvi-wb-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.bvi-wb-topic {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bvi-wb-bar .btn { flex: none; }
.bvi-tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: linear-gradient(180deg, var(--bg-card), rgba(255,255,255,.02));
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px 14px 14px; margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.bvi-tab {
  position: relative; border: 1.5px solid transparent;
  background: var(--bg-page); cursor: pointer;
  padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit; color: var(--text-secondary); text-align: center;
  border-radius: var(--r-md);
  transition: transform .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, background .18s ease;
}
.bvi-tab:hover:not(.active) {
  color: var(--text-primary); border-color: var(--border);
  background: var(--bg-card); transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.bvi-step-num {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-input); color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  border: 2px solid var(--border-light);
  transition: all .2s;
}
.bvi-step-name { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .2px; }
.bvi-step-meta { font-size: 11px; color: var(--text-secondary); opacity: .8; min-height: 14px; }
.bvi-step-go {
  font-size: 10.5px; color: var(--text-secondary); opacity: .65;
  letter-spacing: .5px; margin-top: 2px; transition: all .18s ease;
}
.bvi-tab:hover .bvi-step-go { color: var(--accent); opacity: 1; transform: translateX(2px); }
.bvi-tab.active {
  background: var(--bg-card); border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(122,207,169,.22), 0 0 0 3px rgba(122,207,169,.14);
  color: var(--text-primary);
}
.bvi-tab.active .bvi-step-num {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(122,207,169,.25); transform: scale(1.08);
}
.bvi-tab.active .bvi-step-name { color: var(--accent); font-weight: 700; }
.bvi-tab.active .bvi-step-meta { color: var(--accent); opacity: 1; }
.bvi-tab.active .bvi-step-go { color: var(--accent); opacity: 1; }
.bvi-tab.completed:not(.active) {
  border-color: #22c55e;
  background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(34,197,94,.02));
}
.bvi-tab.completed .bvi-step-num { background: #22c55e; color: #fff; border-color: #22c55e; }
.bvi-tab.completed .bvi-step-num::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; line-height: 1;
}
.bvi-tab.completed .bvi-step-num > .bvi-num-text { display: none; }
.bvi-tab.completed .bvi-step-name { color: #15803d; font-weight: 700; }
.bvi-panel[hidden] { display: none; }

/* ---- 通用卡片 ---- */
.bvi-strategy, .bvi-items, .bvi-deliver { display: flex; flex-direction: column; gap: 14px; }
.bvi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.bvi-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.bvi-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.bvi-hint { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; margin-top: 8px; }
.bvi-hint--foot { margin-top: 14px; }

/* ---- ① 品牌策略 ---- */
.bvi-card--hero {
  background: linear-gradient(135deg, var(--bg-card), rgba(122,207,169,.06));
  border-color: rgba(122,207,169,.28);
}
.bvi-brand-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bvi-brand-name { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: .5px; }
.bvi-brand-en { font-size: 13px; color: var(--text-tertiary); letter-spacing: 1px; }
.bvi-slogan {
  margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent);
  letter-spacing: .3px;
}
.bvi-positioning { margin-top: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.bvi-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bvi-pal-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border-radius: var(--r-md);
  background: var(--bg-page); border: 1px solid var(--border-light);
}
.bvi-pal-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.bvi-pal-dot--primary { background: #2b2f36; }
.bvi-pal-dot--secondary { background: #9a9086; }
.bvi-pal-dot--accent { background: #c8a06a; }
.bvi-pal-dot--neutral { background: #f3efe8; }
.bvi-pal-label { font-size: 11px; color: var(--text-tertiary); }
.bvi-pal-val { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.bvi-pal-en {
  margin-top: 10px; font-size: 12px; color: var(--text-tertiary);
  line-height: 1.6; padding-top: 10px; border-top: 1px dashed var(--border-light);
}

.bvi-kv { display: flex; flex-direction: column; gap: 8px; }
.bvi-kv-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; }
.bvi-kv-k { flex: none; width: 46px; color: var(--text-tertiary); font-size: 12px; padding-top: 2px; }
.bvi-kv-v { flex: 1; min-width: 0; color: var(--text-secondary); }
.bvi-kw {
  display: inline-block; margin: 0 6px 4px 0; padding: 2px 9px;
  background: rgba(122,207,169,.12); color: var(--accent);
  border-radius: 999px; font-size: 12px; font-weight: 600;
}

.bvi-culture { display: flex; flex-direction: column; gap: 8px; }
.bvi-cul-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; }
.bvi-cul-k { flex: none; width: 46px; color: var(--text-tertiary); font-size: 12px; padding-top: 2px; }
.bvi-cul-v { flex: 1; min-width: 0; color: var(--text-secondary); }
.bvi-cul-copy {
  margin-top: 6px; padding: 12px 14px;
  background: var(--bg-page); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 13px; line-height: 1.8; color: var(--text-secondary);
  white-space: pre-wrap; word-break: break-word;
}

/* ---- ② 标志定稿 ---- */
.bvi-logo-pick { display: flex; flex-direction: column; gap: 14px; }
.bvi-tip {
  font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 11px 14px;
}
.bvi-tip b { color: var(--text-primary); }
.bvi-logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* r121c：logo 出图上方的「提示词补充」（复用写真的 r98 输入框，间距按品牌面板重调） */
.bvi-logo-pick .bvi-extra-row { margin: 0; }
.bvi-logo-pick .bvi-extra-row .wd-size-label { min-width: 56px; }
.bvi-logo-card {
  background: var(--bg-card); border: 1.5px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bvi-logo-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.bvi-logo-card.picked {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(122,207,169,.22), 0 0 0 3px rgba(122,207,169,.14);
}
.bvi-logo-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.bvi-logo-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.bvi-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; vertical-align: middle;
}
.bvi-logo-concept { font-size: 12px; color: var(--text-tertiary); }
.bvi-logo-meaning {
  font-size: 12.5px; line-height: 1.75; color: var(--text-secondary);
  max-height: 92px; overflow: auto;
}
.bvi-logo-acts { display: flex; gap: 8px; margin-top: 4px; }
.bvi-logo-actions { display: flex; justify-content: center; }
.bvi-logo-grid [data-logo-shot],
.bvi-logo-shot {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg-page); border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.bvi-mini-status {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-tertiary);
}

/* ---- ③ 物料出图 ---- */
.bvi-subhead {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; color: var(--text-primary);
  margin-top: 4px;
}
.bvi-subhead-sub { font-size: 12px; font-weight: 400; color: var(--text-tertiary); }
.bvi-text-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bvi-text-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 13px 15px;
}
.bvi-text-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bvi-text-icon { font-size: 15px; }
.bvi-text-name { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.bvi-text-body {
  font-size: 12.5px; line-height: 1.8; color: var(--text-secondary);
  white-space: pre-wrap; word-break: break-word;
  max-height: 150px; overflow: auto;
}
.bvi-item-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bvi-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 12px 14px 14px;
  transition: opacity .18s ease, border-color .18s ease;
}
.bvi-item.off { opacity: .5; }
.bvi-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bvi-item-toggle {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; min-width: 0;
}
.bvi-item-icon { font-size: 15px; }
.bvi-item-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.bvi-item-acts { flex: none; }
.bvi-item-meaning {
  margin-top: 6px; font-size: 12px; line-height: 1.65; color: var(--text-tertiary);
  min-height: 20px;
}
.bvi-item [data-shot],
.bvi-item-shot {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  margin-top: 10px; border-radius: var(--r-md);
  background: var(--bg-page); overflow: hidden;
}
/* r125：runOneDrawTask 出图时会把容器的 class 整串替换成 draw-result，
   直接把 .bvi-item-shot 传进去，它的 aspect-ratio / overflow 会一起丢、整块布局塌掉。
   所以真正装图的是内层 holder —— 这里把它撑满外框。 */
.bvi-shot-holder { position: relative; width: 100%; height: 100%; }
.hd-shot { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; }
.bvi-gen-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-top: 4px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
}
.bvi-gen-hint { font-size: 12px; color: var(--text-tertiary); }

/* 面板底部的「下一步」推进条（品牌策略 → 标志定稿 → 物料出图 → 交付下载） */
.bvi-next-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-top: 16px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
}
.bvi-next-hint { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }
.bvi-next-bar .btn { flex: none; }
.bvi-empty {
  padding: 34px 20px; text-align: center;
  font-size: 13px; line-height: 1.8; color: var(--text-tertiary);
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

/* ---- ④ 交付 ---- */
.bvi-manifest { display: flex; flex-direction: column; }
.bvi-man-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
}
.bvi-man-row:last-child { border-bottom: none; }
.bvi-man-icon { flex: none; font-size: 15px; width: 20px; text-align: center; }
.bvi-man-name { flex: none; width: 96px; font-weight: 600; color: var(--text-primary); }
.bvi-man-meaning { flex: 1; min-width: 0; color: var(--text-secondary); line-height: 1.6; }
.bvi-pre {
  margin: 0; padding: 13px 15px;
  background: var(--bg-page); border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; line-height: 1.7; color: var(--text-secondary);
  white-space: pre-wrap; word-break: break-word;
  max-height: 190px; overflow: auto;
}

/* ---- 首页表单：品牌名双输入 + 启动按钮 ---- */
.bvi-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bvi-start-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.bvi-start-hint { font-size: 12px; color: var(--text-tertiary); }

/* ---- AI婚纱全家桶：出图展示尺寸缩小（主题出图缩一半，交付缩四分之一） ---- */
.agent-detail-view--wedding .bvi-item [data-shot],
.agent-detail-view--wedding .bvi-item-shot {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- r95 AI写真馆：出图展示同样缩一半（用户「图片展示不用这么大，缩小一半」） ---- */
.agent-detail-view--portrait .bvi-item [data-shot],
.agent-detail-view--portrait .bvi-item-shot {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- AI品牌VI工厂：物料出图缩一半（用户「至少缩小一半」） ----
   ★ 缩的是「展示尺寸」，不是出图尺寸 —— 出图仍然是 1:1 原图，
     交付下载拿到的也还是原图，这里只影响看稿时的观感。 */
.agent-detail-view--brand .bvi-item [data-shot],
.agent-detail-view--brand .bvi-item-shot {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- r254 AI家装：图片展示缩小三分之二 + 原图并排对比 ----
   每张效果图 = 条目宽的 1/3（对比婚纱/写真「缩一半」再进一步），
   旁边一格摆那张实拍原图，两格并排方便逐张对比。
   ★ 缩的是「展示尺寸」，出图/交付仍是原图。 */
.agent-detail-view--home-design .bvi-compare {
  display: flex; gap: 10px; align-items: stretch; margin-top: 10px;
}
.agent-detail-view--home-design .bvi-compare-cell {
  width: calc(33.333% - 7px); min-width: 0;
  display: flex; flex-direction: column;
}
.agent-detail-view--home-design .bvi-compare-cap {
  font-size: 11.5px; font-weight: 600; color: var(--text-tertiary);
  margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agent-detail-view--home-design .bvi-compare-imgbox {
  position: relative; width: 100%; aspect-ratio: 1 / 1; flex: none;
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-page);
}
.agent-detail-view--home-design .bvi-compare-imgbox img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.agent-detail-view--home-design .bvi-compare .bvi-item-shot { margin-top: 0; }

/* ---- r254：出图生成条右下角的「下一步」按钮位 ---- */
.bvi-gen-foot { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.bvi-gen-foot .btn { flex: none; }

.bvi-deliver-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; line-height: 1.6; }
.bvi-deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.bvi-deliver-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
}
.bvi-deliver-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.bvi-deliver-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 9px; border-top: 1px solid var(--border-light);
}
.bvi-deliver-name { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bvi-deliver-bar .btn { flex: none; }

/* ---- r153 电商套装流水线：交付卡通用样式 + 详情双图并排 + 海报卡 ----
   ★ bvi-deliver-card / bvi-item-row 是内核交付页一直在用但 CSS 里缺的两件（历史欠账），这次一起补上 */
.bvi-deliver-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
}
.bvi-deliver-card img { width: 100%; display: block; }
.bvi-item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 9px; border-top: 1px solid var(--border-light);
}
.bvi-item-row .bvi-item-name { font-size: 12px; }

.ecom-group {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 12px 14px 14px; margin-top: 12px;
}
.ecom-group-h {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.ecom-empty-sm { padding: 18px 14px; font-size: 12px; }
.ecom-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ecom-det-tag { font-size: 11px; color: var(--text-tertiary); margin: 8px 0 4px; }
/* 详情段 9:16 长图（覆盖 .bvi-item-shot 的 1:1）——只改展示框，出图参数不动 */
.agent-detail-view--ecom .ecom-det-shot { aspect-ratio: 9 / 16; }
.agent-detail-view--ecom .ecom-poster-shot { aspect-ratio: 3 / 4; margin-top: 6px; }
.agent-detail-view--ecom .ecom-poster-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- ★ r159：详情/海报成图「显示一半」修复 ----
   renderDrawImage 会把图框 class 整串换成 .draw-result（aspect-ratio:1 + img cover），
   9:16 长图被硬裁成方块只露中间一段。海报这里解除：出完图后容器恢复自然高度，
   整图原比例完整展示（:has 只在真有 img 时生效，「待出图」空框仍保持 9:16/3:4）。
   ★★ r171（用户：「详情页所有图片模版大小保持一致，与卖点总览一样」）——
   详情段反其道：框**永远保持所选比例**（卖点总览和其余段同一副模版骨架），
   出图后 img 以 cover 填满，模型偶尔跑偏的比例也不再把版面撑得参差。 */
.agent-detail-view--ecom .ecom-poster-shot:has(img) { aspect-ratio: auto; }
.agent-detail-view--ecom .ecom-poster-shot .draw-result {
  aspect-ratio: auto; height: auto; overflow: hidden;
  background: transparent; border: none;
}
.agent-detail-view--ecom .ecom-poster-shot .draw-result img {
  width: 100%; height: auto; object-fit: contain; display: block;
}
.agent-detail-view--ecom .ecom-det-shot .draw-result {
  aspect-ratio: auto; height: 100%; overflow: hidden;
  background: transparent; border: none;
}
.agent-detail-view--ecom .ecom-det-shot .draw-result img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---- ★ r180：每张详情图下方标出「这一张讲的那一个点」（玻尿酸 / 即时补水 …）----
   框还是统一的比例（r171 同副模版），holder 让位给这行小标签，不被撑破。 */
.agent-detail-view--ecom .ecom-det-shot {
  display: flex; flex-direction: column;
}
.agent-detail-view--ecom .ecom-det-shot > .bvi-shot-holder,
.agent-detail-view--ecom .ecom-det-shot > .draw-result {
  flex: 1 1 0; min-height: 0; height: auto;
}
.ecom-det-cap {
  flex: 0 0 auto; margin-top: 5px; padding: 3px 6px;
  font-size: 11px; line-height: 1.35; text-align: center;
  color: var(--text-secondary); background: rgba(127, 127, 127, .12);
  border-radius: 6px;
  /* ★ r182：并列张标签可能是「神经酰胺 · 山茶花 · 大豆蛋白」，允许折行别被截断成省略号 */
  white-space: normal; max-width: 100%; word-break: keep-all; overflow: hidden;
}

/* ---- r155：客户产品介绍输入框（详情页文案直出） ---- */
.ecom-copy-ta {
  flex: 1; min-width: 220px; width: 100%; resize: vertical;
  padding: 10px 12px; font-size: 13px; line-height: 1.7;
  color: var(--text-primary); background: var(--input-bg);
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  font-family: inherit;
}
.ecom-copy-ta:focus { outline: none; border-color: var(--primary, #4a7c59); }
.ecom-copy-ta::placeholder { color: var(--text-tertiary); }

/* ---- r165：方向交互（每步先问用户：方向 chips + 手动输入框） ----
   ★ r167 醒目化：虚线灰框 → 实线边框 + focus 光圈。
   ★★ r170（用户：「去除所有这些绿色背景」）—— r169 的品牌绿浅底 + 翡翠描边 +
   绿色光晕退掉，回到中性输入框底色；聚焦亮起电商本来的橙金强调色。 */
.ecom-dir-manual-h {
  margin: 10px 0 6px;
  font-size: 12.5px; font-weight: 700; color: var(--text-primary);
}
.ecom-dir-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 14px; line-height: 1.6;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ecom-dir-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), .8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
}
.ecom-dir-input::placeholder { color: var(--text-secondary); }
/* ★ r168 二轮醒目化：小标题加大、输入框字号提高 */
.ecom-dir-manual-h { font-size: 14px; }

/* ---- ★ r169：生成态占位撑满外框（logo 居中） ----
   runOneDrawTask 会把图框 class 整串换成 .draw-result.generating —— r159 的
   「.ecom-det-shot/.ecom-poster-shot .draw-result { aspect-ratio:auto; height:auto }」
   本来是给成图解比例的，却把生成态也压成了内容高度：holder 缩在框顶，
   logo 贴顶、下面一大块空（用户：「将logo置于中间的位置」）。
   生成态时外框比例仍在（还没有 img，:has(img) 未生效）⇒ 让 holder 直接撑满即可居中。 */
.agent-detail-view--ecom .ecom-det-shot .draw-result.generating,
.agent-detail-view--ecom .ecom-poster-shot .draw-result.generating {
  aspect-ratio: auto; height: 100%;
}

/* ---- r168：方案卡上的「改这张图的提示词」输入框 ----
   （底部整条方向输入已删，改词入口挪到每张样图卡自己的位置）
   ★ r170：r169 的品牌绿浅底/翡翠描边/绿色光晕退掉 → 中性底 + 橙金聚焦。 */
.ecom-opt-prompt-h {
  margin: 8px 0 4px;
  font-size: 12.5px; font-weight: 700; color: var(--text-primary);
}
.ecom-opt-prompt {
  width: 100%; box-sizing: border-box;
  padding: 9px 13px; font-size: 13.5px; line-height: 1.6;
  color: var(--text-primary); font-family: inherit;
  background: var(--input-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ecom-opt-prompt:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), .8);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
}
.ecom-opt-prompt::placeholder { color: var(--text-secondary); }

/* ---- r168：商品实拍图「＋ 增加产品图」按钮（AgentSlots.addable）----
   与 wd-slot 同高同圆角的虚线框，hover 时亮主色 */
.wd-slot-add {
  align-self: stretch; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  background: transparent;
  border: 1.5px dashed rgba(var(--text-rgb, 28, 28, 30), 0.25);
  border-radius: var(--r-md);
  cursor: pointer; transition: all .15s ease;
}
.wd-slot-add-plus { font-size: 20px; line-height: 1; color: var(--text-tertiary); }
.wd-slot-add:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.05);
}
.wd-slot-add:hover .wd-slot-add-plus { color: var(--accent); }

/* ---- r465：「－ 减少产品图」格（用户：「产品框可以 + 就应该有可以 − 的功能」）----
   与 .wd-slot-add 同尺寸 / 同圆角 / 同虚线，只有 hover 色偏暖（「撤」是非主路径动作，
   不用主色抢焦点）；没有手动加的槽时挂 .wd-slot-sub--off 置灰，点了给 toast 而不是静默。 */
.wd-slot-sub {
  align-self: stretch; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  background: transparent;
  border: 1.5px dashed rgba(var(--text-rgb, 28, 28, 30), 0.25);
  border-radius: var(--r-md);
  cursor: pointer; transition: all .15s ease;
}
.wd-slot-sub-minus { font-size: 20px; line-height: 1; color: var(--text-tertiary); }
.wd-slot-sub:hover {
  color: #d8804c;
  border-color: rgba(216, 128, 76, .6);
  background: rgba(216, 128, 76, .06);
}
.wd-slot-sub:hover .wd-slot-sub-minus { color: #d8804c; }
.wd-slot-sub--off,
.wd-slot-sub--off:hover {
  color: var(--text-tertiary); cursor: not-allowed; opacity: .5;
  border-color: rgba(var(--text-rgb, 28, 28, 30), 0.25); background: transparent;
}
.wd-slot-sub--off .wd-slot-sub-minus,
.wd-slot-sub--off:hover .wd-slot-sub-minus { color: var(--text-tertiary); }

/* ---- r168：待出图占位的 logo 不转（用户：「没开始生图前不要转动，启动后才转」）----
   r166 给所有 .bvi-mini-status::before 挂了旋转 logo；排队的「排队中/出图中」是真生成态要转，
   详情/海报空框的「待出图」是闲态 —— 加 --idle 修饰类停掉动画、调暗（本规则在 r166 块之后，同特异性后者胜） */
.bvi-mini-status--idle::before { animation: none; opacity: .5; }
/* 主推 chip：主色描边 + 浅底，跟普通 chip 拉开层级 */
.ecom-dir-rec { border-color: rgba(var(--accent-rgb), .7) !important; font-weight: 600; }
/* 方案卡上的主推徽章（内核 renderPlan 渲染，所有模块通用） */
.bvi-rec-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: 2px;
  color: #fff; background: linear-gradient(135deg, #e07020, #d44a1f);
  border-radius: 999px;
}

/* ---- r155：「产品介绍」高亮卡 + 大标签（用户：要醒目一点） ----
   ★ 原来只是配置行里一个小小的「客户文案」，用户根本看不见 —— 单独提成一张带主色描边的卡 */
/* ★★ r169 三轮精致化（用户：「可以设计的精致醒目一些，根据 logo 的元素来」）——
   高亮卡从「单色描边 + 浅底」升级成 logo 同款语言：**翡翠渐变描边**（双层背景 border-box）
   + 外圈品牌绿光晕。视觉方向卡 / 尺寸规格卡 / 主图配置卡共用。 */
/* ★★ r170（用户：「去除所有这些绿色背景，不好看」）—— r169 的翡翠渐变描边 + 浅绿底
   + 品牌绿光晕整套退掉，高亮卡回到普通卡片底色；醒目性只保留大字标题 + 左侧竖条。 */
.ecom-group--hi {
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: none;
}
.ecom-group-h--lg {
  font-size: 16px; font-weight: 800; letter-spacing: .2px;
  color: var(--text-primary);
}
.ecom-group-h--lg::before {
  content: ''; display: inline-block; width: 4px; height: 15px; border-radius: 2px;
  margin-right: 8px; vertical-align: -1px;
  background: var(--accent, #ffb020);
}
/* ★ r170：徽章退掉翡翠渐变实底 → 中性浅底胶囊（去绿） */
.ecom-hi-tag {
  flex: none; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  color: var(--text-primary);
  background: rgba(var(--text-rgb, 28, 28, 30), 0.08);
  border: 1px solid rgba(var(--text-rgb, 28, 28, 30), 0.14);
}
.ecom-hi-tag--wait { color: var(--text-tertiary); background: var(--bg-page); }
/* ★ r168 二轮醒目化：说明行从 12.5px 灰字提亮加大 */
.ecom-hi-desc { font-size: 13.5px; font-weight: 500; line-height: 1.75; color: var(--text-secondary); margin-bottom: 10px; }

/* ★ r166：主图卡片里的动作条从 1 个按钮变 2 个（换方向重出 / 重出这张）—— 加间距别贴着 */
.bvi-item-acts { flex: none; display: flex; gap: 6px; }
/* ★ r166：说明行里的「方向 2/3」「本张不摆产品」小标签 —— 用户要能一眼看出每张/每段不一样 */
.ecom-stage-tag {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; vertical-align: 1px;
  color: var(--accent, #ffb020);
  background: rgba(var(--accent-rgb), .14);
}
/* ★ r168 二轮醒目化：gen-hint 从 12px 三级灰提亮（用户：「图中这些文字太不起眼」） */
.bvi-gen-hint { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* ---- r155：定稿后的「一键出 N 张」套装方案 ---- */
.ecom-plans {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 12px 14px 14px; margin: 10px 0 14px;
}
.ecom-plans-h {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px;
}
.ecom-plans-sub { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ecom-plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ecom-plan-btn {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 10px 12px; cursor: pointer;
  background: var(--bg-page); border: 1px solid var(--border-light);
  border-radius: var(--r-md); color: var(--text-primary);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ecom-plan-btn:hover { border-color: var(--primary, #4a7c59); transform: translateY(-1px); }
.ecom-plan-btn:disabled { opacity: .6; cursor: default; transform: none; }
.ecom-plan-btn.active {
  border-color: rgba(var(--accent-rgb), .75);
  background: rgba(var(--accent-rgb), .10);
}
.ecom-plan-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ecom-plan-label { font-size: 13.5px; font-weight: 800; }
.ecom-plan-tag {
  flex: none; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: var(--accent, #ffb020);
}
.ecom-plan-hint { font-size: 11.5px; line-height: 1.6; color: var(--text-tertiary); }

/* ---- r157：方案页底部「一键生成 6 张风格图」—— 实心绿大按钮，页面里最醒目的一颗 ---- */
.ecom-foot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ecom-roll-btn {
  appearance: none; cursor: pointer;
  padding: 12px 26px; border: none; border-radius: 999px;
  font-size: 15px; font-weight: 800; letter-spacing: .5px; color: #fff;
  /* ★ r169：绿色加深（用户：「将绿色的按钮颜色加深一些」）—— 翡翠→深祖母绿 */
  background: linear-gradient(135deg, #2e8557, #1d6647);
  box-shadow: 0 6px 18px rgba(29, 102, 71, .42), 0 0 0 3px rgba(29, 102, 71, .16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ecom-roll-btn:hover { transform: translateY(-2px); filter: brightness(1.08);
  box-shadow: 0 9px 22px rgba(29, 102, 71, .5), 0 0 0 4px rgba(29, 102, 71, .2); }
.ecom-roll-btn:active { transform: translateY(0); }
.ecom-roll-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---- r167：方案卡样图展示框再缩小三分之一（66% → 44%，居中）；
      只是看稿尺寸，出图参数与下载原图不受影响 ---- */
.agent-detail-view--ecom .bvi-logo-card .hd-shot {
  width: 44%; margin: 10px auto 0;
}
/* ★ r167 方案卡空态 = 静态 logo（用户：「一开始不能只是一个空白的框框展示，可将 logo 放上去」）。
   点「出样图 / 一键生成」后：先走 .bvi-mini-status（排队中，logo 已在转），
   再被内核换成 .draw-result.generating（logo 顺时针旋转）—— 三态无缝衔接。
   :empty 只在 holder 一个子节点都没有时命中（renderPlan 的空框正是如此）；
   出过图的卡回填了 <img>，自动回到正常展示。 */
.agent-detail-view--ecom .bvi-logo-card .bvi-shot-holder:empty::before {
  content: '';
  position: absolute; left: 50%; top: 44%;
  width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("../logo.png") center / contain no-repeat;
  filter: brightness(1.7) saturate(1.05);
  opacity: .5;
  pointer-events: none;
}
.agent-detail-view--ecom .bvi-logo-card .bvi-shot-holder:empty::after {
  content: '待生成';
  position: absolute; left: 0; right: 0; top: 62%;
  text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ---- r155：电商出图「展示」尺寸整体缩小（用户：图片适当缩小一点 / 详情/海报也要缩）
   ★ 只改看稿时的展示宽度，出图参数（比例 / 画质）一个字没动，下载拿到的仍是原图。 ---- */
.agent-detail-view--ecom .bvi-item [data-shot],
.agent-detail-view--ecom .bvi-item-shot {
  width: 62%; margin-left: auto; margin-right: auto;
}
/* 详情页 9:16 长图最高，展示最窄 */
.agent-detail-view--ecom .ecom-det-shot { width: 42%; }
/* ★ r167 海报展示框缩小到原来的四分之一左右（宽 54% → 27%，高也减半 ⇒ 面积≈1/4；
   用户点名「产品海报与模特+产品海报展示框缩小到四分之一」）—— 看稿缩略，
   出图参数与下载尺寸不受影响；点击仍可放大预览。 */
.agent-detail-view--ecom .ecom-poster-shot { width: 27%; }
/* 交付页的海报框在 .ecom-duo 两列里（列宽已减半），单独放宽 ——
   27% × 半列 ≈ 13% 面板宽，太小看不清；60% × 半列 ≈ 30%，与海报页缩略观感一致 */
.ecom-duo .ecom-poster-shot { width: 60%; }
@media (max-width: 900px) {
  .ecom-plan-row { grid-template-columns: 1fr; }
  .agent-detail-view--ecom .bvi-item [data-shot],
  .agent-detail-view--ecom .bvi-item-shot { width: 78%; }
  .agent-detail-view--ecom .ecom-det-shot { width: 56%; }
  .agent-detail-view--ecom .ecom-poster-shot { width: 44%; }
}
/* ---- ★ r185：详情图「图 + 提示词输入框」列盒 —— 列盒接管 .ecom-det-shot 原来的
   42%/56% 宽，框本身回到 100%，宽窄屏口径与改版前完全一致（模版框大小不变） ---- */
.agent-detail-view--ecom .ecom-det-cell { width: 42%; display: flex; flex-direction: column; }
.agent-detail-view--ecom .ecom-det-cell .ecom-det-shot { width: 100%; margin-left: 0; margin-right: 0; }
.agent-detail-view--ecom .ecom-det-cell .ecom-opt-prompt { margin-top: 6px; }
@media (max-width: 900px) {
  .agent-detail-view--ecom .ecom-det-cell { width: 56%; }
}

/* ---- r223：宝宝写真 / AI萌宠 —— 展示尺寸缩小（用户：拍摄方案展示图缩小一倍；
   宝宝出图页面图片展示只需要目前的四分之一；AI宠物工作室也一样）。
   ★ 只改看稿时的展示尺寸：方案卡 3 列 → 6 列（线性减半），
     出图列表的图框宽 100% → 50%（线性减半 = 面积 1/4）。
     出图参数（比例 / 画质）一个字没动，下载拿到的仍是原图；点击仍可放大预览。 ---- */
.agent-detail-view--baby .bvi-logo-grid,
.agent-detail-view--pet .bvi-logo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.agent-detail-view--baby .bvi-logo-card .bvi-logo-name,
.agent-detail-view--pet .bvi-logo-card .bvi-logo-name { font-size: 12px; }
.agent-detail-view--baby .bvi-logo-card .hd-concept,
.agent-detail-view--pet .bvi-logo-card .hd-concept { font-size: 11px; }
.agent-detail-view--baby .bvi-item [data-shot],
.agent-detail-view--baby .bvi-item-shot,
.agent-detail-view--pet .bvi-item [data-shot],
.agent-detail-view--pet .bvi-item-shot {
  width: 50%; margin-left: 0; margin-right: 0;
}
@media (max-width: 1500px) {
  .agent-detail-view--baby .bvi-logo-grid,
  .agent-detail-view--pet .bvi-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .agent-detail-view--baby .bvi-logo-grid,
  .agent-detail-view--pet .bvi-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-detail-view--baby .bvi-item [data-shot],
  .agent-detail-view--baby .bvi-item-shot,
  .agent-detail-view--pet .bvi-item [data-shot],
  .agent-detail-view--pet .bvi-item-shot { width: 78%; }
}

/* ---- AI婚纱全家桶：身高体重 / 结构化照片（每人正脸+侧脸） ---- */
.wd-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.wd-body-cell { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-md); }
.wd-body-tag { font-size: var(--fs-xs); font-weight: 700; color: var(--text-primary); }
.wd-body-cell .agent-detail-input { background: var(--input-bg); }

.wd-person { margin-bottom: 12px; }
.wd-person-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wd-person-avatar { font-size: 16px; }
.wd-person-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); }
.wd-person-hint { font-size: 12px; color: var(--text-tertiary); }
/* r113：每人 3 个角度（正脸 / 侧脸 / 45度脸）—— 三列一行排满，不再折行 */
.wd-person-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wd-slot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md);
  border: 1px dashed var(--input-border); background: var(--input-bg);
  overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.wd-slot:hover { border-color: var(--accent); }
.wd-slot.filled { border-style: solid; border-color: rgba(var(--accent-rgb),0.4); }
/* 拖入上传：悬停高亮，给用户明确的落点反馈 */
.wd-slot--over {
  border-style: solid; border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.10);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.wd-slot--over .wd-slot-drop { color: var(--accent); }
.wd-slot-drop {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--text-tertiary);
}
.wd-slot-drop[hidden] { display: none; }
.wd-slot-plus { font-size: 22px; color: var(--accent); line-height: 1; }
.wd-slot-label { font-size: var(--fs-xs); color: var(--text-secondary); }
.wd-slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-slot-img[hidden] { display: none; }
.wd-slot-del {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; z-index: 2;
}
.wd-slot-del[hidden] { display: none; }

/* ---- r252：房间实拍槽位（14 个房间标签 → 自适应多列，不再固定 3 列） ---- */
.wd-person-slots--rooms { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
/* ★ 逐张偏好入口：贴在格子底部，没传图时 hidden（render 里控制） */
.wd-slot-pref {
  position: absolute; left: 4px; bottom: 4px; z-index: 2;
  padding: 2px 6px; border-radius: 999px; cursor: pointer;
  font-size: 11px; line-height: 1.5; white-space: nowrap;
  border: 1px solid var(--border-light); background: rgba(0,0,0,0.5); color: #fff;
}
.wd-slot-pref[hidden] { display: none; }
.wd-slot-pref:hover { border-color: var(--accent); }
.wd-slot-pref.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wd-slot--prefopen { border-style: solid; border-color: var(--accent); }
/* 手输名称的「＋ 增加」条 */
.wd-slot-addbar { display: flex; gap: 8px; margin-top: 10px; }
.wd-slot-addbar .wd-slot-addname { flex: 1; min-width: 0; background: var(--input-bg); }
/* 逐槽偏好面板 */
.wd-prefs-box {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border-light); background: var(--bg-card);
}
.wd-prefs-box[hidden] { display: none; }
.wd-prefs-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.wd-prefs-tip { font-size: 11px; font-weight: 400; color: var(--text-tertiary); }
.wd-prefs-close {
  margin-left: auto; border: none; background: none; cursor: pointer;
  font-size: 11px; color: var(--text-tertiary);
}
.wd-prefs-close:hover { color: var(--accent); }
.wd-prefs-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.wd-prefs-label { font-size: var(--fs-xs); color: var(--text-secondary); flex: 0 0 56px; }
.wd-prefs-chip {
  padding: 3px 9px; border-radius: 999px; cursor: pointer; font-size: var(--fs-xs);
  border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-secondary);
}
.wd-prefs-chip:hover { border-color: var(--accent); color: var(--accent); }
.wd-prefs-chip.active {
  border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); color: var(--accent);
}
.wd-prefs-row--extra .wd-prefs-input { flex: 1; min-width: 160px; background: var(--input-bg); }

/* 缺角度即时提示（拖入/选择后立刻出现，不必等点「开始」被拦） */
.wd-photo-hint {
  font-size: var(--fs-xs); color: #b45309; margin-top: 8px;
  background: rgba(217, 119, 6, 0.10); border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--r-sm); padding: 6px 10px;
}
.wd-photo-hint[hidden] { display: none; }

/* ---- r60：按风格提示「该上传什么表情」 ---- */
.wd-expr-hint {
  font-size: var(--fs-xs); color: #0e7490; margin: 6px 0 4px;
  background: rgba(14, 116, 144, 0.08); border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: var(--r-sm); padding: 6px 10px; line-height: 1.5;
}
.wd-expr-hint:empty { display: none; }
.wd-expr-hint b { color: #155e75; font-weight: 600; }

/* ---- r54c：分镜卡片「配色策略 + 质感」标签行（与 prompt 注入同源可见化） ---- */
.wd-tags {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  margin: 6px 0 8px;
}
.wd-tag {
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(var(--text-rgb, 28, 28, 30), 0.06);
  border: 1px solid rgba(var(--text-rgb, 28, 28, 30), 0.10);
  white-space: nowrap;
}
.wd-tag--harmony {
  color: #15803d; background: rgba(21, 128, 61, 0.10);
  border-color: rgba(21, 128, 61, 0.26); font-weight: 600;
}
.wd-tag--contrast {
  color: #9d174d; background: rgba(157, 23, 77, 0.10);
  border-color: rgba(157, 23, 77, 0.28); font-weight: 600;
}
.wd-tag--size { color: #1d4ed8; background: rgba(29, 78, 216, 0.10); border-color: rgba(29, 78, 216, 0.26); font-weight: 600; }
.wd-tag--people { color: #6d28d9; background: rgba(109, 40, 217, 0.10); border-color: rgba(109, 40, 217, 0.26); font-weight: 600; }
.wd-tag--premium { color: #92400e; background: rgba(146, 64, 14, 0.08); border-color: rgba(146, 64, 14, 0.22); }
/* r56：主题锁定标签 */
.wd-tag--lock {
  color: #1d4ed8; background: rgba(29, 78, 216, 0.10);
  border-color: rgba(29, 78, 216, 0.28); font-weight: 600;
}

/* ---- r56：主题风 → 婚纱/场景 锁定联动展示（表单内，只读） ---- */
/* ---- r80：主题级「👗 婚纱 / 🏛️ 场景」锁定展示条（.wd-theme-lock / .wd-lock-row）已移除，
        婚纱与场景改由每张分镜的配置行逐张选择 ---- */

/* ---- r56：每张分镜的尺寸选择行 ----
   ★ r168 二轮醒目化（用户拿截图逐条点名「这些文字太不起眼」）：
   11px 灰字小胶囊 → 12.5px+ 标签加粗提亮、chip 加大、选中态加一圈外发光 */
.wd-size-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 8px;
}
.wd-size-label {
  font-size: 12.5px; font-weight: 700; color: var(--text-primary); margin-right: 4px;
}
.wd-size-chip {
  font-size: 12.5px; line-height: 1.35; padding: 5px 12px; border-radius: 999px;
  color: var(--text-primary); font-weight: 500; cursor: pointer;
  background: rgba(var(--text-rgb, 28, 28, 30), 0.05);
  border: 1px solid rgba(var(--text-rgb, 28, 28, 30), 0.16);
  transition: all 0.15s ease;
}
.wd-size-chip:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.wd-size-chip.active {
  color: var(--accent); font-weight: 700;
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.75);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.45) inset,
    0 0 8px rgba(var(--accent-rgb), 0.28);
}
/* ★ r170：电商页 chips 退掉翡翠渐变实底 → 回落通用选中态
   （电商视图 --accent 本来就是橙金 #ffb020，选中 = 橙色浅底 + 描边，与整套换肤一致） */
/* ---- r76：已删除 r70 的「脸部像素不足」预警条样式（用户要求去除该提示） ---- */
/* ---- r71：场景行「自动」模式下，标出本张实际轮换到的场景（虚线，区别于手动选中的实线） ---- */
.wd-size-chip.auto-on {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-style: dashed;
  border-color: rgba(var(--accent-rgb), 0.55);
}
/* ---- r79：逐张「婚纱 / 道具」行（选项可达 10~20 个，收紧尺寸并允许换行） ---- */
.wd-size-row--wrap { gap: 5px; }
.wd-size-row--wrap .wd-size-chip { font-size: 12px; padding: 4px 10px; }
.wd-size-row--wrap .wd-size-label { min-width: 24px; }

/* ---- r112：光线行分组（自然光 4 档 / 专业光影 4 档）
   分隔符刻意用 currentColor + 半透明，而**不用** `rgba(var(--text-rgb), …)` ——
   该变量在本项目从未定义，兜底近黑，深色主题下几乎不可见（既有 .wd-size-chip 的观感问题）。 */
.wd-light-sep {
  position: relative; display: inline-flex; align-items: center;
  font-size: 10px; letter-spacing: 0.06em; color: var(--text-tertiary);
  margin: 0 1px 0 5px; padding-left: 8px;
}
.wd-light-sep::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1px; height: 11px; transform: translateY(-50%);
  background: currentColor; opacity: 0.35;
}
.wd-size-chip--pro { border-color: rgba(var(--accent-rgb), 0.30); }
.wd-size-chip--pro:hover { border-color: rgba(var(--accent-rgb), 0.60); }

/* ---- r98：提示词补充输入框（紧贴图片展示上方，逐张独立） ----
   注意：这里刻意**不用** `rgba(var(--text-rgb), …)` —— `--text-rgb` 在本项目 CSS 里从未定义，
   兜底值 28,28,30 是近黑色，画在深色主题底上几乎不可见（既有 .wd-size-chip 就有这个观感问题）。
   输入框需要「一眼看出可输入」，所以自包含用白色低透明度 + 聚焦时切主题强调色。 */
.wd-extra-row {
  display: flex; align-items: center; gap: 6px;
  margin: 2px 0 10px;
}
/* ---- r234：逐张补充拆成两行 —— 画面描述（上）与文案编辑（下，上字通道，标色区分） */
.wd-extra-row--copy { margin-top: -4px; }
.wd-extra-row--copy .wd-size-label { color: var(--accent); }
.wd-extra-input {
  flex: 1 1 auto; min-width: 0;
  font-size: 11.5px; line-height: 1.45; padding: 6px 10px;
  border-radius: 8px; color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.wd-extra-input::placeholder { color: var(--text-tertiary); }
.wd-extra-input:focus {
  outline: none; border-style: solid;
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}
.wd-extra-clear {
  flex: 0 0 auto; width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; border-radius: 50%;
  color: var(--text-tertiary); cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.15s ease;
}
.wd-extra-clear:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.10);
}

/* ---- r227：逐张「本页素材」上传行（每张 PPT 图卡的图片位正上方） ----
   上传后这条 compact 缩略图 + 用途下拉就是「这张图会被怎么用」的可视凭证，
   别把上传按钮做成 Popover —— 用户在长列表里要的是一眼扫到哪页配了什么。 */
.wd-ref-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 10px;
}
.wd-ref-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wd-ref-cell {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wd-ref-img {
  width: 46px; height: 46px; border-radius: 6px;
  object-fit: cover; display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
}
.wd-ref-role {
  font-size: 11px; padding: 3px 6px; border-radius: 6px; cursor: pointer;
  color: var(--text-primary); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 96px;
}
.wd-ref-role:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); }
.wd-ref-role option { color: #1b1b1f; background: #fff; }
.wd-ref-del {
  flex: 0 0 auto; width: 20px; height: 20px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; border-radius: 50%;
  color: var(--text-tertiary); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.15s ease;
}
.wd-ref-del:hover {
  color: #ff6b6b; border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.12);
}
.wd-ref-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 58px; height: 58px; cursor: pointer; border-radius: 10px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  transition: all 0.15s ease;
}
.wd-ref-add:hover {
  color: var(--accent); border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.08);
}
.wd-ref-add.is-disabled { opacity: 0.45; cursor: not-allowed; }
.wd-ref-add-plus { font-size: 16px; line-height: 1; }
.wd-ref-add-t { font-size: 10.5px; line-height: 1.2; }
.wd-ref-hint {
  flex: 1 1 100%; font-size: 11px; line-height: 1.5; color: var(--text-tertiary);
}

/* ---- r131：AI试衣间 · 画布（出图页不再是竖向列表，而是可增删、可拖动的画面磁贴） ----
   ★ 画布只换壳，不换出图：每块画面里仍是 .bvi-item-shot[data-shot] > [data-holder]，
     内核的并发出图 / 单张重出 / 原图留档照常工作。 */
.fit-canvas { margin-top: 4px; }

.fit-canvas-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 12px;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
}
.fit-bar-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.5px;
}
.fit-bar-sep { width: 1px; height: 18px; background: var(--chip-border); margin: 0 2px; }
.fit-bar-spacer { flex: 1 1 auto; }
.fit-zoom { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--chip-bg); }
.fit-zoom-btn {
  font-size: 11px; line-height: 1; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  color: var(--text-tertiary); background: transparent; border: 1px solid transparent;
}
.fit-zoom-btn.active {
  color: var(--accent); font-weight: 600;
  background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.45);
}
.fit-canvas-hint { font-size: 11.5px; color: var(--text-tertiary); margin: 0 2px 10px; }

.fit-canvas-grid {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.fit-canvas-grid.zoom-s { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.fit-canvas-grid.zoom-l { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }

.fit-frame {
  display: flex; flex-direction: column;
  border: 1px solid var(--panel-border); border-radius: 14px;
  background: var(--panel-bg); overflow: hidden;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.fit-frame.dragging { opacity: 0.4; }
.fit-frame.over { border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18); }

.fit-frame-head {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px;
  cursor: grab; user-select: none;
  border-bottom: 1px solid var(--panel-border);
}
.fit-frame-grip { font-size: 13px; color: var(--text-muted); letter-spacing: -2px; }
.fit-frame-icon { font-size: 14px; }
.fit-frame-kind { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.fit-frame-spacer { flex: 1 1 auto; }
.fit-frame-x {
  font-size: 15px; line-height: 1; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; cursor: pointer; color: var(--text-tertiary);
  background: transparent; border: 1px solid transparent;
}
.fit-frame-x:hover { color: var(--brand-a, #ff2442); border-color: var(--chip-border); }

/* 三种画面一眼可分：模特=品牌色、细节=青、场景=琥珀 */
.fit-k--model .fit-frame-head { background: rgba(var(--accent-rgb), 0.07); }
.fit-k--detail .fit-frame-head { background: rgba(0, 212, 181, 0.09); }
.fit-k--scene .fit-frame-head { background: rgba(255, 176, 32, 0.09); }

.fit-frame-hint {
  font-size: 11px; color: var(--text-tertiary); padding: 7px 11px 0; line-height: 1.5;
}
.fit-frame-name {
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary); padding: 4px 11px 2px;
}

.fit-frame-opts { padding: 8px 11px 2px; }
.fit-opt-row {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 7px;
}
.fit-opt-label {
  font-size: 11px; color: var(--text-tertiary); margin-right: 2px; flex: 0 0 auto;
}
.fit-opt-chip {
  font-size: 11px; line-height: 1; padding: 4px 9px; border-radius: 999px; cursor: pointer;
  color: var(--text-secondary);
  background: rgba(var(--text-rgb, 28, 28, 30), 0.05);
  border: 1px solid rgba(var(--text-rgb, 28, 28, 30), 0.12);
  transition: all 0.15s ease;
}
.fit-opt-chip:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.fit-opt-chip.active {
  color: var(--accent); font-weight: 600;
  background: rgba(var(--accent-rgb), 0.10);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35) inset;
}
.fit-opt-row--wrap { gap: 3px; }
.fit-opt-row--wrap .fit-opt-chip { font-size: 10.5px; padding: 3px 7px; }
.fit-opt-row--wrap .fit-opt-label { flex: 0 0 100%; }

/* 模特风格：既要能自己敲，也要能点选 —— 输入框 + 全部候选 chip */
.fit-combo {
  flex: 0 0 100%; font-size: 12px; padding: 5px 9px; border-radius: 8px;
  color: var(--text-primary); background: var(--input-bg);
  border: 1px solid var(--input-border); outline: none;
}
.fit-combo::placeholder { color: var(--input-placeholder); }
.fit-combo:focus { border-color: rgba(var(--accent-rgb), 0.55); }

.fit-prompt { padding: 4px 11px 8px; }
.fit-prompt-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
}
.fit-prompt-label { font-size: 11px; color: var(--text-tertiary); flex: 1 1 auto; }
.fit-prompt-flag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}
.fit-prompt-ta {
  width: 100%; resize: vertical; font-size: 11.5px; line-height: 1.55;
  padding: 7px 9px; border-radius: 8px; color: var(--text-primary);
  background: var(--input-bg); border: 1px solid var(--input-border); outline: none;
  font-family: inherit;
}
.fit-prompt-ta:focus { border-color: rgba(var(--accent-rgb), 0.55); }

.fit-frame .bvi-item-shot { padding: 0 11px; }
.fit-frame-acts { display: flex; gap: 6px; padding: 8px 11px 11px; }

.fit-canvas-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}

@media (max-width: 640px) {
  .fit-canvas-grid, .fit-canvas-grid.zoom-s, .fit-canvas-grid.zoom-l { grid-template-columns: 1fr; }
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .bvi-logo-grid, .bvi-text-items, .bvi-item-list { grid-template-columns: 1fr; }
  .bvi-deliver-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .bvi-tabs { grid-template-columns: repeat(2, 1fr); }
  .bvi-palette { grid-template-columns: repeat(2, 1fr); }
  .bvi-name-row { grid-template-columns: 1fr; }
  .bvi-man-row { flex-wrap: wrap; }
  .bvi-man-name { width: auto; }
  .wd-body-grid, .wd-person-slots { grid-template-columns: 1fr; }
  .bvi-deliver-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   r132 · AI试衣间 · 节点工作流画布（LibTV / ComfyUI 形态）
   ----------------------------------------------------------------
   ★ 这一块刻意是**深色**：工作流画布的产品语义就是一块"操作板"，
     浅色底会让节点边框、连线、缩略图糊成一片（参考 LibTV 的观感）。
     深色只包住画布本身，不污染页面其余部分。
   ★ 画布内的所有文字都是浅色，不要沿用页面的 --text-* 变量。
   ================================================================ */

.fit-canvas {
  background: #17171c;
  border: 1px solid #2a2a33;
  border-radius: 14px;
  overflow: hidden;
}
/* 画布高度：跟着窗口长，别钉死 —— 钉死会在高屏上留一大片空白、矮屏上不够看 */
.fit-nc-host { height: min(78vh, 720px); }

.nc-root { position: relative; width: 100%; height: 100%; }

/* ---- 顶部工具条 ---- */
.nc-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 46px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  background: #1e1e25;
  border-bottom: 1px solid #2a2a33;
  overflow-x: auto; overflow-y: hidden;
  white-space: nowrap;
  z-index: 3;
}
.nc-bar::-webkit-scrollbar { height: 0; }
.nc-bar-slot { display: flex; align-items: center; gap: 6px; }
.nc-bar-spacer { flex: 1 1 auto; }
.nc-bar-title { font-size: 12px; font-weight: 600; color: #cfcfdb; letter-spacing: .02em; }
.nc-sep { width: 1px; height: 18px; background: #32323d; flex: 0 0 auto; }
.nc-add {
  font-size: 11.5px; padding: 4px 9px; border-radius: 7px; cursor: pointer;
  background: #2a2a34; color: #c8c8d6; border: 1px solid #3a3a47;
  font-family: inherit;
}
.nc-add:hover { background: #34343f; color: #fff; }
.nc-add--go { background: #2c3a56; border-color: #3d5680; color: #cfdcf5; }
.nc-add--go:hover { background: #35486b; }
.nc-zoom-box { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.nc-zbtn {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  background: #2a2a34; color: #c8c8d6; border: 1px solid #3a3a47;
  font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.nc-zbtn:hover { background: #34343f; }
.nc-zbtn--w { width: auto; padding: 0 9px; font-size: 11.5px; }
.nc-zval { font-size: 11px; color: #8b8b9c; min-width: 34px; text-align: center; }

/* ---- 视口 / 世界 ---- */
.nc-viewport {
  position: absolute; left: 0; right: 0; top: 46px; bottom: 0;
  overflow: hidden; cursor: grab;
  background-color: #17171c;
  background-image: radial-gradient(#2b2b34 1px, transparent 1px);
  background-size: 26px 26px;
}
.nc-viewport.nc-panning { cursor: grabbing; }
.nc-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.nc-wires { position: absolute; left: -4000px; top: -4000px; pointer-events: none; overflow: visible; }
/* ---- 品牌色（r138：Logo 绿） ----
   ★ logo.png 实测主色是深绿 rgb(20,72,19)=#144813。那个亮度放在**深色画布**上
     连线和数字标识几乎看不见（对比度不够），所以这里用同色系的亮版做 UI，
     并在下面用 --nc-brand 统一收口：**改这一行就能整体换回更深的 logo 原色**。
   深色画布上的取色逻辑：底(#23232c) → 线(#2a6446 暗) → 主(#2ecc71) → 高光(#7bf0ab)。 */
.nc-root {
  --nc-brand: #2ecc71;        /* 主色（端口 / 角标 / 主按钮） */
  --nc-brand-hi: #7bf0ab;     /* 高光（hover / 流动的光） */
  --nc-brand-mid: #34d17a;    /* 中间调（选中边框 / 虚线） */
  --nc-brand-lo: #2a6446;     /* 暗底（静止的连线） */
  --nc-brand-line: #357a54;   /* 连线（带数据的那条） */
  --nc-brand-ink: #062012;    /* 绿底上的文字色 */
}
.nc-wire { fill: none; stroke: var(--nc-brand-lo); stroke-width: 1.6; }
.nc-wire--data { stroke: var(--nc-brand-line); }

/* ★ 能量传输效果（r138 用户要求："连接线需要像视频中这种能量传输的效果"）。
   做法：每条连线在底下一层实线之上，再叠一条**短虚线段**，让 dashoffset 一直往前跑
   —— 视觉上就是一颗光点贴着路径流动。纯 CSS 动画，
   ★ 关键是它不需要 JS 驱动：画布每次重渲都会换掉整棵 DOM，
     用 requestAnimationFrame 驱动的动画一重渲就断（而且容易漏 rafId 泄漏）。 */
.nc-wire-flow {
  fill: none; stroke: var(--nc-brand-hi); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 14 190;
  animation: nc-flow 1.9s linear infinite;
  /* 只在 '.' 之外做融合，避免把整条线都点亮 */
  opacity: .95;
}
@keyframes nc-flow { to { stroke-dashoffset: -204; } }
/* 节点正在出图时不闪——给 <g> 挂这个类即可断掉动画（出图态另有进度条，别互相抢注意力） */
.nc-wire-g--idle .nc-wire-flow { animation: none; opacity: .35; }
/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  .nc-wire-flow { animation: none; opacity: .5; }
}

/* ---- 节点（r140：容器 + 三个各自成框的小块）----
   ★★ r140：`.nc-node` 自己**不画**边框背景，只负责"定位 + 纵向排布 + 留 8px 缝"。
   边框/背景/圆角/阴影全部下沉到 `.nc-card`（主体卡：标题栏 + 图）。
   点开后长出来的 `.nc-panel`（配置面板）和 `.nc-foot`（动作条）各自也是一圈框
   ⇒ 视觉上就是三个独立小框。用户原话："对话框与模型是单独的框框展示，而不是在一个框里"。
   ★ 三块仍挂在同一个 `.nc-node` 下 ⇒ 拖任意一块的空白处都是移动这一个节点
   （用户原话："拖动时只需要拖动其一，二者都会一起动"）。 */
.nc-node {
  position: absolute;
  color: #e4e4ee;
  font-size: 12px;
  z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
}

/* 主体卡 —— 原来的"节点外观"原封不动搬到这里 */
.nc-card {
  position: relative;                    /* 端口挂它身上（见下面 .nc-port 注释） */
  display: flex; flex-direction: column;
  background: #23232c;
  border: 1px solid #33333f;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  /* 高度上限：r135 定成 min(66vh, 700px)。
     78vh 时试衣图（选项最多）会到 842px —— 在画布中上部双击加出来的节点，
     底部动作条会正好被画布下沿切掉 8px（真机量到 btnBottom 1040 > vpBottom 1032），
     用户就得先拖一下画布才能点「出图」。收紧到 66vh/700px 后首屏就够得着了。
     内容超出上限时由 .nc-body 自己滚（见下面 .nc-body 的注释）。 */
  max-height: min(66vh, 700px);
}
/* 但用户**自己拖过高度**的节点以用户设的为准（默认上限只约束"内容自然撑出来的"高度）。
   不放开的话：拖到 707px、CSS 截到 700px，DOM 与 state 会差 7px ——
   r134 的「新尺寸写回了 state」断言就是这么红的。真上限由 JS 的 MAXH(1600) 兜。
   ★ r140：约束对象换成主体卡（容器不再限高，面板有自己的上限）。 */
.nc-node.nc-sized { max-height: none; }
.nc-node.nc-sized .nc-card { max-height: none; }
.nc-node.nc-sized .nc-body { max-height: none; }
.nc-node--open { z-index: 40; }
.nc-node.nc-dragging { z-index: 60; }
/* 拖动中：三块一起换成"正在动"的边框色 */
.nc-node.nc-dragging .nc-card,
.nc-node.nc-dragging .nc-panel,
.nc-node.nc-dragging .nc-foot { border-color: #5b6b86; }

.nc-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 9px;
  min-height: 34px;
  border-bottom: 1px solid #33333f;
  border-radius: 12px 12px 0 0;
  cursor: move;
  user-select: none;
  background: linear-gradient(180deg, #2e2e3a 0%, #272733 100%);
}
.nc-icon { font-size: 13px; line-height: 1; }
.nc-title { font-size: 12px; font-weight: 600; color: #e9e9f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-spacer { flex: 1 1 auto; }
.nc-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: #33333f; color: #9a9aae; flex: 0 0 auto;
}
.nc-x {
  width: 18px; height: 18px; border-radius: 5px; cursor: pointer;
  background: transparent; color: #7d7d92; border: none;
  font-size: 14px; line-height: 1; flex: 0 0 auto;
}
.nc-x:hover { background: #4a2a2f; color: #f08a8a; }

/* 端口：钉在**主体卡**的纵向中点，并且**完全落在卡外侧**
   （r134：从标题栏改到中点；r135：用户要求"圆点放在框框外面，而不是里面"；
    ★ r140：宿主从 `.nc-node` 换成 `.nc-card` —— 点开面板后节点能有五六百像素高，
    拿整节点中点算会把圆点甩到配置面板那一行上，线看着像接在工具栏上）。
   ★ 视觉 14px、真实命中区 34px —— 用 ::after 外扩，不然用户得"瞄准"才能拖出线。
   ★ 这里的 -21px 和 node-canvas.js 的 PORT_OFF(=14) 是一对常量：
     端口中心距节点边框 = 21 - 14/2 = 14px。改一个必须同步改另一个。 */
.nc-port {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #3d6b52; border: 2px solid #17171c;
  top: 50%; margin-top: -7px;
  cursor: crosshair; z-index: 6;
  transition: transform .1s, background .1s, box-shadow .1s, opacity .14s;
  /* ★ r138：用户要求"链接线的开关也是触（摸）到模型才会出现"。
     默认透明、**保留命中能力**（opacity:0 的元素照样能 hover 和 mousedown，
     用 visibility:hidden 才会彻底点不到）—— 所以鼠标一靠近它就自己浮出来，
     既不会平时挂两个圆点碍眼，也不会让用户找不到从哪儿拉线。
     拖动连线期间整张画布的端口全部显形（root 上的 nc-linking），方便瞄下一个落点。 */
  opacity: 0;
  pointer-events: auto;
}
.nc-port::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
}
.nc-port--in { left: -21px; }
.nc-port--out { right: -21px; background: var(--nc-brand); }
.nc-port:hover, .nc-node.nc-dragging .nc-port { background: var(--nc-brand-hi); transform: scale(1.25); }
.nc-port--out:hover { box-shadow: 0 0 0 4px rgba(46, 204, 113, .18); }

/* 显形的四种情况：鼠标悬停在这个节点上 / 节点被选中 / 正在拖它 / 正在拉线 */
.nc-node:hover .nc-port,
.nc-node.nc-sel .nc-port,
.nc-node.nc-dragging .nc-port,
.nc-root.nc-linking .nc-port,
.nc-node.nc-drop .nc-port { opacity: 1; }

/* 缩放手柄：右下角（r134 "每个框都要能改大小"） */
.nc-resize {
  position: absolute; right: 0; bottom: 0; width: 20px; height: 20px;
  cursor: nwse-resize; z-index: 7; opacity: .45; transition: opacity .12s;
}
.nc-resize::before {
  content: ''; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px;
  border-right: 2px solid #8b93a8; border-bottom: 2px solid #8b93a8;
  border-radius: 0 0 3px 0;
}
.nc-node:hover .nc-resize, .nc-node.nc-sel .nc-resize { opacity: 1; }
.nc-resize:hover::before { border-color: #7bf0ab; }
.nc-node.nc-resizing { z-index: 60; }
.nc-node.nc-resizing .nc-card { border-color: #34d17a; }

/* 各类节点的头部配色 —— 一眼分得出"素材 / 核心 / 成品" */
.nc-k--garment .nc-head { background: linear-gradient(180deg, #2a3b3f 0%, #233035 100%); }
.nc-k--model .nc-head { background: linear-gradient(180deg, #33304a 0%, #2a2839 100%); }
.nc-k--tryon .nc-head { background: linear-gradient(180deg, #4a3a1f 0%, #3a2d18 100%); }
.nc-k--detail .nc-head { background: linear-gradient(180deg, #24384a 0%, #1e2f3d 100%); }
.nc-k--scene .nc-head { background: linear-gradient(180deg, #2b3f2c 0%, #233323 100%); }
.nc-k--out .nc-head { background: linear-gradient(180deg, #3a3a46 0%, #2e2e38 100%); }
/* ★ r140：边框在主体卡上，所以这一条要打到卡上 */
.nc-k--tryon .nc-card { border-color: #5a4a28; }

/* ★★ r135 核心修复：.nc-body 必须**恒定** flex:1 1 auto + min-height:0。
   r134 那版只在 .nc-sized 时给 flex，自然高度下 body 是普通块级元素 —— 内容一超高，
   flex 容器就把**可收缩的子项**压扁。第一个被压扁的就是 .nc-shot：
   实测 inline height:176px 被压成 **2px**，于是"出图跑完了、state 里有图，
   但框框高度只有 2px，什么都看不见"（用户报的"点击出图后没有图片显示出来"）。
   修法两条并用：body 自身滚动（不再靠压扁子项），且 .nc-shot 明确 flex:0 0 auto。
   ★ r140：宿主从 `.nc-node` 换成 `.nc-card`（卡里的纵向 flex 顺序不变：
     标题栏固定 / body 撑满 / 端口绝对定位），滚动行为一模一样。 */
.nc-body {
  padding: 9px; display: flex; flex-direction: column; gap: 8px;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
}
.nc-body::-webkit-scrollbar { width: 8px; }
.nc-body::-webkit-scrollbar-thumb { background: #3d3d4a; border-radius: 4px; }
.nc-body::-webkit-scrollbar-track { background: transparent; }

/* ---- 底部动作条（r140：独立的**第三个框**）----
   ★ r135 起它就在 body 外面；r140 起也在主体卡外面 —— 用户要
   "模型这一块单独一个框"。所以补上自己的 border / 圆角 / 背景 / 阴影，
   不再是"贴在节点下沿的一条"。 */
.nc-foot {
  flex: 0 0 auto; padding: 7px 9px;
  background: #1e1e26; border: 1px solid #33333f; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
}

/* ---- 工具条（r139）：对齐参考视频里那排 `＋参考 / 标记 / 特效…` ----
   每个分组一个开关，点谁摊开谁；按钮上带当前值，收起来也看得出选的是什么。 */
.nc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nc-tool {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  background: #23232c; color: #b9b9c9; border: 1px solid #34343f;
}
.nc-tool:hover { background: #2c2c37; color: #e8e8f2; border-color: #43434f; }
.nc-tool--on { background: #1d3327; color: #d8ffe6; border-color: #34d17a; }
.nc-tool-v {
  font-style: normal; color: #8b8b9c;
  max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nc-tool--on .nc-tool-v { color: #7bf0ab; }

/* ---- 展开态：选项 ---- */
.nc-hint { font-size: 11px; line-height: 1.5; color: #8b8b9c; }
.nc-refs {
  font-size: 11px; padding: 5px 8px; border-radius: 7px;
  background: #16261c; color: #7fd8a0; border: 1px solid #1f4030;
}
.nc-refs--warn { background: #2a2113; color: #e0b467; border-color: #4a3a17; }
/* ---- 展开态：选项（r139：默认全收起，工具条点谁摊开谁） ----
   ★ 外层 .nc-opt 是**分组容器**：combo 型（模特风格）是"输入框 + 一行 chip"两块 DOM，
     必须一起显隐 —— 只藏 chip 行的话输入框会光秃秃留在面板上。 */
.nc-opts { display: flex; flex-direction: column; gap: 6px; }
.nc-opts .nc-opt { display: none; flex-direction: column; gap: 6px; }
.nc-opts .nc-opt--open { display: flex; }
.nc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nc-row-label { font-size: 11px; color: #8b8b9c; flex: 0 0 52px; }
.nc-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 180px; min-width: 0; }
.nc-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 999px; cursor: pointer;
  background: #2b2b36; color: #c2c2d2; border: 1px solid #3a3a47;
  font-family: inherit; white-space: nowrap;
}
.nc-chip:hover { background: #34343f; color: #e8e8f2; }
.nc-chip.active { background: #22c55e; border-color: #52e08d; color: #fff; }
.nc-combo {
  width: 100%; font-size: 11.5px; padding: 4px 8px; border-radius: 7px;
  background: #1b1b22; border: 1px solid #3a3a47; color: #e4e4ee;
  font-family: inherit;
}
.nc-combo:focus { outline: none; border-color: #52e08d; }
/* r141：纯自由输入的行（封面主标题 / 副标题 / 刊期）—— 占满整行，右边不留空档 */
.nc-combo--wide { flex: 1 1 auto; min-width: 0; }

/* ---- r141 水印面板 ----
   ★ 它和别的选项组共用 `.nc-opt / .nc-opt--open` 那套"隐藏 + 点开"的机制
     （wrapper 必须整块包住，见 r139 的规矩），这里只补几个水印专属的小控件。 */
.nc-opt--wm .nc-row { flex-wrap: nowrap; align-items: center; }
.nc-wm-logo {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; display: inline-flex;
  align-items: center; justify-content: center; background: #fff;
  /* ★ 透明底的 logo 在白块上看不见（黑字 PNG 尤其）—— 垫一层浅棋盘格暗示透明 */
  background-image:
    linear-gradient(45deg, #d9d9e2 25%, transparent 25%, transparent 75%, #d9d9e2 75%),
    linear-gradient(45deg, #d9d9e2 25%, transparent 25%, transparent 75%, #d9d9e2 75%);
  background-position: 0 0, 6px 6px; background-size: 12px 12px;
}
.nc-wm-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.nc-wm-nologo { font-size: 11px; color: #6c6c7d; }
.nc-chip--x { padding: 3px 7px; }
.nc-range {
  flex: 1 1 auto; min-width: 0; height: 18px; accent-color: #22c55e;
  background: transparent; cursor: pointer;
}
.nc-wm-op { flex: 0 0 34px; text-align: right; font-size: 11px; color: #8b8b9c; }
/* 水印这个按钮说的是"出图之后的成品层"，和纯选项按钮略微区分开 */
.nc-tool--wm { border-color: #3c4a52; }
.nc-tool--wm.nc-tool--on { background: #1d3327; border-color: #34d17a; }

/* ---- 展开态：提示词 ---- */
.nc-prompt { display: flex; flex-direction: column; gap: 4px; }

/* ★★ r139：配置面板只在**选中**这个节点时出现（用户给的参考视频就是这么工作的：
   未点开 = 只有标题栏 + 图；点开 = 图下面长出工具条 / 参考图 / 输入框）。
   实现只靠 CSS + 内核已有的选中 class，**不重渲**：
   ★★ 如果靠 render() 来做，第一次 mousedown 就把正在拖的节点整棵 DOM 换掉了，
      拖动和连线会当场断掉，而且"选中导致布局变化 → click 合成不出来"
      （r134/r138 两次血案都出自这里：绑定只挂一次、选中只挂 click）。
   .nc-sel 由内核 select() 加在节点上，且重渲后由 opt.selected 传回来，不会丢。

   ★★ r140：面板**自己一个框**（不再是主体卡里的一个 div）——
   用户原话："对话框与模型是单独的框框展示，而不是在一个框里"。
   它是内核 nodeHtml 的 `panel` 槽位，渲染在主体卡与动作条之间。 */
.nc-panel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 9px;
  background: #1e1e26; border: 1px solid #33333f; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
  /* ★ 自己的高度上限 + 自己滚：面板可能很长（工具条 + 一整组 chip + 参考图 +
     提示词输入框），限高后**动作条永远在面板下面看得见**（r135 那条通律的延续：
     要点的按钮别放进可滚动区域里）。 */
  max-height: min(60vh, 560px);
  overflow-y: auto; overflow-x: hidden;
}
.nc-panel::-webkit-scrollbar { width: 8px; }
.nc-panel::-webkit-scrollbar-thumb { background: #3d3d4a; border-radius: 4px; }
.nc-panel::-webkit-scrollbar-track { background: transparent; }
.nc-node:not(.nc-sel) .nc-panel { display: none; }
.nc-node:not(.nc-sel) .nc-foot { display: none; }
/* 选中的节点要压在其他节点上面（原来靠 .nc-node--open 的 z-index，
   现在"展开"由选中表达，旧的 open 类不再输出） */
.nc-node.nc-sel { z-index: 40; }
/* 没选中的节点：鼠标移上去给点提示（"这里能点"），别让面板凭空消失得像功能没了 */
.nc-node:not(.nc-sel) .nc-shot { cursor: pointer; }
.nc-node:not(.nc-sel) .nc-shot:hover { border-color: #4d5f80; }

.nc-prompt-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8b8b9c; }
.nc-mini {
  margin-left: auto; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; cursor: pointer;
  background: #2c3a56; color: #cfdcf5; border: 1px solid #3d5680; font-family: inherit;
}
.nc-mini:hover { background: #35486b; }
.nc-flag { font-size: 10px; color: #e0b467; border: 1px solid #4a3a17; border-radius: 999px; padding: 1px 6px; }
.nc-ta {
  width: 100%; font-size: 11.5px; line-height: 1.5; box-sizing: border-box;
  background: #1b1b22; color: #dfe3ea; border: 1px solid #3a3a47;
  border-radius: 8px; padding: 6px 8px; resize: vertical; font-family: inherit;
}
.nc-ta:focus { outline: none; border-color: #52e08d; }

/* ---- 图片位：★ 绝不允许被 flex 压扁（那正是 r135 的第一个根因） ---- */
.nc-shot {
  position: relative; border-radius: 10px; overflow: hidden;
  background: #12121a; border: 1px solid #2e2e3a;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
/* 点图 = 展开/收起配置（r135 用户要求"点一下就有提示词框在下面弹出来"） */
.nc-shot[data-nc-act] { cursor: pointer; }
.nc-shot[data-nc-act]:hover { border-color: #4d5f80; }
.nc-shot-empty { font-size: 11px; color: #55556a; }
.nc-holder, .nc-shot .draw-result {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  /* ★ 出图后 runOneDrawTask 会把 holder 的 class 整串换成 draw-result，
     全局 .draw-result 带 aspect-ratio:1 / object-fit:cover —— 在节点里要压回去，
     否则竖版图会被裁成方图、节点高度还会被撑开。 */
  aspect-ratio: auto;
  border: none; border-radius: 0; background: none;
}
/* ★ r142：img 的盒子必须**等于照片本身**，不能铺满图框 ——
   铺满的话"照片两边的黑边"在 DOM 上仍属于 img（e.target 还是它），
   "点照片放大"和"点黑边展开配置"就永远分不开。贴合之后黑边归 .nc-holder。 */
.nc-holder img, .nc-shot .draw-result img, .nc-shot > img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block; cursor: zoom-in;
}
.nc-shot .draw-result:hover { transform: none; }
.nc-shot .draw-result-status { color: #9a9aae; font-size: 11px; padding: 0 10px; text-align: center; }

/* ---- 图框的手势（r138 定"点图 = 放大"，r139 补"没图时点 = 选中"，★ r142 再收一次）----
   r142 起热区只有**照片本身**：
     照片     → 放大 4 倍（就地浮出，不是全屏弹窗），并且**不**展开面板/动作条；
     图框其余（含照片两边的黑边）→ 不挂动作，点它等同于点这个节点（内核 click → select），
     面板 + 动作条两个框随之展开。光标也要跟着分：照片是 zoom-in，图框是 pointer。 */
.nc-shot { cursor: pointer; }
.nc-shot--zoom { cursor: pointer; }
.nc-shot-empty { cursor: inherit; }

/* ---- r201 图右上角的下载键 ----
   ★ 挂在 .nc-shot 上（不是 .nc-holder 里）：出图那一刻 holder 会被整块换成
     .draw-result，塞在里面的按钮会跟着消失（"出完图下载键就没了"）。
   ★ 平时半透明、hover 才实 —— 不抢照片本身，但**始终可点**（不能只在 hover 才 display，
     触屏和真机断言都拿不到）。
   ★ z-index 要压在照片之上；data-no-select 让"点节点即选中"跳过它（内核 ④b）。 */
.nc-dl {
  position: absolute; right: 6px; top: 6px; z-index: 5;
  width: 26px; height: 26px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #e8ecf5; cursor: pointer;
  background: rgba(12, 14, 20, .72); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px; opacity: .62; transition: opacity .15s, background .15s;
}
.nc-shot:hover .nc-dl { opacity: 1; }
.nc-dl:hover { background: #22c55e; border-color: #52e08d; color: #fff; }

/* ---- 上游参考图条（r137）：把连进来的图显示出来，角标数字 = 提示词里的 image N ---- */
.nc-refs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  flex: 0 0 auto; padding: 2px 0 0;
}
.nc-refs-t { font-size: 10.5px; color: #7f8aa4; flex: 0 0 auto; }
.nc-ref {
  position: relative; width: 46px; height: 46px; padding: 0; flex: 0 0 auto;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  background: #12121a; border: 1px solid #3a3a47; display: block;
}
.nc-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-ref:hover { border-color: #52e08d; }
.nc-ref-n {
  position: absolute; left: 2px; top: 2px; min-width: 14px; height: 14px;
  border-radius: 4px; background: rgba(34, 197, 94, .92); color: #fff;
  font-size: 9.5px; font-style: normal; line-height: 14px; text-align: center;
}
.nc-ref-r {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9px; font-style: normal; color: #c9d2e6; text-align: center;
  background: rgba(12, 12, 18, .78); padding: 1px 0;
}
.nc-ref--over { opacity: .5; }
.nc-ref--over::after {
  content: '超上限'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 9px; color: #ffd7d7; background: rgba(80, 20, 20, .6);
}
.nc-ref--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-style: dashed; cursor: default;
}
.nc-ref--empty .nc-ref-r { position: static; background: none; padding: 0; }
.nc-ref-wait { font-size: 9.5px; font-style: normal; color: #6c6c82; }

/* ---- 生图模型选择（r137）---- */
.nc-model {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 5px 8px; border-radius: 8px; cursor: pointer;
  background: #26262f; color: #c9d2e6; border: 1px solid #3d3d4a; font-family: inherit;
  max-width: 118px;
}
.nc-model:hover { background: #32323d; border-color: #52e08d; }
.nc-model .nc-model-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-model .nc-model-c { color: #8b8b9c; font-size: 9px; flex: 0 0 auto; }
.nc-model--bar { max-width: 140px; }
.nc-menu--model { width: 268px; }
.nc-menu--model .nc-menu-i--on { background: #2b3b57; }
.nc-menu--model .nc-menu-i--on .nc-menu-x b { color: #9dc0ff; }

/* ---- 图片放大预览（r138 改版 → r140 去框）----
   ★ r138：用户明确否掉了全屏黑底 lightbox：
     "不要用全屏展示的方式，在原来基础放大 4 倍即可"。
   所以是：**点图片任意位置 → 就在那个框的位置浮出一个 4 倍大的预览**，
   没有全屏遮罩、不挡住画布其它部分（还能一边看大图一边对照旁边的节点），
   点别处 / Esc 收起。

   ★★ r140：用户原话"图片点击放大时，展示图片就好了，不要有边框"。
   ⇒ 浮层里**只有一张 <img>**：没有 border、没有底色、没有圆角、没有顶栏
     （原来的标题 / 下载原图 / ✕）、也没有底部提示条。
     那圈"边框"其实是 `.nc-pv` 自己的 border + 底色：`object-fit:contain` 之下
     图片没填满的那个比例差会露出底色，看着就像给图镶了一圈深色边。
     现在底色撤掉，只剩图片本身。
   ★ 只留一层柔和的 `drop-shadow`（**跟着图片轮廓走**，不是矩形描边）——
     不然深色图会糊进深色画布、完全看不出浮在哪儿。这不是边框，是阴影。

   ★ 尺寸由 JS 按 `原图框 rect × 4` 算出来写进 style（并夹到视口内），
     CSS 只负责外观 —— 因为"4 倍"要对着**屏幕上真实的显示尺寸**算，
     而节点可能被用户拖过、画布也可能缩放过，写死 px 必然对不上。
   ★ 定位**必须用屏幕坐标**（r136 的规矩：`position:fixed` 的浮层拿世界坐标会跑偏几百像素）。 */
.nc-pv {
  position: fixed; z-index: 3000;
  background: none; border: none; border-radius: 0; overflow: visible;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, .55));
  animation: nc-pv-in .13s ease-out;
}
@keyframes nc-pv-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
.nc-pv img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  /* ★ r141：再说一遍手势 —— r140 把边框和提示条都撤了，鼠标形状是唯一剩下的"这里的点得动"的信号 */
  cursor: zoom-out;
}

/* ---- 节点按钮 ---- */
.nc-acts { display: flex; gap: 6px; }
.nc-btn {
  flex: 1 1 auto; font-size: 11.5px; padding: 5px 8px; border-radius: 8px; cursor: pointer;
  background: #2f2f3b; color: #d6d6e4; border: 1px solid #3d3d4a; font-family: inherit;
}
.nc-btn:hover { background: #3a3a48; }
.nc-btn--primary { background: #22c55e; border-color: #52e08d; color: #fff; }
.nc-btn--primary:hover { background: #4a7fe4; }
.nc-btn--ghost { flex: 0 0 auto; background: transparent; color: #9a9aae; }
.nc-btn--ghost:hover { background: #2c2c37; color: #d6d6e4; }
.nc-btn:disabled { opacity: .6; cursor: default; }

/* ---- 输出节点 ---- */
.nc-out-count { font-size: 11.5px; color: #a6a6b8; }
.nc-out-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  max-height: 240px; overflow: auto;
}
.nc-out-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px;
  background: #12121a; border: 1px solid #2e2e3a; display: block;
}

@media (max-width: 900px) {
  .fit-nc-host { height: 520px; }
}

/* ================================================================
   r133 · AI试衣间 = 全屏节点工作流画布
   ----------------------------------------------------------------
   ★ 打开「AI试衣间」直接就是画布：没有表单、没有三步工作台。
     .nc-full-view 用 fixed 铺满整个窗口（祖先无 transform，fixed 才靠得住），
     底部一条 footer 放着「返回首页」—— 画布本身是深色操作板，
     跟页面其余的浅色主题刻意分开（同 LibTV 的观感）。
   ================================================================ */

.view.nc-full-view { display: none !important; }
.view.nc-full-view.active {
  display: flex !important;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 900;
  flex-direction: column;
  background: #17171c;
}

.nc-full { flex: 1 1 auto; min-height: 0; position: relative; }

.nc-full-foot {
  flex: 0 0 auto;
  height: 48px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: #1e1e25;
  border-top: 1px solid #2a2a33;
  color: #8b8b9c;
  font-size: 12px;
  overflow: hidden; white-space: nowrap;
}
.nc-foot-back {
  font-size: 12.5px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  background: #2f2f3b; color: #e4e4ee; border: 1px solid #3d3d4a; font-family: inherit;
  flex: 0 0 auto;
}
.nc-foot-back:hover { background: #3a3a48; }
.nc-foot-back--sub { background: transparent; color: #9a9aae; }
.nc-foot-back--sub:hover { background: #2c2c37; color: #d6d6e4; }
.nc-foot-tip { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.nc-foot-stat { flex: 0 0 auto; color: #c8c8d6; font-variant-numeric: tabular-nums; }

/* ---- 空画布提示 ---- */
.nc-empty {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;   /* ★ 不能挡住双击 —— 用户第一下就是双击这里 */
}
.nc-empty-in { text-align: center; color: #6c6c82; line-height: 1.9; }
/* ---- 空画布视觉（参考图落地）----
   canvas 是绝对定位：它铺满整层，但**不参与** .nc-empty 的 flex 居中，
   所以文字仍然稳稳落在画布正中（原来是 title+两行说明，现在主行照参考图重做）。 */
.nc-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* ★ 空画布由 canvas 接管点阵。不关掉这层 CSS 网格的话两套点阵会错位成"重影"。
   只有 canvas 真画出来了才会加上这个 class（logo 取不到像素时保留原网格）。 */
.nc-viewport.nc-fx-on { background-image: none; }

.nc-empty-t {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 19px; color: #c6c6d6; letter-spacing: .5px; margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .7);
}
/* 光标箭头：配色取自 logo（绿系渐变），白色描边保证压在点阵上也看得清 */
.nc-fx-caret {
  width: 21px; height: 31px; flex: 0 0 auto; display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .65));
}
.nc-empty-s { font-size: 12.5px; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }

/* ---- 双击弹出来的节点菜单（挂 body，fixed 定位） ---- */
.nc-menu {
  position: fixed; z-index: 2000;
  /* ★ 高度上限要放得下**全部节点类型**（单行省略后每项约 52px）：
     r141 时是 7 种 ≈ 380px；r149 加了「模特生活展示」共 9 种 ≈ 500px。
     ★★ 这个上限必须跟着种类数一起长 —— 一旦装不下，最后那两种（封面 / 成品输出）
        就被挤进内部滚动里，用户看到的是"菜单里少了几项"（实测 cover 的中心点
        已经落到菜单可视区之外，点下去建不出节点）。
     小窗口放不下时仍有 calc(100vh - 24px) 兜底 + 内部滚动，绝不会被裁。 */
  width: 300px; max-height: min(520px, calc(100vh - 24px)); overflow: auto;
  background: #23232c; border: 1px solid #3a3a47; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  padding: 6px;
}
.nc-menu-t {
  font-size: 11px; color: #8b8b9c; padding: 5px 8px 7px;
  border-bottom: 1px solid #32323d; margin-bottom: 4px;
}
.nc-menu-i {
  display: flex; gap: 8px; align-items: flex-start; width: 100%;
  padding: 7px 8px; border: none; background: transparent; cursor: pointer;
  border-radius: 8px; text-align: left; font-family: inherit;
}
.nc-menu-i:hover { background: #2e2e3a; }
.nc-menu-ic { font-size: 15px; line-height: 1.3; flex: 0 0 auto; }
.nc-menu-x { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.nc-menu-x b { font-size: 12.5px; color: #e9e9f2; font-weight: 600; }
/* ★ 说明文案单行省略（全文挂在 title 上）——
   两行排的话 7 项要 538px 高，菜单会长得盖住半个画布，还得滚动才看得到最后两种 */
.nc-menu-x i {
  font-size: 11px; color: #8b8b9c; font-style: normal; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---- 顶栏的服装描述输入框 ---- */
.nc-brief {
  width: 220px; font-size: 11.5px; padding: 4px 9px; border-radius: 7px;
  background: #1b1b22; border: 1px solid #3a3a47; color: #e4e4ee;
  font-family: inherit; flex: 0 0 auto;
}
.nc-brief::placeholder { color: #6c6c82; }
.nc-brief:focus { outline: none; border-color: #52e08d; }

/* ---- 连线：hover 变红 + 中点出 ✕（用户要能随手改连线） ---- */
.nc-wire-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
.nc-wire-g:hover .nc-wire { stroke: #e0574f; stroke-width: 2.4; }
.nc-wire-x { opacity: 0; pointer-events: auto; cursor: pointer; transition: opacity .12s; }
.nc-wire-g:hover .nc-wire-x { opacity: 1; }
.nc-wire-x circle { fill: #3a2327; stroke: #e0574f; stroke-width: 1.2; }
.nc-wire-x text { fill: #f08a8a; font-size: 10px; text-anchor: middle; }
.nc-wire--ghost { stroke: #34d17a; stroke-width: 2; stroke-dasharray: 5 4; }

/* ---- 节点选中 / 作为连线落点 ----
   ★ r140：边框在三块（主体卡 / 配置面板 / 动作条）上，所以选中色要**同时**打到三块，
   否则只有图框变绿、下面两个框还是灰的，看着像"只有一半被选中了"。 */
.nc-node.nc-sel .nc-card,
.nc-node.nc-sel .nc-panel,
.nc-node.nc-sel .nc-foot {
  border-color: #34d17a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38), 0 0 0 1px #34d17a inset;
}
.nc-node.nc-drop .nc-card,
.nc-node.nc-drop .nc-panel,
.nc-node.nc-drop .nc-foot {
  border-color: #5fbf87;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38), 0 0 0 1px #5fbf87 inset;
}

/* ★ r135：这里原先给 .nc-body.nc-scroll 硬限高 430px —— 那是"展开态才滚动"的老思路，
   现在 body 恒定为滚动容器（见上面 .nc-body 的注释），再限高只会把
   「提示词」和「出图」挤出视野。高度由节点自身的 max-height:78vh 兜住。 */

/* ---- 「＋参考」上传入口（r139 从提示词头搬到工具条首位，改成 .nc-tool 同款） ----
   类名沿用 .nc-prompt-file：里面那个 hidden file input 走 host 上早就挂好的
   change 委托，改名只会让历史断言白白失效。 */
.nc-tool.nc-prompt-file {
  font-size: 11px; padding: 3px 9px;
  background: #1d3327; color: #bfe9cf; border: 1px solid #2c5b41;
}
.nc-tool.nc-prompt-file:hover { background: #24422f; color: #e2ffe9; border-color: #34d17a; }
.nc-ref-strip {
  display: flex; align-items: center; gap: 7px; margin-top: 4px;
  padding: 5px 7px; border-radius: 8px; background: #1a1a22; border: 1px solid #2e2e3a;
}
.nc-ref-strip img {
  width: 34px; height: 34px; object-fit: cover; border-radius: 6px; flex: 0 0 auto;
}
.nc-ref-strip span { font-size: 10.5px; color: #7f8aa4; line-height: 1.4; }

/* ---- 拖图片进画布：拖到上面时整块画布高亮 ---- */
.nc-viewport.nc-over::after {
  content: '松手即可把图片放进画布'; position: absolute; inset: 8px;
  border: 2px dashed #52e08d; border-radius: 12px;
  background: rgba(34, 197, 94, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #9fc0ff; pointer-events: none; z-index: 20;
}
.nc-empty-tip { font-size: 12px; color: #62708c; margin-top: 4px; }

/* ---- 上传区（r135 起上传入口已并入提示词头，这里只留通用位） ---- */
.nc-up { display: flex; align-items: center; gap: 8px; }
.nc-up-tip { font-size: 10.5px; color: #6c6c82; }
.nc-out-grid a { display: block; }

/* ---- r246 AI家装设计：720° 全景预览（等距柱状 2:1 + 拖拽环视） ---- */
.agent-detail-view--home-design .bvi-pano-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px;
}
.agent-detail-view--home-design .bvi-pano-card {
  background: var(--bg-page); border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden; padding: 10px 12px 12px;
}
.agent-detail-view--home-design .bvi-pano-stage {
  position: relative; width: 100%; aspect-ratio: 2 / 1;
  background: #0d1117; border-radius: var(--r-sm); overflow: hidden;
}
.agent-detail-view--home-design .bvi-pano-canvas { width: 100%; height: 100%; display: block; }
.agent-detail-view--home-design .bvi-pano-raw { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-detail-view--home-design .bvi-pano-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8b98ad;
}
.agent-detail-view--home-design .bvi-pano-name {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-primary);
}
.agent-detail-view--home-design .bvi-pano-tip {
  font-size: 11px; font-weight: 500; color: var(--text-tertiary);
  padding: 1px 7px; border: 1px solid var(--border-light); border-radius: 999px;
}
@media (max-width: 900px) {
  .agent-detail-view--home-design .bvi-pano-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   r253 720° VR 全景看房器（.pvr-*，通用组件，家装「720° 全景」在用）
   结构：.pvr > .pvr-stage（画布 + 浮层控件） + .pvr-strip（场景缩略图条）
   ========================================================================== */
.pvr { display: flex; flex-direction: column; gap: 10px; }

/* ★ r256：全景预览整体缩小一半（宽高同比，居中）—— 缩之前是满宽 640px 上限，
   在出图页里占得太满，压住了下面的场景条。★ 全屏态必须把 width 还原成 100%
   （.pvr--fs / --nativefs 只覆盖了 height，不还原 width 全屏就只剩半屏）。 */
.pvr-stage {
  position: relative; width: 50%; margin-left: auto; margin-right: auto;
  height: clamp(180px, 28vh, 320px);
  background: #05080b; border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
  touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.pvr-stage.dragging { cursor: grabbing; }
.pvr-canvas { width: 100%; height: 100%; display: block; }
.pvr-photo {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #05080b;
}
.pvr-canvas[hidden], .pvr-photo[hidden] { display: none; }

/* 顶部标题条 */
.pvr-top {
  position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
}
.pvr-title { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pvr-sub { margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.72); }

/* 载入 / 提示 */
.pvr-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.8); background: rgba(5,8,11,.6);
}
.pvr-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: pvr-spin .8s linear infinite;
}
@keyframes pvr-spin { to { transform: rotate(360deg); } }
.pvr-note {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 8px 12px;
  font-size: 12px; color: rgba(255,255,255,.85); text-align: center;
  background: rgba(0,0,0,.55); border-radius: 999px; backdrop-filter: blur(4px);
}
.pvr-loading[hidden], .pvr-note[hidden] { display: none; }

/* 左右场景切换 */
.pvr-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.35); border: none; border-radius: 8px;
  transition: background .15s;
}
.pvr-nav:hover { background: rgba(0,0,0,.62); }
.pvr-nav--prev { left: 10px; }
.pvr-nav--next { right: 10px; }

/* 右下竖排控件 */
.pvr-ctrl {
  position: absolute; right: 12px; bottom: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.pvr-ctrl button {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; transition: background .15s, color .15s;
}
.pvr-ctrl button:hover { background: rgba(0,0,0,.72); }
.pvr-ctrl button.on { background: #2f6df6; border-color: #2f6df6; }

/* 视野角读数 */
.pvr-fov {
  position: absolute; left: 12px; bottom: 14px; padding: 3px 9px;
  font-size: 11px; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.4); border-radius: 999px; pointer-events: none;
}

/* 场景缩略图条 */
.pvr-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px;
  scrollbar-width: thin;
}
.pvr-strip[hidden] { display: none; }
.pvr-thumb {
  flex: 0 0 auto; width: 132px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-sm); padding: 6px; transition: border-color .15s;
}
.pvr-thumb:hover { border-color: rgba(255,255,255,.34); }
.pvr-thumb.active { border-color: #2f6df6; background: rgba(47,109,246,.14); }
.pvr-thumb-img {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #05080b; border-radius: 6px; overflow: hidden;
}
.pvr-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pvr-thumb-360 {
  position: absolute; left: 4px; top: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(47,109,246,.92); border-radius: 999px;
}
.pvr-thumb-name {
  margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pvr-thumb-act {
  margin-top: 5px; width: 100%; padding: 4px 0;
  font-size: 11px; color: var(--text-primary); cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--border-light);
  border-radius: 6px;
}
.pvr-thumb-act:hover { background: rgba(255,255,255,.16); }

/* 原生全屏：舞台吃掉整个屏幕 */
/* ★ r256：全屏时 stage 是 100vh，父级 flex 的 10px gap 会把它压成 100vh-10（底边缺一条）；
   strip 是 absolute 覆盖层，不占位 —— 直接去掉 gap 即可让舞台真正满屏。 */
.pvr--nativefs { background: #05080b; padding: 0; gap: 0; }
.pvr--nativefs .pvr-stage { width: 100%; height: 100vh; border: none; border-radius: 0; }
.pvr--nativefs .pvr-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 10px 12px 14px; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.pvr--nativefs .pvr-ctrl { bottom: 96px; }

/* 降级全屏（requestFullscreen 被拒/不支持时，页面内铺满） */
.pvr--fs {
  position: fixed; inset: 0; z-index: 9999; background: #05080b; padding: 0; gap: 0;
}
.pvr--fs .pvr-stage { width: 100%; height: 100vh; border: none; border-radius: 0; }
.pvr--fs .pvr-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 10px 12px 14px; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.pvr--fs .pvr-ctrl { bottom: 96px; }
@media (max-width: 900px) {
  /* ★ r256：窄屏下预览同样缩一半，且不得低于 140px（再小控件会互相叠） */
  .pvr-stage { width: 50%; height: clamp(140px, 23vh, 210px); }
  .pvr-thumb { width: 116px; }
}

/* ==========================================================
   r287 数字人智能体（agent-detail-view--digital-human）
   布局：左五步配置 / 右结果；★ r289 主题青 → 深绿（与站点 --accent:#2ecc71 同族）
   ========================================================== */
.agent-detail-view--digital-human {
  --accent: #2fbf6b;
  --accent-rgb: 47, 191, 107;
  --accent-ink: #04240f;
  --brand-a: #15803d;
  --brand-b: #2fbf6b;
  --detail-bg: linear-gradient(160deg, #06100b 0%, #071a10 52%, #050d09 100%);
  --detail-mask: linear-gradient(180deg, rgba(3,12,7,0.72) 0%, rgba(3,10,6,0.80) 50%, rgba(2,8,5,0.88) 100%);
}
.dh-page { display: flex; gap: 16px; align-items: flex-start; }
.dh-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dh-right { flex: 0 0 420px; max-width: 44%; position: sticky; top: 0; }
@media (max-width: 1180px) {
  .dh-page { flex-direction: column; }
  .dh-right { flex: 1 1 auto; max-width: none; position: static; width: 100%; }
}
.dh-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: var(--r-lg, 12px); padding: 14px 16px;
}
.dh-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dh-step {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(var(--accent-rgb), 0.18); color: var(--accent);
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.dh-card-title { font-size: var(--fs-md, 15px); font-weight: 600; color: var(--text-primary); }
.dh-card-tip { font-size: 11px; color: var(--text-tertiary); }
.dh-field { margin-bottom: 10px; }
.dh-field-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
/* ★ r298 视频类型（口播/带货/创意）卡片 + 带货商品图 */
.dh-vtype-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dh-vtype {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-card, rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer; color: inherit; font: inherit;
  transition: border-color .18s, background .18s;
  /* ★ r427 真根因：mobile.css「button { white-space: nowrap }」让本卡片（button）内的
     「知识分享、观点输出、资讯播报」等描述不换行、直接顶破卡片边框。类选择器特异性(0,1,0)
     高于 button(0,0,1)，此处恢复 normal 即可跨 media query 覆盖。 */
  white-space: normal;
}
.dh-vtype:hover { border-color: rgba(var(--accent-rgb), .45); }
.dh-vtype.is-on {
  border-color: rgba(var(--accent-rgb), .8);
  background: rgba(var(--accent-rgb), .1);
}
.dh-vtype-ico { font-size: 17px; line-height: 1; }
.dh-vtype-name { font-size: 14px; font-weight: 700; }
.dh-vtype.is-on .dh-vtype-name { color: var(--accent); }
/* ★ r427 修文字出框：.dh-vtype 是 flex column + align-items:flex-start，交叉轴不拉伸，
   desc 的宽度会按「单行内容宽」算 → 手机 2 列时「知识分享、观点输出、资讯播报」顶破卡片边框。
   给它 width:100% 让宽度回归容器（文字自然换行）。 */
.dh-vtype-desc { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.45; width: 100%; min-width: 0; word-break: break-word; }
.dh-vtype.is-on .dh-vtype-desc { color: rgba(var(--accent-rgb), .85); }
.dh-goods { margin-top: 10px; }
.dh-goods-drag .dh-goods-add {
  border-color: var(--accent); color: var(--accent);
  background: rgba(var(--accent-rgb), .12); border-style: dashed;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35) inset;
}
.dh-goods-list { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-goods-add {
  width: 72px; height: 72px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.22); background: transparent;
  color: var(--text-tertiary); font-size: 12px; cursor: pointer;
}
.dh-goods-add:hover { border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }
.dh-goods-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.dh-goods-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-goods-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.62);
  color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer;
}
.dh-row, .dh-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dh-col { flex: 1 1 auto; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.dh-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dh-spacer { flex: 1 1 auto; }
.dh-count { font-size: 11px; color: var(--text-tertiary); }
.dh-info { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.dh-info.ok { color: var(--accent); }
.dh-info.bad { color: #ff8080; }
.dh-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--chip-border); background: var(--chip-bg);
  color: var(--chip-text); border-radius: 8px; padding: 7px 12px;
  font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.dh-btn:hover { background: var(--chip-hover-bg); color: var(--text-primary); }
.dh-btn.sm { padding: 5px 10px; font-size: 11px; }
.dh-btn.ghost { background: transparent; }
.dh-btn.ai { border-color: rgba(var(--accent-rgb), .45); color: var(--accent); background: rgba(var(--accent-rgb), .10); }
.dh-btn.ai:hover { background: rgba(var(--accent-rgb), .18); }
.dh-btn.pick { background: var(--chip-bg); }
.dh-btn[disabled] { opacity: .55; cursor: not-allowed; }
.dh-input, .dh-select, .dh-textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--chip-border);
  border-radius: 8px; color: var(--text-primary); font-size: 12px; padding: 7px 10px;
  outline: none; width: 100%; box-sizing: border-box;
}
.dh-input { flex: 1 1 180px; width: auto; }
.dh-textarea { width: 100%; resize: vertical; line-height: 1.6; }
.dh-select { width: 100%; }
.dh-textarea:focus, .dh-input:focus, .dh-select:focus { border-color: rgba(var(--accent-rgb), .55); }
/* 形象上传区 */
.dh-avatar-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.dh-avatar-drop {
  width: 168px; height: 168px; flex: 0 0 168px; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--chip-border); background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.dh-avatar-drop:hover, .dh-avatar-drop.dragover { border-color: var(--accent); background: rgba(var(--accent-rgb), .10); }
.dh-avatar-drop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-avatar-ph { text-align: center; color: var(--text-tertiary); }
.dh-avatar-ph-icon { font-size: 26px; }
.dh-avatar-ph-text { font-size: 12px; margin-top: 6px; }
/* 音频来源切换 */
.dh-src-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dh-src-row .chip.active { border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }
.dh-src-pane { display: flex; flex-direction: column; gap: 8px; }
.dh-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--chip-text);
  border-radius: 999px; padding: 5px 10px; cursor: pointer; white-space: nowrap;
}
.dh-chip:hover { background: var(--chip-hover-bg); }
.dh-chip-caret { opacity: .6; }
.dh-voice-bar { display: flex; gap: 8px; }
.dh-voice-badge { font-size: 10px; background: rgba(var(--accent-rgb), .18); color: var(--accent); border-radius: 999px; padding: 1px 6px; }
.dh-voice-cur { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }
.dh-voice-cur.ok { color: var(--accent); }
.dh-audio-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--panel-border); }
/* 模式卡 */
.dh-mode-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-mode-item {
  flex: 1 1 160px; border: 1px solid var(--chip-border); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; background: var(--chip-bg);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s;
}
.dh-mode-item strong { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.dh-mode-item span { font-size: 11px; color: var(--text-tertiary); }
.dh-mode-item.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.dh-mode-item.active strong { color: var(--accent); }
.dh-generate-btn {
  width: 100%; margin-top: 12px; border: none; border-radius: 10px; cursor: pointer;
  padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--accent-ink);
  /* ★ r428 用户要求：这条通栏长条按钮不要渐变，纯色就好（原为 linear-gradient(90deg, --brand-a→--brand-b) 深绿→亮绿）。 */
  background: var(--accent);
  transition: filter .2s, opacity .2s;
}
/* ★ r428 按钮内的火箭图标跟随按钮文字色，且与文字基线对齐（内联 SVG 默认 baseline 会偏高） */
.dh-generate-btn .zg-ic { display: inline-flex; align-items: center; }
.dh-generate-btn .zg-ic svg { display: block; }
.dh-generate-btn:hover { filter: brightness(1.06); }
.dh-generate-btn[disabled] { opacity: .6; cursor: not-allowed; }
.dh-note { margin-top: 8px; font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }
.dh-note.bad { color: #ff8080; }
/* 结果区 */
.dh-result-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: var(--r-lg, 12px); padding: 14px 16px;
}
.dh-result-head { font-size: var(--fs-md, 15px); font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.dh-result-empty { text-align: center; padding: 28px 10px; color: var(--text-tertiary); }
.dh-result-icon { font-size: 30px; }
.dh-result-title { font-size: 13px; margin-top: 8px; color: var(--text-secondary); }
.dh-result-hint { font-size: 11px; margin-top: 6px; line-height: 1.7; }
.dh-results { display: flex; flex-direction: column; gap: 12px; }
.dh-records { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dh-records-body {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 72vh; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.dh-records-body::-webkit-scrollbar { display: none; }
.dh-video { width: 100%; border-radius: var(--r-md, 8px); background: #000; display: block; }
.dh-audio-line { margin: 8px 0; }

/* ==========================================================
   r288 数字人：我的数字人 / 形象库 / 换装换景 / 人脸认证
   ========================================================== */
/* 我的数字人条 */
.dh-persona-bar { margin-bottom: 12px; }
.dh-persona-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.dh-persona-card {
  position: relative; width: 86px; cursor: pointer; text-align: center;
  border: 1px solid var(--panel-border); border-radius: 10px; padding: 8px 6px;
  background: var(--panel-bg); transition: border-color .15s, background .15s;
}
.dh-persona-card:hover { border-color: rgba(var(--accent-rgb), .5); }
.dh-persona-card.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.dh-persona-card img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
  background: var(--chip-bg, rgba(127,127,127,.2)); display: block; margin: 0 auto 6px;
}
.dh-persona-name { font-size: 12px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-persona-voice { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-persona-del {
  position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; line-height: 14px;
  border: none; border-radius: 50%; cursor: pointer; font-size: 9px; padding: 0;
  background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s;
}
.dh-persona-card:hover .dh-persona-del { opacity: 1; }
.dh-persona-add {
  width: 86px; min-height: 96px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--panel-border); border-radius: 10px; color: var(--text-tertiary);
  transition: border-color .15s, color .15s;
}
.dh-persona-add:hover { border-color: var(--accent); color: var(--accent); }
.dh-persona-add span { font-size: 20px; }
.dh-persona-add em { font-style: normal; font-size: 11px; }

/* 形象预览：真人/虚拟 徽标 */
.dh-avatar-drop { position: relative; }
.dh-avatar-kind {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}

/* 原图 / 换装换景 两个标签 */
.dh-look-row { display: flex; gap: 10px; margin-top: 12px; }
.dh-look-item {
  flex: 1 1 0; cursor: pointer; border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 12px 14px; background: var(--panel-bg); transition: border-color .15s, background .15s;
}
.dh-look-item:hover { border-color: rgba(var(--accent-rgb), .5); }
.dh-look-item.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .10); }
.dh-look-item.active strong { color: var(--accent); }
.dh-look-icon { font-size: 16px; margin-bottom: 6px; }
.dh-look-item strong { display: block; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.dh-look-item span { font-size: 11px; color: var(--text-tertiary); line-height: 1.6; display: block; }
.dh-look-pane { margin-top: 12px; border-top: 1px dashed var(--panel-border); padding-top: 12px; }
.dh-look-refs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dh-look-ref {
  position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--panel-border); background: var(--chip-bg, rgba(127,127,127,.15));
}
.dh-look-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-look-ref.add {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px dashed var(--panel-border); color: var(--text-tertiary); font-size: 11px;
}
.dh-look-ref.add:hover { border-color: var(--accent); color: var(--accent); }
.dh-look-ref-x {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; line-height: 14px;
  border: none; border-radius: 50%; cursor: pointer; font-size: 9px; padding: 0;
  background: rgba(0,0,0,.55); color: #fff;
}
.dh-look-frame { margin-top: 10px; }
.dh-look-frame img {
  width: 100%; max-width: 240px; border-radius: 10px; display: block;
  border: 1px solid rgba(var(--accent-rgb), .5); margin-bottom: 6px;
}

/* 模型与算力 */
.dh-cost-card { margin-bottom: 12px; }
.dh-fixed-model {
  border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; font-weight: 600; color: var(--text-primary); background: var(--chip-bg, rgba(127,127,127,.12));
}
.dh-cost-rows { margin-top: 12px; border-top: 1px dashed var(--panel-border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dh-cost-rows > div { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.dh-cost-rows b { font-weight: 600; color: var(--text-primary); }
.dh-cost-rows .dh-cost-total { border-top: 1px dashed var(--panel-border); padding-top: 8px; }
.dh-cost-rows .dh-cost-total b, .dh-cost-rows .dh-cost-total span { color: var(--accent); }
.dh-howto { margin-top: 12px; border-top: 1px dashed var(--panel-border); padding-top: 10px; }
.dh-howto ol { margin: 0; padding-left: 18px; font-size: 12px; color: var(--text-tertiary); line-height: 1.9; }

/* 通用模态框（形象库 / 新建形象 / 人脸认证 / 新建数字人） */
.dh-modal-backdrop {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px); padding: 20px;
}
.dh-modal-backdrop[hidden] { display: none; }
.dh-modal {
  width: min(680px, 96vw); max-height: 88vh; overflow-y: auto;
  background: var(--bg-pop, #1c1c1e); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 18px 20px 14px; color: var(--text-primary);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.dh-modal-sm { width: min(420px, 96vw); }
.dh-modal-head { display: flex; align-items: center; justify-content: space-between; }
.dh-modal-head strong { font-size: 17px; }
.dh-modal-x { border: none; background: transparent; color: var(--text-tertiary); font-size: 15px; cursor: pointer; padding: 4px 6px; }
.dh-modal-x:hover { color: var(--text-primary); }
.dh-modal-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; margin-bottom: 14px; line-height: 1.6; }
.dh-modal-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.dh-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-secondary); line-height: 1.6; cursor: pointer; margin-top: 12px; }
.dh-check input { margin-top: 2px; accent-color: var(--accent); }

/* 形象库网格 */
.dh-lib-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.dh-lib-tabs { display: inline-flex; border: 1px solid var(--panel-border); border-radius: 10px; overflow: hidden; }
.dh-lib-tabs span { padding: 6px 16px; font-size: 12px; cursor: pointer; color: var(--text-tertiary); }
.dh-lib-tabs span.active { background: rgba(var(--accent-rgb), .15); color: var(--accent); font-weight: 600; }
.dh-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; min-height: 120px; }
.dh-lib-empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--text-tertiary); font-size: 12px; }
.dh-lib-card {
  cursor: pointer; border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden;
  background: var(--panel-bg); transition: border-color .15s, transform .15s;
}
.dh-lib-card:hover { transform: translateY(-2px); }
.dh-lib-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .35); }
.dh-lib-imgwrap { position: relative; aspect-ratio: 3/4; background: var(--chip-bg, rgba(127,127,127,.15)); }
.dh-lib-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-lib-badge {
  position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 2px 8px;
  border-radius: 20px; background: rgba(0,0,0,.55); color: #fff;
}
.dh-lib-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.dh-lib-fail { font-size: 12px; color: #ffd7d7; }
.dh-lib-verify {
  border: none; cursor: pointer; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  color: var(--accent-ink, #fff); background: var(--accent);
}
.dh-lib-name { font-size: 12px; font-weight: 600; padding: 8px 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-lib-status { font-size: 11px; padding: 2px 10px 10px; }
.dh-lib-status i { font-style: normal; font-size: 9px; margin-right: 4px; }
.dh-lib-status.ok { color: #4ade80; }
.dh-lib-status.bad { color: #ff8080; }
.dh-lib-hint { font-size: 11px; color: var(--text-tertiary); }

/* 新建人像形象 */
.dh-na-kinds { display: flex; gap: 10px; margin-bottom: 14px; }
.dh-na-kind {
  flex: 1 1 0; cursor: pointer; border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 14px; background: var(--panel-bg); transition: border-color .15s, background .15s;
}
.dh-na-kind:hover { border-color: rgba(var(--accent-rgb), .5); }
.dh-na-kind.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .10); }
.dh-na-kind.active strong { color: var(--accent); }
.dh-na-kind strong { display: block; font-size: 14px; margin: 6px 0 4px; color: var(--text-primary); }
.dh-na-kind span { font-size: 11px; color: var(--text-tertiary); }
.dh-na-imgrow { display: flex; gap: 14px; align-items: flex-start; }
.dh-na-imgtile {
  width: 128px; height: 160px; flex: 0 0 auto; cursor: pointer; border-radius: 12px; overflow: hidden;
  border: 1px dashed var(--panel-border); background: var(--chip-bg, rgba(127,127,127,.12));
  display: flex; align-items: center; justify-content: center;
}
.dh-na-imgtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-na-imgmeta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dh-na-realnote {
  margin-top: 12px; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.7;
  color: var(--accent); background: rgba(var(--accent-rgb), .10); border: 1px solid rgba(var(--accent-rgb), .35);
}

/* 人脸认证 */
.dh-face-qrbox {
  margin: 14px auto 10px; width: 264px; border: 1px solid rgba(var(--accent-rgb), .5);
  border-radius: 14px; padding: 14px; background: #fff;
}
.dh-face-qrbox img { width: 100%; height: auto; display: block; border-radius: 6px; min-height: 120px; background: #f4f4f4; }
.dh-face-bar { height: 3px; border-radius: 3px; background: rgba(0,0,0,.1); margin-top: 10px; overflow: hidden; }
.dh-face-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transition: width 1s linear; }
.dh-face-status {
  margin: 10px auto 0; max-width: 340px; text-align: center; font-size: 12px; line-height: 1.7;
  color: var(--text-tertiary); background: var(--panel-bg); border-radius: 10px; padding: 8px 12px;
}

/* 新建数字人 */
.dh-per-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .dh-per-grid { grid-template-columns: 1fr; } }
.dh-per-avatar {
  position: relative; height: 190px; cursor: pointer; border-radius: 12px; overflow: hidden;
  border: 1px dashed var(--panel-border); background: var(--chip-bg, rgba(127,127,127,.12));
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.dh-per-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-per-avatar-ph { text-align: center; color: var(--text-tertiary); font-size: 22px; }
.dh-per-avatar-ph em { display: block; font-style: normal; font-size: 12px; margin-top: 6px; }
.dh-per-voice { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.dh-speed-row { display: flex; align-items: center; gap: 10px; }
.dh-speed-row input[type="range"] { flex: 1 1 auto; accent-color: var(--accent); }
.dh-speed-row b { font-size: 12px; color: var(--text-primary); min-width: 46px; text-align: right; }

/* ==========================================================
   r289 数字人：规范化 + 深绿主题 + 配音先行流水线
   ========================================================== */
/* ★ 根治「hidden 属性被组件级 display 覆盖」：破图 alt 文字外漏、占位文字被挤成竖排
   （.dh-avatar-drop img 等选择器带 display:block，会盖掉 UA 的 [hidden]{display:none}） */
[hidden] { display: none !important; }

/* 生成流水线：① 配音音频 → ② 合成视频 */
.dh-pipeline { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.dh-pipe-step {
  flex: 1 1 0; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.03); min-width: 0;
}
.dh-pipe-num { font-size: 15px; font-weight: 700; color: var(--accent); flex: 0 0 auto; }
.dh-pipe-txt { min-width: 0; flex: 1 1 auto; }
.dh-pipe-txt strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.dh-pipe-txt span { display: block; font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.dh-pipe-state {
  flex: 0 0 auto; font-style: normal; font-size: 10px; border-radius: 999px;
  padding: 2px 8px; background: var(--chip-bg); color: var(--text-tertiary); white-space: nowrap;
}
.dh-pipe-state.ok { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.dh-pipe-state.run { background: rgba(var(--accent-rgb), .10); color: var(--accent); }
.dh-pipe-arrow { align-self: center; color: var(--text-tertiary); font-size: 14px; flex: 0 0 auto; }
.dh-generate-btn { font-size: 14px; }

/* 弹窗规范化：子卡片框 */
.dh-subcard {
  border: 1px solid var(--chip-border); border-radius: 12px;
  background: rgba(255,255,255,0.025); padding: 12px;
}
.dh-subcard > .dh-field-label { display: block; font-size: 12.5px; color: var(--text-secondary); font-weight: 600; margin-bottom: 10px; }
.dh-per-avatar { height: 170px; max-width: 200px; }
.dh-per-avatar-ph em, .dh-avatar-ph-text { white-space: nowrap; }
.dh-per-avatar-ph { padding: 0 10px; text-align: center; }
.dh-modal .dh-note { margin-top: 10px; }
.dh-per-grid { gap: 12px; }

/* 新建人像形象：类型卡 + 图块 */
.dh-na-kind { border-color: var(--chip-border); }
.dh-na-kind .dh-look-icon {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), .12); font-size: 17px; margin-bottom: 0;
}
.dh-na-imgtile { flex: 0 0 128px; }
.dh-na-imgtile .dh-avatar-ph-text { padding: 0 8px; }
.dh-na-imgmeta { min-width: 0; }

/* 选择形象：网格与卡片更规整 */
.dh-lib-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.dh-lib-toolbar { margin-bottom: 14px; }
.dh-modal-foot { border-top: 1px dashed var(--panel-border); padding-top: 12px; }

/* 换装首帧预览与形象上传瓷砖：占位不被挤压 */
.dh-look-frame img { max-width: 200px; }

/* ==========================================================
   r290 数字人弹窗按设计稿重构：选择形象 / 新建人像形象
   ========================================================== */
/* 弹窗壳体：更大圆角、更深的底、圆形式关闭钮 */
.dh-modal--lib { width: min(720px, 96vw); }
.dh-modal--na { width: min(860px, 96vw); }
.dh-modal--lib .dh-modal,
.dh-modal--na .dh-modal { border-radius: 20px; padding: 22px 24px 18px; }
.dh-modal--lib .dh-modal-head strong,
.dh-modal--na .dh-modal-head strong { font-size: 19px; letter-spacing: .5px; }
/* ★ r467：这里原本写的是 border: 1px solid var(--panel-border)，但那是**无效声明** ——
   --panel-border 只定义在 .agent-detail-view（app.css:3297）和 .ps-view（6243）
   两个视图作用域内，而 .dh-modal-backdrop 是 body 直属弹层，取不到该变量 →
   整条 border 在计算值阶段失败被丢弃 → 回退到 8827 行的 border:none，
   实际渲染出来就是一个裸 ✕，手机截图里一眼可见（用户点名要求补框）。
   改用显式 rgba，与 .modal-close / .mcl-x 归到同一套圆框观感。
   同时补 min-height:0 锁 1:1 —— mobile.css 的 @media(max-width:700px){button{min-height:44px}}
   会把 30px 的圆钮撑成 30×44 竖椭圆（r436 / r458 / r461 同源坑）。 */
.dh-modal-x {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-tertiary); cursor: pointer; padding: 0;
  min-height: 0; max-height: 30px; flex: 0 0 auto; position: relative;
}
/* 视觉仍是 30×30 正圆；热区用透明伪元素补到 44px（30-2+8×2），
   免得「加了框反而更难点」。inset -8px 已把 1px 描边占掉的内边距盒算进去。 */
.dh-modal-x::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
/* hover 里的 --accent-rgb / --accent 同样可能取不到（同样是 scoped 变量），
   一律带 fallback，保证「没变量时也不会变成没反馈」。 */
.dh-modal-x:hover {
  border-color: rgba(var(--accent-rgb, 46, 204, 113), .6);
  background: rgba(255,255,255,.12); color: var(--accent, #2ecc71);
}
.dh-modal--lib .dh-modal-sub,
.dh-modal--na .dh-modal-sub { font-size: 12.5px; margin: 6px 0 16px; }

/* ---- 选择形象：标签栏 + 内嵌容器 + 底部操作条 ---- */
.dh-lib-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.dh-lib-tabs { display: inline-flex; gap: 26px; border: none; border-radius: 0; overflow: visible; }
.dh-lib-tabs span {
  position: relative; padding: 4px 2px 10px; font-size: 15px;
  color: var(--text-tertiary); cursor: pointer; background: none;
}
.dh-lib-tabs span:hover { color: var(--text-secondary); }
.dh-lib-tabs span.active { color: var(--text-primary); font-weight: 600; background: none; }
.dh-lib-tabs span::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 0; height: 3px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); transition: width .18s ease;
}
.dh-lib-tabs span.active::after { width: 30px; }
.dh-lib-new {
  border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 999px;
  background: rgba(var(--accent-rgb), .08); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 8px 18px; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.dh-lib-new:hover { background: rgba(var(--accent-rgb), .16); box-shadow: 0 0 16px rgba(var(--accent-rgb), .25); }
.dh-lib-body {
  border: 1px solid var(--panel-border); border-radius: 16px;
  background: rgba(255,255,255,0.02); padding: 18px; min-height: 300px;
}
.dh-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; min-height: 0; }
.dh-lib-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 16px; }
.dh-lib-empty svg { width: 118px; height: 118px; opacity: .9; }
.dh-lib-empty p { margin: 18px 0 0; font-size: 13px; color: var(--text-tertiary); }
.dh-lib-card {
  border: 1px solid transparent; border-radius: 14px; padding: 8px;
  background: transparent; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.dh-lib-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.03); }
.dh-lib-card.sel { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(var(--accent-rgb), .28); }
.dh-lib-imgwrap { aspect-ratio: 3/4; border-radius: 12px; border: 1px solid var(--panel-border); overflow: hidden; }
.dh-lib-card.sel .dh-lib-imgwrap { border-color: rgba(var(--accent-rgb), .6); }
.dh-lib-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(4,12,10,.72); backdrop-filter: blur(4px); }
.dh-lib-name { font-size: 14px; font-weight: 600; padding: 10px 2px 0; color: var(--text-primary); }
.dh-lib-status { font-size: 12px; padding: 3px 2px 2px; }
.dh-lib-status i { font-size: 8px; vertical-align: 1px; margin-right: 5px; }
.dh-lib-status.ok i { color: var(--accent); }
.dh-lib-status.ok { color: var(--text-secondary); }
.dh-foot-box {
  border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 12px 16px; margin-top: 14px;
}
.dh-lib-hint { font-size: 12.5px; color: var(--text-tertiary); }

/* ---- 新建人像形象：类型卡 / 上传瓷砖 / 说明卡 / 图标输入 ---- */
.dh-na-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.dh-na-kind {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--panel-border); border-radius: 14px; padding: 14px 16px;
  background: rgba(255,255,255,0.02); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.dh-na-kind:hover { border-color: rgba(var(--accent-rgb), .45); }
.dh-na-kind.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .5), 0 0 20px rgba(var(--accent-rgb), .18); background: rgba(var(--accent-rgb), .05); }
.dh-na-ic {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 30%, rgba(var(--accent-rgb), .32), rgba(var(--accent-rgb), .08) 62%);
  border: 1px solid rgba(var(--accent-rgb), .35);
}
.dh-na-ic svg { width: 26px; height: 26px; }
.dh-na-kind-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dh-na-kind-txt strong { font-size: 15px; color: var(--text-primary); }
.dh-na-kind.active .dh-na-kind-txt strong { color: var(--text-primary); }
.dh-na-kind-txt span { font-size: 12px; color: var(--text-tertiary); }
.dh-na-uprow { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
@media (max-width: 640px) { .dh-na-uprow { grid-template-columns: 1fr; } }
.dh-na-imgtile {
  width: 100%; height: 232px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .04);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dh-na-imgtile:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.dh-na-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px; text-align: center; }
.dh-na-ph-ic { width: 86px; height: 86px; margin-bottom: 8px; }
.dh-na-pick { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.dh-na-sub { font-size: 11px; color: var(--text-tertiary); line-height: 1.7; }
.dh-na-imgtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-na-imgmeta {
  border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 18px; font-size: 13px; line-height: 2; color: var(--text-secondary);
  display: flex; align-items: center; background: rgba(255,255,255,0.02);
}
.dh-input-ico {
  display: flex; align-items: center; max-width: 560px;
  border: 1px solid var(--panel-border); border-radius: 12px;
  background: rgba(255,255,255,0.02); transition: border-color .15s;
}
.dh-input-ico:focus-within { border-color: rgba(var(--accent-rgb), .6); }
.dh-input-ico > span { display: flex; padding: 0 4px 0 12px; color: var(--text-tertiary); }
.dh-input-ico input {
  flex: 1 1 auto; min-width: 0; background: transparent; border: none; outline: none;
  padding: 11px 12px; font-size: 13.5px; color: var(--text-primary);
}
.dh-input-ico input::placeholder { color: var(--text-tertiary); }
.dh-na-realnote {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.dh-na-realnote i {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), .14);
}
.dh-na-realnote span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
.dh-modal--na .dh-field-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.dh-modal--na .dh-check { margin: 12px 2px 0; }
/* r290 复位 r288 旧样式残留 */
.dh-na-realnote { padding: 0; border: none; background: none; border-radius: 0; color: var(--text-secondary); }
.dh-na-imgmeta { flex-direction: row; gap: 0; align-items: center; }
.dh-na-imgtile { flex: none; }
/* ★ r290 关键修复：弹窗挂在 body 层，不在 .agent-detail-view--digital-human 作用域内，
   之前 rgba(var(--accent-rgb),…) 全部解析失败（pill 边框/选中态描边失效）。在此补齐变量。 */
.dh-modal-backdrop {
  --accent: #2fbf6b;
  --accent-rgb: 47, 191, 107;
  --accent-ink: #04240f;
  --brand-a: #15803d;
  --brand-b: #2fbf6b;
}

/* ==========================================================
   r291 数字人 hero：用户设计稿 banner + 鼠标滑动 3D 立体效果
   ========================================================== */
/* r291 数字人页原本给返回键留了 10px 底距；r378 起统一由上面的 60px 顶部留白接管，此处不再需要 */
/* r291→r292：hero 样式迁移至文末 r292 块（双层：人动背景不动） */

/* ==========================================================
   r292 hero：高度减半（aspect 4/1，显上半）；3D=人动背景不动
   bg 层完全静止；person 层（抠图透明 PNG）随鼠标视差浮动
   ========================================================== */
.dh-hero3d { margin-bottom: 14px; }
.dh-hero3d-card {
  position: relative; overflow: hidden;
  aspect-ratio: 2560 / 763;
}
.dh-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block;
}
/* ★ r426 手机端 hero 修正：原写法把卡片固定成 height:220px + object-fit:cover，
   而 banner 原图是 1920×572（≈3.36:1 的超宽图），要在 220px 高里 cover 就需 738px 宽，
   390px 的屏幕只能显示中间一段 —— 横向被裁掉约 47%（左侧「数字人」大字、右侧人物都不完整）。
   改为按原图比例自适应高度（随宽度等比缩放，390 宽 → 约 116px），整张图完整可见、无裁切。 */
@media (max-width: 760px) {
  .dh-hero3d-card { aspect-ratio: 1920 / 572; height: auto; }   /* 与 banner 原图精确同比例 → contain 零留白 */
  .dh-hero-img { object-fit: contain; }
}

/* ============================================================
   r301 视频流水线四件套：电商生视频 / AI漫剧 / 故事转视频 / 音乐MV
   引擎 UI 前缀 vp-，样式与站内智能体详情页保持一致
   ============================================================ */

/* --- 模块配色 --- */
.agent-detail-view--ecom-video {
  --accent: #ff6b35;
  --accent-rgb: 255,107,53;
  --accent-ink: #2a0f04;
  --brand-a: #f97316;
  --brand-b: #fb923c;
  --detail-bg: linear-gradient(160deg,#150a05 0%,#241009 52%,#120805 100%);
}
.agent-detail-view--drama {
  --accent: #a855f7;
  --accent-rgb: 168,85,247;
  --accent-ink: #1b0625;
  --brand-a: #8b5cf6;
  --brand-b: #c084fc;
  --detail-bg: linear-gradient(160deg,#10071c 0%,#1b0d2e 52%,#0d0617 100%);
}
.agent-detail-view--story-video {
  --accent: #06b6d4;
  --accent-rgb: 6,182,212;
  --accent-ink: #04222a;
  --brand-a: #0891b2;
  --brand-b: #22d3ee;
  --detail-bg: linear-gradient(160deg,#04141a 0%,#07222b 52%,#031015 100%);
}
.agent-detail-view--music-mv {
  --accent: #ec4899;
  --accent-rgb: 236,72,153;
  --accent-ink: #2a0716;
  --brand-a: #db2777;
  --brand-b: #f472b6;
  --detail-bg: linear-gradient(160deg,#170714 0%,#280d20 52%,#120610 100%);
}

/* --- 卡片封面（r302 换实拍图，渐变保留作加载兜底层） --- */
.agent-card.agent-card--ecom-video { background-image: url('../img/agent-ecom-video.jpg'), linear-gradient(140deg,#7c2d12 0%,#c2410c 45%,#ea580c 100%); background-position: center 30%, center; }
.agent-card.agent-card--drama { background-image: url('../img/agent-drama.jpg'), linear-gradient(140deg,#3b0764 0%,#7e22ce 45%,#a855f7 100%); background-position: center 25%, center; }
.agent-card.agent-card--story-video { background-image: url('../img/agent-story-video.jpg'), linear-gradient(140deg,#083344 0%,#0e7490 45%,#06b6d4 100%); background-position: center 35%, center; }
.agent-card.agent-card--music-mv { background-image: url('../img/agent-music-mv.jpg'), linear-gradient(140deg,#500724 0%,#9d174d 45%,#ec4899 100%); background-position: center 30%, center; }
/* 深色艺术图封面：减轻压暗遮罩，避免画面糊死 */
.agent-card.agent-card--story-video::before,
.agent-card.agent-card--music-mv::before { background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.58) 100%); }

/* --- 布局 --- */
.vp-page { display: flex; flex-direction: column; gap: 14px; padding: 0 0 24px; }
.vp-card {
  background: var(--panel-bg, rgba(255,255,255,.04));
  border: 1px solid var(--panel-border, rgba(255,255,255,.08));
  border-radius: 16px; padding: 16px 18px;
}
.vp-card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.vp-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary, #fff); }
.vp-card-tip { font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,.5)); }

/* --- 表单 --- */
.vp-form { display: flex; flex-direction: column; gap: 14px; }
.vp-field { display: flex; flex-direction: column; gap: 6px; }
.vp-label { font-size: 12px; color: var(--text-secondary, rgba(255,255,255,.75)); display: flex; align-items: center; gap: 6px; }
.vp-label-ic { font-size: 13px; }
.vp-label-tip { color: var(--text-tertiary, rgba(255,255,255,.45)); font-size: 11px; }
.vp-select, .vp-textarea {
  width: 100%; background: var(--input-bg, rgba(255,255,255,.06));
  border: 1px solid var(--input-border, rgba(255,255,255,.12));
  border-radius: 10px; padding: 9px 12px; color: var(--text-primary, #fff);
  font-size: 13px; font-family: inherit; outline: none;
}
.vp-textarea { resize: vertical; line-height: 1.6; }
.vp-select:focus, .vp-textarea:focus { border-color: rgba(var(--accent-rgb), .6); }
.vp-select option { background: #12141c; color: #fff; }

/* --- 上传区（支持拖拽） --- */
.vp-drop {
  border: 1px dashed rgba(255,255,255,.18); border-radius: 12px;
  padding: 14px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.03); transition: border-color .2s, background .2s;
}
.vp-drop:hover { border-color: rgba(var(--accent-rgb), .5); }
.vp-drop.is-drag { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.vp-drop-txt { font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,.5)); }
.vp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vp-thumbs:empty { margin-top: 0; }
.vp-thumb { position: relative; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-thumb-audio { font-size: 10px; color: rgba(255,255,255,.8); padding: 4px; text-align: center; line-height: 1.3; }
.vp-thumb-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
}

/* --- 流水线步骤 --- */
.vp-steps { display: flex; flex-direction: column; gap: 6px; }
.vp-step { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.vp-step-no { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.vp-step-name { flex: 0 0 auto; color: var(--text-primary, #fff); font-weight: 600; }
.vp-step-state { margin-left: auto; font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,.5)); }
.vp-step.is-run { background: rgba(var(--accent-rgb), .12); }
.vp-step.is-run .vp-step-no { background: rgba(var(--accent-rgb), .35); }
.vp-step.is-run .vp-step-state { color: var(--accent); }
.vp-step.is-done .vp-step-state { color: #4ade80; }
.vp-step.is-done .vp-step-no { background: rgba(74,222,128,.25); }
.vp-step.is-err { background: rgba(248,113,113,.12); }
.vp-step.is-err .vp-step-state { color: #f87171; }

/* --- 日志 --- */
.vp-log { margin-top: 10px; max-height: 120px; overflow-y: auto; font-size: 12px; line-height: 1.7; color: var(--text-tertiary, rgba(255,255,255,.55)); }
.vp-log--ok { color: #4ade80; }
.vp-log--err { color: #f87171; }
.vp-log--run { color: var(--accent); }

.vp-actions { margin-top: 14px; display: flex; align-items: center; gap: 10px; }

/* --- 结果区 --- */
.vp-result { display: flex; flex-direction: column; gap: 16px; }
.vp-group-head { font-size: 12px; color: var(--text-secondary, rgba(255,255,255,.7)); margin-bottom: 8px; font-weight: 600; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vp-art { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); display: flex; flex-direction: column; }
.vp-art img, .vp-art video { width: 100%; display: block; background: #000; }
.vp-art video { aspect-ratio: 9/16; object-fit: cover; }
.vp-art audio { width: 100%; margin: 12px 8px 0; }
.vp-art-text { padding: 12px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; color: rgba(255,255,255,.85); max-height: 220px; overflow-y: auto; }
.vp-art-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.08); }
.vp-art-title { font-size: 12px; color: rgba(255,255,255,.8); }
.vp-spacer { flex: 1; }
.vp-art-dl { font-size: 12px; color: var(--accent); text-decoration: none; }
.vp-art-dl:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .vp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* =========================================================================
   r303 文本 / 图文流水线八件套
   公众号爆款图文 / AI股市研报 / AI小说 / AI剧本 / AI商务文书 /
   AI教师备课 / AI绘本工坊 / AI视频策划
   ========================================================================= */

/* --- 各模块配色 --- */
.agent-detail-view--wx-article { --accent: #07c160; --accent-rgb: 7,193,96; --brand-a: #07c160; --brand-b: #34d399; --detail-bg: linear-gradient(160deg,#05130c 0%,#08251a 52%,#04100a 100%); }
.agent-detail-view--stock-report { --accent: #3b82f6; --accent-rgb: 59,130,246; --brand-a: #3b82f6; --brand-b: #60a5fa; --detail-bg: linear-gradient(160deg,#061026 0%,#0a1c3d 52%,#040b1a 100%); }
.agent-detail-view--novel { --accent: #8b5cf6; --accent-rgb: 139,92,246; --brand-a: #8b5cf6; --brand-b: #c4b5fd; --detail-bg: linear-gradient(160deg,#120a24 0%,#1e1140 52%,#0b0718 100%); }
.agent-detail-view--script { --accent: #f59e0b; --accent-rgb: 245,158,11; --brand-a: #f59e0b; --brand-b: #fbbf24; --detail-bg: linear-gradient(160deg,#1d1405 0%,#2e2008 52%,#150f04 100%); }
.agent-detail-view--biz-doc { --accent: #6366f1; --accent-rgb: 99,102,241; --brand-a: #6366f1; --brand-b: #a5b4fc; --detail-bg: linear-gradient(160deg,#0b0e24 0%,#141a3d 52%,#080a1a 100%); }
.agent-detail-view--teach-plan { --accent: #10b981; --accent-rgb: 16,185,129; --brand-a: #10b981; --brand-b: #6ee7b7; --detail-bg: linear-gradient(160deg,#04140f 0%,#082419 52%,#03100b 100%); }
.agent-detail-view--picture-book { --accent: #f472b6; --accent-rgb: 244,114,182; --brand-a: #f472b6; --brand-b: #fbcfe8; --detail-bg: linear-gradient(160deg,#1d0a17 0%,#2d1024 52%,#150711 100%); }
.agent-detail-view--video-plan { --accent: #f97316; --accent-rgb: 249,115,22; --brand-a: #f97316; --brand-b: #fdba74; --detail-bg: linear-gradient(160deg,#1a0c04 0%,#2a1508 52%,#120902 100%); }

/* --- 卡片封面（暂无实拍图，用品牌渐变兜底） --- */
.agent-card.agent-card--wx-article { background-image: url('../img/agent-wx-article.jpg'), linear-gradient(140deg,#065f46 0%,#059669 45%,#34d399 100%); background-position: center 30%, center; }
.agent-card.agent-card--stock-report { background-image: url('../img/agent-stock-report.jpg'), linear-gradient(140deg,#1e3a8a 0%,#2563eb 45%,#60a5fa 100%); background-position: center 30%, center; }
.agent-card.agent-card--novel { background-image: url('../img/agent-novel.jpg'), linear-gradient(140deg,#4c1d95 0%,#7c3aed 45%,#c4b5fd 100%); background-position: center 35%, center; }
.agent-card.agent-card--script { background-image: url('../img/agent-script.jpg'), linear-gradient(140deg,#78350f 0%,#d97706 45%,#fbbf24 100%); background-position: center 30%, center; }
.agent-card.agent-card--biz-doc { background-image: url('../img/agent-biz-doc.jpg'), linear-gradient(140deg,#312e81 0%,#4f46e5 45%,#a5b4fc 100%); background-position: center 30%, center; }
.agent-card.agent-card--teach-plan { background-image: url('../img/agent-teach-plan.jpg'), linear-gradient(140deg,#064e3b 0%,#059669 45%,#a7f3d0 100%); background-position: center 25%, center; }
.agent-card.agent-card--picture-book { background-image: url('../img/agent-picture-book.jpg'), linear-gradient(140deg,#831843 0%,#db2777 45%,#fbcfe8 100%); background-position: center 30%, center; }
.agent-card.agent-card--video-plan { background-image: url('../img/agent-video-plan.jpg'), linear-gradient(140deg,#7c2d12 0%,#ea580c 45%,#fdba74 100%); background-position: center 30%, center; }

/* --- 文档产物卡 --- */
.dp-doc { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.25); overflow: hidden; }
.dp-doc.is-busy { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25); }
.dp-doc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.dp-doc-title { font-size: 13px; font-weight: 700; color: var(--text-primary, #fff); }
.dp-doc-meta { font-size: 11px; color: var(--text-tertiary, rgba(255,255,255,.45)); }
.dp-doc-head .vp-spacer { flex: 1; }
.dp-btn {
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--text-secondary, rgba(255,255,255,.8));
  border-radius: 7px; padding: 3px 10px; font-size: 11px; cursor: pointer; transition: .15s;
}
.dp-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.dp-btn.primary { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.dp-btn.primary:hover { background: rgba(var(--accent-rgb), .32); }
.dp-doc-body {
  padding: 14px 16px; font-size: 13px; line-height: 1.85; color: var(--text-secondary, rgba(255,255,255,.82));
  max-height: 460px; overflow-y: auto; word-break: break-word;
}
.dp-doc-body.is-fold { display: none; }
.dp-doc-body h1, .dp-doc-body h2, .dp-doc-body h3 { color: #fff; margin: 14px 0 8px; font-weight: 700; }
.dp-doc-body h1 { font-size: 16px; } .dp-doc-body h2 { font-size: 15px; } .dp-doc-body h3 { font-size: 14px; }
.dp-doc-body p { margin: 8px 0; }
.dp-doc-body ul, .dp-doc-body ol { margin: 8px 0 8px 20px; }
.dp-doc-body li { margin: 4px 0; }
.dp-doc-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.dp-doc-body th, .dp-doc-body td { border: 1px solid rgba(255,255,255,.14); padding: 6px 8px; text-align: left; vertical-align: top; }
.dp-doc-body th { background: rgba(255,255,255,.06); color: #fff; }
.dp-doc-body blockquote { margin: 8px 0; padding-left: 10px; border-left: 3px solid rgba(var(--accent-rgb), .6); color: var(--text-tertiary, rgba(255,255,255,.6)); }
.dp-doc-body code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.dp-doc-body strong { color: #fff; }
.dp-doc-body hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 16px 0; }

/* --- 全文合并条 --- */
.dp-merge { border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); border-radius: 12px; padding: 14px 16px; }
.dp-merge-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.dp-merge-bar { display: flex; gap: 10px; }
.vp-result .vp-group { display: block; }
.vp-result { gap: 14px; }

/* ============================================================
   r306 个人中心功能卡（个人中心 12 卡 + 退出登录）
   ============================================================ */
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-bg, rgba(255,255,255,.04));
  border: 1px solid var(--panel-border, rgba(255,255,255,.08));
  border-left: 3px solid var(--mc, #f59e0b);
  border-radius: 12px; padding: 14px 14px;
  cursor: pointer; transition: transform .15s, border-color .15s, background .15s;
}
.mc-item:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb,63,212,131), .4); background: rgba(255,255,255,.06); }
.mc-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--mc-bg, #fef3c7);
  color: var(--mc, #f59e0b);   /* r372：emoji 图标改为线框 SVG，取卡片主色 */
}
.mc-icon svg { width: 23px; height: 23px; display: block; }
.mc-txt { min-width: 0; }
.mc-title { font-size: 14px; font-weight: 700; color: var(--text-primary, #fff); line-height: 1.35; }
.mc-desc { font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,.5)); margin-top: 2px; line-height: 1.5; }
.mc-logout {
  width: 100%; margin-top: 14px; padding: 13px 0;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  color: #f87171; background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.25);
  transition: background .15s;
}
.mc-logout:hover { background: rgba(248,113,113,.2); }

/* --- 弹层内组件 --- */
.mc-m-sub { font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); margin: 10px 0 0; line-height: 1.7; }
.mc-key-card { background: var(--panel-bg, rgba(255,255,255,.04)); border: 1px solid var(--panel-border, rgba(255,255,255,.08)); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mc-key-row { display: flex; align-items: center; gap: 12px; }
.mc-key-label { flex: 0 0 64px; font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-key-val { font-family: var(--ff-mono, monospace); font-size: 12px; color: var(--text-1, #fff); word-break: break-all; }
.mc-key-val.shown { color: #4ade80; }
.mc-key-meta { font-size: 12px; color: var(--text-2, rgba(255,255,255,.7)); }
.mc-key-ok { font-size: 12px; color: #4ade80; }
.mc-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mc-btn { flex: 1 1 auto; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--panel-border, rgba(255,255,255,.14)); background: rgba(255,255,255,.05); color: var(--text-1, #fff); font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.mc-btn:hover { background: rgba(255,255,255,.1); }
.mc-btn.primary { background: var(--accent, #3ed483); border-color: transparent; color: #06281a; font-weight: 700; }
.mc-btn.primary:hover { filter: brightness(1.08); }
.mc-btn.danger { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.35); color: #f87171; font-weight: 700; }
.mc-benefits { display: flex; flex-direction: column; gap: 10px; }
.mc-benefit { display: flex; gap: 12px; align-items: flex-start; background: var(--panel-bg, rgba(255,255,255,.04)); border: 1px solid var(--panel-border, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 14px; }
.mc-b-ic { font-size: 20px; flex: 0 0 auto; }
.mc-benefit strong { display: block; font-size: 13px; color: var(--text-1, #fff); }
.mc-benefit span { font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-bal-card { display: flex; justify-content: space-between; align-items: center; background: rgba(var(--accent-rgb,63,212,131), .1); border: 1px solid rgba(var(--accent-rgb,63,212,131), .3); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-2, rgba(255,255,255,.75)); }
.mc-bal-card strong { font-size: 20px; color: var(--accent, #3ed483); }
.mc-amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mc-amt { text-align: center; padding: 12px 0; border-radius: 10px; border: 1px solid var(--panel-border, rgba(255,255,255,.12)); background: rgba(255,255,255,.04); color: var(--text-1, #fff); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.mc-amt:hover { border-color: rgba(var(--accent-rgb,63,212,131), .5); }
.mc-amt.sel { border-color: var(--accent, #3ed483); background: rgba(var(--accent-rgb,63,212,131), .14); color: var(--accent, #3ed483); }
.mc-pay-row { display: flex; gap: 10px; }
.mc-pay-opt { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--panel-border, rgba(255,255,255,.12)); font-size: 13px; color: var(--text-2, rgba(255,255,255,.7)); cursor: pointer; }
.mc-pay-opt.sel { border-color: var(--accent, #3ed483); color: var(--accent, #3ed483); background: rgba(var(--accent-rgb,63,212,131), .1); }
.mc-team-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mc-team-cell { text-align: center; background: var(--panel-bg, rgba(255,255,255,.04)); border: 1px solid var(--panel-border, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 0; }
.mc-team-cell strong { display: block; font-size: 18px; color: var(--text-1, #fff); }
.mc-team-cell span { font-size: 11px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-empty { text-align: center; padding: 26px 10px 10px; }
.mc-empty-ic { font-size: 34px; margin-bottom: 8px; }
.mc-empty p { font-size: 14px; font-weight: 600; color: var(--text-2, rgba(255,255,255,.75)); margin: 0 0 6px; }
.mc-empty span { font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); line-height: 1.7; }
.mc-sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mc-sum-cell { background: var(--panel-bg, rgba(255,255,255,.04)); border: 1px solid var(--panel-border, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 14px; }
.mc-sum-cell strong { display: block; font-size: 18px; color: var(--text-1, #fff); }
.mc-sum-cell span { font-size: 11px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-list-title { font-size: 12px; font-weight: 600; color: var(--text-2, rgba(255,255,255,.7)); margin-bottom: 8px; }
.mc-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.mc-li { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel-bg, rgba(255,255,255,.03)); }
.mc-li-ic { flex: 0 0 auto; }
.mc-li-name { flex: 0 0 auto; color: var(--text-1, #fff); font-weight: 600; }
.mc-li-time { flex: 1 1 auto; color: var(--text-3, rgba(255,255,255,.5)); font-family: var(--ff-mono, monospace); }
.mc-li-st { flex: 0 0 auto; font-size: 11px; }
.mc-li-st.ok { color: #4ade80; }
.mc-li-st.bad { color: #f87171; }
.mc-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.mc-step { display: flex; gap: 12px; align-items: flex-start; }
.mc-step b { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(var(--accent-rgb,63,212,131), .2); color: var(--accent, #3ed483); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.mc-step strong { display: block; font-size: 13px; color: var(--text-1, #fff); }
.mc-step span { font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-svc { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.mc-svc-row { display: flex; gap: 14px; font-size: 13px; }
.mc-svc-k { flex: 0 0 64px; color: var(--text-3, rgba(255,255,255,.5)); font-size: 12px; }
.mc-faq { display: flex; flex-direction: column; gap: 10px; }
.mc-faq-q { display: flex; gap: 10px; background: var(--panel-bg, rgba(255,255,255,.04)); border: 1px solid var(--panel-border, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 14px; }
.mc-faq-q b { flex: 0 0 auto; color: var(--accent, #3ed483); font-size: 13px; }
.mc-faq-q strong { display: block; font-size: 13px; color: var(--text-1, #fff); margin-bottom: 3px; }
.mc-faq-q span { font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); line-height: 1.7; }
.mc-doc p { font-size: 12.5px; color: var(--text-2, rgba(255,255,255,.75)); line-height: 1.9; margin: 0 0 10px; }
.mc-doc b { color: var(--text-1, #fff); }
.modal.modal-small { max-width: 360px; }

/* --- r307 站内收银台（扫码支付） --- */
.mc-qr-wrap { position: relative; width: 208px; height: 208px; margin: 6px auto 10px; background: #fff; border-radius: 12px; padding: 10px; overflow: hidden; }
.mc-qr { position: relative; width: 100%; height: 100%; background: #fff; }
.mc-qr i { position: absolute; width: 8%; height: 8%; background: #111; }
.mc-qr b { position: absolute; width: 26%; height: 26%; background: #111; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.mc-qr b u { width: 55%; height: 55%; background: #fff; border-radius: 2px; display: block; }
.mc-qr-scan { position: absolute; left: 10px; right: 10px; height: 3px; background: linear-gradient(90deg, transparent, #10b981, transparent); animation: mcScan 2.2s linear infinite; }
@keyframes mcScan { 0% { top: 12%; opacity: .2; } 50% { opacity: 1; } 100% { top: 88%; opacity: .2; } }
.mc-qr-amt { text-align: center; font-size: 13px; color: var(--text-3, rgba(255,255,255,.5)); }
.mc-qr-amt strong { font-size: 22px; color: var(--text-1, #fff); margin-left: 6px; }
.mc-qr-tip { text-align: center; font-size: 12px; color: var(--text-2, rgba(255,255,255,.7)); margin-top: 4px; }
.mc-qr-count { text-align: center; font-size: 12px; color: #f59e0b; margin-top: 6px; font-family: var(--ff-mono, monospace); }
.mc-svc-wx { display: none; margin-top: 12px; }
.mc-svc-wx.open { display: block; }
.mc-svc-wx-head { background: rgba(var(--accent-rgb,63,212,131), .1); border: 1px solid rgba(var(--accent-rgb,63,212,131), .3); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--accent, #3ed483); text-align: center; }

/* ============================================================
   r308 充值 10 档次（深色，截图版式）
   ============================================================ */
.mc-tier-label { font-size: 13px; color: var(--text-secondary, rgba(255,255,255,.75)); margin: 4px 0 10px; font-weight: 600; }
.mc-tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.mc-tier { position: relative; border: 1px solid var(--panel-border, rgba(255,255,255,.12)); border-radius: 12px; padding: 12px 10px 10px; cursor: pointer; text-align: center; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.mc-tier:hover { border-color: rgba(62,212,131,.45); }
.mc-tier.sel { border-color: #3ed483; background: rgba(62,212,131,.08); }
.mc-tier-bolt { font-size: 13px; opacity: .7; }
.mc-tier-check { position: absolute; top: 7px; right: 7px; width: 17px; height: 17px; border-radius: 50%; background: #3ed483; color: #06281a; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mc-tier-amt { font-size: 19px; font-weight: 800; color: var(--text-primary, #fff); margin: 5px 0 8px; }
.mc-tier-get { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: 7px; font-size: 11px; color: var(--text-tertiary, rgba(255,255,255,.5)); }
.mc-tier-get i { font-style: normal; color: #facc15; font-weight: 700; }
.mc-ch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mc-ch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--panel-border, rgba(255,255,255,.12)); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text-primary, #fff); font-size: 14px; font-weight: 600; }
.mc-ch.sel { border-color: #3ed483; background: rgba(62,212,131,.07); }
.mc-ch-ic { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mc-ch-ic.wx { background: #22c55e; }
.mc-ch-ic.ali { background: #1677ff; color: #fff; font-weight: 800; }
.mc-ch-radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); position: relative; }
.mc-ch.sel .mc-ch-radio { border-color: #3ed483; }
.mc-ch.sel .mc-ch-radio::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: #3ed483; }
.mc-ch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-ch-btns .mc-btn { padding: 12px 0; font-size: 14px; }

/* ============================================================
   r308 浅色弹层体系（收银台 / 消费记录 / 发票 / 客服）
   ============================================================ */
.mc-light { background: #f5f6f8; margin: calc(var(--sp-6, 24px) * -1); padding: var(--sp-6, 24px); border-radius: var(--r-xl, 16px); color: #1f2329; }
.mc-light-center { text-align: center; padding-bottom: 10px; }
.mcl-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: none; background: #eceef1; color: #4e5969; font-size: 14px; cursor: pointer; }
.mcl-x:hover { background: #e2e5e9; }
.mcl-pay-ic { width: 44px; height: 44px; border-radius: 10px; margin: 6px auto 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mcl-pay-ic.wx { background: #e8f7ef; }
.mcl-pay-ic.ali-big { background: #1677ff; color: #fff; font-weight: 800; font-size: 20px; border-radius: 50%; }
.mcl-pay-title { font-size: 20px; font-weight: 800; color: #17181a; }
.mcl-pay-strong { font-size: 17px; font-weight: 800; color: #17181a; margin: 8px 0 4px; }
.mcl-pay-sub { font-size: 13px; color: #86909c; margin-top: 6px; }
.mcl-qr-card { width: 232px; height: 232px; margin: 20px auto 12px; background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.08); padding: 14px; }
.mcl-qr { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; }
.mcl-qr i { position: absolute; width: 8%; height: 8%; background: #111; }
.mcl-qr b { position: absolute; width: 26%; height: 26%; background: #111; border-radius: 3px; }
.mcl-qr b::after { content: ''; position: absolute; inset: 28%; background: #fff; display: block; }
.mcl-qr-logo { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 8px; background: #22c55e; color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.mcl-qr-tip { font-size: 13px; color: #4e5969; margin: 8px 0 14px; }
.mcl-order { background: #e8eaee; border-radius: 12px; padding: 12px 16px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.mcl-order-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; color: #86909c; }
.mcl-order-row b { font-weight: 600; color: #1f2329; font-size: 12.5px; word-break: break-all; font-family: ui-monospace, monospace; }
.mcl-order-row .mcl-amt { color: #12aab5; font-size: 15px; font-weight: 800; }
.mcl-foot { font-size: 12px; color: #86909c; margin-top: 14px; }
.mcl-clock { width: 86px; height: 86px; border-radius: 50%; background: #e3edff; display: flex; align-items: center; justify-content: center; margin: 18px auto; }
.mcl-clock span { width: 58px; height: 58px; border-radius: 50%; background: #1677ff; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.mcl-detect { background: #e3edff; color: #2f6bff; border-radius: 10px; padding: 11px 0; font-size: 13px; margin: 14px 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mcl-dot { width: 7px; height: 7px; border-radius: 50%; background: #2f6bff; animation: mclBlink 1.2s ease infinite; }
@keyframes mclBlink { 50% { opacity: .25; } }
.mcl-btn-line { display: block; width: 100%; padding: 11px 0; border-radius: 10px; border: 1px solid #bcd0ff; background: #eef3ff; color: #2f6bff; font-size: 13.5px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.mcl-btn-line:hover { background: #e2ebff; }
.mcl-btn-green { display: block; width: 100%; padding: 13px 0; border-radius: 12px; border: none; background: #0da96c; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 14px; }
.mcl-btn-green:hover { background: #0c9a62; }

/* --- 客服 --- */
.mcl-svc-head { display: flex; align-items: center; gap: 12px; text-align: left; padding-bottom: 14px; border-bottom: 1px solid #eceef1; margin-bottom: 16px; }
.mcl-svc-ic { width: 42px; height: 42px; border-radius: 12px; background: #e0f5ec; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mcl-svc-head strong { display: block; font-size: 17px; color: #17181a; }
.mcl-svc-head span { font-size: 12px; color: #86909c; }
.mcl-svc-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 14px auto 12px; border: 3px solid #d9efe4; padding: 3px; }
.mcl-svc-avatar span { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(140deg,#bfe9d6,#5cc492); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.mcl-svc-badge { display: inline-flex; align-items: center; gap: 6px; background: #e8f7ef; color: #0da96c; border: 1px solid #bfe7d4; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; margin: 2px 0 10px; }
.mcl-svc-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.mcl-svc-qr { width: 216px; height: 216px; margin: 10px auto 4px; background: #fff; border: 1px solid #eceef1; border-radius: 14px; padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }

/* --- 消费记录工作台 --- */
.mcl-cons-head { display: flex; align-items: center; gap: 12px; }
.mcl-cons-tt { display: flex; align-items: center; gap: 12px; flex: 1; }
.mcl-cons-ic { width: 42px; height: 42px; border-radius: 12px; background: #e0f5ec; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #0da96c; flex: 0 0 42px; }
.mcl-cons-ic svg { width: 22px; height: 22px; display: block; }
.mcl-cons-tt strong { display: block; font-size: 18px; color: #17181a; }
.mcl-cons-tt span { font-size: 12px; color: #86909c; }
.mcl-tabs { display: flex; gap: 22px; border-bottom: 1px solid #eceef1; margin: 14px 0 0; }
.mcl-tabs span { padding: 9px 2px; font-size: 13.5px; color: #86909c; cursor: pointer; border-bottom: 2px solid transparent; }
.mcl-tabs span.active { color: #0da96c; font-weight: 700; border-bottom-color: #0da96c; }
.mcl-notice { background: #fdf3e7; color: #b4763a; font-size: 12px; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.mcl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0; }
.mcl-stat { background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 12px 16px; text-align: left; }
.mcl-stat span { font-size: 12px; color: #86909c; display: flex; align-items: center; gap: 6px; }
.mcl-stat strong { display: block; font-size: 19px; color: #17181a; margin-top: 4px; }
.mcl-stat.blue { background: #eef3ff; border-color: #d9e5ff; }
.mcl-stat.blue strong { color: #2f6bff; }
.mcl-dot-g { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.mcl-dot-y { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.mcl-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.mcl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mcl-chip { padding: 6px 14px; border-radius: 8px; font-size: 12.5px; color: #4e5969; background: #fff; border: 1px solid #eceef1; cursor: pointer; }
.mcl-chip.active { background: #e0f5ec; color: #0da96c; border-color: #bfe7d4; font-weight: 700; }
.mcl-ghost-btn { padding: 7px 13px; border-radius: 8px; border: 1px solid #e5e6eb; background: #fff; color: #4e5969; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.mcl-ghost-btn:hover { border-color: #c9cdd4; }
.mcl-ghost-btn.on { color: #0da96c; border-color: #bfe7d4; background: #e8f7ef; }
.mcl-ghost-btn.sm { padding: 4px 10px; font-size: 12px; }
/* r369h 自定义日期范围行（消费记录弹层） */
.mcl-custom-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; border: 1px dashed #e5e6eb; border-radius: 8px; background: #fafbfc; }
.mcl-custom-range label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4e5969; }
.mcl-custom-range input[type="date"] { padding: 6px 10px; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 12.5px; color: #1d2129; background: #fff; }
.mcl-custom-tip { font-size: 11.5px; color: #86909c; }
.mcl-filters2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mcl-sel { padding: 7px 10px; border-radius: 8px; border: 1px solid #e5e6eb; background: #fff; font-size: 12.5px; color: #4e5969; outline: none; }
.mcl-search { padding: 7px 12px; border-radius: 8px; border: 1px solid #e5e6eb; background: #fff; font-size: 12.5px; color: #1f2329; width: 170px; outline: none; }
.mcl-search:focus { border-color: #bfe7d4; }
.mcl-table-wrap { background: #fff; border: 1px solid #eceef1; border-radius: 12px; overflow: auto; max-height: 420px; }
.mcl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
.mcl-table th { text-align: left; padding: 11px 14px; color: #86909c; font-weight: 600; border-bottom: 1px solid #f0f1f3; background: #fafbfc; position: sticky; top: 0; white-space: nowrap; }
.mcl-table td { padding: 11px 14px; border-bottom: 1px solid #f5f6f8; color: #1f2329; white-space: nowrap; }
.mcl-table tr:hover td { background: #f7fbf9; }
.mcl-td-model { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mcl-m-ic { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #0d5c46 0 40%, #17c98b 41% 60%, #0d5c46 61%); flex: 0 0 auto; }
.mcl-ch-tag { background: #f0eaff; color: #7c5cd6; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; }
.mcl-st { font-size: 12px; }
.mcl-st.ok { color: #0da96c; }
.mcl-st.rf { color: #f59e0b; }
.mcl-td-cost { color: #0da96c; font-weight: 700; }
.mcl-td-io { color: #4e5969; }
.mcl-td-io em { display: block; font-style: normal; font-size: 11px; color: #86909c; }
.mcl-more { text-align: center; font-size: 12px; color: #86909c; padding: 10px 0 2px; }

/* --- 柱状图 --- */
.mcl-chart-bar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.mcl-chart-note { font-size: 12px; color: #86909c; }
.mcl-chart { background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 14px 16px; }
.mcl-chart-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #86909c; margin-bottom: 8px; }
.mcl-legend { display: flex; align-items: center; gap: 14px; }
.mcl-legend i { display: inline-block; width: 18px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.mcl-legend .lg-g { background: #5cd97e; }
.mcl-legend .lg-b { background: #6b7cfa; }
.mcl-chart-area { position: relative; height: 300px; }
.mcl-chart-grid { position: absolute; inset: 0; }
.mcl-chart-grid i { position: absolute; left: 0; right: 0; border-top: 1px dashed #f0f1f3; }
.mcl-chart-grid i em { position: absolute; left: 0; top: -7px; background: #fff; font-style: normal; font-size: 11px; color: #c9cdd4; padding-right: 6px; }
.mcl-chart-bars { position: absolute; inset: 0 0 26px 44px; display: flex; align-items: flex-end; justify-content: space-around; }
.mcl-bar-pair { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; flex: 1; }
.mcl-bars { display: flex; gap: 6px; align-items: flex-end; height: 100%; }
.mcl-bars i { width: 46px; border-radius: 4px 4px 0 0; }
.mcl-bars .g { background: #5cd97e; }
.mcl-bars .b { background: #6b7cfa; }
.mcl-bar-x { position: absolute; bottom: -24px; font-size: 12px; color: #4e5969; }
.mcl-chart-empty { text-align: center; padding: 40px 0; background: #fff; border: 1px solid #eceef1; border-radius: 12px; }
.mcl-chart-empty p { font-size: 14px; font-weight: 600; color: #4e5969; }

/* --- 发票 / 抬头 / 申请开票 --- */
.mcl-inv-btns { display: flex; gap: 10px; }
/* ★ r463：操作按钮区与上方表单之间的间距。原来没有规则 → margin 为 0，
   「主体类型」最后一个按钮（企业）会与「保存抬头」贴死，12 个像素都不到。 */
.mcl-btns { margin-top: 20px; }
/* ★ r463：📒/⚙/📄 等彩色 emoji 换成 SVG 线框图标后，图标与同行文字的基线与水平间距
   （.mcl-cons-ic 里的图标由 .mcl-cons-ic svg 统一成 22px 块级，不在此列）。 */
.mcl-inv-btns svg, .mcl-quota-lite span svg, .mcl-quota-lite button svg { vertical-align: -.16em; margin-right: 4px; }
.mcl-btn-blue { padding: 9px 18px; border-radius: 9px; border: none; background: #2f6bff; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mcl-btn-blue:hover { background: #2560f0; }
.mcl-btn-blue.wide { width: 100%; padding: 12px 0; font-size: 14px; }
.mcl-inv-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mcl-inv-li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 12px 16px; }
.mcl-inv-li > div { flex: 1; min-width: 0; }
.mcl-inv-li strong { display: block; font-size: 13.5px; color: #17181a; }
.mcl-inv-li span { font-size: 12px; color: #86909c; }
.mcl-inv-li b { font-size: 15px; color: #17181a; }
.mcl-inv-st { color: #f59e0b !important; font-weight: 600; }
.mcl-empty { text-align: center; padding: 44px 10px 26px; }
.mcl-empty-ic { font-size: 40px; opacity: .8; margin-bottom: 10px; }
.mcl-empty p { font-size: 14.5px; font-weight: 700; color: #4e5969; margin: 0 0 8px; }
.mcl-empty span { font-size: 12.5px; color: #86909c; }
.mcl-titles-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eceef1; padding-top: 14px; margin-top: 8px; font-size: 12.5px; color: #86909c; }
.mcl-quota { display: flex; align-items: center; justify-content: space-between; background: #eef3ff; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.mcl-quota strong { display: block; font-size: 15px; color: #17181a; }
.mcl-quota span { font-size: 12px; color: #86909c; }
.mcl-quota b { font-size: 24px; color: #2f6bff; }
.mcl-quota-lite { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 13px 18px; margin-bottom: 14px; }
.mcl-quota-lite span { font-size: 13.5px; font-weight: 700; color: #17181a; }
.mcl-quota-lite em { font-style: normal; font-size: 11.5px; color: #86909c; flex: 1; text-align: right; }
.mcl-form { margin-top: 4px; }
.mcl-flabel { font-size: 13.5px; font-weight: 700; color: #17181a; margin: 12px 0 8px; }
.mcl-owner-row, .mcl-kind-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mcl-kind-row { grid-template-columns: 1fr 1fr; }
.mcl-owner, .mcl-kind { padding: 11px 0; border-radius: 10px; border: 1px solid #e5e6eb; background: #fff; color: #4e5969; font-size: 13.5px; cursor: pointer; }
.mcl-owner.sel, .mcl-kind.sel { border-color: #2f6bff; color: #2f6bff; background: #eef3ff; font-weight: 700; }
.mcl-kind.disabled { opacity: .45; cursor: not-allowed; }
.mcl-kind-warn { color: #e54d42; font-size: 12px; margin-top: 8px; }
.mcl-frow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mcl-frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mcl-fcol { display: flex; flex-direction: column; gap: 6px; }
.mcl-fcol label { font-size: 12.5px; color: #4e5969; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mcl-fcol label i, .mcl-frow label i { color: #e54d42; font-style: normal; }
.mcl-fcol input, .mcl-frow input, .mcl-area { padding: 10px 14px; border-radius: 10px; border: 1px solid #e5e6eb; background: #fff; font-size: 13px; color: #1f2329; outline: none; font-family: inherit; }
.mcl-fcol input:focus, .mcl-frow input:focus, .mcl-area:focus { border-color: #2f6bff; }
.mcl-area { min-height: 74px; resize: vertical; }
.mcl-fillmax { font-size: 11px; color: #2f6bff; background: #eef3ff; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-weight: 600; }
.mcl-opt { font-style: normal; color: #c9cdd4; font-weight: 400; }
.mcl-optional { background: #fafbfc; border: 1px dashed #e5e6eb; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.mcl-optional > em { display: block; font-style: normal; font-size: 11.5px; color: #86909c; margin-bottom: 10px; }
.mcl-submit { width: 100%; padding: 13px 0; border-radius: 12px; border: none; background: #2f6bff; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.mcl-submit:hover { background: #2560f0; }
.mcl-form-err { text-align: center; color: #e54d42; font-size: 12.5px; margin-top: 10px; }

/* ============================================================
   r309 弹层配色统一为充值弹层深色系（第一张图为准）
   深墨绿面板 #141d19 / 主题绿 #3ed483 / ⚡黄 / 白文字
   ============================================================ */
.mc-light { background: transparent; margin: 0; padding: 0; border-radius: 0; color: #e8f1ec; }
/* ★ r461：给 .mcl-x 也补上同一道圆框（原来是纯实心圆、没有描边），
   让全站右上角关闭键（.modal-close / .mcl-x）看起来是同一套东西。
   border-box 下 30×30 外框不变。 */
/* ★ r467：底色 .08 → .06，与 .modal-close / .dh-modal-x / .vc-close / .login-page-close
   完全对齐（原来描边一样但底色比别家深一档，四类圆钮仍未真正成套）。 */
.mcl-x { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7); }
.mcl-x:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.mcl-pay-ic.wx { background: rgba(34,197,94,.16); }
.mcl-pay-title { color: #fff; }
.mcl-pay-strong { color: #fff; }
.mcl-pay-sub { color: rgba(255,255,255,.45); }
.mcl-qr-card { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.mcl-qr-tip { color: rgba(255,255,255,.6); }
.mcl-order { background: rgba(255,255,255,.05); }
.mcl-order-row { color: rgba(255,255,255,.45); }
.mcl-order-row b { color: #e8f1ec; }
.mcl-order-row .mcl-amt { color: #3ed483; }
.mcl-foot { color: rgba(255,255,255,.4); }
.mcl-clock { background: rgba(77,139,255,.15); }
.mcl-detect { background: rgba(77,139,255,.12); color: #7aa7ff; }
.mcl-btn-line { border: 1px solid rgba(77,139,255,.35); background: rgba(77,139,255,.1); color: #7aa7ff; }
.mcl-btn-line:hover { background: rgba(77,139,255,.18); }
.mcl-btn-green { background: #3ed483; color: #06281a; }
.mcl-btn-green:hover { background: #4ce091; }

/* --- 客服（紧凑） --- */
.mcl-svc-avatar { width: 64px; height: 64px; margin: 8px auto 8px; border: 2px solid rgba(62,212,131,.35); padding: 2px; }
.mcl-svc-avatar span { font-size: 30px; }
.mcl-svc .mcl-pay-strong { font-size: 16px; margin: 4px 0 6px; }
.mcl-svc-badge { background: rgba(62,212,131,.12); color: #3ed483; border-color: rgba(62,212,131,.3); font-size: 11.5px; padding: 4px 10px; margin: 0 0 10px; }
.mcl-svc-qr { width: 150px; height: 150px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.mcl-svc .mcl-qr-tip { margin: 6px 0 2px; }
.mcl-svc .mcl-btn-green { margin-top: 10px; padding: 11px 0; font-size: 14px; }

/* --- 消费记录 --- */
.mcl-cons-tt strong { color: #fff; }
.mcl-cons-tt span { color: rgba(255,255,255,.45); }
.mcl-cons-ic { background: rgba(62,212,131,.15); }
.mcl-tabs { border-bottom-color: rgba(255,255,255,.08); }
.mcl-tabs span { color: rgba(255,255,255,.45); }
.mcl-tabs span.active { color: #3ed483; border-bottom-color: #3ed483; }
.mcl-notice { background: rgba(245,176,77,.1); color: #f0b45c; }
.mcl-stat { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-stat span { color: rgba(255,255,255,.45); }
.mcl-stat strong { color: #fff; }
.mcl-stat.blue { background: rgba(77,139,255,.1); border-color: rgba(77,139,255,.25); }
.mcl-stat.blue strong { color: #7aa7ff; }
.mcl-chip { background: #141d19; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.mcl-chip.active { background: rgba(62,212,131,.12); color: #3ed483; border-color: rgba(62,212,131,.35); }
.mcl-ghost-btn { background: #141d19; border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.mcl-ghost-btn:hover { border-color: rgba(255,255,255,.25); }
.mcl-ghost-btn.on { color: #3ed483; border-color: rgba(62,212,131,.35); background: rgba(62,212,131,.1); }
.mcl-sel, .mcl-search { background: #141d19; border-color: rgba(255,255,255,.1); color: #e8f1ec; }
.mcl-sel { color: rgba(255,255,255,.7); }
.mcl-search::placeholder { color: rgba(255,255,255,.3); }
.mcl-search:focus { border-color: rgba(62,212,131,.5); }
.mcl-table-wrap { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-table th { color: rgba(255,255,255,.45); border-bottom-color: rgba(255,255,255,.08); background: #101814; }
.mcl-table td { color: #e8f1ec; border-bottom-color: rgba(255,255,255,.05); }
.mcl-table tr:hover td { background: rgba(62,212,131,.04); }
.mcl-ch-tag { background: rgba(124,92,214,.2); color: #b39dff; }
.mcl-st.ok { color: #3ed483; }
.mcl-td-cost { color: #3ed483; }
.mcl-td-io { color: rgba(255,255,255,.6); }
.mcl-td-io em { color: rgba(255,255,255,.35); }
.mcl-more { color: rgba(255,255,255,.4); }
.mcl-chart { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-chart-head { color: rgba(255,255,255,.45); }
.mcl-chart-grid i { border-top-color: rgba(255,255,255,.06); }
.mcl-chart-grid i em { background: #141d19; color: rgba(255,255,255,.3); }
.mcl-bars .g { background: #3ed483; }
.mcl-bar-x { color: rgba(255,255,255,.6); }
.mcl-legend .lg-g { background: #3ed483; }
.mcl-chart-empty { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-chart-empty p { color: rgba(255,255,255,.6); }
/* 展开详情：放开列宽与高度，弹层由 JS 切换为 modal-large */
.mcl-table { min-width: 0; }
.mcl-table-wrap { max-height: 62vh; }
.mcl-table td, .mcl-table th { white-space: normal; word-break: break-all; }
.mcl-table td { white-space: nowrap; }
.mcl-table th { white-space: nowrap; }

/* --- 发票 / 抬头 / 申请开票 --- */
.mcl-inv-li { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-inv-li strong { color: #fff; }
.mcl-inv-li span { color: rgba(255,255,255,.45); }
.mcl-inv-li b { color: #fff; }
.mcl-btn-blue { background: #3ed483; color: #06281a; }
.mcl-btn-blue:hover { background: #4ce091; }
.mcl-quota { background: rgba(62,212,131,.08); }
.mcl-quota strong { color: #fff; }
.mcl-quota span { color: rgba(255,255,255,.45); }
.mcl-quota b { color: #3ed483; }
.mcl-quota-lite { background: #141d19; border-color: rgba(255,255,255,.08); }
.mcl-quota-lite span { color: #fff; }
.mcl-quota-lite em { color: rgba(255,255,255,.4); }
.mcl-flabel { color: #fff; }
.mcl-fcol label { color: rgba(255,255,255,.65); }
.mcl-fcol input, .mcl-frow input, .mcl-area { background: #141d19; border-color: rgba(255,255,255,.1); color: #e8f1ec; }
.mcl-fcol input::placeholder, .mcl-frow input::placeholder, .mcl-area::placeholder { color: rgba(255,255,255,.3); }
.mcl-fcol input:focus, .mcl-frow input:focus, .mcl-area:focus { border-color: rgba(62,212,131,.5); }
.mcl-owner, .mcl-kind { background: #141d19; border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.mcl-owner.sel, .mcl-kind.sel { border-color: #3ed483; color: #3ed483; background: rgba(62,212,131,.1); }
.mcl-fillmax { color: #3ed483; background: rgba(62,212,131,.12); }
.mcl-optional { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.mcl-optional > em { color: rgba(255,255,255,.4); }
.mcl-submit { background: #3ed483; color: #06281a; }
.mcl-submit:hover { background: #4ce091; }
.mcl-form-err { color: #ff6b5e; }
.mcl-kind-warn { color: #ff6b5e; }
.mcl-empty p { color: rgba(255,255,255,.6); }
.mcl-empty span { color: rgba(255,255,255,.4); }
.mcl-titles-foot { border-top-color: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }

/* --- r310 发票状态色 + 抬头标记 --- */
.mcl-inv-st.ok { color: #3ed483 !important; }
.mcl-inv-st.bad { color: rgba(255,255,255,.4) !important; }
.mcl-inv-li .mcl-ch-tag { margin-left: 6px; }
.mcl-inv-li { gap: 8px; }

/* --- r311 客服头像真人图 + 标题行（截图版式） --- */
.mcl-svc-avatar { border: none; padding: 0; background: transparent; box-shadow: none; }
.mcl-svc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mcl-svc-head strong { color: #fff; }
.mcl-svc-head span { color: rgba(255,255,255,.5); }
.mcl-svc-ic { background: #dff3ec; }

/* --- r312 客服头像在线波纹（绿色信号扩散） --- */
.mcl-svc-avatar { position: relative; }
.mcl-svc-avatar::before,
.mcl-svc-avatar::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid #3ed483;
  animation: mcPulse 2.4s cubic-bezier(.25,.7,.4,1) infinite;
  pointer-events: none;
}
.mcl-svc-avatar::after { animation-delay: 1.2s; }
@keyframes mcPulse {
  0%   { transform: scale(.86); opacity: .9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.mcl-svc-avatar img { box-shadow: 0 0 0 3px rgba(62,212,131,.35), 0 0 14px rgba(62,212,131,.28); }

/* ============================================================
   r313 右上角语言切换（12 国语言下拉）
   ============================================================ */
.i18n-wrap { position: relative; }
.i18n-btn {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--panel-border, rgba(255,255,255,.1));
  background: var(--panel-bg, rgba(255,255,255,.04)); color: var(--text-secondary, rgba(255,255,255,.8));
  cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s;
}
.i18n-btn:hover { border-color: rgba(62,212,131,.4); background: rgba(62,212,131,.06); }
.i18n-cur { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i18n-caret { opacity: .6; }
.i18n-panel {
  /* r379：panel 挂 body（避开 .topbar backdrop-filter 的包含块），fixed + JS 按钮定位 */
  position: fixed; top: 60px; right: 16px; z-index: 2999;
  min-width: 208px; max-height: 430px; overflow-y: auto;
  background: var(--bg-pop, #16211c);
  border: 1px solid var(--panel-border, rgba(255,255,255,.1));
  border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.i18n-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.i18n-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; color: var(--text-primary, #e8f1ec); transition: background .12s;
}
.i18n-item:hover { background: rgba(62,212,131,.1); }
.i18n-item.active { background: rgba(62,212,131,.14); }
.i18n-flag { font-size: 17px; flex: 0 0 auto; }
.i18n-name { flex: 1; white-space: nowrap; }
.i18n-check { flex: 0 0 auto; color: #3ed483; opacity: 0; }
.i18n-item.active .i18n-check { opacity: 1; }

/* ============================================================
   r317 个人信息卡增强：头像上传 / 名称修改 / 账号管理展开面板
   配色沿用站点深绿色调（--accent #3ed483 / 面板 #141d19）
   ============================================================ */
.mine-avatar-wrap { position: relative; cursor: pointer; flex: 0 0 auto; border-radius: 50%; }
.mine-avatar-wrap .user-avatar {
  background-image: var(--avatar-img, none); background-size: cover; background-position: center;
  transition: filter .15s;
}
.mine-avatar-edit {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 10px; color: #06281a; background: var(--accent, #3ed483);
  opacity: 0; pointer-events: none; transition: opacity .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.mine-avatar-wrap:hover .mine-avatar-edit { opacity: 1; }
.mine-avatar-wrap:hover .user-avatar { filter: brightness(.75); }
.mine-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mine-name-edit {
  border: none; background: rgba(255,255,255,.08); color: var(--text-2, rgba(255,255,255,.7));
  width: 24px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 13px; line-height: 1;
  transition: background .15s, color .15s;
}
.mine-name-edit:hover { background: rgba(var(--accent-rgb,62,212,131), .2); color: var(--accent, #3ed483); }
.mine-account-row { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: var(--fs-sm); cursor: pointer; }
.mine-account-fold { margin-left: auto; color: var(--accent, #3ed483); font-size: var(--fs-xs); }
.mine-account-row:hover .mine-account-fold { filter: brightness(1.15); }

/* --- 展开面板 --- */
.mine-acct-panel { margin-top: 14px; border-top: 1px dashed var(--panel-border, rgba(255,255,255,.1)); padding-top: 14px; }
.ma-store {
  background: rgba(var(--accent-rgb,62,212,131), .06);
  border: 1px solid rgba(var(--accent-rgb,62,212,131), .22);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.ma-store-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ma-store-head b { font-size: 14px; color: var(--text-1, #fff); }
.ma-store-tag { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-3, rgba(255,255,255,.5)); }
.ma-store-tag.on { background: rgba(62,212,131,.14); color: var(--accent, #3ed483); }
.ma-store-desc { font-size: 12px; line-height: 1.7; color: var(--text-3, rgba(255,255,255,.5)); margin: 0 0 10px; }
.ma-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2, rgba(255,255,255,.7)); padding: 5px 0; }
.ma-row b, .ma-row span:last-child { font-weight: 600; color: var(--text-1, #fff); }
.ma-price { color: var(--accent, #3ed483) !important; }
.ma-renew { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3, rgba(255,255,255,.5)); margin: 8px 0 12px; }
.ma-switch { position: relative; display: inline-block; width: 38px; height: 21px; flex: 0 0 auto; cursor: pointer; }
.ma-switch input { opacity: 0; width: 0; height: 0; }
.ma-switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.14); transition: background .18s;
}
.ma-switch i::before {
  content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.ma-switch input:checked + i { background: var(--accent, #3ed483); }
.ma-switch input:checked + i::before { transform: translateX(17px); }
.ma-store-btn {
  width: 100%; padding: 11px 0; border: none; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #06281a;
  background: var(--accent, #3ed483); transition: filter .15s;
}
.ma-store-btn:hover { filter: brightness(1.08); }
.ma-store-btn:disabled { opacity: .45; cursor: not-allowed; }
.ma-wd-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.08));
  font-size: 13px; color: var(--text-2, rgba(255,255,255,.7));
}
.ma-wd-row b { font-size: 16px; color: var(--text-1, #fff); }
.ma-item { padding: 12px 2px; border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.06)); }
.ma-item:last-child { border-bottom: none; }
.ma-label { font-size: 12px; color: var(--text-3, rgba(255,255,255,.45)); margin-bottom: 7px; }
.ma-val-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-1, #fff); }
.ma-btn {
  padding: 6px 16px; border-radius: 9px; font-size: 12.5px; cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb,62,212,131), .4);
  background: rgba(var(--accent-rgb,62,212,131), .1); color: var(--accent, #3ed483);
  transition: background .15s;
}
.ma-btn:hover { background: rgba(var(--accent-rgb,62,212,131), .22); }

/* --- 换绑 / 绑定 / 改密弹层 --- */
.mc-acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.mc-acct-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: rgba(var(--accent-rgb,62,212,131), .14);
  border: 1px solid rgba(var(--accent-rgb,62,212,131), .3);
}
.mc-acct-head h2 { font-size: 17px; color: var(--text-1, #fff); margin: 0; flex: 1; }
.mc-cap-row { display: flex; gap: 10px; align-items: stretch; }
.mc-cap-row input { flex: 1; }
/* r319 ★裸 input（图形码/验证码/密码）没匹配到深色规则，吃到 UA 白底 + 浅字 → 看不清。
   统一补成与 .mcl-frow input 一致的深色主题，placeholder 提亮到 .55 保证可读 */
.mc-cap-row input, .mc-code-row input, .mc-pwd-wrap input {
  padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: #141d19; border: 1px solid rgba(255,255,255,.12); color: #e8f1ec;
  outline: none; font-family: inherit; box-sizing: border-box; min-width: 0;
}
.mc-cap-row input:focus, .mc-code-row input:focus, .mc-pwd-wrap input:focus { border-color: rgba(62,212,131,.5); }
.mc-cap-row input::placeholder, .mc-code-row input::placeholder, .mc-pwd-wrap input::placeholder { color: rgba(255,255,255,.55); }
.mc-cap-box {
  flex: 0 0 auto; min-width: 128px; text-align: center; user-select: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, rgba(255,255,255,.02) 6px 12px);
  font-size: 19px; font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 8px 10px;
}
.mc-cap-box em { font-style: normal; display: inline-block; }
.mc-cap-tip { font-size: 12px; color: var(--text-3, rgba(255,255,255,.45)); }
.mc-cap-tip b { color: var(--text-2, rgba(255,255,255,.75)); }
.mc-step-tag {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-1, #fff); margin: 14px 0 8px;
}
.mc-step-tag i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(var(--accent-rgb,62,212,131), .18); color: var(--accent, #3ed483);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.mc-code-row { display: flex; gap: 10px; }
.mc-code-row input { flex: 1; }
.mc-code-btn {
  flex: 0 0 auto; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb,62,212,131), .4);
  background: rgba(var(--accent-rgb,62,212,131), .1); color: var(--accent, #3ed483);
  white-space: nowrap; transition: background .15s;
}
.mc-code-btn:hover { background: rgba(var(--accent-rgb,62,212,131), .2); }
.mc-code-btn:disabled { opacity: .45; cursor: not-allowed; }
.mc-pwd-wrap { position: relative; }
.mc-pwd-wrap input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.mc-pwd-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: 15px;
  color: var(--text-3, rgba(255,255,255,.5));
}
.mc-form-err { color: #ff6b5e; font-size: 12px; min-height: 16px; margin-top: 8px; text-align: center; }

/* --- r318 头像选择弹层：24 预设星座头像 + 本地上传 --- */
.modal.mc-av-modal { max-width: 560px; }
.mc-av-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  margin-top: 16px; justify-items: center;
}
.mc-av-item {
  position: relative; width: 68px; height: 68px; border-radius: 50%;
  cursor: pointer; overflow: hidden; border: 2px solid transparent;
  outline: 1px solid rgba(255,255,255,.1);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.mc-av-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mc-av-item:hover { transform: scale(1.08); }
.mc-av-item.cur {
  border-color: var(--accent, #3ed483);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb,62,212,131), .28);
}
.mc-av-item.cur i {
  position: absolute; right: 1px; bottom: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent, #3ed483); color: #06281a; font-style: normal;
  font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.mc-av-item.mc-av-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1.5px dashed rgba(var(--accent-rgb,62,212,131), .55);
  background: rgba(var(--accent-rgb,62,212,131), .08);
  outline: none; border-radius: 16px; overflow: hidden;
}
.mc-av-item.mc-av-upload span { font-size: 19px; line-height: 1; }
.mc-av-item.mc-av-upload em {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--accent, #3ed483); white-space: nowrap;
}
.mc-av-item.mc-av-upload:hover { background: rgba(var(--accent-rgb,62,212,131), .18); }
@media (max-width: 640px) { .mc-av-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   r332 侧栏左下角用户卡（资料/余额 + 充值入口）
   ============================================================ */
.sb-user { display: flex; align-items: stretch; gap: 6px; margin: auto 0 13px; flex: 0 0 auto; min-width: 0; }
.sbu-main {
  flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 5px;
  padding: 7px 8px; border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(126,232,155,.14);
  cursor: pointer; transition: background .15s;
}
.sbu-main:hover { background: rgba(255,255,255,.085); }
.sbu-avatar {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: rgba(62,212,131,.12);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: #3ed483; font-weight: 700; font-size: 15px;
  box-shadow: 0 0 10px rgba(62,212,131,.22);
}
.sbu-meta { flex: 1; min-width: 0; overflow: hidden; }
.sbu-name { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbu-bal { font-size: 11px; color: #facc15; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbu-arrow { color: rgba(255,255,255,.35); flex: 0 0 10px; width: 10px; }
.sbu-topup {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 9px; border-radius: 14px;
  border: 1px solid rgba(126,232,155,.2);
  background: linear-gradient(135deg, rgba(62,212,131,.17), rgba(62,212,131,.06));
  color: #eafff3; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: filter .15s, background .15s;
}
.sbu-topup svg { width: 15px; height: 15px; flex: 0 0 15px; }
.sbu-topup:hover { filter: brightness(1.25); background: linear-gradient(135deg, rgba(62,212,131,.26), rgba(62,212,131,.1)); }

/* r332 充值弹层：双 Tab + 档次卡（对齐设计稿） */
.mc-tp-tabs { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 2px 0 16px; }
.mc-tp-tab { padding: 10px 2px; font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.45); cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s; }
.mc-tp-tab:hover { color: rgba(255,255,255,.75); }
.mc-tp-tab.on { color: #3ed483; border-color: #3ed483; }
.mc-tier-bolt {
  position: absolute; top: 10px; left: 10px; width: 24px; height: 24px;
  border-radius: 7px; background: rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: 1;
}
.mc-tier-amt { display: flex; align-items: flex-start; justify-content: center; font-size: 21px; font-weight: 800; color: var(--text-primary, #fff); margin: 6px 0 9px; }
.mc-tier-amt i { font-style: normal; font-size: 12.5px; font-weight: 700; margin: 3px 3px 0 0; }
.mc-rd-row { display: flex; gap: 10px; margin-bottom: 12px; }
.mc-rd-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--text-primary, #fff); font-size: 14px; outline: none;
}
.mc-rd-row input:focus { border-color: rgba(62,212,131,.5); }

/* ============================================================
   r334 首页 logo 能量特效：顺时针自转时周边扫出能量流 + 中心能量核脉冲
   （halo 与 logo 同 30s 同步旋转；core 3.75s = 30s/8，每圈 8 次脉冲）
   ============================================================ */
.eye-energy { position: absolute; inset: 0; }
.eye-energy .big-eye { position: relative; z-index: 2; }
.ee-halo {
  position: absolute; inset: -9%; z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 288deg,
    rgba(62,212,131,0.06) 310deg, rgba(126,232,155,0.55) 342deg,
    rgba(220,255,235,0.9) 356deg, transparent 360deg);
  filter: blur(6px);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 62%, #000 78%, transparent 88%);
          mask: radial-gradient(circle, transparent 55%, #000 62%, #000 78%, transparent 88%);
  animation: ee-sweep 30s linear infinite;
  opacity: .9;
}
.ee-ring {
  position: absolute; inset: -4.5%; z-index: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(126,232,155,0.28);
  border-top-color: rgba(126,232,155,0.85);
  border-right-color: rgba(126,232,155,0.1);
  animation: ee-sweep 8s linear infinite, ee-breathe 3.75s ease-in-out infinite;
}
.ee-core {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 46%; height: 46%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,255,220,0.85) 0%, rgba(126,232,155,0.5) 30%, rgba(62,212,131,0.18) 55%, transparent 70%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: ee-core 3.75s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ee-sweep { to { transform: rotate(360deg); } }
@keyframes ee-core {
  0%, 100% { opacity: .35; transform: translate(-50%,-50%) scale(.72); }
  50%      { opacity: .95; transform: translate(-50%,-50%) scale(1.08); }
}
@keyframes ee-breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ============================================================
   r335 首页机器人 logo：周边轨道能量流（3D 透视双环反向旋转）
   + 底部能量盘（conic 循环光）+ 外扩涟漪，logo 本体不旋转
   ============================================================ */
.eye-energy-robot .big-eye-robot {
  position: absolute; left: 50%; top: 50%;
  width: 98%; height: auto;
  object-fit: contain; border-radius: 0;
  transform: translate(-50%, -50%);
  animation: none;
  filter: drop-shadow(0 12px 22px rgba(62,212,131,0.3));
  z-index: 2;
}
.er-orbit {
  position: absolute; left: 50%; top: 38%;
  width: 272px; height: 272px;
  margin: -136px 0 0 -136px;
  border-radius: 50%;
  transform: rotateX(69deg);
  z-index: 1;
  pointer-events: none;
}
.er-orbit::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(126,232,155,0.30);
}
.er-orbit::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border-top: 3px solid rgba(190,255,220,0.9);
  border-right: 3px solid rgba(126,232,155,0.35);
  filter: drop-shadow(0 0 6px rgba(126,232,155,0.8));
  animation: er-spin 5.6s linear infinite;
}
.er-orbit2 {
  width: 316px; height: 316px;
  margin: -158px 0 0 -158px;
  transform: rotateX(73deg) rotateZ(120deg);
}
.er-orbit2::before { border-color: rgba(126,232,155,0.16); }
.er-orbit2::after {
  border-top-color: rgba(126,232,155,0.75);
  animation: er-spin-r 8.5s linear infinite;
}
@keyframes er-spin { to { transform: rotate(360deg); } }
@keyframes er-spin-r { to { transform: rotate(-360deg); } }
.eb-glow {
  position: absolute; left: 50%; top: 63%;
  width: 52%; height: 15%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(62,212,131,0.4) 0%, rgba(62,212,131,0.1) 55%, transparent 75%);
  filter: blur(6px); z-index: 1;
  animation: eb-pulse 3.75s ease-in-out infinite;
}
@keyframes eb-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.eb-disc {
  position: absolute; left: 50%; top: 63%;
  width: 42%; height: 10%;
  transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden; z-index: 1;
  -webkit-mask: radial-gradient(ellipse at center, #000 55%, rgba(0,0,0,.55) 74%, transparent 88%);
          mask: radial-gradient(ellipse at center, #000 55%, rgba(0,0,0,.55) 74%, transparent 88%);
  pointer-events: none;
}
.eb-disc::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 240%; padding-top: 240%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 108deg,
    rgba(62,212,131,0.08) 160deg, rgba(126,232,155,0.85) 258deg,
    rgba(220,255,235,0.95) 306deg, transparent 360deg);
  animation: er-spin 2.8s linear infinite;
}
.eb-ripple {
  position: absolute; left: 50%; top: 63%;
  width: 30%; height: 7%;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1.5px solid rgba(126,232,155,0.6);
  z-index: 1;
  animation: eb-rip 2.4s ease-out infinite;
  pointer-events: none;
}
.eb-ripple2 { animation-delay: 1.2s; }
@keyframes eb-rip {
  0%   { opacity: .85; transform: translate(-50%, -50%) scale(.45); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.75); }
}
/* r336 完整机器人 logo（含图内文字）：标题下移让位，不再叠图 */
.home-hero:has(.eye-energy-robot) .home-hero-text { margin-top: 14px; }

/* ============================================================
   r338 新版完整 logo（用户抠好图，自带「智显AI系统」文字）：
   ① hero 文字块整体移除（DOM 已删，仅留占位说明）
   ② logo 头像由内向外扩散的绿色渐变信号波纹（非旋转扫光）
   几何：图 814×721 contain 渲染，头像中心≈(49.1%, 32.5%)，直径≈57.7% 图宽
   ============================================================ */
.home-hero:has(.eye-energy-robot) { padding-top: 34px; }
.home-hero:has(.eye-energy-robot) .home-hero-eyes {
  width: 430px; height: 430px;
  margin-bottom: -26px;
}
/* 信号波纹：3 层错峰，9s 周期（间隔 3s，舒缓）
   基准环直径 = 70% 容器 ≈ 头像直径；scale .72→1.34 从头像内涌出直至外散淡出 */
.eye-energy-robot .er-pulse {
  position: absolute; left: 50%; top: 35%;
  width: 70%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    transparent 62%,
    rgba(62,212,131,0.22) 70%,
    rgba(126,232,155,0.62) 78%,
    rgba(220,255,235,0.95) 82%,
    rgba(126,232,155,0.5) 87%,
    rgba(62,212,131,0.16) 92%,
    transparent 97%);
  filter: blur(.7px) drop-shadow(0 0 9px rgba(126,232,155,0.5));
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  animation: er-wave 9s cubic-bezier(.22,.62,.32,1) infinite;
  z-index: 1;
  pointer-events: none;
}
.eye-energy-robot .er-pulse:nth-child(2) { animation-delay: 3s; }
.eye-energy-robot .er-pulse:nth-child(3) { animation-delay: 6s; }
@keyframes er-wave {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.72); }
  14%  { opacity: .95; }
  55%  { opacity: .5; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.34); }
}

/* r344：叶片特效已移除（用户要求），仅保留波纹扩散 */

/* ============================================================
   r332+ 首页迎宾机器人（logo 下方）：3D 视差 + 科技光环 + 问候气泡
   结构：.home-greet > .hg-stage(.hg-float>.hg-img + .hg-floor) + .hg-bubble
   ============================================================ */
.home-greet {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: -6px auto 4px;
  padding: 10px 0 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  user-select: none;
}
.hg-stage {
  position: relative;
  width: 220px;
  transform-style: preserve-3d;
}
/* 机器人本体：只做上下悬浮（无旋转 —— 2D 素材转动有纸片感）
   立体感靠投影分层（实投影 + 绿色外发光）承担；r356 背光光圈移到正身后 */
.hg-float {
  position: relative;
  z-index: 2;
  animation: hgHover 4.2s ease-in-out infinite;
}
/* r356 背光光圈：模糊绿光移到人物正身后（原来在脚下） */
.hg-float::before {
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(126,232,155,.45) 0%,
    rgba(62,212,131,.22) 45%,
    transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: hgHaloGlow 4.2s ease-in-out infinite;
}
@keyframes hgHaloGlow {
  0%, 100% { opacity: .95; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: .6; transform: translate(-50%,-50%) scale(.9); }
}
.hg-img {
  width: 100%;
  display: block;
  filter:
    drop-shadow(0 16px 20px rgba(0,0,0,.6))
    drop-shadow(0 0 22px rgba(126,232,155,.26));
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
}
@keyframes hgHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
/* 底座：旋转刻度环 + 扫描线（r356：模糊光圈已上移到人物正身后，脚下不再发光） */
.hg-floor {
  position: relative;
  z-index: 1;
  width: 190px;
  height: 34px;
  margin: -14px auto 0;
  border-radius: 50%;
}
@keyframes hgFloorGlow {
  0%, 100% { opacity: .95; transform: scaleX(1); }
  50% { opacity: .62; transform: scaleX(.86); }
}
.hg-floor::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 200px; height: 44px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px dashed rgba(126,232,155,.55);
  border-top-color: rgba(126,232,155,.12);
  border-bottom-color: rgba(126,232,155,.75);
  animation: hgRingSpin 9s linear infinite;
}
.hg-floor::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 148px; height: 30px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 1px solid rgba(220,255,235,.35);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: hgRingSpin 6s linear infinite reverse;
}
@keyframes hgRingSpin {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.hg-scan {
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(154,230,180,.85), transparent);
  filter: blur(.4px);
  animation: hgScan 2.8s ease-in-out infinite;
  opacity: 0;
}
@keyframes hgScan {
  0%, 100% { opacity: 0; transform: translateY(-13px); }
  15% { opacity: .9; }
  50% { opacity: .9; transform: translateY(13px); }
  85% { opacity: .9; }
}
/* r356：身后大圆环整体下线（它的上弧正好横穿机器人手部，就是那两个线条圈） */
.hg-ring { display: none; }
.hg-ring::before, .hg-ring::after { display: none; }
.hg-ring2 { display: none; }
/* 上升光点 */
.hg-dot {
  position: absolute;
  bottom: 20px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(154,230,180,.9);
  box-shadow: 0 0 8px rgba(126,232,155,.8);
  pointer-events: none;
  animation: hgRise 3.6s ease-in infinite;
  opacity: 0;
}
.hg-dot:nth-child(1) { left: 24%; animation-delay: 0s; }
.hg-dot:nth-child(2) { left: 70%; animation-delay: 1.3s; width: 3px; height: 3px; }
.hg-dot:nth-child(3) { left: 46%; animation-delay: 2.4s; }
@keyframes hgRise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-150px) scale(.4); }
}
/* 问候气泡：深绿渐变 + 打字机光标 */
.hg-bubble {
  position: absolute;
  z-index: 3;
  right: calc(50% - 268px);
  bottom: 176px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 14px 14px 14px 3px;
  background: linear-gradient(135deg, rgba(15,58,41,.96), rgba(12,42,31,.96));
  border: 1px solid rgba(126,232,155,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 18px rgba(126,232,155,.15);
  font-size: 14px;
  line-height: 1.65;
  color: #d9ffe8;
  opacity: 0;
  transform: translateY(10px) scale(.9);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.9,.3,1.2);
  pointer-events: none;
}
.hg-bubble.on { opacity: 1; transform: translateY(0) scale(1); }
.hg-bubble::after {
  content: '';
  position: absolute;
  left: -5px; bottom: 16px;
  width: 10px; height: 10px;
  background: inherit;
  border-left: 1px solid rgba(126,232,155,.35);
  border-bottom: 1px solid rgba(126,232,155,.35);
  transform: rotate(45deg);
}
.hg-caret {
  display: inline-block;
  width: 2px; height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #7ee89b;
  animation: hgCaret .8s step-end infinite;
}
@keyframes hgCaret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (max-width: 860px) {
  .hg-bubble { right: 8px; bottom: 150px; max-width: 230px; }
  .hg-ring { width: 240px; height: 240px; }
}

/* r333 迎宾机器人移至侧栏空白区（个人中心标签下方）：竖长新图，气泡悬浮头顶 */
.sb-greet {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  padding: 10px 0 6px;
  user-select: none;
  cursor: default;
}
.sb-greet .hg-stage { width: 92px; position: relative; }
.sb-greet .hg-ring {
  width: 130px; height: 130px;
  bottom: -2px;
  background: radial-gradient(circle, transparent 55%, rgba(62,212,131,.12) 62%, transparent 66%);
}
.sb-greet .hg-floor { width: 84px; height: 16px; margin-top: -6px; }
.sb-greet .hg-floor::before { width: 92px; height: 22px; }
.sb-greet .hg-floor::after { width: 66px; height: 14px; }
.sb-greet .hg-dot { bottom: 10px; }
.sb-greet .hg-dot:nth-child(1) { left: 18%; }
.sb-greet .hg-dot:nth-child(2) { left: 76%; }
.sb-greet .hg-dot:nth-child(3) { left: 45%; }
@keyframes hgRise2 {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-90px) scale(.4); }
}
.sb-greet .hg-dot { animation: hgRise2 3.6s ease-in infinite; }
/* 气泡：悬浮机器人头顶，宽度撑满侧栏内边距 */
.sb-greet .hg-bubble {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px) scale(.9);
  max-width: 190px;
  width: max-content;
  padding: 9px 12px;
  border-radius: 12px 12px 12px 3px;
  font-size: 12px;
  line-height: 1.6;
}
.sb-greet .hg-bubble.on {
  transform: translateX(-50%) translateY(0) scale(1);
}
.sb-greet .hg-bubble::after {
  left: 18px; bottom: -5px; top: auto;
  border-left: none;
  border-right: 1px solid rgba(126,232,155,.35);
  border-top: 1px solid rgba(126,232,155,.35);
  border-bottom: none;
}

/* ============================================================
   r354 ① 描述框内嵌参考图（@ 唤起选择器） ② 模型价格角标 ③ OEM 面板
   ============================================================ */

/* ---- 描述框：textarea 换成了 contenteditable 的 div，样式补齐 ---- */
.draw-textarea-wrap { position: relative; }
.ri-input {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  outline: none;
  line-height: 1.7;
  caret-color: var(--color-primary, #22c55e);
}
.ri-input:focus { border-color: var(--color-primary, #22c55e); }
.ri-input.is-empty::before {
  content: attr(data-placeholder);
  color: var(--text-3, #8b98a5);
  pointer-events: none;
}
/* 内嵌参考图引用 chip（r355e：只显示缩小缩略图本身，不显示文件名，× 角标删除） */
.ri-chip {
  display: inline-flex;
  align-items: center;
  position: relative;
  vertical-align: middle;
  margin: 0 6px 2px 0;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg-card-hover, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  max-width: 100%;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  cursor: default;
}
.ri-chip img {
  width: 24px; height: 24px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #000;
  flex: 0 0 auto;
}
.ri-chip-x {
  position: absolute;
  top: -6px; right: -6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 400;
  flex: 0 0 auto;
}
.ri-chip-x:hover { background: #ef4444; }

/* @ 参考图选择器浮层（挂 body，避免被卡片 overflow 裁掉） */
.ri-pop {
  position: fixed;
  z-index: 99999;
  width: 288px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-pop, #16232a);
  border: 1px solid var(--border, rgba(255,255,255,.14));
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.ri-pop[hidden] { display: none; }
.ri-pop-head {
  font-size: 12px;
  color: var(--text-3, #8b98a5);
  padding: 4px 8px 6px;
}
.ri-pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
}
.ri-pop-item.on { background: var(--bg-card-hover, rgba(255,255,255,.08)); }
.ri-pop-th {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card-hover, rgba(255,255,255,.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ri-pop-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri-pop-tx { min-width: 0; }
.ri-pop-tx b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e6edf3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ri-pop-tx span {
  display: block;
  font-size: 11px;
  color: var(--text-3, #8b98a5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 输入框右上角的模型价格区间 ---- */
.ri-price {
  position: absolute;
  top: 8px; right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  color: #0b1f14;
  background: linear-gradient(135deg, #7ee89b, #22c55e);
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
  pointer-events: auto;
  cursor: default;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-price[hidden] { display: none; }
.ri-price-ic { font-weight: 700; opacity: .8; }
.ri-price-tx { font-weight: 700; }
.ri-price.is-guess {
  background: var(--bg-card-hover, rgba(255,255,255,.08));
  color: var(--text-3, #8b98a5);
  box-shadow: none;
  border: 1px solid var(--border, rgba(255,255,255,.14));
}
/* 「按token计费」中性徽章（对齐上游：无数字、灰底、带 ⓘ 质感） */
.ri-price.is-badge {
  background: var(--bg-card-hover, rgba(255,255,255,.08));
  color: var(--text-2, #b8c4cc);
  box-shadow: none;
  border: 1px solid var(--border, rgba(255,255,255,.16));
}

/* ---- OEM 独立站面板 ---- */
.oem-wrap { padding: 4px 2px 8px; }
.oem-hero {
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.12));
  margin-bottom: 16px;
}
.oem-hero-ic { font-size: 32px; }
.oem-hero h3 { margin: 0 0 4px; font-size: 16px; }
.oem-hero p { margin: 0; font-size: 12px; color: var(--text-3, #8b98a5); line-height: 1.6; }
.oem-field { margin-bottom: 14px; }
.oem-field > label {
  display: block; font-size: 12px; color: var(--text-3, #8b98a5); margin-bottom: 6px;
}
.oem-field input[type="text"] {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  color: var(--text, #e6edf3); font-size: 13px;
}
.oem-field input[type="color"] {
  width: 64px; height: 34px; padding: 2px; border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.14)); background: none; cursor: pointer;
}
.oem-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--text-3, #8b98a5); }
.oem-logo-row { display: flex; align-items: center; gap: 14px; }
.oem-logo-box {
  width: 96px; height: 96px; flex: 0 0 auto;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px dashed var(--border, rgba(255,255,255,.2));
  display: flex; align-items: center; justify-content: center;
}
.oem-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.oem-logo-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.oem-host {
  padding: 10px 12px; border-radius: 9px; font-size: 13px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  color: var(--color-primary, #22c55e);
}
.oem-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle;
}
.oem-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---- r355 OEM 面板：定价与佣金区块 ---- */
.oem-sec {
  margin-top: 18px;
  padding: 14px 16px 4px;
  border-radius: 12px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.14));
}
.oem-sec-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.oem-lock {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card-hover, rgba(255,255,255,.04));
  border: 1px dashed var(--border, rgba(255,255,255,.22));
}
.oem-lock-ic { font-size: 22px; opacity: .75; }
.oem-lock b { display: block; font-size: 13px; margin-bottom: 4px; }
.oem-lock p { margin: 0; font-size: 12px; color: var(--text-3, #8b98a5); line-height: 1.65; }
.oem-static {
  padding: 10px 12px; border-radius: 9px; font-size: 13px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  color: var(--text-3, #8b98a5);
}
.oem-field input[type="number"] {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  background: var(--bg-card-hover, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.14));
  color: var(--text, #e6edf3); font-size: 13px;
}

/* ---------- r362 大模型下拉（自定义，带 logo） ---------- */
.llm-mp-btn {
  display: flex; align-items: center; gap: 8px;
  min-width: 168px; max-width: 240px;
  padding: 8px 12px 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(126,232,155,0.25);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 14px; cursor: pointer; outline: none;
  transition: all 0.2s;
}
.llm-mp-btn:hover, .llm-mp-btn.is-open {
  border-color: rgba(126,232,155,0.5);
  background: rgba(0,0,0,0.34);
}
.llm-mp-name {
  flex: 1; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.llm-mp-caret { opacity: 0.65; font-size: 11px; margin-left: 2px; }
.llm-mp-ic {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 50%; object-fit: contain;
  background: rgba(255,255,255,0.06);
}
.llm-mp-ic.is-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85);
  background: rgba(126,232,155,0.22);
}
/* r363：面板挂 body，fixed 定位由 JS 算（对齐按钮），z-index 压过聊天区一切 */
.llm-mp-panel {
  position: fixed; left: -9999px; top: -9999px; z-index: 9999;
  width: 320px; max-height: min(420px, calc(100vh - 24px));
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(126,232,155,0.22);
  background: rgba(14,20,18,0.98);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.llm-mp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; -webkit-overflow-scrolling: touch; }
.llm-mp-group {
  padding: 8px 10px 4px; font-size: 11px; letter-spacing: 0.4px;
  color: rgba(255,255,255,0.42);
}
.llm-mp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
}
.llm-mp-item:hover { background: rgba(126,232,155,0.12); }
.llm-mp-item.is-on { background: rgba(126,232,155,0.18); }
.llm-mp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.llm-mp-txt b {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.94);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.llm-mp-txt span {
  font-size: 11px; color: rgba(255,255,255,0.45);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.llm-mp-check { font-size: 12px; color: #7ee89b; opacity: 0; }
.llm-mp-item.is-on .llm-mp-check { opacity: 1; }
.llm-mp-empty { padding: 22px 10px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ★ r384b：官转（按 token 计费）版暂未开放 —— 置灰显示，点击由 app.js 拦截并提示 */
.draw-model[data-off="1"] { opacity: .45; filter: grayscale(1); cursor: not-allowed; }
.draw-model[data-off="1"] .draw-model-name::after { content: ' 暂未开放'; font-size: 10px; opacity: .8; }

/* ★ r390 电脑版修改意见：价格角标不再遮挡输入框文字 —— 角标可见时正文从角标下方起
   （r381 只做了 ≤700px，桌面端同样存在遮挡；:has 现代浏览器均支持） */
.draw-textarea-wrap:has(.ri-price:not([hidden])) .draw-textarea {
  padding-top: 30px;
}

/* ★ r427 数字人页图标全部换成线性 SVG（原彩色 emoji），并把按钮内图标间距交给 .dh-btn 的 gap */
.dh-btn .zg-ic { margin-right: 0; }
.dh-vtype-ico svg, .dh-look-icon svg, .dh-result-icon svg { display: block; }


/* ============================================================
   r430 电脑端首页 hero：修「大 logo 有明显裁切感」+ 与手机端同步科技效果
   ── 裁切根因（r429 同类坑的变体）：
      .home-hero 是 .home-view（flex column）的子项，被压到 min-height:360px；
      内部 .home-hero-eyes 设计 430×430 但 flex-shrink 把它压成 336 高；
      logo 图（421×373）按「眼睛区中心」绝对定位 → 底部 28px 顶出 .home-hero，
      被它的 overflow:hidden 硬切一刀（词标被切半）。
      另外 .home-hero-glow 是 blur(40px) 的绝对块，四边同样被硬切成矩形边。
   ── 处置：① hero 撑到内容高、眼睛区不参与压缩；② 光晕改四边自然衰减的椭圆渐变；
      ③ 补上与手机同款科技效果：轨道光点 / 带环行星 / 透视网格地平线 / 稀疏星点 / 书法标语。
   ★ 新增的 .hero-tech / .hero-orbit / .hero-tagline 已在 mobile.css 的 ≤700px 块里 hide，
      手机端仍是原来的星空 logo 区，零影响。
   ============================================================ */
.home-hero:has(.eye-energy-robot) {
  flex: 0 0 auto;                  /* 不再被 .home-view 压扁 */
  min-height: 0;
  padding: 22px 32px 14px;
}
.home-hero:has(.eye-energy-robot) .home-hero-eyes {
  flex: 0 0 auto;                  /* ★ 关键：430px 不再被压成 336px */
  width: 430px; height: 430px;
  margin-bottom: -52px;
}
/* ① 光晕：椭圆渐变要在**四边之前**就衰减到 0，否则超出 hero 的那一截
     会被 .home-hero 的 overflow:hidden 硬切，变成一条横贯整屏的亮边。
   ★ r435 实测：r430 的 `ellipse 60% 56% at 50% 32%` 竖直方向越界
     （中心距顶 32% < 半径 56%），hero 顶边整行亮度跳变 dv≈4.4（RGB 由 16,46,33 跳到 20,52,37），
     就是用户看到的「贴图痕迹」；把 glow 隐藏后该跳变立刻降到 1.1（背景噪声）。
     现取 中心 50%/48% + 半径 50%×34% + 88% 处已透明：
       顶余量 48−34=14%、底余量 52−34=18%、左右 50%−88%×50%=6%，四边都够。 */
.home-hero:has(.eye-energy-robot) .home-hero-glow {
  position: absolute; inset: 0; top: 0; right: 0; width: auto; height: auto;
  background: radial-gradient(ellipse 50% 34% at 50% 48%,
    rgba(126,232,155,0.20) 0%, rgba(126,232,155,0.075) 48%, transparent 88%);
  filter: blur(16px);
}
/* ② logo 辉光：与手机 .hs-logo 同款三层 drop-shadow */
.home-hero:has(.eye-energy-robot) .big-eye-robot {
  filter: drop-shadow(0 0 14px rgba(120,255,205,.42))
          drop-shadow(0 0 42px rgba(60,220,170,.22))
          drop-shadow(0 8px 26px rgba(0,0,0,.65));
}
/* ③ 轨道光点：绕 logo 匀速运行（椭圆轨迹——横向甩开机器人轮廓、纵向不出 hero，
      与手机 .hs-orbit 的 8s/两颗光点同语言） */
.hero-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 540px; height: 540px; margin: -270px 0 0 -270px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  animation: heroOrbitSpin 9s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #d8ffee;
  box-shadow: 0 0 10px rgba(140,255,215,.95), 0 0 26px rgba(90,240,180,.55);
}
.hero-orbit::after {
  top: auto; bottom: 0; width: 5px; height: 5px; margin: 0 0 -2.5px -2.5px;
  opacity: .6; box-shadow: 0 0 8px rgba(140,255,215,.8);
}
@keyframes heroOrbitSpin {
  from { transform: translate(-50%, -50%) scaleY(.74) rotate(0deg); }
  to   { transform: translate(-50%, -50%) scaleY(.74) rotate(360deg); }
}
/* ④ 书法标语：与手机 .hs-tagline 同款字族 / 字距 / 辉光 */
.hero-tagline {
  position: relative; z-index: 3; margin: 0 0 2px;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 22px; font-weight: 400; letter-spacing: .2em;
  color: #cfeab4; text-align: center; white-space: nowrap;
  text-shadow: 0 0 10px rgba(120,255,200,.45), 0 0 26px rgba(80,220,160,.28), 0 2px 10px rgba(0,30,10,.6);
}
/* ⑤ 科技感底：星点 + 星云 + 带环行星 + 透视网格地平线
   ★ r435 星空升级（用户：「加多一些星辰，让视觉看起来更有空间感」）：
     原 7 颗星、单层 opacity 闪烁，密度太低、看不见纵深。现改成**远/中/近三层**：
       · 近景 3 颗大亮星（background-size 260~300px → 稀疏）
       · 中景 7 颗中等星（190~230px）
       · 远景 6 颗小暗星尘（105~130px → 密集）
     外加 ::after 一层星云（三团极淡色斑 + 16s 呼吸）与 90s 极缓慢漂移，
     靠「大小/亮度/密度/移动速度」四重差异做出空间纵深。
   ★ 面板整体挂在 .hero-tech 下，而 mobile.css 的 ≤700px 块里 .hero-tech 是 display:none，
     所以这一整块**手机端完全不渲染**（用户要求的「手机端效果不变」由结构保证）。 */
.hero-tech { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-tech::before {
  /* inset:-60px 给 90s 漂移留出余量，避免平移到边缘时露出空白（外层 overflow:hidden 负责裁） */
  content: ''; position: absolute; inset: -60px;
  background-image:
    /* —— 近景：大而亮的稀疏星 —— */
    radial-gradient(2.2px 2.2px at 70px 44px, rgba(255,255,255,.95), transparent 62%),
    radial-gradient(2px 2px at 190px 168px, rgba(255,255,255,.90), transparent 62%),
    radial-gradient(1.8px 1.8px at 132px 96px, rgba(232,255,244,.88), transparent 62%),
    /* —— 中景 —— */
    radial-gradient(1.4px 1.4px at 22px 34px, rgba(255,255,255,.86), transparent 60%),
    radial-gradient(1.3px 1.3px at 160px 66px, rgba(255,255,255,.80), transparent 60%),
    radial-gradient(1.3px 1.3px at 96px 60px, rgba(214,255,233,.78), transparent 60%),
    radial-gradient(1.2px 1.2px at 40px 90px, rgba(216,255,236,.74), transparent 60%),
    radial-gradient(1.2px 1.2px at 88px 120px, rgba(210,255,230,.72), transparent 60%),
    radial-gradient(1.1px 1.1px at 205px 30px, rgba(202,255,226,.70), transparent 60%),
    radial-gradient(1.1px 1.1px at 118px 158px, rgba(200,250,225,.66), transparent 60%),
    /* —— 远景：小而暗的星尘 —— */
    radial-gradient(.9px .9px at 12px 72px, rgba(182,240,216,.52), transparent 58%),
    radial-gradient(.85px .85px at 56px 8px, rgba(182,240,216,.50), transparent 58%),
    radial-gradient(.9px .9px at 148px 128px, rgba(176,236,212,.48), transparent 58%),
    radial-gradient(.8px .8px at 176px 92px, rgba(172,232,208,.46), transparent 58%),
    radial-gradient(.85px .85px at 30px 182px, rgba(176,236,212,.44), transparent 58%),
    radial-gradient(.75px .75px at 104px 22px, rgba(170,230,206,.42), transparent 58%);
  background-size:
    300px 300px, 300px 300px, 260px 260px,
    220px 220px, 220px 220px, 200px 200px, 200px 200px, 190px 190px, 230px 230px, 210px 210px,
    120px 120px, 110px 110px, 130px 130px, 115px 115px, 125px 125px, 105px 105px;
  /* 上下各留一段渐隐带（约 65px），让 hero 顶/底与页面背景无接缝 ——
     否则星点会在 hero 边界处被一刀切断，又变成另一种「贴图痕迹」。 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 86%, transparent 100%);
  animation: heroStarTwinkle 3.4s ease-in-out infinite alternate,
             heroStarDrift 90s linear infinite;
  opacity: .72;
}
@keyframes heroStarTwinkle { from { opacity: .38; } to { opacity: .92; } }
/* 极缓慢漂移（90s 走 46px）——比轨道光点慢一个数量级，才像「远处星空在挪」 */
@keyframes heroStarDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-46px, -26px, 0); }
}
/* 星云：三团极淡色斑，16s 呼吸 + 轻微上浮，把「空背景」垫出层次 */
.hero-tech::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 24% 26% at 26% 30%, rgba(92,222,180,.105), transparent 70%),
    radial-gradient(ellipse 20% 24% at 78% 64%, rgba(112,190,255,.080), transparent 70%),
    radial-gradient(ellipse 20% 14% at 62% 16%, rgba(150,255,215,.062), transparent 72%);
  animation: heroNebula 16s ease-in-out infinite alternate;
}
@keyframes heroNebula {
  from { opacity: .50; transform: translate3d(0, 0, 0); }
  to   { opacity: .92; transform: translate3d(0, -10px, 0); }
}
.ht-grid {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 52%;
  background-image:
    linear-gradient(rgba(110,255,205,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,255,205,.24) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(240px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 38%, transparent 82%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 38%, transparent 82%);
  animation: heroGridRun 3.2s linear infinite;
  opacity: .85;
}
@keyframes heroGridRun { from { background-position: 0 0; } to { background-position: 0 52px; } }
.ht-planet {
  position: absolute; top: 40px; right: 84px;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #86b096 0%, #3f6150 46%, #17281f 78%, #0a140f 100%);
  box-shadow: inset -14px -10px 30px rgba(0,20,12,.7), 0 0 40px rgba(120,255,200,.22);
}
.ht-planet::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, rgba(150,255,215,.12) 0 1px, transparent 1px 8px);
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle, #000 58%, transparent 72%);
}
.ht-ring {
  position: absolute; left: 50%; top: 50%;
  width: 252px; height: 76px; margin: -38px 0 0 -126px;
  border: 1px solid rgba(150,255,215,.42);
  border-bottom-color: rgba(150,255,215,.16);
  border-radius: 50%; transform: rotate(-16deg);
  box-shadow: 0 0 14px rgba(120,255,200,.22);
}

/* ============================================================
   r454 电脑端首页：机器人（显化之眼）头顶的「裁切痕迹」消除
   ── 现象：桌面端 y≈102（.home-hero 上边界）横贯一条平直亮度台阶。
      取用户截图区（x 581~772）实测 Δ=+5.88 灰阶 —— 肉眼就是一条切线。
   ── 定位（逐层剥离，outputs/r454_isolate.mjs + r454_isolate.py）：
        · 隐藏 .big-eye        → 台阶 Δ 5.88 → 0.36   ✅
        · .home-hero overflow:visible → 0.34          ✅
        · 隐藏 .home-hero-glow / .hero-tech / 关 border-radius → 5.88 不变
      ⇒ 真凶是 .home-hero{overflow:hidden} 把 logo 的辉光（.home-hero-eyes 的
        三层 drop-shadow + 波纹）在 hero 上沿一刀切平。实测这层辉光在
        y=70~102 之间本有 +5.9~11.3 灰阶的贡献，全被这一刀归零。
   ── 为什么不直接放开 overflow：辉光向上延伸超过 32px（y=70 处仍有 +11.3），
      放开后接缝只会被推到 .main-body-v2 的边界（y=70，紧贴顶栏下沿），
      位置更显眼、差值还更大。所以不能"放开"，只能"渐隐"。
   ── 做法：hero 顶部加一段渐隐遮罩，让辉光在边界处自然衰减到 0，
      上下连续、不留边。过渡区取 34px —— 正好等于 hero 的 padding-top
      （`.home-hero:has(.eye-energy-robot){padding-top:34px}`），
      而 logo 图片本体从 hero 顶往下 ≈50px 才开始，完全不受影响。
   ── 只在桌面生效（≥701px）：手机端首页是另一套 .hero-star / .hs-logo，
      r451 已单独处理，这里不碰。
   ============================================================ */
@media (min-width: 701px) {
  .home-hero {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .18) 10px, rgba(0, 0, 0, .55) 21px, rgba(0, 0, 0, .86) 29px, #000 34px);
    mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .18) 10px, rgba(0, 0, 0, .55) 21px, rgba(0, 0, 0, .86) 29px, #000 34px);
  }
}

/* ============================================================
   r456 首页 logo「雾蒙蒙 / 不均匀」治理（用户 2026-10-13 反馈）
   ── 现象：hero 里机器人四周糊着一圈绿灰雾，白色本体发闷不透亮，
      背景明暗还很不均（用户截图 1890×980 ≈ 945×490@2x，属 701~1000 的
      「平板/桌面同一套 .home-hero」布局，非手机星空版）。
   ── 定位（outputs/r456_iso2.mjs 逐层隔离；指标＝头像轮廓外 8~120px 圆环
      的平均亮度 / 按极角 24 段的亮度标准差＝"不均匀度"，945×900@2x）：
        · 现状：环带亮度 71.6，角度不均 27.1
        · 只关 .big-eye-robot 的三层 drop-shadow → 63.6（−8.0）★★ 最大单项
        · 只关 .home-hero-glow（blur16 椭圆绿光）→ 68.1（−3.5）★
        · 星云/星点/行星/网格/波纹 单项均 ≤0.6（可忽略）
        · 光晕全关 → 48.4（−23.3）＝ 只剩背景本身
      ⇒ 「雾」= 图片自带的三层 drop-shadow（尤其 42px 那层大绿光）
              + .home-hero-glow 铺满整个 hero 的椭圆绿光，两者叠加。
        「不均匀」= 上两层之外，还有 .hero-tech::after 的三团星云色斑
              在左/右各压一块亮斑。
   ── 处置（不去掉发光语言，只把「弥散雾」收成「贴身辉光」）：
        ① 42px 大绿光删除；9px 贴身青光 α .24 取代 14px/α .42；
           黑投影 8px26px/α.65 → 12px26px/α.50 —— 靠"底部投影分离"
           让白机器人跳出来，而不是靠"四周绿光"（后者正是雾）。
        ② glow 半径 50%×34% → 38%×30%、中心 48% → 44%，α .20/.075 →
           .13/.045、blur 16 → 20：光仍贴在机器人背后，但不再铺满 hero。
        ③ contrast(1.05) saturate(1.04)：抵消 filter 叠加造成的"发灰"，
           白本体更通透（放在 drop-shadow 之前，先修色再投影）。
        ④ .er-pulse 波纹峰值 α .95/.62/.22 → .60/.30/.26，扩散 1.34 →
           1.18：保留"信号扩散"的动作，但不再扩成一团雾圈。
        ⑤ 星云色斑 α .105/.080/.062 → .06/.045/.035（−40%）：压低
           「左一块右一块」的不均匀（星辰/行星/网格不动，太空感保留）。
   ── 实测（945×900@2x，同一指标）：环带亮度 71.6 → 52.8（−26%），不均匀
      27.1 → 25.2；机器人本体 P99.5 253 → 255、环内对比 std 105.0 → 108.9
      —— 主体不降反更清透，收掉的只是雾。
      另：改前的 glow 在 hero 底边（y≈1087）被 overflow 裁出一截 42~47 灰阶的
      亮带，收小半径后降到 32，顺带把一处旧瑕疵也抹平了。
   ── 手机端（≤700px 的 .hs-logo 另一套）同款改法见 mobile.css r456 段。
   ============================================================ */
/* ① 机器人本体：去 42px 大绿雾，改「贴身青光 + 加重底影 + 轻微增透」 */
.home-hero:has(.eye-energy-robot) .big-eye-robot {
  filter: contrast(1.05) saturate(1.04)
          drop-shadow(0 0 9px rgba(120, 255, 205, .24))
          drop-shadow(0 12px 26px rgba(0, 0, 0, .50));
}
/* ② hero 大辉光：收小、收淡，仍贴机器人后背 */
.home-hero:has(.eye-energy-robot) .home-hero-glow {
  background: radial-gradient(ellipse 38% 30% at 50% 44%,
    rgba(126, 232, 155, 0.13) 0%, rgba(126, 232, 155, 0.045) 46%, transparent 80%);
  filter: blur(20px);
}
/* ③ 眼睛容器那层 30px 绿光同步收敛（原 rgba(126,232,155,.5)） */
.home-hero:has(.eye-energy-robot) .home-hero-eyes {
  filter: drop-shadow(0 0 12px rgba(126, 232, 155, .20));
}
/* ④ 信号波纹：保留扩散动作，峰值亮度减半 */
.eye-energy-robot .er-pulse {
  background: radial-gradient(circle,
    transparent 62%,
    rgba(62, 212, 131, .18) 70%,
    rgba(126, 232, 155, .30) 78%,
    rgba(220, 255, 235, .60) 82%,
    rgba(126, 232, 155, .24) 87%,
    rgba(62, 212, 131, .13) 92%,
    transparent 97%);
}
@keyframes er-wave {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.72); }
  14%  { opacity: .92; }
  55%  { opacity: .48; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.18); }
}
/* ⑤ 星云色斑 −40%：压「不均匀」，星辰 / 行星 / 网格不动 */
.hero-tech::after {
  background-image:
    radial-gradient(ellipse 24% 26% at 26% 30%, rgba(92, 222, 180, .060), transparent 70%),
    radial-gradient(ellipse 20% 24% at 78% 64%, rgba(112, 190, 255, .045), transparent 70%),
    radial-gradient(ellipse 20% 14% at 62% 16%, rgba(150, 255, 215, .035), transparent 72%);
}
