/* ==========================================================
   彩铃提单系统 · 全站 UI 2.0
   设计语言：Aurora Indigo —— 靛紫渐变主色 / 深空导航 / 轻盈卡片
   全面响应式：桌面（≥1024） / 平板（768-1024） / 手机（≤768 / ≤480）
   ========================================================== */

/* ============ Reset & Base ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色系（靛 → 紫） */
  --c-primary: #6366f1;
  --c-primary-light: #818cf8;
  --c-primary-dark: #4f46e5;
  --c-primary-bg: #eef2ff;
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-primary-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  /* 中性色 */
  --c-bg: #f5f6fb;
  --c-card: #ffffff;
  --c-text: #17192b;
  --c-text-secondary: #5d6480;
  --c-text-light: #9aa1b9;
  --c-border: #e8eaf3;
  --c-border-dark: #d3d8e8;
  --c-hover: #f3f4fb;

  /* 语义色 */
  --c-success: #10b981;
  --c-success-bg: #d1fae5;
  --c-warning: #f59e0b;
  --c-warning-bg: #fef3c7;
  --c-danger: #ef4444;
  --c-danger-bg: #fee2e2;
  --c-info: #3b82f6;
  --c-info-bg: #dbeafe;
  --c-purple: #8b5cf6;
  --c-purple-bg: #ede9fe;
  --c-cyan: #06b6d4;
  --c-cyan-bg: #cffafe;
  --c-slate: #64748b;
  --c-slate-bg: #f1f5f9;

  /* 侧边栏配色 */
  --sidebar-bg: linear-gradient(180deg, #14162a 0%, #1c1b3d 62%, #221f55 100%);
  --sidebar-text: #a5accf;
  --sidebar-text-active: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.07);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(23, 25, 43, 0.04);
  --shadow: 0 1px 3px rgba(23, 25, 43, 0.06), 0 1px 2px rgba(23, 25, 43, 0.04);
  --shadow-md: 0 6px 18px -6px rgba(23, 25, 43, 0.12), 0 2px 6px -2px rgba(23, 25, 43, 0.06);
  --shadow-lg: 0 16px 40px -12px rgba(23, 25, 43, 0.18), 0 6px 14px -6px rgba(23, 25, 43, 0.08);
  --shadow-primary: 0 8px 20px -8px rgba(99, 102, 241, 0.55);

  /* 圆角 */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-sm: 8px;

  /* 结构尺寸 */
  --sidebar-w: 258px;
  --topbar-h: 64px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background: var(--c-bg);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(99, 102, 241, 0.06), transparent 60%),
    radial-gradient(900px 400px at -10% 30%, rgba(139, 92, 246, 0.05), transparent 55%);
  background-attachment: fixed;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(99, 102, 241, 0.18);
}

/* ============ Layout ============ */
#app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--sidebar-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo svg {
  color: var(--c-primary-light);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.18s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e4e7f7;
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--grad-primary);
  color: var(--sidebar-text-active);
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, 0.65);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 0 100px 100px 0;
  background: var(--c-primary-light);
}

.nav-item svg {
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 16px;
  border-top: 1px solid var(--sidebar-border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(99, 102, 241, 0.6);
}

.user-name {
  color: #e6e8f6;
  font-size: 13px;
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  color: #7d84ad;
  font-size: 12px;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-card);
  color: var(--c-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.menu-toggle:hover {
  color: var(--c-primary);
  border-color: #c7d2fe;
  background: var(--c-primary-bg);
}

/* 移动端侧边栏遮罩 */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 35, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
}

.page-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-content {
  flex: 1;
  padding: 28px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--grad-primary-hover);
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--c-card);
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border-dark);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--c-hover);
  color: var(--c-text);
  border-color: var(--c-text-light);
}

.btn-danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(239, 68, 68, 0.6);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-success {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(16, 185, 129, 0.6);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-warning {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(245, 158, 11, 0.55);
}

.btn-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-icon {
  padding: 6px;
  width: 34px;
  height: 34px;
  justify-content: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* AI 合成试听：自绘播放器圆形播放/暂停按钮 */
.tts-play-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.tts-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.tts-play-btn:active {
  transform: scale(0.95);
}

.tts-play-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

/* ============ Cards ============ */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 100px;
  background: var(--grad-primary);
  flex-shrink: 0;
}

.card-body {
  padding: 22px;
}

/* ============ Stat Cards ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07), transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--c-text-secondary);
  font-weight: 500;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}

.stat-trend {
  font-size: 12px;
  margin-top: 4px;
}

.stat-trend.up {
  color: var(--c-success);
}

.stat-trend.down {
  color: var(--c-danger);
}

/* ============ Tables ============ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  font-size: 14px;
}

thead th {
  font-weight: 600;
  color: var(--c-text-secondary);
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  font-size: 12.5px;
  background: #f8f9fd;
}

thead th:first-child {
  border-top-left-radius: 10px;
}

thead th:last-child {
  border-top-right-radius: 10px;
}

tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: #f8f9fe;
}

tbody tr:last-child {
  border-bottom: none;
}

.table-id {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 13px;
  color: var(--c-primary);
  font-weight: 600;
}

.table-customer {
  font-weight: 600;
}

.trial-customer-name {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.cell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  vertical-align: middle;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
}

.row-action:hover {
  background: var(--c-primary-bg);
  color: var(--c-primary);
}

.row-action.danger:hover {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.row-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ Badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-submitted { background: var(--c-primary-bg); color: var(--c-primary); }
.badge-submitted .badge-dot { background: var(--c-primary); }
.badge-reviewing { background: var(--c-warning-bg); color: #b45309; }
.badge-reviewing .badge-dot { background: var(--c-warning); }
.badge-recording { background: var(--c-info-bg); color: #1d4ed8; }
.badge-recording .badge-dot { background: var(--c-info); }
.badge-processing { background: var(--c-purple-bg); color: #6d28d9; }
.badge-processing .badge-dot { background: var(--c-purple); }
.badge-uploading { background: var(--c-cyan-bg); color: #0e7490; }
.badge-uploading .badge-dot { background: var(--c-cyan); }
.badge-completed { background: var(--c-success-bg); color: #047857; }
.badge-completed .badge-dot { background: var(--c-success); }
.badge-rejected { background: var(--c-danger-bg); color: #b91c1c; }
.badge-rejected .badge-dot { background: var(--c-danger); }
.badge-cancelled { background: var(--c-slate-bg); color: #475569; }
.badge-cancelled .badge-dot { background: var(--c-slate); }
.badge-refunded { background: #e0e7ff; color: #4338ca; }
.badge-refunded .badge-dot { background: #6366f1; }

/* ============ 公告列表 ============ */
.ann-list { display: flex; flex-direction: column; }
/* 工作台右列：公告卡（唯一板块） */
.dash-side { display: flex; flex-direction: column; min-width: 0; }
.dash-side .ann-list { max-height: 400px; overflow-y: auto; }
.ann-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.2s;
}
.ann-item:last-child { border-bottom: none; }
.ann-item:hover { background: var(--c-hover); }
.ann-item.ann-unread { background: #fef4f4; }
.ann-item.ann-unread:hover { background: #fee6e6; }
.ann-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ann-unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: ann-pulse 1.5s ease-in-out infinite;
}
.ann-read-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
@keyframes ann-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.ann-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-title-unread {
  color: #ef4444;
  font-weight: 700;
}
.ann-item-time {
  font-size: 12px;
  color: var(--c-text-light);
  flex-shrink: 0;
}
/* 260 轮：管理员删除公告按钮（红色 hover，不挤压标题） */
.ann-del-btn {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--c-text-light);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.ann-del-btn:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}
.ann-item-preview {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin: 4px 0 4px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-item-meta {
  font-size: 12px;
  color: var(--c-text-light);
  margin-left: 16px;
}

.priority-normal { color: var(--c-slate); }
.priority-urgent { color: var(--c-warning); font-weight: 700; }
.priority-critical { color: var(--c-danger); font-weight: 700; }

/* ============ Forms ============ */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 7px;
}

.form-label .required {
  color: var(--c-danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--c-card);
  color: var(--c-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #b9c0d8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  -webkit-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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
}

/* ============ File Upload ============ */
.upload-zone {
  border: 2px dashed var(--c-border-dark);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fd;
}

.upload-zone:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
}

.upload-zone.dragover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
  transform: scale(1.01);
}

.upload-zone .upload-icon {
  color: var(--c-text-light);
  margin-bottom: 8px;
}

.upload-zone .upload-text {
  font-size: 14px;
  color: var(--c-text-secondary);
}

.upload-zone .upload-hint {
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 4px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fd;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-top: 12px;
}

