/* ============ 简兮 · 首页样式（设计令牌与通用组件见 ui.css）============ */

/* ===== App 外套：移动端全屏容器 =====
   手机上撑满整屏；大屏手机/平板最多 430px 并居中。
   左右锁死（永不横向滚动/晃动），上下正常放行；
   为 iPhone 刘海与底部小横条留出安全区。 */
.app-shell {
  width: 100%;
  max-width: 430px; /* 大屏上限，居中显示 */
  margin: 0 auto;
  min-height: 100dvh;
  box-sizing: border-box;
  overflow-x: hidden; /* 左右锁死 */
  overflow-y: auto; /* 上下放行 */
  touch-action: pan-y; /* 触摸只响应上下滑动，杜绝横向晃动 */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* 边缘不再回弹露底（上下横向均禁），更像原生 APP */
  padding-top: env(safe-area-inset-top); /* iPhone 刘海避让 */
  padding-bottom: env(safe-area-inset-bottom); /* iPhone 底部小横条避让 */
}

.app {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 18px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ============ 顶部栏 ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 24px;
  margin-top: 0;
  flex-shrink: 0;
  /* 顶部栏随 .app 的内边距自然布局：LOGO 与下方卡片左边框对齐，
     顶部留白由 .app 的 padding-top 提供（呼吸感） */
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
/* Logo 下方 slogan：字号与「3分钟极速出片」(.hero-slogan) 一致 */
.brand-slogan {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #9ca3af;
  white-space: nowrap;
  margin-top: 10px; /* 段说明整体下移 10px */
  transform: translateY(-30px) translateX(20px); /* 上移30 + 右移20 */
}
@media (min-width: 768px) {
  .brand-slogan {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* ---- 网页版顶部「我的」按钮（桌面显示） ---- */
.btn-top-user {
  display: none;
} /* 移动端顶部不重复登录入口 */
@media (min-width: 768px) {
  .btn-top-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: var(--radius-s, 8px);
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    padding: 7px 18px;
    transition:
      border-color 0.2s ease,
      background 0.2s ease;
  }
  .btn-top-user:hover {
    border-color: #e50914;
    background: #222;
  }
}

/* ---- 首屏 Hero：营销开场（仅桌面 ≥768px 显示，移动端不占首屏） ---- */
.hero-banner {
  display: none;
}
@media (min-width: 768px) {
  .hero-banner {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(150% 130% at 100% 0%, rgba(229, 9, 20, 0.55) 0%, rgba(229, 9, 20, 0) 55%),
      linear-gradient(135deg, #1a1a1a 0%, #141414 60%, #1d1d1d 100%);
    padding: 46px 44px;
  }
  .hero-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
  }
  .hero-eyebrow {
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 300;
    margin: 0 0 14px;
    text-transform: uppercase;
  }
  .hero-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
  }
  .hero-title em {
    font-style: normal;
    color: #e50914;
    font-weight: 300;
  }
  .hero-sub {
    margin: 18px 0 0;
    max-width: 560px;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
  }
  .hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
  }
  .btn-hero {
    border: 1px solid #3a3a3a;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 40px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    transition:
      filter 0.2s ease,
      transform 0.2s ease;
  }
  .btn-hero:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }
  .hero-meta {
    color: #6b7280;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
  .hero-meta-accent {
    color: #6b7280;
    font-weight: 500;
  }
  .hero-points {
    display: inline-block;
    margin: 0 3px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    animation: points-glow 2.4s ease-in-out infinite;
  }
  @keyframes points-glow {
    0%,
    100% {
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    }
    50% {
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
      transform: scale(1.06);
    }
  }
}

/* ---- 数据信任条：产品能力速览（仅桌面 ≥768px 显示） ---- */
.stat-strip {
  display: none;
}
@media (min-width: 768px) {
  .stat-strip {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px 22px;
  }
  .stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
  }
  .stat + .stat::before {
    /* 项间隔线 */
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
  }
  .stat-num {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
  }
  .stat-num small {
    font-size: 13px;
    color: #e50914;
    margin-left: 3px;
    font-weight: 300;
  }
  .stat-label {
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 1px;
  }
}

/* ---- 常见问题 FAQ（手风琴，slide+fade；网页版专属，仅桌面 ≥768px 显示） ---- */
.faq-section {
  display: none;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .faq-section {
    display: block;
  }
}
.faq-head {
  margin-bottom: 22px;
  text-align: center;
}
.faq-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0;
  color: #fff;
}
.faq-slogan {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
}
.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  align-items: start;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  color: #e5e7eb;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  text-align: left;
  transition: color 0.2s ease;
}
.faq-q:hover {
  color: #fff;
}
.faq-arrow {
  color: #e50914;
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.28s ease;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.32s ease,
    opacity 0.32s ease,
    transform 0.32s ease;
}
.faq-a p {
  margin: 0;
  padding: 0 4px 18px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

/* ---- 页脚：联系 / 备案 ---- */
.legal-contact {
  margin: 14px auto 0;
  max-width: 960px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.9;
  padding: 0 8px;
}
.legal-contact a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-contact a:hover {
  color: #e50914;
}
.legal-icp {
  color: #6b7280;
}

/* ---- 版块 CTA 行动按钮 ---- */
.section-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.btn-cta {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 44px;
  background: #e50914;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.btn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.logo-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-decoration: none;
}

.logo-ico {
  width: 96px;
  height: 96px;
  display: block;
  flex: none;
}

.logo-text {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #eee;
  white-space: nowrap;
  transform: translateY(-34px);
}
@media (min-width: 768px) {
  .logo-text {
    font-size: 13px;
  }
  .logo-ico {
    width: 108px;
    height: 108px;
  }
}
@media (min-width: 1024px) {
  .logo-ico {
    width: 120px;
    height: 120px;
  }
  .logo-text {
    font-size: 13px;
  }
}

/* LOGO 下方 20px 的极细炭黑分隔线：左对齐 LOGO、右对齐登录按钮 */
.head-line {
  height: 1px;
  margin: -12px 0 0;
  background: #2b2b2b;
}

/* 双页签：商业成片（默认） / 情绪成片 */
.home-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 16px;
  padding: 5px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); /* 半透明毛玻璃底 */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home-tab {
  position: relative;
  padding: 8px 18px 9px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--txt-dim); /* 灰字：未选中 */
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.home-tab:hover {
  color: var(--txt);
}
/* 选中态：白字 + 底部奈飞红细下划线 */
.home-tab.active {
  color: #fff;
}
.home-tab.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* 情绪成片面板：与商业成片同一张圆角大字卡片（复用 .accs 视觉） */
.emotion-panel {
  padding: 22px 24px 26px;
}
.emo-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.emo-rec-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.emo-hint {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--txt-dim);
}

.btn-asset {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #222;
  color: #fff;
  border-radius: var(--pill);
  box-shadow: none;
  font-weight: 500;
}

.btn-asset:hover:not(.has-user) {
  background: #2a2a2a;
  border-color: #ff2a31;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
  transform: translateY(-1px);
}

/* 已登录：去掉按钮框，只留圆形头像 */
.btn-asset.has-user {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.btn-asset.has-user:hover {
  transform: none;
  box-shadow: none;
}

/* ============ 首页：四大板块合成一张大圆角卡片（标题行细线隔开，像"我的作品"；点击出现/再点消失） ============ */
.accs {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* 悬浮感：仅在有鼠标的设备上生效（触屏不做粘滞 hover），微微抬起 + 阴影加深 */
@media (hover: hover) {
  .accs:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.14);
  }
}

/* 每个板块：标题行 + 展开区；板块之间用极浅细线隔开 */
.acc {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.acc:last-child {
  border-bottom: none;
}

/* 标题行：约 52px 高（拇指友好），透明底，左侧图标（胶囊容器）+ 右侧箭头 */
.acc-head {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
.acc-head:hover {
  background: rgba(255, 255, 255, 0.05);
}
.acc-head:active {
  background: rgba(255, 255, 255, 0.09);
}

.acc-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a3a3a3; /* 默认灰；点开板块时变奈飞红 */
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.acc-icon svg {
  display: block;
}
/* 行 hover：图标芯片轻微上浮 + 提亮描边（代替生硬的背景变色） */
@media (hover: hover) {
  .acc-head:hover .acc-icon {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}
.acc.open .acc-icon {
  color: #ff2a31;
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.45);
}

.acc-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧状态箭头：收起 ▸ → 展开旋转 90° 成 ➥ */
.acc-arrow {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--txt-dim);
  transition: transform 0.3s ease;
}
.acc.open .acc-arrow {
  transform: rotate(90deg);
}

/* 展开区：从下面往上撑开的抽屉式展开（原地长出来，不外飞、不左右滑入） */
.acc-body {
  display: grid;
  grid-template-rows: 0fr; /* 收起：高度为 0 */
  overflow: hidden;
  transition: grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.acc-body > .body-content {
  min-height: 0; /* 允许子元素随行高一起塌缩到 0，实现平滑生长 */
  overflow: hidden;
}
.acc.open .acc-body {
  grid-template-rows: 1fr; /* 展开：原地向下长开到自然高度 */
  background: var(--bg-soft); /* #1F1F1F，与标题行区分 */
  /* 展开态红色指示线已按需求移除 */
}

/* ---- 工作台内按钮统一为「一键出片」规格 ---- */
.scene-grid > .acc .btn-primary {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scene-grid > .acc .rec-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.scene-grid > .acc .voice-opt,
.scene-grid > .acc .seg-pass {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
@media (min-width: 768px) {
  .scene-grid > .acc .btn-primary {
    font-size: 14px;
  }
  .scene-grid > .acc .rec-btn {
    font-size: 14px;
  }
  .scene-grid > .acc .voice-opt,
  .scene-grid > .acc .seg-pass {
    font-size: 14px;
  }
}

/* 展开区内部：留白充足，避免内容挤在一起 */
.acc-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
}

/* === 生成期间 · 其它版块整层锁定遮罩 ===
   版块 A 出片任务进行时，为其它版块的 .acc 面板盖上只读遮罩：
   面板可浏览但不可操作，点击任意控件被遮罩拦截（伪元素置于内容之上）
   并由 JS 统一 toast「有任务正在执行」；遮罩中央固定显示锁定提示文字。 */
.scene-grid > .acc.gen-locked::after {
  content: "有任务正在生成";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: -1px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(1.5px);
  border-radius: 16px;
  cursor: not-allowed;
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ============ 生成期间禁用态 ============ */
.voice-opt:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.voice-opt:has(input:disabled) input {
  cursor: not-allowed;
}

.rec-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============ 配音声音选择器 ============ */
.voice-picker {
  display: flex;
  gap: 10px;
}

/* 与「开始录音」按钮统一：深炭底 + 白字 + 亮边框，选中态半透明红反馈 */
.voice-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid #333;
  border-radius: var(--pill);
  background: #222;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* 隐藏原生单选圆点，外观更像统一胶囊按钮（点击文字仍可切换） */
.voice-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
}

.voice-opt:has(input:checked) {
  background: #2e2e2e;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 14px rgba(0, 0, 0, 0.45);
}

.voice-opt:hover {
  background: #2a2a2a;
  border-color: #4a4a4a;
  transform: translateY(-2px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ============ 上传区 ============ */
.drop-zone {
  position: relative;
  border: 1px dashed #333;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

/* 生成期间：上传区半透明遮罩锁定 */
.drop-zone .drop-lock-overlay,
.img-box .drop-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.72);
  z-index: 3;
  cursor: not-allowed;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.08);
}

.drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--txt-dim);
  font-size: 13px;
  text-align: center;
}

.drop-icon {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

/* 缩略图 */
.thumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumbs:empty {
  display: none;
}

.thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none; /* 关闭原生图片拖拽下载图标，排序由父级 .thumb 承载 */
  user-select: none;
}

.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.6);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-remove:hover {
  background: rgba(0, 0, 0, 0.78);
}

/* 商品图片：拖拽排序态 */
.thumb {
  cursor: grab;
}
.thumb.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.thumb.drag-over {
  outline: 2px dashed var(--accent, #e50914);
  outline-offset: 2px;
}

/* —— 商品成片·商品图片：虚线容器内自适应网格 + 右下"+"续传 —— */
.img-box {
  position: relative;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 22px 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.img-box.dragover {
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.08);
}
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 商品成片 3×3 排列：最多 9 张正好 3 行 */
  gap: 10px;
  width: 100%; /* 占满父容器，避免在居中 flex 列下收缩成单列 */
}
/* 网格内缩略图在单元格内自适应填充 */
.img-grid .thumb {
  width: 100%;
  height: 72px;
}
.img-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-s, 8px);
  background: rgba(255, 255, 255, 0.02);
  color: var(--txt-dim, #a3a3a3);
  cursor: pointer;
  font: inherit;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}
