/* ============================================================
   影造AI · 全局组件库（全状态覆盖）
   依赖 design-system.css
   ============================================================ */

/* ================= 按钮 Button ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-5);
  font-size: var(--fs-md); font-weight: 500; white-space: nowrap;
  border-radius: var(--r-md); border: 1px solid transparent;
  transition: all var(--dur-2) var(--ease);
  user-select: none; position: relative;
}
.btn:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }
.btn:active { transform: scale(0.97); }

/* 主按钮：琥珀金 */
.btn-primary {
  background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 60%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(192,132,252,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 28px rgba(192,132,252,.5); transform: translateY(-1px); }

.btn-secondary {
  background: linear-gradient(135deg, rgba(255,107,157,.12) 0%, rgba(192,132,252,.12) 100%);
  color: var(--gold-hi);
  border: 1px solid rgba(255,107,157,.3);
  border-radius: var(--btn-radius);
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.btn-secondary:hover { background: linear-gradient(135deg, rgba(255,107,157,.2) 0%, rgba(192,132,252,.2) 100%); }


/* 次按钮：幽灵描边 */
.btn-ghost { background: var(--bg-3); border-color: var(--line-3); color: var(--text-1); }
.btn-ghost:hover { background: var(--bg-4); border-color: var(--text-4); }

/* 文字按钮 */
.btn-text { background: transparent; color: var(--text-2); padding: 0 var(--sp-3); }
.btn-text:hover { color: var(--gold-hi); background: rgba(255,107,157,.08); }

/* 危险按钮 */
.btn-danger { background: var(--err-dim); color: var(--err); border-color: rgba(224,93,93,0.3); }
.btn-danger:hover { background: rgba(224,93,93,0.2); }

/* 尺寸 */
.btn-lg { height: 48px; padding: 0 var(--sp-8); font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn-sm { height: 32px; padding: 0 var(--sp-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-xs { height: 26px; padding: 0 var(--sp-2); font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; flex-shrink: 0; }
.btn-icon.btn-sm { width: 32px; }

/* 禁用 */
.btn:disabled, .btn.is-disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
  box-shadow: none; filter: none;
}

/* 加载中 */
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; color: inherit; filter: invert(1) grayscale(1);
  animation: spin 0.7s linear infinite;
}

/* ================= 输入框 Input ================= */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-label { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.field-label .req { color: var(--gold); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 var(--sp-3);
  background: var(--bg-4); border: 1px solid var(--line-2);
  border-radius: var(--r-md); color: var(--text-1); font-size: var(--fs-md);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: var(--sp-3); resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-dim); background: var(--bg-3);
}
.input:disabled, .textarea:disabled, .select:disabled {
  opacity: 0.45; cursor: not-allowed; background: var(--bg-2);
}
/* 错误态 */
.field.is-error .input, .field.is-error .textarea, .field.is-error .select {
  border-color: var(--err); box-shadow: 0 0 0 3px var(--err-dim);
}
.field-msg { font-size: var(--fs-xs); color: var(--text-3); }
.field.is-error .field-msg { color: var(--err); }
/* 带图标 */
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 38px; }
.input-wrap > .input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; display: flex;
}
/* 尺寸 */
.input-sm { height: 32px; font-size: var(--fs-sm); }
.input-lg { height: 48px; font-size: var(--fs-lg); }
/* 选择器 */
.select {
  appearance: none; cursor: pointer;
  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='%236B6B78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.select option { background: var(--bg-3); color: var(--text-1); }

/* ================= 开关 / 勾选 / 单选 ================= */
.switch { position: relative; width: 40px; height: 22px; display: inline-block; cursor: pointer; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--bg-4);
  border: 1px solid var(--line-3); border-radius: var(--r-full);
  transition: all var(--dur-2) var(--ease);
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--text-2); border-radius: 50%;
  transition: all var(--dur-2) var(--ease);
}
.switch input:checked + .track { background: var(--gold-dim); border-color: var(--gold-line); }
.switch input:checked + .track::after { left: 20px; background: var(--gold); }
.switch input:disabled + .track { opacity: 0.4; cursor: not-allowed; }

