/* ============ 艺航AI 高保真原型 ============ */
/* 设计 token —— 原生端(SwiftUI/Compose/ArkUI)按此映射 */
:root {
  /* 亮色主题 */
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --ink: #171717;
  --ink-2: #6B6B6B;
  --ink-3: #A2A09B;
  --line: #EFEDE8;
  --brand-red: #A23328;
  /* 暗色生成页 */
  --dk-bg: #0F1012;
  --dk-card: #1C1D21;
  --dk-card-2: #1A1B1F;
  --dk-ink: #ECECEE;
  --dk-ink-2: #9A9BA0;
  --dk-ink-3: #6E6F74;
  --dk-chip: #222327;
  --green: #34C759;
  /* 数字人向导(新拟态 · 品牌红黑体系) */
  --wz-bg: #F1EFEA;
  --wz-panel: #E9E7E1;
  --accent: #A23328;
  --accent-deep: #8E2B21;
  --accent-soft: #F7ECE9;
  --charcoal: #1D1D1F;
  /* 圆角 */
  --r-xl: 30px;
  --r-lg: 26px;
  --r-md: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; color: inherit; }
img { user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 2px solid #4A7DFF; outline-offset: 2px; border-radius: 4px; }

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  overflow: hidden;
}

/* ---------- 桌面手机壳 / 移动全屏 ---------- */
.stage {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1100px 700px at 50% 18%, #24262C 0%, #131417 62%, #0D0E10 100%);
  padding: 26px;
}
.device {
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 40px);
  background: #F4F3EF;
  border-radius: 47px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 11px #17181C, 0 0 0 13px #33353C, 0 60px 130px -28px rgba(0, 0, 0, .72);
}
@media (max-width: 560px) {
  .stage { padding: 0; height: 100dvh; background: var(--bg); display: block; }
  .device { width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
}

/* ---------- 屏幕容器 ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  background: var(--bg);
  overflow: hidden;
}
.screen.active { visibility: visible; }
.theme-gen { background: var(--bg); color: var(--ink); }
.theme-wizard { background: var(--wz-bg); }

/* ---------- 状态栏 ---------- */
.statusbar {
  height: 50px;
  flex: none;
  display: flex;
  align-items: flex-end;
  padding: 0 30px 6px 34px;
  position: relative;
  z-index: 6;
  pointer-events: none;
}
.sb-time { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.sb-mute {
  width: 15px; height: 15px; margin: 0 0 1px 7px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5a6 6 0 0 1 10-4.4M18 9.5V14l1.8 2.5H8"/><path d="M6 9.5v4L4.2 16.5"/><path d="M10 20a2.4 2.4 0 0 0 4 0"/><path d="M3.5 3.5 20.5 20.5"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5a6 6 0 0 1 10-4.4M18 9.5V14l1.8 2.5H8"/><path d="M6 9.5v4L4.2 16.5"/><path d="M10 20a2.4 2.4 0 0 0 4 0"/><path d="M3.5 3.5 20.5 20.5"/></svg>') center/contain no-repeat;
}
.sb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sb-right::before {
  content: '';
  width: 42px; height: 13px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 13" fill="black"><rect x="0" y="8" width="3.4" height="5" rx="1"/><rect x="5" y="5.6" width="3.4" height="7.4" rx="1"/><rect x="10" y="3" width="3.4" height="10" rx="1"/><rect x="15" y="0.4" width="3.4" height="12.6" rx="1"/><path d="M31.5 12.6 27 7.2c2.6-2.2 6.4-2.2 9 0z"/><path d="M25.2 5.1c3.6-3 8.9-3 12.5 0l1.8-2.1c-4.6-3.9-11.5-3.9-16.1 0z" opacity=".95"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 13" fill="black"><rect x="0" y="8" width="3.4" height="5" rx="1"/><rect x="5" y="5.6" width="3.4" height="7.4" rx="1"/><rect x="10" y="3" width="3.4" height="10" rx="1"/><rect x="15" y="0.4" width="3.4" height="12.6" rx="1"/><path d="M31.5 12.6 27 7.2c2.6-2.2 6.4-2.2 9 0z"/><path d="M25.2 5.1c3.6-3 8.9-3 12.5 0l1.8-2.1c-4.6-3.9-11.5-3.9-16.1 0z" opacity=".95"/></svg>') center/contain no-repeat;
}
.sb-right::after {
  content: '31';
  min-width: 27px; height: 14px;
  background: #3BC554;
  color: #fff;
  border-radius: 4.5px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.sb-dark { color: #131313; }
.sb-light { color: #F5F5F5; }

/* ---------- 微信小程序胶囊 ---------- */
.capsule {
  position: absolute;
  top: 60px; right: 14px;
  width: 88px; height: 33px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,.05);
  border-radius: 17px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .07);
  z-index: 7;
}
.capsule::before {
  content: '';
  position: absolute; left: 15px; top: 15px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #2B2B2B;
  box-shadow: 7px 0 0 #2B2B2B, 14px 0 0 #2B2B2B;
}
.capsule::after {
  content: '';
  position: absolute; right: 16.5px; top: 9.5px;
  width: 10px; height: 10px;
  border: 1.8px solid #2B2B2B;
  border-radius: 50%;
  background: radial-gradient(circle, #2B2B2B 0 2px, transparent 2.4px);
}
.capsule.on-dark { background: rgba(250, 250, 248, .92); }

/* ---------- 通用 ---------- */
.icon-btn {
  width: 44px; height: 44px;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: #262626;
}
.icon-btn svg, .row-icon svg, .sheet-icon svg, .circle-btn svg, .step-btn svg,
.cta-arrow svg, .thumb-check svg, .search-pill svg, .fab svg, .hero-icon svg,
.dd, .up, .flame, .empty-icon, .cover-cloud svg, .dk-toggle-label svg, .gen-note svg,
.upload-panel .plus, .upload-tile svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg { width: 25px; height: 25px; }
.icon-btn.light { color: #ECECEE; }
.pressable { user-select: none; touch-action: manipulation; }
.chev {
  width: 9px; height: 9px;
  border-top: 1.8px solid #C8C6C1;
  border-right: 1.8px solid #C8C6C1;
  transform: rotate(45deg);
  flex: none;
}
.chev.big { width: 11px; height: 11px; border-color: #8A8886; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.page-title {
  text-align: center;
  font-size: 17.5px;
  font-weight: 600;
  padding: 14px 0 10px;
  flex: none;
}

/* ---------- 底部 Tab 栏 ---------- */
.tabbar {
  flex: none;
  height: 82px;
  display: flex;
  padding: 6px 10px 18px;
}
.tab {
  flex: 1;
  border: none; background: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: #BFBDB8;
}
.tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab span { font-size: 11.5px; font-weight: 500; }
.tab.active { color: #141414; }
.home-indicator {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  border-radius: 3px;
  z-index: 8;
  pointer-events: none;
}
.home-indicator.dark { background: #131313; }
.home-indicator.light { background: #F2F2F2; }

/* ============ 首页 ============ */
.home-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.burger { margin: 14px 0 0 16px; }
.burger svg { width: 27px; height: 27px; stroke-width: 2.1; }
.home-cards { display: flex; gap: 9px; padding: 0 15px; margin-top: 12px; }
.home-card {
  flex: 1;
  border: none; padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #E8E6E1;
  box-shadow: 0 14px 30px -14px rgba(120, 60, 40, .25);
}
/* 首页卡片:设计稿原背景全显,旧字区磨砂遮盖,新文字覆盖 */
.home-card { position: relative; aspect-ratio: 1030 / 610; }
.hc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hc-shade {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 74%;
  pointer-events: none;
}
.home-card:nth-child(1) .hc-shade {
  background: radial-gradient(142% 120% at 0% 0%, #9E3E2E 0%, #94392B 64%, rgba(148, 57, 43, 0) 87%);
}
.home-card:nth-child(2) .hc-shade {
  background: radial-gradient(142% 120% at 0% 0%, #E0D1BB 0%, #D7C7AF 64%, rgba(215, 199, 175, 0) 87%);
}
.home-card:nth-child(2) .hc-title,
.home-card:nth-child(2) .hc-sub { text-shadow: 0 1px 7px rgba(95, 62, 30, .6); }
.hc-title {
  position: absolute; left: 10.5%; top: 11%;
  font-size: 20px; font-weight: 800;
  color: #FFFFFF; letter-spacing: .5px;
  text-shadow: 0 1px 10px rgba(70, 20, 12, .45);
}
.hc-sub {
  position: absolute; left: 11%; top: 37.5%;
  font-size: 12.5px;
  color: rgba(255, 248, 244, .95);
  text-shadow: 0 1px 8px rgba(70, 20, 12, .4);
}
/* 箭头:纯白同色、与原稿同尺寸、圆心精确压住原图旧箭头 */
.hc-arrow {
  position: absolute;
  width: 13.4%; aspect-ratio: 1 / 1; height: auto;
  border-radius: 50%;
  background: #FFFFFF;
  color: #8E2B21;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(60, 15, 8, .2);
}
.home-card:nth-child(1) .hc-arrow { left: 6.9%; top: 65%; }
.home-card:nth-child(2) .hc-arrow { left: 10.2%; top: 65.2%; }
.hc-arrow svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.home-flex-top { flex: .55; }
.home-flex-bottom { flex: 1.7; }
.home-logo-band { width: 100%; display: block; }
.home-inputbar {
  margin: 0 15px;
  background: #FFFFFF;
  border: 1px solid #EDEBE5;
  border-radius: 29px;
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .07);
}
.home-inputbar .icon-btn { color: #2E2E2E; }
.home-inputbar .icon-btn svg { width: 24px; height: 24px; stroke-width: 2; }
.home-input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-size: 16.5px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.home-input::placeholder { color: #BDBAB4; }
.home-tip {
  text-align: center;
  font-size: 12.5px;
  color: #C9C6C0;
  margin: 9px 0 0;
  flex: none;
}

/* ============ 学习占位页 ============ */
.learn-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.learn-illustration {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: #ECEAE4;
  display: flex; align-items: center; justify-content: center;
  color: #A9A69F;
  margin-bottom: 12px;
}
.learn-illustration svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.learn-title { font-size: 16.5px; font-weight: 600; color: #6B6963; }
.learn-sub { font-size: 13px; color: #B5B2AC; }

/* ============ 发现 ============ */
.discover-scroll { padding: 4px 19px 10px; }
.group-card {
  background: var(--card);
  border-radius: 24px;
  padding: 6px 0;
  margin-bottom: 14px;
  box-shadow: 0 6px 22px -12px rgba(0, 0, 0, .06);
}
.row {
  width: 100%;
  display: flex; align-items: center;
  min-height: 57px;
  padding: 0 19px;
  background: none; border: none;
  text-align: left;
}
.row-icon { width: 23px; height: 23px; margin-right: 14px; flex: none; }
.row-icon svg { width: 100%; height: 100%; }
.row-icon.ink { color: #2C2C2C; width: 24px; height: 24px; }
.row-label { flex: 1; font-size: 16px; font-weight: 500; color: #1B1B1B; }

/* ============ 我的 ============ */
.profile-scroll { padding: 4px 15px 10px; }
.profile-head {
  display: flex; align-items: center;
  gap: 15px;
  padding: 12px 6px 4px;
  width: 100%;
  background: none; border: none;
}
.avatar {
  width: 58px; height: 62px;
  border-radius: 16px;
  object-fit: cover;
}
.profile-name { font-size: 23px; font-weight: 700; color: #131313; }
.vip-banner {
  width: 100%;
  margin: 14px 0 4px;
  background: linear-gradient(120deg, #2E2C26, #232119);
  border: none;
  border-radius: 16px;
  display: flex; align-items: center;
  padding: 17px 15px;
  text-align: left;
  box-shadow: 0 16px 34px -16px rgba(30, 26, 12, .5);
}
.vip-text { display: flex; flex-direction: column; gap: 6px; }
.vip-title { color: #F6D43E; font-size: 17.5px; font-weight: 700; }
.vip-sub { color: #B7B4A9; font-size: 12.5px; }
.vip-cta {
  margin-left: auto;
  background: #FFD84A;
  color: #191919;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 21px;
  flex: none;
}
.profile-cards { display: flex; gap: 10px; margin-top: 12px; }
.p-card {
  flex: 1;
  height: 160px;
  border: none; padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  position: relative;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .08);
  text-align: left;
}
.p-card-art img { width: 100%; height: 100%; object-fit: fill; display: block; }
.p-card-study { background: #DFF2E5; padding: 13px 12px 12px; display: flex; flex-direction: column; }
.study-date { font-size: 11.5px; color: #5F7B69; }
.study-body { font-size: 13px; color: #33523F; line-height: 1.5; margin-top: 9px; flex: 1; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; }
.p-card-foot b { font-size: 15px; font-weight: 700; color: #1D3A29; }
.p-card-foot i { font-style: normal; font-size: 15px; color: #52705E; }
.p-card-file { padding: 12px 10px 12px; display: flex; flex-direction: column; }
.file-doc { flex: 1; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.file-doc img { width: 100%; object-fit: contain; }
.p-card-file .p-card-foot b { color: #161616; }
.p-card-file .p-card-foot i { color: #8B8B8B; }
.profile-list { margin-top: 16px; display: flex; flex-direction: column; gap: 13px; }
.list-card {
  background: var(--card);
  border: none;
  border-radius: 16px;
  min-height: 62px;
  display: flex; align-items: center;
  padding: 0 19px;
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .06);
  text-align: left;
}

/* ============ 生成页(品牌亮色)共用 ============ */
.gen-nav {
  flex: none;
  display: flex; align-items: center;
  padding: 8px 14px 4px 8px;
}
.theme-gen .icon-btn.light { color: #262626; }
.gen-title {
  background: none; border: none;
  font-size: 19px; font-weight: 600;
  color: #1A1A1A;
  display: flex; align-items: center; gap: 5px;
  margin-left: 10px;
}
.dd { width: 17px; height: 17px; color: #A6A39D; stroke-width: 2.2; }
.model-pill {
  margin-left: auto;
  background: #FFFFFF;
  border: none;
  color: #3A3A38;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 19px;
  padding: 9px 13px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .1);
}
.model-pill .dd { width: 14px; height: 14px; }
.seg-tabs {
  flex: none;
  position: relative;
  margin: 12px 15px 0;
  background: #EBE9E3;
  border-radius: 25px;
  height: 50px;
  display: flex;
  padding: 4px;
}
.seg-pill {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  width: 110px;
  background: #26262A;
  border-radius: 21px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.seg-item {
  flex: 1;
  position: relative; z-index: 1;
  background: none; border: none;
  font-size: 15.5px;
  color: #8D8B85;
  font-weight: 500;
}
.seg-item.active { color: #F6F6F4; font-weight: 600; }
.gen-editor {
  margin: 12px 15px 0;
  background: #FFFFFF;
  border-radius: 22px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 17px 16px 14px;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .08);
}
.gen-editor.video { flex: none; height: 180px; }
.gen-textarea {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: transparent;
  border: none; outline: none;
  resize: none;
  font-family: inherit;
  font-size: 16.5px;
  line-height: 1.6;
  color: #1B1B1B;
}
.gen-textarea::placeholder { color: #B8B5AF; }
.gen-editor-foot { flex: none; display: flex; align-items: flex-end; justify-content: space-between; }
.gen-editor-foot.right { justify-content: flex-end; gap: 4px; }
.gen-editor-foot .icon-btn { color: #8A8886; }
.style-pill {
  display: flex; align-items: center;
  background: var(--accent-soft);
  border: none;
  border-radius: 17px;
  padding: 5px 15px 5px 5px;
  gap: 9px;
}
.style-pill img { width: 42px; height: 46px; border-radius: 11px; object-fit: cover; }
.style-pill-label { color: var(--accent); font-size: 15.5px; font-weight: 600; }
.chips-row {
  flex: none;
  display: flex; align-items: center;
  margin: 12px 15px 0;
  gap: 6px;
}
.chips { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  background: #FFFFFF;
  border: 1px solid #E9E6E0;
  color: #4A4844;
  font-size: 13.5px;
  padding: 9px 13px;
  border-radius: 21px;
  white-space: nowrap;
}
.chip.selected { background: var(--accent-soft); border-color: #E3C4BC; color: var(--accent); }
.chips-row .icon-btn { color: #8A8886; }
.gen-note {
  flex: none;
  display: flex; align-items: center;
  gap: 7px;
  color: #A5A29C;
  font-size: 12.5px;
  margin: 13px 20px 0;
}
.gen-note svg { width: 14px; height: 14px; flex: none; stroke-width: 2; }
.gen-bottom {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 14px 15px 26px;
  margin-top: auto;
}
.gen-scroll + .gen-bottom { margin-top: 0; }
.settings-pill {
  flex: 1;
  background: #FFFFFF;
  border: none;
  border-radius: 27px;
  height: 54px;
  display: flex; align-items: center; justify-content: center;
  gap: 11px;
  color: #3A3A38;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .1);
}
.settings-pill i { width: 1px; height: 13px; background: #E5E2DC; }
.up { width: 17px; height: 17px; color: #8A8886; stroke-width: 2.2; }
.generate-btn {
  width: 138px;
  height: 54px;
  border: none;
  border-radius: 27px;
  background: linear-gradient(112deg, #C24634 0%, #A23328 52%, #8A2A1F 100%);
  color: #FFF7F2;
  font-size: 17.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  box-shadow: 0 12px 30px -8px rgba(162, 51, 40, .5);
}
.generate-btn .flame { width: 19px; height: 19px; fill: #FFF7F2; stroke: none; }
.generate-btn b { font-weight: 800; }
.upload-panel {
  margin: 12px 15px 0;
  background: #FFFFFF;
  border: 1.5px dashed #DBD7CF;
  border-radius: 22px;
  min-height: 150px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 13px;
  color: #A5A29C;
  width: calc(100% - 30px);
}
.upload-panel .plus { width: 30px; height: 30px; stroke-width: 1.8; color: var(--accent); }
.upload-panel p { font-size: 14px; line-height: 1.7; text-align: center; }
.dk-section-title { font-size: 17.5px; font-weight: 600; color: #1B1B1B; margin: 18px 19px 0; }
.dk-toggle-row {
  margin: 14px 15px 0;
  background: #FFFFFF;
  border-radius: 17px;
  min-height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 17px;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .07);
}
.dk-toggle-label { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 500; color: #1D1D1F; }
.dk-toggle-label svg { width: 15px; height: 15px; color: #A5A29C; stroke-width: 2; }

/* iOS 开关(品牌红) */
.switch {
  width: 51px; height: 31px;
  flex: none;
  border: none;
  border-radius: 16px;
  background: #E3E1DB;
  position: relative;
  transition: background .25s;
}
.switch .knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
.switch.on.brand { background: var(--accent); }
.theme-wizard .switch { background: #E3E1DB; }
.theme-wizard .switch .knob { background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.theme-wizard .switch.on.brand { background: var(--accent); }

/* ============ 数字人向导 ============ */
.wz-nav {
  flex: none;
  display: flex; align-items: center;
  padding: 4px 12px 0;
  position: relative;
  z-index: 5;
}
.wz-nav .icon-btn svg { width: 27px; height: 27px; stroke-width: 2.3; }
.wz-title {
  position: absolute;
  left: 60px; right: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1B1B1D;
  pointer-events: none;
}
.wz-canvas {
  margin: 10px 14px 0;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #E9E7E1 0%, #EDEBE5 100%);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .05), 0 24px 44px -22px rgba(0, 0, 0, .14);
}
.ip-empty, .ip-created { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ip-hint {
  background: #FDFDFB;
  border: none;
  border-radius: 24px;
  padding: 22px 28px;
  font-size: 17.5px;
  color: #3A3A3C;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .12);
}
.ip-hint u { color: var(--accent); font-weight: 700; text-underline-offset: 5px; margin: 0 2px; }
.ip-chip {
  background: #FDFDFB;
  border-radius: 24px;
  padding: 18px 24px;
  display: flex; align-items: center;
  gap: 13px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .13);
}
.ip-chip-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF7F2;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ip-chip-name { font-size: 17px; font-weight: 600; color: #232325; }
.ip-chip-check { width: 24px; height: 24px; stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 品牌红 CTA / 炭黑 CTA */
.neon-cta {
  flex: none;
  margin: 16px 14px 0;
  background: linear-gradient(118deg, #B7402E 0%, #A23328 50%, #872A1F 100%);
  border: none;
  border-radius: var(--r-lg);
  padding: 17px 18px 19px;
  position: relative;
  text-align: left;
  box-shadow: 0 26px 46px -18px rgba(162, 51, 40, .5);
}
.cta-sub { display: block; font-size: 14.5px; font-weight: 500; color: rgba(255, 236, 229, .85); }
.cta-arrow {
  position: absolute;
  top: 13px; right: 13px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #FFF7F2;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(70, 15, 8, .3);
}
.cta-arrow svg { width: 24px; height: 24px; stroke-width: 2; }
.cta-arrow.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); color: #FFFFFF; box-shadow: none; }
.cta-main {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFF7F2;
  margin-top: 20px;
}
.wz-cta-row {
  flex: none;
  display: flex;
  gap: 12px;
  margin: 16px 14px 0;
}
.wz-cta-row .neon-cta.half { flex: 1.08; margin: 0; }
.wz-cta-row .cta-main { font-size: 27px; letter-spacing: 1px; margin-top: 24px; }
.dark-cta {
  flex: 1;
  background: var(--charcoal);
  border: none;
  border-radius: var(--r-lg);
  padding: 17px 18px 19px;
  position: relative;
  text-align: left;
  color: #FFFFFF;
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .4);
}
.dark-cta .cta-sub { color: #A2A2A6; }
.dark-cta .cta-main { color: #FCFCFA; }
.neon-cta.wide {
  display: flex;
  align-items: center;
  height: 80px;
  border-radius: 40px;
  padding: 0 12px 0 26px;
  margin: 16px 14px 0;
}
.neon-cta.wide .cta-main { flex: 1; font-size: 21.5px; letter-spacing: 1px; margin: 0; }
.neon-cta.wide .cta-arrow { position: static; flex: none; }
.wz-stepper-slot { flex: none; height: 92px; }

/* 步骤条(全局共享) */
.wz-stepper {
  position: absolute;
  left: 13px; right: 13px;
  bottom: 24px;
  z-index: 30;
}
.wz-stepper[hidden] { display: none; }
.wz-stepper-track {
  position: relative;
  background: #F8F6F1;
  border-radius: 34px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 26px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .16), inset 0 -2px 6px rgba(0,0,0,.03);
}
.wz-stepper-track::-webkit-scrollbar { display: none; }
.wz-step {
  flex: none;
  position: relative;
  z-index: 1;
  background: none; border: none;
  font-size: 15px;
  font-weight: 500;
  color: #3E3E40;
  padding: 8px 2px;
  white-space: nowrap;
  transition: color .3s;
}
.wz-step.active { color: #FDFDFB; font-weight: 600; }
.wz-step.future { color: #C5C3BC; }
.wz-step-disc {
  position: absolute;
  top: 5px;
  left: 0;
  width: 64px;
  height: 56px;
  background: linear-gradient(135deg, #B23F2E, #98301F);
  border-radius: 28px;
  z-index: 0;
  box-shadow: 0 8px 20px rgba(162, 51, 40, .38);
}

/* 选题库 */
.topic-empty {
  position: absolute;
  inset: 0 0 34% 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.empty-icon { width: 84px; height: 84px; color: #C7C5C0; stroke-width: 2.6; }
.topic-empty p { font-size: 15px; color: #ADABA6; }
.wz-toast {
  position: absolute;
  left: 50%; bottom: 130px;
  transform: translateX(-50%);
  background: #4B4B4D;
  color: #F5F5F3;
  font-size: 15.5px;
  padding: 15px 24px;
  border-radius: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}
.topic-foot {
  position: absolute;
  left: 15px; right: 15px; bottom: 15px;
  display: flex; align-items: center;
  gap: 13px;
}
.mini-seg {
  flex: 1;
  position: relative;
  background: #FDFDFB;
  border-radius: 29px;
  height: 58px;
  display: flex;
  padding: 5px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .1);
}
.mini-seg-pill {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(46% - 5px);
  background: var(--accent);
  border-radius: 24px;
}
.mini-seg-item {
  position: relative; z-index: 1;
  background: none; border: none;
  font-size: 15.5px;
  font-weight: 600;
  color: #2C2C2E;
}
.mini-seg-item:first-child { flex: .85; }
.mini-seg-item:last-child { flex: 1.15; }
.mini-seg-item.active { color: #FFF7F2; }
.circle-btn {
  width: 58px; height: 58px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: #FDFDFB;
  color: #1C1C1E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .13);
}
.circle-btn svg { width: 23px; height: 23px; stroke-width: 2; }

/* 文案预览 */
.script-canvas { padding: 20px 20px 18px; display: flex; }
.script-counter {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 13.5px;
  color: #A8A6A1;
}
.script-area {
  width: 100%;
  background: none; border: none; outline: none;
  resize: none;
  font-family: inherit;
  font-size: 19.5px;
  line-height: 1.6;
  color: #2C2C2E;
  padding-top: 22px;
}
.script-area::placeholder { color: #B4B2AD; }
.script-tools {
  position: absolute;
  right: 18px; bottom: 18px;
  display: flex;
  gap: 14px;
}
.script-tools .circle-btn { width: 54px; height: 54px; }

/* 配音 */
.voice-hero {
  flex: none;
  position: relative;
  background: radial-gradient(150% 120% at 50% 0%, #3E2019 0%, #1C120E 52%, #100C0A 100%);
  color: #FFF;
  padding-bottom: 88px;
  border-radius: 0 0 6px 6px;
}
.voice-hero .capsule { top: 58px; }
.voice-hero-body { text-align: center; padding: 60px 30px 0; }
.voice-hero-body h2 { font-size: 26px; font-weight: 700; color: #F5F5F1; }
.voice-hero-body p { margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: #BCAFA9; }
.fab {
  position: absolute;
  right: 24px; bottom: 30px;
  width: 56px; height: 56px;
  border: none;
  border-radius: 50%;
  background: #F7F6F2;
  color: #131313;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.fab svg { width: 24px; height: 24px; stroke-width: 2.2; }
.voice-sheet {
  flex: none;
  position: relative;
  z-index: 2;
  margin: -34px 14px 0;
  background: #FDFCFA;
  border-radius: 28px;
  padding: 5px 19px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .16);
}
.sheet-row {
  width: 100%;
  display: flex; align-items: center;
  background: none; border: none;
  padding: 15px 0;
  border-bottom: 1px solid #F1EFEA;
  text-align: left;
}
.sheet-row:last-child { border-bottom: none; }
.sheet-icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: #F1EFE9;
  color: #2B2B2D;
  display: flex; align-items: center; justify-content: center;
  margin-right: 14px;
}
.sheet-icon svg { width: 22px; height: 22px; }
.sheet-row .row-label { font-size: 17px; }
.row-value { font-size: 15px; color: #8A8A8E; margin-right: 8px; }
.speed-stepper { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.step-btn {
  width: 35px; height: 35px;
  border: none;
  border-radius: 50%;
  background: #F1EFE9;
  color: #4A4A4E;
  display: flex; align-items: center; justify-content: center;
}
.step-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.speed-value { font-size: 17.5px; font-weight: 600; color: #1C1C1E; min-width: 30px; text-align: center; }
.voice-hero + .voice-sheet + .wz-cta-row { margin-top: 14px; }

/* 数字人形象 */
.avatar-hero {
  flex: none;
  position: relative;
  height: 298px;
  background: #101010;
  overflow: hidden;
}
.avatar-hero .statusbar, .avatar-hero .wz-nav { position: relative; z-index: 4; }
.avatar-hero .capsule { top: 58px; }
.avatar-hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.avatar-hero-empty {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, #292320 0%, #171412 100%);
  color: #FFF;
  gap: 6px;
}
.hero-icon {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: #77362A;
  color: #F6E7E1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.hero-icon svg { width: 36px; height: 36px; stroke-width: 1.7; }
.hero-icon.big { width: 98px; height: 98px; }
.hero-icon.big svg { width: 42px; height: 42px; }
.avatar-hero-empty h2 { font-size: 22.5px; font-weight: 700; }
.avatar-hero-empty p { font-size: 14px; color: #A5A5A1; margin-top: 5px; }
.avatar-sheet {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 3;
  margin-top: -26px;
  background: #F6F4EF;
  border-radius: 30px 30px 0 0;
  padding: 20px 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .3);
}
.avatar-sheet::-webkit-scrollbar { display: none; }
.avatar-tabs-row { display: flex; align-items: center; gap: 10px; }
.pill-tabs {
  flex: 1;
  display: flex;
  background: #EBE9E3;
  border-radius: 25px;
  padding: 4px;
}
.pill-tab {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 21px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  color: #8D8B85;
  white-space: nowrap;
}
.pill-tab.active { background: #26262A; color: #F6F6F4; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.search-pill {
  flex: none;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: #26262A;
  color: #F1F1EF;
  font-size: 14.5px;
  font-weight: 500;
  display: flex; align-items: center;
  gap: 7px;
  padding: 0 18px;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .3);
}
.search-pill svg { width: 17px; height: 17px; stroke-width: 2.2; }
.avatar-grid { display: flex; gap: 13px; margin: 18px 2px 2px; }
.upload-tile {
  width: 88px; height: 120px;
  flex: none;
  background: transparent;
  border: 2px dashed #C8C6BF;
  border-radius: 17px;
  color: #8B8983;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 9px;
}
.upload-tile svg { width: 23px; height: 23px; stroke-width: 2; }
.upload-tile span { font-size: 12.5px; font-weight: 500; }
.avatar-thumb {
  position: relative;
  width: 88px;
  flex: none;
  background: none; border: none;
  padding: 0;
}
.avatar-thumb img {
  width: 88px; height: 120px;
  border-radius: 17px;
  object-fit: cover;
  display: block;
}
.avatar-thumb.selected img { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb-check {
  position: absolute;
  top: -7px; right: -7px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF7F2;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(120, 30, 20, .35);
}
.thumb-check svg { width: 14px; height: 14px; stroke-width: 3.2; }
.avatar-thumb.selected .thumb-check, .series-thumb.selected .thumb-check { display: flex; }
.thumb-label {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  color: #6D6B66;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toggle-row {
  display: flex; align-items: center;
  padding: 16px 4px;
  border-top: 1px solid #ECEAE4;
  margin-top: 16px;
}
.avatar-pane + .toggle-row { margin-top: 20px; }
.toggle-row + .toggle-row { margin-top: 0; }
.toggle-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.toggle-text b { font-size: 16.5px; font-weight: 600; color: #1D1D1F; }
.toggle-text small { font-size: 12.5px; color: #A5A39D; }

/* 智能剪辑 */
.edit-hero {
  flex: none;
  position: relative;
  background: linear-gradient(180deg, #2C2724 0%, #1A1614 100%);
  color: #FFF;
  padding-bottom: 64px;
}
.edit-hero .capsule { top: 58px; }
.edit-hero-body { text-align: center; padding: 4px 20px 0; display: flex; flex-direction: column; align-items: center; }
.edit-hero-body h2 { font-size: 22px; font-weight: 700; }
.edit-hero-body p { font-size: 13.5px; color: #A5A5A1; margin-top: 8px; }
.edit-sheet {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
  margin-top: -36px;
  background: #F6F4EF;
  border-radius: 30px 30px 0 0;
  padding: 18px 14px 4px;
  overflow-y: auto;
  scrollbar-width: none;
}
.edit-sheet::-webkit-scrollbar { display: none; }
.pill-tabs.small { width: 226px; background: #FDFDFB; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .1); }
.pill-tabs.small .pill-tab.active { background: var(--accent); color: #FFF7F2; }
.edit-panel {
  background: #FDFDFB;
  border-radius: 24px;
  margin-top: 15px;
  padding: 18px 16px 16px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .1);
}
.edit-panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.edit-panel-head h3 { font-size: 19.5px; font-weight: 800; color: #17171A; margin-right: 2px; }
.tag-chips { display: flex; gap: 7px; margin-left: auto; }
.tag-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #EDD6D0;
  border-radius: 15px;
  padding: 7px 11px;
  white-space: nowrap;
}
.edit-desc { font-size: 13.5px; line-height: 1.75; color: #8B8983; margin-top: 12px; }
.series-label { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14.5px; color: #2A2A2C; }
.series-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.series-label b { font-weight: 700; }
.series-scroller {
  display: flex;
  gap: 11px;
  margin-top: 13px;
  overflow-x: auto;
  padding: 8px 2px 6px;
  scrollbar-width: none;
}
.series-scroller::-webkit-scrollbar { display: none; }
.series-thumb {
  position: relative;
  flex: none;
  background: none; border: none;
  padding: 0;
}
.series-thumb img {
  width: 89px; height: 127px;
  border-radius: 13px;
  object-fit: cover;
  display: block;
}
.series-thumb.selected img { outline: 3px solid var(--accent); outline-offset: -3px; }

/* 标题封面 */
.cover-title-panel {
  flex: none;
  position: relative;
  margin: 10px 14px 0;
  height: 218px;
  background: linear-gradient(180deg, #E9E7E1, #ECEAE4);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .04);
}
.cover-title-area {
  width: 100%; height: 100%;
  background: none; border: none; outline: none;
  resize: none;
  font-family: inherit;
  font-size: 19.5px;
  line-height: 1.55;
  color: #2C2C2E;
}
.cover-title-area::placeholder { color: #B4B2AD; }
.cover-title-panel .circle-btn { position: absolute; right: 16px; bottom: 16px; }
.cover-preview-panel {
  flex: 1;
  min-height: 0;
  position: relative;
  margin: 14px 14px 0;
  background: linear-gradient(180deg, #E9E7E1, #ECEAE4);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .04);
}
.cover-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cover-cloud {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: #FBFAF7;
  color: #17171A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .09);
}
.cover-cloud svg { width: 38px; height: 38px; }
.cover-empty p { font-size: 14.5px; color: #8B8983; }
.cover-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 13px; }

/* 发布 */
.publish-hero {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #312925 0%, #201B18 55%, #191512 100%);
  color: #FFF;
}
.publish-hero .capsule { top: 58px; }
.publish-hero-body {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 34px 40px;
}
.publish-hero-body h2 { font-size: 27px; font-weight: 700; margin-top: 10px; }
.publish-hero-body p { font-size: 14.5px; line-height: 1.7; color: #A5A5A1; margin-top: 14px; }

/* 全局 Toast */
.toast {
  position: absolute;
  left: 50%; top: 108px;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, .95);
  color: #F5F5F3;
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 24px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

/* ============ AI 对话 / 登录 / VIP ============ */
.chat-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}
.chat-list::-webkit-scrollbar { display: none; }
.bubble {
  max-width: 78%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.ai { align-self: flex-start; background: #FFFFFF; color: #222; border-bottom-left-radius: 6px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.08); }
.bubble.me { align-self: flex-end; background: linear-gradient(118deg, #B7402E, #A23328); color: #FFF7F2; border-bottom-right-radius: 6px; }
.bubble.typing { color: #A5A29C; }
.chat-inputbar { margin-bottom: 26px; }
.chat-send {
  width: 42px; height: 42px;
  flex: none;
  border: none; border-radius: 50%;
  background: linear-gradient(118deg, #B7402E, #A23328);
  color: #FFF7F2;
  display: flex; align-items: center; justify-content: center;
  margin-right: 3px;
}
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sheet-mask {
  position: absolute; inset: 0;
  background: rgba(20, 18, 16, .5);
  z-index: 60;
  display: flex; align-items: flex-end;
}
.login-sheet, .vip-sheet {
  width: 100%;
  background: #FBFAF7;
  border-radius: 26px 26px 0 0;
  padding: 26px 22px calc(26px + 14px);
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
}
.login-sheet h3, .vip-sheet h3 { font-size: 21px; font-weight: 700; }
.login-sub { font-size: 13px; color: #A5A29C; margin: 7px 0 18px; }
.login-input {
  width: 100%; height: 50px;
  border: 1.5px solid #E7E4DD;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 0 15px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  margin-bottom: 12px;
}
.login-input:focus { border-color: #C58379; }
.login-primary {
  width: 100%; height: 52px;
  border: none; border-radius: 26px;
  background: linear-gradient(112deg, #C24634, #A23328 52%, #8A2A1F);
  color: #FFF7F2;
  font-size: 16.5px; font-weight: 600;
  box-shadow: 0 12px 26px -10px rgba(162,51,40,.5);
}
.login-wechat {
  width: 100%; height: 52px;
  margin-top: 12px;
  border: 1.5px solid #E7E4DD;
  border-radius: 26px;
  background: #FFFFFF;
  color: #1FAF4B;
  font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
}
.login-wechat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-close {
  display: block;
  margin: 16px auto 0;
  border: none; background: none;
  font-size: 14px; color: #A5A29C;
}
.vip-plans { display: flex; gap: 10px; margin-bottom: 18px; }
.vip-plan {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #E7E4DD;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
}
.vip-plan.selected { border-color: #A23328; background: #FBF1EF; }
.vip-plan b { display: block; font-size: 14.5px; }
.vip-plan .price { display: block; font-size: 21px; font-weight: 800; color: #A23328; margin: 8px 0 4px; }
.vip-plan .price i { font-style: normal; font-size: 12px; }
.vip-plan small { font-size: 10.5px; color: #A5A29C; line-height: 1.4; display: block; }

.study-list { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.study-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.06);
}
.study-badge {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #F7ECE9;
  color: #A23328;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.study-badge.green { background: #E3F2E8; color: #2E7D4F; }
.study-info { flex: 1; min-width: 0; }
.study-info b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.study-info small { font-size: 12px; color: #A5A29C; }

/* ============ 数字人 · 创作台 / 作品 ============ */
.works-entry {
  position: absolute; right: 14px; top: 4px;
  width: 44px; height: 44px;
  border: none; background: none;
  color: #262626;
  display: flex; align-items: center; justify-content: center;
}
.works-entry svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-tabs.small.center { flex: none; margin: 10px auto 0; display: flex; }
.create-scroll { padding: 6px 15px 12px; }
.sec-label { font-size: 16.5px; font-weight: 700; color: #1B1B1D; margin: 18px 4px 10px; }
.sec-label small { font-size: 12px; font-weight: 400; color: #A5A29C; margin-left: 8px; }
.quick-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 13px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .08);
}
.quick-avatar { width: 62px; height: 74px; border-radius: 13px; object-fit: cover; flex: none; }
.quick-info { flex: 1; min-width: 0; }
.quick-info p { font-size: 13px; color: #A5A29C; margin-bottom: 10px; }
.quick-btns { display: flex; gap: 9px; }
.quick-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
}
.quick-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.create-grid { margin: 14px 2px 2px; }
.script-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 15px 11px;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .08);
}
.script-input {
  width: 100%;
  height: 118px;
  border: none; outline: none; resize: none;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.6;
  color: #1B1B1B;
}
.script-input::placeholder { color: #B8B5AF; }
.script-card.small .script-input { height: 64px; }
.script-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.listen-btn {
  display: flex; align-items: center; gap: 6px;
  border: none; background: none;
  color: #6B6963;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 4px;
}
.listen-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai-write-btn {
  display: flex; align-items: center; gap: 6px;
  border: none;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px; font-weight: 600;
  padding: 9px 14px;
}
.ai-write-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.voice-row {
  width: 100%;
  margin-top: 14px;
  background: #FFFFFF;
  border: none;
  border-radius: 18px;
  padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .08);
  text-align: left;
}
.voice-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.voice-name { flex: 1; font-size: 15.5px; font-weight: 600; color: #1B1B1D; }
.scroll-pad { height: 16px; }
.create-bottom { padding-top: 10px; }
.works-scroll { padding: 8px 15px 20px; display: flex; flex-direction: column; gap: 13px; }
.works-empty {
  padding: 90px 30px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.works-empty-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #1D1D1F;
  color: #F5F5F3;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.works-empty-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.works-empty b { font-size: 18px; }
.works-empty p { font-size: 13.5px; color: #A5A29C; margin-top: 10px; line-height: 1.7; }
.work-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .08);
}
.work-cover {
  width: 74px; height: 98px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: #E9E7E1;
}
.work-info { flex: 1; min-width: 0; }
.work-info b { display: block; font-size: 15px; }
.work-info small { display: block; font-size: 12px; color: #A5A29C; margin-top: 5px; }
.progress-track {
  height: 6px;
  border-radius: 3px;
  background: #F1EFE9;
  margin-top: 12px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #C24634, #A23328);
}
.work-play {
  width: 42px; height: 42px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.work-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.work-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 11px; font-weight: 600;
  background: #F1EFE9; color: #6B6963;
  margin-top: 8px;
}
.work-badge.done { background: #E3F2E8; color: #2E7D4F; }

.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.voice-card {
  border: 1.5px solid #E7E4DD;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 14px;
  text-align: left;
}
.voice-card.selected { border-color: var(--accent); background: #FBF1EF; }
.voice-card b { display: block; font-size: 15px; }
.voice-card small { display: block; font-size: 11.5px; color: #A5A29C; margin-top: 5px; }
.voice-speed-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid #E7E4DD;
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 15px; font-weight: 600;
}
.param-label { font-size: 14px; font-weight: 600; color: #6B6963; margin: 2px 0 10px; }
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.param-grid.four { grid-template-columns: repeat(4, 1fr); }
.param-card {
  position: relative;
  border: 1.5px solid #E7E4DD;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 13px 8px;
  text-align: center;
}
.param-card.selected { border-color: var(--accent); background: #FBF1EF; }
.param-card b { display: block; font-size: 15px; }
.param-card small { display: block; font-size: 11.5px; color: #A5A29C; margin-top: 4px; }
.vip-badge {
  position: absolute;
  top: -8px; right: -6px;
  padding: 2px 7px;
  border-radius: 8px;
  background: linear-gradient(112deg, #F0C24B, #D99B26);
  color: #4A3305;
  font-size: 10px; font-weight: 800;
  box-shadow: 0 3px 8px rgba(180, 130, 20, .35);
}

/* ============ 拍题相机 ============ */
.theme-camera { background: #0C0C0E; color: #F5F5F3; }
.cam-video {
  position: absolute; inset: 88px 0 218px;
  width: 100%; height: calc(100% - 306px);
  object-fit: cover;
  background: #17181B;
}
.cam-fallback {
  position: absolute; inset: 88px 0 218px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: #6E6F74;
  background: #17181B;
}
.cam-fallback svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cam-fallback p { font-size: 14px; text-align: center; line-height: 1.7; padding: 0 40px; }
.cam-grid {
  position: absolute; inset: 88px 0 218px;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.3% - .5px), rgba(255,255,255,.28) 33.3%, transparent calc(33.3% + .5px)),
    linear-gradient(to right, transparent calc(66.6% - .5px), rgba(255,255,255,.28) 66.6%, transparent calc(66.6% + .5px)),
    linear-gradient(to bottom, transparent calc(33.3% - .5px), rgba(255,255,255,.28) 33.3%, transparent calc(33.3% + .5px)),
    linear-gradient(to bottom, transparent calc(66.6% - .5px), rgba(255,255,255,.28) 66.6%, transparent calc(66.6% + .5px));
}
.cam-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 88px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 14px 10px 12px;
  z-index: 4;
}
.cam-back {
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(28, 28, 30, .72);
  color: #F5F5F3;
  display: flex; align-items: center; justify-content: center;
}
.cam-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cam-top-actions { display: flex; gap: 18px; }
.cam-top-btn {
  border: none; background: none;
  color: #F5F5F3;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px;
  font-size: 11.5px;
}
.cam-top-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cam-frame {
  position: absolute;
  left: 20px; right: 20px;
  top: 34%;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  padding: 34px 20px;
  text-align: center;
  color: #FFF;
  z-index: 3;
  pointer-events: none;
  background: rgba(255, 255, 255, .04);
}
.cam-frame p { font-size: 17px; font-weight: 600; line-height: 1.7; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.cam-frame small { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.85); }
.cam-phone-icon { display: inline-flex; margin-bottom: 10px; color: rgba(255,255,255,.9); }
.cam-phone-icon svg { width: 40px; height: 40px; fill: rgba(255,255,255,.18); stroke: currentColor; stroke-width: 1.6; }
.cam-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 218px;
  background: #0C0C0E;
  z-index: 4;
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: 0;
}
.cam-subtabs {
  position: absolute; top: -54px;
  display: flex; gap: 4px;
  background: rgba(28, 28, 30, .62);
  border-radius: 20px;
  padding: 4px;
}
.cam-subtab {
  border: none; background: none;
  color: #E8E8EA;
  font-size: 13.5px;
  padding: 8px 13px;
  border-radius: 16px;
}
.cam-subtab.active { background: #FFFFFF; color: #111; font-weight: 600; }
.cam-modes { display: flex; gap: 34px; margin-top: 16px; }
.cam-mode {
  border: none; background: none;
  color: #C9C9CC;
  font-size: 16.5px; font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.cam-mode.active { color: #E86A55; font-weight: 700; }
.cam-mode.active::after {
  content: '';
  position: absolute; left: 20%; right: 20%; bottom: -1px;
  height: 3px; border-radius: 2px;
  background: #E86A55;
}
.cam-bottom {
  flex: 1;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px 26px;
}
.cam-gallery {
  width: 52px; height: 52px;
  border: none; border-radius: 14px;
  background: rgba(60, 60, 64, .8);
  color: #E8E8EA;
  display: flex; align-items: center; justify-content: center;
}
.cam-gallery svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cam-shutter {
  width: 78px; height: 78px;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.cam-shutter-inner {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #FFFFFF;
}
.cam-float {
  border: none; background: none;
  color: #E8E8EA;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  font-size: 11.5px;
  width: 62px;
}
.cam-float svg { width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: rgba(60,60,64,.8); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
.cam-flash {
  position: absolute; inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

/* ============ 手机真机适配(全屏模式) ============ */
@media (max-width: 560px) {
  /* 真机有系统状态栏/Home条,隐藏模拟件 */
  .statusbar, .capsule, .home-indicator { display: none !important; }
  .screen { padding-top: env(safe-area-inset-top, 0px); }
  .tabbar { padding-bottom: max(18px, env(safe-area-inset-bottom, 18px)); }
  .gen-bottom { padding-bottom: max(26px, calc(env(safe-area-inset-bottom, 0px) + 14px)); }
  .wz-nav { padding-top: 10px; }
  /* 首页卡片文字随屏宽等比 */
  .hc-title { font-size: 5.4vw; }
  .hc-sub { font-size: 3.4vw; }
  /* 相机页顶部按真机压缩 */
  .cam-video, .cam-fallback, .cam-grid { top: calc(env(safe-area-inset-top, 0px) + 62px); }
  .cam-top { height: auto; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
}

/* 减弱动态效果 */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
