/* ============================================================
 * 星念AI · 样式
 * ============================================================ */
:root {
  --bg: #050913;
  --bg-soft: #0b1120;
  --card: #101827;
  --card-2: #16202f;
  --line: rgba(255, 255, 255, .08);
  --text: #eef2f8;
  --text-2: #9aa8bd;
  --text-3: #6b7a90;
  --gold: #e3b96b;
  --gold-2: #f6dca4;
  --red: #c8404a;
  --green: #3fb27f;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(227, 185, 107, .16), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(64, 120, 255, .10), transparent 60%),
    var(--bg);
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- 布局 ---------- */
#main {
  max-width: 560px;
  margin: 0 auto;
  padding: 68px 16px calc(84px + var(--safe-b));
}

.view { display: none; animation: fade .22s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 560px;
  margin: 0 auto;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 9, 19, .92), rgba(5, 9, 19, .55));
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b98b3c);
  color: #1a1206;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(227, 185, 107, .55);
}
.brand-name { font-weight: 700; letter-spacing: .5px; }

.points-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(227, 185, 107, .12);
  border: 1px solid rgba(227, 185, 107, .35);
  color: var(--gold-2);
  font-size: 13px;
}
.points-chip .points-label { color: var(--text-2); font-size: 12px; }
.points-chip b { font-variant-numeric: tabular-nums; }
.points-plus {
  display: grid; place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gold);
  color: #201607;
  font-size: 12px; font-weight: 700;
  margin-left: 2px;
}

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  padding: 26px 6px 26px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: -30%; top: -60%;
  width: 160%; height: 200%;
  background:
    radial-gradient(45% 45% at 30% 30%, rgba(227,185,107,.18), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(120,140,255,.12), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  color: var(--gold); font-size: 11.5px; letter-spacing: 4px;
}
.hero-eyebrow::after {
  content: ''; display: block; width: 42px; height: 1px;
  background: linear-gradient(90deg, rgba(227,185,107,.9), transparent);
}
.hero-title {
  position: relative;
  margin: 0 0 10px;
  font-size: 34px; line-height: 1.22;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #fff 10%, #f3e0ba 70%, #e3b96b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { position: relative; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.7; }

/* ---------- 通用标题 ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 24px 4px 12px;
}
.section-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.section-hint { color: var(--text-3); font-size: 12px; }

.page-head { padding: 6px 4px 14px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 13px; }

/* ---------- 数字人卡片 ---------- */
.char-list { display: grid; gap: 12px; }

.char-card {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.char-card:active { transform: scale(.985); }
.char-card.is-add { border-style: dashed; background: rgba(255, 255, 255, .02); box-shadow: none; }

.char-face {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  color: rgba(0, 0, 0, .55);
  background: linear-gradient(150deg,
    hsl(var(--hue) 62% 72%),
    hsl(calc(var(--hue) + 26) 55% 50%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 22px rgba(0, 0, 0, .35);
}

.char-body { flex: 1 1 auto; min-width: 0; }
.char-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.char-tag {
  font-size: 11px; font-weight: 500;
  padding: 1px 7px; border-radius: 999px;
  color: var(--gold-2);
  background: rgba(227, 185, 107, .14);
  border: 1px solid rgba(227, 185, 107, .3);
}
.char-meta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.char-desc {
  color: var(--text-2); font-size: 12.5px; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.char-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform .12s ease, opacity .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241806;
  box-shadow: 0 8px 22px rgba(227, 185, 107, .28);
}
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line);
  color: var(--text);
}
.btn-line {
  background: transparent;
  border-color: rgba(227, 185, 107, .5);
  color: var(--gold-2);
}
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-card {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.quick-ico { font-size: 20px; }
.quick-name { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.quick-sub { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* ---------- 制作 ---------- */
.studio-list { display: grid; gap: 12px; }
/* 只剩一个制作项目时，卡片放大、更醒目 */
.studio-card.is-single {
  padding: 24px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(227, 185, 107, .55);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(227,185,107,.16), transparent 55%),
    var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
.studio-card.is-single .studio-ico {
  width: 66px; height: 66px; font-size: 32px;
  border-radius: 20px;
  background: rgba(227,185,107,.14);
  border: 1px solid rgba(227,185,107,.35);
}
.studio-card.is-single .studio-name { font-size: 21px; font-weight: 700; }
.studio-card.is-single .studio-desc { font-size: 14px; line-height: 1.75; }
.studio-card.is-single .studio-foot { width: 100%; margin-top: 4px; }
.studio-card.is-single .btn { width: 100%; padding: 14px; font-size: 16px; }
.studio-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.studio-ico {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(227, 185, 107, .1);
  border: 1px solid rgba(227, 185, 107, .22);
  font-size: 19px;
}
.studio-body { flex: 1 1 auto; min-width: 0; }
.studio-name { font-weight: 600; }
.studio-desc { color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.studio-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.studio-price { color: var(--gold-2); font-size: 13px; }
.studio-price b { font-size: 17px; font-variant-numeric: tabular-nums; }

.notice {
  margin-top: 18px; padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.notice b { font-size: 13px; }
.notice p { margin: 6px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }

/* ---------- 思念空间 ---------- */
.ritual-hero {
  position: relative;
  padding: 26px 20px 24px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(320px 200px at 80% 0%, rgba(255, 176, 90, .22), transparent 70%),
    linear-gradient(160deg, #1b1206, #0d0a06 70%);
  border: 1px solid rgba(227, 185, 107, .22);
}
.ritual-hero::after {
  content: "福";
  position: absolute; right: 14px; bottom: -26px;
  font-size: 120px; font-weight: 700;
  line-height: 1;
  color: var(--gold); opacity: .10;
  font-family: "Songti SC", "SimSun", serif;
  transform: rotate(-8deg);
  pointer-events: none;
}
.ritual-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 4px; color: var(--gold); }
.ritual-hero h1 { margin: 0 0 10px; font-size: 27px; letter-spacing: 1px; }
.ritual-desc { margin: 0; color: #cbb894; font-size: 12.5px; line-height: 1.8; position: relative; z-index: 1; }

.ritual-tabs {
  display: flex; gap: 8px;
  margin: 18px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ritual-tabs::-webkit-scrollbar { display: none; }
.ritual-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.ritual-tab.active {
  color: #241806;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  font-weight: 700;
}

.pkg-list { display: grid; gap: 12px; }
.pkg {
  position: relative;
  padding: 15px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: border-color .15s ease, transform .12s ease;
}
.pkg:active { transform: scale(.99); }
.pkg.selected {
  border-color: rgba(227, 185, 107, .75);
  box-shadow: 0 0 0 1px rgba(227, 185, 107, .35), 0 10px 30px rgba(227, 185, 107, .12);
}
.pkg-badge {
  position: absolute; top: -9px; left: 14px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: #2a1c06;
  background: linear-gradient(135deg, #ffd98b, #e3b96b);
}
.pkg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pkg-name { font-weight: 700; font-size: 15.5px; }
.pkg-price { color: var(--gold-2); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.pkg-price small { font-size: 12px; font-weight: 500; opacity: .8; }
.pkg-rows { margin: 10px 0 0; display: grid; gap: 5px; }
.pkg-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.pkg-row b { color: var(--text); font-weight: 600; }

.addon-list { margin-top: 14px; display: grid; gap: 8px; }
.addon {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: 13px;
}
.addon input { width: 17px; height: 17px; accent-color: var(--gold); }

.form { margin-top: 16px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--text-2); font-size: 12.5px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(227, 185, 107, .6);
  background: rgba(227, 185, 107, .06);
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.field small { color: var(--text-3); font-size: 11.5px; }
.field select option { background: #101827; }

.summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(227, 185, 107, .07);
  border: 1px solid rgba(227, 185, 107, .25);
}
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.summary-row.total { margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(227, 185, 107, .3); font-size: 15px; }
.summary-row.total b { color: var(--gold-2); font-size: 20px; }

.disclaimer {
  margin: 16px 0 0;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.8;
}

.empty { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------- 消息 ---------- */
.msg-list { display: grid; gap: 10px; }
.msg {
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.msg-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-title { font-weight: 600; font-size: 14px; }
.msg-time { color: var(--text-3); font-size: 11.5px; }
.msg-body { color: var(--text-2); font-size: 12.5px; margin-top: 6px; line-height: 1.7; }

/* ---------- 我的 ---------- */
.profile-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #172133, #0e1522);
  border: 1px solid var(--line);
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), #b98b3c);
  color: #241806; font-weight: 700; font-size: 20px;
}
.profile-copy { display: grid; gap: 2px; }
.profile-copy strong { font-size: 16px; }
.profile-copy span { color: var(--text-3); font-size: 12px; }

.wallet {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius);
  background: radial-gradient(200px 120px at 10% 0%, rgba(227, 185, 107, .18), transparent 70%), var(--card);
  border: 1px solid rgba(227, 185, 107, .25);
}
.wallet-label { display: block; color: var(--text-2); font-size: 12px; }
.wallet b { font-size: 28px; color: var(--gold-2); font-variant-numeric: tabular-nums; }

.order-list { display: grid; gap: 10px; }
.order {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.order-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.order-title { font-weight: 600; font-size: 13.5px; }
.order-status { font-size: 11.5px; color: var(--gold-2); }
.order-status.done { color: var(--green); }
.order-meta { margin-top: 6px; color: var(--text-3); font-size: 11.5px; line-height: 1.6; }

.settings { margin-top: 20px; display: grid; gap: 8px; }
.settings-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
}
.settings-row .grow { display: grid; gap: 2px; flex: 1 1 auto; }
.settings-row strong { font-weight: 600; font-size: 13.5px; }
.settings-row small { color: var(--text-3); font-size: 11.5px; }
.chevron { color: var(--text-3); }

.footnote { margin: 22px 0 0; text-align: center; color: var(--text-3); font-size: 11.5px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + var(--safe-b));
  background: rgba(8, 13, 24, .92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: grid; justify-items: center; gap: 3px;
  padding: 7px 0 5px;
  color: var(--text-3);
  font-size: 11.5px;
  transition: color .18s ease;
}
.tab-ico { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .62; transition: all .18s ease; }
.tab.active { color: var(--gold-2); font-weight: 600; }
.tab.active .tab-ico { filter: none; opacity: 1; transform: translateY(-2px) scale(1.08); }
.tab.active::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, #ffe3a8, #e3b96b);
  box-shadow: 0 0 10px rgba(227,185,107,.8);
}
/* 页面切换淡入 */
.view.active { animation: viewIn .26s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 弹层 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 60; display: none; }
.modal-root.open { display: block; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(2, 5, 12, .72);
  backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 20px 18px calc(22px + var(--safe-b));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #16202f, #0b1120);
  border: 1px solid var(--line);
  border-bottom: 0;
  animation: sheet .26s cubic-bezier(.2, .9, .2, 1);
}
@keyframes sheet { from { transform: translate(-50%, 24px); } to { transform: translate(-50%, 0); } }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { margin: 0; font-size: 17px; }
.modal-sub { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--text-2); font-size: 16px;
}
.modal-body { margin-top: 16px; }

/* 充值套餐 */
.plan-list { display: grid; gap: 10px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.plan-main { display: grid; gap: 2px; }
.plan-name { font-weight: 600; font-size: 14px; }
.plan-note { color: var(--text-3); font-size: 11.5px; }
.plan-price { color: var(--gold-2); font-weight: 700; font-size: 17px; }

/* 通话界面 */
/* ============================================================
 * 通话界面（微信视频风格 · 9:16 全屏）
 * ============================================================ */
/* ============================================================
 * 通话界面（固定 9:16 画框，微信视频风格）
 * ============================================================ */
.call-screen {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  background: #05070d;
}
.call-screen.open {
  display: grid;
  place-items: center;
  padding: 0;
}

/* 默认（手机竖屏）：铺满全屏；比 9:16 更宽的窗口（电脑/横屏）→ 锁成 9:16 画框居中 */
.call-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(80% 60% at 50% 30%, #16233c, #05070d 72%);
  display: flex; align-items: center; justify-content: center;
}
@media (min-aspect-ratio: 10/16) {
  .call-stage {
    width: min(100vw, calc(100vh * 9 / 16));
    height: min(100vh, calc(100vw * 16 / 9));
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  }
}

/* 等待接通：模糊照片背景 + 头像 + 名字 + 提示（微信视频那种） */
.call-bg {
  position: absolute; inset: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(22px) brightness(.45) saturate(.9);
  transform: scale(1.06);
  z-index: 1;
}
.call-wait {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 24px;
  text-align: center;
}
.call-avatar {
  width: min(40vw, 132px); aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 42px; font-weight: 700; color: rgba(0, 0, 0, .45);
  background: linear-gradient(150deg, hsl(var(--hue) 62% 72%), hsl(calc(var(--hue) + 26) 55% 48%));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .2);
  animation: avatarBreath 2.6s ease-in-out infinite;
}
.call-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
@keyframes avatarBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.call-wait-name {
  font-size: 20px; font-weight: 700; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.call-wait-tip {
  font-size: 13px; color: rgba(255, 255, 255, .78);
  display: inline-flex; align-items: center; gap: 6px;
}
.call-wait-tip::after {
  content: '';
  width: 18px; height: 4px;
  background: radial-gradient(circle, rgba(255,255,255,.9) 1.5px, transparent 2px) 0 50% / 6px 4px repeat-x;
  animation: dotsMove 1s linear infinite;
}
@keyframes dotsMove { from { background-position: 0 50%; } to { background-position: 6px 50%; } }
.call-stage.is-live .call-bg,
.call-stage.is-live .call-wait { display: none; }

/* 远端视频：一直存在（SDK 绑定视图要求元素可见有尺寸），没画面时被模糊底图盖住 */
.call-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 0;
}
.call-stage.is-live .call-avatar { display: none; }

/* 浮层 */
.call-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.call-top {
  position: absolute; top: calc(16px + var(--safe-t, 0px)); left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.call-name { font-size: 16px; font-weight: 700; color: #fff; }
.call-status { color: rgba(255, 255, 255, .8); font-size: 11.5px; letter-spacing: .4px; }

.call-self {
  position: absolute; top: calc(14px + var(--safe-t, 0px)); right: 12px;
  width: 78px; height: 104px;
  object-fit: cover;
  border-radius: 10px;
  background: #10151f;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  transform: scaleX(-1);
}
.call-bottom {
  position: absolute; left: 0; right: 0; bottom: calc(112px + var(--safe-b, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.call-timer {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(6px);
}



.call-mic-level {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(6px);
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}
.call-mic-level span { white-space: nowrap; }
.call-mic-level i {
  display: block;
  width: 0%;
  max-width: 54px;
  min-width: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ee7a8, #ffe3a8);
  transition: width .12s linear;
}
.call-mic-level.is-ok { color: #9ce4c0; }

.call-actions {
  position: absolute; left: 0; right: 0; bottom: calc(26px + var(--safe-b, 0px));
  display: flex; justify-content: center; gap: 22px;
  pointer-events: auto;
}
.call-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 21px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.call-btn.hangup { background: var(--red); border-color: transparent; box-shadow: 0 10px 26px rgba(200, 64, 74, .45); }
.call-btn.mic-off { opacity: .45; }
.call-btn.is-on {
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  border-color: transparent;
  color: #241806;
}


/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 12px);
  z-index: 90;
  max-width: 84vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 28, 44, .96);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
 * 首页单卡（示例数字人）
 * ============================================================ */
.demo-card {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(170deg, #1a2437, #0d1422);
  border: 1px solid rgba(227, 185, 107, .22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.demo-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 40%, hsl(var(--hue) 45% 28%), #0a1018 70%);
  overflow: hidden;
}
.demo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-badge {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.demo-badge.is-out {
  color: #ffd0d4;
  background: rgba(200, 64, 74, .22);
  border: 1px solid rgba(200, 64, 74, .55);
  box-shadow: none;
}
.demo-body { padding: 16px 16px 18px; }
.demo-name { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.demo-desc { margin: 0 0 10px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.demo-meta { color: var(--text-3); font-size: 12px; margin-bottom: 14px; }
.demo-meta b { color: var(--gold-2); font-size: 15px; }
.demo-btn { font-size: 15px; padding: 14px; }
.home-foot { margin-top: 16px; }
.home-foot .btn { font-size: 13px; }

/* 角色头像里放图片 */
.char-face { overflow: hidden; padding: 0; }
.char-face img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* 会员标识 */
.member-tag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.member-tag.is-on { color: var(--gold-2); border-color: rgba(227, 185, 107, .45); }
.member-tag.is-vip {
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  border: 0;
  font-weight: 700;
}

/* ============================================================
 * 亲情视频通话（居中框架）
 * ============================================================ */
.family-frame {
  margin: 4px auto 22px;
  max-width: 340px;
  padding: 20px 18px 18px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 185, 107, .16), transparent 62%),
    linear-gradient(180deg, #1a2333, #0c1220);
  border: 1px solid rgba(227, 185, 107, .38);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
}
.family-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 6px 18px rgba(227, 185, 107, .28);
}
.family-photo-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 16px auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(227, 185, 107, .5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  background: radial-gradient(circle at 50% 40%, #2a3448, #0d1420);
}
.family-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.family-badge {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  color: #241806; background: rgba(255, 227, 168, .94);
  white-space: nowrap;
}
.family-badge.is-out { color: #ffd0d4; background: rgba(200, 64, 74, .85); }
.family-name { font-size: 19px; font-weight: 700; margin-top: 2px; }
.family-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin: 6px 6px 14px; }
.family-btn {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 12px 30px rgba(227, 185, 107, .3);
}
.family-btn:active { transform: scale(.985); }
.family-hint { margin-top: 10px; font-size: 11px; color: var(--text-3); }

/* 选家人 */
.family-pick-list { display: grid; gap: 8px; margin-bottom: 12px; }
.family-pick {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  text-align: left;
}
.family-pick-face {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: #1b2434; color: var(--gold-2); font-size: 17px;
}
.family-pick-face img { width: 100%; height: 100%; object-fit: cover; }
.family-pick-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.family-pick-body b { font-size: 14px; }
.family-pick-body i { font-style: normal; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-pick-go {
  flex: 0 0 auto; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
}
.family-pick.is-demo { border-color: rgba(227, 185, 107, .42); background: rgba(227, 185, 107, .07); }
.demo-tag {
  font-style: normal; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; margin-left: 4px;
  color: #241806; background: linear-gradient(135deg, #ffe3a8, var(--gold));
}

/* 记忆上传（会员） */
.memory-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(227, 185, 107, .07);
  border: 1px solid rgba(227, 185, 107, .3);
  display: grid; gap: 8px;
}
.memory-box.is-locked { background: rgba(255, 255, 255, .03); border-color: var(--line); opacity: .78; }
.memory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.memory-head b { font-size: 13px; }
.memory-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  color: var(--text-3); border: 1px solid var(--line);
}
.memory-tag.on { color: #241806; background: linear-gradient(135deg, #ffe3a8, var(--gold)); border: 0; }
.memory-box textarea {
  width: 100%; min-height: 84px; resize: vertical;
  padding: 10px; border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-1); font-size: 13px; line-height: 1.6;
}
.memory-box small { color: var(--text-3); font-size: 11px; }
.memory-upload { display: grid; gap: 6px; }
.memory-file {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px;
  border-radius: 11px;
  border: 1px dashed rgba(227, 185, 107, .45);
  background: rgba(227, 185, 107, .08);
  color: var(--gold-2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.memory-file.is-off { border-color: var(--line); background: rgba(255, 255, 255, .03); color: var(--text-3); cursor: not-allowed; }
.memory-file input { display: none; }

/* 音色试听 */
.voice-item { display: flex; align-items: stretch; gap: 8px; }
.voice-item .voice-row { flex: 1 1 auto; }
.voice-play {
  flex: 0 0 42px;
  border-radius: 13px;
  font-size: 14px;
  color: var(--gold-2);
  background: rgba(227, 185, 107, .1);
  border: 1px solid rgba(227, 185, 107, .32);
}
.voice-play.is-playing {
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  border-color: transparent;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .62 } }

.voice-play.is-off {
  color: var(--text-3);
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  opacity: .5;
}
.voice-tip {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.voice-tip b { color: var(--gold-2); }
.voice-tip small { font-size: 10.5px; opacity: .8; }

/* 录音设备 + 音量条 */
.rec-tools {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.rec-device {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
}
.rec-level {
  flex: 0 0 88px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.rec-level i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #6ee7a8, #ffe3a8, #ff7b7b);
  transition: width .08s linear;
}

/* 录音按钮 */
.rec-row { display: flex; align-items: center; gap: 10px; }
.rec-btn {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px;
  border-radius: 13px;
  font-size: 14px; font-weight: 700;
  color: var(--gold-2);
  background: rgba(227, 185, 107, .1);
  border: 1px solid rgba(227, 185, 107, .45);
}
.rec-btn .rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}
.rec-btn.is-rec {
  color: #fff;
  background: rgba(200, 64, 74, .18);
  border-color: rgba(200, 64, 74, .6);
}
.rec-btn.is-rec .rec-dot {
  background: #ff5c66;
  animation: recPulse 1s infinite;
}
@keyframes recPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.rec-time {
  flex: 0 0 48px;
  text-align: right;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* 文件选择（避免浏览器原生白框） */
.file-drop {
  display: flex; align-items: center; justify-content: center;
  padding: 13px;
  border-radius: 13px;
  border: 1px dashed rgba(227, 185, 107, .45);
  background: rgba(227, 185, 107, .08);
  color: var(--gold-2);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.file-drop input { display: none; }
.file-drop span {
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 我的 → 亲人角色（小方块） */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 12px 10px;
}
.person-grid .empty { grid-column: 1 / -1; }
.person-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0;
  background: none;
  border: none;
}
.pt-face {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2a3550, #151b28);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.pt-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-initial { font-size: 22px; font-weight: 700; color: var(--gold-2); }
.pt-name {
  font-size: 12px;
  color: var(--text-2);
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 会员中心入口 */
.member-entry {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  padding: 15px 16px;
  border-radius: 16px;
  text-align: left;
  color: var(--text-1);
  background: linear-gradient(135deg, rgba(227, 185, 107, .16), rgba(227, 185, 107, .05));
  border: 1px solid rgba(227, 185, 107, .35);
}
.member-entry .me-crown { font-size: 20px; }
.member-entry .grow { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.member-entry strong { font-size: 14.5px; color: var(--gold-2); }
.member-entry small { font-size: 11.5px; color: var(--text-3); }
.member-entry .chevron { color: var(--text-3); }

/* 会员中心弹窗 */
.member-summary {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.ms-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-3);
}
.ms-row b { color: var(--text-1); font-size: 14px; }
.member-perks { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.perk {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-3);
}
.perk span { flex: 0 0 auto; color: var(--text-3); }
.perk.is-ok { color: #9ce4c0; }
.perk.is-ok span { color: #6ee7a8; }

/* 只有一张「新建角色」卡时居中 */
.role-grid.is-single {
  display: flex;
  justify-content: center;
}
.role-grid.is-single .role-card.is-new {
  max-width: 150px;
  width: 100%;
}

/* 近亲属授权声明 */
.consent-box {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.65;
  color: var(--text-3);
}
.consent-box.is-checked { border-color: rgba(227, 185, 107, .45); background: rgba(227, 185, 107, .06); }
.consent-box b { color: var(--text-2); font-size: 12.5px; }
.consent-box u { color: var(--gold-2); text-decoration: none; border-bottom: 1px dashed rgba(227,185,107,.6); }
.consent-box input {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin: 1px 0 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  position: relative;
}
.consent-box input:checked { background: var(--gold); border-color: var(--gold); }
.consent-box input:checked::after {
  content: '✓';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #241806;
}

/* 通话画面上的 AI 生成标识（深度合成规定要求） */
.call-ai-tag {
  position: absolute;
  left: 10px;
  top: calc(14px + var(--safe-t, 0px));
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .62);
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}

/* 照片生成视频：模板与时长选择 */
.pv-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-tpl {
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04); color: var(--text-2, #cfd6e4);
  font-size: 13px; line-height: 1; transition: .18s;
}
.pv-tpl.is-on {
  border-color: rgba(227,185,107,.75);
  background: rgba(227,185,107,.16);
  color: var(--gold-2, #f0cf95);
  font-weight: 600;
}
.pv-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-tier {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04); color: var(--text-2, #cfd6e4);
  transition: .18s;
}
.pv-tier b { font-size: 15px; }
.pv-tier span { font-size: 11.5px; color: var(--gold-2, #f0cf95); }
.pv-tier em { font-size: 10.5px; font-style: normal; color: var(--text-3, #8a97ad); }
.pv-tier.is-on {
  border-color: rgba(227,185,107,.8);
  background: linear-gradient(160deg, rgba(227,185,107,.22), rgba(227,185,107,.06));
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.pv-tier.is-on b { color: #fff; }

/* 页脚备案号 */
.site-footer {
  padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
}
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:active { color: var(--gold-2); }
.site-footer .dot { margin: 0 8px; opacity: .5; }

/* 登录页（手机号 + 验证码） */
.auth-gate {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: radial-gradient(120% 80% at 50% 0%, #17223a 0%, #080b12 60%);
}
.auth-gate.open { display: flex; align-items: center; justify-content: center; }
body.auth-locked { overflow: hidden; }
.auth-inner {
  width: 100%;
  max-width: 340px;
  padding: 0 24px;
  text-align: center;
}
.auth-logo {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 14px 40px rgba(227, 185, 107, .35);
}
.auth-title { margin: 0 0 6px; font-size: 24px; letter-spacing: .04em; color: #fff; }
.auth-sub { margin: 0 0 26px; font-size: 13px; color: var(--text-3); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.auth-field input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text-1);
  font-size: 15px;
  letter-spacing: .02em;
}
.auth-field input::placeholder { color: var(--text-3); }
.auth-send {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 700;
  color: var(--gold-2);
  background: rgba(227, 185, 107, .12);
  border: 1px solid rgba(227, 185, 107, .4);
}
.auth-send:disabled { opacity: .55; }
.auth-btn {
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px; font-weight: 800;
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 12px 30px rgba(227, 185, 107, .3);
}
.auth-btn:disabled { opacity: .6; }
.auth-hint { min-height: 16px; margin: 2px 0 0; font-size: 12px; color: var(--gold-2); }
.auth-hint b { font-size: 14px; letter-spacing: .1em; }
.auth-agree {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 4px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--text-3);
  text-align: left;
}
.auth-agree input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin: 1px 0 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  position: relative;
}
.auth-agree input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.auth-agree input:checked::after {
  content: '✓';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #241806;
}

.voice-select {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 14px;
  text-align: left;
}
.voice-select .vs-arrow { color: var(--text-3); font-size: 12px; }
.voice-sheet {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 13px;
  background: #101725;
  border: 1px solid var(--line);
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}
.vs-group {
  padding: 8px 10px 4px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .04em;
}
.vs-item {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--text-1);
  font-size: 13.5px;
  background: transparent;
}
.vs-item:active { background: rgba(255, 255, 255, .06); }
.vs-item.is-on {
  background: rgba(227, 185, 107, .14);
  color: var(--gold-2);
}
.vs-row { display: flex; align-items: stretch; gap: 6px; }
.vs-row .vs-item { flex: 1 1 auto; }
.vs-play {
  flex: 0 0 38px;
  border-radius: 10px;
  color: var(--gold-2);
  font-size: 12px;
  background: rgba(227, 185, 107, .1);
  border: 1px solid rgba(227, 185, 107, .3);
}
.vs-play.is-playing {
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  border-color: transparent;
  animation: recPulse 1s infinite;
}
.vs-clone {
  background: rgba(227, 185, 107, .12);
  border: 1px dashed rgba(227, 185, 107, .45);
  color: var(--gold-2);
  font-weight: 700;
}
.vs-clone-panel {
  margin: 6px 4px 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
}
.vs-clone-panel input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 13px;
}
.vs-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-hint { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }

/* 音色分类 chips */
.voice-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vf-chip {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.vf-chip.on {
  color: #241806; font-weight: 700;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  border-color: transparent;
}

/* ============================================================
 * Vidu 风格角色宫格
 * ============================================================ */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.role-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(170deg, #1b2434, #101725);
  border: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
  min-height: 0;
}
.role-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 35%, #243044, #0d1420 75%);
  overflow: hidden;
}
.role-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-initial {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 34px; color: var(--gold-2);
}
.role-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 10px 9px;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0), rgba(6, 10, 18, .92));
}
.role-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.role-meta {
  font-size: 10.5px; color: rgba(255, 255, 255, .62);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.role-more {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 12, 20, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font-size: 14px; line-height: 1;
  backdrop-filter: blur(4px);
}
.role-chat {
  position: absolute; right: 9px; bottom: 9px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #241806;
  background: linear-gradient(135deg, #ffe3a8, var(--gold));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.role-card.is-new {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .025);
  aspect-ratio: 3 / 4;
}
.role-plus {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; color: var(--gold-2);
  background: rgba(227, 185, 107, .12);
  border: 1px solid rgba(227, 185, 107, .35);
}
.role-newtext { font-size: 12px; color: var(--text-2); }
.plan-list-v2 { display: grid; gap: 10px; }
.plan-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.plan-card:active { transform: scale(.985); }
.plan-card.is-hot {
  background: linear-gradient(150deg, rgba(227, 185, 107, .16), rgba(227, 185, 107, .04));
  border-color: rgba(227, 185, 107, .55);
}
.plan-left { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.plan-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700;
}
.plan-badge {
  font-style: normal; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  color: #2a1c06;
  background: linear-gradient(135deg, #ffd98b, #e3b96b);
}
.plan-points { color: var(--text-2); font-size: 12.5px; }
.plan-points b { color: var(--gold-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-lines { color: var(--text-2); font-size: 12px; }
.plan-note { color: var(--text-3); font-size: 11px; margin-top: 1px; }
.plan-right {
  flex: 0 0 auto;
  display: grid; justify-items: end; gap: 2px;
  padding-left: 8px;
  border-left: 1px dashed rgba(255, 255, 255, .1);
}
.plan-right b { font-size: 19px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.plan-right span { font-size: 11px; color: var(--text-3); }

/* 支付占位 */
.pay-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-wrap.single { grid-template-columns: minmax(0, 260px); justify-content: center; }
.pay-wrap.single .pay-qr { margin: 0 auto; }
.pay-qr {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed rgba(255, 255, 255, .14);
  display: grid; place-items: center;
  overflow: hidden;
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr-ph {
  text-align: center; color: var(--text-3); font-size: 12.5px; line-height: 1.6;
}
.pay-qr-ph small { font-size: 10.5px; opacity: .7; }
.pay-note { margin: 12px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.7; }
/* 支付页二维码下方的提示文字，放大一点更清楚 */
.pay-note-lg {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  letter-spacing: .2px;
}
.pay-wrap.single { grid-template-columns: minmax(0, 290px); }

/* 音色选择 */
.voice-list { display: grid; gap: 8px; }
.voice-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  text-align: left;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.voice-row.is-on {
  border-color: rgba(227, 185, 107, .6);
  background: rgba(227, 185, 107, .1);
}
.voice-name { font-size: 14px; font-weight: 600; }
.voice-kind { font-size: 11.5px; color: var(--text-3); }

/* 照片开口说话 */
.pt-health {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.55;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.pt-health.is-ok { border-color: rgba(63, 178, 127, .5); background: rgba(63, 178, 127, .1); color: #9ce4c0; }
.pt-health.is-warn { border-color: rgba(227, 185, 107, .5); background: rgba(227, 185, 107, .1); color: var(--gold-2); }
.pt-health.is-err { border-color: rgba(200, 64, 74, .5); background: rgba(200, 64, 74, .1); color: #ffb3ba; }
.pt-status { margin-top: 10px; color: var(--text-2); font-size: 12.5px; min-height: 18px; }
.pt-video { width: 100%; border-radius: 14px; background: #000; }

/* ---------- 制作页右上角：联系客服 ---------- */
.page-head.has-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.head-action {
  flex: 0 0 auto;
  max-width: 132px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(227, 185, 107, .55);
  background: rgba(227, 185, 107, .12);
  color: var(--gold-2);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
}
.head-action b {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #f3d9a4;
  font-weight: 700;
}
.head-action:active { transform: scale(.97); }
/* ---------- 客服联系方式（放大版） ---------- */
.svc-box {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(227, 185, 107, .45);
  background: rgba(227, 185, 107, .08);
  text-align: left;
}
.svc-title {
  font-size: 13.5px;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.svc-row {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
}
.svc-id {
  font-size: 18px;
  font-weight: 700;
  color: #ffe3a8;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  letter-spacing: .3px;
}
.svc-hint {
  font-size: 12.5px;
  color: var(--text-3);
  margin-left: 4px;
}
/* ---------- 思念空间 ---------- */
.space-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}
.space-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  text-align: center;
}
.space-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 0 0 12px;
  text-align: center;
}
.space-input {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
}
.candle-stage {
  display: grid;
  place-items: center;
  height: 120px;
  margin-bottom: 6px;
}
.candle { position: relative; width: 46px; height: 92px; }
.candle-body {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 66px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #f4e3c4, #d8bf95);
  box-shadow: inset -4px 0 8px rgba(0,0,0,.15);
}
.candle-flame {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 16px; height: 26px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff3c4, #ffb347 60%, rgba(255,140,0,0) 72%);
  opacity: 0; transition: opacity .4s ease;
  filter: blur(.4px);
}
.candle.lit .candle-flame { opacity: 1; animation: flicker 1.6s infinite ease-in-out; }
@keyframes flicker {
  0%,100% { transform: translateX(-50%) scale(1); opacity: .95; }
  50% { transform: translateX(-50%) scale(1.08, .95); opacity: 1; }
}
.note-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.note-item:last-child { border-bottom: none; }
.note-item p { margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: var(--text); }
.note-item span { font-size: 11.5px; color: var(--text-3); }
.space-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.space-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
/* ---------- 登录页：先随便看看 ---------- */
.auth-skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.auth-skip:active { opacity: .7; }
/* ---------- 登录页：模式切换 ---------- */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
}
.auth-tab {
  padding: 9px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 13.5px;
  cursor: pointer;
}
.auth-tab.active {
  background: rgba(227,185,107,.16);
  color: var(--gold-2);
  font-weight: 700;
}
.auth-field input::placeholder { color: rgba(255,255,255,.38); }
/* ---------- 制作页强化 ---------- */
.page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(180deg, #fff, #f0dcb4 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.7; }

.studio-list { margin-top: 4px; }

/* 制作步骤小条 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 4px;
}
.step {
  text-align: center;
  padding: 12px 6px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.02);
}
.step b {
  display: block;
  width: 22px; height: 22px; line-height: 22px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: rgba(227,185,107,.16);
  color: var(--gold-2);
  font-size: 12px;
}
.step span { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* 卡片统一微交互 */
.role-card:active, .person-tile:active, .studio-card:active, .quick-card:active {
  transform: scale(.985);
  transition: transform .12s ease;
}
/* ---------- 通话画面恢复提示 ---------- */
.call-video.is-recovering {
  opacity: .45;
  filter: grayscale(.4) blur(1px);
  transition: opacity .25s ease;
}
.call-video.is-recovering::after {
  content: '画面恢复中…';
}
/* ---------- 微信内支付引导 ---------- */
.pay-wx-tip {
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(227,185,107,.4);
  background: rgba(227,185,107,.08);
  margin-bottom: 12px;
}
.pay-wx-title {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold-2);
}
.pay-wx-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}
.pay-wx-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}
.pay-wx-steps b { color: var(--gold-2); }
/* ---------- 微信转账秒到账 ---------- */
.transfer-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(227,185,107,.6);
  background: rgba(227,185,107,.09);
  text-align: left;
}
.transfer-head {
  font-size: 15px;
  font-weight: 700;
  color: #ffe3a8;
  margin-bottom: 6px;
}
.transfer-plan {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.transfer-row {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.transfer-steps {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.8;
}
/* 我的页面：微信转账入口 */
.transfer-entry {
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(227,185,107,.55);
  background: rgba(227,185,107,.08);
  color: var(--text-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.transfer-entry b { color: #ffe3a8; font-size: 13.5px; }
.transfer-entry .chevron { margin-left: auto; color: var(--text-3); }
/* ---------- 支付方式标签 / 首充赠送 ---------- */
.pay-method-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(227,185,107,.14);
  border: 1px solid rgba(227,185,107,.45);
  color: #ffe3a8;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.first-bonus {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255,120,120,.10);
  border: 1px solid rgba(255,120,120,.35);
  color: #ffbcbc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
/* ---------- 两种充值方式视觉对齐 ---------- */
.method-box {
  margin-top: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(227,185,107,.35);
  background: rgba(255,255,255,.03);
  text-align: center;
}
.method-box .pay-wrap.single { grid-template-columns: minmax(0, 190px); margin: 6px auto 10px; }
.method-box .pay-qr { border-radius: 12px; }
.transfer-box { width: 100%; }
/* 方式一的标题和方式二保持一致 */
.method-box .transfer-head { font-size: 15px; font-weight: 700; color: #ffe3a8; margin-bottom: 8px; text-align: left; }