.check, .radio { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-md); color: var(--text-2); }
.check input, .radio input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* ================= 卡片 Card ================= */
.card {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card-hover:hover {
  border-color: var(--line-3); transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.card-gold { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-dim), var(--bg-2) 40%); }
.card-pad-sm { padding: var(--sp-4); }
.card-pad-lg { padding: var(--sp-8); }

/* 作品/模板卡片（封面型） */
.work-card { overflow: hidden; padding: 0; cursor: pointer; }
.work-card .cover {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-3);
}
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.work-card:hover .cover img { transform: scale(1.04); }
.work-card .cover .mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(3,3,5,0.45); opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.work-card:hover .cover .mask { opacity: 1; }
.work-card .body { padding: var(--sp-3) var(--sp-4); }
.play-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(3,3,5,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line-3);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}

/* ================= 徽章 / 标签 ================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 500;
  border-radius: var(--r-xs); border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--text-2);
}
.badge-gold { background: var(--gold-dim); border-color: var(--gold-line); color: var(--gold); }
.badge-ok { background: var(--ok-dim); border-color: rgba(76,175,125,0.3); color: var(--ok); }
.badge-err { background: var(--err-dim); border-color: rgba(224,93,93,0.3); color: var(--err); }
.badge-info { background: var(--info-dim); border-color: rgba(122,139,168,0.3); color: var(--info); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge .dot.live { animation: pulse-dot 1.6s var(--ease) infinite; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-3);
  background: var(--bg-3); border-radius: var(--r-full);
  border: 1px solid var(--line-1); cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.tag:hover { color: var(--text-1); border-color: var(--line-3); }
.tag.is-on { color: var(--gold); background: var(--gold-dim); border-color: var(--gold-line); }

/* ================= 头像 ================= */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-4), var(--bg-3));
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 600; color: var(--gold);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-lg); }
.avatar-xl { width: 88px; height: 88px; font-size: var(--fs-2xl); }
.avatar-sm { width: 28px; height: 28px; font-size: var(--fs-xs); }

/* ================= 弹窗 Modal ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 10010; /* 监工UI：必须高于底部Tab(9990)与支付层 */
  background: rgba(3, 3, 5, 0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease);
}
.modal-mask.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 480px; max-height: 85vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  transform: translateY(12px) scale(0.98); transition: transform var(--dur-3) var(--ease-out);
}
.modal-mask.is-open .modal { transform: none; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line-1);
}
.modal-title { font-size: var(--fs-lg); font-weight: 600; }
.modal-body { padding: var(--sp-6); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line-1);
}
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all var(--dur-2) var(--ease);
}
.modal-close:hover { background: var(--bg-3); color: var(--text-1); }

/* ================= 抽屉 Drawer ================= */
.drawer-mask { position: fixed; inset: 0; z-index: 10010; background: rgba(3,3,5,0.6); opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease); }
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10011;
  width: 420px; max-width: 92vw;
  background: var(--bg-1); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer-mask.is-open .drawer, .drawer.is-open { transform: none; }

/* ================= Toast ================= */
.toast-wrap {
  position: fixed; top: var(--sp-6); left: 50%; transform: translateX(-50%);
  z-index: 10020; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px var(--sp-4); font-size: var(--fs-md);
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
  animation: fadeUp var(--dur-3) var(--ease-out) both;
}
.toast-ok { border-color: rgba(76,175,125,0.35); } .toast-ok .t-ic { color: var(--ok); }
.toast-err { border-color: rgba(224,93,93,0.35); } .toast-err .t-ic { color: var(--err); }
.toast-gold { border-color: var(--gold-line); } .toast-gold .t-ic { color: var(--gold); }

