/*
 * wap.com · 页面级样式（13 页）
 * 与 wx.com 各页面 wxss 1:1 对应，rpx→px 已 ÷2。
 */

/* ================= 首页 home ================= */
.greet { display: flex; align-items: flex-start; padding: 18px 16px 6px; }
.greet-main { flex: 1; min-width: 0; }
.hi { font-size: 21px; font-weight: 600; letter-spacing: -0.4px; }
.hi-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }

.hero {
  margin: 10px 16px 0;
  border-radius: 16px;
  background: #1b1e2a;
  color: #fff;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(140, 150, 255, 0.16);
}

.hero-t { font-size: 15px; font-weight: 600; letter-spacing: -0.1px; }
.hero-d { font-size: 12px; color: #a7acbb; margin-top: 6px; line-height: 1.6; max-width: 270px; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  background: #fff;
  color: #1b1e2a;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.hero-btn .ic { width: 14px; height: 14px; }

.running { padding: 14px 16px; }
.run-top { display: flex; align-items: center; gap: 8px; }

.run-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-stage {
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.run-pct { margin-left: auto; font-size: 12px; color: var(--muted); }
.running .track { margin-top: 10px; }
.run-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--faint); }
.run-foot .go { margin-left: auto; color: var(--brand); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px; }
.stat { background: #fff; border-radius: 12px; padding: 12px 10px; text-align: center; }
.stat-v { font-size: 19px; font-weight: 600; letter-spacing: -0.4px; }
.stat-u { font-size: 11px; font-weight: 400; color: var(--faint); margin-left: 1px; }
.stat-l { font-size: 11px; color: var(--faint); margin-top: 2px; }

.list-card { overflow: hidden; }
.vrow { display: flex; gap: 12px; padding: 13px 16px; align-items: center; cursor: pointer; }
.vrow.line { border-bottom: 0.5px solid var(--line); }

.vthumb {
  width: 78px;
  height: 48px;
  border-radius: 8px;
  flex: 0 0 78px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3448, #59617f);
}

.vthumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2), transparent 60%);
}

.vthumb-tri {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 8px solid rgba(255, 255, 255, 0.94);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  z-index: 2;
}

.vrow-main { min-width: 0; flex: 1; }

.vrow-t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vrow-s { font-size: 11px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.vrow-m { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cost { font-size: 12px; color: #3b4150; font-weight: 500; }
.time { margin-left: auto; font-size: 11px; color: var(--faint); }

.notice-body { flex: 1; min-width: 0; }
.notice-b { display: block; font-weight: 500; color: var(--text); }
.notice-d { display: block; margin-top: 1px; }

.empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  background: #fff;
  border-radius: 10px;
}

/* ================= 作品 videos ================= */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  margin: 12px 16px 0;
}

.search .ic { width: 16px; height: 16px; }
.search-input { flex: 1; min-width: 0; background: transparent; font-size: 14px; height: 20px; line-height: 20px; }
.search-input::placeholder { color: #b3b8c2; font-size: 14px; }

.hscroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

.chips { display: flex; gap: 7px; padding: 12px 16px 4px; white-space: nowrap; width: max-content; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  border: 0.5px solid transparent;
  cursor: pointer;
}

.chip.is-on { background: var(--brand); color: #fff; font-weight: 500; }

.vcard {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin: 10px 16px 0;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
}

.vcard .vthumb { width: 96px; height: 60px; border-radius: 9px; flex: 0 0 96px; }
.vcard .vthumb-tri { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }

/* ================= 我的 me ================= */
.me-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
.me-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600;
}
.me-name { font-size: 16px; font-weight: 600; }
.me-sub { font-size: 11px; color: var(--faint); margin-top: 2px; }

.bal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: #1b1e2a;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
  cursor: pointer;
}

.buy-btn .ic { width: 13px; height: 13px; }
.buy-btn:active { opacity: 0.85; }

.menu { background: #fff; border-radius: 14px; margin: 14px 16px 0; overflow: hidden; }

.mi {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}

.mi:last-child { border-bottom: 0; }
.mi .ic { width: 18px; height: 18px; }
.mi-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-pill { margin-left: auto; }
.mi-arrow { width: 14px; height: 14px; }

/* ================= 资产 assets ================= */
.notice-gap { margin-top: 14px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }

.acard { background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; }

.acover {
  height: 207px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 9px;
  background: linear-gradient(150deg, #242a3d, #4a5474);
}

.acover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 58%);
}

.acover-ini {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.16);
  font-size: 50px;
  font-weight: 600;
}