.img-add:hover {
  border-color: var(--accent, #e50914);
  color: var(--txt, #fff);
  background: rgba(229, 9, 20, 0.06);
}
.img-add-plus {
  font-size: 22px;
  line-height: 1;
  color: var(--accent, #e50914);
}
.img-add-text {
  font-size: 11px;
  letter-spacing: 0.3px;
}
.img-empty-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--txt-faint, #6e6e73);
}
.img-empty-plus {
  display: block;
  font-size: 30px;
  line-height: 1;
  margin: 0 auto 6px;
  color: var(--accent, #e50914);
}
.img-box:not(.is-empty) .img-empty-hint {
  display: none;
}

/* 视频预览 */
.video-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-preview video {
  width: 100%;
  max-height: 260px;
  display: block;
}

.video-preview .vid-meta {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--txt-dim);
  background: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vid-clear {
  color: #ff5c63;
  font-size: 13px;
  font-weight: 500;
}

.vid-clear:hover {
  text-decoration: underline;
}

/* ============ 视频切片：时间段编辑器（动态 Add/Remove）+ 结果列表 ============ */
.seg-num {
  width: 84px;
  padding: 8px 10px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: var(--radius-s);
  color: var(--txt);
  font-size: 14px;
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.seg-num:hover {
  background: #1f1f1f;
  border-color: var(--line-hi);
}
.seg-num:focus {
  outline: none;
  background: #1f1f1f;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}
.seg-num:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.seg-unit {
  font-size: 13px;
  color: var(--txt-dim);
}
.seg-pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: var(--pill);
  background: #222;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.seg-pass:hover {
  border-color: #ff2a31;
}
.seg-pass.active {
  border-color: rgba(229, 9, 20, 0.8);
  background: rgba(229, 9, 20, 0.2);
  color: #fff;
}

/* ---- 视频切片：动态时间段编辑器 ---- */
.seg-editor {
  margin-top: 14px;
}
.seg-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.seg-add {
  border: 1px dashed #333;
  background: transparent;
  color: var(--accent);
  border-radius: var(--radius-s);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.seg-add:hover {
  background: var(--accent-soft);
}
.seg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* nowrap：删除按钮 × 必须留在行尾，不能被挤到下一行 */
.seg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 6px 8px;
}
.seg-idx {
  font-weight: 600;
  color: var(--txt);
  min-width: 22px;
  font-size: 12px;
  flex-shrink: 0;
}
.seg-field {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--txt-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.seg-field input {
  width: 58px;
  min-width: 0;
  padding: 4px 6px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: var(--radius-s);
  color: var(--txt);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.seg-field input:hover {
  border-color: var(--line-hi);
}
.seg-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}
.seg-dash {
  color: var(--txt-dim);
  flex-shrink: 0;
}
.seg-dur {
  margin-left: auto;
  font-size: 11px;
  color: var(--txt-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 2px;
}
.seg-remove {
  border: none;
  background: transparent;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.seg-remove:hover {
  background: rgba(255, 77, 77, 0.12);
}
.seg-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--txt-dim);
  line-height: 1.5;
}
.slicer-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt);
}

.slicer-results {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ 录音按钮 ============ */
.rec-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rec-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid #333;
  border-radius: var(--pill);
  background: #222; /* 深炭底 + 白字（暗色底上清晰可辨） */
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.rec-icon {
  display: inline-flex;
  align-items: center;
}

.rec-btn:hover {
  background: #2a2a2a;
  border-color: #ff2a31;
  color: #fff;
  box-shadow: 0 2px 14px rgba(229, 9, 20, 0.35);
  transform: translateY(-2px);
}

/* 录音中：半透明红底 + 红边（选中/进行中反馈，不做纯色填充） */
.rec-btn.recording {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.8);
  color: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}

.rec-btn.recording .rec-icon {
  animation: blink 1s step-start infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(229, 9, 20, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.rec-timer {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: 1px;
}

/* ============ 音频文件上传（口播） ============ */
.audio-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 1px dashed #333;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.audio-upload:hover {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.08);
}
.audio-upload .drop-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--txt-dim);
  font-size: 13.5px;
}
.audio-upload .drop-icon {
  color: var(--accent);
  font-size: 18px;
}

/* ============ ASR 识别结果（口播） ============ */
/* ---- 核对界面：完整台词流（灰色删除线 = 将剪掉）/ 文本编辑 / 按钮 ---- */
.asr-words {
  margin: 4px 0 8px;
  line-height: 2.05;
  font-size: 15.5px;
  color: var(--txt);
}
.asr-word {
  display: inline;
  cursor: pointer;
  padding: 1px 1px;
  border-radius: 3px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.asr-word:hover {
  background: rgba(229, 9, 20, 0.12);
}
.asr-word.is-removed {
  color: var(--txt-faint);
  text-decoration: line-through;
  text-decoration-color: #808080;
  text-decoration-thickness: 1.5px;
}
.asr-word.is-removed:hover {
  background: var(--bg-soft);
}
.asr-edit {
  width: 100%;
  margin: 4px 0 8px;
  padding: 8px 10px;
  background: #1f1f1f;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}
.asr-edit:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}
/* 智能校验单编辑框：可编辑版预留高度 + 空态占位提示 */
.asr-edit[contenteditable] {
  min-height: 72px;
}
.asr-edit[contenteditable]:empty::before {
  content: attr(data-ph);
  color: var(--txt-faint, #7a7a7a);
}
.asr-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.asr-confirm,
.asr-cancel {
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 400;
}
.asr-confirm {
  border: 1.5px solid rgba(229, 9, 20, 0.7);
  background: #222;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.asr-confirm:hover {
  background: #2a2a2a;
  border-color: #ff2a31;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}
.asr-cancel {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.asr-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---- 确认口播方案：弹出式弹窗 ---- */
.asr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.asr-modal.open {
  opacity: 1;
  visibility: visible;
}
.asr-modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  padding: 24px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}
.asr-modal.open .asr-modal-panel {
  transform: translateY(0) scale(1);
}
.asr-modal-head {
  margin-bottom: 12px;
}
.asr-modal-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--txt);
}
.asr-modal-sub {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: #9ca3af;
}
.asr-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 8px 10px;
  background: #1f1f1f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.asr-audio-info {
  flex: 1;
  font-size: 13px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asr-play {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--pill);
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.asr-play:hover {
  border-color: #ff2a31;
  color: #fff;
}
.asr-modal .asr-btns {
  justify-content: flex-end;
  margin-top: 14px;
}

/* ---- 切片多段核对：片段列表 ---- */
.slr-segs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slr-seg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #1f1f1f;
}
.slr-seg-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* 四个模块的生成按钮：继承 ui.css 主按钮样式（深炭底 + 白字 + 亮红描边） */

/* 视频时长硬上限提示 */
.gen-warn {
  color: #ff5c63;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

/* ============ 出片完成：全屏视频预览弹窗（保持深色沉浸） ============ */
.viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.viewer-modal.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20; /* 永远在最上层：下载/全屏/进度条都不会挡住关闭 */
  transition:
    background 0.2s ease,
    transform 0.25s ease;
}
.viewer-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.viewer-wrap {
  position: relative;
  width: min(900px, 94vw);
}
.viewer-wrap .viewer-video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* 居中播放/暂停钮 */
.viewer-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 1;
  transition:
    opacity 0.4s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.viewer-center:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.05);
}
.viewer-center svg {
  width: 38px;
  height: 38px;
}
.viewer-center .ic-start {
  display: block;
}
.viewer-center .ic-pause {
  display: none;
}
.viewer-center.paused .ic-start {
  display: none;
}
.viewer-center.paused .ic-pause {
  display: block;
}
.viewer-center.hide {
  opacity: 0;
  pointer-events: none;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(900px, 94vw);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 5; /* 保持在视频之上、关闭按钮(20)之下：下载/全屏绝不遮挡右上角关闭 */
}
.viewer-bar button,
.viewer-download {
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.viewer-bar button svg,
.viewer-download svg {
  width: 20px;
  height: 20px;
}
.viewer-bar button:hover,
.viewer-download:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.viewer-fullscreen.active {
  background: rgba(255, 255, 255, 0.24);
}

.viewer-range {
  flex: 1;
  min-width: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.viewer-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: #eef0f8;
  letter-spacing: 0.5px;
}
/* 切片多段切换：上一段 / 下一段 / 段序号 */
.viewer-prev,
.viewer-next {
  flex-shrink: 0;
}
.viewer-slice-title {
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
  color: #fff;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* 画中画（小窗置顶）：缩为右下角浮窗 */
.viewer-modal.mini {
  inset: auto;
  top: auto;
  right: 20px;
  bottom: 20px;
  left: auto;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: auto;
  padding: 10px;
  gap: 8px;
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: none;
}
.viewer-modal.mini .viewer-wrap {
  width: 100%;
}
.viewer-modal.mini .viewer-video {
  max-width: 100%;
  max-height: 180px;
}
.viewer-modal.mini .viewer-center {
  width: 52px;
  height: 52px;
  border-width: 1.5px;
}
.viewer-modal.mini .viewer-center svg {
  width: 26px;
  height: 26px;
}
.viewer-modal.mini .viewer-close {
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  font-size: 15px;
}

/* 全屏兜底：浏览器/iframe 全屏 API 被拒时，改为「视频铺满视口」的伪全屏 */
.viewer-modal.cssfs {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #000;
}
.viewer-modal.cssfs .viewer-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
}
.viewer-modal.cssfs .viewer-wrap .viewer-video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.viewer-modal.cssfs .viewer-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.viewer-modal.cssfs .viewer-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  z-index: 3;
  background: rgba(20, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.viewer-modal.cssfs .viewer-close {
  z-index: 4;
}
.viewer-modal.mini .viewer-bar {
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
}
.viewer-modal.mini .viewer-time {
  font-size: 11px;
}

/* ============ 底部 ============ */
.scenes {
  margin-top: 42px;
  text-align: center;
  font-size: 12.5px;
  color: var(--txt-dim);
  letter-spacing: 2px;
}

.footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--txt-faint);
  letter-spacing: 1px;
}

/* ============ 响应式（竖屏优先） ============ */
@media (max-width: 520px) {
  .app {
    padding: 10px 12px 18px;
  }
  .topbar {
    padding: 4px 2px 16px;
  }
  .head-line {
    margin-top: -12px;
  }
  .logo-text {
    transform: translateY(-24px);
  } /* 移动端相对基准下移10px */
  .home-tabs {
    margin: 16px 0 12px;
  }
  .emotion-panel {
    padding: 18px 18px 20px;
  }
  .accs {
    margin-top: 6px;
    border-radius: 14px;
  }
  .acc-head {
    min-height: 48px;
    padding: 0 14px;
  }
  .acc-title {
    font-size: 15px;
  }
  .acc-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .acc-inner {
    padding: 12px 14px 14px;
    gap: 12px;
  }
  .drop-zone {
    padding: 18px 12px;
  }
  .rec-btn {
    padding: 11px 18px;
    font-size: 14px;
  }
  /* 底部信息让位：一屏放下四个标题栏 + 首个展开区 */
  .scenes,
  .footer {
    display: none;
  }
}

@media (min-width: 520px) {
  .app {
    padding-top: 18px;
  }
}

/* ============ 登录/注册弹窗（卡片式，简洁） ============ */
.auth-modal {
  position: relative;
  max-width: 360px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--txt-dim);
  background: none;
  z-index: 1;
}
.modal-close:hover {
  background: var(--bg-soft);
  color: var(--txt);
}

