/* =========================================================
   CommerceSnap — 极简高端设计系统（对标 minimax.io）
   白底 · 深墨字 · 细边框 · 大面积留白 · 品牌彩色渐变点缀
   ========================================================= */
:root {
  /* 底色层 */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ececf0;
  --border: #ebebef;
  --border-strong: #dcdce3;

  /* 文字 */
  --text: #181e25;
  --text-dim: #5a6472;
  --text-mute: #8e96a3;

  /* 品牌彩色（MiniMax 官网同源色） */
  --brand-purple: #7a27ff;
  --brand-violet: #b778f7;
  --brand-pink: #f52c6b;
  --brand-orange: #ff7038;
  --brand-blue: #16a9f3;
  --brand-cyan: #75d9f0;

  --grad: linear-gradient(90deg, #7a27ff 0%, #b778f7 32%, #f52c6b 66%, #ff7038 100%);
  --grad-soft: linear-gradient(90deg, rgba(122, 39, 255, 0.08), rgba(245, 44, 107, 0.08));
  --accent: #6f2cf5;
  --accent-2: #f52c6b;
  --ink: #181e25;

  --danger: #e5484d;
  --ok: #30a46c;
  --warn: #f5a524;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 16px 48px rgba(24, 30, 37, 0.12);
  --shadow-soft: 0 6px 22px rgba(24, 30, 37, 0.07);
  --glow: 0 0 0 1px rgba(111, 44, 245, 0.28), 0 10px 30px rgba(111, 44, 245, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d9d9e0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c2c2cc; }
::selection { background: rgba(111, 44, 245, 0.16); }

/* 背景极淡彩雾 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 420px at 6% -8%, rgba(122, 39, 255, 0.07), transparent 62%),
    radial-gradient(760px 420px at 98% -6%, rgba(245, 44, 107, 0.06), transparent 62%);
}

/* ===================== 顶部导航（工作台） ===================== */
.header {
  position: relative; z-index: 5;
  height: 62px; display: flex; align-items: center; gap: 18px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 14px; color: #fff;
  box-shadow: 0 4px 14px rgba(122, 39, 255, 0.22);
}
.brand .sub { color: var(--text-mute); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-dim); font-weight: 500;
  transition: 0.18s; font-size: 13.5px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.spacer { flex: 1; }
.quota-pill {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; font-size: 12.5px; color: var(--text-dim);
}
.quota-pill b { color: var(--text); font-weight: 600; }
.quota-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.quota-pill.pro .dot { background: var(--accent); }

/* 按钮：黑底为主，克制高级 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  transition: 0.18s; border: 1px solid transparent; white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: 0 8px 24px rgba(24, 30, 37, 0.18); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-soft { background: rgba(111, 44, 245, 0.06); color: var(--accent); border: 1px solid rgba(111, 44, 245, 0.16); }
.btn-soft:hover { background: rgba(111, 44, 245, 0.1); border-color: rgba(111, 44, 245, 0.3); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border-strong); display: grid; place-items: center; font-weight: 700;
  font-size: 13px; color: var(--text-dim); cursor: pointer; transition: 0.15s;
}
.avatar:hover { border-color: var(--text); color: var(--text); }

/* 语言切换按钮 */
.lang-toggle {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text-dim);
  transition: 0.15s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text); }

/* ===================== 三栏工作台 ===================== */
.workspace {
  position: relative; z-index: 1;
  height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 268px 1fr 380px;
  overflow: hidden;
}

/* 左栏：行业 */
.sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-head { padding: 22px 20px 12px; }
.sidebar-head h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-mute); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 18px 20px; }
.tab {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim);
  background: #fff; border: 1px solid var(--border); transition: 0.15s;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { color: #fff; background: var(--ink); border-color: transparent; font-weight: 600; }

