/* 所有可调的尺寸、颜色都是 #screen 上的 CSS 变量，由 config.json 的 layout / theme 写进来 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #1d1733 radial-gradient(1200px 800px at 30% 20%, #3a2c63 0%, #1d1733 60%);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: #3b2d5a;
  overflow: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; user-select: none; -webkit-user-drag: none; }
.num { font-family: "Nunito", "PingFang SC", sans-serif; font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---------- 舞台：桌面上是手机框 + 右侧编辑面板，手机上直接全屏 ---------- */
#stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 20px; }
#phone {
  width: 390px; height: min(844px, calc(100vh - 40px)); flex: none;
  border-radius: 48px; padding: 10px; background: linear-gradient(145deg, #4a3d6e, #241c3d);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08);
}
#screen {
  --pad: 16px; --fs: 14px; --title: 17px; --badge-main: 96px; --badge-small: 38px; --podium-char: 132px; --podium-gap: 6px;
  --avatar: 46px; --row-h: 66px; --row-gap: 8px; --radius: 18px; --mybar-h: 66px; --tab-h: 62px;
  --primary: #ff7eb3; --secondary: #9d8bff; --gold: #f2b84b; --text: #3b2d5a; --sub: #8b7fa8;
  --card: rgba(255,255,255,.66); --blur: 14px; --bg-dim: 0; --head: #fff; --head-shadow: 0 1px 6px rgba(60,30,110,.45);
  position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden;
  color: var(--text); font-size: var(--fs); isolation: isolate;
}
@media (max-width: 520px) {
  #stage { padding: 0; }
  #phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  #screen { border-radius: 0; }
  .statusbar { display: none !important; }
}

.bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center top; }
.bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,30,80,.25) 0%, rgba(255,255,255,0) 30%, rgba(236,234,255,.3) 100%), rgba(30,20,60,var(--bg-dim)); }

.statusbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; color: var(--head);
  font: 600 15px/1 "Nunito", sans-serif; position: relative; z-index: 3; }
.sb-right { display: flex; gap: 5px; }
.sb-right i { width: 17px; height: 11px; border-radius: 3px; background: var(--head); opacity: .9; }
.sb-right i:nth-child(1) { width: 4px; } .sb-right i:nth-child(2) { width: 14px; border-radius: 50% 50% 2px 2px; }

#view { position: absolute; inset: 44px 0 0 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  padding: 0 var(--pad) calc(var(--mybar-h) + var(--tab-h) + 28px); }
#view::-webkit-scrollbar { display: none; }
@media (max-width: 520px) { #view { inset: 0; padding-top: env(safe-area-inset-top, 12px); } }

.glass { background: var(--card); backdrop-filter: blur(var(--blur)) saturate(1.3); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 8px 28px rgba(110,80,190,.16); border-radius: var(--radius); }

/* ---------- 顶部 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; color: var(--head); }
.app-title { font-size: var(--title); font-weight: 800; letter-spacing: 1px; text-shadow: var(--head-shadow); display: flex; align-items: center; gap: 6px; }
.app-title small { font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: 0; }
.season-chip { display: flex; align-items: center; gap: 4px; padding: 6px 10px 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  color: var(--head); background: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); }
.season-chip b { color: var(--gold); }

.countdown { margin: 0 auto 8px; width: fit-content; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  color: #fff; font-size: 12px; background: linear-gradient(90deg, rgba(143,114,242,.55), rgba(157,139,255,.55)); border: 1px solid rgba(255,255,255,.5); }
.countdown .num { font-size: 15px; letter-spacing: 1px; }

/* ---------- 段位区 ---------- */
.rank-hero { position: relative; padding: 14px 14px 12px; margin-bottom: 10px; }
.rank-hero-main { display: flex; align-items: center; gap: 12px; }
.badge-main { width: var(--badge-main); height: var(--badge-main); position: relative; flex: none; display: grid; place-items: center; }
.badge-main::before { content: ""; position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,160,.9) 0%, rgba(205,190,255,.35) 45%, transparent 70%); animation: glow 3s ease-in-out infinite; }
.badge-main img { position: relative; max-width: 100%; max-height: 100%; animation: floaty 4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(150,90,40,.25)); }
@keyframes glow { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes floaty { 50% { transform: translateY(-4px); } }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 22px; font-weight: 900; display: flex; align-items: baseline; gap: 6px; }
.rank-name .tier { background: linear-gradient(90deg, var(--rank-c), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: rgba(157,139,255,.14); color: var(--secondary); white-space: nowrap; }
.chip.pink { background: rgba(226,169,78,.16); color: #b07a2a; }
.rank-line { font-size: 12px; color: var(--sub); margin-top: 4px; }
.promote { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text); }
.promote > span { flex: 1; min-width: 0; line-height: 1.4; }
.dots { display: flex; gap: 4px; }
.dots i { width: 16px; height: 6px; border-radius: 3px; background: rgba(157,139,255,.22); }
.dots i.on { background: linear-gradient(90deg, var(--primary), var(--secondary)); box-shadow: 0 0 6px rgba(143,114,242,.6); }
.btn-promote { margin-left: auto; flex: none; white-space: nowrap; padding: 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #f0c477, #d99347); box-shadow: 0 4px 12px rgba(143,114,242,.45); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

.rank-strip { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; padding: 8px 6px 2px;
  border-top: 1px dashed rgba(157,139,255,.3); }
.rk { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--sub); position: relative; width: 20%; }
.rk img { width: var(--badge-small); height: var(--badge-small); object-fit: contain; }
.rk.locked img { filter: grayscale(1) brightness(1.15) opacity(.55); }
.rk.locked::after { content: ""; position: absolute; top: calc(var(--badge-small) / 2 - 9px); width: 18px; height: 18px; border-radius: 50%;
  background: rgba(80,60,120,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/11px no-repeat; }
.rk.cur { color: var(--text); font-weight: 800; }
.rk.cur img { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(255,200,120,.9)); }
.rk.cur::before { content: ""; position: absolute; bottom: -4px; width: 16px; height: 3px; border-radius: 2px; background: var(--primary); }

/* ---------- 范围切换 ---------- */
.scope { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.seg { display: flex; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); }
.seg button { padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--head); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(143,114,242,.3); }
.scope-note { font-size: 11px; color: var(--head); opacity: .9; text-shadow: var(--head-shadow); }