.auth-modal .tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 16px;
}
.auth-modal .tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--txt-dim);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.auth-modal .tab.active {
  color: var(--txt);
  border-bottom-color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-row {
  display: flex;
  gap: 10px;
}
.code-row .text-input {
  flex: 1;
  min-width: 0;
}

.forgot-link {
  align-self: center;
  background: none;
  border: none;
  padding: 4px 0;
  margin-top: 2px;
  color: #9a9a9a;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.forgot-link:hover {
  color: #e50914;
}

/* 注册：协议强勾选（未勾选不可注册；文本与链接对齐底部） */
.register-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.register-agree input[type="checkbox"] {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: #e50914;
  cursor: pointer;
}
.agree-link {
  display: inline;
  padding: 0 2px;
  margin: 0;
  background: none;
  border: none;
  color: #e50914;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}
.agree-link:hover {
  text-decoration: underline;
}

.btn-code {
  flex-shrink: 0;
  padding: 0 16px;
  height: 44px;
  background: #222;
  border: 1px solid rgba(229, 9, 20, 0.6);
  color: #fff;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-code:hover {
  background: #2a2a2a;
  border-color: #ff2a31;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}
.btn-code:disabled {
  background: #222;
  border-color: #3a3a3a;
  color: var(--txt-faint);
  cursor: not-allowed;
  box-shadow: none;
}

.auth-tip {
  min-height: 20px;
  text-align: center;
  font-size: 13px;
  color: #ff5c63;
}
.auth-tip.ok {
  color: #2bd576;
}

/* ============ 账户与资产（首页单页化：弹窗 + 侧边 Drawer） ============ */
/* 顶栏头像（已登录时替换「我的主页」） */
.asset-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
}
.asset-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Drawer 容器：从右侧滑入 */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(360px, 92vw);
  max-height: 88vh;
  background: var(--bg);
  box-shadow: var(--shadow-modal);
  z-index: 111;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s;
  border-radius: 16px;
  overflow: hidden;
}
.drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
}

/* ===== 个人主页：封面 Hero + 用户 + 数据 + 胶囊菜单（无外框，内容平铺贴边） ===== */
.profile-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* 封面 Hero：深炭渐变 + 微弱红辉光，会员等级大字居中其上，头像下沉重叠底部 */
.pc-cover {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(160% 220% at 82% -40%, rgba(229, 9, 20, 0.42), transparent 60%),
    radial-gradient(120% 160% at 100% 130%, rgba(229, 9, 20, 0.16), transparent 50%),
    linear-gradient(135deg, #2d2d2d, #1a1a1a 70%);
}
/* 会员等级：封面中央，白色大字 */
.pc-tier {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
/* 城市合伙人角标：封面右下角，红色身份徽章 */
.pc-partner {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(229, 9, 20, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pc-partner:hover {
  background: #e50914;
}

/* 用户信息：头像下沉压封面，昵称/徽章/简介在封面之下 */
.pc-user {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 18px;
}
/* 头像下沉压封面：负 margin 上移（flex-end 下饱和），再以 top 偏移精调，使封面下沿穿过头像直径 */
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: -52px;
  top: -18px;
}
.avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-soft);
  object-fit: cover;
  border: 3px solid var(--card);
  display: block;
  box-shadow: var(--shadow);
  cursor: pointer; /* 点击头像直接更换 */
}
/* 「编辑资料」纯文字按钮：字号/颜色对齐简介（系统测试超级账户） */
.btn-edit-profile {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--txt-dim);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-edit-profile:hover {
  color: var(--txt);
}
.dash-user-meta {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.dash-name-row {
  display: flex;
  align-items: center;
  min-width: 0;
}
.nickname {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio {
  font-size: 12px;
  color: var(--txt-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-exp {
  font-size: 10px;
  color: var(--txt-faint);
  margin-top: 3px;
}
/* 自动续费开关行：付费会员显示，靠右排布开关，文案左对齐 */
.plan-auto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  min-height: 20px;
}
.plan-auto-text {
  font-size: 10px;
  color: var(--txt-dim);
  line-height: 1.4;
}
/* 退订 / 恢复按钮（自动续费状态行右侧）：无边框小胶囊，低干扰但明确可点 */
.plan-unsub-btn {
  flex-shrink: 0;
  padding: 3px 12px;
  border: 1px solid var(--line-hi, #4a4a4a);
  border-radius: var(--pill);
  background: transparent;
  color: var(--txt-dim);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.plan-unsub-btn:hover {
  color: var(--txt);
  border-color: var(--accent);
}
.plan-unsub-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.plan-unsub-btn.is-restore {
  color: var(--accent);
  border-color: var(--accent);
}

/* —— 订单与退款（我的主页 · 订单与退款胶囊）—— */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.order-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.order-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--txt);
}
.order-mode {
  font-style: normal;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.order-sub {
  font-size: 11px;
  color: var(--txt-faint);
}
.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.order-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}
.order-status {
  font-size: 11px;
  color: var(--txt-dim);
}
.order-status.refunded {
  color: var(--txt-faint);
}
.order-status.refunding {
  color: #e8a33d;
}
.order-flag {
  font-size: 10px;
  color: #e8a33d;
}
.order-refund-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 2px;
  padding: 4px 12px;
  border: 1px solid var(--line-hi, #4a4a4a);
  border-radius: var(--pill);
  background: transparent;
  color: var(--txt);
  font-size: 11px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.order-refund-btn i {
  font-style: normal;
  font-size: 9px;
  color: var(--txt-faint);
}
.order-refund-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.order-refund-btn:hover i {
  color: var(--accent);
}
.order-refund-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.order-note {
  margin: 10px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--txt-faint);
}
.order-note b {
  color: var(--txt-dim);
  font-weight: 600;
}

/* 会员等级徽章：昵称旁的小胶囊（红描边，暗色底） */
.tier-badge {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ff5c63;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.45);
  white-space: nowrap;
}

/* 数据行：积分余额 / 累计作品 / 素材数量（三栏，分隔线，靠 padding 隔开） */
.pc-stats {
  display: flex;
  align-items: center;
  padding: 22px 18px 24px;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat-num {
  font-size: 20px;
  font-weight: 700;
}
.stat-suffix {
  font-size: 13px;
  color: var(--txt-dim);
  font-weight: 600;
}
.stat-label {
  font-size: 12px;
  color: var(--txt-dim);
  margin-top: 4px;
}
.stat-sub {
  font-size: 10px;
  color: var(--txt-dim);
  margin-top: 2px;
  letter-spacing: 0.3px;
  opacity: 0.85;
}
.stat-link {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
}
.points-guide {
  padding: 0 18px 4px;
  font-size: 12px;
  color: var(--txt-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 每日签到按钮（我的主页数据行下方） */
.checkin-row {
  padding: 6px 18px 0;
}
.checkin-btn {
  width: 100%;
  padding: 9px 0;
  border: 1px solid rgba(229, 9, 20, 0.65);
  border-radius: var(--radius-s, 8px);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.checkin-btn:hover {
  background: rgba(229, 9, 20, 0.22);
  border-color: #e50914;
}
.checkin-btn:disabled {
  background: #1f1f1f;
  border-color: #333;
  color: #8a8a8e;
  cursor: default;
}

/* 功能菜单（我的作品 / 邀请好友）：参照「说明」页 help-panel 排布——整张卡片 + 分隔行，非胶囊按钮 */
.pc-list {
  list-style: none;
  margin: 4px 18px 12px;
  padding: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.pc-item + .pc-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pc-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--txt);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.pc-item-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--txt-dim);
  transition: transform 0.3s ease;
}
.pc-item.open .pc-arrow {
  transform: rotate(90deg);
}
.pc-sub {
  padding: 2px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 我的作品：可点击作品列表（全部作品，点击即播放） */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  min-height: 0;
}
.work-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--txt);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.work-row:active {
  background: #262626;
}
.work-row[disabled] {
  cursor: default;
  opacity: 0.7;
}
.work-row-ic {
  flex-shrink: 0;
  color: #a1a1aa;
  display: inline-flex;
}
.work-row-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-row-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.work-row-status.doing {
  background: rgba(229, 9, 20, 0.2);
  color: #ff5c63;
}
.work-row-status.done {
  background: rgba(43, 213, 118, 0.16);
  color: #2bd576;
}
.work-row-backfill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid #e5e5e5;
  border-radius: var(--pill);
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.work-row-backfill:active {
  background: #f2f2f2;
}
.work-row-pubed {
  cursor: pointer;
}
.work-row-play {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 12px;
}

/* 我的作品：缩略图网格（已移除，改为标签+下拉框） */

/* 素材库（Drawer 内下拉，与「我的作品」一致） */
.mat-tabs {
  display: flex;
  gap: 8px;
}
.mat-list {
  overflow-y: auto;
  max-height: 44vh;
  min-height: 0;
}
.mat-tab {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #222;
  color: #fff;
  border-radius: var(--pill);
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.mat-tab:hover {
  background: #2a2a2a;
  border-color: #ff2a31;
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}
/* 素材库标签页选中态：半透明红底 + 红边（选中反馈，不做纯色填充） */
.mat-tab.active {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.8);
  color: #fff;
}
.mat-tab.active:hover {
  background: rgba(229, 9, 20, 0.28);
  border-color: #ff2a31;
}
.mat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mat-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #1f1f1f;
}
.mat-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  background: linear-gradient(135deg, #2a2a2a, #232323);
  overflow: hidden;
}
.mat-thumb img,
.mat-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mat-thumb.audio-thumb {
  font-size: 26px;
  color: #a3a3a3;
}
.mat-name {
  font-size: 11px;
  color: var(--txt-dim);
  padding: 6px 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mat-ops {
  display: flex;
  gap: 6px;
  padding: 0 8px 8px;
}
.mat-op {
  flex: 1;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--pill);
  background: #222;
  color: #fff;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.mat-op:hover {
  background: #2a2a2a;
  border-color: #ff2a31;
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}
.mat-op[data-op="reuse"] {
  color: #ff5c63;
  border-color: rgba(229, 9, 20, 0.6);
}
.mat-op[data-op="reuse"]:hover {
  background: rgba(229, 9, 20, 0.12);
}

/* 退出登录 */
.btn-logout {
  width: 100%;
  padding: 14px 0;
  border: none;
  background: none;
  color: var(--txt-dim);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 播放器弹窗 */
.player-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.player-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 34px;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.player-download {
  position: absolute;
  top: 10px;
  right: 54px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.player-download svg {
  width: 18px;
  height: 18px;
}
.player-download:hover {
  background: rgba(229, 9, 20, 0.7);
}
.player-box video {
  width: 100%;
  max-height: 80vh;
  display: block;
}
.player-image {
  width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  background: #000;
}

/* 邀请海报 */
.invite-modal {
  align-items: center;
}
.poster-wrap {
  width: 100%;
}
.poster-wrap img {
  width: 100%;
  border-radius: var(--radius-s);
  display: block;
}
.invite-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.invite-actions .btn {
  flex: 1;
}
.invite-note {
  font-size: 12px;
  color: var(--txt-faint);
  text-align: center;
}

/* 城市合伙人弹窗 */
.partner-modal {
  max-width: 380px;
  max-height: 90dvh;
  overflow-y: auto;
}
/* 收益面板手风琴：复用说明栏样式；展开高度由 help-item 上限控制，明细列表内部自行滚动 */
.partner-panel :is(.partner-list) {
  max-height: 32vh;
}
/* 发起提现等项内容较多，覆盖全局 320px 展开上限，保证完整可见 */
.partner-panel .help-item.open .help-item-body {
  max-height: 780px;
}
.partner-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.partner-progress-track {
  height: 8px;
  border-radius: var(--pill);
  background: #2a2a2a;
  overflow: hidden;
}
.partner-progress-fill {
  height: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, #e50914, #ff5c63);
  transition: width 0.4s ease;
}
.partner-progress-text {
  font-size: 13px;
  color: var(--txt-dim);
}
.partner-hint {
  font-size: 12px;
  color: var(--txt-faint);
}
/* 提现个税预览：金额下方的「预计个税 / 实际到账」，弱化底色、强调到账数字 */
.partner-preview {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 9, 20, 0.22);
  font-size: 12px;
  color: var(--txt-dim);
}
.partner-preview b {
  color: var(--accent-hi);
  font-weight: 500;
}
.partner-preview .pp-raw {
  font-style: normal;
  font-size: 11px;
  color: var(--txt-faint);
}
/* 未达标视图按钮：胶囊体，与「去邀请好友/关闭」一致，按钮间加垂直间距 */
.partner-progress + .partner-hint {
  margin: 10px 0 18px;
}
#pProgressBlock .btn-outline {
  margin-top: 0;
}
#pUpgradeBtn {
  margin-bottom: 10px;
}
/* 到账设置 / 发起提现：表单内部元素统一纵向间距；「申请提现」为最重主动作，亮红填充保证暗底可见 */
.partner-panel .field-label {
  letter-spacing: 0.3px;
}
.partner-panel #pIdentityForm,
.partner-panel #pAlipayForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 面板内相邻字段统一基础间距 */
.partner-panel .field + .field {
  margin-top: 10px;
}
/* 实名 与 支付宝 两个字段用分隔线+留白区分，避免堆叠不协调 */
.partner-panel .field-identity + .field-alipay {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
/* 已完成状态：绿色对勾，清晰可读 */
#pIdentitySummary::before,
#pAlipaySummary::before {
  content: "✓ ";
  color: var(--green);
  letter-spacing: 0.5px;
}
/* 到账设置完成摘要：在分组内留一点底边距，与后续内容分隔 */
.partner-panel #pIdentityDone,
.partner-panel #pAlipayDone {
  padding-top: 2px;
}
/* —— 提现资料（个人/企业 分润类型 + 证件存证 + 支付宝收款） —— */
.partner-type-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.partner-type-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--txt-dim);
  font-size: 13px; /* 与「证件照片」field-label 一致，避免挤压下方字段 */
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.partner-type-btn.selected {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 600;
}
.ppay-done {
  margin: 4px 0 2px;
}
.ppay-summary {
  font-size: 12px;
  line-height: 1.7;
}
.ppay-form {
  display: flex;
  flex-direction: column;
}
.ppay-form .field + .field {
  margin-top: 10px;
}
/* 证件上传：按钮式，选中后显示缩略图 + 已上传态 */
.doc-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.doc-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.doc-upload:hover {
  border-color: var(--txt-dim);
}
.doc-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.doc-upload .doc-thumb {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-upload.has-file .doc-thumb {
  display: block;
}
.doc-upload.has-file .doc-placeholder {
  display: none;
}
.doc-upload .doc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--txt-dim);
  font-size: 11px;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0 4px;
}
.doc-upload .doc-placeholder::before {
  content: "＋";
  font-size: 20px;
  line-height: 1;
  color: var(--txt-dim);
}
#pWithdrawBtn {
  margin-top: 14px;
  background: var(--accent);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.45);
}
#pWithdrawBtn:hover {
  background: #c10712;
  color: #fff;
}
#pWithdrawBtn:active {
  background: #b20710;
}
/* 提现金额由用户自行填写：隐藏数字输入框自带的增减按钮 */
#pAmount::-webkit-outer-spin-button,
#pAmount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#pAmount {
  -moz-appearance: textfield;
  appearance: textfield;
}
.partner-stats {
  display: flex;
  align-items: center;
  padding: 14px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #1c1c1c;
}
.partner-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.partner-stat-num {
  font-size: 20px;
  font-weight: 700; /* 对齐我的主页数据数字 stat-num */
  color: #fff;
  max-width: 100%;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.partner-stat-num::before {
  content: "¥";
  font-size: 12px;
  color: var(--txt-dim);
  margin-right: 1px;
}
.partner-stat-label {
  font-size: 12px;
  color: var(--txt-dim);
} /* 对齐我的主页数据标签 stat-label */
.partner-modal .field-label {
  font-weight: 400;
} /* 弹窗内字段标签改为细字重，贴合我的主页轻量排版 */
.partner-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.partner-city-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-city-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--txt-dim);
}
.partner-city-select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
}
.partner-city-save {
  flex-shrink: 0;
  padding: 10px 14px;
  white-space: nowrap;
}
.partner-sec-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-dim);
  margin-top: 2px;
}
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 26vh;
  overflow-y: auto;
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  background: #1f1f1f;
  font-size: 12px;
}
.partner-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.partner-row-title {
  color: var(--txt);
}
/* 佣金层级小标：一级/二级 */
.partner-lv {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: var(--pill);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 1px;
  color: var(--txt);
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.35);
}
.partner-row-sub {
  color: var(--txt-faint);
}
.partner-row-amt {
  flex-shrink: 0;
  font-weight: 600;
  color: #fff;
}
.partner-row-amt.plus {
  color: #ff5c63;
}
.partner-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--pill);
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--txt-dim);
}
.partner-tag.settled {
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.5);
}
.partner-tag.pending {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.5);
}
.partner-tag.paid {
  color: #fff;
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.12);
}
.partner-tag.rejected {
  color: var(--txt-faint);
}
.partner-tag.recharged {
  color: #ff5c63;
  border-color: rgba(229, 9, 20, 0.5);
}
.partner-tag.nopay {
  color: var(--txt-faint);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 推广明细 */
.partner-invite-summary {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: #1c1c1c;
  font-size: 12px;
  color: var(--txt-dim);
}
.partner-invite-summary b {
  color: #fff;
  font-weight: 600;
}

/* 套餐升级 */
/* 购买方式切换（连续包月 / 单月购买） */
.plan-bill-toggle {
  display: flex;
  gap: 6px;
  padding: 3px;
  margin-bottom: 12px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.plan-bill-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--txt-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: calc(var(--radius-s) - 2px);
  transition: all 0.2s ease;
}
.plan-bill-btn:hover {
  color: #fff;
}
.plan-bill-btn.plan-bill-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}
/* 连续包月能力未开（个人主体无周期扣款）：入口置灰禁点（mp/tier 按钮共用同一套基类名前缀差异，统一用 bill-off） */
.bill-off {
  opacity: 0.45;
  cursor: not-allowed;
}
.bill-off:hover {
  color: inherit;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #1f1f1f;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.plan-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.plan-card-hot {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.08);
}
.plan-card-name {
  font-size: 16px;
  font-weight: 700;
}
.plan-card-price {
  font-size: 15px;
  color: #ff5c63;
  font-weight: 600;
}
.plan-card-per {
  font-size: 12px;
  color: var(--txt-faint);
  font-weight: 400;
  margin-left: 2px;
}
.plan-card-bill-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--txt-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.plan-card-bill-tag.tag-sub {
  color: #ffd9db;
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.1);
}
.plan-card-cta {
  align-self: stretch;
  margin-top: 6px;
  padding: 8px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  background: var(--accent);
}
.plan-note {
  font-size: 12px;
  color: var(--txt-faint);
  text-align: center;
}