.tpl-card {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid var(--border); transition: 0.2s;
  display: flex; flex-direction: column;
}
.tpl-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.tpl-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tpl-card .t-thumb {
  position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #b9bcc7;
  background: linear-gradient(145deg, #f8f5ff 0%, #f2f7ff 58%, #fff4f7 100%);
  border-bottom: 1px solid var(--border);
}
.tpl-card .t-thumb.v { background: linear-gradient(145deg, #f0f9ff 0%, #eef7f6 58%, #f5f6ff 100%); }
.tpl-card .t-thumb .t-badge {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--text-dim);
  border: 1px solid var(--border); backdrop-filter: blur(4px);
}
.tpl-card .t-thumb .t-badge.video { background: var(--ink); color: #fff; border-color: transparent; }
.tpl-card .t-thumb .t-ico { display: grid; place-items: center; opacity: 0.9; }
.tpl-card .t-thumb .t-ico svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tpl-card .t-thumb .t-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.tpl-card .t-name { font-weight: 600; font-size: 13.5px; padding: 12px 13px 2px; color: var(--text); letter-spacing: -0.1px; }
.tpl-card .t-meta { font-size: 11.5px; color: var(--text-mute); padding: 0 13px 13px; }

/* 左栏：提示词库（左栏下边常驻区块） */
.sidebar-lib {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-top: 1px solid var(--border); background: #fff;
}
.sl-head { padding: 16px 20px 10px; }
.sl-head h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-mute); font-weight: 600; }
.sl-tabs { display: flex; gap: 7px; padding: 0 18px 12px; }
.sl-tabs button {
  flex: 1; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); transition: 0.15s;
}
.sl-tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.sl-tabs button.active { color: #fff; background: var(--accent); border-color: transparent; }
.sl-filters { display: flex; gap: 8px; padding: 0 18px 12px; }
.sl-filters select {
  flex: 1; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--border); outline: none;
}
.sl-filters select:focus { border-color: var(--accent); }
.sl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.lib-row {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 11px; border-radius: 11px; background: var(--bg-soft);
  border: 1px solid var(--border); cursor: pointer; transition: 0.15s;
}
.lib-row:hover { border-color: var(--border-strong); background: #fff; }
.lib-row .txt { flex: 1; min-width: 0; }
.lib-row .txt .t { font-size: 13px; font-weight: 600; color: var(--text); }
.lib-row .txt .c { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-row .del {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; color: var(--text-mute); background: #fff; border: 1px solid var(--border); transition: 0.15s;
}
.lib-row .del:hover { color: #e5484d; border-color: #e5484d; }

/* 字段自定义输入框（下拉选「自定义」时显示） */
.field-custom { margin-top: 8px; }

/* 中栏：预览 / 画布 / 画廊 */
.stage {
  display: flex; flex-direction: column; overflow: hidden; background: var(--bg);
}
.stage-head { display: flex; align-items: center; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--border); }
.stage-head .title { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.stage-head .desc { font-size: 12.5px; color: var(--text-mute); margin-top: 1px; }
.mode-switch { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.mode-switch button { padding: 7px 17px; border-radius: 999px; font-size: 13px; color: var(--text-dim); font-weight: 600; transition: 0.16s; }
.mode-switch button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(24, 30, 37, 0.12); }
.stage-body { flex: 1; overflow-y: auto; padding: 26px; }

/* 中栏提示词输入区（宽长方形，位于选择模板上方） */
.stage-prompt { margin-bottom: 18px; }
.stage-prompt .sp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.stage-prompt .sp-head .label { font-size: 13px; font-weight: 700; color: var(--text); }
.stage-prompt textarea {
  width: 100%; min-height: 88px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-size: 13.5px; line-height: 1.55;
  font-family: inherit; transition: border-color 0.16s;
}
.stage-prompt textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.stage-prompt .hint { margin-top: 6px; }

/* 空状态（含中栏模板选择器） */
.empty {
  min-height: 100%; display: flex; flex-direction: column; align-items: center;
  color: var(--text-mute); gap: 30px; text-align: center; padding: 10px 4px 44px;
}
.empty .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; color: var(--accent);
  background: rgba(111, 44, 245, 0.06); border: 1px solid rgba(111, 44, 245, 0.12);
}
.empty .ico svg { width: 26px; height: 26px; }
.empty h2 { font-size: 19px; color: var(--text); font-weight: 700; letter-spacing: -0.3px; }
.empty p { font-size: 13.5px; max-width: 440px; color: var(--text-dim); line-height: 1.65; }
.empty-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 14px; }

/* 中栏模板选择器 */
.tpl-picker { width: 100%; max-width: 1000px; text-align: left; }
.tpl-picker-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.tpl-picker-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.tpl-picker-sub { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.g-item {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); aspect-ratio: 1 / 1; animation: pop 0.4s ease both;
}
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0; transition: 0.2s; display: flex; align-items: flex-end; padding: 12px; gap: 8px;
}
.g-item:hover .overlay { opacity: 1; }
.g-item .ov-btn {
  flex: 1; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 12px; font-weight: 600; text-align: center; backdrop-filter: blur(4px);
}
.g-item .ov-btn:hover { background: #fff; }
.g-item .badge-wm {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--text-dim); backdrop-filter: blur(3px);
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* 生成中：光影流光占位卡 */
.g-item.g-loading { display: flex; align-items: center; justify-content: center; }
.g-item .g-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, #eef0f6 8%, #f8f9fc 28%, #e9ecf4 48%, #f8f9fc 68%, #eef0f6 88%);
  background-size: 240% 100%; animation: shimmer 1.5s linear infinite;
}
.g-item .g-loading-tip {
  position: relative; z-index: 1; font-size: 12.5px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.85); padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); backdrop-filter: blur(4px); animation: pulseTip 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes pulseTip { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

/* 图片灯箱（点击放大） */
.img-lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000; cursor: zoom-out;
  background: rgba(16, 18, 27, 0.86); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 36px;
}
.img-lightbox.open { display: flex; }
.img-lightbox img {
  max-width: 94vw; max-height: 90vh; border-radius: 12px; object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); animation: pop 0.25s ease both;
}
.img-lightbox video.lb-media {
  max-width: 94vw; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); animation: pop 0.25s ease both; background: #000;
}