/* ---------- 领奖台 ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: var(--podium-gap); margin: 6px 0 12px; }
.pod { display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
.pod .char { height: calc(var(--podium-char) * .84); width: auto; max-width: 118%; object-fit: contain; position: relative; z-index: 2;
  margin-bottom: -16px; filter: drop-shadow(0 6px 8px rgba(90,60,150,.3)); animation: bob 3.2s ease-in-out infinite; transform-origin: bottom center; }
.pod.p1 .char { height: var(--podium-char); animation-duration: 2.6s; }
.pod.p3 .char { animation-delay: -1.2s; } .pod.p2 .char { animation-delay: -.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-5px) scaleY(1.015); } }
.pod .halo { position: absolute; top: 4%; left: 50%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,170,.85) 0%, rgba(210,190,255,.35) 35%, transparent 65%); animation: glow 3s ease-in-out infinite; }
.pod .stand { width: 100%; position: relative; z-index: 3; border-radius: 50% 50% var(--radius) var(--radius) / 22px 22px var(--radius) var(--radius);
  padding: 20px 4px 10px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,230,255,.82));
  box-shadow: 0 10px 24px rgba(110,80,190,.22), inset 0 -6px 14px rgba(200,180,255,.45), inset 0 3px 0 #fff; }
.pod.p1 .stand { padding-top: 24px; background: linear-gradient(180deg, #fffdf6, #f8efdc 70%, #ece6fb); box-shadow: 0 10px 26px rgba(160,120,60,.22), inset 0 -6px 14px rgba(226,190,120,.35), inset 0 3px 0 #fff; }
.pod .medal { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font: 900 14px/1 "Nunito"; box-shadow: 0 3px 8px rgba(0,0,0,.18); border: 2px solid #fff; }
.p1 .medal { background: linear-gradient(135deg, #ffd56b, #ff9f43); width: 30px; height: 30px; top: -15px; }
.p2 .medal { background: linear-gradient(135deg, #d9e4f5, #9fb1d4); }
.p3 .medal { background: linear-gradient(135deg, #f3c3a5, #d08a6a); }
.pod .nick { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pod .amt { font-size: 13px; color: var(--primary); margin-top: 2px; }
.p1 .amt { font-size: 15px; background: linear-gradient(90deg, #d9963c, #b5762f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pod .meta { font-size: 10px; color: var(--sub); margin-top: 1px; }
.pod.empty { opacity: .5; }
.pod .me-flag { position: absolute; top: 6px; right: 6px; z-index: 4; }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; gap: var(--row-gap); }
.row { height: var(--row-h); display: flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; cursor: pointer; transition: transform .15s; }
.row:active { transform: scale(.98); }
.row .no { width: 24px; text-align: center; font-size: 16px; color: var(--sub); flex: none; }
.row .who { flex: 1; min-width: 0; }
.row .nick { font-weight: 800; font-size: calc(var(--fs) + 1px); display: flex; align-items: center; gap: 6px; }
.row .nick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: 11px; color: var(--sub); margin-top: 3px; }
.row .amt { text-align: right; }
.row .amt .num { font-size: 15px; color: var(--text); }
.row .amt small { display: block; font-size: 10px; color: var(--sub); }
.row.idle { opacity: .6; }
.row.is-me { border: 1.5px solid var(--primary); }
.tag-me { font-size: 10px; padding: 1px 6px; border-radius: 6px; color: #fff; background: linear-gradient(90deg, var(--primary), var(--secondary)); flex: none; }
.list-title { font-size: 12px; color: var(--head); margin: 10px 2px 2px; opacity: .9; text-shadow: var(--head-shadow); }

/* 头像 + 头像框：头像是圆，框按 config 里量出来的空洞位置对齐 */
.ava { position: relative; width: var(--avatar); height: var(--avatar); flex: none; }
.ava > .face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff1f7; }
.ava > .frame { position: absolute; max-width: none; pointer-events: none; }

/* ---------- 底部：我的排名 + 标签栏 ---------- */
#mybar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--tab-h) + 10px); height: var(--mybar-h); z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 0 14px 0 10px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,255,255,.94), rgba(243,240,255,.95));
  border: 1.5px solid transparent; background-clip: padding-box; box-shadow: 0 10px 30px rgba(143,114,242,.28), 0 0 0 1.5px rgba(143,114,242,.7); }