/* ================= 骨架屏 ================= */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 400px 100%; animation: shimmer 1.4s infinite linear;
}
.sk-line { height: 14px; margin: var(--sp-2) 0; }
.sk-title { height: 22px; width: 45%; }
.sk-card { height: 180px; border-radius: var(--r-lg); }
.sk-avatar { width: 36px; height: 36px; border-radius: 50%; }
.sk-cover { aspect-ratio: 16/9; border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ================= 进度条 ================= */
.progress { height: 6px; background: var(--bg-4); border-radius: var(--r-full); overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transition: width var(--dur-3) var(--ease);
}
.progress-lg { height: 8px; }
.progress-text { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-num); }

/* ================= 标签页 Tabs ================= */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--line-2); }
.tab {
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-md); color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--dur-2) var(--ease); font-weight: 500;
}
.tab:hover { color: var(--text-1); }
.tab.is-on { color: var(--gold); border-bottom-color: var(--gold); }
/* 胶囊式 */
.tabs-pill { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-3); border-radius: var(--r-md); border: 1px solid var(--line-1); }
.tabs-pill .tab { border: none; margin: 0; border-radius: var(--r-sm); padding: 6px var(--sp-4); }
.tabs-pill .tab.is-on { background: var(--bg-4); color: var(--gold); box-shadow: var(--shadow-1); }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); min-width: 640px; }
.table th {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
  background: var(--bg-3); border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-1); color: var(--text-2); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-1) var(--ease); }
.table tbody tr:hover { background: var(--bg-3); }
.table .t-strong { color: var(--text-1); font-weight: 500; }

/* ================= 分页 ================= */
.pager { display: flex; align-items: center; gap: var(--sp-2); justify-content: center; }
.pager-btn {
  min-width: 32px; height: 32px; padding: 0 var(--sp-2);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-3);
  border: 1px solid var(--line-1); transition: all var(--dur-2) var(--ease);
}
.pager-btn:hover { color: var(--text-1); border-color: var(--line-3); }
.pager-btn.is-on { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }
.pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ================= 下拉菜单 ================= */
.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
  min-width: 160px; padding: var(--sp-1);
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: all var(--dur-2) var(--ease);
}
.dropdown.is-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-item {
  display: flex; align-items: center; gap: var(--sp-2);
  width: 100%; padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-md); color: var(--text-2); text-align: left;
  border-radius: var(--r-sm); transition: all var(--dur-1) var(--ease);
}
.menu-item:hover { background: var(--bg-4); color: var(--text-1); }
.menu-item.danger { color: var(--err); }
.menu-item.danger:hover { background: var(--err-dim); }
.menu-sep { height: 1px; background: var(--line-1); margin: var(--sp-1) var(--sp-2); }

/* ================= 提示气泡 Tooltip ================= */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(2px);
  padding: 5px 10px; font-size: var(--fs-xs); white-space: nowrap;
  background: var(--bg-4); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text-1);
  opacity: 0; pointer-events: none; transition: all var(--dur-2) var(--ease); z-index: 50;
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%); }

/* ================= 空状态 ================= */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-16) var(--sp-6); text-align: center; gap: var(--sp-3);
}
.empty-icon {
  width: 64px; height: 64px; border-radius: var(--r-xl);
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--text-4);
}
.empty-title { font-size: var(--fs-lg); font-weight: 600; color: var(--text-2); }
.empty-desc { font-size: var(--fs-sm); color: var(--text-3); max-width: 320px; }

/* ================= 分割线 ================= */
.divider { height: 1px; background: var(--line-1); border: none; margin: var(--sp-6) 0; }
.divider-v { width: 1px; align-self: stretch; background: var(--line-1); }

