/* ==========================================================================
   组梦 AI · 有声书平台 前台设计系统
   沿用 digital.zumengai.cn 的设计令牌（--pri / --acc / --bg / --card ...）
   ========================================================================== */

:root {
  --pri: #5B6CFF;
  --acc: #22D3EE;
  --bg: #0B0E1A;
  --card: #141A2E;
  --radius: 16px;
  --glow: 1;

  --bg-soft: #10152A;
  --card-2: #1A2140;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --tx: #E9EDFF;
  --tx-2: #9BA4CB;
  --tx-3: #6C7499;

  --ok: #25C97A;
  --warn: #F5A524;
  --err: #F05252;

  --grad: linear-gradient(120deg, var(--pri), var(--acc));
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }

::selection { background: rgba(91, 108, 255, .45); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2A3050; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3A4270; }

/* ── 背景装饰 ───────────────────────────────────────────── */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
}
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-fx .orb-1 { width: 620px; height: 620px; top: -260px; left: -140px; background: var(--pri); opacity: .32; }
.bg-fx .orb-2 { width: 520px; height: 520px; top: -180px; right: -120px; background: var(--acc); opacity: .2; }
.bg-fx .orb-3 { width: 700px; height: 700px; bottom: -420px; left: 40%; background: var(--pri); opacity: .12; }

#app { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }

/* ── 布局 ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; }
.sec-sm { padding: 56px 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.grow { flex: 1; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.t2 { color: var(--tx-2); }
.t3 { color: var(--tx-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #9AA6FF; background: rgba(91, 108, 255, .12);
  border: 1px solid rgba(91, 108, 255, .28); margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.sec-head .sub { margin-top: 14px; color: var(--tx-2); font-size: 15.5px; }

/* ── 按钮 ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--tx); font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: .22s cubic-bezier(.4, 0, .2, 1); white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-pri {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 10px 28px -12px rgba(91, 108, 255, .9);
}
.btn-pri:hover { filter: brightness(1.1); box-shadow: 0 16px 34px -12px rgba(91, 108, 255, .95); }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { color: #FFA0A0; border-color: rgba(240, 82, 82, .35); }
.btn-danger:hover { background: rgba(240, 82, 82, .14); }
/* 拆章预览里「拆章方式 / 拆章模式」这类切换按钮的选中态 */
.btn-xs.on, .btn-sm.on {
  background: rgba(91, 108, 255, .18); border-color: rgba(91, 108, 255, .45);
  color: #B9C0FF;
}