.file-info .file-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--c-primary-bg);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-info .file-name {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.file-info .file-meta {
  font-size: 12px;
  color: var(--c-text-light);
}

.file-info .file-remove {
  margin-left: auto;
  color: var(--c-danger);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.file-info .file-remove:hover {
  background: var(--c-danger-bg);
}

/* ============ 补充附件（补充订单信息上传的图片/音频/视频/文件） ============ */
.supp-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* 补充附件卡片内边距整体收紧 */
  padding: 10px 12px;
}

.supp-file {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: #fafbfe;
}

.supp-file-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.supp-file-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.supp-file-info {
  flex: 1;
  min-width: 0;
}

.supp-file-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supp-file-meta {
  font-size: 10px;
  color: var(--c-text-light);
  margin-top: 1px;
}

/* 附件头部的下载按钮：更紧凑 */
.supp-file .btn-sm {
  padding: 2px 8px;
  font-size: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.supp-file-body {
  margin-top: 6px;
}

.supp-file-body .audio-player {
  margin-top: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.supp-file-body .audio-controls {
  gap: 8px;
}

.supp-file-body .audio-play-btn {
  width: 28px;
  height: 28px;
}

.supp-file-body .audio-play-btn svg {
  width: 12px;
  height: 12px;
}

.supp-file-body .audio-time {
  font-size: 10px;
}

.supp-img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

.supp-video {
  display: block;
  width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  background: #000;
}

/* ============ 合成视频（订单详情 + 素材库） ============ */

.synth-video-item {
  padding: 8px 10px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}

.synth-video-body {
  margin-top: 8px;
}

.synth-video-player {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-sm);
  background: #000;
}

/* ============ 制作视频独立栏目 ============ */
.vm-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.vm-main { flex: 1; min-width: 0; }
.vm-side {
  width: 420px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}
.vm-preview-card { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); }
@media (max-width: 980px) {
  .vm-layout { flex-direction: column; gap: 12px; }
  /* 手机端：预览卡置顶（先看到效果，再调参数） */
  .vm-side { order: -1; width: 100%; position: static; }
  .vm-preview-canvas { max-height: 36vh; }
  .vm-actions { margin-top: 10px; }
  .vm-actions .btn { min-height: 46px; font-size: 15px; }
  .vm-layout .card-header { padding: 13px 14px; flex-wrap: wrap; }
  .vm-layout .card-body { padding: 14px; }
  .vm-grid2 { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .vm-field { flex-wrap: wrap; }
  .vm-field .form-input { min-width: 140px; font-size: 16px; }
  /* 256 轮发现 + 261 轮重写：订单下拉选项文字很长，内在宽度会沿 flex 链
     撑破卡片。259 的 width:0;min-width:100% 在 iOS WebKit 上失效
     （native select 的内在宽度仍沿 flex 链撑破 vm-main，全部主流程卡超宽、
     页面横向滚动把顶部导航挤出错位）。改用标准组合 width:100% + min-width:0，
     iOS / 安卓 / 桌面均稳定收缩到容器宽，长选项由控件自身截断显示 */
  .vm-layout select.form-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  /* 261 轮 iOS 兜底：任何表单控件 / 音频条都不越过容器宽 */
  .vm-main select, .vm-main input, .vm-main textarea, .vm-main audio { max-width: 100%; }
  .vm-main .card, .vm-main .card-body { min-width: 0; }
  /* 最后一道防线：手机端内容区绝不产生横向滚动（溢出即裁剪，
     保证顶部导航不错位；手机端 vm-side 已 position:static 无 sticky 依赖） */
  #pageContent { overflow-x: hidden; }
  .vm-field .form-input { max-width: 100%; }
  /* 标签不定宽不换行（基础样式 48/60px 定宽会把「字体粗斜」等挤成两行） */
  .vm-field-label { text-align: left; width: auto; white-space: nowrap; }
  .vm-scene-body { flex-wrap: wrap; }
  .vm-scene-body .vm-scene-text { min-width: 100%; }
  .vm-scene-body .form-input { font-size: 16px; }
  /* 场景行头部（序号+类型+长文件名+标签+操作钮）允许换行，长文件名自动省略 */
  .vm-scene-head { flex-wrap: wrap; }
  .vm-scene-name { min-width: 96px; }
  .vm-scene-actions .row-action { padding: 6px 9px; }
  .vm-fold-hint { display: none; }
}

/* 折叠分区（256 轮改版）：画面设置/开场设置/文字叠加可折叠，摘要显示当前状态 */
.vm-fold > summary.card-header {
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  justify-content: flex-start;
}
.vm-fold > summary.card-header::-webkit-details-marker { display: none; }
.vm-fold-hint {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}
.vm-fold-caret {
  margin-left: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--c-text-light);
  transition: transform 0.18s ease;
}
.vm-fold[open] > summary.card-header .vm-fold-caret { transform: rotate(90deg); }
.vm-fold[open] > summary.card-header { border-bottom: 1px solid var(--c-border); }
.vm-fold:not([open]) > summary.card-header { border-bottom: none; }
.vm-fold:not([open]) .card-body { display: none; }

/* 步骤序号徽标（主流程 1-5） */
.vm-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
  vertical-align: 1px;
}

/* 卡片头部：数量徽标 + 操作按钮 */
.vm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 100px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
}
.vm-head-actions { display: flex; gap: 6px; margin-left: auto; }

/* 紧凑行式设置区 */
.vm-settings { display: flex; flex-direction: column; gap: 12px; }
.vm-field { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vm-field-label {
  flex-shrink: 0;
  width: 60px;
  font-size: 13px;
  color: var(--c-text-light);
  text-align: right;
}
.vm-field .form-input { flex: 1; min-width: 0; }
.vm-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.vm-grid2 .vm-field-label { width: 48px; }
.vm-color {
  flex-shrink: 0;
  width: 36px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
}

/* 预览卡操作按钮 */
.vm-actions { display: flex; gap: 8px; margin-top: 12px; }
.vm-actions .btn { flex: 1; }
.vm-audio-box { margin-top: 10px; }
.vm-audio-box .tts-play-btn { width: 40px; height: 40px; min-width: 40px; box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3); }

.vm-empty {
  text-align: center;
  padding: 22px 0;
  color: var(--c-text-light);
  font-size: 13px;
}
.vm-scene {
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--c-bg-soft, #f8fafc);
}
.vm-scene:last-child { margin-bottom: 0; }
.vm-scene-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vm-scene-idx {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: #4f46e5; color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}
.vm-scene-kind {
  flex-shrink: 0;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.vm-scene-kind.image { color: #0e7490; background: #cffafe; }
.vm-scene-kind.video { color: #7c3aed; background: #ede9fe; }
.vm-scene-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px;
}
.vm-scene-actions { display: flex; gap: 2px; flex-shrink: 0; }
.vm-scene-body {
  display: flex; gap: 8px; align-items: center;
  margin-top: 8px;
}
.vm-scene-body .vm-scene-text { flex: 1; min-width: 0; font-size: 13px; }
.vm-dur-wrap {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-text-light);
  white-space: nowrap;
}
.vm-dur-wrap .form-input { font-size: 12px; padding: 4px 6px; }

.vm-preview-canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 340px;
  border-radius: var(--radius-sm);
  background: #000;
}
.vm-lib-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto;
}
.vm-lib-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px;
}
.vm-lib-item:hover { background: var(--c-bg-soft, #f8fafc); }
.vm-lib-kind { flex-shrink: 0; }

.vm-bg-row { display: flex; align-items: center; gap: 8px; }
.vm-bg-name { flex: 1; min-width: 0; font-size: 13px; color: var(--c-text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-bg-row .btn.danger { color: #ef4444; border-color: #fecaca; }
.vm-bg-upload { margin-bottom: 4px; }
.vm-toggle-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--c-text); }
.vm-toggle-row input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }

/* 场景裁剪标签 */
.vm-scene-crop-tag {
  font-size: 10px;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 裁剪编辑器 */
.vm-crop-hint { font-size: 13px; color: var(--c-text-light); margin-bottom: 10px; }
.vm-crop-canvas {
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  background: #0f172a;
  cursor: crosshair;
  max-width: 100%;
  touch-action: none;
}
.vm-crop-info { text-align: center; font-size: 12px; color: var(--c-text-light); margin-top: 8px; }
.vm-trim-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.vm-trim-label { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.vm-trim-input { text-align: center; }
.vm-trim-dur { font-size: 12px; color: var(--c-text-light); margin-left: auto; }
.vm-trim-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 预览进度条 */
.vm-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.vm-progress-time {
  font-size: 11px;
  color: var(--c-text-light);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 32px;
  text-align: center;
}
.vm-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--c-border-light);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
}
.vm-progress-fill {
  height: 100%;
  background: var(--c-primary);
  border-radius: 100px;
  transition: width 0.1s linear;
}
.vm-progress-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
}

.supp-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  border: 1px dashed var(--c-border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.supp-pick-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supp-pick-size {
  font-size: 11px;
  color: var(--c-text-light);
  flex-shrink: 0;
}

.supp-pick-remove {
  border: none;
  background: transparent;
  color: var(--c-danger);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.supp-pick-remove:hover {
  background: var(--c-danger-bg);
}

/* ============ Audio Player ============ */
.audio-player {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f8f9fd;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audio-play-btn:hover {
  box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.7);
  transform: scale(1.05);
}

.audio-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--c-border-dark);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 100px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 12px;
  color: var(--c-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============ Progress Timeline ============ */
.timeline {
  position: relative;
  padding: 8px 0 8px 0;
}

.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 20px;
}

.timeline-line {
  position: absolute;
  top: 18px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--c-border);
  border-radius: 100px;
  z-index: 0;
}

.timeline-line-fill {
  position: absolute;
  top: 18px;
  left: 28px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 100px;
  z-index: 1;
  transition: width 0.4s ease;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-card);
  border: 3px solid var(--c-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-light);
  transition: all 0.3s ease;
}

.timeline-step.done .timeline-dot {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.55);
}

.timeline-step.current .timeline-dot {
  background: var(--c-card);
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  animation: pulse 2s infinite;
}

.timeline-step.rejected .timeline-dot,
.timeline-step.cancelled .timeline-dot {
  background: var(--c-danger);
  border-color: var(--c-danger);
  color: #fff;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.08); }
}

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-light);
  text-align: center;
  white-space: nowrap;
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
  color: var(--c-text);
}

.timeline-time {
  font-size: 11px;
  color: var(--c-text-light);
}