/* ================= 全局侧边导航 ================= */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  height: 100vh; position: sticky; top: 0;
  background: var(--bg-1); border-right: 1px solid var(--line-1);
  display: flex; flex-direction: column;
  transition: width var(--dur-3) var(--ease);
  z-index: 90;
}
.side-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5); height: var(--topbar-h);
  border-bottom: 1px solid var(--line-1);
}
.logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: block; object-fit: contain;
  /* 2026-10-14：金色注册商标图形（播放三角+魔法棒）替代原“影”字方块，透明底融入深色侧栏 */
}
.logo-name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; }
.side-nav { flex: 1; overflow-y: auto; padding: var(--sp-3); display: flex; flex-direction: column; gap: 2px; }
.side-group { font-size: var(--fs-xs); color: var(--text-4); padding: var(--sp-4) var(--sp-3) var(--sp-2); letter-spacing: 0.08em; white-space: nowrap; }
.side-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-3); border-radius: var(--r-md);
  color: var(--text-3); font-size: var(--fs-md);
  transition: all var(--dur-2) var(--ease); white-space: nowrap; position: relative;
}
.side-item svg { flex-shrink: 0; }
.side-item:hover { color: var(--text-1); background: var(--bg-3); }
.side-item.is-on { color: var(--gold); background: var(--gold-dim); }
.side-item.is-on::before {
  content: ""; position: absolute; left: -12px; top: 20%; bottom: 20%;
  width: 2px; background: var(--gold); border-radius: 2px;
}
.side-item .side-text { overflow: hidden; }
.side-foot { padding: var(--sp-3); border-top: 1px solid var(--line-1); }
/* 折叠态 */
.sidebar.is-fold { width: var(--sidebar-w-fold); }
.sidebar.is-fold .side-text, .sidebar.is-fold .logo-name, .sidebar.is-fold .side-group { display: none; }
.sidebar.is-fold .side-item { justify-content: center; padding: 10px 0; }

/* ================= 顶栏 ================= */
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-6);
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-glass); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 80;
}
.topbar-title { font-size: var(--fs-lg); font-weight: 600; }
.crumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-3); }
.crumb a:hover { color: var(--text-1); }
.crumb .sep { color: var(--text-4); }
/* 窄屏：面包屑会被余额/铃铛/头像挤成一字一列竖排，手机正文已有大标题，直接隐藏 */
@media (max-width: 900px) {
  .topbar .crumb { display: none; }
}

/* ================= 页面外壳 ================= */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-body { flex: 1; padding: var(--sp-6); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.page-title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.01em; }
.page-desc { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-1); }

/* ================= 统计卡 ================= */
.stat-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.stat-label { font-size: var(--fs-sm); color: var(--text-3); display: flex; align-items: center; gap: var(--sp-2); }
.stat-value { font-size: var(--fs-3xl); font-weight: 700; font-family: var(--font-num); letter-spacing: -0.01em; }
.stat-trend { font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 3px; }
.stat-trend.up { color: var(--ok); }
.stat-trend.down { color: var(--err); }

/* ================= 步骤条 ================= */
.steps { display: flex; align-items: center; gap: var(--sp-2); }
.step { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-3); }
.step-no {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-family: var(--font-num);
}
.step.is-on { color: var(--gold); }
.step.is-on .step-no { border-color: var(--gold); background: var(--gold-dim); }
.step.is-done { color: var(--text-2); }
.step.is-done .step-no { border-color: var(--gold-line); background: var(--gold); color: #fff; }
.step-line { flex: 1; min-width: 24px; height: 1px; background: var(--line-2); }

/* ================= 上传区 ================= */
.upload-zone {
  border: 1.5px dashed var(--line-3); border-radius: var(--r-lg);
  padding: var(--sp-8); text-align: center; cursor: pointer;
  transition: all var(--dur-2) var(--ease); background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); color: var(--text-3);
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--gold-line); background: var(--gold-dim); color: var(--gold); }