/* 充值弹窗：固定套餐（主展示，2×2）+ 自定义金额（宽度对齐注册框 360px） */
.recharge-modal {
  max-width: 360px;
}

/* ---- 状态栏弹出的卡片：标题/内容文字统一为「商品成片」规格（13px 移动 / 17px 桌面） ---- */
.help-title,
.modal-title,
.drawer-title,
.msg-title,
.plan-title {
  font-size: 17px; /* 桌面与「商品成片」标题一致 */
  font-weight: 400;
}
@media (max-width: 519px) {
  .help-title,
  .modal-title,
  .drawer-title,
  .msg-title,
  .plan-title {
    font-size: 13px;
  }
}
/* 内容文字统一为「商品成片」描述规格（11px 移动 / 13px 桌面） */
.help-item-inner,
.modal-sub,
.drawer-body,
.recharge-note,
.plan-note,
.msg-list,
.help-recharge-btn {
  font-size: 13px;
}
@media (max-width: 519px) {
  .help-item-inner,
  .modal-sub,
  .drawer-body,
  .recharge-note,
  .plan-note,
  .msg-list,
  .help-recharge-btn {
    font-size: 11px;
  }
}
/* 我的主页标题字号与场景 Tab 统一（14px 桌面 / 12px 移动），不随上方弹窗标题组放大 */
.drawer-title {
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 519px) {
  .drawer-title {
    font-size: 12px;
  }
}
.recharge-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.recharge-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  background: #1f1f1f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.recharge-pack:hover {
  border-color: var(--line-hi);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.recharge-pack.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 4px 16px rgba(229, 9, 20, 0.28);
}
.rp-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}
.rp-points {
  font-size: 12px;
  color: var(--txt-dim);
}
.rp-bonus {
  font-size: 11px;
  color: #ff5c63;
}
/* 「超值推荐 / 商家首选」角标 */
.rp-tag {
  position: absolute;
  top: -8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ff5c63;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.55);
  border-radius: var(--pill);
  white-space: nowrap;
}
/* 自定义金额已按需求移除 */
.recharge-note {
  font-size: 12px;
  color: var(--txt-faint);
  text-align: center;
}
.help-recharge-btn {
  width: 100%;
  margin-top: 6px;
}

/* =========================================================================
   Netflix 式首页 v2：间距铁律（左右 20 / CTA 上方 32 / 区块间 24-32）
   「内容浮在黑底上」的大量留白呼吸感
   ========================================================================= */

/* 页面左右 20px 边距；底部为固定导航让位 */
.app {
  padding: 20px 20px 104px;
}

/* 视图切换：一次只显示一个 .active */
.view {
  display: none;
}
.view.active {
  display: block;
}

/* ---- 主 CTA：奈飞红大按钮（占屏宽 70%，上方留 32px 空白） ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px; /* 大按钮上方 32px 空白 */
  padding-bottom: 6px;
}
.btn-hero-ai {
  width: 70%;
  padding: 20px 0;
  background: #e50914; /* 奈飞红主按钮：亮底 + 白字，暗色上醒目 */
  color: #fff;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.35);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-hero-ai:active {
  transform: scale(0.97);
  background: #f6121d;
}
.hero-bolt {
  font-size: 24px;
  line-height: 1;
}
.hero-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--txt-dim);
}

/* ---- 选择创作方式：2×2 场景网格 ---- */
.scene-section {
  margin-top: 32px;
} /* 与 CTA 之间留白 */

/* 必选锁定态：未选好创作场景前，四个功能区灰显且不可交互 */
.scene-section.locked .scene-grid {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(1);
}
.scene-section.locked .scene-grid > .acc {
  pointer-events: none;
}
.scene-lock-tip {
  display: none;
}
.scene-section.locked .scene-lock-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #cfcfcf;
  background: #1d1d1d;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
.section-label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--txt-dim);
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.scene-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 12px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.scene-cell:active {
  transform: scale(0.96);
}
@media (hover: hover) {
  .scene-cell:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: #262626;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}
.scene-ic {
  color: #d6d6d6;
  display: inline-flex;
}
.scene-ic svg {
  display: block;
}
.scene-txt {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- 创作场景 Tab：全站唯一的人设/导演开关（线上商家/线下商家/个人创作） ---- */
.scene-tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 14px; /* 与上方「数据信任条」保持间距 */
  padding: 4px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.scene-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #b9b9b9;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.scene-tab:active {
  transform: scale(0.97);
}
.scene-tab-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.scene-tab-sub {
  font-size: 11px;
  color: var(--txt-dim);
  letter-spacing: 0.5px;
}
.scene-tab.active {
  background: #3a3a3a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.scene-tab.active .scene-tab-sub {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- 卡片就地展开的工具面板：浮层定位在被点卡片正下方，脱离网格流，不挤动卡片换行 ---- */
.scene-section {
  position: relative;
}
.scene-grid > .acc {
  position: absolute;
  left: 0;
  right: 0;
  grid-column: auto;
  z-index: 30;
}
.scene-grid > .acc:not(.open) {
  display: none;
} /* 收起不占位，避免卡片间隙异常 */
.scene-grid > .acc.open {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  animation: sceneAccIn 0.35s ease;
}
@keyframes sceneAccIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---- 已生成作品流（纵向大卡片：封面左 / 文字右） ---- */
.works-section {
  margin-top: 32px;
} /* 与场景网格间留白 */
.section-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
}
.work-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  min-height: 0;
}
.work-empty {
  margin: 4px 0;
  font-size: 13px;
  color: var(--txt-faint);
}
.work-card {
  width: 90%; /* 每张占屏宽 90% */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.work-card:active {
  background: #262626;
}
.work-cover {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-cover svg {
  display: block;
}
.work-cover.working {
  background: rgba(229, 9, 20, 0.18);
  color: #ff5c63;
}
.work-cover.done {
  background: rgba(255, 255, 255, 0.08);
  color: #d0d0d0;
}
.work-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-card-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card-status {
  font-size: 12px;
  letter-spacing: 0.5px;
}
.work-card-status.working {
  color: #ff5c63;
}
.work-card-status.done {
  color: #2bd576;
}

/* ---- 底部导航：创作 / 搜索 / 我的（半透明黑 + 毛玻璃） ---- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(12, 12, 12, 0.92); /* 半透明黑 + 毛玻璃 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  box-sizing: content-box;
  z-index: 120; /* 高于 modal 遮罩(100)/帮助弹窗，低于弹窗主体(200)：底栏始终可点，切面板不再被遮罩吞点击 */
}
.tabbar-item {
  flex: 1;
  height: 37px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--txt-dim);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tabbar-item svg {
  display: block;
  width: 18px;
  height: 18px;
}
.tabbar-item.active {
  color: var(--txt-dim);
}

/* ============ 说明视图：免费版 / 会员版 / 积分获取 / 常见问题 + 升级会员 ============ */
.view-help {
  padding-bottom: 8px;
}

/* 顶部导航栏：← 返回 | 说明（紧凑） */
.help-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 12px;
}
.help-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}
.help-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.help-back:active {
  transform: scale(0.94);
}
.help-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #fff;
}
.help-topbar-spacer {
  flex-shrink: 0;
  width: 30px;
}