.acover.thumb-c2 { background: linear-gradient(150deg, #2a3a36, #5d7d70); }
.acover.thumb-c3 { background: linear-gradient(150deg, #3a3145, #6f6480); }
.acover.thumb-c4 { background: linear-gradient(150deg, #4a3d2c, #8b7556); }

.acover .badge {
  position: relative;
  z-index: 2;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  padding: 2px 7px;
  border-radius: 4px;
}

.abody { padding: 10px 11px 12px; }
.aname { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.def {
  font-size: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 500;
}

.asub { font-size: 10px; color: var(--faint); margin-top: 2px; }
.afoot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--faint); }

.sec-add {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.sec-add .ic { width: 12px; height: 12px; }
.sec-add:active { background: var(--brand-ink); }

.acard-add {
  border: 1px dashed #c9ced8;
  border-radius: 14px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 240px;
  color: var(--faint);
  cursor: pointer;
}

.acard-add .ic { width: 22px; height: 22px; }
.acard-add-t { font-size: 12px; color: var(--muted); font-weight: 500; }
.acard-add-s { font-size: 10px; color: var(--faint); }
.acard-add:active { border-color: var(--brand); color: var(--brand); background: #fafbff; }

.voice-card { overflow: hidden; }

.voice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.voice:last-child { border-bottom: 0; }
.voice.is-pending { background: #fcfcfd; }

.vplay {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f3f4f7;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 36px;
  color: #3b4150;
  cursor: pointer;
}

.vplay.is-on { background: var(--brand-soft); color: var(--brand); }
.vplay.is-off { opacity: 0.5; }

.vplay-tri {
  width: 0; height: 0;
  border-left: 13px solid currentColor;
  border-top: 7.5px solid transparent;
  border-bottom: 7.5px solid transparent;
  margin-left: 1px;
}

.vplay-pause { display: flex; gap: 4px; }
.vplay-pause view, .vplay-pause i { width: 3px; height: 12px; background: currentColor; border-radius: 1px; display: block; }

.voice-main { flex: 1; min-width: 0; }

.wave { display: flex; align-items: center; gap: 2px; height: 18px; margin-top: 5px; }
.wave-bar { display: block; width: 2px; border-radius: 2px; background: #d4d8e0; }
.wave.is-on .wave-bar { background: var(--brand); }
.vmeta { font-size: 10px; color: var(--faint); margin-top: 4px; }

.voice-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  background: #fcfcfd;
  cursor: pointer;
}

.voice-add .ic { width: 14px; height: 14px; }
.voice-add:active { color: var(--brand); background: #fafbff; }

/* ================= 创作 create ================= */
.create-body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

.wsteps { display: flex; align-items: center; padding: 14px 16px 4px; }
.ws { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.ws-n {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eceef3; color: #9aa0ad;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.ws-t { font-size: 10px; color: #9aa0ad; }
.ws.is-on .ws-n { background: var(--brand-soft); color: var(--brand); }
.ws.is-on .ws-t { color: var(--muted); }
.ws.is-cur .ws-n { background: var(--brand); color: #fff; }
.ws.is-cur .ws-t { color: var(--brand); font-weight: 600; }

.ws-line {
  flex: 1;
  height: 1.5px;
  border-radius: 1px;
  background: #e5e8ee;
  margin: 0 7px;
  transform: translateY(-6px);
}

.ws-line.is-on { background: var(--brand); }

.create-block {
  background: #fff;
  border-radius: 14px;
  margin: 12px 16px 0;
  padding: 14px;
}

.cb-head { display: flex; align-items: center; gap: 8px; }
.cb-title { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.cb-hint { margin-left: auto; font-size: 11px; color: var(--faint); }
.cb-sub { font-size: 11px; color: var(--faint); margin-top: 3px; line-height: 1.5; }

.script {
  width: 100%;
  font-size: 14px;
  line-height: 1.75;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  color: var(--text);
  height: 118px;
  resize: none;
  display: block;
}

.script::placeholder { color: #b3b8c2; }

.mic-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.mic-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.mic-btn.is-rec { background: var(--brand); color: #fff; }
.mic-btn:active { opacity: 0.85; }

.mic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: 0 0 8px; }
.mic-btn.is-rec .mic-dot { animation: mic-pulse 1s ease-in-out infinite; }

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.mic-state { font-size: 11px; color: var(--faint); }

.pick-scroll { margin-top: 11px; }
.pick-row { display: flex; gap: 10px; padding-bottom: 4px; white-space: nowrap; width: max-content; }

.pick { flex: 0 0 auto; width: 86px; position: relative; transition: transform 0.18s ease; }
.pick.is-drag { transition: none; z-index: 5; }
.pick.is-drag .pick-cover { box-shadow: 0 6px 18px rgba(20, 22, 28, 0.28); }

.pick-cover {
  width: 86px; height: 108px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #242a3d, #4a5474);
  border: 2px solid transparent;
  cursor: pointer;
}

.pick-cover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 58%);
}

.pick-cover.is-off { opacity: 0.45; }

.pick-ini {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.22);
  font-size: 34px;
  font-weight: 600;
}

.pick.is-on .pick-cover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 91, 213, 0.12); }

.pick-name {
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick.is-on .pick-name { color: var(--text); font-weight: 500; }

.pick-check {
  position: absolute;
  right: 6px; top: 6px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 3;
}

.pick.is-on .pick-check { display: flex; }

.pick-add {
  flex: 0 0 auto;
  width: 86px; height: 108px;
  border-radius: 10px;
  border: 1px dashed #d3d7de;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--faint);
  font-size: 10px;
  background: #fcfcfd;
  cursor: pointer;
}

.pick-add .ic { width: 18px; height: 18px; }

.av-up {
  margin-top: 10px;
  height: 100px;
  border: 1px dashed #d3d7de;
  border-radius: 10px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.av-up:active { background: #f4f5f7; }

.av-up-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}

.av-up-ico .ic { width: 17px; height: 17px; }
.av-up-t { font-size: 13px; font-weight: 500; }
.av-up-s { font-size: 10px; color: var(--faint); }

.av-done {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: #fafbff;
}

.av-done-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
}

.av-done-ico .ic { width: 15px; height: 15px; }
.av-done-main { flex: 1; min-width: 0; }

.av-done-t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-done-s { font-size: 10px; color: var(--faint); margin-top: 1px; }
.av-done-act { font-size: 12px; color: var(--red); flex: 0 0 auto; cursor: pointer; }
.av-hint { margin-top: 8px; font-size: 10px; color: var(--faint); line-height: 1.5; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }

.media-item { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: #f1f2f5; }
.media-thumb { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }

.media-tag {
  position: absolute;
  left: 5px; bottom: 5px;
  font-size: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 4px;
}

.media-del {
  position: absolute;
  right: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 0 0 0 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.media-add {
  position: relative;
  padding-top: 100%;
  border: 1px dashed #d3d7de;
  border-radius: 8px;
  background: #fcfcfd;
  cursor: pointer;
}

.media-add .ic {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
}

.media-add span {
  position: absolute;
  left: 0; right: 0;
  top: 64%;
  text-align: center;
  font-size: 10px;
  color: var(--faint);
}

.shot-card {
  background: #fff;
  border-radius: 12px;
  margin: 10px 16px 0;
  padding: 11px 12px;
  position: relative;
  transition: transform 0.15s ease;
}

.shot-card.is-drag { z-index: 10; box-shadow: 0 7px 20px rgba(20, 22, 28, 0.16); transform-origin: center; transition: none; }

.shot-grip {
  width: 16px; height: 22px;
  flex: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: -4px;
  cursor: grab;
}

.shot-grip::before, .shot-grip::after {
  content: "";
  width: 13px; height: 3px;
  border-radius: 2px;
  background: #c9cdd6;
}

.shot-grip:active::before, .shot-grip:active::after { background: var(--brand); }

.shot-head { display: flex; align-items: center; gap: 7px; }

.shot-no {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.shot-sec { font-size: 11px; color: var(--faint); }

.shot-kind {
  font-size: 10px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  cursor: pointer;
}

.shot-kind.is-ai { background: var(--blue-soft); color: var(--blue); }
.shot-kind:active { opacity: 0.7; }

.shot-kind-hint { margin-top: 8px; font-size: 10px; color: #b3b8c2; text-align: center; line-height: 1.5; }

.shot-ops { margin-left: auto; display: flex; gap: 12px; }
.shot-op { font-size: 11px; color: var(--muted); cursor: pointer; }
.shot-op.is-del { color: var(--red); }
.shot-op:active { opacity: 0.6; }

.shot-input {
  width: 100%;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: #f7f8fa;
  border-radius: 8px;
  padding: 9px 10px;
  margin-top: 8px;
  min-height: 44px;
  resize: none;
  display: block;
}

.shot-add {
  margin: 10px 16px 0;
  border: 1px dashed #d3d7de;
  border-radius: 12px;
  background: #fcfcfd;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.shot-add:active { border-color: var(--brand); color: var(--brand); background: #fafbff; }

.vp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
  cursor: pointer;
}

.vp.is-on { border-color: var(--brand); background: #fafbff; }
.vp-main { flex: 1; min-width: 0; }
.vp-name { font-size: 13px; font-weight: 500; }
.vp-sub { font-size: 10px; color: var(--faint); margin-top: 1px; }

.vp-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f3f4f7;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
}

.vp-tri {
  width: 0; height: 0;
  border-left: 11px solid #3b4150;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  margin-left: 1px;
}

.opts { display: flex; gap: 8px; margin-top: 10px; }

.opt {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.opt.is-on { border-color: var(--brand); color: var(--brand); background: #fafbff; font-weight: 500; }
.opt-s { display: block; font-size: 9px; font-weight: 400; color: var(--faint); margin-top: 2px; }

/* 固定操作条统一对齐 App 内容宽度：宽屏预览时不再横穿整个窗口（手机上等价原来的 left/right 16px） */
.next-bar {
  position: fixed;
  left: 50%;
  right: auto;
  width: calc(100% - 32px);
  max-width: calc(var(--app-w, 560px) - 32px);
  transform: translateX(-50%);
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 15;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 -1px 0 var(--line), 0 8px 24px rgba(20, 22, 28, 0.07);
}

.next-row { display: flex; align-items: center; gap: 12px; }
.back-link { flex: 0 0 auto; font-size: 13px; color: var(--muted); padding: 10px 4px; cursor: pointer; }
.back-link:active { opacity: 0.6; }

.next-btn {
  flex: 1;
  text-align: center;
  height: 46px;
  line-height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.next-btn:active { background: var(--brand-ink); }
.next-btn.is-off { background: #d9dce4; }

.next-note { font-size: 10px; color: var(--faint); text-align: center; margin-top: 7px; line-height: 1.5; }
.est-pad { height: 150px; }

.run-card { margin: 14px 16px 0; background: #fff; border-radius: 14px; padding: 16px; }
.run-head { display: flex; align-items: center; gap: 8px; }

.run-badge {
  font-size: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 7px;
  border-radius: 5px;
}

.run-name { font-size: 13px; font-weight: 500; }
.run-pct { margin-left: auto; font-size: 13px; color: var(--muted); }

.run-big { font-size: 26px; font-weight: 600; letter-spacing: -0.6px; margin-top: 12px; }
.run-eta { font-size: 12px; font-weight: 400; color: var(--faint); margin-left: 4px; letter-spacing: 0; }

.run-track { height: 6px; border-radius: 4px; background: #f0f1f4; overflow: hidden; margin-top: 10px; }
.run-bar { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width 0.3s ease; }
.run-note { font-size: 11px; color: var(--faint); margin-top: 8px; line-height: 1.6; }

.stage-mini { padding: 6px 14px; }

.sm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.sm:last-child { border-bottom: 0; }
.sm-d { width: 8px; height: 8px; border-radius: 50%; background: #d8dbe2; flex: 0 0 8px; }
.sm-done .sm-d { background: var(--green); }
.sm-doing .sm-d { background: var(--brand); box-shadow: 0 0 0 3px rgba(79, 91, 213, 0.14); }
.sm-st { margin-left: auto; font-size: 10px; color: var(--faint); }
.sm-doing .sm-st { color: var(--brand); }

.kv-lite { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.kv-lite .k { color: var(--muted); }
.kv-lite .v { color: var(--text); max-width: 70%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 视频详情 detail ================= */
.player {
  margin: 0 auto;
  position: relative;
  background: linear-gradient(150deg, #1b1e2a, #343a52 60%, #474e6b);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 58%);
}

.player video {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
}

.play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-tri {
  width: 0; height: 0;
  border-left: 15px solid #1a1d23;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.player-tag {
  position: absolute;
  left: 14px; bottom: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 2;
}

.player-dur { position: absolute; right: 14px; bottom: 12px; color: rgba(255, 255, 255, 0.85); font-size: 11px; z-index: 2; }

.d-head { padding: 14px 16px 0; background: #fff; }
.d-title { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.35; }
.d-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.d-meta-t { font-size: 11px; color: var(--faint); }

.d-actions { display: flex; gap: 8px; padding: 14px 16px 16px; background: #fff; border-bottom: 0.5px solid var(--line); }

.panel { padding: 12px 16px 0; }
.panel-note { padding: 12px 4px 0; text-align: center; font-size: 11px; color: #b3b8c2; line-height: 1.7; }
.panel-note.left { text-align: left; }

.cost-hero { background: #fff; border-radius: 14px; padding: 16px; }
.cost-k { font-size: 11px; color: var(--faint); }
.cost-v { font-size: 28px; font-weight: 600; letter-spacing: -0.8px; margin-top: 2px; }
.cost-u { font-size: 13px; font-weight: 500; margin-left: 4px; }

.bars { display: flex; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 12px; background: #f0f1f4; }
.bar { display: block; height: 100%; }
.legend { display: flex; gap: 12px; margin-top: 8px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }

.lg { display: inline-flex; align-items: center; gap: 4px; }
.lg::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }

.cost-list { margin-top: 10px; }
.cost-num { font-size: 13px; }

.steps { background: #fff; border-radius: 14px; padding: 14px 14px 4px; margin: 0 16px 18px; }

.step { display: flex; gap: 11px; position: relative; padding-bottom: 14px; }
.step:last-child { padding-bottom: 0; }

.step-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cdd1d9;
  flex: 0 0 9px;
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

.step-done { border-color: var(--brand); background: var(--brand); }
.step-doing { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 91, 213, 0.14); }

.step::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.step:last-child::before { display: none; }
.step-main { flex: 1; min-width: 0; }
.step-t { font-size: 13px; font-weight: 500; }
.step-s { font-size: 11px; color: var(--faint); margin-top: 1px; }

/* ================= 积分流水 credits ================= */
.sec-tight { padding: 22px 16px 4px; }
.cr-k { font-size: 11px; color: var(--faint); }
.cr-v { font-size: 26px; font-weight: 600; letter-spacing: -0.8px; }
.cr-u { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

.cr-row { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cr-b { font-weight: 600; color: var(--text); }

.txn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.txn:last-child { border-bottom: 0; }
.txn-main { flex: 1; min-width: 0; }

.txn-t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-s { font-size: 10px; color: var(--faint); margin-top: 2px; }
.txn-v { font-size: 13px; font-weight: 500; text-align: right; flex: 0 0 auto; }
.txn-v.is-pending { color: var(--brand); }
.txn-tag { display: block; font-size: 9px; font-weight: 400; color: var(--faint); margin-top: 1px; }

/* ================= 购买积分 topup ================= */
.tp-bal { margin-top: 14px; }
.sec-tight-pad { padding-bottom: 8px; }

.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }

.pkg {
  position: relative;
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.pkg.is-on { border-color: var(--brand); background: #fbfbff; }

.pkg.is-on::after {
  content: "✓";
  position: absolute;
  right: 9px; top: 9px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}

.pkg-pts { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.25; }
.pkg-u { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.pkg-price { font-size: 12px; color: var(--muted); margin-top: 4px; }

.pkg-gift {
  display: inline-block;
  font-size: 10px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 5px;
  padding: 1px 6px;
  margin-top: 7px;
}

.pkg-tag {
  position: absolute;
  left: -1px; top: -1px;
  font-size: 9px;
  color: #fff;
  background: var(--brand);
  padding: 1px 8px;
  border-radius: 0 0 9px 0;
}

.amt-box {
  margin: 0 16px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.amt-lab { font-size: 13px; }
.amt-sub { display: block; font-size: 10px; color: var(--faint); margin-top: 1px; }

.stepper { margin-left: auto; display: flex; align-items: center; background: #f4f5f8; border-radius: 10px; padding: 3px; }

.step-btn {
  width: 32px; height: 28px;
  border-radius: 8px;
  font-size: 17px;
  color: #3b4150;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.step-btn:active { background: #e7e9ef; }
.step-val { min-width: 66px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); }

.pay-list { margin: 0 16px; background: #fff; border-radius: 14px; overflow: hidden; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }

.pay-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex: 0 0 28px;
}

.pay-main { font-size: 13px; flex: 1; min-width: 0; }
.pay-sub { display: block; font-size: 10px; color: var(--faint); }

.radio {
  margin-left: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d6d9e0;
  position: relative;
  flex: 0 0 18px;
}

.radio.is-on { border-color: var(--brand); }
.radio.is-on::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 3px; bottom: 3px;
  border-radius: 50%;
  background: var(--brand);
}

.notice-lines view, .notice-lines > div { line-height: 1.55; }
.topup-pad { height: 112px; }

.pay-bar {
  position: fixed;
  left: 50%;
  right: auto;
  width: 100%;
  max-width: var(--app-w, 560px);
  transform: translateX(-50%);
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.pay-bar-inner { max-width: calc(var(--app-w, 560px) - 32px); margin: 0 auto; }
.pay-row-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pay-price { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; }
.pay-pts { font-size: 11px; color: var(--faint); }

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.pay-btn:active { background: var(--brand-ink); }

/* ================= 支付结果 result ================= */
.done-wrap { padding: 54px 16px 0; text-align: center; }

.done-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.done-ico .ic { width: 30px; height: 30px; }
.done-t { font-size: 18px; font-weight: 600; margin-top: 16px; letter-spacing: -0.3px; }
.done-pts { font-size: 34px; font-weight: 600; letter-spacing: -1.2px; margin-top: 10px; color: var(--text); }
.done-u { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.done-bal { font-size: 11px; color: var(--faint); margin-top: 5px; }

.done-card { background: #fff; border-radius: 14px; margin: 22px 16px 0; padding: 4px 14px; text-align: left; }
.done-card .kv { padding: 11px 0; }

.done-btns { padding: 22px 16px 0; display: flex; flex-direction: column; gap: 9px; }

.done-ghost {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.done-hint { font-size: 10px; color: var(--faint); text-align: center; margin-top: 4px; }
.done-pad { height: 30px; }

/* ================= 充值记录 orders ================= */
.od-sum { margin-top: 14px; display: flex; align-items: flex-end; gap: 10px; }
.od-k { font-size: 11px; color: var(--faint); }
.od-v { font-size: 24px; font-weight: 600; letter-spacing: -0.8px; }
.od-u { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }

.od-side { margin-left: auto; text-align: right; font-size: 11px; color: var(--muted); line-height: 1.7; }

.order { background: #fff; border-radius: 14px; margin: 0 16px 10px; padding: 14px; }
.order.is-closed { opacity: 0.72; }
.order-h { display: flex; align-items: center; gap: 8px; }
.order-pts { font-size: 13px; font-weight: 600; }
.order-st { margin-left: auto; }

.order-m { display: flex; align-items: flex-end; gap: 8px; margin-top: 9px; }
.order-price { font-size: 20px; font-weight: 600; letter-spacing: -0.4px; }
.order-pay { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.order-time { margin-left: auto; font-size: 13px; color: var(--muted); }

.order-no { font-size: 10px; color: var(--faint); margin-top: 7px; line-height: 1.6; cursor: pointer; }

.order-act { margin-top: 11px; display: flex; gap: 8px; }

.order-btn {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  background: #f4f5f8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.order-btn.primary { background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* ================= 上传视频资源 video-upload ================= */
.uv-body { padding-bottom: 0; }

/* 授权声明：上传分身/声音前的硬门槛，两个页面共用 */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 16px 0;
  padding: 13px 14px;
  background: #fff;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #5b6270;
  cursor: pointer;
}

.consent.is-on { background: var(--brand-soft); color: #414a5c; }

.consent-box {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid #cfd4dd;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent.is-on .consent-box { background: var(--brand); border-color: var(--brand); }

.consent-box i {
  display: none;
  width: 9px; height: 5px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.consent.is-on .consent-box i { display: block; }
.consent-t { flex: 1; }
.consent-t b { color: var(--text); font-weight: 500; }

.uv-pick {
  margin: 14px 16px 0;
  height: 180px;
  border: 1px dashed #d3d7de;
  border-radius: 14px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.uv-pick:active { background: #f4f5f7; }

.uv-pick-plus {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 4px;
}

.uv-pick-plus .ic { width: 20px; height: 20px; }
.uv-pick-t { font-size: 14px; font-weight: 500; color: var(--text); }
.uv-pick-s { font-size: 11px; color: var(--faint); }

.uv-video-wrap { margin: 14px 16px 0; position: relative; border-radius: 14px; overflow: hidden; background: #17191f; }
.uv-video { width: 100%; height: 280px; display: block; object-fit: contain; }

.uv-repick {
  position: absolute;
  right: 10px; top: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  z-index: 2;
}

.uv-notice { margin-top: 12px; }

.uv-block { background: #fff; border-radius: 14px; margin: 12px 16px 0; padding: 14px; }
.uv-count { margin-left: auto; font-size: 11px; color: var(--faint); }

.uv-input {
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  margin-top: 10px;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}

.uv-input::placeholder { color: #b3b8c2; }
.uv-sub { font-size: 10px; color: var(--faint); margin-top: 6px; }

.uv-footer { margin-top: 20px; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }

.uv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.uv-btn:active { background: var(--brand-ink); }
.uv-btn.is-off { background: #d9dce4; color: #fff; }

.uv-note { font-size: 10px; color: var(--faint); text-align: center; margin-top: 7px; line-height: 1.5; }

/* ================= 声音克隆 voice-clone ================= */
.vc-body { padding-bottom: 0; }

.vc-warn {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  font-size: 12px;
  color: var(--amber);
  line-height: 1.55;
}

.vc-warn b { font-weight: 600; color: var(--amber); }
.vc-warn .ic { width: 16px; height: 16px; margin-top: 1px; }

.vc-block { background: #fff; border-radius: 14px; margin: 12px 16px 0; padding: 14px; }

.vc-step {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.vc-script {
  margin-top: 10px;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.vc-copy {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  cursor: pointer;
}

.vc-sub { font-size: 10px; color: var(--faint); margin-top: 7px; line-height: 1.5; }

.vc-way {
  border: 1px dashed #d3d7de;
  border-radius: 10px;
  background: #fcfcfd;
  padding: 20px 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.vc-way:active { background: #f4f5f7; }

.vc-way-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f7;
  color: #5f6572;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.vc-way-ico.is-red { background: var(--red-soft); color: var(--red); }
.vc-way-t { font-size: 13px; font-weight: 500; color: var(--text); }
.vc-way-s { font-size: 10px; color: var(--faint); }

.vc-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: #fafbff;
}

.vc-rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e5483f;
  flex: 0 0 10px;
  animation: vc-pulse 1s ease-in-out infinite;
}

@keyframes vc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.vc-rec-main { flex: 1; min-width: 0; }
.vc-rec-t { font-size: 13px; font-weight: 600; color: var(--text); }
.vc-rec-s { font-size: 10px; color: var(--faint); margin-top: 1px; }

.vc-rec-stop {
  flex: 0 0 auto;
  font-size: 12px;
  color: #fff;
  background: var(--red);
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
}

.vc-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed #d3d7de;
  border-radius: 10px;
  background: #fcfcfd;
}

.vc-audio.is-on { border-style: solid; border-color: var(--brand); background: #fafbff; }

.vc-audio-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f3f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.vc-audio-ico .ic { width: 17px; height: 17px; }
.vc-audio-ico.is-ok { background: var(--green-soft); }
.vc-audio-main { flex: 1; min-width: 0; }

.vc-audio-t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-audio-s { font-size: 10px; color: var(--faint); margin-top: 1px; }
.vc-audio-act { font-size: 12px; color: var(--red); flex: 0 0 auto; cursor: pointer; }

.vc-input {
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  margin-top: 10px;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}

.vc-input::placeholder { color: #b3b8c2; }
.vc-pad { height: 190px; }

.vc-footer {
  position: fixed;
  left: 50%;
  right: auto;
  width: calc(100% - 32px);
  max-width: calc(var(--app-w, 560px) - 32px);
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 15;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 -1px 0 var(--line), 0 8px 24px rgba(20, 22, 28, 0.07);
}

.vc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.vc-btn:active { background: var(--brand-ink); }
.vc-btn.is-off { background: #d9dce4; color: #fff; }

.vc-note { font-size: 10px; color: var(--faint); text-align: center; margin-top: 7px; line-height: 1.5; }

/* ================= 客服 service ================= */
/* 导航 44px 在文档流里占位，100vh 会把输入栏顶到视口外 → 减掉导航高度；dvh 兼容移动端地址栏 */
.svc-body { display: flex; flex-direction: column; height: calc(100vh - 44px); height: calc(100dvh - 44px); padding-bottom: 0; overflow: hidden; }

.svc-list { flex: 1; min-height: 0; padding: 10px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.svc-tip {
  text-align: center;
  font-size: 10px;
  color: #b3b8c2;
  padding: 4px 20px 12px;
  line-height: 1.6;
}

.svc-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 16px; }
.svc-row.is-me { justify-content: flex-end; }

.svc-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.svc-avatar.is-me { background: #f1f2f5; color: #5f6572; }

.bub {
  max-width: 68%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-all;
}

.bub-cs { background: #fff; color: var(--text); border-top-left-radius: 4px; }
.bub-me { background: var(--brand); color: #fff; border-top-right-radius: 4px; }

.bub-voice { display: flex; align-items: center; gap: 8px; min-width: 90px; cursor: pointer; }

.svc-wave { display: flex; align-items: center; gap: 2.5px; height: 20px; }
.svc-wave-bar { width: 3px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.svc-wave.is-on .svc-wave-bar { opacity: 1; }
.bub-voice.is-playing { opacity: 0.85; }

.bub-img { padding: 0; overflow: hidden; background: transparent; }

.svc-img { width: 160px; height: 160px; border-radius: 12px; display: block; background: #e8eaef; object-fit: cover; }

.svc-typing { display: flex; align-items: center; gap: 5px; padding: 13px; }

.svc-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c3c7d0;
  animation: svc-blink 1s ease-in-out infinite;
  display: block;
}

.svc-typing i:nth-child(2) { animation-delay: 0.2s; }
.svc-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes svc-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.svc-bottom { height: 4px; }

.svc-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
}

.svc-mode {
  flex: 0 0 auto;
  font-size: 12px;
  color: #3b4150;
  background: #f1f2f5;
  border-radius: 16px;
  padding: 7px 13px;
  cursor: pointer;
}

.svc-mode.is-voice { background: var(--brand-soft); color: var(--brand); }
.svc-mode:active { opacity: 0.8; }

.svc-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  line-height: 36px;
  background: #f4f5f8;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
}

.svc-input::placeholder { color: #b3b8c2; }

.svc-send {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
}

.svc-send:active { background: var(--brand-ink); }

.svc-plus {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f1f2f5;
  color: #5f6572;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.svc-plus:active { background: #e7e9ef; }

.svc-hold {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f8;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

.svc-hold.is-rec { background: var(--red-soft); color: var(--red); font-weight: 500; }

/* ================= 支付：套餐说明 + 扫码层 ================= */
.pkg-note {
  margin: 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  line-height: 1.6;
}

.pay-btn.is-busy { opacity: 0.7; pointer-events: none; }

.qr-layer {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 17, 22, 0.5);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.qr-layer.is-on { opacity: 1; }

.qr-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
  box-shadow: 0 18px 48px rgba(15, 17, 22, 0.24);
}

.qr-layer.is-on .qr-card { transform: none; }

.qr-t { font-size: 16px; font-weight: 600; }
.qr-amt { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

.qr-box {
  margin: 14px auto 0;
  width: 208px;
  height: 208px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-box svg { width: 100%; height: 100%; display: block; }

.qr-loading { font-size: 13px; color: var(--faint); }

.qr-fallback { padding: 12px; width: 100%; }
.qr-url {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
  background: #f4f5f8;
  border-radius: 8px;
  padding: 8px;
  max-height: 96px;
  overflow: auto;
}
.qr-url-tip { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.qr-tip { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.qr-wait { margin-top: 4px; font-size: 12px; color: var(--faint); min-height: 18px; }

.qr-btns { display: flex; gap: 10px; margin-top: 16px; }

.qr-btn {
  flex: 1;
  height: 42px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-btn:active { background: var(--brand-ink); }
.qr-btn.ghost { background: #f2f3f6; color: var(--text); }
.qr-btn.ghost:active { background: #e8eaef; }
.qr-btn.is-busy { opacity: 0.7; pointer-events: none; }

.qr-note { margin-top: 12px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* 支付结果：确认中 / 失败 两种非成功态 */
.done-ico.is-wait { background: var(--amber-soft); color: var(--amber); }
.done-ico.is-fail { background: var(--red-soft); color: var(--red); }

.spin {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(138, 90, 0, 0.22);
  border-top-color: currentColor;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.done-pts.is-plain { color: var(--text); font-weight: 500; font-size: 24px; }

/* ================= 资产：源素材播放 ================= */
/* 分身封面右下角的「源视频」播放键 */
/* 放左上角：底部留给「竖屏 1080p / 待提取」角标，避免压字 */
.aplay {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px 0 7px;
  border-radius: 13px;
  background: rgba(23, 25, 31, 0.72);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.aplay:active { background: rgba(23, 25, 31, 0.88); }

.aplay-tri {
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 1px;
}

/* 源视频弹层（复用 .qr-layer 的遮罩与过渡） */
.media-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 48px rgba(15, 17, 22, 0.24);
}

.media-t { font-size: 15px; font-weight: 600; }

.media-video {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  background: #000;
  max-height: 56vh;
}

.media-sub { margin-top: 8px; font-size: 12px; color: var(--muted); }

.media-btns { display: flex; gap: 10px; margin-top: 14px; }

.media-btn {
  flex: 1;
  text-decoration: none;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}