/* ================= 搜索框 ================= */
.search-box {
  display: flex; align-items: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-3); width: 280px;
  background: var(--bg-4); border: 1px solid var(--line-2); border-radius: var(--r-md);
  transition: all var(--dur-2) var(--ease); color: var(--text-3);
}
.search-box:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-dim); }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-size: var(--fs-md); }
.search-box input::placeholder { color: var(--text-3); }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .container { padding: 0 var(--sp-5); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform var(--dur-3) var(--ease); box-shadow: var(--shadow-3); }
  .sidebar.is-open { transform: none; }
  .page-body { padding: var(--sp-4); }
  .search-box { width: 160px; }
  .h-display { font-size: var(--fs-3xl); }
  .h-1 { font-size: var(--fs-2xl); }
  .drawer { width: 100vw; max-width: 100vw; }
  .modal-mask { padding: var(--sp-3); align-items: flex-end; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

/* ==== 3D 功能图标落位（2026-10-01 老板拍板：图标加上） ==== */
.f-icon img.ico3d, .t-icon img.ico3d, .q-icon img.ico3d {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.f-icon, .t-icon, .q-icon { overflow: hidden; }
.iconwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.iw-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 13px 6px 11px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
  text-decoration: none; transition: .18s; cursor: pointer; }
.iw-tile:hover { border-color: rgba(122,92,240,.5); transform: translateY(-2px); }
.iw-tile img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; }
.iw-tile span { font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.4; }