/* 说明弹窗：超高时内部滚动，保证规则看不被截断 */
.help-modal {
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 一张大卡片：四个标题用分隔线隔开，手风琴式展开（展开一个折叠其它） */
.help-panel {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 分隔线：除第一项外，每项顶部加一条细分隔线 */
.help-item + .help-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.help-item-head {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.help-emoji {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.help-item-title {
  flex: 1;
  min-width: 0;
  font-size: 13px; /* 与「商品成片」标题一致 */
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.help-arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--txt-dim);
  transition: transform 0.3s ease;
}
.help-item.open .help-arrow {
  transform: rotate(90deg);
}

/* 展开区：默认只露出标题，点开才平滑展开说明文字 */
.help-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.help-item.open .help-item-body {
  max-height: 680px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(229, 9, 20, 0.3);
}
.help-item-inner {
  padding: 12px;
}

/* 权益 / 常见问题列表 */
.help-ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-ul li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
  color: var(--txt);
}
.help-ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 升级会员：底部红色胶囊按钮 */
.btn-upgrade {
  width: 100%;
  margin-top: 18px;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.45);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.btn-upgrade:hover {
  background: #c10712;
}
.btn-upgrade:active {
  transform: scale(0.97);
}

@media (min-width: 768px) {
  .help-topbar {
    padding: 4px 2px 16px;
  }
  .help-item-head {
    min-height: 50px;
    padding: 0 16px;
  }
  .help-item-title {
    font-size: 17px;
  } /* 与桌面端「商品成片」标题一致 */
  .help-item-inner {
    padding: 14px 16px;
  }
  .btn-upgrade {
    padding: 15px 24px;
  }
}

/* ---- 搜索视图 ---- */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 14px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--txt-dim);
}
.search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-sans);
}
.search-input::placeholder {
  color: var(--txt-faint);
}
.search-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.search-hit-t {
  font-size: 15px;
  font-weight: 400;
}
.search-hit-d {
  font-size: 12px;
  color: var(--txt-dim);
  flex-shrink: 0;
}
.search-empty {
  margin-top: 34px;
  text-align: center;
  font-size: 13px;
  color: var(--txt-faint);
}

/* ---- AI 极速出片：生成中按钮动画（全宽进度条 + 阶段文字 + 百分比） ---- */
.aiq-stage {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aiq-pct {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* 窄屏：维持 20px 左右边距，为底部固定导航留足空间 */
@media (max-width: 520px) {
  .app {
    padding: 14px 20px 96px;
  }
  .hero {
    padding-top: 24px;
  }
  .btn-hero-ai {
    width: 76%;
  }
}

/* =========================================================================
   Bento Grid 深色首页（2026 参考稿重排）
   ========================================================================= */

/* ---- 顶部栏：极轻、半透明毛玻璃、吸顶 ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 0;
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-bell {
  position: relative;
  display: inline-flex;
  padding: 6px;
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
}
.btn-bell svg {
  display: block;
}
.bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* 站内信头部「反馈」按钮（「全部已读」旁边，同款文字小按钮） */
.msg-fb {
  background: none;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  margin-left: 2px;
  margin-right: 46px; /* 给右侧关闭按钮留位 */
  transition: color 0.2s ease;
}
.msg-fb:hover {
  color: #ff5c63;
}
/* 反馈弹窗内容（站内信同款深色弹窗，简洁表单） */
.fb-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.fb-tip {
  margin: 0;
  font-size: 13px;
  color: var(--txt-faint);
  line-height: 1.6;
}
.fb-text {
  width: 100%;
  min-height: 96px;
  font-size: 14px;
  line-height: 1.7;
}
.fb-count {
  margin: -4px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--txt-faint);
}
.fb-count.full {
  color: var(--accent);
}
.fb-contact {
  width: 100%;
  font-size: 14px;
}
.btn-asset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #e4e4e7;
}
.asset-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #262626;
  color: #a1a1aa;
}
.asset-avatar svg {
  display: block;
}
.asset-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #e4e4e7;
}

/* ---- 主 CTA：AI 极速出片（顶部标题行 + 输入框与按钮合并容器） ---- */
.hero-bento {
  position: relative;
  margin-top: 24px; /* CTA 上方留白 */
  padding: 20px 16px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
/* 顶部标题行：左「个人创作（个人版）」右「3分钟极速出片」，同一行左右对齐 */
.hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
}
/*「文字成片」纯文字：去掉红色框与小点，字号与「商品成片」标题一致（13px 移动 / 17px 桌面） */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.ai-dot {
  display: none; /* 小点已删除 */
}
.hero-slogan {
  font-size: 11px; /* 与「上传商品图，AI 自动生成带货短视频」(cell-desc) 一致 */
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #9ca3af;
  white-space: nowrap;
}
/* 输入框容器（便利贴式布局）：输入框铺满容器整个宽度（看起来尽量大），
   「一键出片」按钮像便利贴一样钉在右下角；右侧预留禁飞区，文字碰到就换行，绝不压到按钮 */
.input-wrapper {
  position: relative; /* 作为按钮/计数器的定位基准 */
  padding: 12px 14px 12px 16px;
  background: #242424;
  border: 1px solid #333;
  border-radius: 16px;
}
.input-wrapper .text-input {
  display: block;
  width: 100%; /* 占满整个容器宽度，输入框越大越好 */
  min-height: 30px;
  padding: 6px 4px 44px 2px; /* 左右对称贴边：左 2px+容器16px=18px，右 4px+容器14px=18px，文字靠右框换行；底部 44px 让最后一行停在按钮上方（按钮高36px，留8px呼吸），绝不压到按钮 */
  border: none;
  background: transparent;
  box-shadow: none;
  resize: none; /* 高度由 JS 随文字自动向下增高，不出现滚动条 */
  overflow: hidden; /* 永不出现内部滚动条（下拉框），只靠增高来容纳文字 */
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}
.input-wrapper .text-input:hover,
.input-wrapper .text-input:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.input-wrapper .text-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.input-wrapper .aiq-count {
  position: absolute;
  right: 110px; /* 位于按钮左侧的底部空白带内，不与文字、按钮重叠 */
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  user-select: none;
}
.input-wrapper .aiq-count.full {
  color: #ff5c63;
}

/* ---- 文字成片 卡片展开区（复用 .field / .text-input，脱离 .input-wrapper 后补齐计数与锁定样式） ---- */
.field .aiq-count {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--txt-dim);
}
.field .aiq-count.full {
  color: #ff5c63;
}
#aiQuickText {
  min-height: 72px;
} /* 折叠态测量为 0 时仍保证可见高度 */
.text-input.aiq-locked {
  overflow: hidden;
  opacity: 0.5;
  cursor: not-allowed;
}
/* 生成中：输入框锁定，收缩回初始单行大小，不可输入（多行文本内部裁剪） */
.input-wrapper .text-input.aiq-locked {
  overflow: hidden;
  opacity: 0.5;
  cursor: not-allowed;
}
/* 内嵌红色「一键出片」胶囊按钮：像便利贴一样钉在右下角，固定宽高，不参与布局、永不遮挡文字 */
.input-wrapper .btn-gen {
  position: absolute; /* 钉在右下角，不占位，文字从不会跑它上面 */
  right: 14px;
  bottom: 12px;
  width: 88px; /* 固定宽度（小尺寸，不抢眼） */
  height: 36px; /* 固定高度 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.3);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.input-wrapper .btn-gen:hover {
  background: #c10712;
}
.input-wrapper .btn-gen:active {
  transform: scale(0.96);
}
.input-wrapper .btn-gen:disabled {
  cursor: not-allowed;
}
/* 生成中：按钮框变成全宽进度条（与文字输入框等长）——黑灰轨道 + 灰白进度，文字随进度明暗翻转 */
.input-wrapper .btn-gen.ai-running {
  left: 0;
  right: 0;
  width: auto; /* 全长：和文字输入框一样长 */
  height: 22px; /* 刚好一行字的高度（12px 文字），细长不抢眼 */
  padding: 0;
  background: #2b2b2b; /* 黑灰色进度轨道 */
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
  --p: 5%; /* 进度百分比，JS 每 250ms 更新 */
}
.input-wrapper .btn-gen.ai-running .aiq-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p);
  background: #d6d6d6; /* 灰白色进度 */
  transition: width 0.25s linear;
}
.input-wrapper .btn-gen.ai-running .aiq-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  transition: clip-path 0.25s linear;
}
/* 进度未到之处：浅色文字落在黑灰轨道上 */
.input-wrapper .btn-gen.ai-running .aiq-label.light {
  color: #e8e8e8;
  clip-path: inset(0 0 0 var(--p));
}
/* 进度已过之处：深色文字落在灰白进度上，保证可读 */
.input-wrapper .btn-gen.ai-running .aiq-label.dark {
  color: #161616;
  clip-path: inset(0 calc(100% - var(--p)) 0 0);
}
/* 生成中隐藏字数计数，避免压在全宽进度条上 */
.input-wrapper:has(.btn-gen.ai-running) .aiq-count {
  opacity: 0;
}

