/* 设计稿：主色工地橙 #C2410C、深灰黑 #17191C、底色 #F3F4F1；字体 Noto Sans SC，数字 IBM Plex Mono */
:root {
  --orange: #c2410c;
  --orange-dark: #9a3412;
  --orange-soft: #fff1e8;
  --orange-light: #fdba74;
  --ink: #17191c;
  --ink2: #2a2d31;
  --text: #3f444a;
  --muted: #5b6168;
  --muted2: #6b7178;
  --bg: #f3f4f1;
  --card: #ffffff;
  --line: #d9dcd5;
  --line2: #b9bdb5;
  --chip: #eef0ec;
  --ok-bg: #eaf5ec;
  --ok: #166534;
  --bad-bg: #fdecea;
  --bad: #b42318;
  --blue-bg: #e8f0fe;
  --blue: #1e40af;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: var(--orange);
}
a:hover {
  color: var(--orange-dark);
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
}
.mono {
  font-family: var(--mono);
}
h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}
h2 {
  margin: 0;
  font-size: 19px;
}
h3 {
  margin: 0;
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.btn.primary:hover {
  background: var(--orange-dark);
  color: #fff;
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn.ghost {
  border-color: var(--line2);
}
.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.link {
  background: none;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #c9ccc6;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.chip.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--chip);
  color: var(--text);
}
.tag.talking {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.tag.acting {
  background: var(--blue-bg);
  color: var(--blue);
}
.tag.scene {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag.image {
  background: var(--chip);
  color: var(--text);
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag.run {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.tag.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
input[type='text'],
input[type='number'],
input[type='password'],
input[type='search'],
select,
textarea {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea {
  padding: 10px;
  min-height: 60px;
  resize: vertical;
}

/* 顶部 */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 32px;
  background: var(--ink);
  color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}
.brand:hover {
  color: #fff;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.topbar nav a {
  color: #e4e6e1;
  text-decoration: none;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink2);
  font-size: 13px;
}
.pill strong {
  font-family: var(--mono);
  color: var(--orange-light);
}

/* 步骤条 */
.steps {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  overflow-x: auto;
}
.steps ol {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
}
.steps li {
  flex: 1 0 130px;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid transparent;
  color: var(--muted2);
  font-size: 14px;
  cursor: pointer;
}
.steps li.now {
  border-bottom-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}
.steps li.done {
  color: var(--ink);
}
.steps .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  background: #e4e6e1;
  color: var(--text);
  flex: none;
}
.steps li.now .dot {
  background: var(--orange);
  color: #fff;
}
.steps li.done .dot {
  background: var(--ink);
  color: #fff;
}

main.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 32px;
  z-index: 15;
}
.footbar > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* 登录 */
.login {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}
.login .hero {
  flex: 3 1 520px;
  min-width: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.login .hero h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 900;
  margin-top: 40px;
}
.login .hero ol {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.login .hero ol div {
  font-family: var(--mono);
  color: var(--orange-light);
  font-size: 22px;
}
.login .side {
  flex: 2 1 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.login form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.qr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.qr img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #fff;
}

/* 网格 */
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.thumb {
  aspect-ratio: 9/16;
  background: var(--ink2);
  color: #c9ccc6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
}
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot {
  border: 2px dashed var(--line2);
  border-radius: 12px;
  background: #f7f8f5;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.photo-slot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.select-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.select-card.on {
  border: 2px solid var(--orange);
}
.select-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--chip);
  flex: none;
}

/* 分镜表：每段一块，解说段下面一排图 */
.sb-seg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.sb-seg textarea {
  width: 100%;
  min-height: 56px;
  font-size: 14px;
}
.sb-seg.rewriting,
.pic-card.rewriting {
  background: #fffbf7;
  opacity: 0.7;
}
.pic-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.pic-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f5;
}
.pic-card .words {
  color: var(--ink2);
  font-weight: 500;
}

/* 弹窗 */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(23, 25, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.dialog {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.money {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--orange);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 120;
  max-width: 90vw;
}
.toast.bad {
  background: var(--bad);
}
.banner {
  background: var(--orange-soft);
  border: 1px solid var(--orange-light);
  color: var(--orange-dark);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.banner.bad {
  background: var(--bad-bg);
  border-color: #f5b5ae;
  color: var(--bad);
}
.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.progress > div {
  height: 6px;
  background: var(--orange);
}

/* 安全区预览 */
.phone {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9/16;
  border-radius: 18px;
  background: var(--ink2);
  position: relative;
  overflow: hidden;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .topbar,
  .steps,
  .footbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  main.page {
    padding: 18px 16px 120px;
  }
  .login .hero {
    padding: 28px 20px;
  }
  .login .hero h1 {
    font-size: 28px;
    margin-top: 12px;
  }
  .login .side {
    padding: 28px 20px;
  }
  .steps li {
    flex: 0 0 auto;
  }
  .steps li span.lbl {
    display: none;
  }
  .steps li.now span.lbl {
    display: inline;
  }
  h1 {
    font-size: 22px;
  }
}

/* ===== 第二版界面 ===== */
.ink {
  color: var(--ink);
}
.spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  flex: none;
  vertical-align: middle;
}
.spin.dark {
  border-color: rgba(23, 25, 28, 0.18);
  border-top-color: var(--orange);
}
.spin.sm {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.btn.ghost .spin,
.btn:not(.primary):not(.dark) .spin {
  border-color: rgba(23, 25, 28, 0.18);
  border-top-color: var(--orange);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn.busy {
  opacity: 1;
  cursor: progress;
}
.btn.big {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}
.btn.danger {
  border-color: #f5b5ae;
  color: var(--bad);
  background: #fff;
}
.btn.danger:hover {
  background: var(--bad-bg);
}
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 顶栏：余额 + 头像 */
.avatar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e4e6e1;
  text-decoration: none;
  position: relative;
}
.topbar nav a.avatar-link:hover {
  color: #fff;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.avatar-link .dot {
  position: absolute;
  left: 24px;
  top: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb923c;
  border: 2px solid var(--ink);
}

/* 首页 */
main.home {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.home-hero h1 {
  font-size: 36px;
  font-weight: 900;
}
.home-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.home-card {
  min-height: 220px;
  border-radius: 18px;
  border: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  overflow: hidden;
}
.home-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.home-card .txt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-card .big {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}
.home-card .sub,
.home-card .meta {
  font-size: 14px;
}
.home-card.new {
  background: var(--orange);
  color: #fff;
  padding: 28px;
  gap: 24px;
  cursor: pointer;
  justify-content: space-between;
}
.home-card.new:hover {
  background: var(--orange-dark);
}
.home-card.new .sub {
  color: #ffe8d6;
}
.home-card.draft {
  background: #3a3e43;
  color: #f3f4f1;
}
.draft-main {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #f3f4f1;
  text-decoration: none;
}
a.draft-main:hover {
  background: #33373c;
  color: #fff;
}
.draft-main .meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #c9ccc6;
}
.draft-main .meta strong {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}
.bars {
  display: flex;
  gap: 4px;
  max-width: 260px;
}
.bars span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.bars span.done {
  background: #e4e6e1;
}
.bars span.now {
  background: var(--orange-light);
}
.draft-all {
  display: flex;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e6e1;
  text-decoration: none;
  font-size: 14px;
}
.draft-all:hover {
  color: #fff;
  background: #33373c;
}

/* 我的 */
.me-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 80px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.me-menu {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  position: sticky;
  top: 76px;
}
.me-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.me-menu a:hover {
  background: var(--chip);
  color: var(--ink);
}
.me-menu a.on {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.me-menu a.on .muted {
  color: #c9ccc6;
}
.me-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.me-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.big-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}
.me-sec,
.sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.list-card {
  padding: 0;
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #eceee9;
  flex-wrap: wrap;
}
.list-row:last-child {
  border-bottom: 0;
}
.works-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.work {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--ink2);
}
.work-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-new {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 6px;
}
.work-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.asset-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.asset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.asset-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--chip);
}
.asset-img.tall {
  aspect-ratio: 3/4;
}