/* ===== 视频位（老板拍板「加视频位」2026-10-01）===== */
.hero-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vidwall { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.vidwall .vid-cell { border: 1px solid var(--line-2, rgba(249,247,254,.08)); border-radius: 14px; overflow: hidden; background: #000; }
.vidwall video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #000; }
.vidwall .vid-cap { padding: 10px 14px; font-size: 13px; color: var(--text-2, #aaa); background: var(--bg-2, #141414); }
.cover { position: relative; }
.cover video.hoverplay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cover:hover video.hoverplay { opacity: 1; }
.cover .play-hint { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; pointer-events: none; }
.cover .play-hint svg { width: 10px; height: 10px; fill: #fff; }

/* ===== AIGC 显式标识（《人工智能生成合成内容标识办法》2025-09-01 施行）===== */
/* 统一「AI生成」角标：全站 AI 生成结果视图复用，渲染入口为 js/ui.js 的 window.aigcBadge()。
   这里定义的是【页面 DOM 展示标签】的样式——恒为无条件显示，不读会员档位、不随任何关闭设置消失，
   否则站内公开页面就等于不标注 AI 内容。会员能关的是【烧进交付文件画面里的角标】，
   由后端 lib/aigc-policy.js 单点裁决（仅未过期银/金/钻可关、只对之后新生成的作品生效，
   数字人/声音克隆/人脸生成类目任何档位都不可关）；文件元数据隐式标识任何账号一律强制、无开关。
   样式与真站 app.html 保持一致。（本次仅改注释，无样式变化） */
.aigc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b9d, #a78bfa);
  vertical-align: middle;
  white-space: nowrap;
  user-select: none;
}
.aigc-badge::before {
  content: '✦';
  font-size: 10px;
}
.aigc-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  color: #fff;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(139,92,246, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.aigc-media-wrap {
  position: relative;
}

/* 2026-10-17 合规补挂：结果容器恒显角标（容器类方案，覆盖未接 ui.js 的页面；视觉对齐 .aigc-badge + .aigc-badge-overlay） */
.aigc-result { position: relative; }
.aigc-result::after {
  content: '✦ AI生成';
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(139,92,246, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}


/* ============================================================
   YZ Kit 样式块（2026-10-17 ui-comps 批）追加到 components.css 末尾
   组件：ActionSheet(.as-*) / 付费墙(.pw-*) / 大图预览(.pv-*) /
         新手引导(.gd-*) / 吸底操作栏(.sticky-bar) / 统一播放器(.yz-player) / 上拉哨兵(.yz-sentinel)
   全部走 design-system 变量；层级走 --z-* 令牌。
   ============================================================ */

/* ---------- ActionSheet 底部动作面板 ---------- */
.as-mask { display: flex; align-items: flex-end; }
.as-sheet {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--bg-2); border-radius: 18px 18px 0 0;
  padding: calc(var(--sp-3) + var(--safe-bottom, 0px)) var(--sp-3) var(--sp-3);
  transform: translateY(100%); transition: transform .22s ease;
  box-shadow: 0 -8px 30px rgba(20, 10, 40, .12);
}
.as-mask.is-open .as-sheet { transform: translateY(0); }
.as-title { text-align: center; color: var(--text-3); font-size: 13px; padding: var(--sp-2) 0 var(--sp-3); }
.as-action {
  display: block; width: 100%; min-height: var(--row, 48px);
  background: var(--bg-1); border: 0; border-radius: 12px;
  color: var(--text-1); font-size: 15px; font-weight: 600;
  margin-bottom: var(--sp-2); cursor: pointer; transition: filter .15s;
}
.as-action:active { filter: brightness(.96); }
.as-action.is-danger { color: var(--err); }
.as-action.is-disabled { color: var(--text-3); opacity: .55; cursor: not-allowed; }
.as-cancel {
  display: block; width: 100%; min-height: var(--row, 48px);
  background: transparent; border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text-2); font-size: 15px; margin-top: var(--sp-1); cursor: pointer;
}

/* ---------- PayWall 付费墙 ---------- */
.pw-card {
  position: relative; width: min(88vw, 380px); margin: auto;
  background: var(--bg-2); border-radius: 20px;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  text-align: center; box-shadow: 0 20px 60px rgba(20, 10, 40, .18);
  transform: scale(.92); opacity: 0; transition: all .22s ease;
}
.as-mask.is-open .pw-card { transform: scale(1); opacity: 1; }
.pw-card .modal-close { position: absolute; top: 12px; right: 12px; }
.pw-ico { font-size: 44px; line-height: 1; margin-bottom: var(--sp-3); }
.pw-title { font-size: 18px; font-weight: 800; color: var(--text-1); margin-bottom: var(--sp-2); }
.pw-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.pw-bal { margin-top: var(--sp-2); font-size: 13px; color: var(--text-3); }
.pw-bal b { color: var(--ycoin, #8A5A14); font-weight: 800; }
.pw-main { display: block; margin: var(--sp-4) 0 var(--sp-2); min-height: var(--tap, 44px); }
.pw-sub { display: inline-block; font-size: 13px; color: var(--brand-pink, var(--gold)); text-decoration: none; padding: var(--sp-1) 0; }

/* ---------- 大图预览 ---------- */
.pv-layer {
  position: fixed; inset: 0; z-index: var(--z-modal, 500);
  background: rgba(8, 6, 14, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease; cursor: zoom-out;
}
.pv-layer.is-open { opacity: 1; }
.pv-img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.pv-close {
  position: absolute; top: calc(var(--sp-4) + var(--safe-top, 0px)); right: var(--sp-4);
  width: var(--tap, 44px); height: var(--tap, 44px); border-radius: 50%;
  background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pv-save {
  position: absolute; bottom: calc(var(--sp-5) + var(--safe-bottom, 0px)); left: 50%; transform: translateX(-50%);
  min-height: var(--tap, 44px); padding: 0 var(--sp-5);
  background: linear-gradient(135deg, var(--brand-pink, #C2255C), var(--brand-purple, #c084fc));
  color: #fff; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ---------- 新手引导 ---------- */
.gd-layer { position: fixed; inset: 0; z-index: var(--z-guide, 700); }
.gd-hole {
  position: fixed; border-radius: 12px;
  box-shadow: 0 0 0 2020px rgba(8, 6, 14, .82), 0 0 0 3px var(--brand-pink, #C2255C);
  pointer-events: none; transition: all .25s ease;
}
.gd-card {
  position: fixed; width: min(84vw, 280px);
  background: var(--bg-2); border-radius: 16px;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  box-shadow: 0 16px 50px rgba(20, 10, 40, .25);
}
.gd-step { font-size: 12px; color: var(--text-3); margin-bottom: var(--sp-1); }
.gd-title { font-size: 16px; font-weight: 800; color: var(--text-1); margin-bottom: var(--sp-1); }
.gd-text { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.gd-btns { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-3); }
.gd-skip { background: none; border: 0; color: var(--text-3); font-size: 14px; cursor: pointer; padding: var(--sp-1) var(--sp-2); }
.gd-next { min-height: 38px; padding: 0 var(--sp-4); font-size: 14px; }

/* ---------- 吸底操作栏（移动端主 CTA 容器） ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky, 100);
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + var(--safe-bottom, 0px));
  box-shadow: 0 -6px 24px rgba(20, 10, 40, .08);
}
.sticky-bar .sb-main { flex: 1; min-height: var(--tap, 44px); font-size: 16px; }
.sticky-bar .sb-side { min-height: var(--tap, 44px); }
@media (min-width: 861px) {
  .sticky-bar { position: sticky; bottom: 0; margin: 0 calc(var(--sp-5) * -1); padding: var(--sp-3) var(--sp-5); border-radius: 12px 12px 0 0; }
}

/* ---------- 统一播放器外观 ---------- */
.yz-player {
  position: relative; width: 100%;
  background: #14101F; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 10, 40, .14);
}
.yz-player video, .yz-player audio { display: block; width: 100%; }
.yz-player video { aspect-ratio: 16 / 9; object-fit: cover; background: #14101F; }
.yz-player audio { border-radius: 14px; }

/* ---------- 上拉加载哨兵 ---------- */
.yz-sentinel {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; color: var(--text-3); font-size: 13px; gap: var(--sp-2);
}
.yz-loading-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--brand-pink, #C2255C);
  animation: yz-spin .8s linear infinite;
}
@keyframes yz-spin { to { transform: rotate(360deg); } }

/* ---------- 日期快捷选（DoD#13） ---------- */
.yz-date-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yz-date-chip {
  height: 30px; padding: 0 12px; font-size: 13px; font-weight: 500;
  color: var(--text-2, #4a4360); background: var(--bg-3, #f6f4fb);
  border: 1px solid var(--line-2, #e6e0f2); border-radius: 999px; cursor: pointer;
  transition: all var(--dur-2, .16s) var(--ease, ease);
}
.yz-date-chip:hover { border-color: var(--brand-purple, #7c3aed); color: var(--brand-purple, #7c3aed); }
.yz-date-chip:active { transform: scale(.96); }

/* ---------- 上传隐私提示（DoD#14） ---------- */
.yz-upload-privacy {
  margin-top: 8px; font-size: 12px; line-height: 1.6;
  color: var(--text-3, #8b83a1);
}

/* ---------- 出片成功对勾动效（DoD#15） ---------- */
.yz-success-anim {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(18, 10, 34, .55); backdrop-filter: blur(4px);
  animation: yz-fade-in .18s ease both;
}
.yz-success-anim .yz-success-check {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #c084fc 60%, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(192, 132, 252, .5);
}
.yz-success-anim .yz-success-check svg { width: 38px; height: 38px; }
.yz-success-anim .yz-success-check path {
  fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: yz-check-draw .25s .06s cubic-bezier(.65,0,.35,1) forwards;
}
.yz-success-anim .yz-success-msg { color: #fff; font-size: 16px; font-weight: 600; }
.yz-success-anim.out { animation: yz-fade-out .3s ease both; }
@keyframes yz-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yz-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes yz-check-draw { to { stroke-dashoffset: 0; } }
