/* TODO::2026-09-10,(一文成片用户后台统一设计系统：浅奶油底色、深松绿/薄荷绿主题、Vibeknow 风格组件与响应式布局) */
:root {
  color-scheme: light;
  --cream: #f7f9f5;
  --cream-alt: #f0f4ee;
  --paper: #ffffff;
  --ink: #1b3227;
  --muted: #6b7d72;
  --faint: #98a79d;
  --line: #e1e7de;
  --line-subtle: #edf2eb;
  --green: #24684c;
  --green-hover: #1c553e;
  --green-dark: #143e2d;
  --green-light: #eaf3ed;
  --green-subtle: #d6e5dc;
  --soft: #edf4ec;
  --accent: var(--green);
  --error: #b73e4a;
  --error-bg: #fdf2f3;
  --success: #237350;
  --success-bg: #eaf5ee;
  --warning: #996819;
  --warning-bg: #fcf5e5;
  --shadow-sm: 0 2px 8px rgba(28, 52, 38, 0.04);
  --shadow-card: 0 6px 24px rgba(22, 48, 34, 0.05);
  --shadow-btn: 0 4px 14px rgba(36, 104, 76, 0.2);
  --shadow-dialog: 0 24px 60px rgba(18, 40, 30, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 2px;
}

/* ================= 侧边栏 ================= */
.video-sidebar {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #fbfcf9;
  display: flex;
  flex-direction: column;
  padding: 32px 18px;
  z-index: 20;
}

.video-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.5px;
  padding: 0 10px;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-caption {
  font-size: 12px;
  font-weight: 700;
  color: #8c9d91;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 36px 14px 12px;
}

.video-sidebar nav {
  display: grid;
  gap: 6px;
}

.video-sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  color: #556c5e;
  font-size: 15px;
  font-weight: 550;
  transition: all 0.16s ease;
}

.video-sidebar nav a > span {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: #84988a;
  transition: color 0.16s ease;
}

.video-sidebar nav a:hover {
  background: #f0f5ee;
  color: var(--ink);
}

.video-sidebar nav a:hover > span {
  color: var(--green);
}

.video-sidebar nav a.is-active {
  background: #e7f2eb;
  color: var(--green);
  font-weight: 700;
}

.video-sidebar nav a.is-active > span {
  color: var(--green);
}

.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
  border-top: 1px solid var(--line-subtle);
  font-size: 13px;
  color: var(--muted);
}

.sidebar-bottom p {
  font-size: 13px;
  margin: 0 0 16px;
  color: #86968c;
  line-height: 1.6;
}

.sidebar-bottom a, .sidebar-bottom button {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #728477;
  transition: color 0.15s ease;
}

.sidebar-bottom a:hover, .sidebar-bottom button:hover {
  color: var(--green);
}

.sidebar-bottom button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* ================= 顶栏与布局 ================= */
.video-layout {
  margin-left: 240px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 65% 10%, rgba(230, 243, 233, 0.45) 0%, transparent 55%), var(--cream);
}

.video-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid rgba(225, 231, 222, 0.6);
  color: #728477;
  font-size: 14px;
  font-weight: 500;
}

.topbar-slash {
  margin: 0 10px;
  color: #b7c4b9;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce5dc;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 18px;
  color: #557761;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}

.points-badge:hover {
  border-color: #b8d7c6;
  box-shadow: 0 4px 12px rgba(36, 104, 76, 0.08);
  transform: translateY(-1px);
}

.points-badge strong {
  color: var(--green);
  font-weight: 700;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}

.points-badge span {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid #e1e8df;
  color: #6a8874;
  font-weight: 600;
}

/* ================= 创作页主视觉 ================= */
.creator-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 36px 70px;
}

.creator-intro {
  text-align: center;
  margin-bottom: 38px;
}

.creator-intro .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.creator-intro h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
  color: #1a3629;
}

.creator-intro h1 span {
  color: #37805e;
}

.creator-intro > p:last-child {
  margin: 12px 0 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* 创作主卡片 */
.creator-card {
  padding: 42px 46px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.panel-heading h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 750;
  color: var(--ink);
}

.login-state {
  font-size: 13px;
  color: var(--green);
  background: var(--green-light);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 550;
}

.creator-steps-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #f4f8f3;
  border: 1px solid #e1ecde;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  font-size: 14px;
  color: #2e4d3a;
  font-weight: 650;
}

.creator-steps-hint span:nth-child(2n) {
  color: #9cb4a1;
  font-weight: 400;
}

.creator-card label {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: #2b3e34;
  margin: 0 0 10px;
}

