:root {
  --bg: #08090c;
  --panel: #10131a;
  --panel-2: #151923;
  --line: #232838;
  --text: #f2f4f9;
  --muted: #98a0b3;
  --tech: #4fd1c5;
  --tech-2: #7c5cff;
  --warm: #f2a65a;
  --warm-2: #e2745c;
  --radius: 18px;
  --accent: var(--tech);
  --accent-2: var(--tech-2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; overflow-x: hidden; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(79,209,197,.12), transparent 42%),
    radial-gradient(circle at 82% 0%, rgba(124,92,255,.14), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(242,166,90,.06), transparent 55%);
}

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; backdrop-filter: blur(14px);
  background: rgba(8,9,12,.72); border-bottom: 1px solid rgba(35,40,56,.7);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }

.ghost-btn {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.ghost-btn:hover { color: var(--text); border-color: #39405a; }

main { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 28px 24px 120px; }

.screen { display: none; animation: rise .3s ease; }
.screen.active { display: block; }

@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- home ---------- */
.hero { padding: 42px 0 30px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.14; margin: 0 0 18px; letter-spacing: -.02em; }
.hero .sub { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }

.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 960px) { .direction-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .direction-grid { grid-template-columns: 1fr; } }

.direction-card {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: 28px; transition: transform .18s ease, border-color .18s ease;
}
.direction-card:hover { transform: translateY(-3px); border-color: #3a4260; }
.direction-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; filter: blur(60px); opacity: .5;
}
.direction-card[data-dir="ai"]::after { background: var(--tech-2); }
.direction-card[data-dir="yrg"]::after { background: var(--warm); }
.direction-card[data-dir="share"]::after { background: #7c5cff; }
.direction-card h3 { font-size: 22px; margin: 0 0 8px; }
.direction-card .tagline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.direction-card .desc { color: #8f97ab; font-size: 13px; line-height: 1.7; margin: 0 0 18px; max-width: 92%; }
.direction-card .count { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; display: inline-block; }
.direction-card .arrow { position: absolute; right: 26px; bottom: 24px; font-size: 20px; color: var(--muted); }

.home-note { color: #6b7286; font-size: 13px; margin-top: 22px; }

/* ---------- topics ---------- */
.back { background: none; border: 0; color: var(--muted); padding: 0 0 18px; cursor: pointer; font-size: 14px; }
.back:hover { color: var(--text); }

.screen-head h2 { font-size: 28px; margin: 0 0 8px; }
.screen-head .sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; line-height: 1.7; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.topic-card {
  text-align: left; cursor: pointer; color: inherit; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .16s ease, transform .16s ease;
}
.topic-card:hover { border-color: #3c4460; transform: translateY(-2px); }
.topic-card .cover-line { font-size: 19px; font-weight: 650; line-height: 1.35; }
.topic-card .hook { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.topic-card .why { color: #7f8aa3; font-size: 12px; line-height: 1.6; border-left: 2px solid var(--line); padding-left: 10px; }
.topic-card .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.pill { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(79,209,197,.12); color: var(--accent); border: 1px solid rgba(79,209,197,.25); }
.pill.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
body[data-dir="yrg"] { --accent: var(--warm); --accent-2: var(--warm-2); }
body[data-dir="yrg"] .pill { background: rgba(242,166,90,.12); color: var(--warm); border-color: rgba(242,166,90,.3); }
body[data-dir="share"] { --accent: #b39dff; --accent-2: #7c5cff; }
body[data-dir="share"] .pill { background: rgba(179,157,255,.12); color: #c3b6ff; border-color: rgba(179,157,255,.3); }
body[data-dir="aitool"] { --accent: var(--tech); --accent-2: var(--tech-2); }

/* ---------- detail ---------- */
.detail { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--panel); padding: 30px; }
.detail-head { display: flex; gap: 8px; margin-bottom: 14px; }
.detail h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.25; margin: 0 0 12px; }
.detail .hook { color: var(--accent); font-size: 16px; margin: 0 0 20px; }

.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.meta-row label, .why-box label, .script-head label, .panel-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.meta-row p { margin: 0; font-size: 14px; }

.why-box { border: 1px dashed #2c3348; border-radius: 14px; padding: 16px; margin-bottom: 20px; background: rgba(124,92,255,.04); }
.why-box p { margin: 0; font-size: 14px; line-height: 1.7; color: #c7cede; }

.beats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.beat { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.beat span { color: var(--accent); margin-right: 6px; }

.script-box { margin-bottom: 24px; }
.script-head { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: 12px; color: #6b7286; }
#scriptInput {
  width: 100%; min-height: 230px; resize: vertical; line-height: 1.85; font-size: 15px;
  background: #0b0d13; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  font-family: inherit;
}
#scriptInput:focus { outline: none; border-color: var(--accent); }
.hint { color: #6f7a92; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.hint code { background: #1b2030; padding: 1px 5px; border-radius: 4px; color: var(--warm); }

.cta-row { display: flex; gap: 12px; }
@media (max-width: 560px) { .cta-row { flex-direction: column; } }

.cta {
  border: 0; border-radius: 14px; padding: 15px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; color: #07100e; background: var(--accent); transition: filter .15s ease, transform .15s ease;
  text-align: center; text-decoration: none; display: inline-block;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #06070a; }
.cta.secondary { background: transparent; color: var(--text); border: 1px solid #333c55; }
.cta.wide { width: 100%; margin-top: 22px; }
.cta:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- generate ---------- */
.gen-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
@media (max-width: 760px) { .gen-grid { grid-template-columns: 1fr; } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; }
.panel-label.mt { margin-top: 20px; }

.drop { border: 1px dashed #313a52; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s; }
.drop.over { border-color: var(--accent); background: rgba(79,209,197,.05); }
.drop p { margin: 0 0 6px; font-size: 14px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice button { background: #0b0d13; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.choice button.on { color: var(--text); border-color: var(--accent); background: rgba(79,209,197,.08); }

/* ---------- progress ---------- */
.progress-wrap { max-width: 560px; margin: 90px auto 0; text-align: center; }
.bar { height: 8px; border-radius: 999px; background: #171b26; overflow: hidden; margin: 26px 0 16px; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.progress-msg { color: var(--text); font-size: 15px; }

/* ---------- result ---------- */
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.result-head h2 { margin: 4px 0 6px; font-size: 26px; }
.result-grid { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .result-grid { grid-template-columns: 1fr; } }

#resultVideo { width: 100%; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.download-row { display: flex; gap: 10px; margin-top: 12px; }
.download-row .cta { flex: 1; padding: 12px; font-size: 14px; }
.cover-preview { width: 100%; margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); }

.publish-col h3 { margin: 0 0 8px; font-size: 18px; }
.platform-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; background: var(--panel); }
.platform-card .pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.platform-card .pc-name { font-weight: 600; }
.platform-card .pc-ratio { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.platform-card .pc-body { white-space: pre-wrap; font-size: 13px; line-height: 1.8; color: #c7cede; background: #0b0d13; border-radius: 10px; padding: 12px; max-height: 180px; overflow: auto; }
.platform-card .pc-actions { display: flex; gap: 8px; margin-top: 10px; }
.platform-card .pc-actions button, .platform-card .pc-actions a {
  flex: 1; text-align: center; text-decoration: none; font-size: 13px; padding: 9px;
  border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.platform-card .pc-actions a { border-color: var(--accent); color: var(--accent); }

.publish-note { margin-top: 18px; border: 1px dashed #2c3348; border-radius: 14px; padding: 16px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.publish-note strong { color: var(--text); display: block; margin-bottom: 6px; }
.publish-note p { margin: 0; }

/* ---------- teleprompter ---------- */
.teleprompter {
  position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column;
  background: #05060a;
}
.teleprompter.on { display: flex; }
.tp-toolbar { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tp-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-toolbar button { background: #12151d; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
.tp-stage { flex: 1; overflow: hidden; position: relative; }
.tp-text {
  position: absolute; left: 0; right: 0; top: 0; padding: 12vh 8vw;
  font-size: 52px; line-height: 1.65; font-weight: 650; letter-spacing: .01em;
  transition: transform .1s linear;
}
.tp-text.mirror { transform: scaleX(-1); }
.tp-text p { margin: 0 0 .9em; }
.tp-text .now { color: var(--accent); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(4,5,8,.72); backdrop-filter: blur(6px); }
.modal.on { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-body { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.modal-head button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.jobs-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.job-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.job-item a { color: var(--accent); text-decoration: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: #1b2030; color: var(--text); padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--line); font-size: 14px; opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 60;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }


/* ---------- 半自动发布（实验） ---------- */
.auto-box { margin-top: 18px; border: 1px solid #3a3348; border-radius: 14px; padding: 16px; background: rgba(124,92,255,.05); }
.auto-head h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.auto-badge { font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
  border: 1px solid #5a4a7a; color: #c3b6ff; }
.auto-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.auto-actions button { background: #12151d; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.auto-actions button:disabled { opacity: .4; cursor: not-allowed; }
.auto-actions button.danger { border-color: #6b3b3b; color: #ffb3a7; }
.auto-actions button.plain { color: var(--muted); }
.auto-log { margin: 0; max-height: 150px; overflow: auto; font-size: 11px; line-height: 1.6;
  color: #8d94a8; background: #0a0c12; border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; }
.auto-log:empty { display: none; }
.qr-wrap { text-align: center; padding: 12px; }
.qr-wrap img { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.auto-metrics { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.metric { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.metric b { color: var(--text); font-weight: 600; }


/* ---------- 三方向 / 选题库 v2 ---------- */
.field-label { display: block; font-size: 12px; color: var(--muted); margin: 18px 0 6px; letter-spacing: .04em; }
.text-input { width: 100%; background: #0b0d13; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; font-size: 16px; font-family: inherit; }
.text-input:focus { outline: none; border-color: var(--accent); }
.points { margin: 10px 0 0; padding-left: 20px; color: #c7cede; font-size: 14px; line-height: 1.8; }
.points li { margin-bottom: 6px; }
.outline-banner { border: 1px solid #6b5a2a; background: rgba(242,166,90,.08); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 18px; }
.outline-banner strong { color: #f2c07a; font-size: 14px; }
.outline-banner p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: #cbb894; }
.titles-box, .compliance-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 14px; background: #0d1017; }
.titles-box summary, .compliance-box summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.titles-body { margin-top: 12px; }
.pattern-row { border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; line-height: 1.7; }
.pattern-row b { color: var(--text); }
.pattern-row code { color: var(--accent); background: #131826; padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.pattern-row .why { color: #7f8aa3; font-size: 12px; display: block; margin-top: 4px; }
.ref-row { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding: 8px 0; }
.ref-row em { color: #8d94a8; font-style: normal; }
.compliance-box p { font-size: 13px; line-height: 1.8; color: #c7cede; margin: 10px 0 0; }
.badge-ready { background: rgba(79,209,197,.14); color: var(--accent); border-color: rgba(79,209,197,.3) !important; }
.badge-outline { background: rgba(242,166,90,.12); color: #f0b26a; border-color: rgba(242,166,90,.3) !important; }


/* ---------- 占位提示 ---------- */
.ph-banner { border: 1px solid #7a4a3a; background: rgba(226,116,92,.10); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; }
.ph-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-head strong { color: #ffb3a7; font-size: 13px; }
.ph-fix { background: transparent; border: 1px solid #7a4a3a; color: #ffb3a7;
  border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.ph-fix:hover { background: rgba(226,116,92,.16); }
.ph-list { margin: 8px 0 0; font-size: 13px; color: #e2b3a7; line-height: 1.7; }
.ph-list code { background: #2a1714; color: #ffb3a7; padding: 1px 6px; border-radius: 5px; margin-right: 6px; }
.ph-banner .hint { color: #a98b82; }


/* ---------- 口播稿折叠 ---------- */
.script-box { border: 1px solid var(--line); border-radius: 12px; background: #0d1017;
  padding: 12px 16px; margin-bottom: 16px; }
.script-box[open] { padding-bottom: 16px; }
.script-summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.script-summary strong { font-size: 14px; color: var(--text); }
.script-summary #scriptState { font-size: 12px; color: var(--muted); }
.script-summary .counter { margin-left: auto; }
.script-box textarea { margin-top: 12px; }


/* ---------- 口播体检 & DeepSeek ---------- */
.lint-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 14px; background: #0d1017; }
.lint-box.bad { border-color: #7a4a3a; background: rgba(226,116,92,.07); }
.lint-box.good { border-color: rgba(79,209,197,.3); background: rgba(79,209,197,.05); }
.lint-head { display: flex; justify-content: space-between; align-items: baseline; }
.lint-head strong { font-size: 13px; }
.lint-head span { font-size: 12px; color: var(--muted); }
.seg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.seg-chip { font-size: 11px; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 9px; color: var(--muted); }
.seg-chip b { color: var(--text); font-weight: 600; }
.lint-list { margin: 10px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.8; color: #e2b3a7; }
.lint-list .warn { color: #d9b06a; }
.ds-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 14px; background: #0d1017; }
.ds-box summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.ds-body { margin-top: 12px; }
.ds-actions { display: flex; gap: 8px; margin: 10px 0; }
.ds-actions .cta { padding: 9px 14px; font-size: 13px; }
.paste-box { width: 100%; min-height: 120px; background: #0b0d13; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px;
  line-height: 1.7; font-family: inherit; margin-bottom: 10px; }
.paste-box:focus { outline: none; border-color: var(--accent); }
#btnParseScript { padding: 10px 16px; font-size: 13px; }


/* ---------- AI 面板 ---------- */
.topic-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ai-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 14px; background: #0d1017; }
.ai-head { display: flex; justify-content: space-between; align-items: baseline; }
.ai-head strong { font-size: 13px; }
.ai-state { font-size: 12px; color: var(--muted); }
.ai-state.ok { color: #8fd6c9; }
.ai-state.bad { color: #f0b26a; }
.ai-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ai-actions .cta { padding: 9px 14px; font-size: 13px; }
.ai-log { font-size: 12px; color: var(--muted); margin-top: 8px; white-space: pre-wrap; line-height: 1.7; }
.ai-log:empty { display: none; }


/* ---------- 积分 ---------- */
.credit-chip { font-size: 12px; color: #8fd6c9; border: 1px solid rgba(79,209,197,.35);
  background: rgba(79,209,197,.08); border-radius: 999px; padding: 6px 12px; margin-right: 8px; }
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 18px; }
.pkg { border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #0d1017; }
.pkg:hover { border-color: var(--accent); }
.pkg b { display: block; font-size: 15px; }
.pkg span { font-size: 12px; color: var(--muted); }
.pkg em { font-style: normal; color: var(--accent); font-size: 12px; display: block; margin-top: 6px; }
.redeem-row { display: flex; gap: 8px; align-items: center; }
.redeem-row .cta { padding: 12px 18px; white-space: nowrap; }
.modal-body.wide { width: min(760px, 100%); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; }
.admin-table th { color: var(--muted); font-weight: 500; }
.codes-box { margin-top: 12px; font-size: 12px; line-height: 1.9; color: #c7cede; max-height: 180px; overflow: auto;
  background: #0b0d13; border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre-wrap; }


.who-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; margin-right: 8px; cursor: pointer; }
.who-chip:hover { color: var(--text); }


/* ---------- 真实素材模式 ---------- */
.real-mode { margin: 18px 0 10px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #0c0f16; }
.real-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.real-toggle em { font-style: normal; color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
.real-inputs { margin-top: 14px; display: grid; gap: 10px; }
.file-pick { display: block; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-size: 13px; color: var(--muted); }
.file-pick:hover { border-color: var(--accent); color: var(--text); }
.file-pick input { display: none; }
.file-pick.has span { color: var(--accent); }


/* ---------- 一键流水线 ---------- */
.pipe-band { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(124,92,255,.35); background: linear-gradient(100deg, rgba(124,92,255,.12), rgba(79,209,197,.06));
  border-radius: 16px; padding: 16px 20px; margin: 22px 0 18px; }
.pipe-band b { display: block; font-size: 16px; margin-bottom: 4px; }
.pipe-band span { font-size: 13px; color: var(--muted); }
#pipeDirections { display: flex; gap: 8px; flex-wrap: wrap; }


/* ---------- 方案卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 6px; }
.plan-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #0c0f16; cursor: pointer; }
.plan-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.plan-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.plan-card em { display: block; font-style: normal; font-size: 12px; color: var(--accent); margin-top: 8px; }
.plan-card.on { border-color: var(--accent); background: rgba(79,209,197,.07); }
.publish-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid rgba(124,92,255,.35); background: linear-gradient(100deg, rgba(124,92,255,.12), rgba(79,209,197,.06));
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.publish-cta b { display: block; margin-bottom: 3px; }
.publish-cta span { font-size: 12px; color: var(--muted); }


/* ---------- 手机端（学员基本都在手机上打开） ---------- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .topbar-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .credit-chip, .who-chip { font-size: 11px; padding: 5px 10px; }
  main { padding: 0 14px 60px; }
  .hero h1 { font-size: 30px; line-height: 1.25; }
  .hero p { font-size: 14px; }
  .pipe-band { flex-direction: column; align-items: stretch; gap: 10px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 13px; }
  .cta.wide { padding: 14px; font-size: 15px; }
  .screen-head h2 { font-size: 24px; }
  .detail-title-input { font-size: 16px; }
  .result-head h2, #resultTitle { font-size: 22px; }
  .result-video, #resultVideo { max-height: 62vh; }
  .publish-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .modal-body { width: calc(100vw - 24px); max-height: 86vh; overflow: auto; }
  .packages { grid-template-columns: 1fr; }
  .admin-table { font-size: 11px; }
}


.hero-cta { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; flex-wrap: wrap; }
.hero-cta span { font-size: 12px; color: var(--muted); }
.site-foot { margin: 60px 0 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .hero-cta { flex-direction: column; align-items: stretch; } .hero-cta .cta { width: 100%; } }


.soon-band { border: 1px solid rgba(255,207,112,.35); background: rgba(255,207,112,.08);
  border-radius: 14px; padding: 14px 18px; margin: 18px 0 6px; }
.soon-band b { display: block; color: #ffcf70; margin-bottom: 4px; }
.soon-band span { font-size: 13px; color: var(--muted); }


.or-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 12px; }
.or-line::before, .or-line::after { content: ""; height: 1px; background: var(--line); flex: 1; }
