:root {
  --bg: #f8fafc;
  --ink: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --card: #ffffff;
  --line: #e2e8f0;
  --ok: #059669;
  --warn: #f59e0b;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  background: #0f172a;
  color: #e2e8f0;
  border-bottom: 1px solid #1e293b;
  z-index: 10;
}
.top .brand { color: #fff; }
.top a { color: #cbd5e1; }
.top .btn.ghost { color: #e2e8f0; border-color: #334155; }
.top .btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.brand { font-weight: 800; letter-spacing: 0.04em; font-size: 1.15rem; }
.user-bar { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.9rem; }

.wrap { max-width: 720px; margin: 0 auto; padding: 12px 16px 56px; }
.hero { padding: 10px 4px 18px; }
.hero h1 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 12px; font-size: 1rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-between h2 { margin: 0; }

.status-card { padding: 14px 18px; }
.sys-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sys-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.sys-dot.ok { background: #0f6b5c; }
.sys-dot.warn { background: #d97706; }
.sys-dot.err { background: #b42318; }
.sys-meta { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

.avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avatar {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  font: inherit;
  color: inherit;
  width: 100%;
}
.avatar:hover { transform: translateY(-1px); border-color: var(--accent); }
.avatar.active { border-color: var(--accent); background: #e8f7f3; }
.avatar .emoji {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f6b5c;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.avatar .label { font-size: 0.9rem; font-weight: 600; display: block; }

.field-label {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.chip:hover, .chip.active { border-color: var(--accent); background: #e8f7f3; }
.tags { margin-top: 10px; margin-bottom: 0; }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  resize: vertical;
  background: #fff;
  min-height: 120px;
}
.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-grid.four { grid-template-columns: repeat(4, 1fr); }
.choice {
  border: 2px solid var(--line);
  background: #fffaf1;
  border-radius: 14px;
  padding: 14px 10px;
  font: inherit;
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
}
.choice small { color: var(--muted); font-size: 0.78rem; }
.choice.active {
  border-color: var(--accent);
  background: #e8f7f3;
  font-weight: 700;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.soft { background: #eff6ff; border-color: #bfdbfe; color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; margin: 8px 0 18px; padding: 15px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.check-list { display: grid; gap: 10px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.4;
}
.check-row input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.check-row strong { display: block; }
.check-row small { color: var(--muted); font-size: 0.8rem; }
.check-row:has(input:checked) { border-color: var(--accent); background: #e8f7f3; }
.input-soft {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: #fff;
}
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card {
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.tpl-card strong { display: block; margin-bottom: 4px; }
.tpl-card p { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.tpl-card.active { border-color: var(--accent); background: #e8f7f3; }
.tpl-card .plat {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 520px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .choice-grid.four { grid-template-columns: repeat(2, 1fr); }
}

.land-hero { padding: 28px 4px 8px; }
.land-hero h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin: 0 0 18px; }
.cta-row { display: grid; gap: 10px; margin: 18px 0 8px; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--ink); line-height: 1.7; }
.steps li { margin-bottom: 8px; }
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 14px 0;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fffaf1;
}
.work-card video { margin-bottom: 8px; max-height: 360px; object-fit: contain; background: #111; }
.work-ph {
  aspect-ratio: 9/16;
  max-height: 280px;
  display: grid;
  place-items: center;
  background: #1c1914;
  color: #ddd4c5;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.status { margin-bottom: 10px; color: var(--muted); }
.progress {
  height: 8px;
  background: #ebe3d6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
video { width: 100%; border-radius: 12px; background: #000; margin-bottom: 12px; }
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.result-actions .btn { width: 100%; }

.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 600; }
input[type="file"] {
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tpl-card {
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.tpl-card strong { display: block; margin-bottom: 4px; }
.tpl-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpl-card.active, .tpl-card:hover { border-color: var(--accent); background: #e8f7f3; }
.hf-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 640px) {
  .tpl-grid { grid-template-columns: 1fr; }
}

dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow);
}
.login-form { padding: 20px; width: min(420px, 92vw); }
.login-form input.fx-input,
.login-form > input {
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
}
.login-form menu { display: flex; justify-content: flex-end; gap: 8px; padding: 0; margin: 12px 0 0; }
.login-agree-box {
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a0a;
  border: 1px solid var(--line, #e2e8f0);
}
.login-agree-title {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}
.login-agree-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  cursor: pointer;
}
.login-agree-item input {
  margin: 3px 0 0;
  width: auto;
  flex: 0 0 auto;
}
.login-agree-item a { color: #6366f1; text-decoration: none; }
.login-agree-item a:hover { text-decoration: underline; }
.login-agree-tip {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}
#btnDoLogin:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tip { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.ok { color: var(--ok); }

@media (max-width: 520px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .choice-grid.four { grid-template-columns: 1fr 1fr; }
  .result-actions { grid-template-columns: 1fr; }
}

/* ---- AI带货视频工厂工作台 ---- */
.factory-page .factory-top {
  flex-wrap: wrap;
  gap: 12px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: 0.75rem; }
.factory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.9rem;
}
.factory-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.factory-nav a.active, .factory-nav a:hover { color: var(--accent); }

.factory-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.factory-main { min-width: 0; }
.factory-side { min-width: 0; }
.sticky-side { position: sticky; top: 76px; }
.factory-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
}
.factory-hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
}
.factory-hero-copy p { margin: 0; color: var(--muted); }
.quota-card {
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  text-align: right;
}
.quota-label { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.quota-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin: 4px 0;
}
.quota-meta { color: var(--muted); font-size: 0.78rem; margin-bottom: 10px; }
.quota-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.quota-actions .btn { padding: 7px 12px; font-size: 0.82rem; }

.login-banner {
  background: #fff7e8;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 14px;
}
.login-banner code { color: var(--accent); font-weight: 700; }

.step-card .step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.step-no {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f7f3;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.step-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.step-desc { margin: 0; color: var(--muted); font-size: 0.85rem; }
.field-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 8px;
}
.upload-tile {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.upload-tile.soft { border-style: solid; background: #fffaf1; }
.upload-tile strong { display: block; }
.upload-tile small { color: var(--muted); font-size: 0.8rem; }
.upload-btn {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f7f3;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.img-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #eee;
}
.img-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tip.center { text-align: center; }
.status-line { min-height: 1.2em; margin: 8px 0 0; font-size: 0.9rem; }
.status-line.ok { color: var(--ok); }
.status-line.error { color: var(--danger); }

.scheme-list { display: grid; gap: 12px; }
.scheme-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.scheme-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 8px;
}
.scheme-check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.scheme-check strong { display: block; }
.scheme-check .dur {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}
.scheme-body p {
  margin: 6px 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.scheme-body b { color: var(--ink); }
.scheme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.scheme-actions .btn { padding: 7px 12px; font-size: 0.82rem; }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.mode-card {
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.mode-card strong { display: block; margin-bottom: 4px; }
.mode-card span, .mode-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.mode-card small { margin-top: 6px; color: var(--accent); font-weight: 600; }
.mode-card.active { border-color: var(--accent); background: #e8f7f3; }
.mode-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f5f2ea;
}
.finish-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 4px 0 12px;
  font-size: 0.9rem;
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.check-inline input { accent-color: var(--accent); width: 16px; height: 16px; }

.flow-steps {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.9rem;
}
.flow-steps li { margin-bottom: 8px; }
.flow-steps b { color: var(--accent); }
.side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.side-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.works-mini { display: grid; gap: 12px; }
.work-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.work-mini:last-child { border-bottom: none; }
.work-mini-thumb {
  width: 72px;
  aspect-ratio: 9/16;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1914;
}
.work-mini-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.work-mini-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #c8ebe3;
  font-size: 1.2rem;
}
.work-status {
  display: inline-block;
  margin: 4px 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ebe3d6;
}
.work-status.st-queued { background: #fff7e8; color: #9a6700; }
.work-status.st-running { background: #e8f7f3; color: var(--accent); }
.work-status.st-completed { background: #e8f7f3; color: var(--ok); }
.work-status.st-failed { background: #fdeceb; color: var(--danger); }

.preview-form {
  padding: 20px;
  width: min(420px, 92vw);
}
.preview-form .field-label { margin-top: 10px; }
.preview-form menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}
.preview-phone {
  position: relative;
  width: 160px;
  aspect-ratio: 9/16;
  margin: 12px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1914;
  border: 1px solid var(--line);
}
.preview-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #ddd4c5;
}
.preview-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: 0.78rem;
}
.preview-overlay strong { display: block; margin-bottom: 4px; }
.preview-overlay p { margin: 0 0 4px; opacity: 0.92; }
.preview-list {
  margin: 0;
  padding-left: 1.1rem;
  max-height: 120px;
  overflow: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .factory-shell { grid-template-columns: 1fr; }
  .factory-side { order: 3; }
  .sticky-side { position: static; }
  .factory-hero { flex-direction: column; }
  .quota-card { text-align: left; }
  .quota-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .factory-nav { width: 100%; order: 3; }
  .field-grid.two,
  .upload-grid,
  .mode-grid { grid-template-columns: 1fr; }
  .factory-top .user-bar { margin-left: auto; }
}

/* ========== Factory / Landing 统一 SaaS 靛蓝 ========== */
body.factory-v2,
body.land-v2 {
  --fx-bg: #f8fafc;
  --fx-panel: #ffffff;
  --fx-ink: #1e293b;
  --fx-body: #475569;
  --fx-muted: #94a3b8;
  --fx-line: #e2e8f0;
  --fx-accent: #2563eb;
  --fx-accent-2: #1d4ed8;
  --fx-ok: #059669;
  --fx-warn: #f59e0b;
  --fx-danger: #dc2626;
  --fx-radius: 12px;
  --fx-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  color: var(--fx-ink);
  background: var(--fx-bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.factory-v2 {
  color: var(--fx-ink);
  background: var(--fx-bg);
}
body.factory-v2 .top,
body.factory-v2 .factory-top { display: none; }

.factory-v2 .fx-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: #0f172a;
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.factory-v2 .fx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.factory-v2 .fx-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.factory-v2 .fx-brand strong { display: block; font-size: 0.95rem; }
.factory-v2 .fx-brand small { color: #94a3b8; font-size: 0.72rem; }
.factory-v2 .fx-nav {
  display: flex;
  gap: 4px 14px;
  flex: 1;
  font-size: 0.88rem;
}
.factory-v2 .fx-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
}
.factory-v2 .fx-nav a.active,
.factory-v2 .fx-nav a:hover { color: #fff; }
.factory-v2 .fx-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.factory-v2 .fx-credits {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.factory-v2 .fx-help {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #334155;
  background: transparent;
  color: #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}
.factory-v2 .fx-help:hover { border-color: var(--fx-accent); color: #fff; }

.factory-v2 .fx-banner {
  margin: 0;
  padding: 8px 20px;
  background: #eef2ff;
  color: var(--fx-body);
  font-size: 0.85rem;
  border-bottom: 1px solid #c7d2fe;
}
.factory-v2 .fx-banner code { color: var(--fx-accent); font-weight: 700; }

.factory-v2 .fx-bench {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 56px);
  max-width: 1440px;
  margin: 0 auto;
}

.factory-v2 .fx-panel {
  background: var(--fx-panel);
  border-right: 1px solid var(--fx-line);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
}
.factory-v2 .fx-panel-scroll {
  padding: 20px 18px 12px;
  overflow: auto;
  flex: 1;
}
.factory-v2 .fx-panel-head h1 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.factory-v2 .fx-panel-head p {
  margin: 0 0 16px;
  color: var(--fx-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.factory-v2 .fx-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fx-body);
}
.factory-v2 .fx-input {
  width: 100%;
  border: 1px solid var(--fx-line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--fx-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.factory-v2 .fx-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.factory-v2 .fx-area { min-height: 84px; resize: vertical; }
.factory-v2 .fx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.factory-v2 .fx-tags button {
  border: 1px solid var(--fx-line);
  background: #fff;
  color: var(--fx-body);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.factory-v2 .fx-tags button.on,
.factory-v2 .fx-tags button:hover {
  border-color: var(--fx-accent);
  color: var(--fx-accent);
  background: #eef2ff;
}
.factory-v2 .fx-upload {
  border: 1px dashed #cbd5e1;
  border-radius: var(--fx-radius);
  padding: 12px;
  background: #f8fafc;
  transition: border-color .15s, background .15s;
}
.factory-v2 .fx-upload.drag {
  border-color: var(--fx-accent);
  background: #eff6ff;
}
.factory-v2 .fx-upload-btn {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 4px;
}
.factory-v2 .fx-upload-btn span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--fx-accent);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.factory-v2 .fx-upload-btn strong { display: block; font-size: 0.9rem; }
.factory-v2 .fx-upload-btn small { color: var(--fx-muted); font-size: 0.75rem; }
.factory-v2 .fx-img-preview img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.factory-v2 .fx-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.factory-v2 .fx-product-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.factory-v2 .fx-product-thumb.main {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.factory-v2 .fx-product-thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.factory-v2 .fx-thumb-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.factory-v2 .fx-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.factory-v2 .fx-img-actions { display: flex; gap: 8px; }
.factory-v2 .fx-hint { margin: 8px 0 0; font-size: 0.8rem; color: var(--fx-muted); }
.factory-v2 .fx-hint.ok { color: var(--fx-ok); }
.factory-v2 .fx-hint.error { color: var(--fx-danger); }
.factory-v2 .fx-more {
  margin-top: 14px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  padding: 8px 12px 12px;
  background: #fff;
}
.factory-v2 .fx-more summary {
  cursor: pointer;
  color: var(--fx-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 0;
}
.factory-v2 .fx-mode { margin-top: 14px; }
.factory-v2 .fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.factory-v2 .fx-chips button {
  border: 1px solid var(--fx-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--fx-body);
}
.factory-v2 .fx-chips button.active {
  border-color: var(--fx-accent);
  background: #eef2ff;
  color: var(--fx-accent-2);
  font-weight: 700;
}
.factory-v2 .fx-recipes {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.factory-v2 .fx-recipe-wrap {
  position: relative;
  border-radius: 12px;
}
.factory-v2 .fx-recipe-wrap.active .fx-recipe {
  border-color: var(--fx-accent);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.factory-v2 .fx-recipe {
  width: 100%;
  text-align: left;
  border: 1px solid var(--fx-line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px 28px;
  font: inherit;
  cursor: pointer;
  color: inherit;
  display: grid;
  gap: 2px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.factory-v2 .fx-recipe:hover:not(:disabled) {
  border-color: var(--fx-accent);
  transform: translateY(-1px);
}
.factory-v2 .fx-recipe.active {
  border-color: var(--fx-accent);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.factory-v2 .fx-recipe:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}
.factory-v2 .fx-recipe-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--fx-accent-2);
  background: #dbeafe;
  border-radius: 999px;
  padding: 2px 8px;
}
.factory-v2 .fx-rec-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 2px 7px;
}
.factory-v2 .fx-sample-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fx-accent-2);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.factory-v2 .fx-sample-btn:hover { background: #fff; }
.factory-v2 .fx-recipe strong { font-size: 0.9rem; }
.factory-v2 .fx-recipe span { color: var(--fx-body); font-size: 0.8rem; }
.factory-v2 .fx-recipe small { color: var(--fx-muted); font-size: 0.72rem; }
.factory-v2 #btnNextUpload { margin-top: 8px; }
.factory-v2 .fx-drama-studio {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 70%);
}
.factory-v2 .fx-drama-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.factory-v2 .fx-drama-head strong { font-size: 0.95rem; }
.factory-v2 .fx-drama-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.factory-v2 .fx-drama-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
}
.factory-v2 .fx-drama-reply small { color: #64748b; }
.factory-v2 .fx-drama-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.factory-v2 .fx-drama-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #475569;
}
.factory-v2 .fx-drama-steps li b { color: #3730a3; }
.factory-v2 .fx-drama-steps li span { grid-column: 1 / -1; color: #64748b; }
.factory-v2 .fx-inspire-chips { margin-bottom: 8px; }
.factory-v2 .fx-inspire-chips button.active {
  background: #312e81;
  color: #fff;
  border-color: #312e81;
}
.factory-v2 .fx-drama-checks {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  font-size: 0.76rem;
  color: #92400e;
  display: grid;
  gap: 4px;
}
.factory-v2 .fx-drama-checks .head {
  font-weight: 700;
  color: #b45309;
  margin-bottom: 2px;
}
.factory-v2 .fx-shot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}
.factory-v2 .fx-shot-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  padding: 8px 9px;
  min-height: 88px;
}
.factory-v2 .fx-shot-card header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  color: #64748b;
}
.factory-v2 .fx-shot-card header em { font-style: normal; font-weight: 700; color: #4338ca; }
.factory-v2 .fx-shot-card strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.factory-v2 .fx-shot-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}
@media (max-width: 900px) {
  .factory-v2 .fx-shot-rail { grid-template-columns: 1fr 1fr; }
}
.factory-v2 .fx-upload-block { margin-top: 14px; }
.factory-v2 .fx-voice-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.factory-v2 .fx-char-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.factory-v2 .fx-char-thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.factory-v2 .fx-voice-preview {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.factory-v2 .fx-voice-preview audio {
  width: 100%;
  display: block;
  margin-bottom: 8px;
}
.factory-v2 .fx-fee-soft {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}
.factory-v2 .fx-sample-dialog { width: min(420px, 92vw); }
.factory-v2 .fx-sample-media {
  margin: 8px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  min-height: 160px;
}
.factory-v2 .fx-sample-media video { width: 100%; display: block; max-height: 280px; }
.factory-v2 .fx-sample-ph {
  color: #e2e8f0;
  padding: 28px 18px;
  text-align: center;
}
.factory-v2 .fx-sample-ph p { margin: 8px 0; color: #94a3b8; font-size: 0.86rem; }
.factory-v2 .fx-sample-ph small { color: #64748b; }
.factory-v2 .fx-sample-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.factory-v2 .fx-sample-meta li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.factory-v2 .fx-sample-meta b { color: #64748b; font-weight: 600; }
.factory-v2 .fx-sample-meta span { color: var(--fx-body); }
.factory-v2 .fx-scheme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.factory-v2 .fx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.factory-v2 .fx-dur-range {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  background: #fff;
}
.factory-v2 .fx-dur-range input[type="range"] {
  width: 100%;
  accent-color: var(--fx-accent);
  margin: 0;
}
.factory-v2 .fx-dur-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  flex-wrap: wrap;
}
.factory-v2 .fx-dur-meta strong {
  font-size: 1.05rem;
  color: var(--fx-ink, #111);
}
.factory-v2 .fx-dur-meta span {
  flex: 1;
  min-width: 8em;
  font-size: 0.75rem;
  color: var(--fx-muted);
}
.factory-v2 .fx-dur-meta input[type="number"] {
  width: 4.2em;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  text-align: center;
}
.factory-v2 .fx-seg.fx-dur {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 4px;
}
.factory-v2 .fx-seg.fx-dur button small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fx-muted);
  margin-top: 2px;
}
.factory-v2 .fx-seg.fx-dur button.active small {
  color: inherit;
  opacity: 0.85;
}
.factory-v2 .fx-seg.fx-dur button.rec:not(.active) {
  border-color: #c7d2fe;
}
.factory-v2 .fx-link-fill {
  margin: 4px 0 12px;
}
.factory-v2 .fx-link-row {
  display: flex;
  gap: 8px;
}
.factory-v2 .fx-link-row .fx-input { flex: 1; min-width: 0; }
.factory-v2 .fx-link-row .fx-btn { flex-shrink: 0; }
.factory-v2 .fx-beats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}
.factory-v2 .fx-beats li {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  padding: 6px 6px 7px;
  min-width: 0;
  position: relative;
}
.factory-v2 .fx-beats i {
  position: absolute;
  top: 4px;
  right: 6px;
  font-style: normal;
  font-size: 0.64rem;
  color: var(--fx-muted);
}
.factory-v2 .fx-advice {
  background: #eef2ff;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.45;
}
.factory-v2 .fx-advice.warn {
  background: #fff7ed;
}
.factory-v2 .fx-advice.ok {
  background: #ecfdf5;
}
.factory-v2 .fx-beats b {
  display: block;
  font-size: 0.68rem;
  color: var(--fx-accent-2);
}
.factory-v2 .fx-beats span {
  display: block;
  font-size: 0.72rem;
  color: var(--fx-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .factory-v2 .fx-beats { grid-template-columns: 1fr 1fr; }
  .factory-v2 .fx-link-row { flex-direction: column; }
}
.factory-v2 .fx-seg button {
  border: 1px solid var(--fx-line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--fx-body);
}
.factory-v2 .fx-seg button.active {
  border-color: var(--fx-accent);
  background: #eef2ff;
  color: var(--fx-accent-2);
}
.factory-v2 .fx-seg button:disabled { opacity: 0.55; cursor: not-allowed; }
.factory-v2 .fx-soon {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fx-muted);
}
.factory-v2 .fx-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--fx-body);
}
.factory-v2 .fx-checks input { accent-color: var(--fx-accent); }
.factory-v2 .fx-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--fx-body);
}
.factory-v2 .fx-status.ok { color: var(--fx-ok); }
.factory-v2 .fx-status.error { color: var(--fx-danger); }

.factory-v2 .fx-panel-foot {
  border-top: 1px solid var(--fx-line);
  padding: 12px 18px 16px;
  background: #fff;
}
.factory-v2 .fx-foot-tip {
  margin: 8px 0 0;
  text-align: center;
  color: var(--fx-muted);
  font-size: 0.75rem;
}

.factory-v2 .fx-btn {
  appearance: none;
  border: 1px solid var(--fx-line);
  background: #fff;
  color: var(--fx-ink);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.factory-v2 .fx-btn.block { width: 100%; }
.factory-v2 .fx-btn.primary,
.land-v2 .fx-btn.primary {
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.factory-v2 .fx-btn.primary:hover,
.land-v2 .fx-btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}
.factory-v2 .fx-btn.gold,
.land-v2 .fx-btn.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1917;
  border-color: transparent;
  font-weight: 800;
  padding: 8px 14px;
  font-size: 0.82rem;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.factory-v2 .fx-btn.gold:hover,
.land-v2 .fx-btn.gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.factory-v2 .fx-btn.lg,
.land-v2 .fx-btn.lg { padding: 14px 22px; font-size: 1rem; }
.factory-v2 .fx-btn.secondary {
  margin-top: 8px;
  background: #0f172a;
  color: #fff;
  border-color: transparent;
  padding: 12px 16px;
}
.factory-v2 .fx-btn.soft { background: #f1f5f9; }
.factory-v2 .fx-btn.ghost {
  background: transparent;
  border-color: #334155;
  color: #e2e8f0;
}
.factory-v2 .fx-panel-foot .fx-btn.ghost,
.factory-v2 .fx-stage .fx-btn.ghost {
  border-color: var(--fx-line);
  color: var(--fx-body);
}
.factory-v2 .fx-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.factory-v2 .fx-stage {
  padding: 18px 22px 40px;
  min-width: 0;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(99, 102, 241, 0.08), transparent 55%),
    var(--fx-bg);
}
.factory-v2 .fx-stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.factory-v2 .fx-stage-bar h2 { margin: 0 0 4px; font-size: 1.15rem; }
.factory-v2 .fx-stage-bar p { margin: 0; color: var(--fx-muted); font-size: 0.85rem; }
.factory-v2 .fx-stage-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.factory-v2 .fx-muted { color: var(--fx-muted); font-size: 0.85rem; }
.factory-v2 .fx-error { color: var(--fx-danger); font-size: 0.88rem; }

.factory-v2 .fx-empty {
  border: 1px solid var(--fx-line);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--fx-shadow);
}
.factory-v2 .fx-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.factory-v2 .fx-demo {
  aspect-ratio: 9/16;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e1b4b, #312e81 45%, #6366f1);
  color: #e0e7ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.factory-v2 .fx-demo.alt {
  background: linear-gradient(160deg, #0f172a, #1e293b 50%, #334155);
}
.factory-v2 .fx-demo span {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,.14);
  padding: 2px 7px;
  border-radius: 6px;
}
.factory-v2 .fx-demo p { margin: 0; font-weight: 700; font-size: 0.9rem; }
.factory-v2 .fx-empty-copy {
  margin: 16px 0 0;
  text-align: center;
  color: var(--fx-muted);
  font-size: 0.88rem;
}

.factory-v2 .fx-progress {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 14px 16px;
}
.factory-v2 .fx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.factory-v2 .fx-steps li {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fx-muted);
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  text-align: center;
}
.factory-v2 .fx-steps li.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
}
.factory-v2 .fx-steps li.done {
  color: var(--fx-ok);
  background: #ecfdf5;
}
.factory-v2 .fx-progress-msg {
  margin: 10px 0 0;
  color: var(--fx-body);
  font-size: 0.85rem;
}

.factory-v2 .fx-schemes {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--fx-shadow);
  margin-bottom: 14px;
}
.factory-v2 .fx-schemes-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.factory-v2 .fx-schemes-head strong { display: block; }
.factory-v2 .fx-inline { display: flex; gap: 8px; }
.factory-v2 .fx-scheme-list {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 560px);
  overflow: auto;
}
.factory-v2 .fx-scheme {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}
.factory-v2 .fx-scheme.rec {
  border-color: #818cf8;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 50%);
}
.factory-v2 .fx-rec-pill {
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 2px 7px;
}
.factory-v2 .fx-next-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #a5b4fc;
  background: linear-gradient(90deg, #eef2ff, #fff);
}
.factory-v2 .fx-next-banner strong { display: block; font-size: 0.92rem; }
.factory-v2 .fx-next-banner p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}
.factory-v2 .fx-drama-checklist {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
}
.factory-v2 .fx-scheme-check {
  display: flex;
  gap: 10px;
  cursor: pointer;
}
.factory-v2 .fx-scheme-check input {
  margin-top: 3px;
  accent-color: var(--fx-accent);
  width: 17px;
  height: 17px;
}
.factory-v2 .fx-scheme-check strong { display: block; font-size: 0.92rem; }
.factory-v2 .fx-scheme-check em {
  font-style: normal;
  color: var(--fx-muted);
  font-size: 0.75rem;
}
.factory-v2 .fx-scheme-check p {
  margin: 4px 0 0;
  color: var(--fx-body);
  font-size: 0.84rem;
  line-height: 1.4;
}
.factory-v2 .fx-scheme details {
  margin-top: 8px;
  color: var(--fx-body);
  font-size: 0.82rem;
}
.factory-v2 .fx-scheme details summary { cursor: pointer; color: var(--fx-accent); font-weight: 600; }
.factory-v2 .fx-scheme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.factory-v2 .fx-scheme-actions .fx-btn { padding: 6px 10px; font-size: 0.78rem; }

.factory-v2 .fx-player-wrap {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--fx-shadow);
}
.factory-v2 .fx-player {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 9/16;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}
.factory-v2 .fx-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  background: #000;
}
.factory-v2 .fx-player-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}
.factory-v2 .fx-player-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.factory-v2 .fx-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.factory-v2 .fx-thumb {
  border: 1px solid var(--fx-line);
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
}
.factory-v2 .fx-thumb.active {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.factory-v2 .fx-thumb-media {
  width: 48px;
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}
.factory-v2 .fx-thumb-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.factory-v2 .fx-thumb-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #c7d2fe;
}
.factory-v2 .fx-thumb-meta {
  font-size: 0.78rem;
  color: var(--fx-body);
  min-width: 0;
}
.factory-v2 .fx-thumb-meta b { color: var(--fx-accent); margin-right: 4px; }
.factory-v2 .fx-thumb-meta small {
  display: block;
  margin-top: 2px;
  color: var(--fx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.factory-v2 .fx-dialog {
  padding: 20px;
  width: min(420px, 92vw);
  border: none;
}
.factory-v2 dialog {
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.factory-v2 .fx-dialog h3 { margin: 0 0 10px; }
.factory-v2 .fx-dialog ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--fx-body);
  line-height: 1.55;
  font-size: 0.9rem;
}
.factory-v2 .fx-dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}
.factory-v2 .fx-dialog .fx-label { margin-top: 10px; }
.factory-v2 .preview-phone {
  position: relative;
  width: 150px;
  aspect-ratio: 9/16;
  margin: 12px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}
.factory-v2 .preview-phone img { width: 100%; height: 100%; object-fit: cover; }
.factory-v2 .preview-ph {
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.factory-v2 .preview-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: 0.78rem;
}
.factory-v2 .preview-list {
  margin: 0;
  padding-left: 1.1rem;
  max-height: 120px;
  overflow: auto;
  color: var(--fx-muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .factory-v2 .fx-bench { grid-template-columns: 1fr; }
  .factory-v2 .fx-panel {
    position: relative;
    top: 0;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--fx-line);
  }
  .factory-v2 .fx-demo-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-v2 .fx-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .factory-v2 .fx-top { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .factory-v2 .fx-nav { width: 100%; order: 3; }
  .factory-v2 .fx-user { margin-left: 0; }
}

/* 空态引导 / 风格标签 / 手机壳 / 骨架 */
.factory-v2 .fx-guide-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  text-align: center;
}
.factory-v2 .fx-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.factory-v2 .fx-guide article {
  background: #f8fafc;
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.factory-v2 .fx-guide b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--fx-accent);
  margin-bottom: 6px;
}
.factory-v2 .fx-guide strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.factory-v2 .fx-guide p { margin: 0; color: var(--fx-muted); font-size: 0.78rem; line-height: 1.4; }
.factory-v2 .fx-scheme-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.factory-v2 .fx-scheme-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--fx-accent-2);
  font-size: 0.72rem;
  font-weight: 800;
}
.factory-v2 .fx-scheme-top em {
  font-style: normal;
  color: var(--fx-muted);
  font-size: 0.75rem;
}
.factory-v2 .fx-edit {
  outline: none;
  border-radius: 6px;
}
.factory-v2 .fx-edit:hover { background: rgba(37, 99, 235, 0.06); }
.factory-v2 .fx-edit:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.factory-v2 .fx-skeleton { margin-top: 12px; }
.factory-v2 .fx-sk-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: fx-shimmer 1.2s infinite;
  margin-bottom: 8px;
}
.factory-v2 .fx-sk-line.short { width: 55%; }
.factory-v2 .fx-sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.factory-v2 .fx-sk-cards i {
  display: block;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: fx-shimmer 1.2s infinite;
}
@keyframes fx-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.factory-v2 .fx-phone {
  width: min(280px, 100%);
  margin: 0 auto 14px;
  padding: 12px 10px 18px;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  border: 2px solid #1e293b;
}
.factory-v2 .fx-phone-notch {
  width: 86px;
  height: 8px;
  border-radius: 999px;
  background: #334155;
  margin: 0 auto 10px;
}
.factory-v2 .fx-phone .fx-player {
  width: 100%;
  margin: 0;
  border-radius: 18px;
}
.factory-v2 .fx-panel-head .fx-btn.soft {
  margin-top: 10px;
  padding: 7px 12px;
  font-size: 0.8rem;
}

/* Landing v2 */
body.land-v2 { min-height: 100vh; }
body.land-v2 .fx-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: #0f172a;
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}
body.land-v2 .fx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
body.land-v2 .fx-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
  display: grid;
  place-items: center;
}
body.land-v2 .fx-brand strong { display: block; font-size: 0.95rem; }
body.land-v2 .fx-brand small { color: #94a3b8; font-size: 0.72rem; }
body.land-v2 .fx-nav { display: flex; gap: 14px; flex: 1; font-size: 0.88rem; }
body.land-v2 .fx-nav a { color: #94a3b8; text-decoration: none; font-weight: 600; }
body.land-v2 .fx-nav a.active,
body.land-v2 .fx-nav a:hover { color: #fff; }
body.land-v2 .fx-user { display: flex; gap: 8px; align-items: center; margin-left: auto; }
body.land-v2 .fx-btn {
  appearance: none;
  border: 1px solid var(--fx-line);
  background: #fff;
  color: var(--fx-ink);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.land-v2 .fx-btn.soft { background: #eff6ff; border-color: #bfdbfe; color: var(--fx-accent-2); }
body.land-v2 .fx-btn.block { width: 100%; }
.land-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }
.land-hero-v2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 36px;
}
.land-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--fx-accent-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.land-hero-v2 h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a 30%, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-lead { margin: 0 0 18px; color: var(--fx-body); font-size: 1.05rem; line-height: 1.6; max-width: 36em; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.land-points { margin: 0; padding-left: 1.1rem; color: var(--fx-body); line-height: 1.7; }
.land-hero-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}
.land-phone {
  aspect-ratio: 9/16;
  border-radius: 18px;
  padding: 14px;
  color: #e0e7ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, #0f172a, #1e3a8a 55%, #2563eb);
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.25);
}
.land-phone.mid { transform: translateY(-16px); }
.land-phone span {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
  margin-bottom: 6px;
}
.land-phone p { margin: 0; font-weight: 700; }
.land-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.land-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--fx-shadow);
}
.land-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.land-card ol { margin: 0; padding-left: 1.1rem; color: var(--fx-body); line-height: 1.7; }
.land-who { display: grid; gap: 10px; }
.land-who div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--fx-line);
}
.land-who strong { display: block; }
.land-who span { color: var(--fx-muted); font-size: 0.82rem; }
.land-muted { color: var(--fx-muted); font-size: 0.88rem; margin: 0 0 12px; }
.land-pkgs { display: grid; gap: 8px; margin-bottom: 14px; }
.land-pkgs div {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  font-size: 0.88rem;
}
.land-foot {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  border-top: 1px solid var(--fx-line);
}
.land-foot a { color: var(--fx-accent); font-weight: 600; text-decoration: none; }
/* ---- 灵感墙（成片 + 提示词）---- */
.land-showcase {
  margin: 28px 0 8px;
}
.land-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.land-showcase-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.land-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}
.land-showcase-note {
  margin: 12px 0 0;
  font-size: 12px;
}
.land-showcase-note code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.land-sc-card {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.land-sc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}
.land-sc-card h3 {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e8eef7;
}
.land-sc-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a2230, #0d1118 70%);
  overflow: hidden;
}
.land-sc-card.aspect-9-16 .land-sc-media { aspect-ratio: 9 / 16; }
.land-sc-card.aspect-3-4 .land-sc-media { aspect-ratio: 3 / 4; }
.land-sc-card.aspect-1-1 .land-sc-media { aspect-ratio: 1 / 1; }
.land-sc-card.aspect-16-9 .land-sc-media { aspect-ratio: 16 / 9; }
.land-sc-card.aspect-4-3 .land-sc-media { aspect-ratio: 4 / 3; }
.land-sc-snippet {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #7f8ea3;
  max-width: 90%;
}
.land-sc-media video,
.land-sc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.land-sc-ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #9aa8bc;
}
.land-sc-ph strong { color: #e8eef7; font-size: 1rem; }
.land-sc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 11px;
  font-weight: 700;
}
.land-sc-use {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.land-sc-card:hover .land-sc-use {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.land-prompt-dialog {
  width: min(720px, 94vw);
  max-height: min(90vh, 860px);
  padding: 0;
  border: 1px solid #2a3344;
  border-radius: 18px;
  background: #151922;
  color: #d7dee8;
}
.land-prompt-dialog::backdrop {
  background: rgba(4, 6, 12, 0.72);
}
.land-prompt-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.land-prompt-panel header,
.land-prompt-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.land-prompt-media {
  border-radius: 12px;
  overflow: hidden;
  background: #0d1118;
  max-height: 280px;
}
.land-prompt-media video,
.land-prompt-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  background: #000;
}
.land-prompt-text {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #2a3344;
  background: #0d1118;
  color: #e8eef7;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
@media (max-width: 900px) {
  .land-hero-v2,
  .land-grid { grid-template-columns: 1fr; }
  .land-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-phone.mid { transform: none; }
  .factory-v2 .fx-guide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .land-showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.land-v2 .fx-top { flex-wrap: wrap; height: auto; padding: 10px 14px; }
  body.land-v2 .fx-nav { width: 100%; order: 3; }
}

/* ---- 登录后公告通知 ---- */
dialog.site-notice {
  width: min(640px, 94vw);
  max-height: min(92vh, 860px);
  padding: 0;
  border: 1px solid #2a3344;
  border-radius: 22px;
  background: #151922;
  color: #d7dee8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}
dialog.site-notice::backdrop {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}
.site-notice-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  max-height: min(92vh, 860px);
  overflow: auto;
}
.site-notice-shield {
  width: 52px;
  height: 52px;
  margin: 4px auto 2px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #243044 0%, #1a2230 70%);
  border: 1px solid #3a4d63;
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.06);
}
.site-notice-title {
  margin: 0;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.site-notice-lead {
  margin: 0 auto;
  max-width: 52em;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9aa6b6;
}
.site-notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #8b98a8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.site-notice-close:hover {
  color: #fff;
  background: #232a36;
}
.site-notice-card {
  background: #1b212c;
  border: 1px solid #2c3544;
  border-radius: 14px;
  padding: 16px 18px 8px;
}
.site-notice-card article {
  margin-bottom: 14px;
}
.site-notice-card h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #eef3f8;
}
.site-notice-card h4 span {
  color: #5eead4;
  margin-right: 2px;
}
.site-notice-card p,
.site-notice-rules {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #b7c2d0;
}
.site-notice-rules {
  list-style: none;
  padding: 6px 0 0 1.1em;
}
.site-notice-rules li {
  margin: 2px 0;
}
.site-notice-rules b {
  color: #e8eef6;
  font-weight: 700;
}
.site-notice-thanks {
  margin: 2px 0 4px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #8b98a8;
  border: 1px dashed #3a4556;
  border-radius: 12px;
}
.site-notice-foot {
  display: block;
  margin-top: 4px;
}
.site-notice-ok {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  background: #f3f4f6;
  cursor: pointer;
}
.site-notice-ok:hover {
  background: #fff;
}
.site-notice-box {
  display: none;
}
