/* 站点只有深色底（同类平台和梗视频都在深色底上，成片更跳）；颜色只在这里改。
   本文件连注释原样发给每个站的访客：注释里不写站名、域名、内部文件路径 */
:root {
  --bg: #0b0b10; --surface: #121219; --card: #1a1a23; --card2: #22222d; --ink: #f5f5f7; --muted: #a4a4b4; --line: #2c2c3a;
  --brand: #ff3d5a; --brand2: #ff8a1f; --on-brand: #fff; --tint: rgba(255, 61, 90, .13);
  --ok: #35c481; --warn: #ffb020; --bad: #ff5d5d;
  --radius: 14px; --gutter: 16px; --page: 760px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--surface); color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(18, 18, 25, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; height: 54px; max-width: var(--frame, var(--page)); margin: 0 auto; padding: 0 var(--gutter); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 17px; white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); position: relative; flex: none; }
.logo i::after { content: ""; position: absolute; left: 9px; top: 7px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.top nav > a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.pill { color: var(--ink); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; white-space: nowrap; font-size: 14px; }

.top nav .cred { color: var(--ink); padding: 6px 12px; border-radius: 999px; background: var(--card2); font-weight: 700; white-space: nowrap; }
/* 登录后顶栏多两项：窄屏上先收紧间距，站名太长再省略，不撑出横向滚动 */
.logo { min-width: 0; }
.logo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top nav { flex: none; }
/* 多词站名放不下时折两行，手机上也显示完整；单词站名不折行。
   窄屏给站名腾地方：登录后所有站去掉「My videos」（积分胶囊也链到同一页），语言按钮去掉地球图标只留语言名；360px 以下再去掉站名前的图标 */
.logo.long span { white-space: normal; text-wrap: balance; line-height: 1.1; }
@media (max-width: 480px) { .logo.long span { font-size: 15px; } }
@media (max-width: 400px) { .top nav .myvids { display: none; } }
@media (max-width: 360px) { .logo i { display: none; } }
@media (max-width: 400px) {
  .top nav { gap: 10px; }
  .top nav .cred { padding: 6px 10px; }
  .langbtn .globe { display: none; }
}

/* 登录底部弹层（原型 s03）：原生 dialog，::backdrop 当遮罩 */
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: 92dvh; margin: 0 auto; padding: 10px 20px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(0, 0, 0, .62); }
.sheet turbo-frame { display: block; min-height: 120px; }
.sheet .grab { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 999px; background: var(--line); }
.sheet h2 { margin: 0 0 10px; }
.sheet form { margin: 0; }
.sheet-sub { margin: 0 0 14px; }
.sheet-sub b { color: var(--ink); }
.sheet-err { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 93, 93, .12); color: var(--bad); font-size: 13.5px; }
.sheet-gap { margin-top: 10px; }
.sheet-fine { margin: 12px 0 0; }
.sheet-fine a { color: var(--ink); }
.sheet-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; }
.sheet-links a { color: var(--ink); }
.center { text-align: center; }
.gwrap { position: relative; }
.gtag { position: absolute; right: 14px; top: -10px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: var(--ok); color: #06251a; font-size: 11.5px; font-weight: 800; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 16px; cursor: pointer; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span { flex: none; max-width: 80%; text-align: center; }
.later { display: block; width: 100%; margin: 12px 0 0; padding: 4px; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-align: center; cursor: pointer; }
.linkbtn { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.otp span { display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 700 22px ui-monospace, Menlo, monospace; }
.otp:focus-within span.cur { border-color: var(--brand); }

/* 账户页（原型 s09） */
.stat { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 0; }
.stat > div { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: var(--card); }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { font-size: 30px; line-height: 1.2; }
.stat-fine { margin-top: 8px; }
.signed-as { margin-top: 20px; }

/* 语言菜单：顶栏地球按钮 + 当前语言代码 */
.langmenu { position: relative; }
.langbtn { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.langbtn::-webkit-details-marker { display: none; }
.globe { width: 16px; height: 16px; flex: none; }
.langpanel { position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.langtitle { margin: 0 0 8px; font-weight: 700; }
.langgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.langgrid a { display: block; padding: 8px; border-radius: 10px; text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.langgrid a[aria-current] { background: var(--tint); font-weight: 700; }

/* 正文 */
.body { max-width: var(--page); margin: 0 auto; padding: 16px var(--gutter) 28px; }
h1 { margin: 4px 0 8px; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 28px 0 10px; font-size: 19px; line-height: 1.3; }
h3 { margin: 0 0 6px; font-size: 15px; }
p { margin: 0 0 10px; }
.eyebrow { margin: 0 0 6px; color: var(--brand2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.55; }
.crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.trust span { padding: 4px 10px; border-radius: 999px; background: var(--card2); font-size: 12.5px; font-weight: 600; }
.trust span::before { content: "✓ "; color: var(--ok); }
.more { margin-top: 12px; }
.more a { font-size: 13px; color: var(--brand2); }
.new-daily { margin-top: 10px; }
.examples-fine { margin-top: 6px; }

/* 按钮 */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card2); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn.pri { border: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); }
.btn.big { min-height: 54px; font-size: 16.5px; }
.btn.ghost { background: transparent; }
.btn.sm { display: inline-flex; width: auto; min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: default; }

/* 梗卡片 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard { display: block; text-decoration: none; min-width: 0; }
.tcard .th { position: relative; border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 9 / 16; }
.tcard .th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcard b { display: block; margin-top: 7px; font-size: 14.5px; line-height: 1.3; }
.tcard small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.dur { position: absolute; right: 7px; bottom: 7px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); font-size: 11px; font-weight: 700; }
.row { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .tcard { flex: 0 0 132px; }

/* 示例：输入 → 成片 */
.demo { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 10px; border-radius: var(--radius); background: var(--card); }
.demo .out { width: 96px; flex: none; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: cover; }
.demo p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; }
.demo p b { display: block; color: var(--ink); font-size: 13.5px; }
.exs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ex { min-width: 0; }
.ex video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: cover; }
.ex p { margin: 5px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* 生成框 */
.gen { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); scroll-margin-top: 70px; }
.gen-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.gen-h.step { margin-top: 16px; }
.gen-h b { font-size: 16px; }
.gen-h .no { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; margin-right: 8px; padding: 0 5px; border: 1px solid rgba(255, 61, 90, .5); border-radius: 6px; color: var(--brand); font: 700 12px ui-monospace, Menlo, monospace; font-style: normal; }
.gen-h em.opt { margin-left: 6px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.slots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / 1; border: 1.5px dashed #4a4a5c; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 13px; padding: 8px; min-width: 0; cursor: pointer; }
.slot b { color: var(--ink); }
.slot .plus { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card2); color: var(--ink); font-size: 24px; line-height: 1; }
/* 上传位里的原片角色图 → ＋：用户一看就知道换的是谁 */
.slot.cast { gap: 4px; }
.slot .role { display: flex; align-items: center; gap: 6px; }
.slot .role img { position: static; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.slot .role .arrow { color: var(--muted); font-size: 16px; }
.slot .role .plus { width: 34px; height: 34px; font-size: 20px; }
.slot.cast b { text-align: center; line-height: 1.3; }
.slots-hint { margin: -2px 0 10px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 640px) {
  .slot .role img { width: 96px; height: 96px; border-radius: 16px; }
}
.req { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tagrow span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.qual { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.qual button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.qual button.on { border: 1.5px solid var(--brand); background: var(--tint); }
.qual b { font-size: 13px; line-height: 1.3; }
.qual span { font-size: 12px; color: var(--muted); }
.qual button { position: relative; }
.qual small { font-size: 11.5px; color: var(--muted); }
/* 默认档的「推荐」标：压在格子上沿，理由在档位下面一行（.qual-note） */
.qual .rec { position: absolute; top: -9px; right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.qual-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.txtin { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fixed { margin: 14px 0 0; color: var(--muted); font: 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.consent a { color: var(--ink); }
.price-line { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.price-line a { color: var(--brand2); }
.trust-line { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* 段落块 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--card); }
.steps i { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--brand); font-style: normal; font-weight: 800; font-size: 13px; }
.steps b { display: block; font-size: 14.5px; }
.steps small { color: var(--muted); font-size: 13px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.ideas span { padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 13px; }
.tips { margin: 0; padding-left: 18px; }
.tips li { margin: 4px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 13px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 14px; margin: 0 0 13px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--card); font-size: 13.5px; }
.note a { color: var(--brand2); }
.note.still { margin-top: 16px; }

/* 价格 */
.secure { margin: -4px 0 8px; }
.packs { display: grid; gap: 10px; margin: 14px 0 0; }
.pack { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pack.hot { border: 2px solid var(--brand); background: linear-gradient(180deg, rgba(255, 61, 90, .10), var(--card)); }
.pack.anchor { border-style: dashed; }
.pack .nm { font-weight: 800; font-size: 16px; }
.pack .pr { font-weight: 800; font-size: 22px; text-align: right; }
.pack .pr small { font-size: 13px; color: var(--muted); font-weight: 600; }
.pack .per { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.pack .per.spec { color: var(--ink); font-weight: 700; }
.pack .per.blurb { color: var(--ink); }
.pack .btn { grid-column: 1 / -1; margin-top: 10px; min-height: 46px; }
.pack .tag { position: absolute; right: 14px; top: -11px; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.pays { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.pays span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.facts li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* 法律页 */
.legal h1 { font-size: 23px; }
.legal h3 { margin: 16px 0 4px; font-size: 14.5px; }
.legal p { font-size: 13.5px; color: #d6d6de; }
.legal p.fine { color: var(--muted); font-size: 12px; }
.legal p a, .legal td a { color: var(--brand2); }
.lsec { margin: 8px 0 0; padding-left: 22px; }
.lsec li::marker { color: var(--muted); font-size: 12.5px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.kv th, .kv td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.kv th { width: 36%; padding-right: 10px; color: var(--muted); font-weight: 500; }
.legal p.disclosure-note { margin: 12px 0 10px; }
#disclosure_request { display: block; min-height: 42px; margin: 0 0 6px; }
.legal p.disclosure-purpose { margin: 0 0 16px; }
.disclosure-form { display: flex; gap: 8px; }
.disclosure-form .txtin { flex: 1; min-width: 0; }
.disclosure-form .btn { flex: none; min-height: 42px; }
.legal p.disclosure-sent { margin: 0; line-height: 42px; color: var(--ink); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.foot-in { max-width: var(--frame, var(--page)); margin: 0 auto; padding: 22px var(--gutter) 30px; }
.foot .disclaimer { margin: 0 0 16px; }
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.foot h4 { margin: 0 0 6px; font-size: 13px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot .btn.sm { color: var(--ink); }
.report-h { margin: 22px 0 6px; }
.foot .langs-h { display: flex; align-items: center; gap: 4px; margin: 22px 0 0; }
.langs-h .globe { width: 14px; height: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-size: 12.5px; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; }
.copyright { margin-top: 16px; }

/* 生成框：选好的照片、提示 */
.slot { position: relative; overflow: hidden; }
.slot.on { border-style: solid; border-color: var(--brand); padding: 0; }
/* 用户照片整张显示不裁：上传位是方形或定高横条，竖拍人像用 cover 会把脸裁掉 */
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.slot.busy img { opacity: .5; }
.slot .sn { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.slot .x { position: absolute; right: 6px; top: 6px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; cursor: pointer; }
/* 传了照片后左上角的原角色图 → ：白描边加深色底，深浅照片上都看得清 */
.slot .was { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 3px; padding: 3px 6px 3px 3px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; line-height: 1; }
.slot .was img { position: static; width: 30px; height: 30px; border: 1.5px solid #fff; border-radius: 7px; object-fit: cover; }
.nudge { margin: -6px 0 10px; color: var(--warn); font-size: 12.5px; }
.gen-err { margin: 0 0 10px; color: var(--bad); font-size: 13px; }
.gen-err:empty { display: none; }

/* 首帧预览、生成中、结果（原型 s04 s05 s06） */
.h1-sm { font-size: 23px; }
.gap-s { margin-top: 8px; }
.gap-m { margin-top: 12px; }
.stage { display: flex; justify-content: center; margin: 6px 0 14px; }
.frame { width: 230px; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.frame img, .frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.frame.dim { opacity: .45; }
.frame.busy { width: 170px; opacity: .85; }
.frame.rel { position: relative; }
.before { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 10px; background: rgba(0, 0, 0, .6); }
.before span { margin-right: 2px; color: #fff; font-size: 10.5px; }
.before img { width: 26px; height: 31px; border-radius: 5px; object-fit: cover; aspect-ratio: auto; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.vs div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--muted); }
.vs div.on { border-color: var(--brand); background: var(--tint); }
.vs b { display: block; color: var(--ink); font-size: 13px; }
main.body > .btn + .btn, main.body > form + .btn, main.body > .btn + form { margin-top: 10px; }
.spec { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.spec span { padding: 3px 10px; border-radius: 999px; background: var(--card2); font-size: 12.5px; }
.share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 0; }
.share .btn { min-height: 44px; padding: 0; font-size: 13px; margin-top: 0; }
.share .copied { grid-column: 1 / -1; margin: 0; text-align: center; }
.prog { height: 10px; margin: 14px 0; border-radius: 999px; background: var(--card2); overflow: hidden; }
.prog i { display: block; width: 5%; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .8s; }
.stages { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.stages li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.stages li::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }
.stages li.done { color: var(--ink); }
.stages li.done::before { border-color: var(--ok); background: var(--ok); }
.stages li.now { color: var(--ink); font-weight: 700; }
.stages li.now::before { border-color: var(--brand2); border-top-color: transparent; }
.banner { padding: 12px 14px; border: 1px solid rgba(255, 61, 90, .35); border-radius: 12px; background: var(--tint); font-size: 14px; }
.banner.ok { border-color: rgba(53, 196, 129, .35); background: rgba(53, 196, 129, .12); }
.banner.warn { border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .1); }

/* 账户页：我的视频、积分记录 */
.stat.two { grid-template-columns: 1fr 1fr; }
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vid { min-width: 0; color: var(--muted); font-size: 12px; }
.vid .o { display: block; margin-bottom: 4px; border-radius: 10px; overflow: hidden; background: var(--card); aspect-ratio: 9 / 16; }
.vid .o img, .vid .o video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid form { display: inline; }
.st-ok { color: var(--ok); }
.st-bad { color: var(--bad); }
.history th { width: 75%; color: var(--ink); }
.history td { text-align: right; }

/* 手机：滚过生成框后的底部固定按钮 */
.bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 8; width: 100%; max-width: var(--page); padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(18, 18, 25, .96); border-top: 1px solid var(--line); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 32px; }
  /* 宽屏上方形上传位太高，固定高度 */
  .slot { aspect-ratio: auto; height: 200px; }
}

/* 收款：价格页按钮包在表单里（下单要 POST），确认订单页的步骤条（原型 s08-confirm-a） */
.pack form { grid-column: 1 / -1; }
.resume-banner { margin-bottom: 14px; }
.flowbar { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 12px; color: var(--muted); }
.flowbar li { flex: 1; padding: 6px 0; border-top: 3px solid var(--line); text-align: center; }
.flowbar li.on { border-color: var(--brand); color: var(--ink); font-weight: 700; }
.kv .total { font-size: 22px; color: var(--brand); }
.review-pay { margin-top: 16px; }
.review-pay + .btn { margin-top: 10px; }
.prog.wait i { width: 40%; animation: prog-wait 1.2s ease-in-out infinite alternate; }
@keyframes prog-wait { from { margin-left: 0; } to { margin-left: 60%; } }
@media (prefers-reduced-motion: reduce) { .prog.wait i { animation: none; } }
form.inline { display: inline; }
/* 单张照片的形态模板 */
.slots.one { grid-template-columns: minmax(0, 220px); justify-content: center; }
/* 横屏梗（16:9）：样片、首帧、成片按横屏显示 */
.demo .out.wide { width: 160px; aspect-ratio: 16 / 9; }
.frame.wide { width: 100%; max-width: 560px; }
.frame.wide img, .frame.wide video { aspect-ratio: 16 / 9; }

/* 独立站分屏首页、工具页、卡片版价格页（body[data-layout=landing]）。手机一栏，桌面首屏两栏 */
body[data-layout=landing] { --frame: 1120px; }
.desk-only { display: none !important; }
@media (min-width: 900px) { .desk-only { display: revert !important; } }
.kw { background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.landing { max-width: 1120px; margin: 0 auto; padding-bottom: 84px; }
.landing .sec { max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter); scroll-margin-top: 56px; }
.landing .top-sec { padding-top: 14px; }
.landing h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; text-align: center; }
.landing h2.left { text-align: left; }
.landing h1.mid { font-size: 26px; text-align: center; }
.landing .lead small { font-size: 13px; }
.landing .gen { scroll-margin-top: 64px; }
.hero { padding: 18px var(--gutter) 10px; }
.kicker { display: inline-block; margin: 4px 0 14px; padding: 6px 14px; border: 1px solid #3b3b4c; border-radius: 999px; background: #191922; color: #ffb3a1; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 0 0 12px; font-size: 31px; line-height: 1.18; letter-spacing: -.01em; overflow-wrap: break-word; }
.intro { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 20px 0 22px; padding: 0; list-style: none; font-size: 13.5px; color: #ffd2c4; }
.feats li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.35; }
.feats li::before { content: "✓"; color: var(--brand2); font-weight: 800; }
.clip { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip .snd { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.clip .stag { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); font-size: 11.5px; pointer-events: none; }
.gap-sample { margin-top: 18px; }
.made { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.made .duo { display: flex; flex: none; }
.made .duo span { width: 62px; height: 76px; border: 2px solid #fff; border-radius: 10px; overflow: hidden; background: #333; transform: rotate(-4deg); }
.made .duo span + span { margin-left: -10px; transform: rotate(3deg); }
.made img { display: block; width: 100%; height: 100%; object-fit: cover; }
.made p { margin: 0; font-size: 14.5px; color: var(--muted); }
.made b { color: var(--ink); }
.same { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--card2); font-size: 13px; color: var(--muted); }
.same b { color: var(--ink); }
.showcase { padding: 20px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 0; }
.inputs figure { margin: 0; text-align: center; }
.inputs .pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; border: 1px solid #3b3b4c; border-radius: 14px; overflow: hidden; background: #000; }
.inputs .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inputs .pic.empty { border-style: dashed; background: var(--surface); }
.inputs .pic.empty img { width: 56%; height: auto; aspect-ratio: 1; border-radius: 12px; opacity: .8; }
.inputs figcaption { margin-top: 8px; font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.inputs small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.gen-arrow { margin: 14px 0 10px; text-align: center; font-weight: 700; font-size: 14px; }
.gen-arrow::after { content: "↓"; display: block; color: var(--muted); font-weight: 400; }
.cap { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.showcase .btn.sm { display: flex; width: max-content; margin: 14px auto 0; }
.samples { display: grid; gap: 14px; margin: 6px 0 0; }
/* 收款没开通时点购买的就地提示（pricing_controller.js） */
.pay-hint { margin: 8px 0 0; color: var(--warn); font-size: 13px; text-align: center; }
.btn.line { margin-top: 14px; background: #0e0e14; border: 1.5px solid var(--brand2); }
.prose p { margin: 0 0 14px; color: #cfcfda; font-size: 14.5px; line-height: 1.75; }
.prose a, .landing .lead a, .after a, .outro a { color: var(--brand2); }
.cards { display: grid; gap: 12px; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card .when { display: inline-block; margin: 0 0 8px; padding: 2px 9px; border-radius: 7px; background: #2b2b38; font-size: 12px; font-weight: 700; }
.card h3 { font-size: 17px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.prose p.outro { margin-top: 16px; }
.feat .ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 61, 90, .25), rgba(255, 138, 31, .25)); font-size: 22px; }
.after { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.landing .faq { border-top: 1px solid var(--line); }
.ready { text-align: center; }
.ready .btn { display: inline-flex; width: auto; padding: 0 28px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; background: var(--card); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; background: #20202a; }
.bul { margin: 0 0 14px; padding-left: 18px; color: #cfcfda; font-size: 14px; line-height: 1.7; }
.bul b { color: var(--ink); }
.landing .crumb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.landing .crumb b { color: var(--ink); font-weight: 500; }
.landing .bar .btn { min-height: 50px; }
@media (min-width: 900px) {
  .landing { padding-bottom: 0; }
  .landing .bar { display: none !important; }
  .hero { display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: center; padding: 36px 32px 40px; }
  .hero h1 { font-size: 44px; }
  .hero .intro { font-size: 17px; }
  .hero .ctas { grid-template-columns: auto auto; justify-content: start; }
  .hero .ctas .btn { padding: 0 26px; }
  .landing .sec { max-width: 860px; }
  .landing .cards { grid-template-columns: repeat(3, 1fr); }
  .landing .feat { grid-template-columns: 1fr 1fr; }
}

/* 卡片版积分包（价格页和首页积分包区共用） */
.tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 6px; border-radius: 14px; background: var(--card); }
.tabs a { flex: 1; padding: 9px 0; border-radius: 10px; text-align: center; color: var(--muted); font-size: 14px; text-decoration: none; }
.tabs a[aria-current] { background: #2e2e3b; color: var(--ink); font-weight: 700; }
.pk { position: relative; margin: 0 0 14px; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); scroll-margin-top: 70px; }
.pk.hot { border: 2px solid var(--brand2); }
.pk:has(.flag) { padding-top: 36px; }
.pk .flag { position: absolute; top: 0; right: 0; padding: 4px 12px; border-radius: 0 16px 0 12px; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; font-size: 12.5px; font-weight: 800; }
.pk-row { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.pk h2, .pk h3, .landing .pk h2 { margin: 0; font-size: 21px; line-height: 1.25; text-align: left; }
.pk .one { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pk .one b, .pk .eq b, .pk li b { color: #ffc94d; }
.pk .pr { text-align: right; white-space: nowrap; }
.pk .pr b { display: block; font-size: 28px; line-height: 1.1; }
.pk .pr small { color: var(--muted); font-size: 12px; }
.pk .cr { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; font-size: 14px; }
.pk .cr b { font-size: 28px; color: #ffc94d; line-height: 1; }
.pk .meter { display: flex; gap: 3px; margin: 0 0 6px; }
.pk .meter i { flex: 1; height: 9px; border-radius: 2px; background: #33333f; }
.pk .meter i.on { background: #f1f1f5; }
.pk .eq { margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.pk ul { margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; }
.pk li { display: flex; gap: 8px; padding: 3px 0; }
.pk li::before { content: "✓"; color: var(--muted); }
.pk .btn { min-height: 46px; }
.pk-sub, .landing h3.pk-sub, .landing-pricing h2.pk-sub { margin: 22px 0 10px; font-size: 20px; text-align: center; scroll-margin-top: 70px; }
.secnote { margin: 12px 0 14px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.landing .pays, .landing-pricing .pays { justify-content: center; }
.landing-pricing .faq { margin-top: 4px; }
.no-answer { margin-top: 28px; font-size: 20px; }
@media (min-width: 900px) {
  .landing .pk-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
  .landing .pk-list .pk { margin: 0; }
}
.foot .brand { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
@media (min-width: 900px) { .landing #pricing { max-width: 1120px; } .landing #pricing > h2, .landing #pricing > .lead { max-width: 760px; margin-left: auto; margin-right: auto; } }
@media (min-width: 900px) { .showcase .inputs { max-width: 460px; margin-left: auto; margin-right: auto; } }

/* 运营后台（原型 n03-admin）：只给管理员，手机宽度可用 */
.ops-top .top-in { flex-wrap: wrap; height: auto; min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
.ops-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-left: auto; }
.ops-brand { font-size: 15px; }
.ops-me { color: var(--warn); font-weight: 700; overflow-wrap: anywhere; }
.st-warn { color: var(--warn); }
.ops-meme + .ops-meme { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.ops-meme select.txtin { height: 48px; color: var(--ink); font-size: 16px; font-weight: 700; }
.ops-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--card); }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ops-table th, .ops-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ops-table th { color: var(--muted); font-weight: 500; }
.ops-table tr.cur td { background: var(--tint); }
.ops-table td.bad { color: var(--bad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: var(--radius); background: var(--card); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.seg input:checked + label { background: var(--card2); color: var(--ink); font-weight: 700; }
.seg input:focus-visible + label { outline: 2px solid var(--brand2); }
.ops-meme .btn.big { margin-top: 18px; }
.ops-queue { margin: 16px 0 0; padding: 0; list-style: none; }
.ops-queue li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ops-thumbs { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; }
.ops-thumbs img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.ops-row { min-width: 0; overflow-wrap: anywhere; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ops-inline { display: inline; margin: 0; }
.ops-video { display: block; width: 100%; max-width: 240px; margin-top: 8px; border-radius: 10px; background: #000; }
.ops-dialog { width: calc(100% - 32px); max-width: 420px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); }
.ops-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.ops-dialog h2 { margin: 0 0 8px; }
.ops-dialog-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ops-dialog-btns .ops-inline, .ops-dialog-btns .ops-inline .btn { display: flex; width: 100%; }

/* 全站通用 404（原型 n03-admin-d） */
.notfound { padding-top: 48px; text-align: center; }
.notfound-code { margin: 0; color: var(--muted); font-size: 88px; font-weight: 800; line-height: 1; }
.notfound h1 { margin: 16px 0 8px; }
.notfound .btn { margin-top: 20px; }