/* ============ Progress Log ============ */
.log-list {
  max-height: 300px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

.log-item:last-child {
  border-bottom: none;
}

.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.log-content {
  flex: 1;
  min-width: 0;
}

.log-stage {
  font-weight: 600;
  font-size: 14px;
}

.log-note {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-top: 2px;
  word-break: break-word;
}

.log-meta {
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 4px;
  display: flex;
  gap: 12px;
}

/* ============ Toolbar / Filters ============ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-light);
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--c-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.filter-select {
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--c-card);
  appearance: none;
  -webkit-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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--c-text-light);
}

.empty-state svg {
  margin-bottom: 12px;
  color: var(--c-border-dark);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 14px;
  color: var(--c-text-light);
}

/* ============ Modal（桌面居中卡片 / 移动端底部抽屉） ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 35, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  overflow-y: auto;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--c-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 560px;
  margin-bottom: 40px;
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text-light);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--c-hover);
  color: var(--c-text);
}

.modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 漂浮在线客服：管理员在「用户管理-站点设置」配置客服链接后显示（右侧居中竖排） */
.float-service {
  position: fixed;
  right: 0;
  top: 44%;
  transform: translateY(-50%);
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 7px;
  border: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(160deg, #6366f1, #8b5cf6);
  color: #fff;
  cursor: pointer;
  box-shadow: -5px 5px 14px -6px rgba(99, 102, 241, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.float-service:hover {
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -7px 7px 18px -6px rgba(99, 102, 241, 0.7);
}
.float-service span {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
}

.toast {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.success { border-left: 4px solid var(--c-success); }
.toast.success .toast-icon { color: var(--c-success); }
.toast.error { border-left: 4px solid var(--c-danger); }
.toast.error .toast-icon { color: var(--c-danger); }
.toast.info { border-left: 4px solid var(--c-info); }
.toast.info .toast-icon { color: var(--c-info); }
.toast.warning { border-left: 4px solid var(--c-warning); }
.toast.warning .toast-icon { color: var(--c-warning); }

/* ============ Detail Page ============ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}

/* 详情页列内卡片间距统一（录音文件/合成视频/补充附件与上方卡片同为 24px，最后一张贴底）；排除仪表盘 dash-side */
.detail-grid > div:not(.dash-side) > .card { margin-bottom: 24px; }
.detail-grid > div:not(.dash-side) > .card:last-child { margin-bottom: 0; }

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.detail-label {
  font-size: 12px;
  color: var(--c-text-light);
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
  word-break: break-word;
}

.detail-value.mono {
  font-family: "SF Mono", "Fira Code", monospace;
  color: var(--c-primary);
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 100px;
  background: var(--grad-primary);
}

.status-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Stats / Charts ============ */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding-top: 20px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.chart-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 3px 3px;
  transition: height 0.4s ease;
  min-height: 4px;
  position: relative;
  background: var(--grad-primary);
}

.chart-bar-count {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
}

.chart-bar-label {
  font-size: 12px;
  color: var(--c-text-secondary);
  text-align: center;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ============ Misc ============ */
.text-secondary {
  color: var(--c-text-secondary);
}

.text-light {
  color: var(--c-text-light);
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cdd2e4;
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8b0cc;
}

/* ============ 消息提醒（铃铛 + 面板） ============ */
.notif-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-card);
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-bell:hover {
  color: var(--c-primary);
  border-color: #c7d2fe;
  background: var(--c-primary-bg);
}

.notif-wrap.has-unread .notif-bell {
  color: var(--c-primary);
  border-color: #c7d2fe;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 300;
  overflow: hidden;
}

.notif-wrap.open .notif-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  font-size: 14px;
  background: #f8f9fd;
}

.notif-panel-actions {
  display: flex;
  gap: 4px;
}

.notif-mini-btn {
  border: none;
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.notif-mini-btn:hover {
  background: var(--c-primary-bg);
  color: var(--c-primary);
}

.notif-panel-list {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f3f9;
  cursor: pointer;
  transition: background 0.12s ease;
}

.notif-item:hover {
  background: #f8f9fe;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-item.unread .notif-item-dot {
  background: var(--c-danger);
  box-shadow: 0 0 0 3px var(--c-danger-bg);
}

.notif-item.unread .notif-item-title {
  color: var(--c-text);
}

.notif-item-title {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
}

.notif-item.unread .notif-item-title {
  font-weight: 700;
}

.notif-item-msg {
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-top: 2px;
  line-height: 1.5;
  word-break: break-all;
}

.notif-item-time {
  font-size: 11px;
  color: var(--c-text-light);
  margin-top: 4px;
}

.notif-empty {
  padding: 36px 14px;
  text-align: center;
  color: var(--c-text-light);
  font-size: 13px;
}

.notif-wrap.shake .notif-bell {
  animation: notifShake 0.7s ease;
}

@keyframes notifShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
}

/* ============ 分享试听 ============ */
.share-order-info {
  background: var(--c-primary-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.share-order-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}

.share-order-meta {
  font-size: 12px;
  color: var(--c-text-secondary);
}

.share-hint {
  font-size: 12px;
  color: var(--c-text-light);
  line-height: 1.8;
  background: #f8f9fd;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 4px;
}

.share-hint strong {
  color: var(--c-text-secondary);
}

.share-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-link-box .form-input {
  flex: 1;
  font-size: 12px;
  color: var(--c-text-secondary);
  background: #f8f9fd;
}

/* 分享试听文案：发送效果预览 */
.share-text-preview {
  background: #f8f9fd;
  border: 1px dashed var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--c-text-secondary);
  max-height: 180px;
  overflow-y: auto;
}

/* ============ 办理手机号 / 运营商识别 ============ */

.phone-input-row {
  display: flex;
  gap: 10px;
}
.phone-input-row .form-input {
  flex: 1;
}
.phone-input-row .btn {
  align-self: flex-start;
  margin-top: 2px;
}
.phone-batch-input {
  min-height: 74px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

/* 语音文本错别字检查 */
.script-check-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.script-check-summary {
  font-size: 13px;
  color: #64748b;
}
.script-check-summary .sc-ok {
  color: #10b981;
  font-weight: 600;
}
.script-check-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.sc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  background: #f8f9fd;
}
.sc-item.sc-error {
  border-left-color: #ef4444;
  background: #fef2f2;
}
.sc-item.sc-warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.sc-item.sc-info {
  border-left-color: #94a3b8;
  background: #f8f9fd;
}
.sc-item.sc-poly {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
}
.sc-item.sc-poly .sc-kind {
  background: rgba(139, 92, 246, 0.14);
  color: #6d28d9;
}
.sc-item.sc-poly .sc-suggestion {
  color: #6d28d9;
}
.sc-kind {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.sc-item.sc-error .sc-kind {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.sc-item.sc-warn .sc-kind {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.sc-snippet {
  color: #334155;
  font-weight: 600;
}
.sc-suggestion {
  color: #64748b;
  flex: 1;
  min-width: 200px;
}
.sc-fix-btn {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #eef2ff;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 600;
}
.sc-fix-btn:hover {
  background: #e0e7ff;
}

/* 语音文本 AI 改写（讯飞星火） */
.ai-rewrite-card {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #fafbff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-rewrite-loading {
  font-size: 13px;
  color: #6d28d9;
  padding: 6px 0;
}
.ai-rewrite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-rewrite-title {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
}
.ai-rewrite-x {
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.ai-rewrite-x:hover {
  background: #eef2ff;
  color: #4f46e5;
}
.ai-rewrite-orig,
.ai-rewrite-new {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-all;
}
.ai-rewrite-orig {
  opacity: 0.72;
}
.ai-rewrite-new {
  background: #fff;
  border: 1px dashed #c7d2fe;
  border-radius: 8px;
  padding: 10px 12px;
}
.ai-rewrite-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.12);
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}
.ai-rewrite-actions {
  display: flex;
  gap: 8px;
}

.phone-detect {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
  margin-top: 8px;
}
.phone-detect-label {
  font-size: 13px;
  color: #64748b;
}

.phone-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-list-empty {
  font-size: 13px;
  color: #94a3b8;
  padding: 10px 14px;
  background: #f8f9fd;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}
.phone-list.plain .phone-list-empty {
  display: none;
}

/* 电信手机号提示条：检测到电信号码时建议使用电信专用背景音乐 */
.telecom-bgm-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: #cffafe;
  border: 1px solid #a5f3fc;
  color: #0e7490;
  font-size: 13px;
  line-height: 1.5;
}
.telecom-bgm-hint-icon {
  flex-shrink: 0;
  font-size: 15px;
}
.telecom-bgm-hint strong {
  color: #155e75;
  font-weight: 700;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f8f9fd;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}
.phone-item:hover {
  border-color: #c7d2fe;
}
.phone-item.static {
  cursor: default;
}

.phone-num {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1e293b;
}

.phone-carrier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carrier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ported-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.phone-ported-select {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  outline: none;
}
.phone-ported-select:focus {
  border-color: #6366f1;
}

.phone-item .file-remove {
  flex-shrink: 0;
}

/* ============ 登录页 ============ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 520px at 12% -5%, rgba(99, 102, 241, 0.4), transparent 62%),
    radial-gradient(760px 480px at 92% 105%, rgba(139, 92, 246, 0.38), transparent 62%),
    radial-gradient(500px 300px at 85% 15%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(150deg, #101227 0%, #1c1b3f 52%, #312e81 100%);
  padding: 20px;
  overflow-y: auto;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  animation: loginFloat 9s ease-in-out infinite alternate;
}

.login-screen::before {
  width: 340px;
  height: 340px;
  left: -80px;
  bottom: -100px;
  background: rgba(79, 70, 229, 0.55);
}

.login-screen::after {
  width: 300px;
  height: 300px;
  right: -60px;
  top: -80px;
  background: rgba(139, 92, 246, 0.5);
  animation-delay: -4.5s;
}

@keyframes loginFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(36px, -28px) scale(1.12); }
}

.login-screen.hidden {
  display: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(10, 12, 36, 0.65);
  padding: 38px 34px 30px;
  animation: loginIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 20px 0;
}

@keyframes loginIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 0.65);
}

.login-header h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-header p {
  font-size: 13px;
  color: var(--c-text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  text-align: left;
}

.login-field .form-label {
  margin-bottom: 7px;
}

.password-wrap {
  position: relative;
}

.password-wrap .form-input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text-light);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: var(--c-hover);
  color: var(--c-text);
}

.login-error {
  background: var(--c-danger-bg);
  color: #b91c1c;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border-left: 3px solid var(--c-danger);
}

/* 268 轮：登录页「服务器连接失败」黄条提示（登录表单上方） */
.login-sync-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
  padding: 9px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.login-remember {
  display: flex;
  justify-content: flex-start;
  margin-top: -4px;
}

.login-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--c-text-light);
  cursor: pointer;
  user-select: none;
}

.login-remember-label:hover {
  color: var(--c-text);
}

.login-remember-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--c-primary, #4f6ef7);
  margin: 0;
}

.login-submit {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-top: 4px;
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
}

.login-submit:hover:not(:disabled) {
  background: var(--grad-primary-hover);
  transform: translateY(-1px);
}

.login-accounts {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--c-border);
}

.login-accounts-title {
  font-size: 12px;
  color: var(--c-text-light);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f8f9fd;
}

.account-chip:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
  transform: translateY(-1px);
}