.required {
  color: var(--green);
  margin-left: 3px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.creator-card label .muted {
  font-size: 13px;
  margin-left: 6px;
  color: var(--faint);
}

.creator-card input[type=text], textarea, select {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid #dce4db;
  border-radius: var(--radius-md);
  background: #fcfdfa;
  outline: none;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}

.creator-card input::placeholder, textarea::placeholder {
  color: #9eb0a4;
  font-size: 15px;
}

.creator-card input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(36, 104, 76, 0.12);
}

.creator-card input[type=text] {
  height: 52px;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 10px;
}

.field-heading label {
  margin: 0;
}

.field-heading > span {
  font-size: 13px;
  color: var(--faint);
}

textarea {
  resize: vertical;
  min-height: 140px;
  display: block;
}

.creator-card > textarea {
  min-height: 175px;
  line-height: 1.65;
}

.copy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 14px;
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-weight: 650;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.text-button:hover {
  color: var(--green-hover);
}

.text-button span {
  font-size: 12px;
  font-weight: 550;
  color: #557761;
  background: #eaf4ed;
  padding: 3px 9px;
  border-radius: 999px;
}

.copy-actions > .muted {
  font-size: 13px;
  color: var(--muted);
}

.copy-result {
  border: 1px solid var(--green-subtle);
  background: #f4faf6;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 20px;
}

.copy-result p {
  font-size: 14px;
  color: #2b4d3a;
  margin: 0 0 12px;
}

.copy-result button {
  margin: 14px 10px 0 0;
}

/* 参数设置分段 */
.settings-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-subtle);
  margin: 32px 0 22px;
  padding-top: 26px;
  font-size: 16px;
  color: #244132;
  font-weight: 750;
}

.settings-divider span:last-child {
  font-size: 13px;
  font-weight: 550;
  color: #6a8272;
  background: #eef4ec;
  padding: 4px 12px;
  border-radius: 999px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.settings-grid > div {
  background: #fbfdfa;
  border: 1px solid #e1e8de;
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.settings-grid label {
  font-size: 14px;
  font-weight: 650;
  color: #3b5344;
  margin-bottom: 9px;
}

.settings-grid select {
  height: 46px;
  padding: 8px 14px;
  font-size: 14.5px;
  border: 1px solid #dbe3da;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.setting-action, .setting-hint {
  font-size: 12.5px;
  display: inline-block;
  margin-top: 12px;
}

.setting-action {
  border: 1px solid var(--green-subtle);
  background: var(--green-light);
  color: var(--green);
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  font-weight: 600;
  transition: all 0.15s;
}

.setting-action:hover {
  background: #d8ece0;
  color: var(--green-dark);
}

.setting-hint {
  color: #7b9082;
  line-height: 1.5;
}

/* 结算与生成按钮栏 */
.generation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  background: #f8faf6;
  border: 1px solid #e7ede4;
  border-radius: var(--radius-md);
  padding: 20px 26px;
  gap: 18px;
}

.generation-footer strong {
  font-size: 15px;
  color: #213c2d;
  font-weight: 750;
}

.generation-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}