/* 第 1 步 */
.pick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.pick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.pick-card.on {
  border: 2px solid var(--orange);
  padding: 9px;
}
.pick-img {
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  font-size: 13px;
}
.pick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pick-new {
  border: 2px dashed var(--line2);
  border-radius: 14px;
  background: #f7f8f5;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
}
.pick-new:hover {
  border-color: var(--orange);
  color: var(--ink);
}
.plus {
  font-size: 28px;
  line-height: 1;
  color: var(--orange);
}
.pick-grid.voices {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.voice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.voice-card.on {
  border: 2px solid var(--orange);
  padding: 9px 11px;
}
.voice-new {
  border: 2px dashed var(--line2);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  min-height: 62px;
}
.voice-new:hover {
  border-color: var(--orange);
  color: var(--ink);
}
.play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 13px;
}
.play.on,
.play:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 新建人物 / 新建声音 */
.narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.narrow-bar {
  max-width: 860px !important;
}
.grid2 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.grid3 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field2 input,
.field2 select,
.field2 textarea {
  width: 100%;
  min-width: 0;
}
.field2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.persona-slot {
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: #f7f8f5;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  font-size: 13px;
  overflow: hidden;
}
.persona-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.photo-slot input[type='file'] {
  display: none;
}
.read-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}
.read-card.now {
  border: 2px solid var(--orange);
  padding: 13px;
  background: #fffbf7;
}
.pill-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
.pill-btn.go {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pill-btn.rec {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 第 3 步 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  color: var(--muted);
  text-align: center;
}
.link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.link {
  text-align: left;
  display: inline-flex;
  align-items: center;
}

/* 第 4 步 */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
}
.tabs button.on {
  border-bottom-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}