.account-role {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}

.role-admin { background: #fef3c7; color: #b45309; }
.role-staff { background: #dbeafe; color: #1d4ed8; }
.role-service { background: #d1fae5; color: #047857; }

.account-cred {
  font-size: 12px;
  color: var(--c-text-secondary);
  font-family: "SF Mono", "Fira Code", monospace;
}

.login-accounts-hint {
  font-size: 11px;
  color: var(--c-text-light);
  text-align: center;
  margin-top: 8px;
}

/* App hidden until login */
#app.app-hidden {
  display: none;
}

/* ============ Logout Button ============ */
.logout-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #7d84ad;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

/* ============ 修改密码按钮（侧边栏，与退出并排，263 轮） ============ */
.logout-btn.pwd-btn + .logout-btn { margin-left: 0; }

.logout-btn.pwd-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}

/* ============ User Management ============ */
.user-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.user-role-badge.admin { background: #fef3c7; color: #b45309; }
.user-role-badge.staff { background: #dbeafe; color: #1d4ed8; }
.user-role-badge.service { background: #d1fae5; color: #047857; }

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-text-secondary);
}

.user-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-success);
}

.user-status.disabled .dot {
  background: var(--c-text-light);
}

.permission-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--c-text-light);
  background: var(--c-slate-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px 3px 2px 0;
}

.permission-tag.on {
  color: var(--c-primary);
  background: var(--c-primary-bg);
  font-weight: 600;
}

/* 用户自定义权限标记 */
.user-perm-custom {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: #f3e8ff;
  color: #7c3aed;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: middle;
}

/* 用户权限设置（添加 / 编辑用户弹窗） */
.perm-mode-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.perm-mode {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-secondary);
  cursor: pointer;
}

.perm-mode input { accent-color: var(--c-primary); }

.perm-check-area { margin-top: 2px; }

.perm-group { margin-bottom: 10px; }

.perm-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: 6px;
}

.perm-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perm-check-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--c-text);
  padding: 5px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.perm-check-item:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-bg);
}

.perm-check-item input { accent-color: var(--c-primary); }

.no-perm-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-warning-bg);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ============ 客户案例 ============ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.case-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  box-shadow: 0 14px 32px -12px rgba(79, 70, 229, 0.22);
  transform: translateY(-3px);
}

.case-card .audio-player {
  margin-top: 4px;
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-type-badge {
  flex-shrink: 0;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-primary-bg);
  color: var(--c-primary);
  font-weight: 600;
}

.case-date {
  font-size: 12px;
  color: var(--c-text-light);
}

.case-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-secondary);
  margin: 12px 0 6px;
}

.case-script {
  background: #f8f9fd;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #334155;
  max-height: 120px;
  overflow-y: auto;
}

.case-hl {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 3px;
}

.case-no-audio {
  font-size: 12px;
  color: var(--c-text-light);
  background: #f8f9fd;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.case-order {
  font-size: 12px;
  color: var(--c-text-light);
  margin-right: auto;
}

/* ============ 二销提单 ============ */

/* 订单列表：订单号旁的二销小徽章 */
.resale-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

/* 新建提单页：卡片头部的二销标识 */
.resale-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 12px;
  font-weight: 600;
}

/* 新建提单页：二销提示条 */
.resale-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 13px;
  line-height: 1.7;
}

/* ============ 数据统计：日期筛选 + 业绩 ============ */

.stats-range-card {
  margin-bottom: 16px;
}

/* ===== 数据统计页：板块间距统一（flex gap 替代零散 margin）===== */
.stats-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-page .stats-range-card,
.stats-page .stat-grid {
  margin-bottom: 0;
}

.stats-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-range-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
}

.stats-date-input {
  width: 150px !important;
  padding: 6px 10px !important;
  font-size: 13px;
}

.stats-range-sep {
  font-size: 13px;
  color: var(--c-text-light);
}

.stats-presets {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.stats-preset-btn {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-secondary);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stats-preset-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-bg);
}

.perf-range-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-light);
  margin-left: auto;
}

.perf-grid {
  margin-bottom: 0;
}

.perf-table td,
.perf-table th {
  text-align: left;
}

.perf-table .perf-rank {
  width: 52px;
  text-align: center;
  font-weight: 600;
}

.perf-table .perf-name {
  font-weight: 600;
  color: var(--c-text);
}

.perf-table .perf-amount {
  font-weight: 700;
  color: #059669;
}

.perf-share-cell {
  min-width: 140px;
}

.perf-share-bar {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 8px;
  background: #eef0f8;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 8px;
}

.perf-share-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: 4px;
}

.perf-share-cell em {
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-secondary);
}

.perf-muted {
  color: var(--c-text-light);
}

/* ============ 表单设置（管理员） ============ */

.fs-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fs-intro-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}

.fs-intro-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.fs-table td,
.fs-table th {
  vertical-align: middle;
}

.fs-order {
  white-space: nowrap;
  width: 84px;
}

.fs-move-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text-secondary);
  cursor: pointer;
  margin-right: 4px;
  font-size: 12px;
  line-height: 1;
  transition: all 0.15s ease;
}

.fs-move-btn:hover:not(:disabled) {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-bg);
}

.fs-move-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.fs-label {
  font-weight: 600;
  color: var(--c-text);
}

.fs-tags {
  white-space: nowrap;
}

.fs-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  font-weight: 600;
}

