:root{
  --bg:#0A0A0C;
  --card:#14141A;
  --sheet:#1E1E26;
  --line:#2A2A34;
  --text:#F2F2F7;
  --muted:#A1A1AA;
  --gold:#E8B65A;
  --ok:#34C759;
  --warn:#FF9F0A;
  --danger:#FF453A;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--gold);text-decoration:none}
.page{min-height:100vh;display:flex;flex-direction:column;padding:0 20px env(safe-area-inset-bottom)}
.topbar{
  height:56px;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding-top:env(safe-area-inset-top);
}
.brand{font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.back{font-size:20px;line-height:1;padding:6px 10px;color:var(--text);border:1px solid var(--line);border-radius:10px}
/* 语言：折叠式，只显示当前语言，点开才展开其他语言 */
.langs{position:relative;flex:none}
.langs summary{
  list-style:none;display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:10px;
  border:1px solid var(--line);background:rgba(255,255,255,.04);
  font-size:10.5px;letter-spacing:.06em;color:var(--text);
  font-weight:700;cursor:pointer;user-select:none;
  transition:background .18s ease,border-color .18s ease;
}
.langs summary::-webkit-details-marker{display:none}
.langs summary::after{
  content:"";width:0;height:0;margin-left:2px;
  border-left:3px solid transparent;border-right:3px solid transparent;
  border-top:4px solid rgba(255,255,255,.45);
}
.langs[open] summary{border-color:rgba(232,182,90,.55);background:rgba(232,182,90,.10);color:var(--gold)}
.langs:not([open]) .langs-menu{display:none}
.langs-menu{
  position:absolute;right:0;top:calc(100% + 6px);z-index:30;
  display:flex;flex-direction:column;gap:2px;min-width:112px;
  padding:4px;border-radius:12px;
  background:#15151C;border:1px solid var(--line);
  box-shadow:0 18px 44px rgba(0,0,0,.55);
}
.langs-menu a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:7px 10px;border-radius:8px;border:0;
  font-size:11px;letter-spacing:.06em;color:var(--muted);
  transition:background .16s ease,color .16s ease;
}
.langs-menu a:hover{background:rgba(255,255,255,.06);color:var(--text)}
.langs-menu a.on{color:#0A0A0C;background:var(--gold);font-weight:700}
.langs-menu a .lg-name{opacity:.55;font-weight:400;font-size:10px}

.stage{flex:1;display:flex;flex-direction:column;justify-content:center;padding:18px 0 28px}
.stage.center{align-items:center;text-align:center}

/* ---------- video ---------- */
.player-box{position:relative;border-radius:18px;overflow:hidden;background:#000;border:1px solid var(--line)}
.video{display:block;width:100%;max-height:70vh;background:#000}
.play-mask{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;
  background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55));
  border:0;cursor:pointer;color:#fff;
}
.play-mask[hidden]{display:none}
.play-icon{
  width:64px;height:64px;border-radius:50%;
  background:rgba(232,182,90,.95);
  position:relative;box-shadow:0 6px 30px rgba(232,182,90,.35);
}
.play-icon::after{
  content:"";position:absolute;left:24px;top:19px;
  border-left:18px solid #0A0A0C;
  border-top:12px solid transparent;border-bottom:12px solid transparent;
}
.play-hint{font-size:13px;color:#fff;letter-spacing:.04em;text-shadow:0 1px 8px rgba(0,0,0,.6)}
/* 静音自动播时的遮罩：换成“点击开启声音”，点任意处即有声 */
.play-mask.is-muted{background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.62))}
.play-mask.is-muted .play-icon{display:none}
.play-mask.is-muted .play-hint{
  font-size:15px;font-weight:600;color:#F3D79C;letter-spacing:.02em;
  padding:11px 22px;border-radius:99px;
  background:rgba(10,10,12,.74);border:1px solid rgba(232,182,90,.5);
  text-shadow:none;box-shadow:0 4px 20px rgba(0,0,0,.35);
}

/* ---------- audio ---------- */
.disc{
  width:210px;height:210px;margin:0 auto 22px;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,#26262F 0 22%,#101014 23% 100%);
  box-shadow:0 14px 44px rgba(0,0,0,.55),inset 0 0 0 1px #2A2A34;
  position:relative;animation:spin 18s linear infinite;
}
.disc::after{
  content:"";position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;
  border-radius:50%;background:var(--gold);
}
.disc-inner{position:absolute;inset:28px;border-radius:50%;background:transparent}
.disc-inner.has-cover{background-size:cover;background-position:center;filter:saturate(1.05)}
@keyframes spin{to{transform:rotate(360deg)}}
.meta{text-align:center;margin:6px 0 18px}
.meta h1{font-size:20px;margin:0 0 6px;font-weight:600;line-height:1.35}
.meta .sub{color:var(--muted);font-size:13px;margin:0}

.audio-panel{width:100%;max-width:420px;margin:0 auto}
.progress{position:relative;height:6px;border-radius:99px;background:#26262F;margin:0 0 8px;cursor:pointer}
.progress-fill{height:100%;width:0;border-radius:99px;background:var(--gold)}
.progress-dot{
  position:absolute;top:50%;left:0;width:14px;height:14px;margin:-7px 0 0 -7px;
  border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(232,182,90,.18);
}
.time-row{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.controls{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:18px}
.ctrl{
  background:transparent;border:1px solid var(--line);color:var(--text);
  width:52px;height:52px;border-radius:50%;font-size:12px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.ctrl.main{width:68px;height:68px;background:var(--gold);border-color:var(--gold)}
.ic-play{
  width:0;height:0;border-left:16px solid #0A0A0C;border-top:10px solid transparent;border-bottom:10px solid transparent;margin-left:5px;
}
.ic-pause{width:14px;height:18px;border-left:5px solid #0A0A0C;border-right:5px solid #0A0A0C}
.ctrl.main.playing .ic-play{display:none}
.ctrl.main .ic-pause{display:none}
.ctrl.main.playing .ic-pause{display:block}

/* ---------- states ---------- */
.state-card{
  background:var(--card);border:1px solid var(--line);border-radius:20px;
  padding:34px 26px;max-width:420px;width:100%;
}
.state-card h1{font-size:19px;margin:14px 0 8px;font-weight:600}
.state-card .sub{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 18px}
.badge-ring{
  width:64px;height:64px;margin:0 auto;border-radius:50%;
  border:2px solid var(--gold);position:relative;
}
.badge-ring::after{
  content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;
  border-radius:50%;background:var(--gold);
}
.spinner{
  width:36px;height:36px;margin:0 auto;border-radius:50%;
  border:2px solid var(--line);border-top-color:var(--gold);
  animation:spin .9s linear infinite;
}
.btn-primary{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:50px;padding:0 26px;border-radius:14px;
  background:var(--gold);color:#0A0A0C;font-weight:700;font-size:15px;
  border:0;cursor:pointer;
}
.btn-primary.wide{width:100%;margin-top:22px}
.btn-primary[disabled]{opacity:.45;cursor:not-allowed}
.hint{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.6}

/* ---------- upload ---------- */
.upload-stage{justify-content:flex-start}
.tag-line{
  font-size:12px;color:var(--muted);letter-spacing:.06em;
  text-align:center;margin:4px 0 18px;font-variant-numeric:tabular-nums;
}
.quota{
  display:inline-block;margin:0 auto 16px;padding:6px 14px;border-radius:99px;
  background:rgba(232,182,90,.12);border:1px solid rgba(232,182,90,.35);
  color:var(--gold);font-size:12px;
}
/* ---------- 类型选择（客户首屏四选一） ---------- */
.pick-stage{width:100%;max-width:460px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch}
.pick-title{font-size:18px;font-weight:600;text-align:center;margin:2px 0 6px}
.pick-desc{font-size:12.5px;color:var(--muted);text-align:center;margin:0 0 18px;line-height:1.7}
.pick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:360px){.pick-grid{grid-template-columns:1fr}}
.pick-card{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:20px 14px;border-radius:16px;cursor:pointer;text-align:center;
  background:var(--card);border:1.5px solid var(--line);color:var(--text);
  transition:border-color .2s,background .2s,transform .1s;
}
.pick-card:active{transform:scale(.97)}
.pick-card:hover{border-color:var(--gold);background:#181820}
.pick-card.busy{opacity:.55;pointer-events:none}
.pick-ic{width:40px;height:40px;border-radius:12px;border:1.5px solid var(--gold);position:relative;margin-bottom:2px;flex:0 0 auto}
.ic-video::before{content:"";position:absolute;left:15px;top:12px;border-left:13px solid var(--gold);border-top:7px solid transparent;border-bottom:7px solid transparent}
.ic-music::before{content:"♪";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:20px;font-weight:700}
.ic-images::before{content:"";position:absolute;left:9px;top:10px;width:22px;height:17px;border:1.5px solid var(--gold);border-radius:3px}
.ic-images::after{content:"";position:absolute;left:13px;top:14px;width:5px;height:5px;border-radius:50%;background:var(--gold)}
.ic-text::before{content:"T";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:20px;font-weight:700}
.pick-name{font-size:15px;font-weight:600}
.pick-hint{font-size:11.5px;color:var(--muted);line-height:1.6}
.pick-err{margin:14px 0 0;font-size:12.5px;color:#E87070;text-align:center}
.pick-busy{margin:14px 0 0;font-size:12.5px;color:var(--muted);text-align:center}
.upload-stage form{width:100%;max-width:460px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch}
.picker{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:38px 22px;border-radius:18px;cursor:pointer;
  background:var(--card);border:1.5px dashed var(--line);
  transition:border-color .2s,background .2s;
}
.picker:active,.picker.drag{border-color:var(--gold);background:#181820}
.picker-icon{
  width:44px;height:44px;border-radius:12px;border:1.5px solid var(--gold);position:relative;margin-bottom:4px;
}
.picker-icon::before,.picker-icon::after{content:"";position:absolute;background:var(--gold);border-radius:2px}
.picker-icon::before{width:18px;height:2px;left:13px;top:21px}
.picker-icon::after{width:2px;height:18px;left:21px;top:13px}
.picker-title{font-size:16px;font-weight:600}
.picker-hint{font-size:12px;color:var(--muted)}
.file-card{
  margin-top:14px;padding:14px 16px;border-radius:14px;
  background:var(--card);border:1px solid var(--line);
}
.file-name{font-size:14px;word-break:break-all}
.file-meta{font-size:12px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.bar{height:6px;border-radius:99px;background:#26262F;margin-top:16px;overflow:hidden}
.bar-fill{height:100%;width:0;background:var(--gold);transition:width .2s}
.status{font-size:13px;margin:12px 0 0;text-align:center;line-height:1.6}
.status.err{color:var(--danger)}
.status.ok{color:var(--ok)}
.consent{font-size:11px;color:#6E6E78;text-align:center;line-height:1.7;margin:16px 0 0}

/* ---------- footer ---------- */
.foot{
  position:relative;
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 0 22px;font-size:11px;color:#5A5A64;
  font-variant-numeric:tabular-nums;letter-spacing:.04em;
}
/* 分享保护提示：固定在页脚正中间，不参与左右分布，避免被右下角客服按钮压住 */
.foot-guard{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  white-space:nowrap;font-size:11px;color:#6E6E78;letter-spacing:.02em;
  pointer-events:none;
}
.foot-link{color:var(--muted)}
.foot-sup{color:var(--gold);font-size:11px;letter-spacing:.02em}
.foot-sup:hover{opacity:.8}
@media(min-width:560px){
  .disc{width:240px;height:240px}
  .meta h1{font-size:22px}
}

/* ---------------- 播放页装饰 ---------------- */
body.play{
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(232,182,90,.13), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(232,182,90,.06), transparent 60%),
    radial-gradient(700px 380px at 96% 82%, rgba(120,120,140,.05), transparent 60%),
    #08080A;
  background-attachment:fixed;
}
body.play .page{position:relative;z-index:1}
body.play .page::after{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:24px 24px;
  opacity:.5;
  -webkit-mask-image:radial-gradient(circle at 50% 38%, #000 0%, transparent 68%);
  mask-image:radial-gradient(circle at 50% 38%, #000 0%, transparent 68%);
}
body.play .brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}
body.play .langs{flex:0 0 auto}
body.play .brand::before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 12px rgba(232,182,90,.9);flex:none;
}
.langs .langauto{
  font-size:9px;opacity:.5;letter-spacing:.06em;
  border-top:1px solid rgba(255,255,255,.08);border-radius:0 0 8px 8px;
  margin-top:2px;padding-top:8px;
}
.langs .langauto:hover{opacity:1;color:var(--text)}

/* 视频：外发光 + 描边 */
body.play .stage{position:relative;isolation:isolate}
body.play .stage::before{
  content:"";position:absolute;left:50%;top:50%;z-index:-1;
  width:min(760px,92vw);height:min(420px,46vh);transform:translate(-50%,-56%);
  background:radial-gradient(ellipse at center, rgba(232,182,90,.16), transparent 68%);
  filter:blur(26px);pointer-events:none;
}
body.play .player-box{
  box-shadow:0 24px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04),
              0 0 60px rgba(232,182,90,.10);
}
body.play.playing .player-box{box-shadow:0 24px 70px rgba(0,0,0,.7), 0 0 0 1px rgba(232,182,90,.18), 0 0 80px rgba(232,182,90,.18)}

/* 唱片：细密音轨 + 金边 + 光晕 */
body.play .disc{
  width:232px;height:232px;
  background:
    radial-gradient(circle at 50% 50%,
      #2B2B35 0 15%, #17171E 16% 30%,
      #121217 31% 100%);
  box-shadow:
    0 26px 64px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 0 10px rgba(255,255,255,.025),
    0 0 90px rgba(232,182,90,.14);
}
body.play .disc::before{
  content:"";position:absolute;inset:12px;border-radius:50%;
  background:repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, transparent 0 26%, #000 30% 100%);
  mask-image:radial-gradient(circle at 50% 50%, transparent 0 26%, #000 30% 100%);
  pointer-events:none;
}
body.play .disc::after{
  content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;
  border-radius:50%;
  background:radial-gradient(circle at 40% 35%, #F3CB84, #E8B65A 55%, #B07D22 100%);
  box-shadow:0 0 0 3px rgba(10,10,12,.9), 0 0 26px rgba(232,182,90,.45);
  animation:none;
}
body.play .disc{animation:spin 26s linear infinite}
body.play.playing .disc{animation-duration:9s}
body.play.playing .disc{box-shadow:0 26px 64px rgba(0,0,0,.72), 0 0 0 1px rgba(232,182,90,.2), 0 0 110px rgba(232,182,90,.22)}
body.play .disc-inner{inset:34px}
body.play .disc-inner.has-cover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}

/* 音频面板：一层玻璃 */
body.play .audio-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  padding:18px 18px 20px;
  backdrop-filter:blur(8px);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
body.play .progress{height:8px;background:linear-gradient(90deg,#20202A,#16161C);box-shadow:inset 0 1px 2px rgba(0,0,0,.7)}
body.play .progress-fill{background:linear-gradient(90deg,#C9923E,#E8B65A);box-shadow:0 0 16px rgba(232,182,90,.5)}
body.play .progress-dot{width:16px;height:16px;margin:-8px 0 0 -8px;box-shadow:0 0 0 5px rgba(232,182,90,.16),0 2px 10px rgba(0,0,0,.6)}
body.play .ctrl{
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.09);
  transition:transform .12s ease, border-color .2s;
}
body.play .ctrl:active{transform:scale(.94)}
body.play .ctrl.main{
  background:radial-gradient(circle at 38% 30%, #F3CB84, #E8B65A 52%, #C9923E 100%);
  border:0;
  box-shadow:0 12px 34px rgba(232,182,90,.38), inset 0 1px 0 rgba(255,255,255,.35);
}
body.play.playing .ctrl.main{box-shadow:0 14px 44px rgba(232,182,90,.52), inset 0 1px 0 rgba(255,255,255,.4)}

/* 标题、脚注 */
body.play .meta h1{letter-spacing:.02em}
body.play .meta .sub{letter-spacing:.06em}
body.play .foot{
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:8px;
  padding-top:14px;
}

/* 空卡 / 待审：卡片描边发光 */
body.play .state-card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border:1px solid rgba(232,182,90,.22);
  box-shadow:0 22px 60px rgba(0,0,0,.55), 0 0 60px rgba(232,182,90,.08);
}
body.play .badge-ring{box-shadow:0 0 24px rgba(232,182,90,.25), inset 0 0 14px rgba(232,182,90,.12)}

/* ---------------- 公告栏 ---------------- */
.notice{
  display:flex;gap:10px;align-items:flex-start;
  margin:2px 0 14px;padding:11px 14px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(232,182,90,.10), rgba(232,182,90,.045));
  border:1px solid rgba(232,182,90,.22);
  box-shadow:0 8px 26px rgba(0,0,0,.28);
}
.notice-ic{
  flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 10px rgba(232,182,90,.8);
}
.notice p{
  margin:0;font-size:12.5px;line-height:1.65;color:#E9E2D2;
  word-break:break-word;
}

/* 静音自动播放提示 */
.sound-pill{
  align-self:center;display:inline-flex;align-items:center;gap:7px;
  margin:0 auto 14px;padding:8px 14px;border-radius:99px;
  background:rgba(232,182,90,.14);border:1px solid rgba(232,182,90,.4);
  color:#F3D79C;font-size:12px;letter-spacing:.02em;cursor:pointer;
  animation:soundPulse 2.4s ease-in-out infinite;
}
.sound-pill[hidden]{display:none}
.sp-ic{
  width:14px;height:14px;border-radius:4px;background:var(--gold);opacity:.85;
  position:relative;flex:none;
}
.sp-ic::after{
  content:"";position:absolute;left:15px;top:5px;width:5px;height:5px;border-radius:50%;
  border:1px solid var(--gold);
}
@keyframes soundPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(232,182,90,.25)}
  50%{box-shadow:0 0 0 8px rgba(232,182,90,0)}
}

/* ---------------- 相册（多图卡） ---------------- */
.gallery-stage{justify-content:flex-start;padding-top:6px}
.gal{
  position:relative;width:100%;min-width:0;border-radius:22px;overflow:hidden;
  background:#08080A;border:1px solid var(--line);
  box-shadow:0 24px 60px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.04);
}
.gal-track{
  width:100%;min-width:0;
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.gal-track::-webkit-scrollbar{display:none}
.gal-slide{
  flex:0 0 100%;min-width:0;width:100%;scroll-snap-align:center;
  display:flex;align-items:center;justify-content:center;
  background:#08080A;
}
.gal-slide img{
  display:block;width:100%;max-width:100%;height:auto;max-height:68vh;
  object-fit:contain;user-select:none;-webkit-user-drag:none;
}
.gal-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,12,.5);color:#fff;font-size:20px;line-height:1;
  backdrop-filter:blur(8px);cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.gal-nav.prev{left:12px}
.gal-nav.next{right:12px}
.gal-nav:active{transform:translateY(-50%) scale(.94)}
.gal-dots{
  position:absolute;left:0;right:0;bottom:12px;
  display:flex;justify-content:center;gap:6px;pointer-events:none;
}
.gal-dots button{
  pointer-events:auto;width:6px;height:6px;border-radius:99px;border:0;padding:0;
  background:rgba(255,255,255,.3);cursor:pointer;transition:width .22s,background .22s;
}
.gal-dots button.on{width:18px;background:var(--gold)}
.gal-count{
  position:absolute;top:12px;right:12px;
  padding:4px 10px;border-radius:99px;
  font-size:11px;letter-spacing:.06em;color:#fff;
  background:rgba(10,10,12,.55);border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
}
.gal-hint{
  margin:12px 0 0;text-align:center;
  font-size:11.5px;letter-spacing:.08em;color:var(--muted);
}

/* ---------------- 文字卡 ---------------- */
:root{
  --font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-serif:"Songti SC","Noto Serif SC",Georgia,"Times New Roman",serif;
  --font-round:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}
.text-stage{align-items:center}
.letter{
  position:relative;width:100%;min-width:0;max-width:560px;
  padding:clamp(24px,7vw,40px) clamp(20px,6vw,34px);
  border-radius:24px;border:1px solid var(--line);
  box-shadow:0 26px 70px rgba(0,0,0,.5);
  overflow:hidden;
}
.letter::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 50% 0%,rgba(232,182,90,.10),transparent 60%);
  pointer-events:none;
}
.letter-corner{
  position:absolute;left:0;top:0;width:54px;height:54px;
  border-top:1px solid rgba(232,182,90,.45);border-left:1px solid rgba(232,182,90,.45);
  border-top-left-radius:24px;opacity:.7;
}
.letter-noir{background:linear-gradient(180deg,#16161C,#0C0C10)}
.letter-ink{background:linear-gradient(180deg,#131318,#08080B)}
.letter-cream{background:linear-gradient(180deg,#FBF6EC,#F3EAD8);border-color:#E0D3B8;box-shadow:0 26px 70px rgba(0,0,0,.35)}
.letter-cream::before{background:radial-gradient(120% 90% at 50% 0%,rgba(176,125,34,.10),transparent 65%)}
.letter-gold{background:linear-gradient(160deg,#F8E9C8 0%,#EBCB8C 45%,#D9A94F 100%);border-color:#C8933C;box-shadow:0 26px 70px rgba(0,0,0,.35)}
.letter-gold::before{background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.45),transparent 60%)}
.letter-body{
  position:relative;min-width:0;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;
  max-height:62vh;overflow:auto;
  letter-spacing:.01em;
}
.letter-body.f-serif{font-family:var(--font-serif)}
.letter-body.f-round{font-family:var(--font-round)}
.letter-body.is-empty{opacity:.45}

/* ---------------- 文字编辑器 ---------------- */
.editor{margin-top:10px}
.ed-top{display:flex;justify-content:space-between;align-items:center;margin:0 2px 8px}
.ed-label{font-size:11px;letter-spacing:.1em;color:var(--muted);text-transform:uppercase}
.ed-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.ed-preview{
  width:100%;max-width:none;min-height:120px;max-height:34vh;
  overflow:auto;padding:18px 18px;
}
.ed-preview .letter-body{max-height:28vh;font-size:19px}
.ed-input{
  width:100%;margin-top:12px;padding:12px 14px;
  border-radius:14px;border:1px solid var(--line);
  background:var(--sheet);color:var(--text);
  font:inherit;font-size:14px;line-height:1.7;resize:vertical;min-height:104px;
}
.ed-input:focus{outline:none;border-color:rgba(232,182,90,.6);box-shadow:0 0 0 3px rgba(232,182,90,.10)}
.ed-bar{
  display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;
  margin-top:12px;padding:12px 14px;
  border-radius:16px;border:1px solid var(--line);background:var(--card);
}
.ed-group{display:flex;align-items:center;gap:8px}
.ed-key{font-size:11px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.ed-val{font-size:12px;color:var(--text);font-variant-numeric:tabular-nums;min-width:20px;text-align:right}
input[type="range"]#tSize{
  -webkit-appearance:none;appearance:none;width:96px;height:4px;border-radius:99px;
  background:linear-gradient(90deg,var(--gold),rgba(232,182,90,.25));outline:none;
}
input[type="range"]#tSize::-webkit-slider-thumb{
  -webkit-appearance:none;width:16px;height:16px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 4px rgba(232,182,90,.15);cursor:pointer;
}
.ed-swatches{display:flex;gap:6px;flex-wrap:wrap}
.ed-swatches button{
  width:20px;height:20px;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  background:var(--c);cursor:pointer;padding:0;position:relative;
}
.ed-swatches button.on{box-shadow:0 0 0 3px rgba(232,182,90,.35)}
.ed-toggle{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.ed-toggle button{
  width:34px;height:28px;border:0;background:transparent;color:var(--muted);
  font-size:13px;cursor:pointer;
}
.ed-toggle button + button{border-left:1px solid var(--line)}
.ed-toggle button.on{background:rgba(232,182,90,.16);color:var(--gold)}
.ed-toggle button[data-align="left"]{text-align:left;padding-left:7px;justify-content:flex-start}
.ed-toggle button[data-align="center"]{text-align:center}
.ed-toggle button[data-align="right"]{text-align:right;padding-right:7px}
.ed-bgs{display:flex;gap:6px;flex-wrap:wrap}
.ed-bgs button{
  height:28px;padding:0 10px;border-radius:9px;border:1px solid var(--line);
  background:var(--sheet);color:var(--muted);font-size:11px;cursor:pointer;
}
.ed-bgs button.on{border-color:rgba(232,182,90,.55);color:var(--gold);background:rgba(232,182,90,.12)}
.ed-marks{display:flex;gap:6px}
.ed-marks .mk{
  width:32px;height:30px;border-radius:9px;border:1px solid var(--line);
  background:var(--sheet);color:var(--text);font-size:13px;cursor:pointer;
}
.ed-marks .mk.on{border-color:rgba(232,182,90,.55);color:var(--gold);background:rgba(232,182,90,.12)}
.ed-hint{margin:10px 2px 0;font-size:11.5px;line-height:1.6;color:var(--muted)}

/* 文字卡署名：像一封专门写给某个人的信 */
.ed-sign{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:12px;padding-top:12px;border-top:1px dashed rgba(255,255,255,.08);
}
.ed-sign input[type="text"]{
  flex:1 1 140px;min-width:120px;max-width:220px;
  padding:9px 12px;border-radius:11px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);
  color:var(--text);font-size:13px;outline:none;
}
.ed-sign input[type="text"]:focus{border-color:rgba(232,182,90,.55);background:rgba(232,182,90,.06)}
.ed-sign-tip{font-size:11px;color:var(--muted);flex:1 1 100%}

/* 播放页：信件下方署名与日期 */
.letter-sign{
  margin:16px 0 2px;text-align:center;
  font-size:12px;letter-spacing:.06em;color:rgba(243,215,156,.8);
}
.ls-dot{margin:0 6px;opacity:.6}
.ls-date{font-variant-numeric:tabular-nums;opacity:.85}

/* ---------------- 底部复购钩子 ---------------- */
.hook{
  position:relative;width:100%;max-width:560px;height:22px;
  margin:14px auto 0;text-align:center;overflow:hidden;
}
.hook-line{
  position:absolute;left:0;right:0;top:0;margin:0;
  font-size:12px;letter-spacing:.06em;line-height:22px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
  color:rgba(243,215,156,.62);
  opacity:0;transform:translateY(5px);
  transition:opacity .5s ease,transform .5s ease;
  pointer-events:none;
}
.hook-line.on{opacity:1;transform:translateY(0)}

/* ---------------- 多图选择 ---------------- */
.img-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;
}
.img-cell{
  position:relative;border-radius:12px;overflow:hidden;
  border:1px solid var(--line);background:#0B0B0E;
  aspect-ratio:1;
}
.img-cell img{display:block;width:100%;height:100%;object-fit:cover}
.img-del{
  position:absolute;top:5px;right:5px;width:24px;height:24px;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);background:rgba(10,10,12,.65);
  color:#fff;font-size:15px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.img-count{margin:10px 2px 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.img-grid[hidden],.img-count[hidden]{display:none}

@media (min-width:700px){
  .img-grid{grid-template-columns:repeat(5,1fr)}
}

/* 防止 flex 子项被内容撑宽（相册/文字卡移动端溢出修复） */
.page{min-width:0;max-width:100%;overflow-x:clip}
.stage{min-width:0;width:100%}
.gallery-stage,.text-stage{max-width:100%}

/* ---------------- 分享保护（后台开关） ---------------- */
body[data-noshare]{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
body[data-noshare] ::selection{background:transparent}


/* ---------------- 右下角 AI 客服入口 ---------------- */
.sup-fab{
  position:fixed;right:14px;bottom:calc(74px + env(safe-area-inset-bottom,0px));z-index:30;
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 16px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(232,182,90,.42);
  background:rgba(19,19,26,.94);color:var(--gold);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.5);
  font-size:12px;font-family:inherit;letter-spacing:.02em;text-decoration:none;
  transition:transform .16s ease,border-color .16s ease;
}
.sup-fab:hover{transform:translateY(-1px);border-color:var(--gold)}
.sup-fab:active{transform:translateY(0)}
.sup-fab-ic{
  width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none;
  box-shadow:0 0 0 3px rgba(232,182,90,.16);
}
.sup-fab-t{line-height:1}

.btn-ghost{
  padding:11px 14px;border-radius:12px;cursor:pointer;font-family:inherit;font-size:14px;
  border:1px solid #2A2A34;background:transparent;color:var(--muted);
  transition:color .16s ease,border-color .16s ease;
}
.btn-ghost:hover{color:var(--text);border-color:#3A3A44}

/* ---------------- 超频验证页 ---------------- */
.gate-card{max-width:360px;margin:0 auto}
.gate-ring{
  width:74px;height:74px;border-radius:50%;border:1px solid #2A2A34;
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px;
}
.gate-ring span{
  width:26px;height:26px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 24px rgba(232,182,90,.45);
}
.gate-form{margin:0}
.gate-q{
  font-size:20px;letter-spacing:.06em;color:var(--text);
  margin:16px 0 12px;font-variant-numeric:tabular-nums;
}
.gate-q span{color:var(--muted);font-size:14px}
.gate-input{
  width:100%;text-align:center;font-size:20px;letter-spacing:.12em;
  padding:12px;border-radius:12px;border:1px solid #2A2A34;background:#0F0F13;
  color:var(--text);margin-bottom:12px;font-family:inherit;
}
.gate-input:focus{outline:0;border-color:var(--gold)}
.gate-form .btn-primary{width:100%}
.gate-err{color:#FF6B60;font-size:12px;margin:0 0 12px}

/* ---------- v3.13 验证闸门页 ---------- */
.gate-label{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted)}
.gl-ic{
  width:15px;height:15px;border-radius:4px;border:1.5px solid var(--muted);
  position:relative;display:inline-block;
}
.gl-ic::after{
  content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;
  border:1.5px solid var(--muted);border-radius:1px;transform:translate(-50%,-50%);
}
.gate-top-right{display:inline-flex;align-items:center;gap:10px}
.gate-status{
  display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--gold);
  border:1px solid rgba(232,182,90,.4);border-radius:20px;padding:6px 15px;
}
.gate-status.busy{
  border-top-color:var(--warn);
  animation:gateSpin 1s linear infinite;
}
@keyframes gateSpin{to{transform:rotate(360deg)}}

.gate-stage{gap:0;flex-direction:column;align-items:center}
.gate-illu{
  position:relative;display:flex;align-items:center;justify-content:center;
  margin:26px 0 30px;animation:gateFloat 2.6s ease-in-out infinite;
}
@keyframes gateFloat{0%,100%{transform:translateX(-8px)}50%{transform:translateX(8px)}}
.gi-phone{
  width:96px;height:150px;border-radius:22px;border:1.5px solid var(--line);
  background:var(--card);display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;
}
.gi-phone::before{
  content:"";position:absolute;top:14px;left:16px;width:10px;height:10px;
  border-radius:3px;background:#1C1C24;
}
.gi-nfc{
  width:30px;height:30px;position:relative;
}
.gi-nfc::before,.gi-nfc::after{
  content:"";position:absolute;left:50%;top:50%;border:2px solid #9A9AA8;
  border-radius:50%;transform:translate(-50%,-50%);
}
.gi-nfc::before{width:18px;height:18px;border-right-color:transparent;border-top-color:transparent}
.gi-nfc::after{width:30px;height:30px;border-right-color:transparent;border-top-color:transparent}
.gi-link{position:absolute;left:96px;width:34px;height:1px;background:var(--line)}
.gi-chip{
  width:58px;height:58px;border-radius:50%;background:rgba(232,182,90,.12);
  border:1px solid rgba(232,182,90,.35);display:flex;align-items:center;justify-content:center;
  margin-left:34px;
}
.gi-chip-ic{
  width:22px;height:22px;border:2px solid var(--gold);border-radius:5px;position:relative;
}
.gi-chip-ic::before{
  content:"";position:absolute;inset:5px;border:1.5px solid var(--gold);border-radius:2px;
}

.gate-lockline{
  display:inline-flex;align-items:center;gap:8px;color:var(--gold);
  font-size:14px;margin:0 0 14px;
}
.gl-lock{font-size:15px}
.gate-title{font-size:32px;letter-spacing:.04em;margin:0 0 14px;font-weight:700;text-align:center}
.gate-desc{color:var(--muted);font-size:15px;line-height:1.6;margin:0 0 22px;max-width:300px;text-align:center}
.gate-retry{
  margin-top:4px;background:transparent;border:1px solid var(--line);color:var(--muted);
  border-radius:12px;padding:9px 18px;font-size:13px;
}
.gate-retry:hover{color:var(--text);border-color:#3A3A44}

body.playgate .gate-card{
  width:100%;max-width:360px;margin:18px auto 6px;background:var(--card);color:var(--text);
  border:1px solid var(--line);border-radius:18px;padding:16px;
  display:flex;flex-direction:column;gap:12px;
}
.gc-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gc-label{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--gold)}
.gc-heart{font-size:14px;color:var(--gold)}
.gc-source{font-size:11.5px;color:var(--muted)}
.gc-body{flex:1;min-width:0;text-align:left}
.gc-title{font-size:16px;font-weight:700;margin:0 0 6px;color:var(--text)}
.gc-meta{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 3px}
.gc-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.gc-note{font-size:11px;color:var(--muted);line-height:1.5;flex:1;margin:0;max-width:60%}
.gc-cta{
  flex:0 0 auto;font-size:13px;font-weight:600;color:var(--gold);background:rgba(232,182,90,.14);
  border-radius:12px;padding:10px 14px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;
}
.gc-arr{font-size:12px}

/* 公益寻人：左图右文，小方头像 */
body.playgate .gate-card.welfare .gc-main{display:flex;gap:13px;align-items:flex-start}
body.playgate .gate-card.welfare .gc-img{width:96px;height:96px;border-radius:12px;object-fit:cover;flex:0 0 96px;background:#26262F}

/* 自营推广：圆角卡片内上图下文，图按 2:1 自适应宽度 */
body.playgate .gate-card.promo{max-width:400px;padding:14px}
body.playgate .gate-card.promo .gc-main{display:flex;flex-direction:column;gap:12px}
body.playgate .gate-card.promo .gc-img{
  width:100%;height:auto;aspect-ratio:2/1;border-radius:12px;object-fit:cover;display:block;background:#26262F;
}

@media(max-width:360px){
  body.playgate .gate-card{padding:13px}
  body.playgate .gate-card.welfare .gc-img{width:80px;height:80px;flex-basis:80px}
  .gc-foot{gap:8px}
  .gc-cta{padding:8px 11px}
}

/* ---------------- AI 卡统一页脚（星语 / 塔罗 / 八字） ---------------- */
.ai-foot{
  position:fixed;left:0;right:0;bottom:0;z-index:24;
  display:flex;align-items:center;justify-content:flex-start;
  padding:9px max(22px, calc((100vw - 520px)/2)) calc(9px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg, rgba(5,6,10,0), rgba(5,6,10,.78));
  color:rgba(244,241,234,.42);font-size:11px;letter-spacing:.04em;
  font-variant-numeric:tabular-nums;pointer-events:none;
}
.ai-foot-code{
  max-width:34vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:rgba(244,241,234,.48);
}
.ai-foot .foot-guard{
  color:rgba(244,241,234,.48);font-size:10px;letter-spacing:.02em;
}
body.starpage .sw{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
body.tarotpage .tw{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
body.bazipage .bz{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}

/* AI 卡页脚中的 AI 客服入口，避免浮动按钮遮挡命盘/牌阵内容 */
.ai-foot{pointer-events:none;background:linear-gradient(180deg,rgba(5,6,10,.10),rgba(5,6,10,.94) 42%,rgba(5,6,10,.99));border-top:1px solid rgba(255,255,255,.06);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);min-height:42px}

/* 页脚三栏：左右固定、中间自适应，避免长语言挤压 */
.ai-foot{display:flex;align-items:center;gap:10px;padding-left:16px;padding-right:14px}
.ai-foot-code{flex:0 0 auto;max-width:30vw}
.ai-foot-guard{flex:1 1 auto;position:static;transform:none;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
@supports not (backdrop-filter: blur(8px)){.ai-foot{background:rgba(5,6,10,.96)}}