#mybar:empty { display: none; }
#mybar .no { font-size: 18px; color: var(--primary); width: 30px; text-align: center; }
#mybar .who { flex: 1; min-width: 0; }
#mybar .nick { font-weight: 800; display: flex; align-items: center; gap: 6px; }
#mybar .gap { font-size: 11px; color: var(--primary); margin-top: 3px; font-weight: 700; }
#mybar .amt .num { font-size: 16px; }
#mybar .amt small { display: block; font-size: 10px; color: var(--sub); text-align: right; }

#tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); z-index: 6;
  display: flex; padding: 0 18px env(safe-area-inset-bottom, 0); background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.9); box-shadow: 0 -6px 24px rgba(110,80,190,.12); }
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--sub); font-weight: 700; }
#tabbar svg { width: 24px; height: 24px; }
#tabbar button.on { color: var(--primary); }
#tabbar button.on svg { filter: drop-shadow(0 3px 6px rgba(143,114,242,.45)); }
#tabbar .mid { position: relative; }
#tabbar .mid .plus { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 16px rgba(143,114,242,.45); border: 3px solid #fff; }
#tabbar .mid .plus svg { width: 22px; height: 22px; }

/* ---------- 弹层 ---------- */
#layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.mask { position: absolute; inset: 0; background: rgba(40,25,80,.42); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; pointer-events: auto; scrollbar-width: none;
  border-radius: 26px 26px 0 0; padding: 10px var(--pad) 28px; background: linear-gradient(180deg, #fcfbff, #f2effb);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.9,.3,1); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(139,127,168,.3); margin: 0 auto 10px; }
#layer.open .mask { opacity: 1; } #layer.open .sheet { transform: none; }
.sheet h3 { font-size: 16px; font-weight: 900; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.sheet h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(var(--primary), var(--secondary)); }

.p-head { display: flex; gap: 6px; align-items: center; min-height: 160px; position: relative; }
.p-head .char { height: 170px; margin: -10px 0 -6px -6px; filter: drop-shadow(0 6px 10px rgba(90,60,150,.25)); }
.p-head .info { flex: 1; padding-bottom: 10px; }
.p-head .nick { font-size: 20px; font-weight: 900; }
.p-head .chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.p-head .big { font-size: 24px; color: var(--primary); }
.p-head .big small { font-size: 11px; color: var(--sub); font-weight: 600; margin-left: 4px; }
.p-head .rb { position: absolute; right: 0; top: 0; width: 54px; }
.order { padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(110,80,190,.08); }
.order .top { display: flex; align-items: center; gap: 6px; }
.order .top .num { font-size: 16px; color: var(--primary); margin-left: auto; }
.order .time { font-size: 11px; color: var(--sub); }
.order .pkg { font-weight: 800; font-size: 13px; }
.order p { font-size: 12.5px; line-height: 1.65; color: #5b4d78; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #faf6ff; }
.order p::before { content: "成长规划书 · "; color: var(--secondary); font-weight: 700; }
.empty-tip { text-align: center; color: var(--sub); padding: 30px 0; font-size: 13px; }

.season-card { padding: 14px; border-radius: 18px; color: #fff; position: relative; overflow: hidden; background-size: cover; background-position: center 35%; }
.season-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(50,30,100,.15), rgba(50,30,100,.65)); }
.season-card > * { position: relative; }
.season-card .sn { font-size: 18px; font-weight: 900; }
.season-card .sd { font-size: 11px; opacity: .9; margin-top: 2px; }
.season-card .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 12px 0 4px; overflow: hidden; }
.season-card .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffe6a8, #ff9ac8); }
.season-card .bl { display: flex; justify-content: space-between; font-size: 11px; }
.season-card p { font-size: 12px; line-height: 1.6; margin-top: 10px; opacity: .95; }
.dist { display: flex; flex-direction: column; gap: 8px; }
.dist .d { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dist .d img { width: 30px; height: 30px; object-fit: contain; }
.dist .d .nm { width: 56px; font-weight: 800; }
.dist .d .track { flex: 1; height: 10px; border-radius: 5px; background: #efe8fb; overflow: hidden; }
.dist .d .track i { display: block; height: 100%; border-radius: 5px; }
.dist .d .c { width: 34px; text-align: right; color: var(--sub); }
.dist .d.mine .nm { color: var(--primary); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv div { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(110,80,190,.06); }
.kv small { display: block; font-size: 11px; color: var(--sub); }
.kv b { font-size: 16px; }
.rules { font-size: 12px; line-height: 1.8; color: #5b4d78; padding-left: 16px; }

/* 晋升确认 */
.modal { position: absolute; left: 50%; top: 50%; width: 84%; transform: translate(-50%, -46%) scale(.9); opacity: 0; pointer-events: auto;
  transition: all .35s cubic-bezier(.2,1.4,.4,1); text-align: center; padding: 26px 18px 18px; border-radius: 26px;
  background: linear-gradient(180deg, #fffdf6, #f6f1ff 60%, #eeeafc); box-shadow: 0 20px 60px rgba(60,30,120,.4); }
#layer.open .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal .rays { position: absolute; left: 50%; top: 70px; width: 300px; height: 300px; margin: -150px 0 0 -150px; z-index: 0; opacity: .55;
  background: repeating-conic-gradient(rgba(255,200,120,.55) 0 8deg, transparent 8deg 20deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal > * { position: relative; z-index: 1; }
.modal .pb { width: 120px; margin: -8px auto 4px; animation: floaty 3s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(160,100,220,.35)); }
.modal h2 { font-size: 22px; font-weight: 900; background: linear-gradient(90deg, #d9963c, #8f72f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal p { font-size: 13px; color: #5b4d78; line-height: 1.7; margin: 8px 0 14px; }
.modal .days { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.modal .days span { flex: 1; font-size: 11px; padding: 7px 4px; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(110,80,190,.1); }
.modal .days b { display: block; font-size: 12px; color: var(--primary); white-space: nowrap; margin-top: 2px; }
.btns { display: flex; gap: 10px; }
.btns button { flex: 1; padding: 11px 0; border-radius: 99px; font-weight: 800; font-size: 14px; }
.btn-ghost { background: #f1ebfb; color: var(--sub); }
.btn-main { color: #fff; background: linear-gradient(90deg, #f0c477, #d99347); box-shadow: 0 6px 16px rgba(143,114,242,.4); }

/* 下一步才做的页面 */
.soon { margin-top: 80px; text-align: center; padding: 30px 20px; }
.soon img { width: 150px; margin: 0 auto 8px; }
.soon b { font-size: 17px; } .soon p { font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.7; }

#toast { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 40; pointer-events: none; padding: 10px 16px; border-radius: 14px;
  background: rgba(50,30,90,.82); color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; max-width: 80%; text-align: center; }
#toast.show { opacity: 1; }

/* 骨骼小人：画布比格子宽一些，武器、尾巴不被裁掉 */
.pod .spine-slot { width: 150%; max-width: none; flex: none; animation: none; filter: drop-shadow(0 6px 8px rgba(60,40,120,.28)); }
.pod .spine-slot canvas { width: 100%; height: 100%; display: block; }
.p-head .char.portrait { height: 300px; margin: -8px 0 -14px -8px; }

/* ---------- 详情：左边头像 ---------- */
.p-head { padding: 6px 0 4px; min-height: 0; gap: 14px; }
.p-ava { padding: 10px; flex: none; }
.order { cursor: pointer; }
.order .more { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--primary); text-align: right; }

/* ---------- 成长规划书：整页 ---------- */
#pagelayer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#pagelayer .page { position: absolute; inset: 0; pointer-events: auto; background: #f5f3fa; transform: translateX(100%);
  transition: transform .34s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; }
#pagelayer.open .page { transform: none; }
.pg-bar { flex: none; height: 54px; padding-top: 4px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center;
  background: #1f1a3a; color: #fff; font-size: 16px; }
.pg-bar button { font-size: 28px; line-height: 1; color: #fff; height: 100%; }
.pg-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 0 0 30px; }
.pl-hero { padding: 22px 20px 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(226,169,78,.35), transparent 55%), linear-gradient(160deg, #1f1a3a 0%, #2f2660 60%, #3b2f74 100%); }
.pl-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(232,196,128,.35); }
.pl-kicker { font: 800 10px/1 "Nunito", sans-serif; letter-spacing: 3px; color: #e8c480; }
.pl-baby { font-size: 30px; font-weight: 900; margin-top: 10px; letter-spacing: 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pl-baby small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.75); }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.8); }
.pl-meta .num { color: #e8c480; font-size: 13px; }
.pl-by { display: flex; align-items: center; gap: 4px; width: 100%; margin-bottom: 4px; }
.pl-by b { color: #fff; }
.pl-sec { margin: 12px 14px 0; padding: 16px 16px 14px; background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(40,30,90,.06); }
.pl-sec h4 { font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #2c2848; }
.pl-sec h4 i { font: 800 11px/1 "Nunito", sans-serif; font-style: normal; color: #b5853a; padding: 4px 6px; border-radius: 6px; background: #f8efdc; }
.pl-text { font-size: 13px; line-height: 1.8; color: #4a4566; }
.pl-who { display: flex; gap: 6px; margin-bottom: 8px; }
.pl-who span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: #efecfa; color: #5b4fb0; font-weight: 700; }
.pl-needs { padding-left: 18px; font-size: 13px; line-height: 1.75; color: #4a4566; }
.pl-needs li { margin-bottom: 4px; } .pl-needs li::marker { color: #8f72f2; font-weight: 800; }
.pl-quote { margin-top: 10px; padding: 10px 12px; border-left: 3px solid #e2a94e; background: #fbf7ee; border-radius: 0 10px 10px 0; font-size: 12.5px; line-height: 1.75; color: #5a4a2a; }
.pl-quote b { display: block; font-size: 11px; color: #b5853a; margin-bottom: 2px; }
.pl-tl { position: relative; padding-left: 4px; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: #ebe7f6; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px; border: 3px solid #d9d3ee; background: #fff; }
.tl.now .tl-dot { border-color: #e2a94e; box-shadow: 0 0 0 4px rgba(226,169,78,.18); }
.tl.done .tl-dot { border-color: #8f72f2; }
.tl-main { flex: 1; }
.tl-top { display: flex; align-items: center; gap: 8px; }
.tl-top b { font-size: 14px; } .tl-top span { font-size: 12.5px; color: #4a4566; }
.tl-top em { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: #f0eef6; color: #8a85a3; }
.tl.now em { background: #f8efdc; color: #b5853a; } .tl.done em { background: #efecfa; color: #6c55d6; }
.tl-main p { font-size: 12px; line-height: 1.7; color: #7b7697; margin-top: 3px; }
.pl-pkg { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed #e6e2f2; }
.pl-pkg b { font-size: 15px; } .pl-pkg .num { color: #8f72f2; font-size: 15px; }
.pl-inc { list-style: none; margin-top: 8px; font-size: 13px; line-height: 2; color: #4a4566; }
.pl-inc li::before { content: "✓"; color: #8f72f2; font-weight: 900; margin-right: 8px; }
.pl-add { margin-top: 6px; display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: #f8efdc; color: #b5853a; font-weight: 700; }
.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pl-stats div { text-align: center; padding: 10px 0; border-radius: 12px; background: #f6f4fb; }
.pl-stats b { display: block; font-size: 20px; color: #2c2848; } .pl-stats small { font-size: 11px; color: #8a85a3; }
.pl-hl { padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, #efecfa, #f6f4fb); font-size: 13.5px; font-weight: 800; color: #3d3470; margin-bottom: 10px; }
.pl-hl small { display: block; font-size: 11px; font-weight: 600; color: #8a85a3; margin-bottom: 2px; }
.pl-qa { border: 1px solid #ece9f5; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.7; }
.pl-qa i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; margin-right: 6px; }
.pl-qa .q { color: #2c2848; font-weight: 700; } .pl-qa .q i { background: #fdecef; color: #d0546e; }
.pl-qa .a { color: #5a5575; margin-top: 4px; } .pl-qa .a i { background: #e8f6ef; color: #2f9468; }
.pl-follow { list-style: none; font-size: 13px; line-height: 1.75; color: #4a4566; }
.pl-follow li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.pl-follow li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 4px; border: 2px solid #c9c2e6; }
.pl-foot { text-align: center; font-size: 11px; color: #a39fba; margin-top: 18px; }
.p-head .info { min-width: 0; padding-right: 34px; }
.p-head .rb { width: 42px; top: 8px; }
.p-head .big { font-size: 22px; }
.p-head .big small { display: block; margin: 2px 0 0; }
.pl-by { gap: 8px; }

/* ---------- 今日战绩 ---------- */
.battle-stage { position: relative; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; margin: 4px 0 10px; }
.battle-stage .spine-slot, .battle-stage > img.char { height: 170px; width: 200px; position: relative; z-index: 2; margin-bottom: -18px; }
.battle-stage .spine-slot canvas { width: 100%; height: 100%; display: block; }
.stage-base { width: 190px; height: 40px; border-radius: 50%; position: relative; z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, #fff 0%, rgba(255,255,255,.85) 35%, rgba(220,210,250,.5) 60%, transparent 72%);
  box-shadow: 0 0 40px rgba(226,169,78,.35); }
.stage-name { margin-top: 2px; font-weight: 800; font-size: 13px; color: var(--head); }
.orbs { position: absolute; left: 50%; top: 4px; width: 0; height: 70px; z-index: 3; }
.orb { position: absolute; top: 0; left: calc((var(--i) - (var(--n) - 1) / 2) * 58px - 25px);
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #6a4a12; font-size: 12px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #fff4d6 25%, #f4cf86 60%, rgba(226,169,78,.6) 100%);
  box-shadow: 0 0 18px rgba(240,190,90,.85), 0 0 40px rgba(240,190,90,.4), inset 0 -4px 8px rgba(180,120,30,.25);
  animation: orbfloat 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,220,150,.6); animation: orbring 3s ease-out infinite; animation-delay: calc(var(--i) * -.7s); }
.orb.pop { animation: orbpop .9s cubic-bezier(.2,1.6,.4,1) both, orbfloat 3s ease-in-out .9s infinite; }
@keyframes orbfloat { 50% { transform: translateY(-8px); } }
@keyframes orbring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes orbpop { 0% { transform: translateY(140px) scale(.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.battle-sum { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; text-align: center; }
.battle-sum div + div { border-left: 1px solid rgba(143,114,242,.15); }
.battle-sum small { display: block; font-size: 11px; color: var(--sub); }
.battle-sum b { font-size: 20px; }
.battle-hint { text-align: center; font-size: 11.5px; color: var(--head); opacity: .8; margin: 8px 0; }
.btn-submit { width: 100%; padding: 14px 0; border-radius: 16px; font-size: 16px; font-weight: 900; color: #fff; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); box-shadow: 0 10px 24px rgba(143,114,242,.35); }
.btn-submit[disabled] { background: #c9c4da; box-shadow: none; }
.mine-order { padding: 12px 14px; }
.mine-order .top { display: flex; align-items: center; gap: 6px; }
.mine-order .top b { font-size: 13.5px; }
.mine-order .amt { margin-left: auto; font-size: 16px; color: var(--primary); }
.mine-order .time { font-size: 11px; color: var(--sub); margin-top: 3px; }
.mine-order p { font-size: 12.5px; line-height: 1.65; color: #4a4566; margin-top: 6px; }
.mine-order .ops { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.mine-order .ops button { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(143,114,242,.1); color: var(--primary); }
.mine-order .ops .go { margin-left: auto; background: none; }
.mine-order .ops .lock { font-size: 11.5px; color: var(--sub); }

/* ---------- 提交表单 ---------- */
.f-title { font-size: 18px; font-weight: 900; margin: 6px 0 4px; }
.f-title small { display: block; font-size: 11.5px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.f { display: block; margin: 10px 0; }
.f > span { display: block; font-size: 12px; font-weight: 700; color: #5b5577; margin-bottom: 5px; }
.f input, .f textarea { width: 100%; border: 1.5px solid #e6e2f2; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); background: #fff; resize: vertical; outline: none; }
.f input:focus, .f textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(143,114,242,.12); }
.f.err input, .f.err textarea { border-color: #e2667f; background: #fff7f8; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips label { cursor: pointer; }
.f-chips input { display: none; }
.f-chips i { display: block; font-style: normal; font-size: 13px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid #e6e2f2; background: #fff; color: #5b5577; }
.f-chips input:checked + i { border-color: var(--primary); background: rgba(143,114,242,.1); color: var(--primary); font-weight: 800; }
.f-btns { position: sticky; bottom: -28px; margin: 16px calc(-1 * var(--pad)) -28px; padding: 12px var(--pad) 20px; background: linear-gradient(180deg, rgba(242,239,251,0), #f2effb 30%); }
.modal h2 + p { margin-top: 10px; }

/* ---------- 我的 ---------- */
.me-hero { display: flex; align-items: flex-end; padding: 10px 14px 14px 4px; gap: 4px; }
.me-stage { width: 46%; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: none; }
.me-stage .spine-slot, .me-stage > img.char { width: 100%; height: 160px; margin-bottom: -16px; position: relative; z-index: 2; }
.me-stage .spine-slot canvas { width: 100%; height: 100%; display: block; }
.me-stage .stage-base { width: 140px; height: 30px; }
.me-info { flex: 1; min-width: 0; padding-bottom: 4px; }
.me-ava { position: relative; padding: 8px; margin: 0 0 4px -8px; }
.me-ava i { position: absolute; right: 2px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; padding: 2px 5px; border-radius: 8px; background: var(--primary); }
.me-info .nick { font-size: 19px; font-weight: 900; }
.me-info .chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.me-line { font-size: 11.5px; color: var(--sub); line-height: 1.6; }
.me-line.sub { font-size: 10.5px; opacity: .8; }
.me-rank { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-top: 10px; }
.me-rank > img { width: 64px; flex: none; }
.mr-main { flex: 1; min-width: 0; }
.mr-name { font-size: 18px; font-weight: 900; display: flex; align-items: baseline; gap: 8px; }
.mr-name small { font-size: 11px; font-weight: 600; color: var(--sub); }
.mr-line { font-size: 11px; color: var(--sub); margin-top: 3px; }
.me-rank .promote { margin-top: 6px; }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.me-stats > div { padding: 10px 12px; }
.me-stats small { display: block; font-size: 11px; color: var(--sub); }
.me-stats b { font-size: 20px; }
.me-stats b i { font-style: normal; font-size: 11px; color: var(--sub); margin-left: 2px; }
.me-sec { padding: 14px; margin-top: 10px; }
.me-sec h4 { font-size: 14px; font-weight: 900; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.me-sec h4 small { font-size: 11px; font-weight: 500; color: var(--sub); }
.cal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.cd { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.cd b { font-weight: 700; }
.l0 { background: #eeecf4; color: #b2adc4; }
.l1 { background: #e3dcfb; color: #6c5cc0; }
.l2 { background: #a993f5; color: #fff; }
.l3 { background: linear-gradient(135deg, #f0c477, #d99347); color: #fff; }
.cal-key { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--sub); }
.cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }
.ledger div { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed #ebe7f6; }
.ledger div:last-child { border-bottom: 0; }
.ledger span:nth-child(2) { color: var(--sub); }
.ledger b { color: #c48a32; font-size: 15px; }
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md { text-align: center; padding: 10px 4px; border-radius: 14px; background: #f6f4fb; }
.md i { width: 42px; height: 42px; margin: 0 auto 5px; border-radius: 50%; display: grid; place-items: center; background: #e4e1ee; }
.md svg { width: 22px; height: 22px; fill: none; stroke: #aaa4c0; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.md.on i { background: radial-gradient(circle at 35% 30%, #fff6dc, #f0c477 55%, #c88b38); box-shadow: 0 4px 12px rgba(200,140,60,.35); }
.md.on svg { stroke: #fff; fill: rgba(255,255,255,.25); }
.md b { display: block; font-size: 12px; }
.md small { font-size: 10px; color: var(--sub); }
.md:not(.on) b { color: #a8a3bd; }
.seasons { display: flex; gap: 10px; }
.seasons div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 14px; background: #f6f4fb; }
.seasons .cur { background: linear-gradient(180deg, #fbf6ea, #f3eefc); box-shadow: inset 0 0 0 1.5px rgba(226,169,78,.5); }
.seasons img { width: 46px; margin: 0 auto 4px; }
.seasons b { display: block; font-size: 13px; }
.seasons small { font-size: 10.5px; color: var(--sub); }
.me-menu { margin-top: 10px; padding: 4px 14px; }
.me-menu button { width: 100%; display: flex; justify-content: space-between; padding: 14px 0; font-size: 14px; font-weight: 700; border-bottom: 1px solid #efecf6; }
.me-menu button:last-child { border-bottom: 0; }
.me-menu em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--sub); }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.av-opt img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.av-opt span { font-size: 11px; color: var(--sub); }
.av-opt.on { border-color: var(--primary); }
.av-opt.up b { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--primary); background: rgba(143,114,242,.1); }

/* ---------- 改网名 / 换组 ---------- */
.f-note { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 6px 0; }
.f-note.warn { color: #c0566e; }
.nick-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.nick-hist span { font-size: 12.5px; padding: 5px 10px; border-radius: 10px; background: #f1eef9; color: #5b5577; }
.nick-hist small { font-size: 10px; color: var(--sub); margin-left: 4px; }
.cur-group { font-size: 15px; font-weight: 800; padding: 10px 12px; border-radius: 12px; background: #f1eef9; }
.req-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; margin: 10px 0; box-shadow: 0 4px 14px rgba(110,80,190,.08); }
.req-card div { flex: 1; text-align: center; }
.req-card small { display: block; font-size: 11px; color: var(--sub); }
.req-card b { font-size: 14px; }
.req-card i { font-style: normal; color: var(--primary); font-weight: 900; }
.me-menu em .pending { font-weight: 700; color: #c48a32; }
.f input:disabled, .f textarea:disabled { background: #f4f2f8; color: var(--sub); }

/* 点小人冒出来的话 */
.spine-slot { position: relative; }
.tap-bubble { position: absolute; left: 50%; top: 2%; transform: translateX(-50%); white-space: nowrap; z-index: 5; pointer-events: none;
  padding: 6px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 800; color: var(--text); background: #fff;
  box-shadow: 0 6px 16px rgba(80,60,150,.2); animation: bub 2s ease forwards; }
.tap-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes bub { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- 我的小人 ---------- */
.mdl-stage { position: relative; height: 230px; margin: 10px 0 12px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 45% at 50% 88%, rgba(160,140,255,.45), transparent 70%), linear-gradient(180deg, #1c1745, #2a2160); }
.mdl-stage canvas { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 180px; }
.mdl-stage::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 22px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(200,190,255,.6), transparent 70%); }
.mdl-cap { position: absolute; left: 14px; top: 12px; color: #fff; }
.mdl-cap b { display: block; font-size: 16px; }
.mdl-cap span { font-size: 11px; color: #cfc6ff; }
.mdl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mdl { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: #fff; border: 2px solid transparent; box-shadow: 0 4px 12px rgba(110,80,190,.08); }
.mdl.on { border-color: var(--primary); }
.mdl.cur::before { content: "使用中"; position: absolute; top: 4px; right: 4px; z-index: 1; font-size: 9px; font-weight: 800; color: #fff; background: #d99347; padding: 1px 5px; border-radius: 6px; }
.mdl-img { width: 100%; height: 88px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, #f3f0fc, #e9e4fb); }
.mdl-img img { max-height: 84px; max-width: 100%; }
.mdl b { font-size: 12.5px; margin-top: 4px; }
.mdl small { font-size: 10px; color: var(--sub); }

.ledger b.neg { color: #c0566e; }
.mine-order.void { opacity: .6; }
.mine-order.void .amt { text-decoration: line-through; }
.void-tag { font-size: 11.5px; font-weight: 700; color: #c0566e; margin-bottom: 6px; }

/* ---------- 店长确认 / 审核 / 付款截图 ---------- */
.note { margin: 8px 0; padding: 9px 12px; font-size: 12px; line-height: 1.6; color: #5b4d78; }
.note.warn { color: #b8475f; }
.confirm-note { text-align: center; font-size: 12px; font-weight: 700; color: #8a6a1f; margin: 8px 0 0; padding: 7px 10px; border-radius: 12px; background: rgba(255,244,214,.85); }
.confirm-note.ok { color: #1f8a5c; background: rgba(222,248,236,.88); }
.confirm-note.warn { color: #b8475f; background: rgba(255,234,238,.9); }
.proof-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #fbeef1; color: #c0566e; }
.proof-tag.ok { background: #e3f6ec; color: #1f8a5c; }
.proof-box { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed #d8d1ec; background: #fff; cursor: pointer; }
.proof-box img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.proof-box em { font-style: normal; font-size: 13px; color: var(--primary); font-weight: 700; }
.f.proof.err .proof-box { border-color: #e2667f; background: #fff7f8; }
.f-more { margin: 14px 0 4px; padding: 10px 12px 4px; border-radius: 14px; background: rgba(143,114,242,.06); }
.f-more summary { cursor: pointer; font-size: 14px; font-weight: 900; color: var(--primary); list-style: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary::after { content: " ▾"; }
.f-more[open] summary::after { content: " ▴"; }
.f-more summary small { display: block; font-size: 11px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.seg button.off { opacity: .45; }

/* ---------- 发朋友圈 ---------- */
.share-poster { position: relative; margin: 10px auto 6px; width: 68%; aspect-ratio: 750 / 1334; border-radius: 14px; overflow: hidden; background: #1a1240; box-shadow: 0 10px 30px rgba(40,20,90,.35); }
.share-poster img { width: 100%; height: 100%; display: block; }
.share-poster span { position: absolute; inset: 0; display: grid; place-items: center; color: #cfc4ff; font-size: 13px; }
.share-video { display: block; width: 68%; margin: 8px auto; border-radius: 12px; background: #000; }
.btns a { flex: 1; text-align: center; padding: 11px 0; border-radius: 99px; font-weight: 800; font-size: 14px; text-decoration: none; }
.btns button:disabled { opacity: .55; }

/* ---------- 注册 ---------- */
.reg-mode #mybar, .reg-mode #tabbar { display: none; }
.reg { padding: 14px var(--pad) 40px; }
.reg-hero { color: var(--head); text-shadow: var(--head-shadow); padding: 10px 2px 14px; }
.reg-hero .app-title { font-size: 26px; flex-direction: column; align-items: flex-start; gap: 2px; }
.reg-hero p { font-size: 12.5px; line-height: 1.7; margin-top: 8px; opacity: .95; }
.reg-form { padding: 6px 14px 16px; }
.reg-form h3 { font-size: 15px; font-weight: 900; margin: 16px 0 8px; }
.reg-form h3 small { font-size: 11px; font-weight: 500; color: var(--sub); margin-left: 6px; }
.reg-form input[type=radio] { display: none; }
.reg-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 236px; overflow-y: auto; }
.reg-pick span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; border: 1.5px solid transparent; background: rgba(255,255,255,.7); cursor: pointer; }
.reg-pick img { width: 100%; height: 62px; object-fit: contain; }
.reg-pick b { font-size: 10.5px; color: #5b5577; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.reg-ava { display: flex; flex-wrap: wrap; gap: 8px; }
.reg-ava span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.reg-ava img { width: 100%; height: 100%; object-fit: cover; }
.reg-ava .av-char { font-size: 11px; color: var(--primary); }
.reg-ava .up b { font-size: 22px; color: var(--sub); }
.reg-form input:checked + span { border-color: var(--primary); background: rgba(143,114,242,.1); box-shadow: 0 0 0 3px rgba(143,114,242,.12); }
.reg-rank { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.75); font-size: 13px; }
.reg-rank img { width: 44px; height: 44px; object-fit: contain; }
.reg-rank small { display: block; font-size: 11px; color: var(--sub); }
.reg-rank .muted { color: var(--sub); font-size: 12px; }
.reg-go { width: 100%; padding: 13px 0; border-radius: 99px; font-weight: 900; font-size: 16px; margin-top: 10px; }
.reg-demo { display: block; margin: 16px auto 0; font-size: 13px; font-weight: 700; color: var(--head); text-shadow: var(--head-shadow); }

/* 服务器录冠军视频时不要按钮 */
.rec .u-btns, .rec .u-skip, .rec #editor-fab { visibility: hidden; }

/* ---------- 手机框左边：演示时间 ---------- */
#timebar { width: 150px; flex: none; display: flex; flex-direction: column; gap: 8px; align-self: center; }
#timebar .tb-clock { font-size: 40px; color: #fff; line-height: 1; text-shadow: 0 2px 12px rgba(120,90,220,.6); }
#timebar .tb-sub { font-size: 12px; color: rgba(255,255,255,.65); margin: -2px 0 6px; }
#timebar button { text-align: left; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; cursor: pointer; }
#timebar button b { display: block; font-size: 14px; }
#timebar button small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
#timebar button.on { background: linear-gradient(135deg, #f0c477, #b98cff); border-color: transparent; }
@media (max-width: 900px) { #timebar { display: none; } }

/* 交单表单：我用过的套餐 */
.pkg-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; }
.pkg-chips:empty { display: none; }
.pkg-chips small { font-size: 11px; color: var(--sub); margin-right: 2px; }
.pkg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 5px 6px 5px 11px; border-radius: 99px; background: #fff; border: 1.5px solid #e6e2f2; color: #5b5577; cursor: pointer; }
.pkg-chip.dim { opacity: .55; }
.pkg-chip.on { border-color: var(--primary); background: rgba(143,114,242,.1); color: var(--primary); font-weight: 800; opacity: 1; }
.pkg-chip i { font-style: normal; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; font-size: 12px; color: var(--sub); }
.pkg-chip i:hover { background: #f1ebfb; color: #c0566e; }

/* ---------- 登录 / 注册 ---------- */
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin: 0 0 10px; border-radius: 99px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); }
.auth-tabs button { flex: 1; padding: 9px 0; border-radius: 99px; font-size: 15px; font-weight: 800; color: var(--head); }
.auth-tabs button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(143,114,242,.3); }
.login-form { padding-top: 12px; }
.f select { width: 100%; border: 1.5px solid #e6e2f2; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); background: #fff; outline: none; }
.f select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(143,114,242,.12); }
/* 编辑面板和演示时间只给总账号 */
.not-admin #editor, .not-admin #editor-fab, .not-admin #timebar { display: none !important; }
