/* ============================================================
   贝塔AI商用剧场 — 设计系统 / 共享样式
   深色主题 · 一站式短剧工业化生产平台
   ============================================================ */

:root {
  /* 底色（参考小城AI创作台 · 深紫黑） */
  --bg: #0B0714;
  --surface: #120C20;
  --surface-2: #170F28;
  --surface-3: #1D1430;
  --border: #2C2140;
  --border-soft: #1A1428;

  /* 文字 */
  --text: #FFFFFF;
  --text-dim: #A99DC4;
  --text-mute: #6E6790;
  --silver: #D6CCEC;

  /* 强调色（参考小城AI创作台 · 紫罗兰 + 品红渐变） */
  --accent: #7C4DFF;
  --accent-deep: #5B21B6;
  --accent-pink: #E879F9;
  --green: #21BF7A;
  --gold: #F5B841;

  /* 尺寸 */
  --sidebar-w: 240px;
  --topbar-h: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font: "Sarasa Gothic SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===================== 布局骨架 ===================== */
.app { display: flex; min-height: 100vh; }

/* ===================== 侧边栏 ===================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; height: 40px; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #7C4DFF, #B45CFF);
  display: flex; align-items: center; justify-content: center;
}
.brand .logo svg { width: 14px; height: 14px; }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }

.btn-new {
  height: 42px; border-radius: 10px; background: #FFFFFF; color: #0F0F12;
  font-weight: 700; font-size: 14px; display: flex; align-items: center;
  justify-content: center; gap: 6px; width: 100%;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-new:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,255,255,.12); }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 40px;
  padding: 0 12px; border-radius: 8px; color: var(--text-dim);
  font-size: 14px; transition: background .12s ease, color .12s ease;
}
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .ico svg { width: 18px; height: 18px; }
.nav-item:hover { background: var(--surface-2); color: #C9C9D2; }
.nav-item.active { background: var(--surface-3); color: #FFFFFF; font-weight: 700; }
.nav-item .chev { margin-left: auto; width: 16px; height: 16px; opacity: .7; }

.sidebar-spacer { flex: 1; }

.inspire-box {
  background: var(--surface-2); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.inspire-box .t { font-size: 13px; font-weight: 700; }
.inspire-box .s { font-size: 12px; color: var(--text-dim); }
.inspire-box .link { font-size: 13px; color: #C9C9D2; }
.inspire-box .link.mute { color: var(--text-mute); }

/* ===================== 主区 ===================== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 32px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: rgba(15,15,18,.85);
  backdrop-filter: blur(8px); z-index: 10;
}
.search {
  width: 360px; height: 40px; border-radius: 20px;
  background: var(--surface-2); display: flex; align-items: center;
  gap: 8px; padding: 0 14px; color: var(--text-mute); font-size: 13px;
}
.search svg { width: 18px; height: 18px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.coin {
  display: flex; align-items: center; gap: 6px; height: 32px;
  padding: 0 10px; border-radius: 16px; background: var(--surface-2);
  font-size: 13px; color: var(--gold);
}
.coin svg { width: 16px; height: 16px; }
.btn-vip {
  height: 32px; padding: 0 14px; border-radius: 16px;
  background: var(--gold); color: #0B0E16; font-weight: 700; font-size: 13px;
  display: flex; align-items: center;
}
.btn-vip:hover { filter: brightness(1.06); }
.avatar {
  width: 32px; height: 32px; border-radius: 16px;
  background-image: none !important;
  background: linear-gradient(135deg, #7C4DFF, #E879F9) !important;
  border: 1px solid var(--border);
}

.content { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 28px; }

/* ===================== 标题区 ===================== */
.title-block .title { font-size: 30px; font-weight: 700; }
.title-block .subtitle { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* ===================== Bento 网格 ===================== */
.bento { display: flex; gap: 20px; height: 580px; }
.bento-hero {
  width: 460px; flex-shrink: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #7C4DFF, #B45CFF);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.bento-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero-text .h-title { font-size: 22px; font-weight: 700; }
.hero-text .h-sub { font-size: 14px; color: rgba(255,255,255,.9); margin-top: 4px; }
.hero-img {
  flex: 1; border-radius: 12px; min-height: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 13px; position: relative; overflow: hidden;
}
.hero-img .genre-tag {
  position: absolute; left: 12px; top: 12px; font-size: 12px;
  background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px;
}
.hero-btn {
  align-self: flex-start; height: 40px; padding: 0 18px; border-radius: 10px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: 14px;
  display: flex; align-items: center;
}

.bento-right { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.bento-row { display: flex; gap: 20px; height: 180px; }
.card-sm {
  flex: 1; border-radius: var(--radius-md); background: var(--surface-2);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
}
.card-sm:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.card-sm .cover { height: 104px; position: relative; overflow: hidden; }
.card-sm .cover .genre-tag {
  position: absolute; left: 10px; top: 10px; font-size: 11px;
  background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 999px; color: #fff;
}
.card-sm .body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.card-sm .c-title { font-size: 15px; font-weight: 700; }
.card-sm .c-sub { font-size: 12px; color: var(--text-dim); }

/* 风格化封面（替代真实图片，可后续替换） */
.cover-art {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cover-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(255,255,255,.28), transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(255,255,255,.20), transparent 46%);
  mix-blend-mode: screen;
}
.cover-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5;
}
.cover-art span {
  position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,.95);
  font-weight: 600; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.g-scifi  { background: linear-gradient(150deg, #1B2A6B, #4B2C8F, #0E1530); }
.g-guofeng { background: linear-gradient(150deg, #7A2E2E, #C9883B, #3A1C1C); }
.g-heal   { background: linear-gradient(150deg, #2E6B5A, #6FB89A, #16332B); }
.g-mecha  { background: linear-gradient(150deg, #2B2F3A, #5A6473, #14161C); }
.g-ip     { background: linear-gradient(150deg, #7C4DFF, #6A3BFF, #2A1A4A); }
.g-novel  { background: linear-gradient(150deg, #6B2F5A, #C24B8F, #2A1226); }
.g-order  { background: linear-gradient(150deg, #2E5A6B, #4BA6C2, #132A33); }
.g-theater{ background: linear-gradient(150deg, #5A3B1E, #C29A4B, #2A1C0E); }
.g-edit   { background: linear-gradient(150deg, #3B1E5A, #E879F9, #1E0E2A); }

/* ===================== 精选好剧 ===================== */
.featured { display: flex; flex-direction: column; gap: 20px; }
.featured-head { display: flex; align-items: center; justify-content: space-between; }
.featured-head .left { display: flex; align-items: baseline; gap: 12px; }
.featured-head .f-title { font-size: 22px; font-weight: 700; }
.featured-head .f-sub { font-size: 14px; color: var(--text-dim); }
.featured-head .more { font-size: 14px; color: var(--accent); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 16px; border-radius: 17px;
  display: flex; align-items: center; font-size: 13px;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.chip.active { background: var(--green); color: #fff; border-color: transparent; font-weight: 700; }

.drama-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.drama-card {
  background: var(--surface-2); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
}
.drama-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.drama-card .cover { height: 150px; position: relative; }
.drama-card .cover .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease;
}
.drama-card:hover .cover .play { opacity: 1; }
.drama-card .cover .play svg { width: 40px; height: 40px; }
.drama-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.drama-card .d-title { font-size: 15px; font-weight: 700; }
.drama-card .d-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.drama-card .d-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag {
  font-size: 11px; color: var(--text-dim); background: var(--surface-3);
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-soft);
}

.empty {
  height: 160px; border-radius: var(--radius-md); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text-mute); font-size: 16px;
}
.empty .sub { font-size: 13px; color: var(--text-dim); }

/* ===================== 侧边栏折叠（桌面） ===================== */
.app.sidebar-collapsed .sidebar { width: 64px; padding-left: 12px; padding-right: 12px; align-items: center; }
.app.sidebar-collapsed .brand { justify-content: center; }
.app.sidebar-collapsed .brand .name { display: none; }
.app.sidebar-collapsed .btn-new { display: none; }
.app.sidebar-collapsed .nav-item { font-size: 0; justify-content: center; padding: 0; height: 44px; }
.app.sidebar-collapsed .nav-item .ico { width: 22px; height: 22px; }
.app.sidebar-collapsed .nav-item .ico svg { width: 22px; height: 22px; }
.app.sidebar-collapsed .nav-item .chev { display: none; }
.app.sidebar-collapsed .inspire-box { display: none; }
.app.sidebar-collapsed .sidebar-spacer { display: none; }
.expand-btn { display: none; }
.app.sidebar-collapsed .expand-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2);
  margin: 0 auto 8px; color: #fff; font-size: 18px;
}

/* ===================== 移动端 ===================== */
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .app.nav-open .sidebar { transform: translateX(0); }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2);
  }
  .content { padding: 20px 18px; }
  .topbar { padding: 0 18px; }
  .search { width: 220px; }
  .bento { flex-direction: column; height: auto; }
  .bento-hero { width: 100%; height: 320px; }
  .bento-right { height: auto; }
  .bento-row { height: auto; flex-wrap: wrap; }
  .card-sm { min-width: calc(50% - 10px); height: 200px; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .search { display: none; }
  .card-sm { min-width: 100%; }
  .drama-grid { grid-template-columns: 1fr; }
  .title-block .title { font-size: 24px; }
}

/* ===================== 登录/注册 & 发布弹窗 ===================== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal.show { display: flex; }
.modal-box {
  width: 360px; max-width: 90vw; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-box h3 { font-size: 20px; font-weight: 700; }
.modal-box input, .modal-box select, .modal-box textarea {
  width: 100%; height: 42px; border-radius: 10px; padding: 0 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.modal-box textarea { height: 80px; padding: 12px 14px; resize: none; }
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus { border-color: var(--accent); }
.modal-box .btn-primary {
  height: 44px; border-radius: 10px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.modal-box .btn-primary:hover { background: var(--accent-deep); }
.modal-box .switch { font-size: 13px; color: var(--text-dim); text-align: center; }
.modal-box .switch a { color: var(--accent); cursor: pointer; }
.modal-box .err { font-size: 13px; color: #FF6B6B; min-height: 18px; }
.pw-preview { width: 100%; height: 140px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.pw-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 顶栏登录态 */
.btn-login {
  height: 32px; padding: 0 14px; border-radius: 16px; background: var(--surface-2);
  color: #C9C9D2; font-size:13px; display: flex; align-items: center;
  border: 1px solid var(--border);
}
.btn-login:hover { color: #fff; }
.user-name { font-size: 13px; color: #fff; }
.btn-logout {
  height: 32px; padding: 0 12px; border-radius: 16px; background: transparent;
  color: var(--text-dim); font-size: 13px; border: 1px solid var(--border);
}
.btn-logout:hover { color: #fff; }
.nav-admin {
  height: 32px; padding: 0 14px; border-radius: 16px; display: inline-flex;
  align-items: center; font-size: 13px; font-weight: 700; color: #04210f;
  background: linear-gradient(135deg, #7C4DFF, #E879F9); border: none;
  text-decoration: none; box-shadow: 0 2px 10px rgba(124,77,255,.35);
}
.nav-admin:hover { filter: brightness(1.08); }
.nav-recharge {
  height: 32px; padding: 0 14px; border-radius: 16px; display: inline-flex;
  align-items: center; font-size: 13px; color: #fff;
  background: var(--surface-2); border: 1px solid var(--border); text-decoration: none;
}
.nav-recharge:hover { color: #fff; border-color: rgba(124,77,255,.5); }

/* 发布入口按钮 */
.btn-publish {
  height: 34px; padding: 0 16px; border-radius: 17px; background: var(--surface-2);
  color: var(--text-dim); font-size: 13px; border: 1px solid var(--border);
  display: flex; align-items: center;
}
.btn-publish:hover { color: #fff; border-color: var(--accent); }

/* ============================================================
   贝塔AI商用剧场 · 扩展组件
   ============================================================ */

/* 品牌副名 */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-text .sub { font-size: 11px; color: var(--text-dim); letter-spacing: 2px; margin-top: 2px; }

/* 侧栏分组标题 */
.nav-group-title {
  font-size: 11px; color: var(--text-mute); letter-spacing: 1px;
  padding: 14px 12px 4px; text-transform: none;
}
.nav-item.coming { color: var(--text-mute); cursor: not-allowed; }
.nav-item.coming .soon-tag {
  margin-left: auto; font-size: 10px; color: var(--gold);
  background: rgba(245,184,65,.12); padding: 2px 7px; border-radius: 999px;
}

/* ===================== 通用区块 ===================== */
.section-label {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
}
.section-label .sl-title { font-size: 22px; font-weight: 700; }
.section-label .sl-sub { font-size: 14px; color: var(--text-dim); }
.section-label .sl-more { margin-left: auto; font-size: 14px; color: var(--accent); }
.lead { font-size: 15px; color: var(--text-dim); max-width: 720px; line-height: 1.7; }

/* ===================== 首页 Hero ===================== */
.hero {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  padding: 56px 48px; background:
    radial-gradient(1100px 380px at 82% -10%, rgba(124,77,255,.30), transparent 60%),
    radial-gradient(820px 320px at 0% 120%, rgba(245,184,65,.14), transparent 55%),
    linear-gradient(135deg, #12151F, #0B0E16);
  border: 1px solid var(--border);
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--gold); background: rgba(245,184,65,.1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.18; font-weight: 800; max-width: 760px; }
.hero h1 .hl { color: var(--gold); }
.hero p { font-size: 16px; color: var(--text-dim); margin-top: 16px; max-width: 640px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn-primary-lg {
  height: 48px; padding: 0 26px; border-radius: 12px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-lg:hover { background: var(--accent-deep); }
.btn-ghost-lg {
  height: 48px; padding: 0 26px; border-radius: 12px; background: var(--surface-2);
  color: #fff; font-weight: 600; font-size: 15px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost-lg:hover { border-color: var(--accent); }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; }
.hero-stats .s-num { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats .s-lab { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ===================== 流水线 10 环 ===================== */
.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.pipe-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  display: flex; flex-direction: column;
}
.pipe-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.pipe-card.live { border-color: rgba(33,191,122,.5); }
.pipe-card .pc-cover {
  width: 100%; height: 132px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border); background: var(--surface-3);
}
.pipe-card .pc-body { padding: 16px; position: relative; display: flex; flex-direction: column; flex: 1; }
.pipe-card .pc-no {
  position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700;
  color: var(--text-mute); z-index: 1;
}
.pipe-card .pc-ico {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); margin-bottom: 12px;
}
.pipe-card .pc-ico svg { width: 20px; height: 20px; }
.pipe-card .pc-title { font-size: 16px; font-weight: 700; }
.pipe-card .pc-desc { font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.6; flex: 1; }
.pipe-card .pc-tag {
  display: inline-block; margin-top: 12px; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  align-self: flex-start;
}
.pipe-card.live .pc-tag { color: var(--green); background: rgba(33,191,122,.12); }
.pipe-card.soon .pc-tag { color: var(--gold); background: rgba(245,184,65,.12); }
.pipe-flow-note { font-size: 13px; color: var(--text-mute); margin-top: 4px; }

/* ===================== 模块页 Hero 头图 ===================== */
.page-banner {
  position: relative; height: 240px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-banner .pb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,14,22,.94) 0%, rgba(11,14,22,.55) 45%, rgba(11,14,22,.1) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 34px;
}
.page-banner .pb-overlay .pb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gold);
  background: rgba(245,184,65,.12); padding: 5px 12px; border-radius: 999px; align-self: flex-start; margin-bottom: 12px;
}
.page-banner .pb-overlay h1 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.page-banner .pb-overlay p { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 8px; max-width: 620px; line-height: 1.6; }

/* ===================== 价值支柱 ===================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 22px;
}
.pillar .p-ico { width: 36px; height: 36px; border-radius: 9px; background: rgba(124,77,255,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pillar .p-ico svg { width: 18px; height: 18px; }
.pillar h3 { font-size: 16px; font-weight: 700; }
.pillar p { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.7; }

/* ===================== 工作台看板 ===================== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card .st-num { font-size: 30px; font-weight: 800; }
.stat-card .st-lab { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.stat-card .st-trend { font-size: 12px; color: var(--green); margin-top: 8px; }
.progress-list { display: flex; flex-direction: column; gap: 14px; }
.prog-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.prog-item .pi-head { display: flex; align-items: center; justify-content: space-between; }
.prog-item .pi-name { font-size: 15px; font-weight: 700; }
.prog-item .pi-stage { font-size: 12px; color: var(--accent); }
.prog-bar { height: 6px; border-radius: 3px; background: var(--surface); margin-top: 12px; overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 3px; }
.prog-steps { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.prog-steps .ps { font-size: 11px; color: var(--text-mute); padding: 2px 8px; border-radius: 999px; background: var(--surface); }
.prog-steps .ps.done { color: var(--green); background: rgba(33,191,122,.12); }

/* ===================== 剧本工坊 ===================== */
.script-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.script-editor {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 520px;
}
.script-editor .se-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.script-editor textarea {
  flex: 1; width: 100%; resize: none; border-radius: 10px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 15px; line-height: 1.9; outline: none;
}
.script-editor textarea:focus { border-color: var(--accent); }
.se-side { display: flex; flex-direction: column; gap: 16px; }
.se-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.se-panel h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.beat-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.beat-table th, .beat-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-soft); }
.beat-table th { color: var(--text-mute); font-weight: 600; }
.beat-table .ep { color: var(--accent); font-weight: 700; }
.beat-table .type { color: var(--gold); }
.chips-fill .chip { cursor: pointer; }
.btn-ai {
  height: 38px; padding: 0 16px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-ai:hover { filter: brightness(1.08); }

/* ===================== 分镜台 ===================== */
.storyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.frame-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.frame-card .fc-shot {
  height: 150px; position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600;
}
.frame-card .fc-no {
  position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.frame-card .fc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.frame-card .fc-line { font-size: 13px; color: var(--text); }
.frame-card .fc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.frame-card .fc-meta span { font-size: 11px; color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border-soft); padding: 2px 8px; border-radius: 999px; }

/* ===================== 商用剧场 调整 ===================== */
.theater-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); }
.price-pill { font-size: 13px; color: var(--gold); font-weight: 700; }

/* ===================== Toast ===================== */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); border: 1px solid var(--border); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 200;
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== 响应式扩展 ===================== */
@media (max-width: 1024px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .script-wrap { grid-template-columns: 1fr; }
  .storyboard { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 26px; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .storyboard { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ============================================================
   贝塔AI商用剧场 · 规划中模块（已全部上线）通用组件
   ============================================================ */

/* 通用工作台布局 */
.wb-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.wb-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wb-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.wb-card > h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wb-card > h3 .hint { font-size: 12px; color: var(--text-mute); font-weight: 400; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.model-badge {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(245,184,65,.14); color: var(--gold);
}
.model-badge.on { background: rgba(33,191,122,.14); color: var(--green); }
.btn-line {
  height: 38px; padding: 0 18px; border-radius: 10px; background: var(--surface-3);
  border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-line:hover { border-color: var(--accent); }
.btn-gold { background: var(--gold); color: #0B0E16; border-color: transparent; }
.btn-gold:hover { filter: brightness(1.06); }

/* 热点题材榜（创意中心） */
.trending-list { display: flex; flex-direction: column; gap: 10px; }
.topic-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px;
}
.topic-rank {
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 13px; color: var(--text-dim); flex-shrink: 0;
}
.topic-rank.top { background: linear-gradient(135deg, var(--gold), #C9883B); color: #0B0E16; }
.topic-main { flex: 1; min-width: 0; }
.topic-name { font-size: 14px; font-weight: 700; }
.topic-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.topic-heat { font-size: 13px; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* 爆款基因拆解结果 */
.gene-result {
  margin-top: 14px; background: var(--surface); border: 1px dashed var(--border);
  border-radius: 10px; padding: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.8;
  display: none;
}
.gene-result.show { display: block; }
.gene-result b { color: var(--text); }

/* 角色设定卡（美术与角色） */
.char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.char-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.char-card .cc-img {
  height: 130px; position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600;
}
.char-card .cc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.char-card .cc-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.char-card .cc-consistency { font-size: 11px; color: var(--green); background: rgba(33,191,122,.12); padding: 2px 8px; border-radius: 999px; }
.char-card .cc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.char-card .cc-tags span { font-size: 11px; color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border-soft); padding: 2px 8px; border-radius: 999px; }

/* 场景概念图 */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene-card {
  height: 118px; border-radius: 10px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 10px;
}
.scene-card span { position: relative; z-index: 1; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* 风格预设 */
.style-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.style-preset {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .12s ease;
}
.style-preset .sp-swatch { height: 38px; border-radius: 8px; margin-bottom: 8px; }
.style-preset.active { border-color: var(--accent); background: rgba(124,77,255,.12); color: #fff; }

/* AI 素材生成工坊 */
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.asset-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.asset-card .ac-img {
  height: 110px; position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 12px; text-align: center; padding: 8px;
}
.asset-card .ac-body {
  padding: 8px 10px; font-size: 12px; color: var(--text-dim);
  display: flex; justify-content: space-between; align-items: center;
}
.asset-card .ac-status { color: var(--green); font-weight: 600; }
.asset-card .ac-img.has-img { padding: 0; }
.asset-card .ac-img.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 声音工坊 */
.voice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.voice-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px; }
.voice-card .vc-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.voice-card .vc-play {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voice-card .vc-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.waveform { display: flex; align-items: center; gap: 3px; height: 64px; }
.waveform .bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-radius: 2px; min-height: 4px; }

/* 剪辑台 */
.preview {
  height: 220px; border-radius: 12px; background: linear-gradient(135deg, #0E1530, #1B2A6B);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7);
  font-size: 14px; position: relative; overflow: hidden;
}
.preview .play-btn {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
}
.timeline { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px; }
.track { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.track:last-child { margin-bottom: 0; }
.track .tk-label { width: 56px; font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.track .tk-lane {
  flex: 1; height: 36px; background: var(--surface-2); border-radius: 8px;
  position: relative; overflow: hidden; display: flex; gap: 4px; padding: 4px;
}
.clip {
  height: 100%; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: #fff;
  overflow: hidden; white-space: nowrap;
}
.clip.audio { background: linear-gradient(135deg, var(--green), #138A57); }
.clip.sub { background: linear-gradient(135deg, var(--gold), #C9883B); }

/* 质检与版权 */
.qa-checklist { display: flex; flex-direction: column; gap: 10px; }
.qa-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px;
}
.qa-item .qa-box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border);
  flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 13px;
}
.qa-item.done .qa-box { background: var(--green); border-color: var(--green); color: #fff; }
.qa-item .qa-text { flex: 1; font-size: 14px; }
.qa-item .qa-status { font-size: 12px; color: var(--text-mute); }
.qa-item.done .qa-status { color: var(--green); }
.report-card {
  background: linear-gradient(135deg, rgba(33,191,122,.12), rgba(124,77,255,.08));
  border: 1px solid rgba(33,191,122,.4); border-radius: 14px; padding: 24px;
  display: flex; align-items: center; gap: 24px;
}
.report-card .score { font-size: 46px; font-weight: 800; color: var(--green); line-height: 1; }
.report-card .r-detail { font-size: 13px; color: var(--text-dim); line-height: 1.9; }
.rights-chain { display: flex; flex-direction: column; gap: 8px; }
.rights-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; font-size: 13px;
}
.rights-row .rk-status { margin-left: auto; font-size: 12px; color: var(--green); }

/* ===================== 新模块响应式 ===================== */
@media (max-width: 1024px) {
  .wb-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .style-presets { grid-template-columns: repeat(3, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .scene-grid, .asset-grid, .voice-grid { grid-template-columns: 1fr; }
  .style-presets { grid-template-columns: repeat(2, 1fr); }
}