/* 模板缩略图预览按钮（hover 浮现） */
.tpl-card .t-thumb { cursor: zoom-in; position: relative; }
.tpl-card .t-thumb .t-zoom {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(15, 17, 26, 0.62); color: #fff; font-size: 13px;
  opacity: 0; transition: opacity 0.15s ease; pointer-events: none; backdrop-filter: blur(3px);
}
.tpl-card:hover .t-thumb .t-zoom { opacity: 1; }

/* Fabric 编辑画布 */
.editor-wrap { display: flex; flex-direction: column; gap: 16px; }
.canvas-host {
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  width: 100%; max-width: 700px; height: auto; display: block; margin: 0 auto; touch-action: none;
}
.editor-tools { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.editor-tools .seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.editor-tools .seg button { padding: 7px 14px; font-size: 12.5px; color: var(--text-dim); }
.editor-tools .seg button.active { background: #fff; color: var(--text); font-weight: 600; }
.editor-tools label { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.editor-tools input[type="range"] { width: 110px; accent-color: var(--accent); }
.editor-tools input[type="color"] { width: 30px; height: 30px; border: 1px solid var(--border); background: none; border-radius: 8px; }
.preset-chip {
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--text-dim); transition: 0.15s;
}
.preset-chip:hover { color: var(--text); border-color: var(--text); }

/* 中栏视频状态 */
.video-status {
  border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
.spinner {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface-3);
  border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: 100%; max-width: 320px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width 0.4s; }

/* 右栏：参数面板 */
.panel {
  background: var(--bg-soft); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-scroll { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.section { display: flex; flex-direction: column; gap: 11px; }
.section > .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-mute); font-weight: 600; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; transition: 0.15s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(24, 30, 37, 0.06);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field .hint { font-size: 11.5px; color: var(--text-mute); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* 提示词框 + 润色 */
.prompt-box { position: relative; }
.prompt-box .actions { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-size: 14px; color: var(--text-dim); transition: 0.15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(111, 44, 245, 0.07); }

/* 上传 */
.upload {
  border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 20px 16px;
  text-align: center; color: var(--text-dim); font-size: 12.5px; cursor: pointer; transition: 0.15s;
  background: #fff; line-height: 1.65;
}
.upload:hover { border-color: var(--accent); color: var(--text); background: rgba(111, 44, 245, 0.02); }
.upload.has-file { border-style: solid; border-color: var(--text); color: var(--text); }
.upload .thumb { max-height: 90px; border-radius: 9px; margin-top: 10px; }

/* 提示词库面板 */
.lib-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.lib-row .txt { flex: 1; min-width: 0; cursor: pointer; }
.lib-row .txt .t { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .txt .c { font-size: 11px; color: var(--text-mute); }
.lib-row .del { color: var(--text-mute); font-size: 14px; padding: 2px 6px; }
.lib-row .del:hover { color: var(--danger); }

.lib-pop {
  position: absolute; z-index: 30; right: 22px; top: 74px; width: 328px; max-height: 62vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: none; flex-direction: column; gap: 8px;
}
.lib-pop.show { display: flex; }
.lib-pop .lp-head { display: flex; gap: 6px; margin-bottom: 6px; background: var(--surface-2); padding: 3px; border-radius: 999px; }
.lib-pop .lp-head button { flex: 1; padding: 7px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.lib-pop .lp-head button.active { color: var(--text); background: #fff; box-shadow: 0 1px 3px rgba(24, 30, 37, 0.1); }

/* 分隔线 */
.divider { height: 1px; background: var(--border); margin: 2px 0; }

/* ===================== Modal ===================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(24, 30, 37, 0.38); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: 0 24px 72px rgba(24, 30, 37, 0.18); overflow: hidden; animation: rise 0.25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.modal-head .x { font-size: 19px; color: var(--text-mute); cursor: pointer; line-height: 1; }
.modal-head .x:hover { color: var(--text); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--bg-soft); }

.prompt-preview {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px; font-size: 13.5px; line-height: 1.75; color: var(--text); white-space: pre-wrap; max-height: 260px; overflow-y: auto;
}
.cost-tip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.cost-tip b { color: var(--text); }

.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 12.5px; color: var(--text-dim); }
.form-row input { background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--text); font-size: 14px; }
.form-row input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(24, 30, 37, 0.06); }

/* 邀请页内容 */
.invite-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.invite-link { display: flex; gap: 8px; margin-top: 10px; }
.invite-link input { flex: 1; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 14px; color: var(--text); font-size: 12.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 15px; text-align: center; }
.stat .n { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.stat .l { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

/* ===================== Toast ===================== */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 12px 20px; border-radius: 999px; background: var(--ink); border: 1px solid transparent;
  color: #fff; font-size: 13px; box-shadow: 0 12px 32px rgba(24, 30, 37, 0.24); animation: rise 0.25s ease;
}
.toast.ok { background: var(--ink); }
.toast.err { background: var(--danger); }

/* 折叠块 */
.fold { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.fold > .fold-h { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: #fff; font-weight: 600; font-size: 13.5px; }
.fold > .fold-h .arrow { transition: 0.2s; color: var(--text-mute); }
.fold.open > .fold-h .arrow { transform: rotate(90deg); }
.fold > .fold-b { display: none; padding: 15px; flex-direction: column; gap: 12px; }
.fold.open > .fold-b { display: flex; }

/* ===================== 响应式 ===================== */
@media (max-width: 1180px) {
  .workspace { grid-template-columns: 224px 1fr 328px; }
}
@media (max-width: 960px) {
  body { overflow: auto; }
  .workspace { grid-template-columns: 1fr; height: auto; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-lib { flex: none; }
  .sl-list { max-height: 320px; }
  .panel { border-left: none; border-top: 1px solid var(--border); }
  .stage-body { overflow: visible; }
  .nav { display: none; }
}

/* =========================================================
   Landing 落地页（MiniMax 极简风）
   ========================================================= */
body.landing { overflow: auto; height: auto; background: #fff; }

/* 顶部导航：顶部悬浮透明（压在蓝色 Hero 上），滚动后变白 */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 68px; display: flex; align-items: center; gap: 26px; padding: 0 40px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: 0.28s;
}
.lp-nav.scrolled {
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
/* 顶部透明态：白色文字 */
.lp-nav:not(.scrolled) .lp-brand,
.lp-nav:not(.scrolled) .lp-brand + .lp-menu a { color: #fff; }
.lp-nav:not(.scrolled) .lp-menu a { color: rgba(255, 255, 255, 0.85); }
.lp-nav:not(.scrolled) .lp-menu a:hover,
.lp-nav:not(.scrolled) .lp-menu a.active { color: #fff; background: rgba(255, 255, 255, 0.16); }
.lp-nav:not(.scrolled) .lang-toggle {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); color: #fff;
}
.lp-nav:not(.scrolled) .btn-ghost {
  background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); color: #fff;
}
.lp-nav:not(.scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.lp-brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 14px; color: #fff;
  box-shadow: 0 4px 14px rgba(122, 39, 255, 0.24);
}
.lp-menu { display: flex; gap: 2px; margin-left: 14px; }
.lp-menu a { padding: 8px 14px; border-radius: 999px; color: var(--text-dim); font-weight: 500; font-size: 13.5px; transition: 0.15s; }
.lp-menu a:hover { color: var(--text); background: var(--surface-2); }
.lp-menu a.active { color: var(--text); font-weight: 600; }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Hero —— MiniMax 风：满幅蓝色流体动画 + 白色大标题 */
.lp-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff;
  background:
    radial-gradient(130% 110% at 50% -8%, #4db5ff 0%, #1d8df0 42%, #0d6bd2 74%, #0a55ad 100%);
}
/* 流体动画层：低模糊高对比色块大幅漂移 + 旋转漩涡，肉眼可见的流动 */
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(38px); will-change: transform; }
.blob.b1 {
  width: 34vw; height: 34vw; left: -8vw; top: -12vw;
  background: radial-gradient(circle at 45% 45%, rgba(150, 240, 255, 0.98), rgba(150, 240, 255, 0) 70%);
  animation: blobDrift1 9s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 30vw; height: 30vw; right: -10vw; top: -6vw;
  background: radial-gradient(circle at 55% 45%, rgba(18, 72, 235, 0.95), rgba(18, 72, 235, 0) 70%);
  animation: blobDrift2 11s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 26vw; height: 26vw; left: 34vw; top: 4vw;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.85), rgba(168, 85, 247, 0) 70%);
  animation: blobDrift3 13s ease-in-out infinite alternate;
}
.blob.b4 {
  width: 30vw; height: 30vw; left: 10vw; bottom: -16vw;
  background: radial-gradient(circle at 50% 50%, rgba(3, 26, 110, 0.95), rgba(3, 26, 110, 0) 70%);
  animation: blobDrift2 15s ease-in-out infinite alternate-reverse;
}
.blob.b5 {
  width: 24vw; height: 24vw; right: 6vw; bottom: -10vw;
  background: radial-gradient(circle at 50% 50%, rgba(110, 235, 255, 0.9), rgba(110, 235, 255, 0) 70%);
  animation: blobDrift1 8s ease-in-out infinite alternate-reverse;
}
/* 旋转漩涡层：青-蓝-紫锥形渐变自转，形成流动漩涡感 */
.lp-hero-swirl {
  position: absolute; left: 50%; top: 44%; width: 120vw; height: 120vw;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg,
    rgba(80, 210, 255, 0.55), rgba(10, 70, 200, 0.06) 14%,
    rgba(150, 240, 255, 0.5) 30%, rgba(6, 40, 140, 0.08) 46%,
    rgba(168, 85, 247, 0.45) 62%, rgba(80, 210, 255, 0.1) 78%,
    rgba(150, 240, 255, 0.45) 90%, rgba(80, 210, 255, 0.55));
  filter: blur(34px);
  animation: swirlSpin 22s linear infinite;
  will-change: transform;
}
@keyframes swirlSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blobDrift1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(14vw, 6vh) scale(1.35) rotate(20deg); }
  100% { transform: translate(4vw, 14vh) scale(0.9) rotate(40deg); }
}
@keyframes blobDrift2 {
  0%   { transform: translate(0, 0) scale(1.15); }
  50%  { transform: translate(-16vw, 10vh) scale(0.8); }
  100% { transform: translate(-5vw, -8vh) scale(1.3); }
}
@keyframes blobDrift3 {
  0%   { transform: translate(0, 0) scale(0.85) rotate(0deg); }
  50%  { transform: translate(-12vw, -8vh) scale(1.4) rotate(-24deg); }
  100% { transform: translate(8vw, 10vh) scale(0.95) rotate(-48deg); }
}
/* 中央柔光，让标题区域更亮 */
.lp-hero-bg::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 62vw; height: 46vh;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 72%);
  filter: blur(30px);
}
.lp-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 920px; padding: 132px 24px 96px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.95);
  font-size: 12.5px; font-weight: 500; margin-bottom: 30px; backdrop-filter: blur(10px);
}
.lp-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.lp-title {
  font-size: clamp(40px, 6.6vw, 78px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(10, 60, 140, 0.35);
}
.lp-sub {
  font-size: clamp(15px, 1.5vw, 18px); color: rgba(255, 255, 255, 0.92);
  max-width: 640px; margin: 0 auto 42px; line-height: 1.7;
  text-shadow: 0 1px 18px rgba(10, 60, 140, 0.3);
}

/* Hero 搜索框 —— 白色玻璃 */
.lp-search {
  display: flex; align-items: center; gap: 10px; max-width: 700px; margin: 0 auto;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 18px 50px rgba(8, 48, 120, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: 0.2s;
}
.lp-search:focus-within {
  background: rgba(255, 255, 255, 0.28); border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 18px 50px rgba(8, 48, 120, 0.32);
}
.lp-search-ico { color: rgba(255, 255, 255, 0.95); font-size: 15px; }
.lp-search input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 15px; padding: 13px 0; min-width: 0; }
.lp-search input::placeholder { color: rgba(255, 255, 255, 0.75); }
.lp-gen { padding: 14px 28px; border-radius: 999px; font-size: 15px; }

/* 热门标签 —— 玻璃胶囊 */
.lp-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.lp-try { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-right: 2px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  transition: 0.15s; backdrop-filter: blur(8px);
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.lp-trust { margin-top: 32px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }

.lp-scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 14px; }
.lp-scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: lpScroll 1.8s infinite; }
@keyframes lpScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .blob, .lp-hero-swirl { animation: none; }
}

/* 通用 section：底部区块统一纯白底（与特性区一致），不做染色 */

/* 通用 section */
.lp-section { max-width: 1200px; margin: 0 auto; padding: 118px 32px; }
.lp-sec-head { text-align: center; margin-bottom: 56px; }
.lp-sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.lp-sec-head p { margin-top: 14px; color: var(--text-dim); font-size: 15px; }

/* 特性 */
.lp-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-feat-card {
  padding: 30px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--border);
  transition: 0.22s;
}
.lp-feat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.lp-feat-ico {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
}
.lp-feat-ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lp-feat-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.2px; }
.lp-feat-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.68; }