.primary-button, .secondary-button {
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 650;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(145deg, #2a7356, #216147);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(145deg, #22644a, #1a523b);
  box-shadow: 0 6px 18px rgba(36, 104, 76, 0.28);
}

.primary-button:active:not(:disabled) {
  transform: scale(0.99);
}

.secondary-button {
  border: 1px solid #dce7da;
  color: #4a6f52;
  background: #f6f9f2;
}

.secondary-button:hover:not(:disabled) {
  background: #edf5e8;
  border-color: #c7dbc1;
}

.generate-button {
  min-width: 175px;
  gap: 12px;
  font-size: 15.5px;
}

.creator-message, .form-message {
  font-size: 14px;
  color: #986540;
  line-height: 1.6;
  min-height: 1.2em;
  margin: 14px 2px 0;
}

.creator-bottom-note {
  text-align: center;
  margin: 28px 0 0;
  color: #8c9e92;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* 正在执行任务卡片 */
.active-job {
  border: 1px solid var(--line);
  background: #ffffff;
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.active-job h3 {
  font-size: 17px;
  margin: 12px 0;
  font-weight: 750;
  color: var(--ink);
}

.job-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.complete, .status-pill.paid {
  color: var(--success);
  background: var(--success-bg);
}

.status-pill.failed {
  color: var(--error);
  background: var(--error-bg);
}

.status-pill.running, .status-pill.queued, .status-pill.pending {
  color: var(--warning);
  background: var(--warning-bg);
}

.progress-track {
  background: #edf3eb;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 10px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #378b66, #24684c);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.inline-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ================= 弹窗组件 ================= */
.video-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-dialog);
}

.video-dialog::backdrop {
  background: rgba(18, 38, 27, 0.45);
  backdrop-filter: blur(4px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-subtle);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}

.dialog-heading h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.icon-button {
  font-size: 20px;
  border: 0;
  background: transparent;
  color: #84968a;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.15s, color 0.15s;
}

.icon-button:hover {
  background: #f0f4ee;
  color: var(--ink);
}

.dialog-body {
  padding: 24px 28px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 28px 24px;
}

.quote-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  margin: 0;
}

.detail-grid dt {
  color: #798d81;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: var(--ink);
}

.price-confirm {
  background: #f4faf4;
  border: 1px solid var(--green-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 22px;
}

.price-confirm > span {
  font-size: 12px;
  color: #4f735d;
}

.price-confirm strong {
  display: block;
  font-size: 32px;
  margin: 6px 0;
  color: var(--green);
  font-weight: 700;
}

.price-confirm small {
  font-size: 12px;
  font-weight: 400;
}

.price-confirm p {
  font-size: 12px;
  color: #7b9484;
  margin: 0;
}

.preset-preview {
  padding: 0 0 20px;
}

.preset-preview + .preset-preview {
  border-top: 1px solid var(--line-subtle);
  padding-top: 20px;
}

.preset-preview video, .preset-preview img, .work-video {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #122118;
}

.preset-preview h3 {
  font-size: 16px;
  margin: 14px 0 6px;
  font-weight: 700;
}

.preset-preview p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.preset-placeholder {
  display: grid;
  place-items: center;
  height: 160px;
  color: #7ba286;
  font-size: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #eaf3e5, #f4f6ec);
}

/* ================= 通用页面主体 ================= */
.page-main {
  padding: 36px 44px 60px;
  width: 100%;
  box-sizing: border-box;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: 28px;
  font-weight: 750;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
}

/* 过滤栏与页签 */
.filter-bar, .page-tabs {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 24px 0 22px;
  padding: 4px;
  border-radius: 999px;
  background: #eef4ec;
  flex-wrap: wrap;
}

.filter-bar button, .page-tabs button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #63776b;
  font-size: 13px;
  font-weight: 550;
  transition: all 0.16s ease;
}

.filter-bar button:hover, .page-tabs button:hover {
  color: var(--ink);
}

.filter-bar button.is-active, .page-tabs button.is-active {
  background: #ffffff;
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(28, 52, 38, 0.08);
}

/* 作品卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.work-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #d1dfce;
}

.work-cover {
  height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #dce8d5, #edf4e7);
  color: #668871;
  gap: 10px;
}

.work-card:nth-child(3n+2) .work-cover {
  background: linear-gradient(145deg, #f0ebd9, #f7f4ea);
  color: #9c8a5a;
}

.work-card:nth-child(3n) .work-cover {
  background: linear-gradient(145deg, #d8e9e1, #edf5f0);
  color: #6a8c7f;
}

.work-cover > span {
  font-size: 32px;
}

.work-cover small {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.work-info {
  padding: 18px 20px;
}

.work-info h2 {
  font-size: 15px;
  margin: 10px 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 650;
  color: var(--ink);
}

.work-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 14px;
}

.work-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
}

.work-actions button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.work-actions button:hover {
  text-decoration: underline;
}

.work-actions span {
  font-size: 11px;
  color: var(--faint);
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #d5e0d0;
  border-radius: var(--radius-lg);
  color: #7b8f81;
  grid-column: 1 / -1;
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  color: #9cb5a2;
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 13px;
  margin: 0 0 24px;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: #7b8f81;
  font-size: 12px;
}

.pagination button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: var(--ink);
  font-weight: 550;
  transition: all 0.15s;
}

.pagination button:hover:not(:disabled) {
  border-color: #c7d8c4;
  background: #f7faf5;
}

/* ================= 会员与积分账户 ================= */
.account-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.account-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.account-card:first-child {
  background: #eef6ed;
  border-color: #d6e8d2;
}

.account-card > span {
  font-size: 12px;
  color: #6d8274;
  display: block;
}

.account-card strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.account-card p {
  font-size: 11px;
  color: #84968a;
  margin: 0;
  line-height: 1.6;
}

.billing-section {
  margin-top: 28px;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.section-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

/* 会员套餐卡片 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan-card:nth-child(2) {
  background: #f4faf3;
  border-color: #c8dec3;
  box-shadow: var(--shadow-card);
}

.plan-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.plan-price {
  font-size: 34px;
  font-weight: 750;
  margin: 16px 0;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: #7b8e81;
}

.plan-card ul {
  padding: 0;
  list-style: none;
  margin: 18px 0 24px;
  color: #5c7063;
  font-size: 12px;
  line-height: 2.3;
}

.plan-card li:before {
  content: '✓';
  margin-right: 8px;
  color: var(--green);
  font-weight: bold;
}

.plan-card .primary-button {
  width: 100%;
  margin-top: auto;
}

.payment-banner {
  border: 1px solid #e5dfcc;
  background: #fbf9ef;
  color: #8c7644;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 20px;
}

/* 充值卡片 */
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.recharge-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.recharge-card h3 {
  font-size: 14px;
  margin: 0;
  color: #5b7263;
  font-weight: 600;
}

.recharge-card strong {
  font-size: 26px;
  color: var(--green);
  display: block;
  margin: 12px 0;
  font-weight: 750;
}

.recharge-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.recharge-card button {
  width: 100%;
}

/* 记录表格 */
.table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.records-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}

.records-table th {
  text-align: left;
  background: #f7faf5;
  color: #6a7d71;
  font-weight: 600;
  padding: 14px 18px;
}

.records-table td {
  border-top: 1px solid var(--line-subtle);
  padding: 15px 18px;
  color: #3b4e43;
}

.records-table .text-button {
  font-size: 12px;
}

.empty-cell {
  text-align: center !important;
  padding: 48px !important;
  color: #92a396 !important;
}

.billing-panel {
  min-height: 180px;
}

.payment-link {
  display: block;
  background: #edf5eb;
  border: 1px solid #d2e4cb;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin: 20px 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}

.payment-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.error-text {
  color: var(--error);
  font-size: 12px;
  line-height: 1.8;
}

/* ================= 响应式断点 ================= */
@media (min-width: 1500px) {
  .creator-main {
    padding-top: 50px;
  }
  .creator-intro {
    margin-bottom: 40px;
  }
  .creator-card {
    padding: 42px 46px 36px;
  }
  .creator-card > textarea {
    min-height: 180px;
  }
  .creator-intro h1 {
    font-size: 40px;
  }
}

@media (max-width: 1100px) {
  .video-sidebar {
    width: 200px;
    padding: 24px 12px;
  }
  .video-layout {
    margin-left: 200px;
  }
  .video-brand {
    font-size: 18px;
    gap: 10px;
  }
  .video-topbar {
    padding: 0 28px;
  }
  .creator-main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .page-main {
    padding: 30px 28px;
  }
  .creator-card {
    padding: 28px 24px;
  }
  .settings-grid {
    gap: 12px;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recharge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .video-sidebar {
    position: static;
    width: auto;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: block;
  }
  .video-brand {
    padding: 0;
    font-size: 18px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .nav-caption, .sidebar-bottom {
    display: none;
  }
  .video-sidebar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .video-sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .video-sidebar nav a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    word-break: keep-all;
    font-size: 12px;
    padding: 8px 14px;
    gap: 6px;
    border-radius: 999px;
  }
  .video-sidebar nav a > span {
    font-size: 14px;
    width: auto;
    line-height: 1;
    display: inline-block;
  }
  .video-layout {
    margin-left: 0;
  }
  .video-topbar {
    height: auto;
    min-height: 56px;
    padding: 10px 18px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .video-topbar > span:first-child {
    flex-shrink: 0;
    line-height: 1.4;
  }
  .points-badge {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    word-break: keep-all;
  }
  .creator-main {
    padding: 24px 16px;
  }
  .creator-intro h1 {
    font-size: 28px;
  }
  .creator-card {
    padding: 22px 18px;
  }
  .creator-steps-hint {
    font-size: 13px;
    padding: 10px 14px;
    gap: 8px;
  }
  .creator-card input[type=text] {
    height: 48px;
    font-size: 14.5px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }
  .settings-grid label {
    font-size: 13px;
  }
  .settings-grid select {
    height: 44px;
    font-size: 13.5px;
  }
  .generation-footer {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .generate-button {
    width: 100%;
    justify-content: center;
  }
  .page-main {
    padding: 24px 16px;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .video-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    margin: auto;
  }
  .dialog-heading {
    padding: 16px 18px;
  }
  .dialog-heading h2 {
    font-size: 16px;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-actions {
    padding: 0 18px 18px;
    flex-direction: column-reverse;
  }
  .dialog-actions button {
    width: 100%;
  }
  .detail-grid {
    grid-template-columns: 80px minmax(0, 1fr);
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .video-topbar {
    padding: 8px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .video-topbar > span:first-child {
    font-size: 12px;
  }
  .points-badge {
    align-self: flex-start;
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .copy-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-actions > .muted {
    text-align: left;
  }
}