/* ── 卡片 ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, #171D35, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card-pad { padding: 26px; }
.card-hover { transition: .28s cubic-bezier(.4, 0, .2, 1); }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 108, 255, .45);
  box-shadow: 0 26px 60px -22px rgba(91, 108, 255, .55);
}

/* ── 表单 ───────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--tx-2); }
.field .hint { margin-top: 6px; font-size: 12.5px; color: var(--tx-3); }
.input, .textarea, .select {
  width: 100%; background: rgba(0, 0, 0, .28); color: var(--tx);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 0 14px; height: 42px; outline: none; transition: .2s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.7; }
.select { appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C7499' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.select option { background: var(--card); color: var(--tx); }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(91, 108, 255, .7);
  box-shadow: 0 0 0 3.5px rgba(91, 108, 255, .16);
  background: rgba(0, 0, 0, .4);
}
.input::placeholder, .textarea::placeholder { color: var(--tx-3); }

/* ── 标签 ───────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .07); color: var(--tx-2);
  border: 1px solid var(--line); white-space: nowrap;
}
.tag-pri { background: rgba(91, 108, 255, .15); color: #AEB6FF; border-color: rgba(91, 108, 255, .3); }
.tag-acc { background: rgba(34, 211, 238, .14); color: #8CE7F5; border-color: rgba(34, 211, 238, .28); }
.tag-ok  { background: rgba(37, 201, 122, .14); color: #7BE3AC; border-color: rgba(37, 201, 122, .3); }
.tag-warn{ background: rgba(245, 165, 36, .15); color: #FFD08A; border-color: rgba(245, 165, 36, .3); }
.tag-err { background: rgba(240, 82, 82, .15); color: #FFA0A0; border-color: rgba(240, 82, 82, .3); }

/* ── 顶部导航 ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 14, 26, .82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; flex: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 6px 18px -6px rgba(91, 108, 255, .9);
}
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--tx-2);
  font-weight: 500; transition: .2s; white-space: nowrap; cursor: pointer;
}
.nav-links a:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }
.nav-links a.on { color: var(--tx); font-weight: 600; background: rgba(255, 255, 255, .08); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 62px); line-height: 1.1; letter-spacing: -.035em; max-width: 940px; margin: 0 auto; }
.hero .lead { margin: 24px auto 0; max-width: 680px; font-size: 17px; color: var(--tx-2); line-height: 1.75; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .badges { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.hero-visual {
  margin-top: 60px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
}
.hero-visual .bar {
  height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 15px;
  border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .28);
}
.hero-visual .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hero-visual .bar i:nth-child(1) { background: #F05252; }
.hero-visual .bar i:nth-child(2) { background: #F5A524; }
.hero-visual .bar i:nth-child(3) { background: #25C97A; }
.hero-visual .bar span { margin-left: 10px; font-size: 12px; color: var(--tx-3); }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.pipeline .step { background: var(--bg-soft); padding: 26px 22px; text-align: left; }
.pipeline .step .n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; background: var(--grad); color: #fff; margin-bottom: 14px;
}
.pipeline .step h4 { font-size: 15px; margin-bottom: 6px; }
.pipeline .step p { font-size: 13px; color: var(--tx-3); line-height: 1.6; }

/* ── 数据指标 ───────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 28px 16px; }
.stat-item .v { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.stat-item .l { margin-top: 6px; font-size: 13.5px; color: var(--tx-2); }

/* ── 网格 ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.feat { padding: 28px 26px; }
.feat .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 21px;
  background: rgba(91, 108, 255, .16); border: 1px solid rgba(91, 108, 255, .26);
  color: #B4BBFF;
}
.feat h3 { font-size: 17px; margin-bottom: 9px; }
.feat p { font-size: 13.8px; color: var(--tx-2); line-height: 1.72; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-item { padding: 26px 22px; }
.flow-item .num { font-size: 40px; font-weight: 900; line-height: 1; opacity: .95; margin-bottom: 14px; }
.flow-item h4 { font-size: 16px; margin-bottom: 8px; }
.flow-item p { font-size: 13.5px; color: var(--tx-2); line-height: 1.7; }

.scene-item { padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.scene-item .ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.scene-item h4 { font-size: 15px; margin-bottom: 5px; }
.scene-item p { font-size: 13px; color: var(--tx-3); line-height: 1.6; }

/* ── 音色卡 ─────────────────────────────────────────────── */
.voice-card { padding: 18px; text-align: center; cursor: pointer; }
.voice-card .av {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff;
  background: var(--grad);
}
.voice-card .nm { font-size: 13.5px; font-weight: 600; }
.voice-card .mt { font-size: 11.5px; color: var(--tx-3); margin-top: 4px; }