/* ---- 创作场景工作台：bento 网格 ---- */
.scene-section {
  margin-top: 28px;
}
.section-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scene-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  min-height: 88px; /* 与「商品成片」等高（wide 同基线） */
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.scene-cell:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .scene-cell:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: #202020;
  }
}
/* 当前选中的版块：与「线上商家 / 线下商家 / 个人创作」Tab 一致的亮底高亮（灰底填充 + 白字 + 阴影） */
.scene-cell.active {
  background: #3a3a3a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.scene-cell.active .cell-desc {
  color: rgba(255, 255, 255, 0.85);
}
.scene-cell.wide {
  grid-column: 1 / -1;
  padding: 16px;
}
.scene-cell.row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cell-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.cell-titles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}
.cell-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* 标题过长：单行截断省略号，不撑高卡片 */
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #fff;
}
.cell-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 描述过长：最多两行，超出省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  min-height: 3em; /* 固定两行占位：六张卡片高度绝对统一 */
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #9ca3af;
}
.cell-ic {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cell-ic svg {
  display: block;
}
.cell-ic.red {
  background: rgba(229, 9, 20, 0.1);
  color: var(--accent);
  border: 1px solid rgba(229, 9, 20, 0.18);
}
.cell-ic.emerald {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.18);
}
.cell-ic.amber {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.18);
}
.cell-ic.sky {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.18);
}
.cell-ic.violet {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.18);
}
.cell-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cell-tags span {
  font-size: 10px;
  font-weight: 300;
  color: #9ca3af;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}
.cell-arrow {
  flex-shrink: 0;
  display: inline-flex;
  color: #6b7280;
}
.cell-arrow svg {
  display: block;
}

/* ---- 最近作品（封面左 / 文字右） ---- */
.works-section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
}
.view-all {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #52525b;
  cursor: pointer;
}
.view-all:active {
  color: #fff;
}
.work-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  min-height: 0;
}
.work-empty {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 300;
  color: #52525b;
}
.work-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.work-card:active {
  background: #202020;
}
.work-cover {
  flex-shrink: 0;
  width: 96px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-cover svg {
  display: block;
}
.work-cover.working {
  background: rgba(229, 9, 20, 0.16);
  color: var(--accent);
}
.work-cover.done {
  background: #27272a;
  color: #a1a1aa;
}
.work-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-card-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card-status {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.work-card-status.working {
  color: var(--accent);
}
.work-card-status.done {
  color: #34d399;
}

/* 未登录占位卡：弱化边框与文字，提示登录后同步 */
.work-card.is-placeholder {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.work-card.is-placeholder:active {
  background: rgba(255, 255, 255, 0.02);
}
.work-card.is-placeholder .work-card-title {
  color: #6b7280;
}
.work-card.is-placeholder .work-card-status {
  color: #52525b;
}
.work-card.is-placeholder .work-cover.done {
  background: #262626;
  color: #6b7280;
}

/* 窄屏微调 */
@media (max-width: 520px) {
  .app {
    padding: 4px 20px 96px;
  }
  .hero-bento {
    padding: 20px 18px 18px;
  }
}

/* ============ 桌面端（≥768px）：自动"脱壳"，适配大屏 ============ */
@media (min-width: 768px) {
  /* 内容容器：去掉手机壳式的窄列限制，撑宽到 ~1152px 并满高 */
  .app-shell {
    max-width: 1152px; /* ≈ max-w-6xl */
    min-height: 100dvh;
  }
  .app {
    max-width: 100%;
    padding: 8px 32px 32px;
  }

  /* 底部导航：桌面端隐藏（说明/素材/权益/我的 改用顶部「素材」等按钮入口），手机/APP 保留 */
  .tabbar {
    display: none;
  }

  /* 版面字再放大一点 */
  .slogan {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* 主 CTA：更大更醒目的"一键出片"卡 */
  .hero-bento {
    padding: 30px 30px 28px;
    border-radius: 20px;
  }
  .hero-head {
    margin-bottom: 18px;
  }
  /* 桌面端：与「商品成片」标题一致（无框无点的纯文字） */
  .ai-badge {
    font-size: 17px;
    padding: 0;
  }
  .input-wrapper {
    padding: 14px;
    border-radius: 18px;
  }
  .input-wrapper .btn-gen {
    font-size: 14px;
  }

  /* 场景网格：六大版块改为 3 列（3×2 整齐排列），间距均分 */
  .scene-section {
    margin-top: 36px;
  }
  .section-label {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .scene-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  /* 原本跨整行的卡片收进单个格子里，统一为竖排卡片 */
  .scene-cell {
    padding: 20px;
    gap: 14px;
  }
  .scene-cell.wide,
  .scene-cell.row {
    grid-column: auto;
  }
  .scene-cell.row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .cell-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .cell-name {
    font-size: 17px;
  }
  .cell-desc {
    font-size: 13px;
    line-height: 1.45;
  }
  .hero-slogan {
    font-size: 13px;
    line-height: 1.45;
  }
  .cell-tags span {
    font-size: 12px;
    padding: 3px 10px;
  }

  /* 最近作品：手机单列 → 桌面两列横排 */
  .works-section {
    margin-top: 36px;
  }
  .section-title {
    font-size: 13px;
  }
  .work-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .work-card {
    padding: 14px;
  }
}

/* ============ 站内信 · 底部弹窗 ============ */
.msg-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.msg-mask.open {
  opacity: 1;
  visibility: visible;
}
.msg-sheet {
  width: 100%;
  max-width: 520px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.6);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 72dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.msg-mask.open .msg-sheet {
  transform: translateY(0);
}
.msg-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.msg-title {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.msg-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e50914;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.msg-count.zero {
  display: none;
}
.msg-allread {
  margin-left: auto;
  margin-right: 8px; /* 「反馈」按钮在右侧，无需再留位给关闭按钮 */
  background: none;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}
.msg-allread:hover {
  color: #fff;
}
.msg-allread:disabled {
  opacity: 0.4;
  cursor: default;
}
.msg-list {
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}
/* 消息列表：整张大卡片 + 分隔行（与「说明」页 help-panel 同款） */
.msg-list {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.2s ease;
}
.msg-item:last-child {
  border-bottom: none;
}
.msg-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.msg-item.unread {
  background: rgba(229, 9, 20, 0.06);
}
.msg-mbody {
  flex: 1;
  min-width: 0;
}
.msg-mtitle {
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.msg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e50914;
  flex-shrink: 0;
}
.msg-item.read .msg-dot {
  background: #3a3a3c;
}
.msg-mtext {
  font-size: 12px;
  color: #a3a3a3;
  margin-top: 4px;
  line-height: 1.5;
}
.msg-mtime {
  font-size: 11px;
  color: #6e6e73;
  margin-top: 6px;
}
.msg-empty {
  text-align: center;
  color: #6e6e73;
  font-size: 13px;
  padding: 30px 0;
}

/* 铃铛红点：默认隐藏，有未读消息时显示 */
.bell-dot {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bell-dot.show {
  opacity: 1;
}

/* ============ 素材库面板（Drawer） ============ */
.media-drawer {
  width: min(400px, 94vw);
}
.media-body {
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.media-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 2px 12px;
  margin-top: 20px;
}
/* 工具栏两个按钮：紧凑自适应宽度，居中排布并两侧留呼吸空间 */
.media-toolbar .btn-outline {
  flex: 0 0 auto;
  width: auto;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 500;
}
.media-newfld-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 文件夹归档行：上传选夹 + 新建输入 */
.media-folderbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.media-folder-sel {
  flex: 1;
  min-width: 0;
  background: #1f1f1f;
  color: #e4e4e7;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}
.media-folder-sel:focus {
  outline: none;
  border-color: #ff2a31;
}
.media-folder-input {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.media-folder-input .media-folder-name {
  flex: 1;
  min-width: 0;
}
.media-folder-ok {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
}

/* 文件夹芯片栏（横向滚动） */
.media-folderchips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.media-folderchips::-webkit-scrollbar {
  display: none;
}
.media-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 999px;
  color: #c7c7cc;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.media-chip:hover {
  border-color: rgba(229, 9, 20, 0.6);
  color: #fff;
}
.media-chip.active {
  background: #222;
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.22);
  color: #fff;
}
.media-chip.drag-over {
  border-color: #ff2a31;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
}
.media-chip .mf-count {
  font-size: 10px;
  color: #8e8e93;
  font-weight: 300;
}
.media-chip .mf-cnt {
  margin-left: 2px;
  font-size: 10px;
  color: #6e6e73;
}
.media-chip .mf-del {
  margin-left: 2px;
  color: #b0b0b5;
  font-size: 12px;
  line-height: 1;
}
.media-chip .mf-del:hover {
  color: #ff5c63;
}
.media-chip .mf-time {
  font-size: 9px;
  color: #6e6e73;
  font-weight: 300;
}

/* 素材卡片时间戳 */
.media-dt {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-size: 9px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 6px;
  padding: 1px 5px;
  z-index: 2;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.media-cell.is-dragged {
  opacity: 0.4;
}

/* ============ 说明 / 素材 / 站内信 改为弹窗，尺寸对齐充值卡片（固定 360px 宽容器） ============ */
.media-modal {
  width: 360px; /* 固定宽度，与充值积分卡片一致 */
  height: 540px; /* 固定高度，素材在框内滚动 */
  max-width: 94vw; /* 移动端不溢出 */
  max-height: 82vh;
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.msg-modal {
  max-width: 360px;
  max-height: 80vh;
  overflow: hidden;
  gap: 0;
}
.msg-modal .msg-list {
  flex: 1;
  min-height: 0;
}

/* 搜索行：输入框 + 红灯按钮 */
.media-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.media-search .text-input {
  flex: 1;
  min-width: 0;
}
.media-search-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.media-search-btn:hover {
  background: #c10712;
}

.media-translated {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #b0b0b5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  word-break: break-all;
}

.media-tabs {
  justify-content: center;
}
.media-tabs .mat-tab {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-s);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden; /* 窗口化：仅 6 张卡片，翻屏导航而非内部滚动 */
  align-content: start;
}
.media-grid::-webkit-scrollbar {
  width: 6px;
}
.media-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}
.media-cell {
  position: relative;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.media-cell:hover {
  border-color: rgba(229, 9, 20, 0.5);
}
.media-fig {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a2a2a, #222);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9c9ca1;
  flex-shrink: 0;
}
.media-fig img,
.media-fig video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-fig.is-bgm {
  color: #e6868c;
}
.media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.media-meta {
  padding: 7px 9px 9px;
  min-width: 0;
}
.media-name {
  font-size: 11px;
  font-weight: 400;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.media-tags {
  font-size: 10px;
  font-weight: 300;
  color: #8e8e93;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-dur {
  font-size: 10px;
  color: #6e6e73;
  margin-top: 2px;
}
.media-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.media-cell:hover .media-del {
  opacity: 1;
}
.media-del:hover {
  background: #ff2a31;
}

/* 窗口化缩略图：网格只显示 400×300 WebP，绝不加载原图 */
.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2a2a2a;
}

/* 翻屏分页器（素材区域恒 ≤ 6 张卡片，靠它和滚轮/滑动切换） */
.media-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 2px;
  flex-shrink: 0;
}
.media-pager button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.media-pager button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}
.media-pager button:disabled {
  opacity: 0.32;
  cursor: default;
}
.media-pager .mp-ind {
  font-size: 12px;
  color: #b0b0b5;
  min-width: 52px;
  text-align: center;
}

.media-foot {
  flex-shrink: 0;
}
.media-foot .btn-outline {
  width: 100%;
}

/* =====================================================================
   统一任务进度弹窗 TaskProgressModal（奈飞风 · 与 .modal 一致）
   ===================================================================== */
.tp-mask {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 120;
}
.tp-modal {
  width: 100%;
  max-width: 380px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: tpIn 0.28s ease;
}
@keyframes tpIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tp-title {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
}
.tp-bg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.tp-bg:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 阶段点：横向一排，点 + 连线 + 标签 */
.tp-stage-dots {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tp-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 7px;
}
.tp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3a3a3a;
  border: 2px solid #4a4a4a;
  transition: all 0.3s ease;
}
.tp-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.tp-dot.active {
  background: var(--accent);
  border-color: #ff5c63;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.25);
  animation: tpPulse 1.3s ease-in-out infinite;
}
@keyframes tpPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(229, 9, 20, 0.08);
  }
}
.tp-dot-label {
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.2px;
  text-align: center;
  transition: color 0.3s ease;
}
.tp-dot-label.on {
  color: #fff;
}
.tp-dot-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 6px 2px 0;
  background: #3a3a3a;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.tp-dot-line.done {
  background: var(--accent);
}

/* 当前阶段轮播文案 */
.tp-stage-text {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.4px;
  color: #e4e4e7;
  transition: opacity 0.35s ease;
}

.tp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.3px;
}
.tp-estimate {
  color: #6e6e73;
}
.tp-cost {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}

/* 完成：播放器 / 切片列表 */
.tp-result,
.tp-fail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #000;
}
.tp-slices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.tp-slice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #2a2a2a;
  border-radius: 10px;
}
.tp-slice-idx {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  flex: 0 0 auto;
}
.tp-slice-text {
  flex: 1 1 auto;
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tp-empty {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}
.tp-done-hint {
  text-align: center;
  font-size: 13.5px;
  color: #c8d0e0;
  letter-spacing: 0.3px;
}

.tp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  transition:
    background 0.18s ease,
    transform 0.12s ease;
}
.tp-btn:hover {
  background: #ff2a31;
}
.tp-btn:active {
  transform: scale(0.97);
}
.tp-btn.tp-retry {
  background: var(--accent);
}

