/* 缓动 EASE — 亮色、同色系面板、大圆角、胶囊按钮；天蓝做选中，热粉做强调 */
@font-face { font-family: "YSBiaoti"; src: url("/static/fonts/YouSheBiaoTiHei.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pinbo"; src: url("/static/fonts/REEJI-PinboGB.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #ECF0F3;
  --panel: #FFFFFF;
  --soft: #F4F6F8;
  --soft2: #E9EEF1;
  --ink: #0E1A22;
  --ink2: #44535D;
  --mute: #87949D;
  --sky: #0593C6;
  --sky-soft: #E2F1F8;
  --pink: #D83995;
  --pink-soft: #FBE7F2;
  --screen: #0E1A22;
  --r-xl: 24px; --r-lg: 18px; --r-md: 12px;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --title: "YSBiaoti", var(--ui);
  --digit: "Pinbo", "YSBiaoti", var(--ui);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; padding-top: 10px; min-height: 100vh; font: 14px/1.55 var(--ui); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: not-allowed; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }

/* ---------- 顶栏：浮起的圆角条 ---------- */
.top { position: sticky; top: 10px; z-index: 20; margin: 0 10px; height: 60px; padding: 0 12px 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r-lg); }
.brand { justify-self: start; display: flex; align-items: baseline; gap: 7px; }
.brand b { font-family: var(--title); font-weight: 400; font-size: 24px; letter-spacing: .02em; }
.brand i { font-style: normal; font-family: var(--digit); font-size: 12px; letter-spacing: .16em; color: var(--pink); }
.acts { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; background: var(--soft); border-radius: 999px; }
.acts li { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; color: var(--mute); font-size: 13px; white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.acts li b { font-family: var(--digit); font-weight: 400; font-size: 13px; }
.acts li.ok, .acts li.past { color: var(--ink2); }
.acts li.ok { cursor: pointer; }
.acts li.ok:hover { background: var(--soft2); }
.acts li.now { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,34,.1); font-weight: 600; }
.acts li.now b { color: var(--pink); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease), color .2s, transform .15s var(--ease), opacity .2s, box-shadow .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.go { height: 50px; padding: 0 26px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.btn.go:hover:not(:disabled) { background: #22323c; }
.btn.go small { font-size: 15px; transition: transform .2s var(--ease); }
.btn.go:hover:not(:disabled) small { transform: translateX(3px); }
.btn.go.off, .btn:disabled { opacity: .3; }
.btn.go.off { cursor: default; }
.btn.line { background: var(--soft); color: var(--ink); }
.btn.line:hover:not(:disabled) { background: var(--soft2); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.link { color: var(--sky); font-size: 13px; }
.link:hover { text-decoration: underline; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(135,148,157,.35); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; flex: none; }
.spin-slow { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 500; background: var(--soft2); color: var(--ink2); }
.tag.man { background: var(--pink-soft); color: var(--pink); }
.err { color: #c62f6f; font-size: 13px; margin: 8px 0 0; }

/* ---------- 页面容器 ---------- */
.scene { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.scene.narrow { max-width: 1040px; }
.scene.home { max-width: none; padding: 10px; }
.scene.full { max-width: none; padding: 10px; }
.lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 4px 0 22px; }
.lead h1 { margin: 0; font-family: var(--title); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: .01em; }
.lead h1 em { font-style: normal; color: var(--pink); }
.lead p { margin: 0; color: var(--mute); font-size: 14px; max-width: 26em; text-align: right; }

/* ---------- 首页：全屏暗场 ---------- */
body.is-home { padding-top: 0; background: #06080a; }
.scene.home { max-width: none; padding: 0; }
.hx { position: relative; height: 100vh; min-height: 620px; overflow: hidden; background: #06080a; color: #fff; isolation: isolate; }
.hx-shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 60% 55% at 50% 50%, rgba(6,8,10,.35), rgba(6,8,10,.82) 70%, #06080a 100%),
  linear-gradient(180deg, rgba(6,8,10,.6), transparent 25%, transparent 75%, rgba(6,8,10,.8)); }
.hx-grain { position: absolute; inset: -50%; z-index: -1; opacity: .07; pointer-events: none; animation: grain 1s steps(4) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.hx-top { position: absolute; left: 44px; right: 44px; top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hx-mark { display: flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 22px; letter-spacing: .01em; }
.hx-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-top: 6px; }
.hx-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 20px; }
.hx-word { position: relative; margin: 0 0 6px; font-family: var(--title); font-weight: 400; font-size: clamp(140px, 21vw, 330px); line-height: .9; letter-spacing: 0; color: #fff; animation: brake 1.7s cubic-bezier(.05,.9,.1,1) .15s both; }
@keyframes brake { 0% { opacity: 0; transform: translateX(-38vw) skewX(-14deg); filter: blur(18px); } 22% { opacity: 1; } 100% { transform: none; filter: none; } }
@keyframes fadein { to { opacity: 1; } }
.hx-tag { margin: 30px 0 0; font-size: clamp(17px, 1.7vw, 24px); letter-spacing: .32em; color: rgba(255,255,255,.88); padding-left: .32em; animation: up .8s var(--ease) 1.1s both; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hx-cta { margin-top: 38px; animation: up .8s var(--ease) 1.3s both; }
.hx-foot { position: absolute; left: 44px; right: 44px; bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hx-foot ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; font-size: 13px; color: rgba(255,255,255,.6); }
.hx-foot li { display: flex; align-items: baseline; gap: 8px; }
.hx-foot li b { font-family: var(--digit); font-weight: 400; font-size: 12px; color: var(--pink); }
.hx-tc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--digit); font-size: 14px; color: rgba(255,255,255,.75); }
.hx-tc #hx-sp { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.45); transition: color .3s; }
.hx-tc #hx-sp.hot { color: var(--pink); }
@media (max-width: 760px) {
  .hx-top, .hx-foot { left: 20px; right: 20px; }
  .hx-word { font-size: 34vw; }
  .hx-tag { letter-spacing: .18em; }
  .hx-foot ol { gap: 12px; font-size: 12px; }
  .hx-tc { display: none; }
}

/* ---------- 01 上传 ---------- */
.drop { border-radius: var(--r-lg); background: var(--soft); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: background .2s var(--ease); }
.drop:hover { background: var(--soft2); }
.drop strong { display: block; font-family: var(--title); font-weight: 400; font-size: 26px; letter-spacing: .02em; margin-top: 18px; }
.drop small { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.glyph { width: 72px; height: 72px; border-radius: 50%; background: var(--panel); position: relative; flex: none; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(14,26,34,.06); }
.drop:hover .glyph { transform: translateY(-3px); }
.glyph.v::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 19px solid var(--pink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.glyph.a::before, .glyph.a::after { content: ""; position: absolute; width: 5px; border-radius: 3px; background: var(--sky); }
.glyph.a::before { left: 23px; bottom: 23px; height: 22px; box-shadow: 9px -6px 0 0 var(--sky), 18px 3px 0 0 var(--sky); }
.glyph.a::after { left: 50px; bottom: 23px; height: 12px; }
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vid { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--screen); aspect-ratio: 16/9; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid .no { position: absolute; left: 10px; top: 8px; font-family: var(--digit); font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.vid.loading { background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.vid.loading b { font-family: var(--digit); font-weight: 400; font-size: 24px; }
.vid.loading em { font-style: normal; font-size: 13px; color: var(--ink2); }
.vid.loading span { font-size: 12px; color: var(--mute); max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid.loading .meter { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--sky); transition: width .2s; }
.vid.add { background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink2); transition: background .2s; }
.vid.add:hover { background: var(--soft2); }
.vid.add .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 20px; color: var(--sky); }
.need { animation: need .9s ease; }
@keyframes need { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,57,149,0); } 25%, 70% { box-shadow: 0 0 0 2px var(--pink); } }
.upgo { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 18px; }
.upgo .note { color: var(--mute); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.upgo .note b { color: var(--ink); font-weight: 600; }
.upgo .meter { width: 160px; height: 4px; border-radius: 4px; background: var(--soft2); overflow: hidden; }
.upgo .meter i { display: block; height: 100%; background: var(--sky); transition: width .4s; }
#need-note { color: var(--mute); font-weight: 400; }
#need-note.warn { color: var(--pink); font-weight: 600; }

/* ---------- 02 选择：一屏工作台 ---------- */
.studio { display: grid; grid-template-columns: 392px minmax(0, 1fr); gap: 10px; height: calc(100vh - 90px); min-height: 560px; }
.side { background: var(--panel); border-radius: var(--r-xl); padding: 18px 16px 14px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; }
.side-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 6px 6px; }
.side-top h1 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.side-top span { font-size: 12px; color: var(--mute); }
.part { background: var(--soft); border-radius: var(--r-lg); padding: 2px 12px 12px; flex: none; }
.part.shut { padding-bottom: 2px; }
.part-h { width: 100%; height: 40px; display: grid; grid-template-columns: auto 1fr 14px; align-items: center; gap: 10px; text-align: left; }
.part-l { font-size: 13px; font-weight: 600; transition: color .15s; }
.part-h:hover .part-l { color: var(--sky); }
.part-v { justify-self: end; display: flex; align-items: center; gap: 7px; font-family: var(--digit); font-size: 15px; color: var(--ink); }
.part-c { width: 7px; height: 7px; justify-self: center; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(-135deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.part.shut .part-c { transform: rotate(45deg) translate(-2px, -2px); }
.part-b.in { animation: fadein .25s ease both; }
.part-wait { display: flex; gap: 10px; align-items: center; color: var(--mute); font-size: 13px; padding: 14px 6px; margin: 0; }

.kgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.kgrid.three { grid-template-columns: repeat(3, 1fr); }
.kgrid.four { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.k { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 16/9; background: var(--screen); transition: transform .2s var(--ease); }
.k:active { transform: scale(.97); }
.k img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s, opacity .25s; }
.k .hit { position: absolute; inset: 0; width: 100%; cursor: pointer; }
.k .no { position: absolute; left: 6px; bottom: 3px; font-family: var(--digit); font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
.k .t { position: absolute; right: 6px; bottom: 4px; font-family: var(--digit); font-size: 10px; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; transition: opacity .15s; }
.kgrid.three .t, .kgrid.four .t { display: none; }
.k .tick { position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; pointer-events: none; transition: background .2s, transform .2s var(--ease); z-index: 1; }
.k.off { background: var(--soft2); }
.k.off img { filter: grayscale(1); opacity: .35; }
.k.off .tick { background: rgba(255,255,255,.9); color: transparent; box-shadow: inset 0 0 0 1.5px var(--mute); transform: scale(.9); }
.k.last { box-shadow: 0 0 0 2px var(--pink); }
.k .lastb { position: absolute; left: 5px; top: 5px; font-size: 10px; background: var(--pink); color: #fff; padding: 0 6px; border-radius: 999px; line-height: 16px; pointer-events: none; }
.k .eye { position: absolute; right: 5px; bottom: 5px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(14,26,34,.75); color: #fff; font-size: 10px; opacity: 0; transition: opacity .15s; z-index: 2; }
.k:hover .eye { opacity: 1; }
.k:hover .t { opacity: 0; }

.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.g { text-align: left; }
.g .pic { border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--screen); transition: box-shadow .2s, transform .2s var(--ease); }
.g:hover .pic { transform: translateY(-2px); }
.g .pic img { width: 100%; height: 100%; object-fit: cover; }
.g span { display: block; font-size: 11px; color: var(--mute); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g.on .pic { box-shadow: 0 0 0 2px var(--soft), 0 0 0 4px var(--sky); }
.g.on span { color: var(--ink); font-weight: 600; }

.cands { display: flex; flex-wrap: wrap; gap: 6px; }
.cand { position: relative; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--panel); font-family: var(--digit); font-size: 13px; transition: background .2s, color .2s; }
.cand:hover:not(:disabled) { background: var(--soft2); }
.cand.on { background: var(--ink); color: #fff; }
.cand:disabled { opacity: .35; }
.cand .rec { position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.song-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--soft2); overflow: hidden; }
.bar .used { position: absolute; top: 0; bottom: 0; background: rgba(5,147,198,.45); }
.bar .hold { position: absolute; top: 0; bottom: 0; background: var(--pink); }
.bar .pin { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.play { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; background: var(--panel); color: var(--sky); transition: background .2s, color .2s; }
.play:hover, .play.on { background: var(--sky); color: #fff; }
.minor { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.minor .btn.line { background: var(--panel); }
.manual { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.manual input { flex: 1; min-width: 0; height: 30px; border: 0; border-radius: 999px; background: var(--panel); padding: 0 12px; font-size: 13px; outline: none; }
.manual input:focus { box-shadow: 0 0 0 2px var(--sky); }
.manual .btn.line { background: var(--panel); }

.track { position: relative; margin-top: 2px; }
.track .cut { position: absolute; top: 5px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--ink); pointer-events: none; }
.range { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--pink) var(--p, 50%), var(--soft2) var(--p, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 1px 4px rgba(14,26,34,.3); transition: transform .15s; }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--soft2); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--pink); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(14,26,34,.3); }
.ends { position: relative; display: flex; justify-content: space-between; height: 16px; font-family: var(--digit); font-size: 10px; color: var(--mute); }
.ends .cutl { position: absolute; top: 0; transform: translateX(-50%); color: var(--ink); font-family: var(--ui); font-size: 11px; }

.stage { min-width: 0; min-height: 0; display: flex; background: var(--panel); border-radius: var(--r-xl); padding: 22px; }
.fit { flex: 1; min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; }
.fit .frame { width: min(100cqw, (100cqh - 74px) * 16 / 9); }
.screen { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--screen); user-select: none; -webkit-user-select: none; }
.screen > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.screen.empty { display: grid; place-items: center; color: rgba(255,255,255,.7); text-align: center; padding: 0 30px; }
.screen .chips { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.screen .chips span { font-size: 12px; color: #fff; background: rgba(14,26,34,.6); padding: 3px 10px; border-radius: 999px; }
.screen .chips span.hot { background: var(--pink); }
.screen .hold-tip { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.8); background: rgba(14,26,34,.5); padding: 3px 10px; border-radius: 999px; }
.stage .cta { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.stage .cta .note { color: var(--mute); font-size: 13px; }
.stage .cta .note b { color: var(--ink); font-weight: 600; }
.studio.busy .side .part, .studio.busy .screen img { opacity: .6; transition: opacity .2s; }

/* ---------- 03 生成 ---------- */
.screen .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,26,34,.82)); }
.screen .hud { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: flex-end; gap: 18px; color: #fff; }
.screen .hud .pct { font-family: var(--digit); font-size: 88px; line-height: .8; }
.screen .hud .pct small { font-size: 26px; margin-left: 4px; }
.screen .hud .msg { padding-bottom: 4px; }
.screen .hud .msg b { display: block; font-size: 17px; font-weight: 600; }
.screen .hud .msg span { font-size: 12px; color: rgba(255,255,255,.75); }
.screen .hud .eta { margin-left: auto; text-align: right; font-size: 12px; color: rgba(255,255,255,.75); padding-bottom: 4px; }
.screen .meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.screen .meter i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .8s ease; }
.kstrip { display: flex; gap: 8px; margin-top: 10px; padding: 10px; background: var(--panel); border-radius: var(--r-lg); }
.ki { position: relative; flex: 1; max-width: 120px; border-radius: 8px; overflow: hidden; background: var(--screen); aspect-ratio: 16/9; opacity: .3; filter: grayscale(1); transition: opacity .5s, filter .5s, transform .5s var(--ease); }
.ki.on { opacity: 1; filter: none; transform: translateY(-2px); }
.ki.end { margin-left: auto; }
.ki.end.on { box-shadow: 0 0 0 2px var(--pink); }
.ki img { width: 100%; height: 100%; object-fit: cover; }
.ki span { position: absolute; left: 6px; bottom: 2px; font-family: var(--digit); font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; }
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.facts { margin: 0; font-size: 13px; color: var(--mute); }
.facts b { color: var(--ink); font-weight: 600; }
.failp { margin-top: 12px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--pink-soft); color: #8d1f5d; }
.failp b { display: block; margin-bottom: 4px; }
.cta { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 04 下载 ---------- */
.hist { margin-top: 10px; background: var(--panel); border-radius: var(--r-xl); padding: 16px 18px 8px; }
.hi { display: flex; gap: 16px; align-items: baseline; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; text-align: left; font-size: 13px; color: var(--ink2); transition: background .15s; }
.hi:hover { background: var(--soft); }
.hi b { font-weight: 600; color: var(--ink); min-width: 52px; }
.hi.on b { color: var(--pink); }

/* ---------- 弹窗 / 提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(14,26,34,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(1100px, 100%); background: var(--panel); border-radius: var(--r-xl); overflow: hidden; padding: 8px; animation: fadein .25s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 10px 12px; font-size: 13px; color: var(--ink2); }
.modal video { width: 100%; max-height: 76vh; background: #000; border-radius: var(--r-lg); }
.x { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: var(--soft); color: var(--ink2); }
.x:hover { background: var(--soft2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; max-width: min(520px, calc(100% - 32px)); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(14,26,34,.25); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; height: auto; }
  .stage { order: -1; padding: 12px; }
  .fit { container-type: normal; display: block; }
  .fit .frame { width: 100%; }
  .side { overflow: visible; padding-bottom: 90px; }
  .stage .cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 15; margin: 0; padding: 8px; background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 6px 24px rgba(14,26,34,.15); }
  .stage .cta .btn.go { flex: 1; }
  .stage .cta .note { display: none; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 8px 0 14px; }
  .acts { justify-self: center; }
  .acts li { padding: 0 9px; }
  .acts li span { display: none; }
  .brand i { display: none; }
  .scene { padding: 22px 12px 70px; }
  .lead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lead p { text-align: left; }
  .vids { grid-template-columns: repeat(2, 1fr); }
  .screen .hud .pct { font-size: 56px; }
  .kstrip { overflow-x: auto; }
  .ki { flex: none; width: 90px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 结尾滤镜 */
.efs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.ef { text-align: left; }
.ef .pic { aspect-ratio: 16/9; border-radius: 8px; background: var(--screen) center / 300% 100% no-repeat; transition: box-shadow .2s, transform .2s var(--ease); }
.ef.none .pic { background: var(--panel); display: grid; place-items: center; font-size: 12px; color: var(--mute); }
.ef:hover .pic { transform: translateY(-2px); }
.ef span { display: block; font-size: 11px; color: var(--mute); margin-top: 4px; }
.ef.on .pic { box-shadow: 0 0 0 2px var(--soft), 0 0 0 4px var(--sky); }
.ef.on span { color: var(--ink); font-weight: 600; }
.efcard { display: block; width: 100%; margin-top: 10px; border-radius: 10px; overflow: hidden; position: relative; cursor: zoom-in; }
.efcard img { width: 100%; aspect-ratio: 16/3; object-fit: cover; }
.eflabels { display: grid; grid-template-columns: repeat(3, 1fr); position: absolute; left: 0; right: 0; bottom: 0; }
.eflabels span { font-size: 10px; color: #fff; padding: 10px 6px 3px; background: linear-gradient(transparent, rgba(14,26,34,.7)); }
.modal img { width: 100%; border-radius: var(--r-lg); display: block; }

/* ---------- 品牌 ---------- */
.brand { align-items: center; gap: 6px; }
.brand b { font-family: var(--title); font-size: 26px; letter-spacing: .01em; }
.brand i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-top: 8px; }

/* ---------- 01 上传 / 04 下载：和 02 同一套工作台 ---------- */
.files { display: flex; flex-direction: column; gap: 6px; }
.file { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 8px 7px 7px; border-radius: 12px; background: var(--panel); transition: box-shadow .2s, background .2s; }
.file.on { box-shadow: 0 0 0 2px var(--sky); }
.file img, .file .ph { width: 64px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; flex: none; background: var(--soft2); position: relative; overflow: hidden; }
.file .ph .meter { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--sky); transition: width .2s; }
.fx { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: var(--mute); flex: none; }
.fx:hover { background: var(--pink-soft); color: var(--pink); }
.file .btn { position: relative; z-index: 1; }
.file.add { width: 100%; justify-content: center; gap: 8px; color: var(--ink2); font-size: 13px; background: transparent; border: 1.5px dashed #c9d3da; }
.file.add:hover { background: var(--panel); border-color: var(--sky); color: var(--sky); }
.file.add .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; color: var(--sky); font-size: 15px; }
.file.song .disc { width: 38px; height: 38px; flex: none; margin: 0 13px 0 6px; border-radius: 50%; background: radial-gradient(circle, var(--pink) 0 20%, var(--ink) 21% 100%); box-shadow: inset 0 0 0 5px #17262f, inset 0 0 0 6px #273b47; }
.stage.over { box-shadow: 0 0 0 2px var(--sky); }
.stage .upgo { margin-top: 16px; }
#need-video.need, #need-song.need { animation: none; }
#need-video.need .part, #need-song.need .part { animation: need .9s ease; }
.side .hi { margin: 0; padding: 9px 10px; gap: 12px; }

/* ---------- 01 上传：片段带 ---------- */
.upl { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 128px; gap: 10px; height: calc(100vh - 90px); min-height: 560px; }
.upl-reel { background: var(--panel); border-radius: var(--r-xl); padding: 26px 28px; display: flex; flex-direction: column; min-height: 0; transition: box-shadow .2s; }
.upl-reel header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.upl-reel h1 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .01em; }
.upl-reel header span { font-size: 13px; color: var(--mute); }
.reel { flex: 1; min-height: 0; display: grid; align-items: center; align-content: center; gap: 30px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.clip-card { position: relative; margin: 0; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--screen); }
.clip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.clip-card:hover img { transform: scale(1.03); }
.clip-card .idx { position: absolute; left: 14px; top: 10px; font-family: var(--digit); font-size: 28px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.clip-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(14,26,34,.85)); color: #fff; display: flex; flex-direction: column; }
.clip-card figcaption b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-card figcaption span { font-size: 12px; opacity: .75; }
.clip-card .fx { position: absolute; right: 10px; top: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: rgba(14,26,34,.55); color: #fff; opacity: 0; transition: opacity .2s, background .2s; }
.clip-card:hover .fx, .clip-card .fx:focus-visible { opacity: 1; }
.clip-card .fx:hover { background: var(--pink); color: #fff; }
.clip-card.loading { background: var(--soft); display: flex; align-items: center; justify-content: center; }
.clip-card.loading > b { font-family: var(--digit); font-weight: 400; font-size: 40px; color: var(--ink); }
.clip-card.loading .meter { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--sky); transition: width .2s; }
.clip-card.loading figcaption { background: none; color: var(--ink2); }
.clip-card.add { width: 100%; aspect-ratio: auto; height: 100%; min-height: 140px; overflow: visible; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink2); font-size: 14px; transition: background .2s; }
.clip-card.add:hover { background: var(--soft2); }
.clip-card.add .plus { width: 46px; height: 46px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; color: var(--sky); font-size: 26px; font-weight: 300; }
.join { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.reel-empty { flex: 1; border-radius: var(--r-lg); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.reel-empty:hover, .upl-reel.over .reel-empty { background: var(--sky-soft); }
.reel-empty strong { font-family: var(--title); font-weight: 400; font-size: 32px; margin-top: 20px; }
.reel-empty small { color: var(--mute); font-size: 13px; margin-top: 4px; }
.upl-reel.over, .upl-song.over { box-shadow: 0 0 0 2px var(--sky); }
.upl-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 10px; }
.upl-song { background: var(--panel); border-radius: var(--r-xl); display: flex; align-items: center; gap: 18px; padding: 0 28px; transition: box-shadow .2s, background .2s; }
.upl-song.empty { cursor: pointer; }
.upl-song.empty:hover { background: #fafcfd; }
.upl-song .lab { font-family: var(--digit); font-size: 15px; color: var(--pink); width: 52px; flex: none; }
.disc.big { width: 68px; height: 68px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--pink) 0 16%, var(--ink) 17% 100%); box-shadow: inset 0 0 0 8px #17262f, inset 0 0 0 9px #273b47, inset 0 0 0 18px #17262f, inset 0 0 0 19px #273b47; }
.upl-song .glyph { width: 68px; height: 68px; background: var(--soft); box-shadow: none; }
.upl-song .glyph.a::before { left: 21px; bottom: 21px; }
.upl-song .glyph.a::after { left: 47px; bottom: 21px; }
.song-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-t b { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-t span { font-size: 13px; color: var(--mute); }
.song-meter { height: 4px; border-radius: 4px; background: var(--soft2); overflow: hidden; margin-top: 6px; max-width: 280px; }
.song-meter i { display: block; height: 100%; background: var(--sky); }
.upl-go { background: var(--ink); border-radius: var(--r-xl); display: flex; align-items: center; padding: 0 16px 0 28px; }
.upl-go .upgo { flex: 1; margin: 0; justify-content: space-between; }
.upl-go .note, .upl-go #need-note { color: rgba(255,255,255,.65); }
.upl-go .note b { color: #fff; }
.upl-go #need-note.warn { color: #ff8cc6; }
.upl-go .btn.go { background: var(--pink); }
.upl-go .btn.go:hover:not(:disabled) { background: #e44aa3; }
.upl-go .btn.go.off { opacity: .45; }
.upl-go .meter { background: rgba(255,255,255,.15); }
#need-video.need, #need-song.need { animation: need .9s ease; }

/* ---------- 04 下载：影院 ---------- */
.dlv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; height: calc(100vh - 90px); min-height: 560px; }
.dlv.has-hist { grid-template-columns: minmax(0, 1fr) 260px; }
.dlv-main { background: var(--panel); border-radius: var(--r-xl); padding: 22px 24px 20px; display: flex; flex-direction: column; min-height: 0; }
.dlv-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.dlv-head h1 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 34px; line-height: 1; }
.dlv-acts { display: flex; gap: 6px; }
.dlv-fit { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.dlv-frame { width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.dlv-frame video { width: 100%; height: 100%; display: block; background: #000; }
.dlv-bar { display: flex; align-items: center; gap: 20px; margin-top: 16px; background: var(--soft); border-radius: var(--r-lg); padding: 10px 10px 10px 8px; }
.specs { flex: 1; min-width: 0; display: flex; overflow-x: auto; }
.specs div { padding: 2px 18px; border-left: 1px solid var(--soft2); white-space: nowrap; }
.specs div:first-child { border-left: 0; }
.specs span { display: block; font-size: 11px; color: var(--mute); }
.specs b { font-family: var(--digit); font-weight: 400; font-size: 18px; }
.dlv-bar .btn.go { height: 56px; padding: 0 28px; background: var(--pink); flex: none; }
.dlv-bar .btn.go:hover { background: #e44aa3; }
.dlv-bar .btn.go small { font-size: 12px; font-weight: 500; opacity: .85; }
.dlv-hist { background: var(--panel); border-radius: var(--r-xl); padding: 20px 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.dlv-hist h2 { margin: 0 4px 6px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.dlv-hist h2 span { color: var(--mute); font-weight: 400; }
.hcard { text-align: left; background: var(--soft); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transition: background .2s, box-shadow .2s; }
.hcard:hover { background: var(--soft2); }
.hcard.on { background: var(--panel); box-shadow: 0 0 0 2px var(--pink); }
.hcard b { font-size: 14px; font-weight: 600; }
.hcard span { font-size: 12px; color: var(--mute); }
@media (max-width: 1000px) {
  .upl, .dlv, .dlv.has-hist { height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .upl-bottom { grid-template-columns: 1fr; }
  .upl-song, .upl-go { min-height: 96px; padding-top: 14px; padding-bottom: 14px; }
  .reel { min-height: 220px; }
  .dlv-fit { container-type: normal; display: block; }
  .dlv-frame { width: 100%; }
  .dlv-bar { flex-direction: column; align-items: stretch; }
}
.reel > .clip-card:not(:first-child)::before { content: "+"; position: absolute; left: -23px; top: 50%; margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 12px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.reel > .clip-card:not(:first-child) { overflow: visible; }
.reel > .clip-card:not(:first-child) img { border-radius: var(--r-lg); }
.reel > .clip-card:not(:first-child) figcaption { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.reel > .clip-card.add::before { display: none; }
.seq { margin-top: 14px; }
.seq-bar { display: flex; gap: 3px; height: 26px; }
.seq-bar i { min-width: 24px; border-radius: 6px; font-style: normal; font-family: var(--digit); font-size: 12px; color: #fff; display: flex; align-items: center; padding-left: 8px; }
.seq-bar .s0 { background: var(--sky); } .seq-bar .s1 { background: #4fb3d9; } .seq-bar .s2 { background: #7cc6e3; } .seq-bar .s3 { background: #2c7fa3; }
.seq-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 5px; }

/* ---------- 顶栏：工程标签 + 步骤 ---------- */
.top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; height: 64px; }
.ptabs { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { position: relative; flex: none; display: flex; align-items: center; height: 46px; border-radius: 14px; background: transparent; transition: background .2s; }
.ptab:hover { background: var(--soft); }
.ptab.on { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ptab-hit { display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 30px 0 6px; text-align: left; }
.ptab img, .ptab-ph { width: 54px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft2); }
.ptab-t { display: flex; flex-direction: column; line-height: 1.25; max-width: 150px; }
.ptab-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptab-t small { font-size: 11px; color: var(--mute); white-space: nowrap; }
.ptab.run .ptab-t small { color: var(--pink); font-weight: 600; }
.ptab.q .ptab-t small { color: var(--sky); }
.ptab.done .ptab-t small { color: var(--ink2); }
.ptab-x { position: absolute; right: 6px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; font-size: 9px; color: var(--mute); display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.ptab:hover .ptab-x, .ptab-x:focus-visible { opacity: 1; }
.ptab-x:hover { background: var(--pink-soft); color: var(--pink); }
.ptab-edit { width: 180px; height: 34px; margin: 0 6px; border: 0; border-radius: 9px; background: var(--panel); padding: 0 10px; font-size: 13px; font-weight: 600; outline: none; box-shadow: 0 0 0 2px var(--sky); }
.ptab-new { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--ink2); font-size: 20px; font-weight: 300; display: grid; place-items: center; margin-left: 4px; transition: background .2s, color .2s; }
.ptab-new:hover { background: var(--ink); color: #fff; }
.acts { justify-self: end; }
.acts li { padding: 0 12px 0 10px; }
.studio, .upl, .dlv { height: calc(100vh - 94px); }
.hcard { position: relative; }
.hdel { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-style: normal; color: var(--mute); display: grid; place-items: center; opacity: 0; transition: opacity .15s; cursor: pointer; }
.hcard:hover .hdel { opacity: 1; }
.hdel:hover { background: var(--pink-soft); color: var(--pink); }
@media (max-width: 1100px) { .acts li span { display: none; } }
@media (max-width: 760px) { .top { grid-template-columns: auto minmax(0, 1fr); } .acts { display: none; } .ptab-t small { display: none; } }

/* 首页：视频底 + 故障字 */
.hx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(.9) contrast(1.05); }
.hx-shade { background:
  radial-gradient(ellipse 55% 50% at 50% 50%, rgba(6,8,10,.45), rgba(6,8,10,.8) 70%, rgba(6,8,10,.95) 100%),
  linear-gradient(180deg, rgba(6,8,10,.55), transparent 25%, transparent 75%, rgba(6,8,10,.75)); }
.hx-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; background: repeating-linear-gradient(180deg, rgba(0,0,0,.6) 0 1px, transparent 1px 3px); }
.hx-bars i { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.5); mix-blend-mode: overlay; opacity: 0; animation: bar 4.2s steps(1) infinite; }
@keyframes bar { 0%, 91%, 100% { opacity: 0; transform: none; } 92% { opacity: 1; transform: translateX(-4%) scaleY(6); } 94% { opacity: .6; transform: translateX(3%) scaleY(2); } 96% { opacity: 0; } }
.hx-word .main { position: relative; display: block; }
.hx-word .gl { position: absolute; inset: 0; display: block; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.hx-word .gl.a { color: #ff2b9a; animation: gla 3.2s steps(1) 1.8s infinite; clip-path: inset(0 0 100% 0); }
.hx-word .gl.b { color: #19d9ff; animation: glb 3.2s steps(1) 1.8s infinite; clip-path: inset(0 0 100% 0); }
@keyframes gla {
  0%, 70%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  71% { clip-path: inset(18% 0 58% 0); transform: translate(-26px, 0); }
  73% { clip-path: inset(62% 0 12% 0); transform: translate(30px, 0); }
  75% { clip-path: inset(36% 0 40% 0); transform: translate(-6px, 0); }
  77% { clip-path: inset(0 0 100% 0); }
  88% { clip-path: inset(80% 0 4% 0); transform: translate(8px, 0); }
  89% { clip-path: inset(0 0 100% 0); }
}
@keyframes glb {
  0%, 70%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  71% { clip-path: inset(52% 0 30% 0); transform: translate(28px, 0); }
  73% { clip-path: inset(8% 0 70% 0); transform: translate(-30px, 0); }
  75% { clip-path: inset(70% 0 8% 0); transform: translate(6px, 0); }
  77% { clip-path: inset(0 0 100% 0); }
  88% { clip-path: inset(20% 0 66% 0); transform: translate(-8px, 0); }
  89% { clip-path: inset(0 0 100% 0); }
}
.hx-word .main { animation: shake 3.2s steps(1) 1.8s infinite; text-shadow: 3px 0 rgba(255,43,154,.55), -3px 0 rgba(25,217,255,.55); }
@keyframes shake { 0%, 70%, 78%, 87%, 90%, 100% { transform: none; } 71% { transform: translate(3px, -1px) skewX(-6deg); } 73% { transform: translate(-4px, 1px); } 75% { transform: translate(2px, 0) skewX(4deg); } 88% { transform: translate(-3px, 0); } }
.hx-tag { margin-top: 26px; }

/* ---------- 首页 v3：更重的故障、更有存在感的标语和按钮 ---------- */
.hx-word .main { text-shadow: 5px 0 rgba(255,43,154,.75), -5px 0 rgba(25,217,255,.75); animation: shake2 2.4s steps(1) 1.8s infinite; }
.hx-word .gl.a { animation: gla2 2.4s steps(1) 1.8s infinite; }
.hx-word .gl.b { animation: glb2 2.4s steps(1) 1.8s infinite; }
@keyframes gla2 {
  0%, 58%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  60% { clip-path: inset(10% 0 64% 0); transform: translate(-46px, 0); }
  63% { clip-path: inset(56% 0 20% 0); transform: translate(52px, 0); }
  66% { clip-path: inset(30% 0 46% 0); transform: translate(-30px, 0); }
  69% { clip-path: inset(74% 0 6% 0); transform: translate(38px, 0); }
  72% { clip-path: inset(0 0 100% 0); }
  86% { clip-path: inset(40% 0 44% 0); transform: translate(-60px, 0); }
  88% { clip-path: inset(0 0 100% 0); }
}
@keyframes glb2 {
  0%, 58%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  60% { clip-path: inset(48% 0 30% 0); transform: translate(44px, 0); }
  63% { clip-path: inset(4% 0 76% 0); transform: translate(-50px, 0); }
  66% { clip-path: inset(66% 0 10% 0); transform: translate(26px, 0); }
  69% { clip-path: inset(22% 0 60% 0); transform: translate(-36px, 0); }
  72% { clip-path: inset(0 0 100% 0); }
  86% { clip-path: inset(14% 0 70% 0); transform: translate(58px, 0); }
  88% { clip-path: inset(0 0 100% 0); }
}
@keyframes shake2 { 0%, 58%, 73%, 85%, 89%, 100% { transform: none; opacity: 1; } 60% { transform: translate(6px, -2px) skewX(-10deg); } 63% { transform: translate(-8px, 2px) skewX(6deg); opacity: .85; } 66% { transform: translate(4px, 0); } 69% { transform: translate(-5px, 1px) skewX(-4deg); opacity: .9; } 86% { transform: translate(-6px, 0) skewX(8deg); } }
.hx-video { animation: vglitch 4.8s steps(1) 2s infinite; }
@keyframes vglitch { 0%, 29%, 33%, 79%, 83%, 100% { transform: none; filter: saturate(.9) contrast(1.05); } 30% { transform: translateX(-1.5%) scale(1.02); filter: hue-rotate(40deg) saturate(1.6) contrast(1.3); } 31.5% { transform: translateX(1.2%); filter: invert(.08) saturate(1.4); } 80% { transform: translate(1%, -.5%) scale(1.03); filter: hue-rotate(-30deg) contrast(1.4); } 81.5% { transform: translateX(-1%); } }
.hx-bars i { height: 3px; animation-duration: 2.4s; }
.hx-bars i:nth-child(odd) { background: rgba(255,43,154,.7); mix-blend-mode: screen; }
.hx-bars i:nth-child(even) { background: rgba(25,217,255,.6); mix-blend-mode: screen; }
@keyframes bar { 0%, 60%, 100% { opacity: 0; transform: none; } 61% { opacity: 1; transform: translateX(-6%) scaleY(8); } 64% { opacity: .8; transform: translateX(5%) scaleY(3); } 67% { opacity: 0; } 86% { opacity: .9; transform: translateX(3%) scaleY(5); } 88% { opacity: 0; } }

/* 标语：标题字、分三段擦出来，“击杀集锦”压一块粉 */
.hx-tag { margin: 30px 0 0; padding: 0; display: flex; gap: .3em; align-items: center; font-family: var(--title); font-size: clamp(30px, 3.4vw, 54px); letter-spacing: .04em; line-height: 1.15; color: #fff; animation: none; }
.hx-tag span { display: inline-block; clip-path: inset(0 100% 0 0); animation: wipe .5s cubic-bezier(.7,0,.2,1) forwards; }
.hx-tag .t1 { animation-delay: 1.05s; }
.hx-tag .t2 { animation-delay: 1.25s; }
.hx-tag .t3 { animation-delay: 1.45s; background: var(--pink); color: #fff; padding: 0 .28em; transform: skewX(-10deg); box-shadow: 6px 6px 0 rgba(25,217,255,.85); }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* 开始按钮：斜切的粉色块 + 青色错位影子，悬停时抖一下 */
.hx-cta { margin-top: 46px; animation: up .7s var(--ease) 1.8s both; }
@keyframes btnglitch { 0% { transform: skewX(-12deg) translate(4px, -2px); } 25% { transform: skewX(-12deg) translate(-5px, 2px); clip-path: inset(0 0 40% 0); } 50% { transform: skewX(-12deg) translate(3px, 0); clip-path: inset(45% 0 0 0); } 75% { transform: skewX(-12deg) translate(-2px, 0); clip-path: none; } 100% { transform: skewX(-12deg); } }
@media (max-width: 760px) { .hx-tag { flex-wrap: wrap; justify-content: center; } .hx-go { height: 58px; font-size: 24px; } }

/* 首页 v4：去掉花哨按钮，只留一个带下划线的“开始”；大字和标语加投影 */
.hx-tag { filter: drop-shadow(0 6px 12px rgba(0,0,0,.75)) drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.hx-start { position: relative; padding: 6px 4px 10px; font-family: var(--title); font-size: 34px; letter-spacing: .3em; padding-left: .3em; color: #fff; filter: drop-shadow(0 6px 12px rgba(0,0,0,.75)); }
.hx-start::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff; transform-origin: left; transition: background .2s, transform .35s var(--ease); }
.hx-start:hover { color: var(--pink); }
.hx-start:hover::after { background: var(--pink); transform: scaleX(1.25); }
.hx-start:active { transform: translateY(1px); }
.hx-word .main { text-shadow: 5px 0 rgba(255,43,154,.75), -5px 0 rgba(25,217,255,.75), 0 16px 34px rgba(0,0,0,.8), 0 3px 6px rgba(0,0,0,.6); }

/* 03 生成：和 04 同一个大画面框 */
.gen .dlv-frame .screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.gen .kstrip { flex: 1; min-width: 0; margin: 0; padding: 0; background: none; overflow-x: auto; }
.gen .ki { max-width: 110px; }
.gen .dlv-bar .facts { flex: none; padding-right: 12px; }
.gen .dlv-bar.fail { align-items: stretch; }
.gen .dlv-bar.fail .failp { flex: 1; margin: 0; }
.gen .dlv-bar.fail .btn { align-self: center; }
@media (max-width: 760px) {
  .reel { grid-template-columns: 1fr !important; gap: 14px; }
  .reel > .clip-card:not(:first-child)::before { left: 50%; top: -14px; margin: 0 0 0 -8px; }
  .clip-card.add { min-height: 90px; }
  .upl-reel { padding: 18px; }
  .dlv-main, .upl-reel, .upl-song, .upl-go { min-width: 0; }
  .dlv-bar { min-width: 0; }
  .specs { width: 100%; }
  .dlv-head { flex-wrap: wrap; }
}

/* 录像调换顺序 */
.clip-card[draggable="true"] { cursor: grab; }
.clip-card.dragging { opacity: .35; }
.clip-card.drop-l { box-shadow: -6px 0 0 var(--pink); }
.clip-card.drop-r { box-shadow: 6px 0 0 var(--pink); }
.clip-card .ord { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.clip-card:hover .ord, .clip-card .ord button:focus-visible { opacity: 1; }
.clip-card .ord button { width: 28px; height: 28px; border-radius: 50%; background: rgba(14,26,34,.6); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.clip-card .ord button:hover:not(:disabled) { background: var(--pink); }
.clip-card .ord button:disabled { opacity: .3; }
.clip-card figcaption { padding-right: 80px; }

/* 01：BGM 波形 + 右下角整块按钮 */
.upl-song .wave { flex: 1; min-width: 0; height: 56px; margin: 0 8px; }
.upl-song .song-t { flex: 0 1 auto; max-width: 260px; }
.upl-go { padding: 0; background: none; }
.upl-go .upgo { height: 100%; display: flex; }
.upl-btn { position: relative; flex: 1; height: 100%; border-radius: var(--r-xl); background: var(--pink); color: #fff; font-family: var(--title); font-size: 34px; letter-spacing: .12em; overflow: hidden; transition: background .2s, transform .15s var(--ease); }
.upl-btn:hover:not(.off) { background: #e44aa3; }
.upl-btn:active:not(.off) { transform: scale(.985); }
.upl-btn span { position: relative; z-index: 1; }
.upl-btn.off { background: var(--ink); color: rgba(255,255,255,.35); cursor: default; }
.upl-btn.busy { background: var(--ink); color: #fff; }
.upl-btn i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pink); transition: width .4s; }

/* 02：卡点微调 + 卡上那一刻的提示 */
.nudge { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.nudge button { height: 30px; padding: 0 10px; border-radius: 999px; background: var(--panel); font-size: 12px; font-family: var(--digit); transition: background .15s, color .15s; }
.nudge button:hover { background: var(--ink); color: #fff; }
.nudge b { flex: 1; text-align: center; font-family: var(--digit); font-weight: 400; font-size: 18px; border-radius: 8px; transition: background .3s, color .3s; }
#drop-v.beat { animation: beatv .6s ease-out; }
@keyframes beatv { 0% { background: var(--pink); color: #fff; transform: scale(1.12); } 100% { background: transparent; color: var(--ink); transform: none; } }
.stage .screen.beat::after { content: "卡点"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--title); font-size: 64px; letter-spacing: .2em; color: #fff; background: rgba(216,57,149,.35); animation: beatflash .7s ease-out forwards; pointer-events: none; }
@keyframes beatflash { 0% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: none; } }
.song-line .bar.beat .hold { animation: beatbar .6s ease-out; }
@keyframes beatbar { 0% { filter: brightness(1.8); } 100% { filter: none; } }

/* BGM 卡点：试听放中间做主按钮，两边是微调 */
.song-line { margin-top: 14px; }
.song-line .bar { height: 10px; border-radius: 5px; }
.nudge { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.nudge button { height: 38px; padding: 0; border-radius: 12px; background: var(--panel); font-size: 13px; font-family: var(--digit); color: var(--ink2); }
.nudge button:hover { background: var(--ink); color: #fff; }
.nudge .play { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 12px; background: var(--pink); color: #fff; font-family: var(--ui); font-size: 14px; font-weight: 600; box-shadow: none; }
.nudge .play::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nudge .play:hover { background: #e44aa3; color: #fff; }
.nudge .play.on { background: var(--ink); }
.nudge .play.on::before { border: 0; width: 9px; height: 9px; background: currentColor; border-radius: 1px; }
.side .cands { gap: 6px; }
.side .minor { margin-top: 12px; gap: 16px; }
#drop-v { padding: 2px 6px; margin: -2px -6px; border-radius: 6px; }
.rename { cursor: text; }
.rename:hover { color: var(--sky); }
.ptab-ed { position: absolute; right: 28px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; color: var(--mute); display: grid; place-items: center; opacity: 0; transition: opacity .15s, background .15s; }
.ptab:hover .ptab-ed, .ptab-ed:focus-visible { opacity: 1; }
.ptab-ed:hover { background: var(--sky-soft); color: var(--sky); }
.ptab.on .ptab-hit { padding-right: 52px; }

/* 01：松一点 */
.scene.full { padding: 14px; }
.upl { gap: 14px; height: calc(100vh - 102px); grid-template-rows: minmax(0, 1fr) 132px; }
.upl-reel { padding: 34px 40px 30px; }
.upl-reel header { margin-bottom: 8px; }
.reel { gap: 40px; padding: 24px 4px 24px; }
.seq { margin-top: 20px; }
.upl-bottom { gap: 14px; }
.upl-song { padding: 0 36px; gap: 24px; }
.studio, .dlv { height: calc(100vh - 102px); gap: 14px; }
.reel > .clip-card:not(:first-child)::before { left: -28px; }
.top { margin: 0 14px; }
body { padding-top: 14px; }
.top { top: 14px; }
.upl, .studio, .dlv { height: calc(100vh - 106px); }
.aw { display: block; width: 100%; height: 64px; margin-top: 12px; background: var(--panel); border-radius: 12px; }

/* 02：预览铺满右侧，按钮和信息压在画面上 */
.stage.full { position: relative; padding: 0; overflow: hidden; display: block; background: var(--screen); }
.stage.full > .screen { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.stage.full > .screen > img { object-fit: cover; }
.stage.full > .screen.empty { display: grid; }
.stage.full .screen .chips { left: 20px; bottom: 22px; z-index: 1; }
.stage.full .screen .hold-tip { top: 18px; right: 18px; bottom: auto; }
.stage.full .screen::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, rgba(14,26,34,.65)); pointer-events: none; z-index: 0; }
.cta.over { position: absolute; right: 20px; bottom: 18px; margin: 0; z-index: 2; display: flex; align-items: center; gap: 16px; }
.cta.over .note { color: rgba(255,255,255,.75); font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.cta.over .note b { color: #fff; }
.cta.over .btn.go { background: var(--pink); height: 52px; padding: 0 26px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.cta.over .btn.go:hover:not(:disabled) { background: #e44aa3; }
.pnote { margin: 10px 2px 0; font-size: 12px; color: var(--mute); }
@media (max-width: 1000px) {
  .stage.full { height: 56vw; min-height: 220px; }
  .cta.over { position: fixed; left: 10px; right: 10px; bottom: 10px; padding: 8px; background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 6px 24px rgba(14,26,34,.15); }
  .cta.over .note { display: none; }
  .cta.over .btn.go { flex: 1; }
}


/* ---------- 交互：自然的淡入淡出 ---------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.scene.full.enter { animation: fadein .32s ease both; }
main img { transition: opacity .35s ease; }
.clip-card img { transition: opacity .35s ease, transform .4s var(--ease); }
.g .pic img, .ki img, .ptab img { transition: opacity .35s ease; }
img.ld { opacity: 0 !important; }
.screen > img { transition: opacity .25s ease; }
.toast { opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s ease, transform .25s ease; animation: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { animation: fadein .2s ease; }
.ptab, .acts li, .part, .cand, .g .pic, .k, .k img, .k .tick { transition-duration: .2s; }
.k img { transition: filter .25s ease, opacity .35s ease; }
.kill-enter { animation: fadein .3s ease both; }

/* ---------- 账号：顶栏时长胶囊 + 菜单 ---------- */
.top { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.who { position: relative; display: flex; align-items: center; gap: 4px; justify-self: end; }
.who:empty { display: none; }
.cap { display: inline-flex; align-items: baseline; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); transition: background .2s, color .3s; }
.cap:hover { background: var(--soft2); }
.cap-k { font-size: 12px; color: var(--mute); }
.cap-n { font-family: var(--digit); font-weight: 400; font-size: 17px; letter-spacing: .02em; transition: color .3s; }
.cap-h { font-size: 12px; color: var(--pink); }
.cap-h:empty { display: none; }
.cap.up .cap-n { animation: capup .9s ease; }
.cap.down .cap-n { animation: capdown .9s ease; }
@keyframes capup { 0%, 60% { color: var(--sky); } }
@keyframes capdown { 0%, 60% { color: var(--pink); } }
.acct { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 8px; border-radius: 999px; color: var(--ink2); font-size: 13px; transition: background .2s; }
.acct:hover { background: var(--soft); }
.acct span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 210px; padding: 6px; background: var(--panel); border-radius: 16px; box-shadow: 0 12px 36px rgba(14,26,34,.16), 0 0 0 1px rgba(14,26,34,.04); animation: fadein .16s ease; }
.mi { display: flex; width: 100%; height: 40px; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.mi:hover, .mi:focus-visible { background: var(--soft); outline: none; }
.mi.quiet { color: var(--ink2); }
.mi-who { padding: 8px 12px 6px; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.menu hr { border: 0; height: 1px; background: var(--soft2); margin: 6px 4px; }
@media (max-width: 760px) {
  .top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .acct { display: none; }
  .cap { height: 36px; padding: 0 12px; }
  .cap-h { display: none; }
}

.banner { position: fixed; left: 50%; top: 86px; z-index: 40; transform: translate(-50%, -8px); padding: 12px 22px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(216,57,149,.3); opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.banner.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 兑换弹窗 ---------- */
.sheet { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 24px; background: rgba(14,26,34,.55); animation: fadein .2s ease; }
.sheet.out { opacity: 0; transition: opacity .2s ease; }
.rd { position: relative; width: min(460px, 100%); padding: 30px 30px 24px; background: var(--panel); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(14,26,34,.3); }
.rd-x { position: absolute; right: 16px; top: 16px; }
.rd h2 { margin: 0 0 22px; font-family: var(--title); font-weight: 400; font-size: 30px; line-height: 1.1; }
.rd-form { display: flex; flex-direction: column; }
.rd-in { height: 66px; width: 100%; padding: 0 16px; border: 2px solid transparent; border-radius: 16px; background: var(--soft); font-family: var(--digit); font-size: 20px; letter-spacing: .03em; text-align: center; text-transform: uppercase; transition: border-color .2s, background .2s; }
.rd-in::placeholder { color: #B8C2C9; }
.rd-in:focus { outline: none; border-color: var(--sky); background: var(--panel); }
.rd-err { min-height: 20px; margin: 10px 2px 8px; font-size: 13px; color: var(--pink); }
.rd .btn.go.rd-go { width: 100%; background: var(--pink); }
.rd .btn.go.rd-go:hover:not(:disabled) { background: #e44aa3; }
.rd-how { display: block; margin: 16px auto 0; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.rd-how:hover { color: var(--ink2); }
.rd-help { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--soft); font-size: 13px; color: var(--ink2); animation: fadein .2s ease; }
.rd-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.rd-tiers div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--panel); }
.rd-tiers b { font-size: 13px; color: var(--ink); white-space: nowrap; }
.rd-tiers span { font-size: 12px; color: var(--mute); }
.rd-text { margin: 12px 0 0; white-space: pre-wrap; line-height: 1.7; }
.rd-tiers + .rd-text { margin-top: 12px; }
.rd-help > .rd-text:first-child { margin-top: 0; }
.rd-ok { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 4px; animation: fadein .25s ease; }
.rd-add { margin: 0; font-family: var(--title); font-size: 34px; line-height: 1.15; }
.rd-add b { font-weight: 400; color: var(--pink); }
.rd-sum { margin: 10px 0 26px; color: var(--mute); font-size: 14px; }

/* ---------- 登录 / 注册：浮在 01 上面，背后轻微虚化 ---------- */
body.locked .top, body.locked .scene { filter: blur(3px); pointer-events: none; user-select: none; }
.au-wrap { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px; background: rgba(14,26,34,.28); animation: fadein .3s ease both; }
.au { display: grid; grid-template-columns: 320px 400px; width: max-content; max-width: 100%; min-height: 470px; background: var(--panel); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px rgba(14,26,34,.28); animation: up .4s var(--ease) both; }
.au-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 30px 26px; color: #fff; background: var(--sky); overflow: hidden; isolation: isolate; }
.au-art::before { content: ""; position: absolute; right: -14px; top: 6%; bottom: 0; width: 76%; z-index: -1; background: url("/static/home/agent.webp") right bottom / contain no-repeat; filter: blur(4px); opacity: .55; }
.au-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,147,198,.9) 22%, rgba(5,147,198,.1) 70%), linear-gradient(0deg, rgba(5,147,198,.85) 0, rgba(5,147,198,0) 32%); }
.au-mark { display: flex; align-items: center; gap: 8px; font-family: var(--title); font-weight: 400; font-size: 56px; line-height: 1; letter-spacing: .01em; }
.au-mark i { width: 9px; height: 9px; border-radius: 50%; background: #fff; margin-top: 22px; }
.au-tag { margin: auto 0 22px; font-family: var(--title); font-size: 28px; line-height: 1.35; }
.au-tag em { font-style: normal; }
.au-steps { list-style: none; margin: 0; padding: 16px 0 0; display: flex; gap: 14px; border-top: 1px solid rgba(255,255,255,.3); font-size: 12px; color: rgba(255,255,255,.85); }
.au-steps b { font-family: var(--digit); font-weight: 400; margin-right: 4px; color: #fff; }
.au-body { display: flex; flex-direction: column; padding: 30px 34px 22px; }
.au-seg { display: flex; gap: 2px; padding: 4px; margin-bottom: 28px; background: var(--soft); border-radius: 999px; }
.au-seg button { flex: 1; height: 38px; border-radius: 999px; font-size: 14px; color: var(--mute); transition: background .2s var(--ease), color .2s; }
.au-seg button:hover { color: var(--ink2); }
.au-seg button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14,26,34,.1); }
.au-form { display: flex; flex-direction: column; gap: 14px; }
.au-f { display: flex; flex-direction: column; gap: 6px; }
.au-f > span { font-size: 12px; color: var(--ink2); padding-left: 2px; }
.au-in { height: 50px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; background: var(--soft); font-size: 15px; transition: border-color .2s, background .2s; }
.au-in::placeholder { color: #B3BDC4; }
.au-in:focus { outline: none; border-color: var(--sky); background: var(--panel); }
.au-err { min-height: 18px; margin: -4px 2px 0; font-size: 13px; color: var(--pink); }
.au-go { height: 52px; margin-top: 2px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .12em; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .15s var(--ease), background .2s; }
.au-go:hover:not(:disabled) { background: #e44aa3; }
.au-go:active:not(:disabled) { transform: scale(.98); }
.au-go:disabled { opacity: .7; }
.au-go .spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.au-home { margin: auto auto 0; padding-top: 18px; font-size: 13px; color: var(--mute); }
.au-home:hover { color: var(--ink2); }
@media (max-width: 800px) {
  .au { width: min(400px, 100%); grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .au-art { display: none; }
  .au-body { padding: 24px 22px 18px; }
}

/* ---------- 选择页右下角：用多少时长 ---------- */
.cta-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag.half { background: var(--pink); color: #fff; height: 22px; padding: 0 9px; }
@media (max-width: 760px) { .cta-info { display: none; } }

/* ---------- 时长记录 ---------- */
.lg { display: flex; flex-direction: column; height: calc(100vh - 106px); min-height: 460px; max-width: 1080px; margin: 0 auto; padding: 28px 34px 10px; background: var(--panel); border-radius: var(--r-xl); }
.lg-head { display: flex; align-items: center; gap: 28px; padding-bottom: 22px; }
.lg-head h1 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 34px; line-height: 1.1; }
.lg-now { display: flex; align-items: baseline; gap: 8px; color: var(--mute); font-size: 13px; }
.lg-now b { font-family: var(--digit); font-weight: 400; font-size: 26px; color: var(--ink); }
.lg-now small { color: var(--pink); font-size: 12px; margin-left: 4px; }
.lg-acts { margin-left: auto; display: flex; gap: 8px; }
.lg-acts .btn.go { height: 34px; padding: 0 16px; font-size: 13px; background: var(--pink); }
.lg-acts .btn.go:hover { background: #e44aa3; }
.lg-table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lg-body { flex: 1; min-height: 0; overflow-y: auto; }
.lg-r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px 100px; align-items: center; gap: 16px; min-height: 54px; padding: 0 6px; border-bottom: 1px solid var(--soft2); font-size: 14px; }
.lg-r > span:nth-child(3), .lg-r > span:nth-child(4) { text-align: right; }
.lg-r > span:first-child { color: var(--mute); font-size: 13px; }
.lg-r > span:nth-child(2) { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lg-r small { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-th { min-height: 38px; font-size: 12px; color: var(--mute); border-bottom-color: var(--soft2); }
.lg-th > span:first-child { font-size: 12px; }
.ch { font-weight: 600; font-family: var(--digit); font-size: 16px; font-weight: 400; }
.ch.plus { color: var(--sky); }
.ch.held { color: var(--mute); font-family: var(--ui); font-size: 13px; }
.lg-r.pend { background: var(--soft); border-radius: 12px; border-bottom-color: transparent; }
.tag.run { background: var(--sky-soft); color: var(--sky); }
.lg-empty { display: grid; place-items: center; height: 100%; min-height: 200px; color: var(--mute); }
.lg-more { display: flex; justify-content: center; padding: 16px 0; }
@media (max-width: 760px) {
  .lg { padding: 20px 16px 6px; height: auto; min-height: calc(100vh - 100px); }
  .lg-head { flex-wrap: wrap; gap: 12px 18px; }
  .lg-r { grid-template-columns: 76px minmax(0, 1fr) 70px; gap: 10px; font-size: 13px; }
  .lg-r > span:nth-child(4) { display: none; }
}
.cta.over .btn.go:disabled { opacity: 1; background: rgba(255,255,255,.16); color: rgba(255,255,255,.8); box-shadow: none; }
.hud .msg .hold { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.7); }
.dlv-acts { align-items: center; }
.dlv-acts .redo { margin-right: 8px; font-size: 12px; color: var(--pink); }

/* ---------- 站长后台 ---------- */
.lg.ad { max-width: 1320px; }
.ad-tabs { margin: 0; min-width: 420px; }
.ad-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ad-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ad-filter { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.ad-in { height: 42px; padding: 0 12px; border-radius: 10px; border: 2px solid transparent; background: var(--soft); font-size: 14px; min-width: 0; }
.ad-in.sm { height: 34px; font-size: 13px; width: 180px; }
select.ad-in { cursor: pointer; }
.ad-in:focus { outline: none; border-color: var(--sky); background: var(--panel); }
.ad-table { flex: 1; min-height: 0; overflow-y: auto; font-size: 13px; }
.ad-r { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; min-height: 48px; padding: 6px 6px; border-bottom: 1px solid var(--soft2); }
.ad-r > span { min-width: 0; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; }
.ad-r > span:has(> .tag) { flex-direction: row; align-items: center; gap: 8px; }
.ad-r small { color: var(--mute); font-size: 12px; }
.ad-th { position: sticky; top: 0; z-index: 1; min-height: 36px; background: var(--panel); font-size: 12px; color: var(--mute); }
.ad-r code { font-family: var(--digit); font-size: 14px; letter-spacing: .03em; }
.st { font-style: normal; font-size: 12px; }
.st.unused { color: var(--sky); } .st.used { color: var(--ink2); } .st.expired, .st.void { color: var(--mute); }
.ad-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ad-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--soft); }
.ad-tile span { font-size: 12px; color: var(--mute); }
.ad-tile b { font-family: var(--digit); font-weight: 400; font-size: 30px; line-height: 1.1; }
.ad-tile small { font-size: 12px; color: var(--ink2); }
.ad-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.ad-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; }
.ad-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: var(--soft); }
.ad-form h2 { margin: 0 0 4px; font-family: var(--title); font-weight: 400; font-size: 20px; }
.ad-form label { display: flex; flex-direction: column; gap: 5px; }
.ad-form label span { font-size: 12px; color: var(--ink2); }
.ad-form .ad-in { background: var(--panel); }
.ad-form .btn.go { height: 44px; margin-top: 4px; background: var(--pink); }
.ad-form .btn.go:hover:not(:disabled) { background: #e44aa3; }
.ad-made { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 2px solid var(--sky-soft); }
.ad-made-h { display: flex; align-items: center; gap: 6px; }
.ad-made-h b { margin-right: auto; font-size: 13px; }
.ad-codes { width: 100%; resize: vertical; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--soft); font-family: var(--digit); font-size: 14px; line-height: 1.7; letter-spacing: .03em; }
.ad-helpbox { gap: 12px; }
.ad-helpbox p { margin: 0; }
.ad-help { flex: 1; min-height: 240px; padding: 16px; border: 2px solid transparent; border-radius: 14px; background: var(--soft); font: 14px/1.7 var(--ui); resize: none; }
.ad-help:focus { outline: none; border-color: var(--sky); background: var(--panel); }
.ad-helpbox .btn.go { background: var(--pink); }
@media (max-width: 1000px) {
  .lg-head { flex-wrap: wrap; }
  .ad-tabs { min-width: 0; order: 3; width: 100%; }
  .ad-split { grid-template-columns: 1fr; }
  .ad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-table { overflow-x: auto; }
  .ad-r { min-width: 760px; }
}
.ad-r code { white-space: nowrap; }

/* ---------- 首页：白底、大字、一块视频，往 Apple 产品页的克制感靠 ---------- */
body.is-home { padding-top: 0; background: #fff; }
.scene.home { padding: 0; }
.hm { color: #1d1d1f; background: #fff; min-height: 100vh; }
.hm-nav { position: sticky; top: 0; z-index: 10; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(0,0,0,.06); }
.hm-logo { display: flex; align-items: center; gap: 5px; font-family: var(--title); font-size: 21px; letter-spacing: .01em; }
.hm-logo i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-top: 7px; }
.hm-nav-r { display: flex; align-items: center; gap: 18px; }
.hm-link { font-size: 14px; color: #1d1d1f; }
.hm-link:hover { color: var(--sky); }
.hm-pill { height: 48px; padding: 0 30px; border-radius: 999px; background: var(--sky); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: .04em; transition: background .2s, transform .15s var(--ease); }
.hm-pill:hover { background: #0782b0; }
.hm-pill:active { transform: scale(.97); }
.hm-pill.sm { height: 30px; padding: 0 14px; font-size: 13px; letter-spacing: .02em; }
.hm-hero { padding: clamp(64px, 11vh, 120px) 24px 0; text-align: center; animation: up .9s var(--ease) both; }
.hm-hero h1 { margin: 0; font-family: var(--ui); font-weight: 700; font-size: clamp(44px, 6.6vw, 96px); line-height: 1.06; letter-spacing: -.03em; }
.hm-hot { color: var(--pink); white-space: nowrap; }
.hm-cta { margin-top: 34px; }
/* Built for ___ */
.roll { display: inline-flex; align-items: center; gap: .3em; margin-top: 26px; white-space: nowrap; cursor: pointer; outline: none; font-family: var(--ui); font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.roll-lead { color: #86868b; }
.roll-slot { position: relative; display: block; height: 1.25em; color: #1d1d1f; clip-path: inset(0 -.5em); text-align: left; }
.roll-word { position: absolute; left: 0; top: 0; display: flex; }
.roll-ch { display: inline-block; white-space: pre; will-change: transform, opacity; }
.roll:focus-visible .roll-slot { color: var(--sky); }
/* 对比 */
.hm-cmp-wrap { padding: clamp(56px, 8vh, 88px) 24px 0; display: flex; justify-content: center; animation: fadein 1s ease .25s both; }
.hm-cmp { --p: 50%; position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #0e1a22; cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: 0 40px 80px -30px rgba(14,26,34,.45); }
.hm-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hm-cmp .cmp-a { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp-tag { position: absolute; top: 20px; height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(14,26,34,.62); pointer-events: none; }
.cmp-tag.l { left: 20px; }
.cmp-tag.r { right: 20px; background: var(--pink); }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.cmp-bar i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.cmp-bar i::before, .cmp-bar i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-left: 2px solid #1d1d1f; border-bottom: 2px solid #1d1d1f; }
.cmp-bar i::before { left: 12px; transform: rotate(45deg); }
.cmp-bar i::after { right: 12px; transform: rotate(-135deg); }
.hm-cmp:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
/* 成片卡片 */
.hm-card { width: min(1200px, calc(100% - 48px)); margin: clamp(80px, 11vh, 130px) auto 0; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 44px; align-items: center; border-radius: 32px; background: #0e1a22; color: #fff; }
.hm-k { font-family: var(--digit); font-size: 13px; letter-spacing: .2em; color: var(--pink); }
.hm-card h2 { margin: 12px 0 30px; font-family: var(--title); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.05; }
.hm-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin: 0; }
.hm-spec div { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.hm-spec dt { font-size: 12px; color: rgba(255,255,255,.5); }
.hm-spec dd { margin: 4px 0 0; font-family: var(--digit); font-size: 26px; }
.hm-card-s { margin: 30px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }
.hm-card-v { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.hm-video { width: 100%; height: 100%; object-fit: cover; }
.hm-steps { width: min(1120px, calc(100% - 48px)); margin: clamp(70px, 10vh, 120px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d2d2d7; }
.hm-step { padding: 26px 24px 0 0; }
.hm-step b { font-family: var(--digit); font-weight: 400; font-size: 15px; color: var(--pink); }
.hm-step h3 { margin: 10px 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.hm-step p { margin: 0; font-size: 15px; color: #6e6e73; }
.hm-foot { width: min(1120px, calc(100% - 48px)); margin: 110px auto 0; padding: 22px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid #d2d2d7; font-size: 12px; color: #86868b; }
.hm-foot .hm-link { font-size: 12px; }
@media (max-width: 760px) {
  .hm-steps { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .hm-frame { border-radius: 18px; }
  .hm-foot { margin-top: 70px; }
}
@media (max-width: 860px) {
  .hm-card { grid-template-columns: 1fr; padding: 26px; gap: 26px; border-radius: 24px; }
  .hm-cmp { border-radius: 18px; }
  .cmp-tag { top: 12px; height: 26px; font-size: 12px; }
  .cmp-tag.l { left: 12px; } .cmp-tag.r { right: 12px; }
}
.dlv-acts .redo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.dlv-acts .redo b { font-weight: 600; }
.dlv-acts .redo small { font-size: 11px; color: var(--mute); }

/* 第一屏：左边 Ease + 标题 + 开始，右边对比图，一屏放下 */
.hm-nav { padding: 0 max(32px, calc((100vw - 1320px) / 2)); }
.hm-first { min-height: calc(100vh - 52px); width: min(1320px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(36px, 4vw, 72px); padding: 40px 0; }
.hm-first .hm-hero { padding: 0; text-align: left; }
.hm-word { position: relative; display: inline-flex; align-items: flex-end; font-family: var(--title); font-size: clamp(88px, 10.5vw, 168px); line-height: .9; letter-spacing: .01em; color: #1d1d1f; }
.hm-word i { width: .11em; height: .11em; margin: 0 0 .12em .06em; border-radius: 50%; background: var(--pink); }
.hm-first .hm-hero h1 { margin-top: clamp(22px, 3vh, 34px); font-size: clamp(28px, 2.7vw, 44px); line-height: 1.22; letter-spacing: -.02em; }
.hm-first .roll { margin-top: 16px; font-size: clamp(18px, 1.5vw, 24px); }
.hm-first .hm-cta { margin-top: clamp(28px, 4vh, 44px); }
.hm-go { display: inline-flex; align-items: center; gap: 18px; height: 60px; padding: 0 8px 0 30px; border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .16em; transition: background .25s var(--ease), transform .15s var(--ease); }
.hm-go i { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); transition: transform .35s var(--ease); }
.hm-go i::before { content: ""; position: absolute; left: 13px; top: 21px; width: 17px; height: 2px; background: #fff; }
.hm-go i::after { content: ""; position: absolute; left: 20px; top: 16px; width: 9px; height: 9px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.hm-go:hover { background: #000; }
.hm-go:hover i { transform: translateX(4px); }
.hm-go:active { transform: scale(.97); }
.hm-first .hm-cmp-wrap { padding: 0; width: 100%; animation: fadein 1s ease .2s both; }
.hm-first .hm-cmp { width: 100%; max-height: calc(100vh - 140px); border-radius: 26px; }
.hm-card { margin-top: clamp(40px, 7vh, 80px); width: min(1320px, calc(100% - 64px)); }
.hm-steps, .hm-foot { width: min(1320px, calc(100% - 64px)); }
@media (max-width: 960px) {
  .hm-first { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 0; width: calc(100% - 40px); }
  .hm-first .hm-hero { text-align: center; }
  .hm-word { font-size: 96px; }
  .hm-card, .hm-steps, .hm-foot { width: calc(100% - 40px); }
}

/* 游戏集锦做第二主角，Built for 加大 */
.hm-first .hm-hero h1 { display: flex; flex-direction: column; gap: 6px; margin-top: clamp(20px, 3vh, 30px); }
.hm-pre { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.01em; color: #1d1d1f; }
.hm-first .hm-hot { font-family: var(--title); font-weight: 400; font-size: clamp(58px, 6.6vw, 104px); line-height: 1; letter-spacing: .01em; color: var(--pink); }
.hm-first .roll { margin-top: clamp(18px, 2.6vh, 28px); padding-top: clamp(14px, 2vh, 20px); border-top: 2px solid #1d1d1f; font-size: clamp(24px, 2.3vw, 36px); font-weight: 800; }
.hm-first .roll-lead { color: #86868b; font-weight: 600; }
@media (max-width: 960px) { .hm-first .hm-hero h1 { align-items: center; } }

/* Built for 单独一屏宽的一行，居中放大 */
.hm-built { display: flex; justify-content: center; padding: clamp(70px, 11vh, 130px) 24px clamp(10px, 2vh, 20px); }
.hm-built .roll { margin: 0; padding: 0; border: 0; font-size: clamp(40px, 5.6vw, 88px); font-weight: 800; letter-spacing: -.035em; }
.hm-built .roll-lead { color: #c7c7cc; font-weight: 700; }
.hm-built .roll-slot { color: #1d1d1f; }
.hm-first .hm-cta { margin-top: clamp(30px, 4.5vh, 48px); }

/* Built for 收进第一屏底部，跨两栏居中 */
.hm-first { grid-template-rows: 1fr auto; row-gap: clamp(28px, 4.5vh, 56px); }
.hm-first .hm-built { grid-column: 1 / -1; padding: 0; }
.hm-first .hm-built .roll { font-size: clamp(30px, 3.4vw, 54px); }
.hm-first .hm-cmp { max-height: calc(100vh - 290px); }
/* 投影：只给浮在白底上的字和块，柔和、偏下 */
.hm-word { text-shadow: 0 10px 24px rgba(29,29,31,.16); }
.hm-word i { box-shadow: 0 6px 14px rgba(216,57,149,.35); }
.hm-first .hm-hot { text-shadow: 0 8px 22px rgba(216,57,149,.22); }
.hm-go { box-shadow: 0 12px 28px -8px rgba(29,29,31,.45); }
.hm-go i { box-shadow: 0 4px 10px rgba(216,57,149,.45); }
.hm-cmp { box-shadow: 0 30px 60px -24px rgba(14,26,34,.45), 0 8px 18px -10px rgba(14,26,34,.25); }
.cmp-tag { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.hm-card { box-shadow: 0 30px 60px -28px rgba(14,26,34,.5); }
.hm-card-v { box-shadow: 0 16px 36px -14px rgba(0,0,0,.6); }
.hm-pill.sm { box-shadow: 0 4px 12px -4px rgba(5,147,198,.6); }
.hm-built .roll-slot { text-shadow: 0 6px 18px rgba(29,29,31,.14); }
@media (max-width: 960px) { .hm-first { grid-template-rows: auto; } .hm-first .hm-cmp { max-height: none; } }
.hm-steps { margin-top: clamp(60px, 9vh, 100px); }
.hm-step b { font-size: 18px; }
.hm-step h3 { font-size: 28px; margin: 12px 0 8px; }
.hm-step p { font-size: 15px; }
.hm-foot { margin-top: 72px; }
/* Built for 放到导航栏下面，第一屏最上方 */
.hm-first { grid-template-rows: auto 1fr; align-items: center; }
.hm-first .hm-built { grid-row: 1; align-self: start; }
.hm-first .hm-hero, .hm-first .hm-cmp-wrap { grid-row: 2; }
@media (max-width: 960px) { .hm-first .hm-hero { grid-row: 2; } .hm-first .hm-cmp-wrap { grid-row: 3; } }
/* 整组居中，Built for 和下面一排贴近一些 */
.hm-first { grid-template-rows: auto auto; align-content: center; row-gap: clamp(28px, 4.5vh, 48px); padding: clamp(24px, 4vh, 44px) 0 clamp(40px, 7vh, 80px); }
.hm-first .hm-built { align-self: end; }
.hm-first { row-gap: clamp(36px, 5.5vh, 60px); }
.hm-first .hm-cmp { max-height: calc(100vh - 330px); }

/* ===== 第一屏定稿：左栏与对比图上下对齐，左边缘与导航 Logo 对齐 ===== */
.hm-first { min-height: 0; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); grid-template-rows: auto; align-items: stretch; align-content: start; gap: clamp(40px, 4.5vw, 72px); padding: clamp(48px, 8vh, 88px) 0 0; }
.hm-first .hm-hero, .hm-first .hm-cmp-wrap { grid-row: auto; }
.hm-first .hm-hero { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; }
.hm-first .roll { margin: 0; padding: 0; border: 0; font-size: clamp(22px, 1.9vw, 30px); font-weight: 800; line-height: 1.25; }
.hm-first .roll-lead { color: #a1a1a6; font-weight: 700; }
.hm-first .roll-slot { color: #1d1d1f; }
.hm-first .hm-word { margin-top: auto; }
.hm-first .hm-hero h1 { margin: 14px 0 0; }
.hm-first .hm-cta { margin: auto 0 0; }
.hm-first .hm-cmp-wrap { display: block; }
.hm-first .hm-cmp { width: 100%; max-height: none; min-width: 0; }
.hm-card { margin-top: clamp(72px, 10vh, 110px); }
@media (max-width: 960px) {
  .hm-first { grid-template-columns: 1fr; padding-top: 40px; }
  .hm-first .hm-hero { align-items: center; text-align: center; gap: 0; }
  .hm-first .hm-word { margin-top: 18px; }
  .hm-first .hm-cta { margin-top: 28px; }
}

/* ===== 第一屏：Built for 顶部居中，下面左栏 + 对比图；整组在一屏里上下居中 ===== */
.hm-first { min-height: calc(100vh - 52px); grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); grid-template-rows: auto auto; align-content: center; align-items: stretch; column-gap: clamp(40px, 4.5vw, 72px); row-gap: clamp(36px, 5.5vh, 60px); padding: 32px 0 56px; }
.hm-first .hm-built { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: center; padding: 0; }
.hm-first .hm-built .roll { font-size: clamp(30px, 3.2vw, 50px); }
.hm-first .hm-hero { grid-row: 2; justify-content: center; }
.hm-first .hm-cmp-wrap { grid-row: 2; }
.hm-first .hm-word { margin-top: 0; }
.hm-first .hm-cta { margin-top: clamp(28px, 4vh, 44px); }
.hm-card { margin-top: clamp(80px, 12vh, 140px); }
@media (max-width: 960px) {
  .hm-first { min-height: 0; padding-top: 36px; row-gap: 28px; }
  .hm-first .hm-hero { grid-row: 2; } .hm-first .hm-cmp-wrap { grid-row: 3; }
}
.hm-first { padding: 32px 0 32px; }
/* Built for 加大，整组贴近导航栏 */
.hm-first { align-content: start; padding: clamp(28px, 4.5vh, 44px) 0 40px; row-gap: clamp(30px, 4.5vh, 48px); }
.hm-first .hm-built .roll { font-size: clamp(40px, 4.6vw, 72px); }
.hm-first { row-gap: clamp(56px, 9vh, 96px); }

/* ===== 美学 review 修正 ===== */
/* 1 手机首页：回到单栏 */
@media (max-width: 960px) {
  .hm-first { grid-template-columns: 1fr; }
  .hm-first .hm-built .roll { font-size: clamp(28px, 9vw, 40px); }
  .hm-go { white-space: nowrap; }
}
/* 2 去掉毛玻璃 */
.top { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.locked .top, body.locked .scene { filter: none; }
/* 3 首页导航纯白 */
.hm-nav { background: #fff; }
/* 4 大字投影收紧成中性、贴字的阴影，不再像发光 */
.hm-word { text-shadow: 0 3px 8px rgba(29,29,31,.12); }
.hm-first .hm-hot { text-shadow: 0 3px 8px rgba(29,29,31,.1); }
.hm-built .roll-slot, .hm-first .roll-slot { text-shadow: none; }
/* 5 手机上传页 BGM 栏 */
@media (max-width: 760px) {
  .upl-song .wave { display: none; }
  .upl-song .song-t { max-width: none; flex: 1; min-width: 0; }
  .song-t span { white-space: nowrap; }
  .ptabs { min-width: 0; overflow: hidden; }
  .ptab { max-width: 140px; }
}
/* 6 手机下载页参数换行显示、选择页底部给固定按钮留位置 */
@media (max-width: 760px) {
  .dlv-bar .specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; overflow: visible; }
  .dlv-bar .specs div { border-left: 0; padding: 2px 8px; }
  .studio .side { padding-bottom: 96px; }
}
/* 7 流程页大标题统一字号 */
.upl-reel h1, .side-top h1, .dlv-head h1, .lg-head h1 { font-size: 32px; letter-spacing: .01em; }
/* 9 小按钮统一高度 */
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
/* 10 时长记录：剩余列和变化列同一数字字体 */
.lg-r > span:nth-child(4) { font-family: var(--digit); font-size: 16px; }
.lg-th > span:nth-child(4) { font-family: var(--ui); font-size: 12px; }
/* 11 中文值不用数字字体 */
.zh, .part-v.zh, .specs b.zh, .hm-spec dd.zh { font-family: var(--ui); font-weight: 600; }
.specs b.zh { font-size: 16px; }
.hm-spec dd.zh { font-size: 22px; }
/* 13 圆角收成 24 / 16 / 12 三档 */
.part, .clip-card, .hcard, .hm-card-v, .rd-help, .ad-tile, .ad-form, .ad-made { border-radius: 16px; }
.ptab, .ptab-new, .rd-in, .au-in, .ad-in { border-radius: 12px; }
/* 14 遮罩统一 */
.au-wrap, .sheet, .modal { background: rgba(14,26,34,.5); }
/* 15 兑换弹窗关闭按钮和标题同一行中线 */
.rd-x { top: 30px; right: 24px; }
/* 16 最小字号 11px */
.k .t, .k .lastb, .k .eye, .ends { font-size: 11px; }
.k .lastb { line-height: 18px; }
/* 17 关闭/编辑点击区加大 */
.ptab-x, .hdel, .ptab-ed { min-width: 24px; min-height: 24px; }
/* 19 桌面上邮箱已在触发按钮里，菜单里不再重复 */
@media (min-width: 761px) { .mi-who { display: none; } }
@media (max-width: 760px) {
  .upl-reel header { flex-wrap: wrap; gap: 4px 12px; }
  .upl-reel h1 { white-space: nowrap; }
  .upl-song { gap: 12px; padding: 14px 16px; }
  .upl-song .lab { width: auto; }
  .disc.big, .upl-song .glyph { width: 48px; height: 48px; }
  .disc.big { box-shadow: inset 0 0 0 6px #17262f, inset 0 0 0 7px #273b47; }
}

/* ===== 网站/渲染机拆分后的状态 ===== */
.clip-ph { position: absolute; inset: 0; display: grid; place-items: center; background: #1a2730; }
.clip-ph .glyph { opacity: .5; }
.clip-exp { position: absolute; left: 12px; top: 12px; z-index: 2; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 600; }
.exp-note { font-size: 13px; color: var(--pink); font-weight: 600; }
.upl-btn .upl-sub { display: block; margin-top: 8px; font-family: var(--ui); font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.dlv-gone { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #0e1a22; color: #fff; }
.dlv-gone b { font-size: 18px; font-weight: 600; }
.dlv-gone span { font-size: 13px; color: rgba(255,255,255,.6); }
.dl-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.dl-exp { font-size: 12px; color: var(--mute); }
.dlv-frame { position: relative; }

/* 时长胶囊：数字改用系统字体加粗等宽，和“时长”同一基准居中，左右留白一致 */
.cap { align-items: center; gap: 6px; padding: 0 16px; }
.cap-k { font-size: 12px; line-height: 1; }
.cap-n { font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cap-h { line-height: 1; }