/* ── 定价 / FAQ ─────────────────────────────────────────── */
.price { padding: 32px 28px; text-align: center; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price .amt small { font-size: 15px; font-weight: 600; color: var(--tx-3); }
.price ul { margin: 22px 0 26px; text-align: left; }
.price ul li { display: flex; gap: 10px; padding: 7px 0; font-size: 13.8px; color: var(--tx-2); }
.price ul li b { color: var(--ok); flex: none; }

.faq-item { padding: 20px 24px; }
.faq-item .q { font-size: 15.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-item .a { margin-top: 12px; font-size: 13.8px; color: var(--tx-2); line-height: 1.8; }

/* ── 页脚 ───────────────────────────────────────────────── */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 44px 0 34px; color: var(--tx-3); font-size: 13px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot h5 { font-size: 13px; color: var(--tx); margin-bottom: 12px; font-weight: 700; }
.foot li { padding: 4px 0; }
.foot li a:hover { color: var(--tx); }

/* ── 工作台（对齐堃景科技 · 数字人平台工作台：白底 / slate 边框 / cyan 强调 / 星标 logo / 状态药丸） ── */
.studio { flex: 1; display: flex; flex-direction: column; background: #F8FAFC; color: #0F172A; min-height: 0; }

/* 子导航：星标 logo + 模块 Tab */
.wb-subnav {
  display: flex; align-items: center; gap: 4px; padding: 10px 22px; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid #E2E8F0;
}
.wb-brand { display: flex; align-items: center; gap: 9px; margin-right: 14px; }
.wb-star {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: #0F172A; color: #67E8F9;
  display: inline-flex; align-items: center; justify-content: center;
}
.wb-star svg { width: 16px; height: 16px; }
.wb-brand b { font-size: 13.5px; font-weight: 600; color: #0F172A; }
.wb-tab {
  border: none; background: none; cursor: pointer; padding: 7px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: #64748B; transition: .18s;
}
.wb-tab:hover { background: #F1F5F9; color: #334155; }
.wb-tab.on { background: #ECFEFF; color: #0E7490; }

.studio-body { flex: 1; display: grid; grid-template-columns: 264px 1fr; gap: 0; min-height: 0; }
.studio-side {
  border-right: 1px solid #E2E8F0; padding: 18px 14px; background: #fff; overflow-y: auto;
}
.studio-main { padding: 20px 26px 90px; overflow-y: auto; min-width: 0; background: #F8FAFC; }

.side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-h h4 { font-size: 13.5px; color: #0F172A; letter-spacing: 0; text-transform: none; font-weight: 600; }
.side-empty { font-size: 12.5px; color: #94A3B8; padding: 10px; }
.book-item {
  padding: 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 8px;
  border: 1px solid #E2E8F0; background: #fff; transition: .18s;
}
.book-item:hover { border-color: #CBD5E1; }
.book-item.on { border-color: #67E8F9; background: #ECFEFF; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.book-item .t { font-size: 13.8px; font-weight: 600; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-item .m { font-size: 11.5px; color: #64748B; margin-top: 3px; }
.side-quota { padding: 14px; }
.side-quota span { color: #334155; }

/* 卡片 / 标题 / 弱文字 → 浅色化 */
.studio .card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.studio .card-pad { padding: 16px; }
.studio h2, .studio h3, .studio h4 { color: #0F172A; }
.studio .t2 { color: #475569; }
.studio .t3 { color: #64748B; }

/* 书籍头部卡（对齐 Workbench 流水线头卡） */
.wb-head { padding: 16px 18px; margin-bottom: 4px; }
.wb-head h2 { font-weight: 700; }

/* 按钮 → 白底 slate 边框 / cyan 主按钮 */
.studio .btn {
  background: #fff; border: 1px solid #E2E8F0; color: #334155;
  border-radius: 8px; box-shadow: none;
}
.studio .btn:hover { background: #F8FAFC; transform: none; }
.studio .btn-pri {
  background: #0891B2; border-color: #0891B2; color: #fff; box-shadow: none;
}
.studio .btn-pri:hover { background: #06B6D4; border-color: #06B6D4; }
.studio .btn:disabled { opacity: .5; }
.studio .btn-danger { color: #B91C1C; border-color: #FECACA; }
.studio .btn-danger:hover { background: #FEF2F2; }
.studio .btn-xs.on, .studio .btn-sm.on {
  background: #ECFEFF; border-color: #A5F3FC; color: #0E7490;
}

/* 表单 → 白底 slate 边框 / cyan 聚焦环 */
.studio .input, .studio .textarea, .studio .select {
  background: #fff; color: #0F172A; border: 1px solid #E2E8F0; border-radius: 8px; height: 38px;
}
.studio .textarea { height: auto; }
.studio .select option { background: #fff; color: #0F172A; }
.studio .input:focus, .studio .textarea:focus, .studio .select:focus {
  border-color: #22D3EE; box-shadow: 0 0 0 2px rgba(34, 211, 238, .2); background: #fff;
}
.studio .input::placeholder, .studio .textarea::placeholder { color: #94A3B8; }
.studio .field > label { color: #334155; }
.studio .field .hint { color: #64748B; }

/* 状态药丸（对齐 StatusPill：slate / cyan / amber / emerald / red） */
.wb-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border-radius: 999px; border: 1px solid; padding: 2px 9px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.wb-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.wb-todo { color: #475569; background: #F8FAFC; border-color: #E2E8F0; }
.wb-ready { color: #0E7490; background: #ECFEFF; border-color: #A5F3FC; }
.wb-run  { color: #B45309; background: #FFFBEB; border-color: #FDE68A; }
.wb-done { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }
.wb-err  { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }
.wb-pill.wb-run::before { animation: wbpulse 1.2s ease infinite; }
@keyframes wbpulse { 50% { opacity: .35; } }

/* 弱标签 → 浅色化 */
.studio .tag { background: #F8FAFC; color: #475569; border-color: #E2E8F0; }
.studio .tag-pri, .studio .tag-acc { background: #ECFEFF; color: #0E7490; border-color: #A5F3FC; }
.studio .tag-ok  { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.studio .tag-warn{ background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.studio .tag-err { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }

/* 章节行 / 剧本行 / 阵容卡 → 浅色化 */
.ch-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border: 1px solid #E2E8F0; border-radius: 10px; margin-bottom: 10px;
  background: #fff; transition: .18s;
}
.ch-row:hover { border-color: #CBD5E1; }
.ch-row .idx {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: #F1F5F9; color: #475569;
}
.ch-row.is-gen { border-color: #67E8F9; background: #ECFEFF; }
.ch-row .spin { border-color: rgba(8, 145, 178, .3); border-top-color: #0891B2; }
.studio .spin { border-color: rgba(8, 145, 178, .3); border-top-color: #0891B2; }

.line-row {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 10px; border: 1px solid #E2E8F0; margin-bottom: 8px;
  background: #fff;
}
.line-row.narr { background: #F8FAFC; }
.line-row.char { border-left: 3px solid #0891B2; }
.line-row .who { font-size: 12.5px; font-weight: 700; color: #0F172A; padding-top: 9px; }
.line-row .txt {
  width: 100%; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px;
  color: #0F172A; padding: 8px 11px; font-size: 14px; line-height: 1.7; resize: vertical;
  min-height: 40px; outline: none;
}
.line-row .txt:focus { border-color: #22D3EE; background: #fff; box-shadow: 0 0 0 2px rgba(34, 211, 238, .2); }

.cast-card .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cast-card .av {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: #67E8F9; background: #0F172A; flex: none; font-size: 15px;
}
.cast-card .nm { font-size: 15px; font-weight: 700; color: #0F172A; }
.cast-card .sub { font-size: 12px; color: #64748B; }

.studio .empty { text-align: center; padding: 70px 20px; color: #64748B; }
.studio .empty .ico { font-size: 42px; margin-bottom: 14px; opacity: .6; }
/* 基础空态（首页暗色用；工作台内被 .studio .empty 覆盖为浅色） */
.empty { text-align: center; padding: 70px 20px; color: var(--tx-3); }
.empty .ico { font-size: 42px; margin-bottom: 14px; opacity: .5; }

/* 工作台浅色模式：弹窗 / 提示条 / 播放器 / 上传框 同步浅色（body.studio-light 由路由切换） */
body.studio-light .mask { background: rgba(15, 23, 42, .45); }
body.studio-light .modal {
  background: #fff; border: 1px solid #E2E8F0; color: #0F172A;
  box-shadow: 0 30px 70px -25px rgba(15, 23, 42, .35);
}
body.studio-light .modal h3 { color: #0F172A; }
body.studio-light .modal .sub { color: #64748B; }
body.studio-light .field > label { color: #334155; }
body.studio-light .field .hint { color: #64748B; }
body.studio-light .input, body.studio-light .textarea, body.studio-light .select {
  background: #fff; color: #0F172A; border-color: #E2E8F0;
}
body.studio-light .select option { background: #fff; color: #0F172A; }
body.studio-light .input:focus, body.studio-light .textarea:focus, body.studio-light .select:focus {
  border-color: #22D3EE; box-shadow: 0 0 0 2px rgba(34, 211, 238, .2); background: #fff;
}
body.studio-light .input::placeholder, body.studio-light .textarea::placeholder { color: #94A3B8; }
body.studio-light .tag { background: #F8FAFC; color: #475569; border-color: #E2E8F0; }
body.studio-light .tag-pri, body.studio-light .tag-acc { background: #ECFEFF; color: #0E7490; border-color: #A5F3FC; }
body.studio-light .tag-ok  { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
body.studio-light .tag-warn{ background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
body.studio-light .tag-err { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
body.studio-light .alert-info { background: #ECFEFF; border-color: #A5F3FC; color: #0E7490; }
body.studio-light .alert-ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
body.studio-light .alert-warn { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
body.studio-light .toast {
  background: #fff; border-color: #E2E8F0; color: #0F172A;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .3);
}
body.studio-light .toast.ok { border-color: #A7F3D0; color: #047857; }
body.studio-light .toast.err { border-color: #FECACA; color: #B91C1C; }
body.studio-light .player { background: rgba(255, 255, 255, .97); border-color: #E2E8F0; color: #0F172A; }
body.studio-light .upload { background: #F8FAFC; border-color: #CBD5E1; color: #475569; }
body.studio-light .upload:hover { border-color: #0891B2; color: #0F172A; }
body.studio-light .ck span { color: #475569; }
body.studio-light .spin { border-color: rgba(8, 145, 178, .3); border-top-color: #0891B2; }

/* ── 弹层 ───────────────────────────────────────────────── */
.mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px;
}
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); padding: 28px;
}
.modal h3 { font-size: 19px; margin-bottom: 6px; }
.modal .sub { font-size: 13.5px; color: var(--tx-3); margin-bottom: 22px; }

/* 提示条：info / ok / warn */
.alert {
  padding: 11px 14px; border-radius: 11px; font-size: 13px; line-height: 1.7;
  border: 1px solid; margin-bottom: 16px;
}
.alert-info { background: rgba(91, 108, 255, .1); border-color: rgba(91, 108, 255, .32); color: #B6C0FF; }
.alert-ok { background: rgba(37, 201, 122, .1); border-color: rgba(37, 201, 122, .32); color: #7BE3AC; }
.alert-warn { background: rgba(245, 165, 36, .1); border-color: rgba(245, 165, 36, .32); color: #FFD08A; }

/* 文件上传框 */
.upload {
  display: block; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--line-strong); background: var(--card-2);
  font-size: 13.5px; color: var(--tx-2); text-align: center; transition: .18s;
}
.upload:hover { border-color: var(--pri); color: var(--tx); }
.upload i { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--tx-3); }

/* 勾选行 */
.ck { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; cursor: pointer; }
.ck input { margin-top: 3px; flex: none; accent-color: var(--pri); }
.ck span { font-size: 12.5px; color: var(--tx-2); line-height: 1.6; }

.toast-wrap { position: fixed; top: 78px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 12px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  background: var(--card-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: tin .25s ease;
}
.toast.ok { border-color: rgba(37, 201, 122, .5); color: #7BE3AC; }
.toast.err { border-color: rgba(240, 82, 82, .5); color: #FFA0A0; }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.spin {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .28); border-top-color: #fff;
  animation: sp .7s linear infinite; display: inline-block;
}
@keyframes sp { to { transform: rotate(360deg); } }

.player {
  position: fixed; left: 24px; right: 24px; bottom: 18px; z-index: 70;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: rgba(26, 33, 64, .94); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
}

@media (max-width: 1080px) {
  .grid-4, .pipeline, .flow, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .grid-6, .pipeline, .flow, .stat-grid { grid-template-columns: 1fr; }
  .studio-body { grid-template-columns: 1fr; }
  .studio-side { display: none; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