.tp-fail-reason {
  font-size: 14px;
  color: #ff8a8a;
  text-align: center;
  line-height: 1.5;
}
.tp-fail-note {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

/* ============ 作品列表「展开全部 / 查看全部」下拉按钮（我的作品 + 最近作品 共用，默认最多显 5 条） ============ */
.work-more-toggle {
  grid-column: 1 / -1; /* 在「最近作品」两列网格里占满整行 */
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px dashed var(--line, #3a3a3a);
  border-radius: 12px;
  background: transparent;
  color: var(--txt-dim, #9aa0a6);
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.work-more-toggle:hover {
  color: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.06);
}
.work-more-center {
  text-align: center;
}

/* ============ 板块③ 口播视频：视频上传 + BGM 选择 + 字幕核对 ============ */

/* ---- 次级幽灵按钮（重新上传等）---- */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-hi, #4a4a4a);
  color: var(--txt-dim, #a3a3a3);
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: var(--accent, #e50914);
  color: #fff;
  background: rgba(229, 9, 20, 0.08);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

/* ---- 上传视频预览的元信息行（文件名 + 重新上传）---- */
.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--txt-dim, #a3a3a3);
  background: #1f1f1f;
  border-top: 1px solid var(--line, #333);
}
.video-meta-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- BGM 候选列表（按模式拉取）---- */
.bgm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.bgm-empty,
.bgm-loading {
  width: 100%;
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--txt-faint, #6e6e73);
  background: var(--bg-soft, #1f1f1f);
  border: 1px dashed var(--line, #333);
  border-radius: var(--radius-s, 8px);
  text-align: center;
}
.bgm-loading {
  color: var(--txt-dim, #a3a3a3);
}
/* —— 板块③ BGM 选择：横向长条下拉框 —— */
.bgm-select {
  position: relative;
  width: 100%;
}
.bgm-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-soft, #1f1f1f);
  border: 1px solid var(--line, #333);
  border-radius: var(--radius-s, 10px);
  cursor: pointer;
  color: var(--txt, #fff);
  text-align: left;
  font: inherit;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.bgm-select-trigger:hover {
  border-color: var(--line-hi, #4a4a4a);
}
.bgm-select-trigger.is-open {
  border-color: var(--accent, #e50914);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}
.bgm-select-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt, #fff);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgm-select-emotion {
  font-size: 11px;
  color: var(--txt-faint, #6e6e73);
  letter-spacing: 0.3px;
  flex: 0 0 auto;
}
.bgm-select-playing {
  display: none;
  font-size: 10px;
  color: var(--accent, #e50914);
  flex: 0 0 auto;
}
.bgm-select.is-playing .bgm-select-playing {
  display: inline;
}

/* 小三角试听按钮（口播视频 BGM，极简） */
.bgm-select-speaker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #333);
  border-radius: 8px;
  background: transparent;
  color: var(--txt-dim, #a3a3a3);
  cursor: pointer;
  user-select: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.bgm-select-speaker::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px; /* 视觉居中微调 */
}
.bgm-select-speaker:hover {
  color: var(--txt, #fff);
  border-color: var(--line-hi, #4a4a4a);
}
.bgm-select-speaker.is-active {
  color: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
}
.bgm-select.is-playing .bgm-select-speaker.is-active {
  animation: bgmSpeakerPulse 1s ease-in-out infinite;
}
@keyframes bgmSpeakerPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
.bgm-select-caret {
  flex: 0 0 auto;
  margin-left: 4px;
  color: var(--txt-dim, #a3a3a3);
  font-size: 12px;
  transition: transform 0.18s ease;
}
.bgm-select-trigger.is-open .bgm-select-caret {
  transform: rotate(180deg);
}

/* 菜单采用常规流（非绝对定位），避免被 .acc-body 的 overflow:hidden 裁剪；
   展开时自然向下撑开卡片，收起时 hidden 属性隐藏 */
.bgm-select-menu {
  margin-top: 6px;
  background: var(--bg-soft, #1f1f1f);
  border: 1px solid var(--line, #333);
  border-radius: var(--radius-s, 10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  padding: 5px;
  max-height: 260px;
  overflow-y: auto;
}
.bgm-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: var(--txt, #fff);
  text-align: left;
  font: inherit;
  transition: background 0.15s ease;
}
.bgm-option:hover {
  background: rgba(255, 255, 255, 0.06);
}
.bgm-option.selected {
  background: rgba(229, 9, 20, 0.12);
}
.bgm-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt, #fff);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgm-option-emotion {
  font-size: 11px;
  color: var(--txt-faint, #6e6e73);
  letter-spacing: 0.3px;
  flex: 0 0 auto;
}

/* 「自己的声音 ＋」上传入口（口播视频·音色选择） */
.bgm-option-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #333);
  border-radius: 7px;
  background: transparent;
  color: var(--txt-dim, #a3a3a3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.bgm-option:hover .bgm-option-plus {
  color: var(--txt, #fff);
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
}

/* 音色选择下拉内的分隔线 */
.bgm-option-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--line, #2c2c2c);
}

/* 每个 AI 音色条目里的试听小喇叭 */
.bgm-option-speaker {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line, #333);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.bgm-option-speaker::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 7px;
  color: var(--txt-dim, #a3a3a3);
  background: currentColor;
  clip-path: polygon(0 35%, 50% 35%, 100% 0, 100% 100%, 50% 65%, 0 65%);
}
.bgm-option-speaker:hover {
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
}
.bgm-option-speaker.is-playing,
.bgm-option-speaker.is-active {
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.16);
}

/* 播放中喇叭红点亮起（呼吸） */
.bgm-option-speaker.is-playing::before,
.bgm-option-speaker.is-active::before {
  color: var(--accent, #e50914);
  animation: vvSpkBreath 1.1s ease-in-out infinite;
}
@keyframes vvSpkBreath {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---- 口播视频·AI 配音文案输入（右下角字数小字 + 工具栏） ---- */
.vv-draft-field {
  position: relative;
}
.vv-draft-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: var(--txt-faint, #6e6e73);
  pointer-events: none;
}

/* ---- 音色下拉选项内试听小喇叭（视频配音/分镜成片） ---- */
.voice-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #333);
  border-radius: 7px;
  background: transparent;
  color: var(--txt-dim, #a3a3a3);
  cursor: pointer;
  user-select: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.voice-preview::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 1px;
}
.voice-preview:hover {
  color: var(--txt, #fff);
  border-color: var(--line-hi, #4a4a4a);
}
.voice-preview.is-active {
  color: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
}
.voice-preview.is-active {
  animation: bgmSpeakerPulse 1s ease-in-out infinite;
}

/* ---- 字幕核对弹窗：语气词建议删除 / 工具栏按钮 ---- */
/* 语气词（建议删除，尚未确认删）：琥珀色删除线 + 淡底高亮，提示用户 */
.asr-word.is-suggested {
  color: var(--yellow, #f5a623);
  text-decoration: line-through;
  text-decoration-color: var(--yellow, #f5a623);
  text-decoration-thickness: 1.5px;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 3px;
  padding: 1px 2px;
}
.asr-word.is-suggested:hover {
  background: rgba(245, 166, 35, 0.22);
}
/* 已确认删除（点词 / 一键清空）：灰色删除线 */
.asr-word.is-removed {
  color: var(--txt-faint, #6e6e73);
  text-decoration: line-through;
  text-decoration-color: #808080;
  text-decoration-thickness: 1.5px;
}
.asr-word.is-removed:hover {
  background: var(--bg-soft, #1f1f1f);
}

/* 智能校验：正文编辑框内被建议删除的语气词，标灰 + 删除线提示（字符本身仍是正文的一部分，确认时按需删/留） */
.asr-sug {
  color: var(--txt-faint, #6e6e73);
  text-decoration: line-through;
  text-decoration-color: #808080;
  text-decoration-thickness: 1px;
}

/* 口播字幕核对弹窗略宽，放下视频元信息更舒适 */
.asr-modal-voice {
  max-width: 600px;
}

/* ================= 板块⑤ 视频配音 ================= */
.dub-auto-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--txt-faint, #7a7a7a);
  background: var(--bg-soft, #1f1f1f);
  border: 1px dashed var(--line, #333);
  border-radius: var(--radius-s, 8px);
  padding: 7px 10px;
}
.sb-auto-hint {
  margin: 12px 0 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--txt-faint, #8a8a8a);
  background: var(--bg-soft, #1f1f1f);
  border: 1px dashed var(--line, #333);
  border-radius: var(--radius-s, 8px);
  padding: 9px 11px;
}
.dub-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 12px;
  background: var(--bg-soft, #1f1f1f);
  padding: 4px;
  border-radius: var(--radius-s, 8px);
  border: 1px solid var(--line, #333);
}
.dub-tab {
  flex: 1 1 0;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--txt-dim, #b9b9b9);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.dub-tab.active {
  background: #3a3a3a;
  color: #fff;
}
.dub-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dub-panel {
  margin-bottom: 4px;
}
.dub-panel .text-input {
  margin-bottom: 4px;
}

.dub-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.dub-img-cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-s, 8px);
  overflow: hidden;
  border: 1px solid var(--line, #333);
  background: #000;
}
.dub-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dub-img-idx {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* 视频配音·图片：拖拽排序态 */
.dub-img-cell {
  cursor: grab;
}
.dub-img-cell.dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.dub-img-cell.drag-over {
  outline: 2px dashed var(--accent, #e50914);
  outline-offset: 2px;
}

.dub-results,
.dub-results .slicer-status {
  margin-top: 10px;
}

/* ============ 板块⑥ 分镜成片（storyboard）============ */
.sb-shots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.sb-shot {
  border: 1px solid var(--line, #333);
  border-radius: var(--radius, 12px);
  background: var(--bg-soft, #1a1a1a);
  padding: 14px;
}
.sb-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sb-shot-idx {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #e50914);
  letter-spacing: 0.4px;
}
.sb-shot-del {
  border: none;
  background: transparent;
  color: var(--txt-faint, #6e6e73);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.sb-shot-del:hover {
  color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
}
.sb-shot-media {
  margin-bottom: 10px;
}
.sb-prev-video,
.sb-prev-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.sb-prev-lib {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 12px;
  border: 1px dashed var(--line, #333);
  border-radius: 8px;
  color: var(--txt-dim, #a3a3a3);
  font-size: 13px;
}
.sb-lib-type {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  color: var(--accent, #e50914);
}
.sb-media-clear {
  margin-left: auto;
  border: 1px solid var(--line, #333);
  background: transparent;
  color: var(--txt-dim, #a3a3a3);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.sb-media-clear:hover {
  color: var(--accent, #e50914);
  border-color: var(--accent, #e50914);
}
.sb-drop {
  margin-bottom: 10px;
  padding: 22px 14px;
}
.sb-lib {
  margin-top: 2px;
}
.sb-ai-box,
.sb-rec-box {
  margin-top: 12px;
}
.sb-results {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line, #333);
}
/* 分镜 BGM 候选 chips */
.sb-bgm-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid var(--line, #333);
  border-radius: var(--pill, 999px);
  background: var(--bg-soft, #1f1f1f);
  color: var(--txt, #fff);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.sb-bgm-chip:hover {
  border-color: var(--accent, #e50914);
}
.sb-bgm-chip.selected {
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.12);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.25);
}
.sb-bgm-name {
  font-size: 13px;
  font-weight: 600;
}
.sb-bgm-em {
  font-size: 11px;
  color: var(--txt-faint, #6e6e73);
}

/* ============ 城市合伙人招募横幅：广告区下方（仅桌面 ≥768px 显示） ============ */
.partner-recruit {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}
@media (min-width: 768px) {
  .partner-recruit {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 22px;
    padding: 40px 44px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(120% 150% at 0% 0%, rgba(229, 9, 20, 0.16) 0%, rgba(229, 9, 20, 0) 55%),
      linear-gradient(135deg, #181818 0%, #131313 60%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
  }
  .partner-recruit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #e50914, transparent 70%);
  }
  .partner-recruit.in {
    opacity: 1;
    transform: none;
    transition:
      opacity 1.1s ease,
      transform 1.1s ease;
  }
  .pr-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 300;
    margin: 0 0 14px;
  }
  .pr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e50914;
    animation: prPulse 2.4s ease-out infinite;
  }
  @keyframes prPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.45);
    }
    70% {
      box-shadow: 0 0 0 9px rgba(229, 9, 20, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
  }
  .pr-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
  }
  .pr-title em {
    font-style: normal;
    color: #fff;
  }
  .pr-sub {
    margin: 14px 0 0;
    max-width: 480px;
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
  }
  .pr-meta {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 300;
  }
  .pr-left .btn-hero {
    margin-top: 26px;
  }
  /* 城市合伙人：主按钮 + 「了解分佣规则」并排 */
  @media (min-width: 768px) {
    .pr-cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 20px;
      margin-top: 26px;
    }
    .pr-cta-row .btn-hero {
      margin-top: 0;
    }
    .pr-more {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: transparent;
      border: none;
      cursor: pointer;
      color: #e5e7eb;
      font-size: 14px;
      font-weight: 300;
      letter-spacing: 0.5px;
      padding: 10px 2px;
      transition: color 0.3s ease;
    }
    .pr-more:hover {
      color: #fff;
    }
    .pr-arrow {
      color: #e50914;
      font-size: 16px;
      transition: transform 0.3s ease;
    }
    .pr-more:hover .pr-arrow {
      transform: translateX(4px);
    }
  }
  /* 右：月度佣金面板 */
  .pr-panel {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 22px 16px;
  }
  .pr-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  .pr-panel-title {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
  }
  .pr-panel-total {
    color: #6b7280;
    font-size: 12px;
    font-weight: 300;
  }
  /* 核心数据一览：三列大数字 */
  .pr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 0 2px;
  }
  .pr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }
  .pr-stat-num {
    color: #e5e7eb;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  .pr-stat-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
  }
  .pr-panel-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #6b7280;
    font-size: 12px;
    font-weight: 300;
  }
  .pr-panel-foot b {
    color: #e5e7eb;
    font-weight: 400;
  }
  .pr-dot-sep {
    color: rgba(255, 255, 255, 0.15);
  }
}

/* 个税阶梯表（提现服务协议弹窗） */
.tax-ladder {
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}
.tax-ladder-cap {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--txt-dim);
  background: rgba(0, 0, 0, 0.04);
  letter-spacing: 0.3px;
}
.tax-ladder table,
.tax-ladder .legal-doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tax-ladder th,
.tax-ladder td {
  padding: 7px 12px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.tax-ladder thead th {
  font-weight: 500;
  color: var(--txt-dim);
  background: rgba(0, 0, 0, 0.03);
}
.tax-ladder tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
.tax-ladder td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tax-ladder-note {
  padding: 7px 12px;
  font-size: 11px;
  color: var(--txt-dim);
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ============ 广告位（运营位）============
 * 「位」由代码固定、「内容」由后台管理，渲染逻辑见 index/site-config.js 的 renderPromos()。
 * 这里只提供两套**预设主题**，以及「某块被撤下后不留空白」的收尾规则 —— 不做自由配色，
 * 因为自由配色会把版式调坏，而运营要的是「换内容」不是「改设计」。
 */
@media (min-width: 768px) {
  /* 纯深色：去掉品牌红光晕，适合非促销期的常规内容 */
  .hero-banner.promo-theme-dark,
  .partner-recruit.promo-theme-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 60%, #1d1d1d 100%);
  }
  .hero-banner.promo-theme-dark::after,
  .partner-recruit.promo-theme-dark::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  }

  /* 金色促销：大促 / 活动期 */
  .hero-banner.promo-theme-gold,
  .partner-recruit.promo-theme-gold {
    background:
      radial-gradient(140% 130% at 100% 0%, rgba(239, 159, 39, 0.42) 0%, rgba(239, 159, 39, 0) 55%),
      linear-gradient(135deg, #1c1710 0%, #15120c 60%, #1e1811 100%);
  }
  .hero-banner.promo-theme-gold::after,
  .partner-recruit.promo-theme-gold::after {
    background: linear-gradient(90deg, transparent, #ef9f27, transparent);
  }
  .hero-banner.promo-theme-gold .hero-title em,
  .partner-recruit.promo-theme-gold .pr-title em {
    color: #ef9f27;
  }

  /* 某块被撤下（hidden 属性 + display:none）后，紧邻的下一块不再保留顶部间距。
     否则「撤掉上面的广告」会在页面上留下一条说不清来历的空白 —— 这正是最容易出的观感事故。 */
  [data-promo-slot][hidden] + * {
    margin-top: 0;
  }
}

/* 撤下不留空白的间距收尾同样要在手机端生效（促销位全端显示，任何端都可能被撤下） */
[data-promo-slot][hidden] + * {
  margin-top: 0;
}

/* ============ 首页促销位（slot=promo）：标题 + 子标题 + 倒计时，全端显示 ============
 * 与城市合伙人横幅同级插入（宽度天然对齐），桌面横排「左文案 + 右倒计时」，手机纵向堆叠。
 * 主题复用上面三套 promo-theme-*（brand 红 / dark 深色 / gold 金色大促）。
 * 倒计时由 site-config.js 驱动：归零 → 整块隐藏；服务端到期也不再下发（双保险下架）。 */
.promo-banner {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}
.promo-banner.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}
/* 后台没填子标题时不留空段（HTML 里 pb-sub 无兜底文案） */
.promo-banner .pb-sub:empty {
  display: none;
}
@media (min-width: 768px) {
  .promo-banner {
    display: block;
    margin-top: 22px;
    padding: 34px 44px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(120% 150% at 0% 0%, rgba(229, 9, 20, 0.16) 0%, rgba(229, 9, 20, 0) 55%),
      linear-gradient(135deg, #181818 0%, #131313 60%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
  }
  .promo-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #e50914, transparent 70%);
  }
  .pb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
  }
  .pb-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
  }
  .pb-title em {
    font-style: normal;
    color: #fff;
  }
  .pb-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 300;
    margin: 0 0 14px;
  }
  .pb-sub {
    margin: 12px 0 0;
    max-width: 560px;
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
  }
  .pb-count {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .pb-count-label {
    color: #9ca3af;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 300;
  }
  .pb-count-digits {
    font-variant-numeric: tabular-nums;
    font-weight: 200;
    font-size: 34px;
    line-height: 1;
    color: #fff;
    letter-spacing: 2px;
  }
  /* 金色大促主题：倒计时数字与高亮同色 */
  .promo-banner.promo-theme-gold .pb-count-digits,
  .promo-banner.promo-theme-gold .pb-title em {
    color: #ef9f27;
  }
}
@media (max-width: 767px) {
  /* 手机端：纵向堆叠（文案上、倒计时下），内边距收窄 */
  .promo-banner {
    display: block;
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(120% 150% at 0% 0%, rgba(229, 9, 20, 0.16) 0%, rgba(229, 9, 20, 0) 55%),
      linear-gradient(135deg, #181818 0%, #131313 60%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
  }
  .promo-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #e50914, transparent 70%);
  }
  .pb-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 300;
    margin: 0 0 10px;
  }
  .pb-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 300;
    color: #fff;
  }
  .pb-title em {
    font-style: normal;
  }
  .pb-sub {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 300;
  }
  .pb-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
  }
  .pb-count-label {
    color: #9ca3af;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 300;
  }
  .pb-count-digits {
    font-variant-numeric: tabular-nums;
    font-weight: 200;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    letter-spacing: 1px;
  }
  .promo-banner.promo-theme-gold .pb-count-digits,
  .promo-banner.promo-theme-gold .pb-title em {
    color: #ef9f27;
  }
}

/* ============ 备案模式（html[data-icp-mode]）============
 * 个人备案审核期间隐藏全部购买类区块；开关在后台站点配置（icpMode），由 site-config.js 打标。
 * 「城市合伙人招募横幅」由后端直接不下发内容（siteConfig.mjs 的 sitePublicView），整块自动撤下。
 * ⚠️ 仅隐藏展示，真实闸门在两处：memberPayOpen/boostPayOpen 的 salesPaused guard + 支付通道未配置。 */
html[data-icp-mode] .tier-section,
html[data-icp-mode] .boost-section {
  display: none;
}

/* ============ 原生 APP 化：禁文字选中（双击不再出蓝块），输入类恢复 ============ */
html,
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* 长按不弹系统菜单 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.media-folderchips {
  touch-action: pan-x; /* 素材库文件夹芯片横向滑动恢复 */
}

/* 付款成功提示（收银台到账后的终态展示，随后弹窗自动关闭） */
.mp-paytip.mp-paid-ok {
  color: #22c55e;
  font-weight: 600;
}

/* ==================== 一键分发（会员专属 · 六大版块下方 · 布局仿「原声即IP」） ====================
   不挂 .acc class——.acc 会被卷入六大版块手风琴体系（点任一版块卡片会把所有 .acc 收起）。
   外壳与 ip-section 同规格：标题居中 + #1a1a1a 圆角面板，无红色外框。 */
.dist-acc {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}
/* 常驻展开：不依赖 .acc.open，表单始终可见 */
.dist-acc .acc-body {
  grid-template-rows: 1fr;
  background: transparent;
}
/* 头部：与「三步成片」同规格——居中大标题（30px 细体）+ 14px 灰色说明 */
.dist-head2 {
  position: relative;
  text-align: center;
  padding: 22px 16px 6px;
}
.dist-title2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--txt, #f3f4f6);
}
.dist-title2 .dist-badge {
  vertical-align: 4px;
  margin-left: 4px;
}
.dist-slogan {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--txt-dim, #9ca3af);
  line-height: 1.6;
}
.dist-quota {
  position: absolute;
  right: 16px;
  top: 24px;
  font-size: 12px;
  color: #8a9099;
}
@media (max-width: 767px) {
  .dist-title2 {
    font-size: 22px;
  }
}
.dist-badge {
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: #e0342b;
  border-radius: 999px;
  padding: 4px 8px;
}
.dist-quota {
  margin-left: auto;
  font-size: 12px;
  color: #8a9099;
}
.dist-select {
  appearance: auto;
  width: 100%;
}
/* —— 三段布局（仿原声即IP ip-stage）：左列 01-04 平台序号 + 中部编辑区 —— */
.dist-stage {
  display: flex;
  gap: 34px;
  align-items: stretch;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 30px 32px;
}
.dist-rail {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.dist-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}
.dist-step:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.08);
}
.dist-step:active {
  transform: scale(0.96);
}
.dist-step.is-active {
  background: #e50914;
  border-color: #e50914;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.4);
}
.dist-step-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--txt-dim, #b9b9b9);
  transition: color 0.3s ease;
}
.dist-step.is-active .dist-step-name {
  color: #fff;
}
.dist-center {
  flex: 1;
  min-width: 0;
}
/* 手机端：序号列横排在上方，编辑区在下方 */
@media (max-width: 767px) {
  .dist-stage {
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
  }
  .dist-rail {
    flex-direction: row;
    justify-content: flex-start;
  }
  .dist-step {
    flex: 1 1 0;
    width: auto;
    height: 44px;
  }
}
.dist-dot {
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
}
.dist-dot.authorized {
  color: #4ade80;
}
.dist-dot.unauthorized {
  color: #f87171;
}
.dist-tpanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* display:flex 会压过 hidden 属性的 UA 样式，必须显式声明 */
.dist-tpanel[hidden] {
  display: none;
}
/* 顶部授权条：四平台授权状态 chip 并排 + 助手在线状态，统一一处不再重复出现在编辑区 */
.dist-authbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.dist-achip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--txt-dim, #b9b9b9);
}
.dist-achip.authorized {
  border-color: rgba(74, 222, 128, 0.35);
}
.dist-achip.unauthorized {
  border-color: rgba(248, 113, 113, 0.3);
}
.dist-abtn {
  border: none;
  background: #262626;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dist-abtn:hover {
  background: #e0342b;
  color: #fff;
}
.dist-bridge {
  margin-left: auto;
  font-size: 12px;
}
.dist-bridge.online {
  color: #4ade80;
}
.dist-bridge.offline {
  color: #8a9099;
}
/* 发布按钮下的去向说明 */
.dist-pubnote {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--txt-faint, #8a9099);
}
/* 需求投票（问卷形态）：标题 + 四平台 chips + 投票按钮 */
.dist-votebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
.dist-voteplats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.dist-voteplat {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--txt, #f3f4f6);
}
.dist-votebtn {
  min-width: 260px;
}
.dist-votebtn:disabled {
  opacity: 0.6;
  cursor: default;
}
.dist-votecount {
  margin: 0;
  font-size: 13px;
  color: var(--txt-faint, #8a9099);
}
/* 会员门禁展示区：免费/未登录时替换「发布」按钮，把权益直接亮出来 */
.dist-gate {
  margin-top: 12px;
}
.dist-benefits {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.dist-benefits li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: #d1d5db;
  line-height: 2.1;
}
.dist-benefits li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: #ff7b73;
  font-weight: 600;
}
.dist-tip {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #8a9099;
}
.dist-records {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dist-records-title {
  font-size: 12px;
  color: #8a9099;
  margin-bottom: 2px;
}
.dist-rec {
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.dist-rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dist-rec-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #f3f4f6;
}
.dist-rec-time {
  font-size: 12px;
  color: #8a9099;
}
.dist-status {
  font-size: 12px;
  flex-shrink: 0;
}
.dist-status.queued {
  color: #8a9099;
}
.dist-status.publishing {
  color: #f5a623;
}
.dist-status.done {
  color: #4ade80;
}
.dist-status.partial {
  color: #f5a623;
}
.dist-status.failed {
  color: #f87171;
}
.dist-rec-plats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.dist-plat {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #262626;
  color: #9ca3af;
}
.dist-plat.published {
  background: rgba(20, 163, 86, 0.16);
  color: #4ade80;
}
.dist-plat.failed {
  background: rgba(224, 52, 43, 0.16);
  color: #f87171;
}
/* 会员专属门禁：免费/未登录 → 隐藏发布按钮与授权入口，展示权益 + 开通/登录入口 */
.dist-locked #btnDistPublish,
.dist-locked .dist-pubnote {
  display: none;
}
.dist-locked .dist-abtn {
  display: none;
}
.dist-locked .dist-tpanel input[type="text"],
.dist-locked .dist-tpanel textarea {
  opacity: 0.45;
  pointer-events: none;
}
/* 「创作场景工作台」版块标题：与原声即IP的 ip-title 同款（30px/300 居中），置于文件尾以压过上方三处旧定义 */
.scene-section > .section-label {
  margin: 0 0 26px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
  text-transform: none;
  color: var(--txt);
}
@media (max-width: 767px) {
  .scene-section > .section-label {
    font-size: 22px;
    margin-bottom: 18px;
  }
}