.look-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.look-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.look-card.on {
  border: 2px solid var(--orange);
  padding: 9px;
}
.look-img {
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: var(--chip);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}
.look-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav {
  flex: none;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.fav.on {
  border-color: var(--orange-light);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* 第 5、6 步 */
.gen-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gen-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
}
.seg button {
  background: #fff;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.seg button.on {
  background: var(--ink);
  color: #fff;
}

/* 第三版：盖在内容上的"正在生成"、看大图、网络提示 */
.cover-wrap {
  position: relative;
}
.cover-wrap.covered > .cover-body {
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 56px !important;
  justify-content: center;
  gap: 10px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 16px;
  min-height: 120px;
}
.cover .spin {
  width: 22px;
  height: 22px;
}
.cover-wrap.covered {
  min-height: 140px;
}
.fail-line {
  color: var(--bad);
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.fail-line .link {
  font-size: 14px;
}
.zoomable {
  cursor: zoom-in;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.zoomable video,
video.zoomable {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(23, 25, 28, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}
.play-badge.big {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 12, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  background: #000;
}
.lightbox video {
  cursor: default;
}
.net {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: #fff;
  border: 1px solid var(--orange-light);
  color: var(--orange-dark);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.persona-slot.face,
.asset-img.face {
  aspect-ratio: 2/3;
  background: #fff;
}
.persona-slot.face img,
.asset-img.face {
  object-fit: cover;
  object-position: center;
}
.persona-slot img {
  cursor: zoom-in;
}
button.asset {
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
button.asset:hover {
  border-color: var(--orange);
}
.list-row.clickable {
  cursor: pointer;
}
.list-row.clickable:hover {
  background: #f7f8f5;
}
.dialog.wide {
  max-width: 640px;
}
.btn.primary:disabled:not(.busy) {
  background: #d9dcd5;
  border-color: #d9dcd5;
  color: #fff;
  opacity: 1;
}
.thumb .zoomable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  main.home {
    padding: 28px 16px 60px;
  }
  .home-hero h1 {
    font-size: 26px;
  }
  .home-cards,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .home-card {
    min-height: 180px;
  }
  .me-wrap {
    flex-direction: column;
    padding: 18px 16px 60px;
  }
  .me-menu {
    position: static;
    flex: none;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .me-menu a {
    white-space: nowrap;
    gap: 6px;
  }
  .look-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    gap: 8px;
  }
  .topbar nav .avatar-link {
    font-size: 0;
  }
  .avatar-link .avatar {
    font-size: 14px;
  }
}

/* 第三轮：新分镜表、补充项目信息、提示词查看 */
.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  background: #eef0ec;
  color: var(--text);
}
.type-badge.person {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.extra-bar {
  padding: 0;
}
.extra-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}
.extra-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid4 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.prompt-view {
  white-space: pre-wrap;
  background: #f7f8f5;
  padding: 12px;
  border-radius: 8px;
  max-height: 60vh;
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.scene-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.scene-strip figure {
  margin: 0;
  width: 96px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scene-strip .persona-slot {
  aspect-ratio: 9/16;
}
@media (max-width: 760px) {
  .grid4 {
    grid-template-columns: 1fr 1fr;
  }
}
/* 第 6 步：视频封面 */
.cover-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cover-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.cover-thumb {
  position: relative;
  width: 150px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line, #ddd);
  flex: 0 0 auto;
}
.cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.cover-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}
/* 第 2 步：已选造型 */
.picked-look {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.look-img.sm {
  width: 96px;
  flex: 0 0 96px;
}
/* 审核拦截后给的改好的描述 */
.suggest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--orange-soft, #fff4ec);
}
.suggest .btn {
  align-self: flex-start;
}
/* 锁定的步骤 / 小模块只能看：选中的照常高亮，其它点不动、灰掉，不加提示文字 */
.step-locked > *:not(.footbar, .materials-panel) {
  pointer-events: none;
}
.sub-locked {
  pointer-events: none;
}
:is(.step-locked > *:not(.footbar, .materials-panel), .sub-locked)
  :is(
    button,
    input,
    select,
    textarea,
    .pick-card,
    .pick-new,
    .voice-card,
    .voice-new,
    .look-card,
    .chip,
    .read-card,
    .fav,
    .link
  ):not(.on, .on *, .character-gender-control *, .character-gender-dialog *, .storyboard-export-control *) {
  opacity: 0.45;
  filter: grayscale(0.4);
}
.sub-locked select {
  opacity: 0.6;
}
/* 锁定步骤里，补充项目信息仍可展开来看 */
.step-locked > * .extra-head {
  pointer-events: auto;
}
/* 性别资料的更正独立于换人/生成锁，不放开其他制作操作。 */
.step-locked .character-gender-control,
.step-locked > .character-gender-dialog {
  pointer-events: auto;
}
/* 下载属于只读操作，完成出片后也可以使用。 */
.step-locked .storyboard-export-control,
.step-locked > .materials-panel {
  pointer-events: auto;
}
.step-locked .materials-panel button:not(:disabled) {
  opacity: 1;
  filter: none;
}
.materials-panel {
  margin-top: 24px;
}
.materials-panel summary {
  cursor: pointer;
  padding: 8px 0;
}
/* 人物卡片显示面部三视图三张：正面大图 + 左侧面、右侧面两张小图 */
.face3 {
  position: relative;
  display: block;
}
.face3-side {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}
.face3-side img {
  width: 30%;
  min-width: 44px;
  max-width: 64px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  background: #fff;
}
.face3 .face3-side img {
  width: 64px;
  height: auto;
  max-width: 30%;
}
.pick-img.face3 {
  position: relative;
}

/* 第 4 步：系统替你定了什么、待确认标黄、评审意见 */
.decided {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.decided-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.decided-tag {
  flex: 0 0 84px;
  font-size: 13px;
  color: var(--muted);
}
.decided-tag.warn,
.pending-line {
  color: #854d0e;
}
.pending-line {
  background: #fef9c3;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
.sb-seg.pending {
  border-color: #eab308;
  box-shadow: inset 4px 0 0 #eab308;
}
.other-approaches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.other-approach {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.review-list {
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 600px) {
  .decided-row {
    flex-direction: column;
    gap: 4px;
  }
  .decided-tag {
    flex-basis: auto;
  }
}


.source-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.source-card { display:flex; flex-direction:column; gap:8px; min-width:0; }
.source-card img { width:100%; height:170px; object-fit:contain; background:var(--line); border-radius:8px; cursor:zoom-in; }

/* ---------- 用户站：后台代客户查看的提示条、首页公告（2026-10-25 X58） ---------- */
.acting {
  background: #c2410c;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.banner.notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
  margin-bottom: 16px;
}

/* ---------- 管理后台（照后台设计稿：深色左栏 + 白色卡片） ---------- */
.adm {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  background: #f3f4f1;
}
.adm-side {
  flex: 1 1 200px;
  max-width: 220px;
  background: #17191c;
  color: #f3f4f1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-brand {
  font-weight: 700;
  font-size: 16px;
  padding: 4px 10px 16px;
}
.adm-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #c9ccc6;
}
.adm-side a.on {
  background: #c2410c;
  color: #fff;
  font-weight: 700;
}
.adm-main {
  flex: 999 1 640px;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.adm-main h1 {
  margin: 0;
  font-size: 26px;
}
.adm-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.adm-card {
  background: #fff;
  border: 1px solid #d9dcd5;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
}
.adm-card h2 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.adm-kpi {
  background: #fff;
  border: 1px solid #d9dcd5;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-kpi span {
  font-size: 13px;
  color: #5b6168;
}
.adm-kpi b {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
}
.adm-alert {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fdecea;
  color: #7a1a12;
  border: 1px solid #f3b8b0;
}
.adm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #eef0ec;
  flex-wrap: wrap;
}
.adm-badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef0ec;
  color: #3f444a;
  white-space: nowrap;
}
.adm-badge.bad {
  background: #fdecea;
  color: #b42318;
}
.adm-badge.warn {
  background: #fef3c7;
  color: #92400e;
}
.adm-badge.ok {
  background: #e7f6ec;
  color: #166534;
}
.adm-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.adm-table th,
.adm-table .btn {
  white-space: nowrap;
}
.adm-form label.adm-check {
  flex-direction: row;
  align-items: center;
  display: inline-flex;
  margin-left: 12px;
  font-weight: 400;
}
.adm-table th {
  text-align: left;
  font-weight: 500;
  color: #5b6168;
  font-size: 13px;
  padding: 6px 8px;
  border-bottom: 1px solid #d9dcd5;
}
.adm-table td {
  padding: 8px;
  border-top: 1px solid #eef0ec;
  vertical-align: top;
}
.adm-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.adm-form input,
.adm-form select,
.adm-form textarea {
  max-width: 100%;
}
.adm-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 25, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.adm-modal .adm-card {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}
.adm-split {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.adm-list {
  flex: 1 1 220px;
  max-height: 75vh;
  overflow-y: auto;
  gap: 2px;
}
.adm-li {
  text-align: left;
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font: inherit;
  font-size: 14px;
}
.adm-li.on {
  background: #fff7ed;
  color: #c2410c;
}
@media (max-width: 640px) {
  .adm-side {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .adm-main {
    padding: 18px 16px;
  }
}