.fs-tag-builtin { background: #eef2ff; color: #4f46e5; }
.fs-tag-custom { background: #f0fdfa; color: #0d9488; }
.fs-tag-required { background: #fee2e2; color: #dc2626; }
.fs-tag-optional { background: #f1f5f9; color: #64748b; }
.fs-tag-on { background: #d1fae5; color: #059669; }
.fs-tag-off { background: #fef3c7; color: #b45309; }
.fs-tag-locked { background: #ede9fe; color: #7c3aed; }

/* ============ 时间线设置（管理员） ============ */
.ts-swatch {
  display: inline-block; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12); vertical-align: -3px;
  flex-shrink: 0;
}
.ts-hex {
  font-size: 12px; color: var(--c-text-light); font-family: Consolas, Monaco, monospace;
}
.ts-trigger {
  font-size: 12.5px; color: var(--c-text-light); max-width: 280px;
}
.ts-tcolor {
  width: 44px; height: 32px; padding: 2px; border: 1px solid var(--c-border);
  border-radius: 8px; cursor: pointer; background: var(--c-card); vertical-align: middle;
}

.fs-row-off td {
  color: var(--c-text-light);
}

.fs-row-off .fs-label {
  color: var(--c-text-light);
  text-decoration: line-through;
}

/* ============ 表单：单选/多选选项组（字段类型自定义） ============ */
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid #d9e2ec; border-radius: var(--radius); background: #fff;
  font-size: 14px; color: #334155; cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.choice-chip:hover { border-color: #2563eb; }
.choice-chip input { accent-color: #2563eb; margin: 0; width: 15px; height: 15px; }
.choice-chip:has(input:checked) { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 500; }
.fs-tag.fs-tag-default { background:#f5f3ff; color:#7c3aed; border:1px solid #ddd6fe; }

/* 备注标签：订单详情勾选标签胶囊展示 */
.remark-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.remark-tag-chip {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 999px; background: #eff6ff; color: #1d4ed8;
  border: 1px solid #bfdbfe; font-size: 13px; font-weight: 500; line-height: 1.6;
}

/* ============ 客户试听确认（确定上传） ============ */
.audio-confirm-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: #eff6ff; border: 1px dashed #93c5fd; font-size: 13px; color: #1e40af;
}
.audio-confirm-bar.confirmed { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 500; }
.audio-confirm-bar.waiting { background: #f8f9fd; border: 1px dashed #cbd5e1; color: #64748b; font-size: 12px; }

/* ============ 讯飞语音合成配置区 ============ */
.tts-cred-box {
  margin-top: 12px; padding: 14px; border-radius: var(--radius);
  background: #faf5ff; border: 1px dashed #d8b4fe;
}

/* ============ AI 录音 / 免费试听 背景音乐混音音量滑块（统一样式） ============ */
#ttsBgmVolume,
#trialBgmVolume,
.bgm-volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px; border-radius: 3px; outline: none;
  background: #e2e8f0; cursor: pointer;
}
#ttsBgmVolume::-webkit-slider-thumb,
#trialBgmVolume::-webkit-slider-thumb,
.bgm-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-primary); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
#ttsBgmVolume::-moz-range-thumb,
#trialBgmVolume::-moz-range-thumb,
.bgm-volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-primary); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
#ttsBgmVolLabel,
#trialBgmVolLabel,
.bgm-vol-percent { color: var(--c-primary); font-weight: 600; }

/* ============ 播音员 / 背景音乐素材库（管理员） ============ */
.al-name { font-weight: 500; }
.al-file { white-space: nowrap; }
.al-file-name { font-size: 13px; }
.al-current-file {
  padding: 10px 14px; border-radius: var(--radius); background: #f8f9fd;
  border: 1px solid var(--c-border); font-size: 14px;
}
.al-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px; border: 2px dashed #cbd5e1; border-radius: var(--radius-lg);
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
  background: #f8f9fd;
}
.al-upload-zone:hover { border-color: #6366f1; background: #eef2ff; }
.al-upload-zone.dragover { border-color: #6366f1; background: #e0e7ff; }
.al-upload-zone .upload-icon { color: #94a3b8; }
.al-upload-zone:hover .upload-icon { color: #6366f1; }
.al-file-card {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 10px 14px; border-radius: var(--radius);
  background: #f0fdf4; border: 1px solid #bbf7d0;
}
.al-file-card svg { color: #059669; flex-shrink: 0; }
.al-file-info { flex: 1; min-width: 0; }
.al-file-info > div:first-child { font-size: 14px; }
.al-player-label {
  font-size: 13px; color: #64748b; white-space: nowrap;
}

/* ==========================================================
   响应式布局
   ========================================================== */

/* --- 平板：≤1024px --- */
@media (max-width: 1024px) {
  .detail-grid {
    /* minmax(0,1fr)：详情列内 nowrap 文件名（合成视频/附件）不再把网格最小宽度撑爆，
       避免手机端整页横向溢出、顶栏被顶出屏幕（246 轮） */
    grid-template-columns: minmax(0, 1fr);
  }
  .case-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* --- 手机：≤768px --- */
@media (max-width: 768px) {
  /* --- 侧边栏：抽屉式 --- */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    width: min(80vw, 260px);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.4);
  }
  .sidebar-backdrop.show {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-item {
    padding: 13px 14px;
    font-size: 15px;
  }
  .nav-item:hover {
    transform: none;
  }
  .sidebar-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* --- 顶栏 --- */
  .topbar {
    padding: 0 14px;
    height: 58px;
  }
  .page-title {
    font-size: 17px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions .btn-sm {
    padding: 7px 11px;
  }

  /* --- 页面内容 --- */
  .page-content {
    padding: 14px;
  }

  .stats-page {
    gap: 14px;
  }

  /* --- 统计卡片：两列 --- */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    border-radius: 14px;
  }
  .stat-card:hover {
    transform: none;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  /* --- 表格：紧凑化 --- */
  th,
  td {
    padding: 10px 10px;
    font-size: 13px;
  }
  .trial-customer-name {
    max-width: 150px;
  }
  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  /* --- 订单表格：卡片式（免横向滚动） --- */
  .table-orders thead {
    display: none;
  }
  .table-orders,
  .table-orders tbody {
    display: block;
    width: 100%;
  }
  .table-orders tbody tr {
    display: block;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    margin: 0 0 12px;
    padding: 4px 0;
    background: var(--c-card);
    box-shadow: var(--shadow-sm);
  }
  .table-orders tbody tr:last-child {
    margin-bottom: 0;
  }
  .table-orders tbody tr:hover {
    background: var(--c-card);
  }
  .table-orders td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 16px;
    border-bottom: 1px dashed var(--c-border);
    text-align: right;
    font-size: 13.5px;
  }
  .table-orders td:last-child {
    border-bottom: none;
    justify-content: flex-end;
    padding: 6px 16px 10px;
  }
  .table-orders td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-light);
    text-align: left;
    flex-shrink: 0;
  }
  /* 客户称呼：td 保持满宽（整行对齐），仅对值 span 限宽右对齐截断 */
  .table-orders .trial-customer-name {
    max-width: 62%;
    text-align: right;
  }

  /* --- 表单 --- */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-input,
  .form-select,
  .form-textarea,
  .search-box input,
  .filter-select {
    font-size: 16px; /* 避免 iOS 聚焦自动放大 */
  }
  .form-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .form-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
  }
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 14px;
  }
  /* 手机端列内卡片间距与列间距一致（14px） */
  .detail-grid > div:not(.dash-side) > .card { margin-bottom: 14px; }
  .detail-grid > div:not(.dash-side) > .card:last-child { margin-bottom: 0; }

  /* --- 卡片 --- */
  .card {
    border-radius: 14px;
  }
  .card-header {
    padding: 13px 15px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-body {
    padding: 15px;
  }
  /* 客户试听确认条：手机端提示文字+按钮换行，不再横向挤压溢出（246 轮） */
  .audio-confirm-bar {
    flex-wrap: wrap;
  }
  .upload-zone {
    padding: 24px 14px;
  }

  /* --- 时间线：紧凑化 --- */
  .timeline-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-width: 2px;
  }
  .timeline-line,
  .timeline-line-fill {
    top: 14px;
  }
  .timeline-track {
    margin: 0 6px;
  }
  .timeline-step {
    gap: 6px;
  }
  .timeline-label {
    font-size: 11px;
    white-space: normal;
    line-height: 1.3;
    max-width: 52px;
  }
  .timeline-time {
    font-size: 10px;
  }

  /* --- 弹窗：底部抽屉式 --- */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 22px 22px 0 0;
    animation: sheetIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 100px;
    background: var(--c-border-dark);
    margin: 10px auto 0;
  }
  @keyframes sheetIn {
    from { opacity: 0.4; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .modal-header {
    padding: 14px 18px;
  }
  .modal-title {
    font-size: 16px;
  }
  .modal-close {
    padding: 8px;
  }
  .modal-body {
    padding: 16px 18px;
    max-height: 62vh;
  }
  .modal-footer {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    min-height: 44px;
  }

  /* --- 按钮：加大触控区 --- */
  .btn {
    padding: 11px 16px;
  }
  .btn-sm {
    padding: 8px 12px;
  }
  .row-action {
    width: 38px;
    height: 38px;
  }

  /* --- Toast --- */
  .toast-container {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  /* --- 消息面板 --- */
  .notif-panel {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  /* --- 图表 --- */
  .chart-bars {
    gap: 8px;
  }
  .chart-bar {
    max-width: 36px;
  }
  .chart-bar-label {
    font-size: 11px;
  }

  /* --- 工具栏/筛选 --- */
  .search-box {
    min-width: 100%;
    max-width: none;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  /* --- 手机号输入行 --- */
  .phone-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .phone-input-row .btn {
    align-self: stretch;
    margin-top: 0;
  }

  /* --- 数据统计日期筛选 --- */
  .stats-presets {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .stats-date-input {
    width: 128px !important;
    flex: 1;
  }

  /* --- 登录页 --- */
  .login-card {
    padding: 26px 20px 22px;
  }
  .login-screen {
    padding: 12px;
  }

  /* --- 分享链接 --- */
  .share-link-box {
    flex-direction: column;
    align-items: stretch;
  }

  /* --- 日志元信息 --- */
  .log-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* --- 公告列表高度放开 --- */
  .dash-side .ann-list {
    max-height: 260px;
  }
}

/* --- 小屏手机：≤480px --- */
@media (max-width: 480px) {
  /* --- 极小屏：顶栏按钮只留图标 --- */
  .topbar-actions .btn-sm span {
    display: none;
  }
  .topbar-actions .btn-sm {
    padding: 8px 10px;
  }

  /* --- 统计卡片更紧凑 --- */
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card-top {
    margin-bottom: 8px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-card-label {
    font-size: 12px;
  }

  /* --- 案例卡片单列 --- */
  .case-grid {
    grid-template-columns: 1fr;
  }

  /* --- 表格进一步紧凑 --- */
  th,
  td {
    padding: 9px 8px;
    font-size: 12px;
  }
  .table-orders .trial-customer-name {
    max-width: 52%;
  }
  .table-orders td {
    padding: 8px 13px;
  }

  /* --- 时间线隐藏具体时间只留标签 --- */
  .timeline-time {
    display: none;
  }

  /* --- 登录账号卡片允许换行 --- */
  .account-cred {
    word-break: break-all;
  }

  /* --- 音频控制 --- */
  .audio-controls {
    gap: 8px;
  }
  .audio-time {
    font-size: 11px;
  }

  /* --- 公告条目 --- */
  .ann-item {
    padding: 12px 12px;
  }
  .ann-item-preview {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* --- 超小屏：≤360px --- */
@media (max-width: 360px) {
  .page-content {
    padding: 10px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .timeline-label {
    max-width: 44px;
  }
  .topbar-actions {
    gap: 6px;
  }
}

/* --- 横屏矮屏优化 --- */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 480px) {
  .modal-body {
    max-height: 70vh;
  }
  .sidebar {
    width: min(60vw, 240px);
  }
}

/* ============ 产品分销 ============ */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.dist-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-card);
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(23, 25, 43, 0.25);
  border-color: var(--c-primary-light);
}
.dist-card-off { opacity: 0.6; }
.dist-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dist-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(99, 102, 241, 0.6);
}
.dist-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.dist-off-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-light);
  background: var(--c-bg);
  padding: 2px 8px;
  border-radius: 99px;
}
.dist-desc {
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.6;
  min-height: 42px;
  margin-bottom: 10px;
}
.dist-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.dist-price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-light);
  margin-left: 2px;
}
.dist-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.dist-card-actions .btn-primary {
  flex: 1;
}
@media (max-width: 768px) {
  .dist-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ 彩铃文案（自有铃音库查询） ============ */
.ring-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--c-text-light, #6b7280);
  font-size: 14px;
  min-height: 120px;
}
.ring-empty.ring-error {
  color: #dc2626;
}
.ring-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-primary, #2563eb);
  border-top-color: transparent;
  border-radius: 50%;
  animation: ring-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
.ring-card {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--c-card-bg, #ffffff);
}
.ring-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ring-type-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 999px;
  padding: 2px 10px;
}
.ring-time {
  font-size: 12px;
  color: var(--c-text-light, #6b7280);
}
.ring-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}
.ring-btn {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 6px;
  background: transparent;
  color: var(--c-text, #1f2937);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ring-btn:hover {
  border-color: var(--c-primary, #2563eb);
  color: var(--c-primary, #2563eb);
}
.ring-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text, #1f2937);
  white-space: pre-wrap;
  word-break: break-word;
}
.ring-content span {
  color: #e11d48;
  font-weight: 600;
}
.ring-audio {
  display: none;
  width: 100%;
  margin-top: 10px;
  height: 36px;
}
.ring-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.ring-pager-info {
  font-size: 13px;
  color: var(--c-text-light, #6b7280);
}

/* ============ 集团管理（欣能汇视频彩铃） ============ */
.gm-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.gm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gm-tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--c-border, #e5e7eb);
  background: var(--c-card, #fff);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary, #5d6480);
  transition: all 0.15s ease;
}
.gm-tab:hover {
  border-color: var(--c-primary-light, #818cf8);
  color: var(--c-primary, #6366f1);
}
.gm-tab.active {
  background: var(--grad-primary, #6366f1);
  color: #fff;
  border-color: transparent;
}
.gm-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.gm-info-item {
  background: var(--c-bg, #f5f6fb);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 0;
}
.gm-info-label {
  font-size: 12px;
  color: var(--c-text-light, #9aa1b9);
  margin-bottom: 4px;
  white-space: nowrap;
}
.gm-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text, #17192b);
  word-break: break-all;
}
.gm-radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
/* 表格内截断 span（第 181 轮教训：截断不挂在 td 上） */
.table-title-text {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
/* 铃音库带入列表项 */
.gm-lib-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.gm-lib-item:hover {
  border-color: var(--c-primary-light, #818cf8);
}
.gm-lib-name {
  font-size: 13px;
  color: var(--c-text, #17192b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 时间线设置：细分状态按阶段关联 ============ */
.fs-subs {
  min-width: 180px;
}
.subs-chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
  white-space: nowrap;
}
.subs-stage-block {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.subs-stage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--c-bg-subtle, #f8fafc);
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  font-size: 14px;
}
.subs-stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.subs-stage-count {
  font-size: 12px;
  color: var(--c-text-light, #6b7280);
  margin-right: auto;
}
.subs-stage-title .subs-add {
  margin-left: 8px;
}
.subs-stage-block .table-wrapper {
  padding: 0;
}
.subs-stage-block .fs-table {
  margin: 0;
}
.subs-ops {
  white-space: nowrap;
  text-align: right;
}
.subs-ops .subs-stage {
  margin-right: 8px;
  display: inline-block;
}
.subs-empty-row td {
  padding: 18px 14px !important;
  text-align: center;
}

/* 融合：细分编辑区内嵌在阶段行下方（阶段名称下面） */
.fs-subs-inline td {
  background: var(--c-bg-subtle, #f8fafc);
  padding: 12px 16px !important;
  border-top: 1px dashed var(--c-border, #e5e7eb);
}
.fs-subs-inline .subs-stage-block {
  background: var(--c-card, #ffffff);
  margin-bottom: 0;
}
.fs-subs-inline .subs-stage-title {
  background: transparent;
}
.fs-subs-inline .subs-tbl .subs-tlabel {
  max-width: 140px;
}
.fs-subs-inline .subs-tbl .subs-ttrigger {
  min-width: 220px;
}
@media (max-width: 768px) {
  .fs-subs-inline td {
    padding: 8px !important;
  }
}

/* ============ 栏目排序（用户管理页） ============ */
.nav-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}
.nav-order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm, 8px);
  background: var(--c-bg);
  transition: border-color 0.15s ease;
}
.nav-order-row:hover {
  border-color: var(--c-primary-light);
}
.nav-order-num {
  width: 22px;
  height: 22px;
  border-radius: 100px;
  background: var(--c-primary-bg);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-order-name {
  flex: 1;
  font-size: 13px;
  color: var(--c-text);
}
.nav-order-ops {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.nav-order-ops .row-action {
  width: 28px;
  height: 28px;
}
@media (max-width: 768px) {
  .nav-order-list {
    max-width: none;
  }
}

/* ============ 登录页联系方式 ============ */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 6px;
  background: #f8f9fd;
}
.contact-label {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--c-primary-bg, #e8f0ff);
  color: var(--c-primary, #2563eb);
  flex-shrink: 0;
}
.contact-value {
  font-size: 12px;
  color: var(--c-text-secondary);
  font-family: "SF Mono", "Fira Code", monospace;
}

/* ============ 免费试听 ============ */
/* 管理员：全员额度行 */
.trial-quota-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #e8eaf3;
}
.trial-quota-row:last-child {
  border-bottom: none;
}
.trial-quota-name {
  width: 110px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.trial-quota-bar {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: #eceef7;
  overflow: hidden;
}
.trial-quota-count {
  width: 52px;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
/* 员工：本人额度卡片 */
.trial-quota-me {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trial-quota-me-num {
  text-align: center;
  min-width: 96px;
}
.trial-quota-me-info {
  flex: 1;
  min-width: 200px;
}
/* 试听文案列：允许长词换行，防手机端溢出 */
.trial-text-cell {
  word-break: break-word;
}

/* --- 手机端 --- */
@media (max-width: 768px) {
  .trial-quota-name {
    width: 84px;
    font-size: 12.5px;
  }
  .trial-quota-count {
    width: 46px;
    font-size: 12.5px;
  }
  .trial-quota-me {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .trial-quota-me-num {
    min-width: 0;
  }
  .trial-quota-me-info {
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .trial-quota-row {
    gap: 8px;
  }
  .trial-quota-name {
    width: 66px;
    font-size: 12px;
  }
  .trial-quota-count {
    width: 42px;
    font-size: 12px;
  }
}


/* ===== 试听记录行操作按钮（对齐全站按钮语言：var(--radius) 圆角 + 统一间距）===== */
.trial-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trial-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.trial-act:active:not(:disabled) {
  transform: translateY(1px);
}

.trial-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trial-act:focus-visible {
  outline: 2px solid var(--c-primary-light);
  outline-offset: 2px;
}

.trial-act-primary {
  background: var(--c-primary-bg);
  color: var(--c-primary-dark);
}

.trial-act-primary:hover:not(:disabled) {
  background: #e0e7ff;
  color: #4338ca;
}

.trial-act-share {
  background: var(--c-card);
  color: var(--c-text-secondary);
  border-color: var(--c-border-dark);
}

.trial-act-share:hover:not(:disabled) {
  background: var(--c-hover);
  color: var(--c-text);
  border-color: var(--c-text-light);
}

.trial-act-danger {
  background: #fef2f2;
  color: #dc2626;
}

.trial-act-danger:hover:not(:disabled) {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 768px) {
  /* 移动端卡片行：按钮组靠右自动换行，触控目标稍大 */
  .trial-acts {
    justify-content: flex-end;
    gap: 8px;
  }
  .trial-act {
    padding: 7px 14px;
  }
}

/* ============ 右下角待处理提单弹窗（员工/审核角色） ============ */
.pending-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
}

.pending-popup.show {
  display: block;
  animation: ppIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ppIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
}

.pp-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
  flex: 1;
  white-space: nowrap;
}

.pp-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--c-primary, #4f46e5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-close {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pp-close:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--c-primary, #4f46e5);
}

.pp-list {
  max-height: 300px;
  overflow-y: auto;
}

.pp-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pp-item:last-child {
  border-bottom: none;
}

.pp-item:hover {
  background: var(--c-hover, #f8fafc);
}

.pp-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pp-oid {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pp-cust {
  font-size: 12.5px;
  color: var(--c-text);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-reason {
  font-size: 11.5px;
  color: var(--c-text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-more {
  padding: 8px 14px;
  font-size: 11.5px;
  color: var(--c-text-secondary);
  text-align: center;
  border-top: 1px solid var(--c-border);
  background: var(--c-hover, #f8fafc);
}

@media (max-width: 768px) {
  .pending-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
  .pp-list {
    max-height: 240px;
  }
}

/* ✕ 收起后的半隐藏小圆片（点击可再次展开） */
.pending-popup.collapsed {
  width: auto;
  max-width: none;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.pp-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.32);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pp-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.42);
}

.pp-pill:active {
  transform: translateY(0) scale(0.97);
}

.pp-pill .pp-badge {
  background: #fff;
  color: var(--c-primary, #4f46e5);
}

.pp-pill-ico {
  font-size: 15px;
  line-height: 1;
}

/* ============ 制作视频：开场设置卡（242 轮） ============ */
#vmIntroBody { display: flex; flex-direction: column; gap: 12px; }
.vm-field-top { align-items: flex-start; }
.vm-field-top .vm-field-label { margin-top: 8px; }

/* 横竖屏 / 字幕效果：双卡片单选 */
.vm-intro-orient,
.vm-intro-styles {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.vm-orient-card,
.vm-style-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1.5px solid var(--c-border-dark, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text);
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vm-orient-card input,
.vm-style-card input { display: none; }
.vm-orient-card:hover,
.vm-style-card:hover { border-color: #c7d2fe; }
.vm-orient-card.selected,
.vm-style-card.selected {
  border-color: var(--c-primary, #4f46e5);
  background: #eef2ff;
  color: var(--c-primary, #4f46e5);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

/* 片头字幕：3 行输入 + 字数计数 */
.vm-intro-texts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vm-intro-line { display: flex; align-items: center; gap: 8px; }
.vm-intro-line .form-input { flex: 1; min-width: 0; }
.vm-char-count {
  flex-shrink: 0;
  width: 42px;
  text-align: right;
  font-size: 12px;
  color: var(--c-text-light);
  font-variant-numeric: tabular-nums;
}

/* 片头效果：缩略图网格（无片头 + 管理员上传的开场视频） */
.vm-intro-list {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.vm-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1.5px solid var(--c-border-dark, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vm-intro-card input { display: none; }
.vm-intro-card:hover { border-color: #c7d2fe; }
.vm-intro-card.selected {
  border-color: var(--c-primary, #4f46e5);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}
.vm-intro-card.selected > span:not(.vm-intro-thumb) {
  color: var(--c-primary, #4f46e5);
  font-weight: 700;
}
.vm-intro-card > span:not(.vm-intro-thumb) {
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vm-intro-card small { font-size: 11px; color: var(--c-text-light); }
.vm-intro-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #e2e8f0;
  font-size: 22px;
}
.vm-intro-thumb-none { font-size: 13px; font-weight: 700; color: #cbd5e1; }

@media (max-width: 980px) {
  .vm-intro-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .vm-intro-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vm-intro-orient,
  .vm-intro-styles { flex-direction: column; }
  .vm-intro-line { flex-wrap: wrap; }
  .vm-intro-line .form-input { min-width: 120px; }
}

/* 背景图选择弹窗：缩略图卡片（243 轮，直接展示图片本身） */
.vm-bg-thumb {
  height: 96px;
  font-size: 13px;
  color: #94a3b8;
  overflow: hidden;
}
.vm-bg-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* 片头效果选择卡：视频首帧缩略图（244 轮，复用 .vm-bg-thumb 96px + img cover） */
.vm-intro-card .vm-bg-thumb { background: #0f172a; }

/* 竖屏 9:16 卡片（245 轮，用户确认片头卡一并统一）。
   竖屏素材（背景图 1242x2208、竖版片头视频首帧）在横版 96px 高卡片 + cover 下只会裁出中部横带，视觉上像空白；
   选择背景图弹窗与片头效果选择统一 3 列竖版卡完整呈现整图/首帧，「无片头」占位卡同比例对齐 */
.vm-intro-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vm-intro-list .vm-bg-thumb {
  height: auto;
  aspect-ratio: 9 / 16;
}
.vm-intro-list .vm-intro-thumb-none {
  height: auto;
  aspect-ratio: 9 / 16;
}

/* 横屏片头卡 16:9（247 轮）：开场方向选「横屏」时片头卡按横版展示，竖屏仍为 9:16 */
.vm-intro-list.vm-orient-landscape .vm-bg-thumb,
.vm-intro-list.vm-orient-landscape .vm-intro-thumb-none {
  aspect-ratio: 16 / 9;
}

/* ============ 数据分析（业绩填报与统计，248 轮） ============ */
.perf-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.perf-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.perf-month-label {
  font-weight: 700;
  font-size: 15px;
  min-width: 96px;
  text-align: center;
}
.perf-viewer { font-size: 12px; }
.perf-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.perf-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.perf-stat em {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}
.perf-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
}
.perf-stat i {
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
}
.perf-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.perf-badge-ok { background: #dcfce7; color: #15803d; }
.perf-badge-no { background: #fee2e2; color: #b91c1c; }
.perf-stat-bar { margin-top: 4px; }
.perf-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.perf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.perf-field > span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.perf-field .input { max-width: 120px; }
.perf-conv-preview strong {
  font-size: 16px;
  color: #4f46e5;
  line-height: 38px;
  white-space: nowrap;
}
.perf-target-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.perf-target-name { font-size: 13px; font-weight: 600; color: #334155; }
.perf-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 24px;
  align-items: start;
}
.perf-weekend td { background: #f8fafc; }
.perf-total-row td {
  font-weight: 700;
  background: #eef2ff;
  border-top: 2px solid #c7d2fe;
}
.perf-muted { color: #94a3b8; }

@media (max-width: 768px) {
  .perf-form { align-items: stretch; }
  .perf-field, .perf-field .input { max-width: none; flex: 1 1 40%; }
  .perf-conv-preview strong { line-height: 24px; }
  .perf-stat strong { font-size: 18px; }
}

/* ============ 279 轮：数据分析页视觉优化 + 手机适配 ============
   全部限定 perf- 前缀，不影响其他页面。
   桌面：月转化率主卡（渐变）、月业绩次卡、进度条渐变、数字等宽对齐；
   手机（≤768px）：统计卡 2 列 / 填报表单重排 / 周表·日表卡片化（免横向滚动）/
   排名表横向滚动 + 吸顶表头 / 44px 触控目标 / 输入 16px 防 iOS 聚焦放大。 */

/* —— 统计卡：主卡（月转化率）渐变突出 —— */
.perf-stat-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
}
.perf-stat-hero em { color: rgba(255, 255, 255, 0.85); }
.perf-stat-hero strong { color: #fff; font-size: 28px; }
.perf-stat-hero i { color: rgba(255, 255, 255, 0.65); }

/* —— 次卡（月业绩）浅渐变 —— */
.perf-stat-sub {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
}
.perf-stat-sub strong { color: #4338ca; }

/* —— 卡片悬停微反馈 + 数字等宽 —— */
.perf-stat { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.perf-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.perf-stat strong { font-variant-numeric: tabular-nums; }

/* —— 进度条：渐变填充 + 圆角 —— */
.perf-share-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.perf-share-bar span {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* —— 月份导航：圆形按钮 + 触控区 —— */
.perf-month-nav .btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.perf-month-label { letter-spacing: 0.5px; }

/* —— 填报表单：行式布局 —— */
.perf-form { row-gap: 14px; }
.perf-field-day { flex: 1 1 220px; min-width: 0; }
.perf-field-day .input { max-width: none; width: 100%; }
.perf-field-row { display: flex; gap: 12px; flex: 1 1 100%; align-items: flex-end; min-width: 0; }
.perf-field-row .perf-field { flex: 1 1 0; }
.perf-field .input { font-variant-numeric: tabular-nums; }
.perf-save-btn { min-height: 38px; white-space: nowrap; }

/* —— 表格：滚动容器（排名表列多）+ 数字等宽 —— */
.perf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.perf-week-table td, .perf-day-table td, .perf-rank-table td { font-variant-numeric: tabular-nums; }
.perf-rank-table thead th { position: sticky; top: 0; z-index: 1; }
.perf-rank-table tbody tr:nth-child(1) td { background: #fffbeb; }
.perf-rank-table tbody tr:nth-child(2) td { background: #fafafa; }
.perf-rank-table tbody tr:nth-child(3) td { background: #fff7ed; }

/* —— 手机（≤768px）—— */
@media (max-width: 768px) {
  /* 顶部栏：月份导航整行（按钮加大），员工选择整行 */
  .perf-topbar { gap: 10px; }
  .perf-month-nav { order: 1; flex: 1 1 100%; justify-content: space-between; }
  .perf-month-nav .btn { width: 44px; height: 44px; font-size: 20px; }
  .perf-month-label { min-width: 0; flex: 1; font-size: 16px; }
  .perf-topbar select.input { order: 2; flex: 1 1 100%; max-width: none; }
  .perf-viewer { order: 3; flex: 1 1 100%; }

  /* 统计卡：固定 2 列，主卡跨 2 */
  .perf-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .perf-stat { padding: 12px 14px; }
  .perf-stat strong { font-size: 19px; }
  .perf-stat-hero strong { font-size: 26px; }
  .perf-stat-hero, .perf-stat-sub, .perf-stat-rate { grid-column: span 2; }

  /* 填报表单：块化重排（旧 flex 规则覆盖） */
  .perf-form { flex-direction: column; align-items: stretch; }
  .perf-field, .perf-field .input { max-width: none; flex: 1 1 auto; width: 100%; }
  .perf-field-row { gap: 10px; }
  .perf-field .input, .perf-field-day .input { font-size: 16px; } /* 防 iOS 聚焦自动放大 */
  .perf-conv-preview strong { font-size: 20px; line-height: 40px; }
  .perf-save-btn { width: 100%; flex: 1 1 100%; min-height: 44px; font-size: 15px; }

  /* 周表 / 日表：卡片化（免横向滚动，data-label 已就绪） */
  .perf-week-table thead, .perf-day-table thead { display: none; }
  .perf-week-table, .perf-week-table tbody,
  .perf-day-table, .perf-day-table tbody { display: block; width: 100%; }
  .perf-week-table tbody tr, .perf-day-table tbody tr {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 0 0 10px;
    padding: 2px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  }
  .perf-week-table tbody tr:last-child, .perf-day-table tbody tr:last-child { margin-bottom: 0; }
  .perf-week-table tbody tr:hover, .perf-day-table tbody tr:hover { background: #fff; }
  .perf-week-table td, .perf-day-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13.5px;
    text-align: right;
  }
  .perf-week-table td:last-child, .perf-day-table td:last-child { border-bottom: none; }
  .perf-week-table td::before, .perf-day-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    flex-shrink: 0;
  }
  /* 首字段（周次/日期）作为卡片标题行 */
  .perf-week-table td:first-child, .perf-day-table td:first-child {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 10px;
    background: #f8fafc;
    border-radius: 11px 11px 0 0;
  }
  .perf-week-table td:first-child::before, .perf-day-table td:first-child::before { color: #64748b; }
  /* 周末行与合计行在卡片化下的呈现 */
  .perf-weekend td { background: transparent; }
  .perf-weekend td:first-child { background: #fefce8; color: #854d0e; }
  .perf-total-row td { font-weight: 700; background: #eef2ff; }
  .perf-total-row td:first-child { background: #e0e7ff; color: #3730a3; border-radius: 11px 11px 0 0; }
  .perf-total-row td { border-bottom: none; border-top: none; }

  /* 排名表：横向滚动 + 滚动提示阴影 */
  .perf-rank-wrap {
    position: relative;
    margin: 0 -6px;
    padding: 0 6px;
  }
  .perf-rank-table th, .perf-rank-table td { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .perf-rank-table thead th { position: sticky; top: 0; }

  /* 管理员双卡网格单列 */
  .perf-admin-grid { grid-template-columns: 1fr; }
  .perf-target-row .input { font-size: 16px; } /* 防 iOS 聚焦自动放大 */

  /* 周末行桌面悬浮样式在卡片化下的修正 */
  .perf-weekend { background: transparent; }
}

/* ============ 280 轮：填报输入框美化 ============
   根因：class="input" 全站无样式定义（7 处全在数据分析页），渲染为浏览器原生灰框。
   本轮统一接入设计系统：基础输入样式 + 大数字输入卡 + 下拉箭头自定义 + 标签焦点联动。 */

/* —— 基础：perf 区域内全部 .input（含管理员目标/网址/员工选择）—— */
.perf-form .input,
.perf-topbar select.input,
.perf-target-row .input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.perf-form .input:hover,
.perf-topbar select.input:hover,
.perf-target-row .input:hover { border-color: #c7d2fe; }
.perf-form .input:focus,
.perf-topbar select.input:focus,
.perf-target-row .input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: #fff;
}

/* —— 数字大输入卡：居中大数字 + 浅底 + 隐藏原生 spinner —— */
.perf-num-field .input.perf-num {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  padding: 13px 12px;
  background: #f8fafc;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  max-width: none;
}
.perf-num-field .input.perf-num::placeholder { font-weight: 500; color: #cbd5e1; }
.perf-num-field .input.perf-num:focus { background: #fff; }
.perf-num-field .input.perf-num:hover { background: #f1f5f9; }
.perf-num-field .input.perf-num:focus:hover { background: #fff; }
.perf-num::-webkit-outer-spin-button,
.perf-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perf-num { -moz-appearance: textfield; appearance: textfield; }

/* —— 字段行内不限宽（原 max-width:120px 是给旧紧凑布局的）—— */
.perf-field-row .perf-field .input { max-width: none; }

/* —— 标签：色点 + 聚焦联动 —— */
.perf-field > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 600;
}
.perf-field > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}
.perf-field:focus-within > span { color: #4338ca; }
.perf-field:focus-within > span::before { background: #6366f1; }

/* —— 下拉箭头自定义（appearance:none 后补回）—— */
.perf-form select.input,
.perf-topbar select.input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.perf-form select.input:focus,
.perf-topbar select.input:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* —— 手机（≤768px）：数字 20px（>16px 防 iOS 聚焦放大），触控高度达标 —— */
@media (max-width: 768px) {
  .perf-num-field .input.perf-num { font-size: 20px; padding: 14px 12px; }
  .perf-form .input, .perf-topbar select.input, .perf-target-row .input { font-size: 16px; }
}

/* ============ 281 轮：当日转化率展示修复错位 ============
   根因：strong 用 line-height(38/40px) 撑高度对齐旧版输入框，280 轮输入框加高后
   数字按旧行高排布 → 视觉错位、不居中。
   改为 flex 居中的「结果胶囊」：虚线边框示意"自动计算"，与保存按钮同高底部对齐，
   数字等宽不跳动。本段位于文件末尾，级联覆盖 5173/5203/5301 三处旧行高规则。 */
.perf-conv-preview strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  border: 1.5px dashed #c7d2fe;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1; /* 覆盖旧行高，flex 居中负责垂直对位 */
}
/* 保存按钮与胶囊同高（底部对齐不再错位） */
.perf-save-btn { min-height: 40px; }

/* 手机：44px 触控标准（本段在 279 轮手机规则之后，级联生效） */
@media (max-width: 768px) {
  .perf-conv-preview strong { min-height: 44px; font-size: 20px; }
  .perf-save-btn { min-height: 44px; }
}

/* ============ 286 轮：顶部统计卡铺满布局 ============
   原桌面 auto-fit 列数不定，宽屏下 hero/sub 只占一半宽、
   小卡零散排列右侧留白。改为固定两行铺满：
   行1：月转化率(½) + 月业绩(½)
   行2：业绩目标(¼) + 数据量目标(¼) + 完成率(½，进度条更长)
   手机 2 列（279 轮规则）：hero 全宽 → sub 全宽 → 双目标并排 → 完成率全宽，同样铺满。 */
.perf-stat-grid {
  grid-template-columns: repeat(4, 1fr); /* 覆盖 auto-fit：固定 4 列，间距统一 */
  gap: 12px;
}
.perf-stat-hero,
.perf-stat-sub,
.perf-stat-rate { grid-column: span 2; }
/* 两张大卡同行等高（grid 默认拉伸，显式声明以防被其他规则覆盖） */
.perf-stat-hero, .perf-stat-sub { min-height: 96px; }
/* 完成率进度条在半宽卡里更舒展 */
.perf-stat-rate .perf-stat-bar { margin-top: 8px; }

/* 中屏（769~1100px）：2 大卡并排仍铺满，小卡 2 列 */
@media (min-width: 769px) and (max-width: 1100px) {
  .perf-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-stat-hero, .perf-stat-sub, .perf-stat-rate { grid-column: span 2; }
}

/* ============ 287 轮：月转化率与月业绩并排一排 ============
   桌面 4 列布局两卡已同行（286 轮）；中屏与手机上原各占全宽一行，
   改为并排一排。窄卡适配：缩小大数字、隐藏长说明文字、缩小标签字号。
   手机最终排布：行1 转化率|业绩 → 行2 双目标 → 行3 完成率全宽。 */
@media (min-width: 769px) and (max-width: 1100px) {
  .perf-stat-hero, .perf-stat-sub { grid-column: span 1; } /* 覆盖 286 中屏全宽 */
}
@media (max-width: 768px) {
  .perf-stat-hero, .perf-stat-sub { grid-column: span 1; } /* 覆盖 279 手机全宽 */
  .perf-stat-hero, .perf-stat-sub { min-height: 84px; }
  .perf-stat-hero em, .perf-stat-sub em { font-size: 11px; }
  .perf-stat-hero strong { font-size: 19px; }   /* 转化率数字如 12.34% */
  .perf-stat-sub strong { font-size: 15px; }    /* 金额可能较长，紧凑显示 */
  .perf-stat-hero i, .perf-stat-sub i { display: none; } /* 窄卡隐藏长说明 */
}

/* ============ 288 轮：完成率拆双卡（业绩完成 / 数据量完成） ============
   完成率卡由一张拆为两张，与目标卡配对相邻（目标→完成）。
   所有完成卡统一 span 1：桌面 4 列行2 = 目标|完成|目标|完成 铺满；
   手机 2 列 = 目标|完成 两两配对成行。覆盖 279/286 的 span 2。 */
.perf-stat-rate { grid-column: span 1; }
@media (min-width: 769px) and (max-width: 1100px) {
  .perf-stat-rate { grid-column: span 1; }
}
@media (max-width: 768px) {
  .perf-stat-rate { grid-column: span 1; }
  .perf-stat-rate .perf-stat-bar { margin-top: 6px; }
}

/* ============ 292 轮：修复数据分析栏目手机端兼容问题 ============
   1) 修复 v286 固定 4 列在手机上覆盖了 279 轮的 2 列规则，导致卡片极窄、标签换行。
   2) 修复每日业绩填报中「当日转化率」标签与保存按钮并排时被挤成竖排。 */
@media (max-width: 768px) {
  /* 统计卡：强制 2 列（覆盖 v286 基础 4 列），小卡 span 1 自动两两成行 */
  .perf-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .perf-stat { padding: 12px 14px; }

  /* 填报区字段行：纵向堆叠，避免半宽挤压 */
  .perf-field-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .perf-field-row .perf-field { flex: 1 1 100%; width: 100%; max-width: none; }

  /* 转化率预览：标签与数字胶囊左右分布，不再竖排 */
  .perf-conv-preview { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .perf-conv-preview > span { flex-shrink: 0; white-space: nowrap; }
  .perf-conv-preview strong { flex: 0 0 auto; }

  /* 保存按钮全宽 */
  .perf-save-btn { width: 100%; }

  /* 数据量/成交量两输入框仍保持并排，恢复 279 轮半宽规则 */
  .perf-field-row .perf-field.perf-num-field { flex: 1 1 0; width: auto; }
}

/* ============ 293 轮：版本号可点击 + 更新记录弹窗 ============
   侧边栏底部版本号 hover 提示可点；弹窗内时间线展示最近更新，
   当前版本徽章渐变高亮。 */
.ver-clickable { cursor: pointer; transition: color 0.15s ease; }
.ver-clickable:hover { color: #818cf8; }

.ver-log { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.ver-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.ver-item:last-child { border-bottom: none; padding-bottom: 4px; }
.ver-badge {
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ver-item.current .ver-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.ver-text { font-size: 13.5px; color: #334155; line-height: 1.55; padding-top: 2px; min-width: 0; }
.ver-item.current .ver-text { color: #0f172a; font-weight: 600; }
.ver-now {
  display: inline-block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* 手机：弹窗为底部抽屉，时间线高度收紧、间距紧凑 */
@media (max-width: 768px) {
  .ver-log { max-height: 56vh; }
  .ver-item { padding: 10px 0; gap: 10px; }
  .ver-text { font-size: 13px; }
}

/* ============ 299 轮：待处理小圆片可拖动换位 ============ */
.pp-pill {
  cursor: grab;
  touch-action: none; /* 触屏拖动圆片优先于页面滚动 */
}

/* 拖动态：放大 + 深阴影（覆盖 hover/active 的位移变换，跟手不跳动） */
.pending-popup .pp-pill.dragging,
.pending-popup .pp-pill.dragging:hover,
.pending-popup .pp-pill.dragging:active {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.5);
  opacity: 0.95;
}

/* 松手贴边磁吸的平滑过渡 */
.pending-popup.pp-anim {
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ 300 轮：登录页底部备案号 ============ */
.login-beian {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-text-light);
}

.login-beian .beian-link {
  color: var(--c-text-light);
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.15s ease;
}

.login-beian .beian-link:hover {
  color: var(--c-text-secondary);
  text-decoration: underline;
}