/* 样品展示区 */
.lp-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.lp-filter {
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-dim);
  background: #fff; border: 1px solid var(--border); transition: 0.15s;
}
.lp-filter:hover { color: var(--text); border-color: var(--border-strong); }
.lp-filter.active { color: #fff; background: var(--ink); border-color: transparent; }
.lp-works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-work {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
  background: var(--surface-2);
}
.lp-work.in { opacity: 1; transform: none; }
.lp-work:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(24, 30, 37, 0.16); border-color: transparent; }
.lp-work-bg { position: absolute; inset: 0; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.lp-work:hover .lp-work-bg { transform: scale(1.05); }
img.lp-work-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-work-badge {
  position: absolute; top: 11px; left: 11px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--text);
  backdrop-filter: blur(6px);
}
.lp-work-ov {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%); opacity: 0; transition: 0.25s;
}
.lp-work:hover .lp-work-ov { opacity: 1; }
.lp-work-ov span { font-size: 13.5px; font-weight: 600; color: #fff; }

/* 样品渐变占位（图片加载失败时兜底） */
.g1 { background: linear-gradient(135deg, #f3edff, #dfe6ff 60%, #ffe9f2); }
.g2 { background: linear-gradient(135deg, #fdeef5, #f0e4ff 55%, #ffeef6); }
.g3 { background: linear-gradient(135deg, #fff3ec, #ffe6d6 55%, #fff0f5); }
.g4 { background: linear-gradient(135deg, #eefaff, #e2f4f5 55%, #eef2ff); }
.g5 { background: linear-gradient(135deg, #f6f6fb, #e9ecf8 55%, #f5f2ff); }
.g6 { background: linear-gradient(135deg, #f0faf2, #e6f5ec 55%, #f3fbf6); }
.g7 { background: linear-gradient(135deg, #fdf0f4, #f8e7ee 55%, #fdf2f8); }
.g8 { background: linear-gradient(135deg, #eff7fd, #e4eefb 55%, #eff6ff); }
.g9 { background: linear-gradient(135deg, #fbf9ee, #f6f1dc 55%, #fdfbf0); }
.g10 { background: linear-gradient(135deg, #eefaf9, #e3f5f4 55%, #f0fbfa); }
.g11 { background: linear-gradient(135deg, #f9f1fd, #f1e8fb 55%, #fbf3fd); }
.g12 { background: linear-gradient(135deg, #fdf1ef, #fbe6e3 55%, #fdf4f2); }

/* 工作流 */
.lp-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-flow-step { text-align: center; padding: 34px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.lp-flow-num {
  width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; font-weight: 700; background: var(--ink); color: #fff;
}
.lp-flow-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.2px; }
.lp-flow-step p { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }

/* CTA：黑底大字块 */
.lp-cta { max-width: 1200px; margin: 0 auto; padding: 20px 32px 118px; }
.lp-cta-card {
  position: relative; text-align: center; padding: 84px 32px; border-radius: 30px; overflow: hidden;
  background: #101418; border: 1px solid #101418;
}
.lp-cta-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(52% 78% at 22% 0%, rgba(122, 39, 255, 0.5), transparent 68%),
    radial-gradient(46% 70% at 82% 100%, rgba(245, 44, 107, 0.38), transparent 70%),
    radial-gradient(40% 60% at 55% 50%, rgba(255, 112, 56, 0.14), transparent 72%);
  filter: blur(10px);
}
.lp-cta-card > * { position: relative; z-index: 1; }
.lp-cta-card h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 16px; }
.lp-cta-card p { color: rgba(255, 255, 255, 0.66); margin-bottom: 30px; font-size: 15px; }
.lp-cta-card .btn-primary { background: #fff; color: var(--ink); }
.lp-cta-card .btn-primary:hover { background: #f2f2f4; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.16); }

/* FAQ */
.lp-faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-faq-item { padding: 28px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.lp-faq-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); letter-spacing: -0.2px; }
.lp-faq-item p { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.lp-foot-brand p { color: var(--text-mute); font-size: 13px; margin-top: 12px; }
.lp-foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.lp-foot-links a { color: var(--text-dim); font-size: 13.5px; transition: 0.15s; }
.lp-foot-links a:hover { color: var(--text); }
.lp-foot-rights { width: 100%; color: var(--text-mute); font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 20px; }

/* 响应式 */
@media (max-width: 960px) {
  .lp-menu { display: none; }
  .lp-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-works-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-flow-grid, .lp-faq-grid { grid-template-columns: 1fr; }
  .lp-section { padding: 76px 20px; }
  .lp-search { flex-wrap: wrap; border-radius: 24px; padding: 12px; }
  .lp-search input { width: 100%; }
  .lp-gen { width: 100%; }
  .lp-cta { padding: 10px 20px 76px; }
  .lp-cta-card { padding: 56px 22px; }
  .lp-footer { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .lp-feat-grid, .lp-works-grid { grid-template-columns: 1fr; }
  .lp-nav { padding: 0 18px; gap: 12px; }
}

/* ---------- 配音 / 剧情脚本（工作台右栏） ---------- */
.switch-row {
  display: flex; align-items: center; gap: 9px; font-size: 13px;
  color: var(--text-dim); margin: 4px 0 12px; cursor: pointer; user-select: none;
}
.switch-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer;
}
.script-shots { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.shot { display: flex; gap: 8px; align-items: flex-start; }
.shot-no {
  flex: 0 0 22px; height: 22px; margin-top: 7px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-mute);
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.shot-input {
  flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 9px; color: var(--text); font-size: 12px; line-height: 1.5;
  padding: 8px 10px; resize: vertical; font-family: inherit;
}
.shot-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(24, 30, 37, 0.06); }

/* ---------- Cookie 同意弹窗 ---------- */
#cookieConsent {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 200;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 1; transition: opacity 0.35s;
}
#cookieConsent.out { opacity: 0; }
.ck-box {
  pointer-events: auto; max-width: 640px; width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 30, 37, 0.18); padding: 22px 26px;
}
.ck-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ck-body { font-size: 13px; line-height: 1.65; color: var(--text-dim); margin-bottom: 16px; }
.ck-actions { display: flex; gap: 10px; }
.ck-btn { padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-strong); background: #fff; color: var(--text); transition: 0.15s; }
.ck-btn:hover { border-color: var(--text); }
.ck-btn.primary { background: var(--ink); color: #fff; border-color: transparent; }
.ck-btn.primary:hover { opacity: 0.88; }
.ck-policy { margin-top: 12px; font-size: 12px; color: var(--text-mute); text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {
  #cookieConsent { left: 12px; right: 12px; bottom: 12px; }
  .ck-box { padding: 18px; }
}

/* 找回密码链接行 */
.forgot-row { text-align: right; margin-top: -4px; }
.forgot-row a { font-size: 12.5px; color: var(--accent); cursor: pointer; text-decoration: none; }
.forgot-row a:hover { text-decoration: underline; }

/* ---------- 作品视频灯箱 ---------- */
.lp-lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(8, 12, 20, 0.82); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.lp-lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: min(480px, 92vw); width: 100%; }
.lb-inner video { width: 100%; max-height: 86vh; border-radius: 18px; display: block; box-shadow: 0 30px 90px rgba(0,0,0,0.5); background: #000; }
.lb-x {
  position: absolute; top: -44px; right: 0; color: #fff; font-size: 34px;
  cursor: pointer; line-height: 1; opacity: 0.85;
}
.lb-x:hover { opacity: 1; }
