:root {
  --bg: #060912;
  --cyan: #67e8f9;
  --cyan-deep: #22d3ee;
  --violet: #a78bfa;
  --ink: #e6f4ff;
  --muted: #8aa6bd;
  --glass: rgba(10, 20, 35, 0.55);
  --line: rgba(103, 232, 249, 0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#scene { position: fixed; inset: 0; z-index: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit; color: var(--ink); background: transparent;
  border: none; outline: none; width: 100%;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px; pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 9px; letter-spacing: 3px; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: pulse 2.6s infinite;
}
.brand b { font-weight: 600; font-size: 15px; }
.brand span { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.sound-toggle {
  pointer-events: auto; background: var(--glass); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 12px;
  backdrop-filter: blur(12px); transition: .2s;
}
.sound-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- 科幻进度 ---------- */
.progress {
  position: fixed; top: calc(58px + env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%); z-index: 15; width: min(86vw, 420px); text-align: center;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.progress.on { opacity: 1; }
.progress-track { display: flex; align-items: center; justify-content: center; }
.pnode { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); transition: .4s; flex-shrink: 0; }
.pnode.done { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pnode.current { background: var(--cyan); width: 22px; border-radius: 4px; box-shadow: 0 0 10px var(--cyan); }
.plink { width: 16px; height: 1px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.plink.done { background: var(--cyan); }
.progress-label { font-size: 11px; color: var(--muted); letter-spacing: 3px; margin-top: 9px; }

/* ---------- 引导舞台：底部浮层（不挡中央粒子） ---------- */
.stage { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto;
  margin: 0 auto; max-width: 520px;
  background: linear-gradient(to top, rgba(8,14,26,.94), rgba(8,14,26,.72));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  max-height: 80vh; overflow-y: auto;
  animation: sheetUp .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); margin: 0 auto 16px; }

/* 开场（居中卡片） */
.intro-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto; padding: 20px; }
.intro {
  text-align: center; max-width: 520px; width: 100%; padding: 34px 30px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(18px); animation: rise .9s ease;
}
.intro h1 { font-size: 25px; font-weight: 300; letter-spacing: 6px; margin-bottom: 14px; }
.intro h1 b { font-weight: 600; color: var(--cyan); }
.intro p { color: var(--muted); font-size: 14px; line-height: 1.9; letter-spacing: 1px; }
.intro .enter {
  margin-top: 24px; background: transparent; border: 1px solid var(--cyan);
  color: var(--cyan); padding: 12px 40px; border-radius: 999px; letter-spacing: 4px;
  font-size: 13px; transition: .3s;
}
.intro .enter:hover { background: rgba(103, 232, 249, .12); box-shadow: 0 0 26px rgba(103, 232, 249, .4); }

/* 浮层标题 */
.sheet .step-no { font-size: 11px; letter-spacing: 3px; color: var(--muted); margin-bottom: 6px; }
.sheet h2 { font-size: 20px; font-weight: 400; letter-spacing: 2px; margin-bottom: 18px; }
.sheet .sub { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; letter-spacing: .5px; }

/* 字段（轻量、透明） */
.field { margin-bottom: 15px; }
.field label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 7px; gap: 8px; }
.field label .lab { flex: 1; }
.ai-mini {
  width: auto; flex-shrink: 0; background: rgba(103, 232, 249, .1); border: 1px solid var(--line);
  color: var(--cyan); border-radius: 999px; padding: 4px 12px; font-size: 11px; letter-spacing: 1px; transition: .2s;
}
.ai-mini:hover { background: rgba(103, 232, 249, .2); }
.ai-mini:disabled { opacity: .5; cursor: wait; }
.field input, .field textarea {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; transition: .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103, 232, 249, .12); }
.field textarea { resize: none; min-height: 64px; line-height: 1.7; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

/* 选项胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  color: var(--muted); padding: 8px 15px; border-radius: 999px; font-size: 13px; transition: .2s;
}
.chip.active { color: var(--cyan); border-color: var(--cyan); background: rgba(103,232,249,.08); }
/* 带自定义输入的胶囊 */
.chip-input { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; }
.chip-input input { width: 110px; background: transparent; padding: 4px; font-size: 13px; }

/* 字段网格（详细信息） */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .field { margin-bottom: 0; }
.fgrid .field.full { grid-column: 1 / -1; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tagrow .tag {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  color: var(--muted); padding: 6px 12px; border-radius: 8px; font-size: 12px;
}
.tagrow .tag.on { color: var(--cyan); border-color: var(--cyan); background: rgba(103,232,249,.08); }
.addlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.addlist .item { background: rgba(103,232,249,.1); border: 1px solid var(--line); color: var(--cyan); padding: 5px 10px; border-radius: 8px; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.addlist .item button { background: none; border: none; color: var(--muted); font-size: 13px; }

/* 数字 / 日期控件（深色配色） */
.field input[type="number"], .field input[type="date"], .field input[type="month"] { color-scheme: dark; }
/* 步进器（身高/体重） */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .step-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: var(--cyan); font-size: 18px; line-height: 1;
}
.stepper .step-btn:hover { border-color: var(--cyan); }
.stepper input {
  text-align: center; padding: 10px 4px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; font-size: 14px;
}
.stepper .unit { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* 分页卡片网格（预置选项，可翻页） */
.cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cardgrid .tag {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  color: var(--muted); padding: 9px 6px; border-radius: 9px; font-size: 12px; text-align: center; width: 100%;
}
.cardgrid .tag.on { color: var(--cyan); border-color: var(--cyan); background: rgba(103, 232, 249, .08); }
.more-btn {
  width: 100%; margin-top: 7px; background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .15); color: var(--muted);
  border-radius: 9px; padding: 8px; font-size: 12px; letter-spacing: 1px;
}
.more-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* 常驻已选区 */
.selbar {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px;
  min-height: 26px; align-items: center;
}
.sel-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(103, 232, 249, .12); border: 1px solid rgba(103, 232, 249, .4);
  color: var(--cyan); border-radius: 999px; padding: 4px 9px 4px 12px; font-size: 12px;
}
.sel-tag i { font-style: normal; opacity: .7; font-size: 13px; line-height: 1; }
.sel-tag:hover { background: rgba(103, 232, 249, .2); }
.sel-empty { font-size: 11.5px; color: var(--muted); opacity: .55; }

/* AI 一键填充（整行） */
.ai-fill {
  width: 100%; margin-bottom: 16px; border-radius: 12px; padding: 12px;
  background: linear-gradient(135deg, rgba(103, 232, 249, .15), rgba(167, 139, 250, .12));
  border: 1px solid var(--line); color: var(--cyan);
  font-size: 13px; letter-spacing: 2px; transition: .2s;
}
.ai-fill:hover { box-shadow: 0 0 22px rgba(103, 232, 249, .25); }
.ai-fill:disabled { opacity: .55; cursor: wait; }

/* 步骤标题行 + AI 一键生成 */
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.step-head h2 { margin-bottom: 0; font-size: 19px; white-space: nowrap; }
.ai-gen-btn {
  flex-shrink: 0; background: linear-gradient(135deg, rgba(103, 232, 249, .18), rgba(167, 139, 250, .14));
  border: 1px solid var(--line); color: var(--cyan); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; letter-spacing: 1px; transition: .2s;
}
.ai-gen-btn:hover { box-shadow: 0 0 18px rgba(103, 232, 249, .3); }
.ai-gen-btn.busy, .ai-gen-btn:disabled { opacity: .55; cursor: wait; }

/* 省 / 市层级选择器 */
.picker-wrap { position: relative; }
.picker-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(103, 232, 249, .1); color: var(--cyan); font-size: 14px;
}
.picker-wrap input { padding-right: 46px; }
.picker-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr;
  max-height: 240px; background: rgba(8, 14, 26, .98); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; backdrop-filter: blur(20px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .65);
}
.picker-pop.on { display: grid; }
.pc-col { overflow-y: auto; max-height: 240px; padding: 6px; }
.pc-col:first-child { border-right: 1px solid rgba(255, 255, 255, .07); }
.pc-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--muted); padding: 9px 10px; border-radius: 8px; font-size: 13px;
}
.pc-item:hover { background: rgba(103, 232, 249, .08); color: var(--ink); }
.pc-item.on { color: var(--cyan); background: rgba(103, 232, 249, .12); }
.pc-hint { color: var(--muted); font-size: 12px; padding: 16px 10px; opacity: .7; }

/* 半宽步进器（身高/体重一行，紧凑） */
.fgrid .stepper { gap: 4px; }
.fgrid .stepper .step-btn { width: 30px; height: 36px; font-size: 16px; }
.fgrid .stepper input { flex: 1; min-width: 0; width: 100%; padding: 9px 2px; font-size: 13px; }
.fgrid .stepper .unit { display: none; }

/* 形象选择卡片 */
.choose-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.choose-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px; padding: 22px 14px; text-align: center; transition: .25s;
}
.choose-card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 0 24px rgba(103, 232, 249, .2); }
.choose-card .cc-ico { font-size: 26px; color: var(--cyan); margin-bottom: 10px; }
.choose-card b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.choose-card p { font-size: 11px; color: var(--muted); line-height: 1.5; }
/* 协议 */
.agreement {
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.agreement p { font-size: 12.5px; color: var(--muted); line-height: 2; letter-spacing: .3px; }
/* 上传区 */
.upload-zone {
  display: block; text-align: center; border: 1px dashed rgba(103, 232, 249, .4);
  border-radius: 16px; padding: 28px 16px; cursor: pointer; transition: .2s;
  background: rgba(103, 232, 249, .04);
}
.upload-zone:hover { background: rgba(103, 232, 249, .09); }
.upload-zone .uz-ico { font-size: 26px; color: var(--cyan); margin-bottom: 8px; }
.upload-zone b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.upload-zone p { font-size: 11px; color: var(--muted); }
/* 捏脸微调 */
.tune-panel { display: flex; gap: 8px; margin-top: 14px; }
.tune-panel input {
  flex: 1; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 11px 13px; font-size: 13px;
}
.tune-panel .btn { flex: 0 0 auto; padding: 11px 18px; }

/* 声音：筛选与音色卡片 */
.vf { margin-bottom: 12px; }
.vg-title { font-size: 11px; color: var(--muted); letter-spacing: 2px; margin: 16px 0 8px; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-card {
  position: relative; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 11px 12px; text-align: left; transition: .2s;
}
.voice-card:hover { border-color: rgba(103, 232, 249, .5); }
.voice-card.on { border-color: var(--cyan); background: rgba(103, 232, 249, .08); box-shadow: 0 0 16px rgba(103, 232, 249, .18); }
.voice-card b { display: block; font-size: 13px; font-weight: 500; padding-right: 28px; }
.voice-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.voice-card .vplay {
  position: absolute; right: 8px; top: 8px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(103, 232, 249, .15); color: var(--cyan);
  font-size: 10px; font-style: normal;
}
/* 声音微调 */
.voice-tune { margin-top: 18px; }
.vt-row { margin-bottom: 14px; }
.vt-row label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 8px; }
.vt-row label span { color: var(--cyan); }
.vt-row input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .12); outline: none;
}
.vt-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px rgba(103, 232, 249, .7); cursor: pointer;
}
.voice-tune > input {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 12px;
}
@media (min-width: 720px) {
  .voice-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 按钮 */
.actions { display: flex; gap: 12px; margin-top: 20px; }
.btn {
  flex: 1; border-radius: 12px; padding: 13px; font-size: 14px; letter-spacing: 2px; transition: .25s;
}
.btn-primary { background: linear-gradient(135deg, rgba(34,211,238,.92), rgba(56,130,246,.92)); border: none; color: #04121c; font-weight: 600; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(103, 232, 249, .45); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 生成中 */
.gen-view { text-align: center; }
.gen-view .spinner {
  width: 44px; height: 44px; margin: 4px auto 16px; border-radius: 50%;
  border: 2px solid rgba(103,232,249,.15); border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}
.gen-view .gt { color: var(--muted); letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; }
.gen-result { border-radius: 14px; overflow: hidden; margin-top: 6px; }
.gen-result img { width: 100%; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 字幕（顶部，进度条下方，不遮操作） ---------- */
.subtitle {
  position: fixed; top: calc(98px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 16; max-width: 86vw; text-align: center;
  font-size: 14px; line-height: 1.75; letter-spacing: 1px; color: rgba(230, 244, 255, .85);
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
  transition: opacity .5s; min-height: 24px;
}
.subtitle .who { color: var(--cyan); margin-right: 8px; font-size: 12px; letter-spacing: 2px; }

/* ---------- 应用屏幕 ---------- */
.screen {
  position: fixed; inset: 0; z-index: 8; overflow-y: auto;
  padding: calc(72px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
  display: none;
}
.screen.on { display: block; animation: rise .4s ease; }
.screen h2.title { font-size: 22px; font-weight: 400; letter-spacing: 3px; margin: 2px 0 20px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.world-card {
  border-radius: 16px; overflow: hidden; border: 1px var(--line) solid;
  background: var(--glass); transition: .3s; cursor: pointer;
}
.world-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.world-card .thumb { height: 120px; background-size: cover; background-position: center; position: relative; }
.world-card .thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(40,80,120,.5), rgba(10,15,28,.9));
}
.world-card .meta { padding: 11px 12px; }
.world-card .meta b { font-size: 14px; font-weight: 500; }
.world-card .meta p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.world-card .meta .badge { font-size: 10px; color: var(--cyan); margin-top: 7px; }
.fab {
  position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 12;
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--cyan-deep), #3882f6); color: #04121c;
  font-size: 25px; box-shadow: 0 8px 30px rgba(103,232,249,.5);
}

/* 消息 / 活动 */
.msg-item, .act-item {
  display: flex; gap: 12px; padding: 14px; border-radius: 14px; margin-bottom: 10px;
  background: var(--glass); border: 1px solid var(--line);
}
.msg-item .ava, .act-item .ava { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center top; flex-shrink: 0; background-color: #122033; }
.msg-item .body b, .act-item .body b { font-size: 14px; font-weight: 500; }
.msg-item .body p, .act-item .body p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.msg-item .body time, .act-item .body time { font-size: 11px; color: var(--muted); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: inline-block; margin-left: 6px; }

/* 我页面 */
.me-head { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 16px; }
.me-head .ava { width: 66px; height: 66px; border-radius: 50%; background-size: cover; background-position: center top; background-color: #122033; flex-shrink: 0; }
.me-head b { font-size: 18px; font-weight: 500; }
.me-head p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.me-list { border-radius: 16px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); margin-bottom: 14px; }
.me-list .row-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; background: none; width: 100%; border-left: none; border-right: none; border-top: none; color: var(--ink); text-align: left; }
.me-list .row-item:last-child { border-bottom: none; }
.me-list .row-item span { color: var(--muted); font-size: 12px; }

/* 空状态提示 */
.empty-tip { color: var(--muted); font-size: 14px; line-height: 1.8; padding: 28px 20px; text-align: center; background: var(--glass); border: 1px dashed var(--line); border-radius: 16px; }

/* 消息会话列表 */
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: flex; gap: 13px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .15s; }
.feed-item:hover { border-color: var(--cyan); transform: translateY(-1px); }
.feed-ava { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #122033; display: flex; align-items: center; justify-content: center; }
.feed-ava img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.feed-ava span { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.feed-body { flex: 1; min-width: 0; }
.feed-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.feed-top b { font-size: 15px; font-weight: 500; }
.feed-top span { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.feed-text { color: var(--ink); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.feed-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }

/* 活动时间线 */
.event-list { position: relative; padding-left: 6px; }
.event-item { display: flex; gap: 13px; padding: 14px 14px 14px 4px; position: relative; }
.event-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex-shrink: 0; margin-top: 5px; z-index: 1; }
.event-item:not(:last-child)::before { content: ''; position: absolute; left: 9px; top: 28px; bottom: -4px; width: 1px; background: var(--line); }
.event-body { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.event-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.event-top b { font-size: 15px; font-weight: 500; }
.event-top span { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.event-body p { font-size: 13px; line-height: 1.7; margin-top: 6px; color: var(--ink); opacity: .85; }

/* ---------- 世界内相处 ---------- */
.world-view { position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column; }
.world-view.on { display: flex; }
#world-detail { background: #060911; }
#world-detail .screen { flex: 1; min-height: 0; overflow-y: auto; }
#character-panel { background: #060911; }
#character-panel .screen { flex: 1; min-height: 0; overflow-y: auto; }
.wv-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 22s ease-in-out infinite alternate;
  background: radial-gradient(900px 600px at 50% 30%, #16324f 0%, #0a1220 55%, #060b14 100%); }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.wv-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,9,18,.95), rgba(6,9,18,.25) 45%, rgba(6,9,18,.45)); }
.wv-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.wv-bgvideo.on { opacity: 1; }
.wv-top { position: relative; display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 12px; z-index: 9; }
.wv-top button { background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 13px; }
.wv-top b { letter-spacing: 2px; font-weight: 500; font-size: 14px; }
.wv-personvideo {
  /* 数字人 / 视频回复：铺满全屏（此前只有 68% 高度，用户反馈"没有全屏播放"） */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .5s; z-index: 6;
}
.wv-personvideo.on { opacity: 1; }
.wv-chat {
  position: relative; flex: 1; justify-content: flex-end; z-index: 7;
  padding: 30px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.chat-scroll { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.bubble { max-width: 80%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.bubble.them { background: rgba(20,40,60,.72); border: 1px solid var(--line); align-self: flex-start; }
.bubble.me { background: linear-gradient(135deg, rgba(34,211,238,.85), rgba(56,130,246,.85)); color: #04121c; align-self: flex-end; }
.wv-feats { display: flex; gap: 8px; }
.feat-btn {
  flex: 1; background: rgba(10,20,35,.6); border: 1px solid var(--line);
  color: var(--muted); border-radius: 10px; padding: 9px; font-size: 12px; letter-spacing: 1px; transition: .2s;
}
.feat-btn.on { color: var(--cyan); border-color: var(--cyan); }
.feat-btn.busy { opacity: .55; pointer-events: none; }
.chat-input { display: flex; gap: 8px; align-items: center; }
.chat-input input { background: rgba(10,20,35,.7); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 14px; }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.mic-btn { background: rgba(10,20,35,.7); border: 1px solid var(--line); color: var(--cyan); font-size: 17px; }
.mic-btn.rec { background: rgba(239,68,68,.25); border-color: #ef4444; color: #ef4444; animation: pulse 1s infinite; }
.send-btn { background: linear-gradient(135deg, var(--cyan-deep), #3882f6); border: none; color: #04121c; font-size: 17px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 22;
  display: flex; background: rgba(8,14,26,.82); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 12px 0 14px; font-size: 11px; letter-spacing: 1px; display: flex;
  flex-direction: column; align-items: center; gap: 4px; position: relative;
}
.tab i { font-style: normal; font-size: 18px; }
.tab.active { color: var(--cyan); }
.tab .count {
  background: var(--cyan); color: #04121c; border-radius: 999px; font-size: 10px;
  padding: 1px 6px; position: absolute; transform: translate(15px,-12px);
}

/* ---------- 世界详情：场景列表 + 人物列表 ---------- */
.detail-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.back-link {
  background: transparent; border: 1px solid var(--line); color: var(--cyan);
  border-radius: 999px; padding: 7px 15px; font-size: 13px;
}
.back-link:hover { background: rgba(103,232,249,.08); }
.detail-top b { font-size: 18px; letter-spacing: 1px; }

.detail-sec { margin-bottom: 28px; }
.detail-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.detail-sec-head span { font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.mini-add {
  background: transparent; border: 1px solid var(--line); color: var(--cyan);
  border-radius: 999px; padding: 6px 13px; font-size: 12px;
}
.mini-add:hover { background: rgba(103,232,249,.08); }

.li-list { display: flex; flex-direction: column; gap: 10px; }
.li-card {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px; text-align: left; transition: .2s;
}
.li-card:hover { border-color: var(--cyan); }
.li-thumb {
  width: 88px; min-width: 88px; height: 72px; border-radius: 10px;
  background-size: cover; background-position: center; background-color: rgba(10,20,35,.6);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.li-thumb.round { width: 72px; min-width: 72px; border-radius: 50%; }
.li-thumb .ph { color: var(--cyan); font-size: 22px; }
.li-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.li-meta b { font-size: 15px; font-weight: 600; }
.li-meta p {
  font-size: 13px; color: var(--ink); opacity: .85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.li-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.char-state { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.char-state span { font-size: 10px; line-height: 1; color: rgba(190,225,250,.88); padding: 4px 6px; border-radius: 999px; background: rgba(79,209,250,.08); border: 1px solid rgba(79,209,250,.16); }
.li-empty {
  color: var(--muted); font-size: 13px; padding: 18px;
  border: 1px dashed var(--line); border-radius: 12px; text-align: center;
}

/* 嵌套创建入口 */
.link-add {
  margin-top: 10px; width: 100%;
  background: transparent; border: 1px dashed var(--line); color: var(--muted);
  border-radius: 10px; padding: 11px; font-size: 13px;
}
.link-add:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- 选择弹窗 ---------- */
.pick-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4,8,16,.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.pick-box {
  width: 100%; max-width: 380px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
}
.pick-title { font-size: 14px; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; text-align: center; }
.pick-item {
  background: rgba(10,20,35,.5); border: 1px solid var(--line); color: var(--ink);
  border-radius: 11px; padding: 13px; font-size: 15px;
}
.pick-item:hover { color: var(--cyan); border-color: var(--cyan); }
.pick-cancel { background: transparent; border: none; color: var(--muted); padding: 10px; font-size: 13px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast {
  position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 50;
  background: rgba(10,20,35,.92); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 22px; border-radius: 999px; font-size: 13px; backdrop-filter: blur(12px);
  opacity: 0; transition: .3s; pointer-events: none; white-space: nowrap;
}
.toast.on { opacity: 1; }

/* ---------- 卡片操作（⋯ 菜单） ---------- */
.li-card { position: relative; }
.card-ops {
  position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(6,12,22,.7); border: 1px solid var(--line);
  color: var(--muted); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.card-ops:hover { color: var(--cyan); border-color: var(--cyan); }
.action-menu {
  position: absolute; top: 40px; right: 6px; z-index: 8;
  background: rgba(10,20,35,.96); border: 1px solid var(--line);
  border-radius: 12px; padding: 5px; min-width: 120px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.action-menu button {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--ink); padding: 9px 12px; font-size: 14px; border-radius: 8px;
}
.action-menu button:hover { background: rgba(103,232,249,.12); color: var(--cyan); }
.action-menu button.danger:hover { background: rgba(239,68,68,.16); color: #fca5a5; }

/* 世界卡片操作 */
.world-card { position: relative; }
.world-card .card-ops { top: 8px; right: 8px; }

/* ---------- 通用确认弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4,8,16,.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-box {
  width: 100%; max-width: 380px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px;
}
.modal-box h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.modal-box p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.btn-danger {
  background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.4); color: #fca5a5;
  border-radius: 12px; padding: 12px; font-size: 15px;
}
.btn-danger:hover { background: rgba(239,68,68,.26); }

/* ---------- 编辑表单 ---------- */
.edit-form { display: flex; flex-direction: column; gap: 12px; }
.edit-form .field { display: flex; flex-direction: column; gap: 6px; }
.edit-form label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.edit-form input, .edit-form textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font-size: 14px; color: var(--ink);
}
.edit-form textarea { min-height: 72px; resize: vertical; }
.edit-form input:focus, .edit-form textarea:focus { border-color: var(--cyan); }

/* ---------- 人物面板 ---------- */
.cp-head { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.cp-avatar {
  width: 84px; min-width: 84px; height: 84px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: rgba(10,20,35,.6);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 28px;
}
.cp-id { flex: 1; min-width: 0; }
.cp-id h2 { font-size: 21px; font-weight: 600; }
.cp-id .cp-rel { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cp-section { margin-top: 16px; }
.cp-section h4 {
  font-size: 12px; color: var(--muted); letter-spacing: 2px;
  margin-bottom: 8px; font-weight: 500;
}
.cp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cp-tags .cp-tag {
  background: rgba(103,232,249,.1); border: 1px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.cp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cp-grid .cp-kv {
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px;
}
.cp-kv .k { font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; }
.cp-kv .v { font-size: 14px; color: var(--ink); }
.cp-voice-now { display: flex; align-items: center; gap: 10px; }
.cp-voice-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); padding: 10px 12px; border-radius: 10px; background: rgba(79,209,250,.06); border: 1px solid var(--line); }
.cp-detail {
  font-size: 14px; line-height: 1.75; color: var(--ink); opacity: .92;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; white-space: pre-wrap;
}
.cp-actions { display: flex; gap: 10px; margin-top: 20px; }
.cp-actions .btn { flex: 1; }

/* ---------- PC 适配（手机优先基准上放宽） ---------- */
@media (min-width: 720px) {
  .sheet { border-radius: 22px; bottom: 34px; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .screen { padding: calc(76px + env(safe-area-inset-top)) 28px calc(96px + env(safe-area-inset-bottom)); }
  .fgrid { grid-template-columns: 1fr 1fr 1fr; }
  .cardgrid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; }
}

/* ---------- 我 · 财务 ---------- */
.me-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.me-stat {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 16px;
}
.me-stat-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.me-stat-val { font-size: 20px; font-weight: 500; color: var(--cyan); }
.me-stat-sub { font-size: 11px; color: var(--muted); margin-top: 6px; }

.me-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.me-tab {
  flex: 1; background: var(--glass); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 9px 0; font-size: 13px;
}
.me-tab.on { color: #04121c; background: var(--cyan); border-color: var(--cyan); }

.me-sec-title { font-size: 12px; letter-spacing: 3px; color: var(--muted); margin: 18px 0 11px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.plan-card:hover { border-color: var(--cyan); background: rgba(103,232,249,.08); }
.plan-card .plan-name { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.plan-card .plan-price { font-size: 20px; color: var(--cyan); font-weight: 500; }
.plan-card .plan-desc { font-size: 11px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.plan-bonus { color: #fbbf24; margin-left: 4px; }

.bill-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 15px; margin-bottom: 9px;
}
.bill-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bill-main b { font-size: 14px; font-weight: 500; }
.bill-sub { font-size: 11px; color: var(--muted); }
.bill-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.bill-amt { font-size: 15px; color: var(--ink); }
.bill-amt.pos { color: var(--cyan); }
.bill-amt.neg { color: var(--muted); }
.bill-status { font-size: 11px; color: var(--muted); }
.bill-status.paid { color: #34d399; }

.empty-hint {
  border: 1px dashed var(--line); border-radius: 14px;
  padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px;
}

/* ---------- 首屏模态框靠底部：唤醒灵枢/进入云川不再遮挡中央粒子核心 ---------- */
.intro-wrap {
  align-items: flex-end !important;
  padding-bottom: max(10vh, calc(env(safe-area-inset-bottom) + 64px)) !important;
}
.intro {
  margin: 0 auto !important;
  width: min(92vw, 460px) !important;
}
/* ---------- 通知红点 ---------- */
.bell-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 8px;
  background: #ff4d6a; color: #fff; font-size: 10px; font-weight: 600;
  text-align: center; box-shadow: 0 0 6px rgba(255, 77, 106, .7);
}
.notify-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.notify-item:last-child { border-bottom: 0; }
.notify-item .nt { font-size: 14px; color: #e8f6ff; }
.notify-item .nb { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.notify-item .nm { font-size: 11px; color: var(--muted); margin-top: 4px; opacity: .7; }
/* ---------- 呼吸时刻：引导态（不遮挡场景，只在没有视频时出现） ---------- */
.breath-hint {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 22px; border-radius: 18px; text-align: center;
  background: rgba(8, 18, 28, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 220, 255, .18); z-index: 6; pointer-events: auto;
  transition: opacity .4s ease, transform .4s ease;
}
.breath-hint.hide { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }
.breath-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(120, 220, 255, .55);
  box-shadow: 0 0 0 0 rgba(120, 220, 255, .35);
  animation: breathPulse 3.2s ease-in-out infinite;
}
@keyframes breathPulse {
  0%   { transform: scale(.85); box-shadow: 0 0 0 0 rgba(120,220,255,.35); opacity: .7; }
  50%  { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(120,220,255,0); opacity: 1; }
  100% { transform: scale(.85); box-shadow: 0 0 0 0 rgba(120,220,255,0); opacity: .7; }
}
.bh-title { font-size: 15px; color: #e8f6ff; letter-spacing: .5px; }
.bh-sub { font-size: 12px; color: var(--muted); line-height: 1.6; }
.bh-btn { margin-top: 4px; }
/* ---------- 记忆列表 ---------- */
.mem-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mem-item:last-child { border-bottom: 0; }
.mem-top { display: flex; justify-content: space-between; align-items: center; }
.mem-layer { font-size: 11px; color: var(--cyan); opacity: .85; }
.mem-del { font-size: 11px; color: #ff7a8a; text-decoration: none; }
.mem-body { font-size: 13px; color: #cfe6f5; line-height: 1.6; margin-top: 4px; }
/* ---------- 人物关系图 ---------- */
.rel-graph { margin: 14px 0 10px; padding: 14px 14px 10px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(16,32,54,.72), rgba(8,16,30,.55));
  border: 1px solid rgba(96,165,250,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  background: rgba(8,18,28,.45); border: 1px solid rgba(120,220,255,.12); }
.rg-title { font-size: 13px; color: #dff3ff; margin: 0 0 6px 6px; letter-spacing: .5px; }
.rg-svg { width: 100%; height: auto; display: block; }
.rg-center-label { fill: #eaf8ff; font-size: 13px; }
.rg-node { fill: rgba(20,40,60,.9); stroke: rgba(120,220,255,.75); stroke-width: 1.2; }
.rg-name { fill: #eaf8ff; font-size: 11px; pointer-events: none; }
.rg-edge-label { fill: rgba(160,220,255,.75); font-size: 10px; pointer-events: none; }
.rg-intimacy { fill: rgba(160,220,255,.5); font-size: 9px; pointer-events: none; }
.rg-hint { font-size: 11px; color: var(--muted); margin: 4px 0 2px 6px; }
/* ---------- 人格五维条 ---------- */
.trait-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.trait-k { width: 44px; color: var(--muted); }
.trait-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.trait-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), #5b8cff); }
.trait-v { width: 28px; text-align: right; color: var(--cyan); font-variant-numeric: tabular-nums; }
.trait-change { font-size: 13px; color: #dbeafe; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
/* ---------- 世界封面 ---------- */
.world-cover { position: relative; height: 132px; border-radius: 16px; margin: 4px 0 10px;
  background-size: cover; background-position: center;
  background-color: rgba(20,40,60,.9);
  background-image: radial-gradient(600px 300px at 50% 40%, #1b3a5c 0%, #0b1524 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.world-cover .wc-ph { display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(200,230,255,.75); font-size: 26px; letter-spacing: 2px; }
.world-cover .wc-ph i { font-size: 11px; font-style: normal; letter-spacing: 1px; opacity: .8; }
/* ---------- 首屏唤醒场景 ---------- */
.intro.wake { text-align: center; max-width: 520px; }
.intro .wake-eyebrow { font-size: 11px; letter-spacing: 4px; color: rgba(103,232,249,.65); margin-bottom: 14px; text-transform: uppercase; }
.intro .wake-line { color: #dbeafe; font-size: 15px; line-height: 2.1; letter-spacing: 1px; margin: 0 auto 26px; max-width: 440px; }
.intro .enter.dim { opacity: .55; }
/* ---------- 首屏：上方字幕 + 下方唯一按钮 ---------- */
/* stage 默认 pointer-events:none（用于粒子交互），首屏必须恢复，否则按钮点不动 */
.wake-stage { position: absolute; inset: 0; display: block; pointer-events: auto; }
/* 首屏字幕复用 .subtitle 的排版，只覆盖位置与字号，保证和引导各步骤"同一套灵枢字幕" */
.wake-caption.subtitle { position: absolute; top: 17%; left: 22px; right: 22px; transform: none;
  max-width: none; font-size: 16px; line-height: 2.15; letter-spacing: 1.2px;
  color: #e6f1ff; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.wake-caption .say.done::after { display: none; }
.wake-caption .say::after { content: '▍'; margin-left: 2px; color: rgba(103,232,249,.75);
  animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.wake-enter { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%);
  min-width: 186px; padding: 14px 34px; border-radius: 999px; font-size: 15px; letter-spacing: 4px;
  color: #d8f6ff; background: rgba(103,232,249,.10); border: 1px solid rgba(103,232,249,.6);
  cursor: pointer; overflow: hidden;
  animation: wakeFadeIn 1s ease both, enterBreathe 2.6s ease-in-out 1s infinite; }
.wake-enter:hover { background: rgba(103,232,249,.18); }
.wake-enter:active, .wake-enter.pressed { transform: translateX(-50%) scale(.97); }
.wake-enter.pressed { animation: none; box-shadow: 0 0 44px rgba(103,232,249,.55); }
.wake-enter .enter-tap { position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(103,232,249,.25); pointer-events: none;
  animation: tapPulse 2.6s ease-in-out infinite; }
.wake-enter .enter-ripple { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  border-radius: 50%; background: rgba(103,232,249,.55); transform: translate(-50%,-50%);
  animation: rippleOut .6s ease-out forwards; pointer-events: none; }
@keyframes wakeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes enterBreathe { 0%,100% { box-shadow: 0 0 20px rgba(103,232,249,.22); }
  50% { box-shadow: 0 0 40px rgba(103,232,249,.5); } }
@keyframes tapPulse { 0%,100% { opacity: .25; } 50% { opacity: .8; } }
@keyframes rippleOut { to { width: 320px; height: 320px; opacity: 0; } }
/* ---------- 未登录：登录框作为首屏上的底部弹层（不整页替换） ---------- */
/* 关键：#authStage 在 DOM 中位于 #stage 之前，两者默认同 z-index(10)，
   后出现且铺满全屏、pointer-events:auto 的 .wake-stage 会把登录框的点击全部吞掉（表现为"卡死"）。
   这里把弹层抬到首屏之上，并显式开启交互。 */
#authStage.from-landing { display: block; z-index: 40; pointer-events: auto; }
#authStage.from-landing .intro-wrap { align-items: flex-end; padding: 0; pointer-events: auto;
  background: radial-gradient(120% 60% at 50% 100%, rgba(4,10,20,.55), rgba(4,10,20,.15)); }
#authStage.from-landing input, #authStage.from-landing button, #authStage.from-landing a { pointer-events: auto; }
#authStage.from-landing .intro#authCard {
  width: 100%; max-width: 560px; margin: 0 auto; border-radius: 22px 22px 0 0;
  border-bottom: none; padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  animation: sheetUp .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheetUp { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-close { display: block; margin: 14px auto 0; background: transparent; border: none;
  color: rgba(160,200,235,.7); font-size: 12px; letter-spacing: 2px; padding: 8px 16px; cursor: pointer; }
.sheet-close:hover { color: var(--cyan); }
/* ---------- 世界详情：保留底部导航（原 .world-view z-index:30 会盖住 tabbar） ---------- */
#world-detail { z-index: 20; }
#world-detail #worldDetailBody { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* ---------- 弹窗关闭按钮 ---------- */
.modal-box { position: relative; }
.modal-x { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(120,200,255,.25); color: rgba(200,230,255,.8);
  font-size: 18px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: #fff; border-color: rgba(120,200,255,.6); }
/* ---------- 创建流程：退出按钮（独立一行，靠右上角） ---------- */
.sheet-top { display: flex; justify-content: flex-end; margin: -4px 0 2px; }
.sheet-exit { background: transparent; border: 1px solid rgba(120,200,255,.28); color: rgba(210,235,255,.8);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.sheet-exit:hover { color: #fff; border-color: rgba(120,200,255,.65); background: rgba(20,40,70,.6); }
/* ---------- 关系图（紧凑卡片） ---------- */
.rel-graph .rg-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.rel-graph .rg-title { font-size: 13px; color: #dff3ff; letter-spacing: .5px; }
.rel-graph .rg-legend { font-size: 10px; color: rgba(160,200,235,.6); }
.rel-graph .rg-svg { max-height: 260px; }
/* ---------- PC 适配：把整个应用收成居中的手机宽度，两侧留深色 ---------- */
@media (min-width: 600px) {
  body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(520px 720px at 50% 40%, rgba(20,60,100,.35), rgba(3,7,14,.92) 70%);
  }
  .topbar, .screen, #stage, .world-view, #tabbar, .progress {
    left: 50% !important; right: auto !important;
    width: 480px; max-width: 480px; transform: translateX(-50%);
  }
  /* 首屏/登录/唤醒也必须在手机视窗内，避免 PC 首帧先铺满全屏再闪回。 */
  #authStage {
    left: 50% !important; right: auto !important;
    width: 480px; max-width: 480px; transform: translateX(-50%);
  }
  .subtitle { left: 50% !important; transform: translateX(-50%); width: 460px; max-width: 460px; }
  .sheet { max-width: 452px; left: 50% !important; right: auto !important; transform: translateX(-50%); }
  #authStage.from-landing .intro#authCard { max-width: 480px; }
  .breath-hint { left: 50% !important; transform: translateX(-50%); }
}
/* ---------- 我：退出登录 ---------- */
.me-logout { display: block; width: 100%; margin: 26px 0 8px; padding: 13px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(248,113,113,.35); color: #fca5a5;
  font-size: 14px; letter-spacing: 2px; cursor: pointer; }
.me-logout:hover { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.6); color: #fff; }
/* ---------- 我的权益 ---------- */
.ent-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 6px; }
.ent-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid rgba(96,165,250,.18); }
.ent-table td { padding: 7px 4px; border-bottom: 1px solid rgba(96,165,250,.08); }
.me-ent-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 4px 0 6px; }
.ent-feats { list-style: none; padding: 0; margin: 6px 0 0; }
.ent-feats li { font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(96,165,250,.08); }
.ent-feats .ent-badge { margin-left: 8px; font-size: 10px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(251,191,36,.45); color: #fbbf24; }
.ent-desc { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
/* ---------- 数字人：播完停在最后一帧，可选重播/返回 ---------- */
.wv-person-hint { position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%) translateY(8px);
  display: flex; gap: 8px; z-index: 8; opacity: 0; pointer-events: none; transition: .25s; }
.wv-person-hint.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.wv-person-hint button { background: rgba(8,16,30,.72); border: 1px solid rgba(120,200,255,.35);
  color: #dff3ff; border-radius: 999px; padding: 8px 16px; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.wv-person-hint button:hover { border-color: rgba(120,200,255,.7); background: rgba(20,40,70,.8); }
/* ---------- 图片聊天 / 视频回复 ---------- */
.wv-feats + .wv-feats { margin-top: 6px; }
.bubble .chat-img { display: block; margin-top: 8px; max-width: 100%; border-radius: 10px; cursor: zoom-in; }
.bubble .chat-img.loading { padding: 22px 12px; text-align: center; font-size: 12px; color: var(--muted);
  border: 1px dashed rgba(120,200,255,.25); background: rgba(10,20,35,.45); }
.reply-video-chip { position: absolute; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 9;
  background: rgba(8,16,30,.72); border: 1px solid rgba(120,200,255,.35); color: #dff3ff;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 1px; }
.chat-img-toggle { display: inline-block; margin-top: 8px; background: transparent;
  border: 1px solid rgba(120,200,255,.35); color: var(--cyan); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; cursor: pointer; }
.chat-img-toggle:hover { border-color: rgba(120,200,255,.7); background: rgba(20,40,70,.5); }
/* 被审核拦截的回复气泡 */
.bubble.blocked { border: 1px solid rgba(239,68,68,.45); background: rgba(239,68,68,.08);
  color: #ffd7d7; cursor: pointer; }
.bubble.blocked::after { content: '点击修改后重试'; display: block; margin-top: 6px;
  font-size: 11px; opacity: .7; }
/* ============================================================
   聊天面板：折叠历史 / 语音输入 / 炫酷功能卡（2026-10-19）
   ============================================================ */
[hidden] { display: none !important; }

/* 顶部小杠杆：提示可展开历史 */
.chat-lever {
  align-self: center; display: flex; align-items: center; gap: 8px;
  margin: 0 auto 6px; padding: 5px 14px 5px 10px;
  border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, rgba(18,38,60,.9), rgba(8,18,30,.85));
  border: 1px solid rgba(79,209,250,.28);
  color: var(--muted); font-size: 11px; letter-spacing: .5px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s, border-color .2s, color .2s;
}
.chat-lever .grip {
  width: 26px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(79,209,250,.15), rgba(79,209,250,.85), rgba(79,209,250,.15));
  box-shadow: 0 0 8px rgba(79,209,250,.5);
}
.chat-lever:hover { transform: translateY(-1px); border-color: rgba(79,209,250,.6); color: var(--cyan); }

/* 聊天区：默认两行高度；展开/有图时自适应变高 */
.chat-scroll {
  max-height: 168px;
  transition: max-height .38s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: none;
}
.chat-scroll::-webkit-scrollbar { display: none; }
.chat-scroll.tall { max-height: 42vh; }
.chat-scroll.expanded { max-height: 52vh; }

/* 功能卡：2×2 网格 + 渐变描边 + 流光 */
.wv-feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  position: relative; z-index: 8;
}
.feat-btn {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-radius: 14px; cursor: pointer; overflow: hidden;
  text-align: left; letter-spacing: 0;
  background: linear-gradient(145deg, rgba(16,34,54,.92), rgba(7,16,28,.94));
  border: 1px solid rgba(79,209,250,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .22s, box-shadow .22s;
}
.feat-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(79,209,250,.55), rgba(56,130,246,.15) 45%, rgba(139,92,246,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .22s;
  pointer-events: none;
}
.feat-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(160,230,255,.16), transparent);
  transform: skewX(-18deg); animation: featSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}
.feat-btn:nth-child(2)::after { animation-delay: 1.2s; }
.feat-btn:nth-child(3)::after { animation-delay: 2.1s; }
.feat-btn:nth-child(4)::after { animation-delay: 3s; }
@keyframes featSweep { 0%, 55% { left: -60%; } 75%, 100% { left: 125%; } }

.feat-btn:hover { transform: translateY(-2px); border-color: rgba(79,209,250,.45); box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 18px rgba(79,209,250,.12); }
.feat-btn:active { transform: translateY(0) scale(.985); }
.feat-btn.on {
  border-color: rgba(79,209,250,.85);
  box-shadow: 0 0 0 1px rgba(79,209,250,.35), 0 0 22px rgba(79,209,250,.35), inset 0 0 18px rgba(79,209,250,.12);
  animation: featBreath 2.6s ease-in-out infinite;
}
@keyframes featBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(79,209,250,.3), 0 0 18px rgba(79,209,250,.25), inset 0 0 14px rgba(79,209,250,.1); }
  50% { box-shadow: 0 0 0 1px rgba(79,209,250,.7), 0 0 28px rgba(79,209,250,.45), inset 0 0 22px rgba(79,209,250,.2); }
}
.feat-btn.busy { opacity: .55; pointer-events: none; }

.feat-btn .ft-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; color: #9fe6ff;
  background: radial-gradient(circle at 30% 25%, rgba(79,209,250,.32), rgba(56,130,246,.08));
  border: 1px solid rgba(79,209,250,.18);
  box-shadow: 0 0 12px rgba(79,209,250,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.feat-btn .ft-ico svg { width: 18px; height: 18px; }
.feat-btn .ft-txt { display: flex; flex-direction: column; min-width: 0; }
.feat-btn .ft-txt b { font-size: 12.5px; font-weight: 600; color: #e8f6ff; letter-spacing: .5px; }
.feat-btn .ft-txt i { margin-top: 2px; font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-btn.on .ft-txt b { color: var(--cyan); }

/* 语音输入 */
.chat-input-mid { flex: 1; display: flex; min-width: 0; }
.chat-input-mid input { width: 100%; }
.mic-btn, .send-btn { display: grid; place-items: center; }
.mic-btn svg, .send-btn svg { width: 21px; height: 21px; }
.mic-btn.voice-on { color: #9fe6ff; border-color: rgba(79,209,250,.5); box-shadow: 0 0 14px rgba(79,209,250,.22); }
.chat-input .hold-talk { width: auto; flex: 1; border-radius: 12px; height: 44px; }
.hold-talk {
  flex: 1; height: 46px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(145deg, rgba(16,34,54,.95), rgba(7,16,28,.95));
  border: 1px solid rgba(79,209,250,.32); color: #dff3ff;
  font-size: 14px; letter-spacing: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.3);
  transition: transform .15s, border-color .2s, background .2s;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.hold-talk.recording {
  transform: scale(.985);
  background: linear-gradient(145deg, rgba(239,68,68,.28), rgba(120,20,30,.35));
  border-color: #ef4444; color: #ffe1e1;
  animation: pulse 1.1s infinite;
}
/* 消息语音按钮 */
.msg-audio {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 26px; height: 26px; margin-left: 8px; margin-top: 2px;
  border-radius: 50%; cursor: pointer; color: #9fe6ff;
  background: rgba(79,209,250,.08); border: 1px solid rgba(79,209,250,.25);
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.msg-audio svg { width: 15px; height: 15px; }
.msg-audio:hover { transform: scale(1.08); border-color: rgba(79,209,250,.6); }
.msg-audio.playing { color: var(--cyan); border-color: rgba(79,209,250,.75); box-shadow: 0 0 12px rgba(79,209,250,.35); animation: msgAudioPulse 1.4s ease-in-out infinite; }
@keyframes msgAudioPulse { 0%,100% { box-shadow: 0 0 8px rgba(79,209,250,.25); } 50% { box-shadow: 0 0 16px rgba(79,209,250,.55); } }
/* 视频通话卡片占满第二行 */
#featImgChat { grid-column: span 2; }
/* ============================================================
   紧凑功能栏：四个按钮一行 + 生成进度 + 清屏（2026-10-21）
   ============================================================ */
.wv-feats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
.feat-btn {
  min-height: 38px !important;
  padding: 7px 7px !important;
  border-radius: 11px !important;
  gap: 6px !important;
  opacity: .78;
  background: rgba(10,20,35,.42) !important;
  border-color: rgba(120,220,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}
.feat-btn::after { display: none !important; }       /* 小按钮去掉流光，减少干扰 */
.feat-btn:hover { opacity: 1; transform: translateY(-1px); }
.feat-btn.on { opacity: 1; }
.feat-btn .ft-ico {
  width: 22px !important; height: 22px !important; border-radius: 7px !important;
  background: radial-gradient(circle at 30% 25%, rgba(79,209,250,.22), rgba(56,130,246,.05)) !important;
  border-color: rgba(79,209,250,.12) !important;
  box-shadow: none !important;
}
.feat-btn .ft-ico svg { width: 13px !important; height: 13px !important; }
.feat-btn .ft-txt b { font-size: 11px !important; letter-spacing: 0 !important; white-space: nowrap; }
.feat-btn .ft-txt i { display: none !important; }
.feat-btn.busy { opacity: .9; pointer-events: none; cursor: default; }
.feat-btn.busy .ft-txt b { color: #9fe6ff; font-variant-numeric: tabular-nums; }
.feat-btn .ft-prog {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #4fd1fa, #3882f6);
  border-radius: 0 0 11px 11px;
  transition: width .45s linear;
  pointer-events: none;
}
#featLoop  { grid-column: auto !important; }
#featImgChat { grid-column: auto !important; }

/* 清屏模式：隐藏聊天消息和除"清屏"外的功能按钮 */
.world-view.screen-clear #chatScroll { display: none !important; }
.world-view.screen-clear #breathHint { display: none !important; }
.world-view.screen-clear #wvFeats .feat-btn:not(#featClear) { display: none !important; }
.world-view.screen-clear #wvFeats { grid-template-columns: minmax(0, 1fr) !important; max-width: 140px; margin: 0 auto; }
.world-view.screen-clear #featClear { opacity: 1; border-color: rgba(79,209,250,.5) !important; }
/* 生成中：隐藏图标，给倒计时腾出宽度；清屏时连"展开更早"一起隐藏 */
.feat-btn.busy .ft-ico { display: none !important; }
.feat-btn.busy .ft-txt { width: 100%; text-align: center; }
.feat-btn.busy .ft-txt b { display: block; width: 100%; text-align: center; }
.world-view.screen-clear #chatLever { display: none !important; }
/* 视频通话弹窗：三种模式预览 */
.vc-previews{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 4px}
.vc-pv{display:flex;flex-direction:column;gap:4px;align-items:center;font-size:10px;color:var(--dim)}
.vc-pv video{width:100%;height:104px;object-fit:cover;border-radius:9px;border:1px solid rgba(120,220,255,.18);background:#000}
/* 视频通话/呼吸时刻弹窗：单视频预览（自动循环） */
.vc-single{margin:12px 0 6px}
.vc-single video{width:100%;max-height:240px;object-fit:cover;border-radius:12px;border:1px solid rgba(120,220,255,.18);background:#000;display:block}
/* 2026-10-22：预览视频保持 9:16 竖版；功能开启状态强高亮 */
.vc-single { display:flex; justify-content:center; margin:12px 0 6px; }
.vc-single video {
  height: min(42vh, 320px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(120,220,255,.25);
  display: block;
}
.feat-btn { position: relative; }
.feat-btn.on {
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(79,209,250,.24), rgba(16,48,92,.62)) !important;
  border-color: rgba(79,209,250,.9) !important;
  box-shadow: 0 0 0 1px rgba(79,209,250,.55), 0 0 18px rgba(79,209,250,.35),
              inset 0 0 12px rgba(79,209,250,.14) !important;
}
.feat-btn.on .ft-txt b { color: #e8fbff !important; text-shadow: 0 0 8px rgba(79,209,250,.75); }
.feat-btn.on::before {
  content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: #4fd1fa; box-shadow: 0 0 8px #4fd1fa;
  animation: cfPulse 1.8s ease-in-out infinite;
}
@keyframes cfPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.78); } }
/* 场景世界时钟 */
.wv-clock{font-size:10px;color:rgba(219,234,254,.72);letter-spacing:.5px;white-space:nowrap;margin-left:auto;padding-right:4px}
/* ===== 视频/图片消息：三页签弹窗 ===== */
.media-tabs{display:flex;gap:4px;border-bottom:1px solid rgba(148,190,230,.16);margin:0 0 12px}
.media-tab{border:0;background:transparent;color:#8ea4bd;padding:9px 12px;font-size:12px;border-bottom:2px solid transparent}
.media-tab.on{color:#eaf2ff;border-bottom-color:#7dd3fc}
.media-pane{display:none}.media-pane.on{display:block}
.media-preview{position:relative;border-radius:14px;overflow:hidden;background:#05080e;aspect-ratio:9/16;max-height:380px;margin:10px 0}
.media-preview video,.media-preview-img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.media-preview .media-poster{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.media-preview .media-poster:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,8,14,.05),rgba(4,8,14,.62))}
.media-preview .media-badge{position:absolute;left:10px;bottom:10px;z-index:2;font-size:10px;color:#dff6ff;background:rgba(5,12,22,.68);padding:4px 8px;border-radius:999px}
.media-note{font-size:11px;color:#8ea4bd;line-height:1.65}
.media-voice{display:flex;gap:8px;align-items:center;margin:8px 0 4px}
.media-voice label{font-size:11px;color:#8ea4bd;white-space:nowrap}
.media-voice select{flex:1;background:#080f19;border:1px solid rgba(148,190,230,.2);color:#eaf2ff;border-radius:9px;padding:9px 10px;font-size:12px}
.media-price{display:flex;justify-content:space-between;gap:8px;background:rgba(10,22,36,.55);border:1px solid rgba(148,190,230,.12);border-radius:10px;padding:8px 10px;margin:10px 0;font-size:11px;color:#9fb9d2}
.media-price b{color:#bae6fd;font-weight:600}
.media-actions{display:flex;gap:8px;margin-top:12px}
.media-actions .btn{flex:1}

/* ===== 实时视频通话全屏 ===== */
.rtc-call{position:fixed;inset:0;z-index:1200;background:#04070c;display:none;overflow:hidden;touch-action:none}
.rtc-call.on{display:block}
.rtc-poster,.rtc-poster-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.rtc-poster-img{background-size:cover;background-position:center;filter:blur(1px) brightness(.7)}
.rtc-remote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;z-index:2;background:#04070c;display:none}
.rtc-call.has-video .rtc-remote{display:block}
.rtc-call.has-video .rtc-poster,.rtc-call.has-video .rtc-poster-img{display:none}
.rtc-top{position:absolute;z-index:5;top:calc(12px + env(safe-area-inset-top));left:12px;right:12px;display:flex;justify-content:space-between;align-items:center}
.rtc-top .pill{background:rgba(5,12,22,.62);border:1px solid rgba(125,211,252,.22);border-radius:999px;padding:6px 10px;font-size:11px;color:#dff6ff;backdrop-filter:blur(10px)}
.rtc-timer{font-variant-numeric:tabular-nums;font-size:12px;color:#dff6ff;background:rgba(5,12,22,.62);border:1px solid rgba(148,190,230,.18);padding:6px 10px;border-radius:999px}
.rtc-who{position:absolute;z-index:5;left:16px;bottom:calc(148px + env(safe-area-inset-bottom));background:rgba(5,12,22,.55);border:1px solid rgba(148,190,230,.16);border-radius:12px;padding:8px 12px;backdrop-filter:blur(12px);max-width:60vw}
.rtc-who b{display:block;font-size:14px}.rtc-who span{display:block;font-size:10px;color:#9fb9d2;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rtc-transcript{position:absolute;z-index:5;left:16px;right:16px;bottom:calc(106px + env(safe-area-inset-bottom));max-height:120px;overflow:auto;display:flex;flex-direction:column;gap:5px;pointer-events:none}
.rtc-transcript div{font-size:12px;line-height:1.55;padding:6px 10px;border-radius:10px;max-width:82%;backdrop-filter:blur(8px)}
.rtc-transcript .me{align-self:flex-end;background:rgba(14,165,233,.22);color:#e0f2fe}
.rtc-transcript .them{align-self:flex-start;background:rgba(15,23,42,.7);color:#ede9fe}
.rtc-textrow{position:absolute;z-index:6;left:16px;right:16px;bottom:calc(62px + env(safe-area-inset-bottom));display:flex;gap:6px}
.rtc-textrow input{flex:1;background:rgba(5,12,22,.72);border:1px solid rgba(148,190,230,.24);color:#eaf2ff;border-radius:999px;padding:10px 14px;font-size:12px;outline:none;backdrop-filter:blur(12px)}
.rtc-textrow button{border:1px solid rgba(125,211,252,.32);background:rgba(8,47,73,.85);color:#dff6ff;border-radius:999px;padding:0 16px;font-size:12px}
.rtc-actions{position:absolute;z-index:6;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:14px}
.rtc-round{min-width:52px;height:46px;padding:0 18px;border-radius:999px;border:1px solid rgba(148,190,230,.2);background:rgba(5,12,22,.72);color:#eaf2ff;font-size:16px;backdrop-filter:blur(12px)}
.rtc-danger{color:#fecdd3;border-color:rgba(251,113,133,.35);background:rgba(80,7,25,.55);font-size:13px}
@media (min-width:760px){.rtc-call{max-width:520px;left:50%;transform:translateX(-50%);border-left:1px solid rgba(148,190,230,.16);border-right:1px solid rgba(148,190,230,.16)}}
/* 实时通话：我这边的小摄像头窗 */
.rtc-camera{position:absolute;z-index:7;right:12px;top:calc(66px + env(safe-area-inset-top));width:104px;height:146px;border-radius:14px;overflow:hidden;border:1px solid rgba(125,211,252,.35);background:#05080e;box-shadow:0 8px 30px rgba(0,0,0,.35);display:none}
.rtc-camera.on{display:block}
.rtc-camera video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.rtc-camera span{position:absolute;left:6px;bottom:6px;font-size:9px;color:#dff6ff;background:rgba(5,12,22,.62);padding:2px 6px;border-radius:999px}
/* 实时通话底部控制：简洁 SVG + 明确开关状态 */
.rtc-actions .rtc-toggle{position:relative;width:48px;min-width:48px;height:48px;padding:0;display:flex;align-items:center;justify-content:center;transition:background .18s,border-color .18s,color .18s,box-shadow .18s}
.rtc-toggle svg{width:21px;height:21px;display:block;pointer-events:none}
.rtc-toggle .rtc-ico-mic-off{display:none}
.rtc-toggle.off{color:#fecdd3;border-color:rgba(251,113,133,.6);background:rgba(80,7,25,.62)}
.rtc-toggle.off .rtc-ico-mic{display:none}
.rtc-toggle.off .rtc-ico-mic-off{display:block}
.rtc-toggle.on{color:#bbf7d0;border-color:rgba(74,222,128,.6);background:rgba(6,78,59,.55);box-shadow:0 0 16px rgba(34,197,94,.18)}
.rtc-state-dot{position:absolute;right:7px;top:7px;width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px rgba(6,20,15,.8);display:none}
.rtc-toggle.on .rtc-state-dot{display:block}
.rtc-toggle:active{transform:scale(.94)}
.rtc-camera.on{border-color:rgba(74,222,128,.55);box-shadow:0 8px 30px rgba(0,0,0,.35),0 0 0 1px rgba(74,222,128,.12)}.rtc-toggle.starting{border-color:rgba(34,211,238,.65);color:#a5f3fc;background:rgba(8,47,73,.6);pointer-events:none;animation:rtcPulse 1s ease-in-out infinite}
@keyframes rtcPulse{0%,100%{box-shadow:0 0 0 0 rgba(34,211,238,.0)}50%{box-shadow:0 0 0 5px rgba(34,211,238,.14)}}.rtc-top .pill{max-width:calc(100vw - 92px);white-space:normal;line-height:1.35}/* 实时通话清屏：只保留底部操作栏 */
.rtc-clear{padding:0 12px;height:44px;gap:5px;font-size:12px;color:#dff6ff}
.rtc-clear svg{width:15px;height:15px}
.rtc-clear.on{color:#a5f3fc;border-color:rgba(34,211,238,.5);background:rgba(8,47,73,.62)}
.rtc-call.rtc-clean .rtc-top,
.rtc-call.rtc-clean .rtc-who,
.rtc-call.rtc-clean .rtc-transcript,
.rtc-call.rtc-clean .rtc-textrow,
.rtc-call.rtc-clean .rtc-camera{display:none!important}
.rtc-call.rtc-clean .rtc-actions{bottom:calc(14px + env(safe-area-inset-bottom))}/* 注册表单较长：在移动端认证卡内滚动，避免把注册按钮挤出屏幕 */
.auth-form-scroll{max-height:min(48vh,420px);overflow-y:auto;padding-right:2px;overscroll-behavior:contain}
@media (max-width:520px){.auth-form-scroll{max-height:44vh}}.auth-channel-banner{margin:10px 0 2px;padding:9px 11px;border-radius:10px;font-size:12px;line-height:1.6;text-align:left;color:#fde68a;background:rgba(120,53,15,.28);border:1px solid rgba(251,191,36,.35)}
.auth-channel-banner b{color:#fef3c7}/* 我：手机号绑定 */
.me-account{display:flex;align-items:center;gap:10px;background:rgba(10,20,35,.55);border:1px solid var(--line);border-radius:14px;padding:11px 13px;margin:8px 0 12px}
.me-account-label{font-size:12px;color:var(--muted);flex-shrink:0}
.me-account-val{flex:1;font-size:13px;color:#eaf2ff}
.me-account-val b{font-weight:500;letter-spacing:1px}
.me-verified{font-size:10px;color:#4ade80;margin-left:6px}
.me-unbound{color:var(--muted)}
.me-account button{white-space:nowrap}/* 绑定手机号弹窗：防止部分手机浏览器/自动填充把输入框渲染成白底白字 */
#bindPhoneInput,
#bindPhoneCode{
  background:rgba(10,20,35,.92)!important;
  color:#e6f4ff!important;
  -webkit-text-fill-color:#e6f4ff!important;
  caret-color:#67e8f9;
  color-scheme:dark;
  border:1px solid rgba(148,190,230,.22)!important;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  appearance:none;
  -webkit-appearance:none;
}
#bindPhoneInput::placeholder,
#bindPhoneCode::placeholder{color:rgba(190,220,245,.55)!important;opacity:1}
#bindPhoneInput:-webkit-autofill,
#bindPhoneCode:-webkit-autofill,
#bindPhoneInput:-webkit-autofill:hover,
#bindPhoneCode:-webkit-autofill:hover,
#bindPhoneInput:-webkit-autofill:focus,
#bindPhoneCode:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #0a1524 inset!important;
  -webkit-text-fill-color:#e6f4ff!important;
  transition:background-color 9999s ease-out 0s;
}/* 我页手机号右侧的一级按钮：覆盖浏览器原生白底按钮 */
.me-account #meBindPhone{
  appearance:none;
  -webkit-appearance:none;
  background:rgba(10,22,38,.88)!important;
  color:#dff6ff!important;
  border:1px solid rgba(125,211,252,.32)!important;
  border-radius:10px;
  padding:7px 12px;
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:none;
}
.me-account #meBindPhone:hover{background:rgba(18,42,68,.95)!important;border-color:rgba(125,211,252,.55)!important}
.me-account #meBindPhone:active{transform:scale(.97)}/* 音色步骤：语义化指令说明，避免长段说明挤在一起 */
.voice-instruction-hint{line-height:1.65;font-size:12px;color:rgba(190,220,245,.72);margin:8px 0 12px}
.voice-instruction-hint b{color:rgba(220,242,255,.9);font-weight:600}
/* ============================================================
   2026-10-23 真机适配：
   1) 四个功能按钮改为“3 个主按钮 + 半个宽度的清屏”，窄屏可换行
   2) 弹窗限制在视口内，关闭按钮固定可见，正文超出可滑动
   ============================================================ */
.wv-feats {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  gap: clamp(4px, 1.4vw, 8px) !important;
}
.wv-feats .feat-btn {
  flex: 2 1 84px;
  min-width: 0;
  min-height: 40px !important;
  padding: 7px 6px !important;
}
.wv-feats #featClear {
  flex: 1 1 42px;
  min-width: 36px;
  max-width: 96px;
}
.wv-feats .feat-btn .ft-txt { flex: 1; min-width: 0; }
.wv-feats .feat-btn .ft-txt b {
  display: block;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-align: center;
}
.wv-feats .feat-btn .ft-txt i {
  display: none !important;
}
.wv-feats .feat-btn .ft-ico { flex: 0 0 auto; }
.wv-feats .feat-btn.busy .ft-txt b { white-space: normal !important; }

/* 弹窗：宽度、最大高度、头部关闭按钮固定，正文滚动 */
.modal-box {
  display: flex !important;
  flex-direction: column;
  width: min(380px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  max-height: calc(100dvh - 24px);
  padding: 0 !important;
  overflow: hidden !important;
  position: relative;
}
.modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px 8px 16px;
}
.modal-head h3 { margin: 0; flex: 1; min-width: 0; }
.modal-head .modal-x {
  position: static !important;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  transform: none;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(120,200,255,.28); border-radius: 99px; }
.modal-body .modal-actions { padding-top: 4px; }

/* 手机端：底部留出四个功能按钮的位置，弹窗下边界停在按钮上方；超长内容在正文里滑 */
@media (max-width: 560px) {
  .modal-mask {
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom)) !important;
    align-items: flex-end !important;
  }
  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 104px - env(safe-area-inset-bottom)) !important;
    border-radius: 16px;
  }
  .modal-head { padding: 14px 12px 6px 14px; }
  .modal-body { padding: 0 14px 14px; }
}
/* 清屏只占半个宽，隐藏图标后保证“清屏”两个字单行可见 */
.wv-feats #featClear .ft-ico { display: none !important; }
.wv-feats #featClear .ft-txt { width: 100%; text-align: center; }
.wv-feats #featClear .ft-txt b { white-space: nowrap !important; font-size: 11px; }

/* 真机弹窗下边界停在四个功能按钮上方，避免遮住按钮 */
@media (max-width: 560px) {
  .modal-mask {
    padding: 10px 10px calc(var(--feat-reserve, 118px) + env(safe-area-inset-bottom)) !important;
    align-items: flex-end !important;
  }
  .modal-box {
    max-height: calc(100dvh - 10px - var(--feat-reserve, 118px) - env(safe-area-inset-bottom)) !important;
  }
}
/* 清屏固定半宽：窄屏换行时也不会被拉成整行 */
@media (max-width: 560px) {
  .wv-feats #featClear {
    flex: 0 1 48px;
    min-width: 44px;
    max-width: 52px;
  }
}
/* 清屏模式：只剩清屏时居中，保持半宽而不是被拉满 */
.world-view.screen-clear #wvFeats {
  justify-content: center;
}
.world-view.screen-clear #featClear {
  flex: 0 0 48px;
  max-width: 52px;
}
/* 客服表单 */
.field select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,232,249,.12); }
.field select option { background: #0b1626; color: #e6f4ff; }

/* 顶栏新增客服按钮后，窄屏压缩间距，避免三个按钮挤在一起 */
@media (max-width: 440px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .brand span { display: none; }
  .topbar .sound-toggle { padding: 6px 9px; font-size: 11px; letter-spacing: 0; }
  .topbar > div[style*="display:flex"] { gap: 5px !important; }
}
/* Toast 必须盖在弹窗（z-index:70）之上，否则用户在表单里看不到提交结果 */
.toast { z-index: 120 !important; }
/* ---------- PC 壳层：类名由 head 内联脚本在首帧前挂上，避免只靠窗口断点闪动 ---------- */
.pc-ui .sheet {
  width: min(452px, calc(100vw - 24px));
  max-width: min(452px, calc(100vw - 24px));
  left: 50% !important; right: auto !important;
  transform: translateX(-50%);
}
.pc-ui .modal-box {
  width: min(440px, calc(100vw - 24px)) !important;
  max-width: min(440px, calc(100vw - 24px)) !important;
}
.pc-ui * {
  scrollbar-width: thin;
  scrollbar-color: rgba(103,232,249,.35) transparent;
}
.pc-ui *::-webkit-scrollbar { width: 6px; height: 6px; }
.pc-ui *::-webkit-scrollbar-track { background: transparent; }
.pc-ui *::-webkit-scrollbar-thumb {
  background: rgba(103,232,249,.28); border-radius: 999px;
}
.pc-ui *::-webkit-scrollbar-thumb:hover { background: rgba(103,232,249,.45); }

/* 动画里必须把 PC 的横向居中 transform 一起写进去，
   否则 rise/sheetUp 的关键帧会把 translateX(-50%) 覆盖掉，
   内容/弹窗会先在右侧出现，动画结束才闪回中间。 */
@keyframes risePc {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%); }
}
@keyframes sheetUpPc {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%); }
}
.pc-ui .screen.on { animation: risePc .4s ease both; }
.pc-ui .sheet { animation: sheetUpPc .5s cubic-bezier(.2,.8,.2,1) both; }
/* PC 下 .subtitle 的居中规则会覆盖 wakeCaption 的 left/right，
   导致首屏字幕宽度按 left:50% + right:22px 计算而伸到 stage 外。 */
.pc-ui .wake-caption.subtitle {
  left: 22px !important;
  right: 22px;
  width: auto;
  max-width: none;
  transform: none;
}
/* ======================================================================
   角色「手机」
   ====================================================================== */
#screen-phone { padding: 0 !important; overflow: hidden; }
.ph-page { min-height: 100%; padding: calc(76px + env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom)); }
.ph-page-home { padding: 0; min-height: 100%; }
.ph-page-loading { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ph-spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(103,232,249,.18); border-top-color: var(--cyan); animation: phSpin .8s linear infinite; }
@keyframes phSpin { to { transform: rotate(360deg); } }

.ph-page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ph-page-head .title { margin: 0; }
.ph-page-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* 引导页 */
.ph-guide-wrap { min-height: calc(100vh - 76px); position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.ph-preview { position: absolute; inset: 0; overflow: hidden; border-radius: 0; background: linear-gradient(160deg, #12243a, #070c15 65%); filter: blur(1.4px); opacity: .78; }
.ph-preview-wall { position: absolute; inset: -20px; background: radial-gradient(circle at 30% 30%, rgba(103,232,249,.18), transparent 55%), linear-gradient(140deg,#1a3550,#0b1220 60%,#04070d); filter: blur(18px); }
.ph-preview-status { position: relative; display: flex; justify-content: space-between; padding: 16px 20px; font-size: 10px; color: rgba(230,245,255,.6); letter-spacing: 1px; }
.ph-preview-widget { position: relative; margin: 16% 20px 0; padding: 18px; border-radius: 24px; background: rgba(8,18,32,.55); border: 1px solid rgba(150,220,255,.14); backdrop-filter: blur(20px); }
.ph-preview-widget b { display: block; font-size: 38px; font-weight: 300; letter-spacing: 2px; }
.ph-preview-widget small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.ph-preview-widget em { display: block; margin-top: 16px; color: rgba(220,245,255,.78); font-size: 12px; font-style: normal; }
.ph-preview-grid { position: relative; margin: 28px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px 10px; }
.ph-preview-app { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .65; }
.ph-preview-app i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(120,200,255,.12); border: 1px solid rgba(150,220,255,.12); font-style: normal; }
.ph-preview-app em { font-style: normal; font-size: 9px; color: rgba(220,240,255,.65); }
.ph-preview-dock { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-around; padding: 12px; border-radius: 22px; background: rgba(8,18,32,.58); border: 1px solid rgba(150,220,255,.12); backdrop-filter: blur(18px); font-size: 18px; color: rgba(220,245,255,.75); }
.ph-guide { position: relative; margin: 0 -2px; padding: 22px 22px 18px; border-radius: 26px 26px 0 0; background: linear-gradient(to top, rgba(6,12,22,.97), rgba(8,18,30,.82)); border: 1px solid rgba(150,220,255,.14); backdrop-filter: blur(24px); }
.ph-guide-kicker { font-size: 10px; letter-spacing: 3px; color: var(--cyan); margin-bottom: 8px; }
.ph-guide h2 { font-size: 22px; font-weight: 300; letter-spacing: 2px; margin-bottom: 8px; }
.ph-guide > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.ph-guide-points { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 9px; }
.ph-guide-points li { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.ph-guide-points b { font-size: 12px; color: #e5f6ff; }
.ph-guide-points span { font-size: 11px; color: var(--muted); }
.ph-guide-btn { width: 100%; }
.ph-guide-note { text-align: center; font-size: 10px; color: rgba(160,200,235,.65); margin-top: 10px; }

/* 选角色 */
.ph-char-list { display: grid; gap: 10px; }
.ph-char-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border-radius: 17px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--ink); text-align: left; }
.ph-char-card:active { transform: scale(.99); }
.ph-char-card.is-off { opacity: .65; }
.ph-char-ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(103,232,249,.1); display: grid; place-items: center; }
.ph-char-ava img { width: 100%; height: 100%; object-fit: cover; }
.ph-char-info { flex: 1; min-width: 0; }
.ph-char-info b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.ph-char-info em { display: block; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-char-arrow { font-size: 21px; color: rgba(160,220,255,.5); }

/* 手机桌面 */
.ph-screen { position: relative; min-height: 100%; min-height: calc(100dvh - 0px); display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(62px + env(safe-area-inset-bottom)); background: #070c15; }
.ph-wall { position: absolute; inset: -24px; background-image: var(--ph-wall, none); background-size: cover; background-position: center; filter: blur(16px) brightness(.6); transform: scale(1.08); }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,8,16,.25), rgba(2,6,12,.58) 55%, rgba(2,6,12,.9)); }
.ph-statusbar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(60px + env(safe-area-inset-top)) 18px 6px; font-size: 10px; letter-spacing: 1px; color: rgba(235,248,255,.8); }
.ph-sig { font-size: 9px; letter-spacing: 0; }
.ph-sig b { font-weight: 500; margin-left: 4px; }
.ph-widget { position: relative; z-index: 2; display: block; width: calc(100% - 32px); margin: 22px auto 0; padding: 16px 18px; border-radius: 24px; text-align: left; color: #eaf8ff; background: rgba(10,22,38,.46); border: 1px solid rgba(160,225,255,.16); box-shadow: 0 10px 40px rgba(0,0,0,.28); backdrop-filter: blur(22px); }
.ph-widget-time { font-size: 40px; font-weight: 250; letter-spacing: 1px; line-height: 1.05; }
.ph-widget-date { font-size: 11px; color: rgba(220,242,255,.65); margin-top: 5px; letter-spacing: .5px; }
.ph-widget-weather { margin-top: 14px; font-size: 13px; color: rgba(230,250,255,.85); }
.ph-widget-weather b { font-weight: 400; margin-left: 3px; }
.ph-widget-line { margin-top: 10px; font-size: 11px; color: rgba(210,240,255,.62); line-height: 1.7; }
.ph-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; align-content: start; padding: 24px 18px 12px; }
.ph-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: transparent; border: 0; color: #e9f8ff; min-width: 0; }
.ph-app:active { transform: scale(.96); }
.ph-app-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(150deg, rgba(92,191,235,.26), rgba(18,37,64,.72)); border: 1px solid rgba(150,220,255,.18); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 5px 16px rgba(0,0,0,.22); font-size: 23px; color: #dff7ff; }
.ph-app-name { font-size: 10px; color: rgba(235,248,255,.86); text-shadow: 0 1px 6px #000; }
.ph-app-count { position: absolute; top: -4px; right: 50%; transform: translateX(32px); font-style: normal; font-size: 8px; color: rgba(220,245,255,.6); }
.ph-badge { position: absolute; top: -4px; right: calc(50% - 34px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fb7185; color: #fff; font-style: normal; font-size: 9px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); }
.ph-app-album { grid-column: span 2; grid-row: span 2; }
.ph-app-album .ph-app-icon { width: 120px; height: 120px; border-radius: 24px; font-size: 0; overflow: hidden; color: transparent; background: rgba(10,24,40,.6); }
.ph-album-thumbs { position: absolute; width: 120px; height: 120px; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 1; }
.ph-album-thumbs i { display: block; min-width: 0; min-height: 0; background: linear-gradient(145deg, rgba(103,232,249,.2), rgba(20,40,70,.8)); background-size: cover; background-position: center; }
.ph-app-power .ph-app-icon { background: rgba(120,40,55,.4); border-color: rgba(251,113,133,.25); color: #fecdd3; }
.ph-dock { position: relative; z-index: 2; margin-top: auto; padding: 9px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; background: rgba(8,18,32,.62); border-top: 1px solid rgba(150,220,255,.12); backdrop-filter: blur(22px); }
.ph-dock-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #e8f8ff; font-size: 19px; }
.ph-dock-item em { font-style: normal; font-size: 9px; color: rgba(220,242,255,.68); }
.ph-home-hint { display: none; }
.ph-home-back { position: fixed; z-index: 5; top: calc(14px + env(safe-area-inset-top)); left: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(150,220,255,.25); background: rgba(5,12,22,.6); color: #fff; font-size: 24px; line-height: 1; }
.pc-ui .ph-home-back { left: calc(50% - 224px); }

/* 关机页 */
.ph-page-off { display: flex; align-items: center; justify-content: center; }
.ph-off-card { width: 100%; max-width: 380px; padding: 32px 22px; border-radius: 26px; text-align: center; background: rgba(10,18,30,.8); border: 1px solid var(--line); }
.ph-off-icon { font-size: 34px; color: #fb7185; margin-bottom: 12px; }
.ph-off-card h2 { font-weight: 300; letter-spacing: 2px; margin-bottom: 8px; }
.ph-off-card p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.ph-off-note { display: block; color: rgba(160,200,235,.55); font-size: 10px; margin-top: 10px; }

/* 应用内页 */
.ph-app-view { position: fixed; inset: 0; z-index: 26; display: flex; flex-direction: column; background: #070c15; color: var(--ink); }
.pc-ui .ph-app-view { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
.ph-app-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); background: rgba(8,14,24,.92); backdrop-filter: blur(18px); }
.ph-app-bar b { font-size: 15px; font-weight: 500; letter-spacing: 2px; }
.ph-app-bar span { width: 28px; }
.ph-app-back { width: 28px; height: 28px; border: 1px solid rgba(150,220,255,.2); border-radius: 50%; background: transparent; color: #dff7ff; font-size: 22px; line-height: 1; }
.ph-app-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
.ph-empty { text-align: center; padding: 68px 20px; color: var(--muted); }
.ph-empty b { display: block; color: #dff3ff; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.ph-empty p { font-size: 12px; line-height: 1.7; }
.ph-diary { padding: 16px; margin-bottom: 12px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ph-diary-date { font-size: 10px; color: var(--cyan); letter-spacing: 1px; margin-bottom: 6px; }
.ph-diary h3 { font-size: 16px; font-weight: 450; margin-bottom: 8px; }
.ph-diary p { font-size: 13px; line-height: 1.85; color: rgba(230,245,255,.86); white-space: pre-wrap; }
.ph-diary small { display: block; margin-top: 10px; color: rgba(160,200,235,.55); font-size: 10px; }
.ph-album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-album-item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #0b1420; min-height: 130px; }
.ph-album-item img, .ph-album-item video { width: 100%; height: 130px; object-fit: cover; display: block; }
.ph-album-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 9px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); text-align: left; }
.ph-thread { margin-bottom: 16px; padding: 13px; border-radius: 17px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ph-thread h3 { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.ph-thread-msgs { display: grid; gap: 7px; }
.ph-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ph-msg span { max-width: 88%; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: rgba(103,232,249,.09); border: 1px solid rgba(103,232,249,.12); font-size: 12px; line-height: 1.6; }
.ph-msg.me { align-items: flex-end; }
.ph-msg.me span { border-radius: 12px 12px 3px 12px; background: rgba(255,255,255,.08); border-color: var(--line); }
.ph-msg small { font-size: 8px; color: rgba(160,200,235,.4); }
.ph-map { position: relative; height: 58vh; min-height: 360px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 40% 40%, rgba(32,80,104,.55), #08111d 70%); border: 1px solid rgba(120,220,255,.16); }
.ph-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-map-nodes span { position: absolute; transform: translate(-50%,-50%); font-size: 9px; color: #dff7ff; padding: 4px 7px; border-radius: 8px; background: rgba(4,12,22,.72); border: 1px solid rgba(103,232,249,.3); white-space: nowrap; }
.ph-map-note { text-align: center; color: rgba(160,200,235,.55); font-size: 10px; margin-top: 10px; }
.ph-ledger { display: grid; gap: 8px; }
.ph-ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ph-ledger-row b { display: block; font-size: 13px; font-weight: 500; }
.ph-ledger-row span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.ph-ledger-row em { font-style: normal; font-size: 16px; color: #fecdd3; }
.ph-contacts { display: grid; gap: 8px; }
.ph-contact { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ph-contact-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(103,232,249,.1); color: var(--cyan); font-size: 14px; }
.ph-contact div { flex: 1; min-width: 0; }
.ph-contact b { display: block; font-size: 13px; font-weight: 500; }
.ph-contact span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.ph-contact em { font-style: normal; font-size: 10px; color: rgba(160,200,235,.52); }
.ph-contact.is-virtual { border-style: dashed; }

/* 付费说明 */
.ph-paywall p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.ph-paywall-list { display: grid; gap: 8px; margin: 14px 0; }
.ph-paywall-list div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ph-paywall-list b { display: block; font-size: 12px; color: #dff7ff; margin-bottom: 3px; }
.ph-paywall-list span { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; }
.ph-paywall-note { font-size: 11px !important; color: rgba(160,200,235,.6) !important; }

/* 手机 Tab 未读角标 */
.tab { position: relative; }
.tab-dot { position: absolute; top: 3px; right: calc(50% - 19px); min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: #fb7185; color: #fff; font-style: normal; font-size: 8px; line-height: 13px; text-align: center; border: 1px solid rgba(8,14,24,.9); }
.tab-dot[hidden] { display: none; }.ph-guide-paused { border-color: rgba(251,113,133,.28); }
.ph-pause-stats { display: grid; gap: 8px; margin: 14px 0; }
.ph-pause-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.ph-pause-stats b { font-size: 11px; color: #dff7ff; font-weight: 500; }
.ph-pause-stats span { font-size: 10px; color: var(--muted); text-align: right; }
.ph-pause-actions { display: flex; gap: 9px; }
.ph-pause-actions .btn { flex: 1; }.ph-locked-note { margin-bottom: 12px; padding: 11px 13px; border-radius: 12px; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.22); color: #fecdd3; font-size: 11px; line-height: 1.7; }.ph-album-item { position: relative; }
.ph-play { position: absolute; left: 50%; top: 43%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }.ph-heart-list { display: grid; gap: 10px; }
.ph-heart { display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.ph-heart-mark { color: #f0a6b6; font-size: 16px; flex: 0 0 auto; }
.ph-heart p { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(235,248,255,.88); white-space: pre-wrap; }
.ph-memory-list { display: grid; gap: 9px; }
.ph-memory { padding: 13px; border-radius: 15px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ph-memory-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ph-memory-top b { font-size: 11px; color: var(--cyan); font-weight: 500; }
.ph-memory-top a { font-size: 10px; color: rgba(251,113,133,.75); text-decoration: none; }
.ph-memory p { margin: 7px 0 0; font-size: 12px; line-height: 1.8; color: rgba(235,248,255,.82); white-space: pre-wrap; }
/* 微信支付：Native 二维码 / JSAPI 状态 */
.pay-qr-wrap { text-align: center; padding: 4px 0 2px; }
.pay-amount { font-size: 28px; font-weight: 300; color: var(--ink); letter-spacing: -.02em; margin-bottom: 12px; }
.pay-qr { width: 220px; height: 220px; margin: 0 auto; display: block; border-radius: 14px; background: #fff; padding: 8px; box-sizing: border-box; }
.pay-tip { margin: 12px 0 4px; font-size: 12px; color: var(--muted); }
.pay-status { margin: 4px 0 14px; font-size: 11px; color: var(--cyan); }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-img { height: 42px; width: 132px; flex: 0 0 auto; border-radius: 8px; cursor: pointer; background: #f8fafc; object-fit: cover; }
