/* 星盒 StarBox 手机端样式 —— 科技风格（HUD）
   方向：夜航仪表盘。深海军蓝做底，面板是半透明玻璃加细描边，主要面板四角带 HUD 角标；
   青色是“可操作 / 当前所在”的信号光，琥珀金只给“值钱的东西”（价格、钱包、传说款），
   珊瑚红只给折扣、角标和危险操作。价格、概率、哈希这类读数一律用等宽数字。
   色板：夜航 #050a18 / 甲板 #0c1730 / 信号青 #3de6ff / 电蓝 #4a7dff / 琥珀 #f6c24d / 珊瑚 #ff5a77
   字阶：11 / 12 / 13 / 15 / 17 / 22 / 30；圆角：10 控件、14 面板、18 抽屉，不再用胶囊 */
:root {
  color-scheme: dark;
  --night: #050a18; --night2: #0b1630; --paper: #070d1f; --card: #0c1730; --text: #e6f0ff; --sub: #8aa1c6; --line: rgba(110,175,255,.16);
  --ribbon: #ff5a77; --ribbon-d: #ff5a77; --foil-a: #ffeaa6; --foil-b: #f6c24d; --foil-c: #c98a12;
  --legend: #f5b83d; --epic: #8b6cff; --rare: #4a8dff; --common: #5f7599; --ok: #2ee6a6;
  --ink: #e6f0ff; --ink2: #5ce8ff; --mist: #0c1730; --gold: #f6c24d; --ribbon2: #ff5a77;
  --cyan: #3de6ff; --azure: #4a7dff; --edge: rgba(70,190,255,.22); --edge-hi: rgba(80,225,255,.6);
  --glass: linear-gradient(180deg, rgba(24,44,86,.74), rgba(10,20,44,.86));
  --glass-solid: linear-gradient(180deg, #112146, #0a142b);
  --prime: linear-gradient(180deg, #6df0ff, #1fb6e6);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --hud-c: rgba(61,230,255,.7);
  --hud: linear-gradient(var(--hud-c), var(--hud-c)) left 5px top 5px / 12px 1.5px no-repeat, linear-gradient(var(--hud-c), var(--hud-c)) left 5px top 5px / 1.5px 12px no-repeat,
    linear-gradient(var(--hud-c), var(--hud-c)) right 5px top 5px / 12px 1.5px no-repeat, linear-gradient(var(--hud-c), var(--hud-c)) right 5px top 5px / 1.5px 12px no-repeat,
    linear-gradient(var(--hud-c), var(--hud-c)) left 5px bottom 5px / 12px 1.5px no-repeat, linear-gradient(var(--hud-c), var(--hud-c)) left 5px bottom 5px / 1.5px 12px no-repeat,
    linear-gradient(var(--hud-c), var(--hud-c)) right 5px bottom 5px / 12px 1.5px no-repeat, linear-gradient(var(--hud-c), var(--hud-c)) right 5px bottom 5px / 1.5px 12px no-repeat;
  --sh-1: 0 10px 28px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
  --foil: linear-gradient(135deg, #ffeaa6 0%, #f6c24d 48%, #d79a1c 100%);
  --tab-h: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #0e0c2c; }
body { font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper); position: relative; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.center { text-align: center; }
.right { text-align: right; }
.ic { width: 1.3em; height: 1.3em; flex: none; vertical-align: -.25em; }
:focus-visible { outline: 2px solid var(--ink2); outline-offset: 2px; border-radius: 8px; }

/* ---------- 夜空页头 ---------- */
.sky {
  background:
    radial-gradient(1.6px 1.6px at 12% 24%, rgba(255,255,255,.85) 50%, transparent 53%),
    radial-gradient(1px 1px at 27% 62%, rgba(255,255,255,.6) 50%, transparent 53%),
    radial-gradient(2px 2px at 44% 16%, rgba(255,234,166,.9) 50%, transparent 53%),
    radial-gradient(1px 1px at 61% 52%, rgba(255,255,255,.65) 50%, transparent 53%),
    radial-gradient(1.6px 1.6px at 76% 28%, rgba(255,255,255,.8) 50%, transparent 53%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,.55) 50%, transparent 53%),
    radial-gradient(1px 1px at 7% 82%, rgba(255,255,255,.5) 50%, transparent 53%),
    radial-gradient(1.4px 1.4px at 54% 86%, rgba(255,234,166,.7) 50%, transparent 53%),
    radial-gradient(90% 120% at 100% -20%, #3a33a6 0%, transparent 62%),
    var(--night);
}
.hdr { color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 30px; border-radius: 0 0 28px 28px; }
.hdr.slim { padding-bottom: 22px; }
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandrow { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--foil); color: var(--night); display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 12px rgba(246,194,77,.35); }
.logo-mark .ic { fill: currentColor; stroke-width: 1.2; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { font-size: 11px; opacity: .6; letter-spacing: .08em; }
.wallet { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 12px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 14px; }
.wallet b { color: var(--foil-a); font-weight: 800; }
.wallet .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--foil); color: var(--night); display: grid; place-items: center; font-size: 13px; }
.assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.78); }
.assure li { display: flex; align-items: center; gap: 5px; }
.assure .ic { color: var(--foil-b); width: 15px; height: 15px; }
.coinbar { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.coinbar > .ic { width: 30px; height: 30px; color: var(--foil-b); }
.coinbar small { display: block; font-size: 12px; opacity: .7; }
.coinbar b { font-size: 24px; line-height: 1.1; }
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- 子页面顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 52px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px 6px; background: var(--night); color: #fff; }
.topbar h1 { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; }
.topbar .back:active { background: rgba(255,255,255,.1); }
.topbar .brand { font-size: 20px; padding-left: 8px; }

/* ---------- 按钮 / 标签 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 99px; font-weight: 800; white-space: nowrap; color: #fff; background: linear-gradient(180deg, #ff6784, var(--ribbon-d)); box-shadow: 0 6px 14px rgba(255,79,112,.3); transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.btn.gold { background: var(--foil); color: #4a3000; box-shadow: 0 4px 12px rgba(246,194,77,.35); }
.btn.ghost { background: #fff; color: var(--night); box-shadow: inset 0 0 0 1.5px var(--night); }
.btn.light { background: #fff; color: var(--ribbon-d); box-shadow: 0 6px 16px rgba(20,18,58,.18); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; box-shadow: none; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 99px; background: #fff; color: var(--sub); font-size: 13px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: var(--night); color: #fff; box-shadow: none; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 4px; margin: 12px 16px 0; padding: 4px; border-radius: 14px; background: #e6e3f6; }
.tabs button { flex: 1; height: 36px; border-radius: 11px; font-weight: 700; color: var(--sub); text-align: center; }
.tabs button.on { background: #fff; color: var(--night); box-shadow: 0 2px 8px rgba(20,18,58,.12); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; line-height: 1.6; padding: 0 7px; border-radius: 6px; color: #fff; vertical-align: 1px; }
.tag.legend { background: linear-gradient(90deg, #f5b83d, #ff4f70); }
.tag.epic { background: var(--epic); }
.tag.rare { background: var(--rare); }
.tag.common { background: var(--common); }

/* ---------- 版块 ---------- */
.sec { display: flex; align-items: baseline; gap: 8px; margin: 22px 16px 4px; }
.sec h2 { font-size: 17px; font-weight: 800; }
.sec small { font-size: 12px; color: var(--sub); }
.h2 { display: flex; align-items: baseline; gap: 8px; margin: 22px 16px 4px; font-size: 17px; font-weight: 800; }
.h2 small { font-size: 12px; color: var(--sub); font-weight: 400; }
.card { background: var(--card); border-radius: 18px; padding: 14px; margin: 12px 16px 0; box-shadow: var(--sh-1); }
.card.flat { box-shadow: none; background: #fff; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border: 0; }
.kv span:last-child { text-align: right; word-break: break-all; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.empty { text-align: center; color: var(--sub); padding: 64px 24px; }
.ebadge { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 24px; background: #fff; color: var(--epic); display: grid; place-items: center; font-size: 34px; box-shadow: var(--sh-1); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--sub); }
.field input, .field select { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; background: #fff; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink2); box-shadow: 0 0 0 3px rgba(59,53,163,.12); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); margin: 4px 0 14px; }
.agree input { margin-top: 3px; accent-color: var(--ribbon); }

/* ---------- 立体礼盒（SVG） ---------- */
.art3d { --f1: #ff9ec0; --f2: #f2608f; --f3: #cf3d70; --r1: #fff0b8; --r2: #ffd36b; --r3: #e0a233; display: inline-block; position: relative; line-height: 0; }
.art3d svg { width: 100%; height: auto; overflow: visible; display: block; }
[data-theme="pink"] { --f1: #ff9ec0; --f2: #f2608f; --f3: #cf3d70; --tint: #ffe7ef; }
[data-theme="red"] { --f1: #ff8a8f; --f2: #ee4d59; --f3: #b92b3b; --tint: #ffe6e4; }
[data-theme="blue"] { --f1: #86b6ff; --f2: #4d85f2; --f3: #2d58bb; --tint: #e3eeff; }
[data-theme="purple"] { --f1: #bda2ff; --f2: #8c64ef; --f3: #5e39c6; --tint: #ece6ff; }
[data-theme="gold"] { --f1: #ffdc80; --f2: #f4b543; --f3: #c98a12; --tint: #fff3d0; --r1: #fff; --r2: #f1eeff; --r3: #c9c2ee; }
[data-theme="green"] { --f1: #66e3c0; --f2: #28bb93; --f3: #0f856b; --tint: #daf7ee; }
[data-theme="orange"] { --f1: #ffbf88; --f2: #ff8c40; --f3: #d4570f; --tint: #ffe9d8; }
.art3d .inside, .art3d .beam { opacity: 0; transition: opacity .35s; }
.art3d .lid { transform-box: fill-box; transform-origin: 50% 80%; transition: transform .7s cubic-bezier(.3,1.35,.5,1), opacity .5s .15s; }
.art3d.open .lid { transform: translate(10px, -46px) rotate(9deg); opacity: 0; }
.art3d.open .inside, .art3d.open .beam { opacity: 1; }
.art3d .sp { transform-box: fill-box; transform-origin: center; }
.art3d .sp { animation: twinkle 2.6s ease-in-out infinite; }
.art3d .f1 { fill: var(--f1); } .art3d .f2 { fill: var(--f2); } .art3d .f3 { fill: var(--f3); }
.art3d .r1 { fill: var(--r1); } .art3d .r2 { fill: var(--r2); } .art3d .r3 { fill: var(--r3); }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }
.art3d.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.art3d.shake { animation: shake .9s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: rotate(-6deg) translateY(-4px); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-8deg) translateY(-6px); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }

/* ---------- 首页 ---------- */
.ticker { display: flex; align-items: center; gap: 8px; margin: 14px 16px 0; padding: 7px 12px; border-radius: 99px; background: #fff; font-size: 12px; overflow: hidden; white-space: nowrap; box-shadow: var(--sh-1); }
.ticker > .ic { color: var(--foil-c); flex: none; }
.ticker .track { overflow: hidden; flex: 1; }
.ticker .track span { display: inline-block; padding-left: 100%; animation: slide 16s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
.notice { display: flex; gap: 8px; align-items: flex-start; margin: 12px 16px 0; padding: 9px 12px; border-radius: 12px; background: #fff6dc; color: #6b4a00; font-size: 12px; line-height: 1.55; }
.notice .ic { color: #c98a12; margin-top: 1px; }
.tiles { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin: 14px 16px 0; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--sh-1); min-width: 0; }
.tile .ti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 4px; color: #fff; font-size: 18px; }
.tile .ti.g { background: var(--foil); color: #4a3000; }
.tile .ti.r { background: linear-gradient(160deg, #ff7d95, var(--ribbon-d)); }
.tile .ti.v { background: linear-gradient(160deg, #a58bff, #6a45da); }
.tile b { font-size: 14px; }
.tile small { font-size: 11.5px; color: var(--sub); line-height: 1.35; }
.tile .bar { margin-top: 5px; }
.bar { height: 6px; border-radius: 6px; background: #ebe8f8; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--foil); }

.newhero { position: relative; display: flex; align-items: center; margin: 14px 16px 0; padding: 18px 16px 18px 18px; min-height: 168px; border-radius: 24px; color: #fff; overflow: hidden;
  background: radial-gradient(60% 90% at 88% 40%, rgba(255,255,255,.28), transparent 70%), linear-gradient(135deg, #ff5a7a, #e0345c); box-shadow: 0 14px 28px rgba(224,52,92,.28); }
.newhero .nh-text { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 64%; }
.newhero .nh-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 9px; border-radius: 99px; background: rgba(20,18,58,.28); }
.newhero h2 { font-size: 15px; font-weight: 700; margin: 8px 0 0; opacity: .95; }
.newhero .nh-price { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 2px 0 2px; }
.newhero .nh-price small { font-size: 20px; margin-right: 1px; }
.newhero p { font-size: 12px; opacity: .88; margin-bottom: 12px; }
.newhero .nh-art { position: absolute; right: -6px; bottom: 6px; z-index: 0; }
.strip { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 10px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--night); color: #fff; }
.strip .ic { color: var(--foil-b); width: 24px; height: 24px; }
.strip b { font-size: 14px; }
.strip small { display: block; font-size: 12px; opacity: .7; }
.strip .go { margin-left: auto; font-weight: 800; color: var(--foil-a); display: inline-flex; align-items: center; }
.claimbar { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh-1); }
.claimbar .ci { width: 38px; height: 38px; border-radius: 12px; background: #ffe7ee; color: var(--ribbon-d); display: grid; place-items: center; font-size: 20px; }

.bcard { position: relative; display: flex; gap: 14px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 12px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1); text-align: left; transition: transform .12s; }
.bcard:active { transform: scale(.985); }
.bcard .bart { position: relative; width: 108px; flex: none; border-radius: 16px; background: var(--tint, #ece9fa); display: grid; place-items: center; padding: 12px 0 8px; }
.bcard .flag { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; color: #fff; background: var(--ribbon); padding: 0 8px; border-radius: 99px; line-height: 1.7; }
.bcard .binfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bcard .bname { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bcard .btag { font-size: 12px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.bprev { display: flex; align-items: center; gap: 4px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #f6f4fd; box-shadow: inset 0 0 0 2px var(--common); }
.av.legend { box-shadow: inset 0 0 0 2px var(--legend); background: #fff6df; }
.av.epic { box-shadow: inset 0 0 0 2px var(--epic); background: #f1ebff; }
.av.rare { box-shadow: inset 0 0 0 2px var(--rare); background: #e8f0ff; }
.bmeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--sub); }
.bmeta .chance { display: inline-flex; align-items: center; gap: 3px; color: #a4710a; font-weight: 700; }
.bmeta .chance .ic { width: 13px; height: 13px; fill: currentColor; }
.bbuy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.bp { font-size: 24px; font-weight: 800; color: var(--ribbon-d); line-height: 1.1; letter-spacing: -.02em; }
.bp small { font-size: 13px; margin-right: 1px; }
.go-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 10px 0 14px; border-radius: 99px; background: var(--night); color: #fff; font-size: 13px; font-weight: 800; }
.fab { position: fixed; z-index: 30; left: max(calc(50% - 240px + 12px), 12px); bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); height: 46px; padding: 0 16px 0 12px; display: flex; align-items: center; gap: 6px; border-radius: 99px; background: var(--night); color: var(--foil-a); font-size: 13px; font-weight: 800; box-shadow: 0 8px 22px rgba(20,18,58,.35); }
.fab .badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--ribbon); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- 盒子详情 ---------- */
.stage { position: relative; padding: calc(8px + env(safe-area-inset-top)) 16px 54px; color: #fff; text-align: center; border-radius: 0 0 32px 32px; }
.stage .nav { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; }
.stage .nav .back { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; }
.stage .art3d { margin-top: 2px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.stage .glow { position: absolute; left: 50%; top: 62px; width: 260px; height: 260px; margin-left: -130px; background: radial-gradient(circle, rgba(246,194,77,.42), transparent 66%); pointer-events: none; }
.stage .nm { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.stage .tl { position: relative; font-size: 12.5px; opacity: .78; max-width: 300px; margin: 4px auto 0; }
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: -30px 16px 0; padding: 14px 0; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); z-index: 2; }
.stats > div { text-align: center; padding: 0 6px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stats span { font-size: 11.5px; color: var(--sub); }
.prob { display: flex; height: 28px; border-radius: 10px; overflow: hidden; margin: 12px 0 10px; gap: 2px; }
.prob div { display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 800; min-width: 3px; overflow: hidden; white-space: nowrap; }
.prob .legend { background: linear-gradient(90deg, #f5b83d, #ff4f70); }
.prob .epic { background: var(--epic); } .prob .rare { background: var(--rare); } .prob .common { background: var(--common); }
.legendrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12.5px; }
.legendrow i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.igrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 16px 0; }
.icard { position: relative; background: #fff; border-radius: 18px; padding: 8px 8px 10px; box-shadow: var(--sh-1); overflow: hidden; }
.istage { position: relative; height: 96px; border-radius: 13px; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 55%, #fff, #f1eefb); }
.istage::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 46px; height: 8px; margin-left: -23px; border-radius: 50%; background: rgba(20,18,58,.12); filter: blur(2px); }
.iem { position: relative; z-index: 1; font-size: 52px; line-height: 1; }
.icard .rtag, .rcard .rtag { position: absolute; left: 14px; top: 14px; z-index: 2; }
.icard.legend .istage, .rcard.legend .istage { background: radial-gradient(70% 70% at 50% 55%, #fffaf0, #ffe9ae); }
.icard.epic .istage, .rcard.epic .istage { background: radial-gradient(70% 70% at 50% 55%, #fbf8ff, #e4d9ff); }
.icard.rare .istage, .rcard.rare .istage { background: radial-gradient(70% 70% at 50% 55%, #f8fbff, #d9e7ff); }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.inm { font-size: 13px; font-weight: 700; margin: 8px 4px 0; min-height: 36px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imeta { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 4px 0; font-size: 12px; color: var(--sub); }
.imeta .ip { color: var(--text); font-weight: 800; }
.buybar { position: fixed; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(100%, 480px); padding: 10px 16px; display: flex; gap: 10px; z-index: 25; background: linear-gradient(0deg, rgba(242,240,251,.97) 70%, rgba(242,240,251,0)); }
.buybar button { flex: 1; height: 54px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; font-size: 15px; font-weight: 800; }
.buybar small { font-size: 12px; font-weight: 600; opacity: .85; }
.buybar .b1 { background: #fff; color: var(--night); box-shadow: inset 0 0 0 1.5px var(--night); }
.buybar .b2 { background: linear-gradient(180deg, #ff6784, var(--ribbon-d)); color: #fff; box-shadow: 0 8px 18px rgba(255,79,112,.32); }
.buybar .b3 { background: var(--foil); color: #4a3000; box-shadow: 0 8px 18px rgba(246,194,77,.4); }
.buybar button:active { transform: scale(.97); }

/* ---------- 底部标签栏 ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; z-index: 40; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--sub); }
.tabbar a .pill { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 14px; font-size: 22px; transition: background .2s; }
.tabbar a.on { color: var(--night); font-weight: 800; }
.tabbar a.on .pill { background: rgba(255,79,112,.14); color: var(--ribbon-d); }
.tabbar a.on .pill .ic { fill: currentColor; fill-opacity: .16; }

/* ---------- 抽屉 / 弹窗 / 提示 ---------- */
.mask { position: fixed; inset: 0; background: rgba(14,12,44,.6); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(100%, 480px); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 26px 26px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet::before { content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: #cfcbe6; }
@keyframes up { from { transform: translateY(46px); opacity: .5; } }
.sheet h3 { font-size: 18px; font-weight: 800; margin: 2px 0 12px; display: flex; align-items: center; gap: 8px; }
.mask.center { align-items: center; }
.mask.center .sheet { border-radius: 24px; width: min(92%, 400px); }
.mask.center .sheet::before { display: none; }
.seg { display: flex; gap: 8px; }
.tpcustom { display: flex; gap: 8px; margin-top: 10px; }
/* 充值付款方式：一行几张卡片（ABA / ACLEDA / Wing / USDT），选中的描边 + 右下角对勾 */
.pmeths { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.pm-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.pm-card b { font-size: 14px; margin-top: 6px; }
.pm-card em { font-style: normal; font-size: 13px; font-weight: 800; color: #d63a2f; min-height: 1.2em; }
.pm-card.on { box-shadow: inset 0 0 0 2px #d63a2f; }
.pm-card.on b { color: #d63a2f; }
.pm-ck { display: none; position: absolute; right: 0; bottom: 0; width: 24px; height: 20px; background: #d63a2f; color: #fff; border-top-left-radius: 12px; align-items: center; justify-content: flex-end; padding: 0 3px 1px 0; }
.pm-ck svg { width: 12px; height: 12px; }
.pm-card.on .pm-ck { display: flex; }
.pm-logo { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pm-logo img { width: 100%; height: 100%; object-fit: cover; }
.pm-logo.mono { color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .5px; }
.pay-crypto { margin: 10px 0 6px; text-align: left; }
.pay-addr { word-break: break-all; margin: 6px 0; padding: 10px; border-radius: 10px; background: rgba(120,130,160,.12); font-size: 12px; user-select: all; }
.chbox { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tpin { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.tpin:focus-within { border-color: var(--ink2); box-shadow: 0 0 0 3px rgba(59,53,163,.12); }
.tpin b { font-weight: 800; color: var(--sub); }
.tpin input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; font-weight: 700; }
.tpcustom .btn { flex: none; height: 44px; padding: 0 18px; white-space: nowrap; }
.seg button { flex: 1; height: 42px; border-radius: 12px; background: #fff; font-weight: 800; text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button.on { background: var(--night); color: #fff; box-shadow: none; }
.sum { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); background: rgba(20,18,58,.94); color: #fff; padding: 11px 18px; border-radius: 14px; z-index: 99; max-width: 82%; text-align: center; font-size: 13.5px; animation: fade .2s; box-shadow: var(--sh-1); }

/* ---------- 开箱 ---------- */
.reveal { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; overflow-y: auto; color: #fff; background: radial-gradient(80% 60% at 50% 34%, #2f2a8c, #14123a 72%); }
.reveal.rv-epic { background: radial-gradient(80% 60% at 50% 34%, #5a2fd0, #14123a 72%); }
.reveal.rv-legend { background: radial-gradient(80% 60% at 50% 34%, #b87b12, #1d1450 72%); }
.reveal .skip { position: fixed; right: 16px; top: calc(14px + env(safe-area-inset-top)); z-index: 5; font-size: 13px; opacity: .75; padding: 6px 10px; }
.rv-stage { position: relative; width: 100%; margin-top: 15vh; display: grid; place-items: center; min-height: 230px; }
.rv-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; opacity: 0; transition: opacity .5s;
  background: repeating-conic-gradient(from 0deg, rgba(255,234,166,.55) 0deg 6deg, transparent 6deg 24deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 62%); mask: radial-gradient(circle, #000 8%, transparent 62%); animation: spin 14s linear infinite; }
.reveal.rv-epic .rv-rays { background: repeating-conic-gradient(from 0deg, rgba(190,160,255,.55) 0deg 6deg, transparent 6deg 24deg); }
.reveal.rv-rare .rv-rays, .reveal.rv-common .rv-rays { background: repeating-conic-gradient(from 0deg, rgba(160,200,255,.4) 0deg 6deg, transparent 6deg 24deg); }
.reveal.opened .rv-rays { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.rv-hint { margin-top: 18px; font-size: 14px; opacity: .8; letter-spacing: .1em; }
.pt { position: absolute; left: 50%; top: 50%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: fly 1.3s cubic-bezier(.1,.8,.3,1) var(--d, 0s) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
.rv-sum { width: min(100%, 480px); text-align: center; padding: calc(54px + env(safe-area-inset-top)) 16px 4px; }
.rv-sum small { display: block; font-size: 12px; opacity: .7; }
.rv-sum b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: min(100%, 480px); padding: 12px 16px 0; }
.rgrid.one { grid-template-columns: 1fr; width: min(100%, 290px); padding-top: 22px; }
.rcard { position: relative; border-radius: 20px; padding: 8px 8px 10px; background: #fff; color: var(--text); animation: flipin .6s cubic-bezier(.2,1.2,.3,1) var(--d, 0s) backwards; overflow: hidden; }
@keyframes flipin { from { transform: perspective(700px) rotateY(88deg) scale(.7); opacity: 0; } }
.rgrid.one .istage { height: 150px; } .rgrid.one .iem { font-size: 84px; }
.rcard .free { position: absolute; right: 14px; top: 14px; z-index: 2; font-size: 10.5px; font-weight: 800; background: var(--ok); color: #fff; padding: 0 7px; border-radius: 6px; line-height: 1.6; }
.rbar { position: sticky; z-index: 6; bottom: 0; margin-top: auto; width: min(100%, 480px); padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 12px; background: linear-gradient(0deg, #14123a 62%, rgba(20,18,58,0)); }
.rbar .btn { flex: 1; }
.rbar .btn.ghost { background: #231f5c; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.rmeta { width: min(100%, 480px); font-size: 11.5px; opacity: .55; text-align: center; padding: 16px 20px 90px; word-break: break-all; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .art3d.shake, .art3d.float, .art3d.big .sp, .rcard, .rv-rays, .pt, .ticker .track span { animation: none; } .art3d .lid { transition: none; } }

/* ---------- 我的 ---------- */
.mehead { color: #fff; padding: calc(18px + env(safe-area-inset-top)) 16px 64px; border-radius: 0 0 28px 28px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--foil); color: var(--night); display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.22); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 20px; }
.codechip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 1px 10px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: 12px; }
.wcard { position: relative; margin: -44px 16px 0; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1); z-index: 2; }
.bal { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bal small { font-size: 16px; margin-right: 1px; }
.wmini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wmini > div { padding: 10px 12px; border-radius: 14px; background: var(--paper); display: flex; align-items: center; gap: 10px; }
.wmini .ic { width: 24px; height: 24px; color: var(--foil-c); }
.wmini b { display: block; font-size: 17px; line-height: 1.2; }
.wmini span { font-size: 11.5px; color: var(--sub); }
.inv { position: relative; overflow: hidden; margin: 12px 16px 0; padding: 16px; border-radius: 22px; color: #fff; }
.inv .code { font-size: 26px; font-weight: 800; letter-spacing: .14em; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; line-height: 1.25; }
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; padding-top: 12px; }
.agrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; text-align: center; }
.agrid i { font-style: normal; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--paper); color: var(--night); font-size: 24px; transition: transform .12s; }
.agrid button:active i { transform: scale(.92); }
.agrid i.hl { background: #ffe9ee; color: var(--ribbon-d); }
.agrid i.gd { background: #fff2cc; color: #9a6a06; }
.agrid i.vi { background: #ece6ff; color: #5a35c9; }
.agrid i.gr { background: #d9f6ec; color: #0c7f66; }

/* ---------- 列表 ---------- */
.irow { display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: 18px; margin: 10px 16px 0; position: relative; box-shadow: var(--sh-1); }
.irow .em { font-size: 34px; width: 48px; text-align: center; flex: none; }
.srow { display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; background: #fff; border-radius: 18px; margin: 10px 16px 0; box-shadow: var(--sh-1); }
.srow.sel { box-shadow: 0 0 0 2px var(--ribbon), var(--sh-1); }
.sart { position: relative; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; flex: none; background: #f1eefb; }
.sart.legend { background: linear-gradient(160deg, #fffaf0, #ffe29a); }
.sart.epic { background: linear-gradient(160deg, #fbf8ff, #dccfff); }
.sart.rare { background: linear-gradient(160deg, #f8fbff, #cfe0ff); }
.sart .iem { font-size: 34px; }
.srow .sname { font-weight: 800; font-size: 14.5px; }
.srow .smeta { font-size: 12px; color: var(--sub); margin-top: 1px; }
.ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d9d5ee; flex: none; display: grid; place-items: center; color: #fff; font-size: 14px; }
.srow.sel .ck { background: var(--ribbon); border-color: var(--ribbon); }
.actbar { position: fixed; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 448px); padding: 10px 10px 10px 18px; background: var(--night); color: #fff; border-radius: 99px; display: flex; gap: 8px; align-items: center; z-index: 25; box-shadow: 0 12px 28px rgba(20,18,58,.4); }
.actbar .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

.coupon { position: relative; display: flex; background: #fff; border-radius: 18px; margin: 12px 16px 0; box-shadow: var(--sh-1); }
.coupon .a { width: 104px; background: linear-gradient(160deg, #ff6784, var(--ribbon-d)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 4px; border-radius: 18px 0 0 18px; }
.coupon .a b { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.coupon .b { padding: 14px; flex: 1; min-width: 0; border-left: 2px dashed rgba(20,18,58,.1); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 104px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); }
.coupon::before { top: -8px; } .coupon::after { bottom: -8px; }
.coupon.used { opacity: .5; }
.coupon.used .a { background: var(--common); }

/* 商城 */
.mall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 0; }
.pcard { background: #fff; border-radius: 18px; padding: 8px 8px 12px; box-shadow: var(--sh-1); text-align: left; }
.pcard .pnm { font-size: 13px; font-weight: 700; margin: 8px 4px 0; min-height: 38px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pmeta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 6px; margin: 4px 4px 0; }
.pcard .coinp { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: #a4710a; font-size: 14px; }
.pcard .coinp .ic { width: 16px; height: 16px; }
.pcard .ref { font-size: 11.5px; color: var(--sub); }
.pcard.can { box-shadow: 0 0 0 1.5px var(--foil-b), var(--sh-1); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { background: var(--paper); border-radius: 12px; padding: 8px 0; text-align: center; font-size: 11px; }
.day.on { background: var(--foil); color: #4a3000; font-weight: 700; }
.tiers { position: relative; height: 66px; margin: 8px 6px 0; }
.tiers .track { position: absolute; left: 0; right: 0; top: 11px; height: 12px; border-radius: 8px; background: #ebe8f8; overflow: hidden; }
.tiers .track i { display: block; height: 100%; background: var(--foil); }
.tiers .stop { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 11px; }
.tiers .stop b { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; color: var(--sub); font-size: 17px; }
.tiers .stop.on b { box-shadow: inset 0 0 0 2px var(--foil-b); background: #fff3cf; color: #9a6a06; }
.tiers .stop span { display: block; margin-top: 3px; color: var(--sub); }
.dtier { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; margin-top: 8px; }
.dtier .em { width: 40px; height: 40px; border-radius: 13px; background: #fff2cc; color: #9a6a06; display: grid; place-items: center; font-size: 22px; flex: none; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; padding: calc(36px + env(safe-area-inset-top)) 0 0; color: #fff; display: flex; flex-direction: column; }
.login .hero { text-align: center; padding: 0 24px 26px; }
.login .logo { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.login .hero p { opacity: .72; font-size: 13px; margin-top: 4px; }
.login .panel { margin-top: auto; padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--text); border-radius: 28px 28px 0 0; }
.login .art3d { filter: drop-shadow(0 16px 22px rgba(0,0,0,.4)); }
.login a.sw { color: var(--ink2); font-weight: 800; }

/* ---------- 补充 ---------- */
#app.login-on { padding-bottom: 0; background: var(--night); }
.price { color: var(--ribbon-d); }
.rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--paper); font-weight: 800; font-size: 13px; margin-right: 10px; }
.rk.r1 { background: var(--foil); color: #4a3000; }
.rk.r2 { background: linear-gradient(135deg, #f4f4fa, #b9b8d0); }
.rk.r3 { background: linear-gradient(135deg, #ffd9b8, #d98e56); color: #4a2400; }
.sheet .gmini { margin-right: 2px; }
.pgin { animation: pgin .28s ease-out; }
/* 只淡入，不带 transform：带 transform 的祖先会让里面的 position: fixed 变成相对它定位，操作栏 / 购买栏会在动画期间跳到页面最底部 */
@keyframes pgin { from { opacity: 0; } }
.pgin.still { animation: none; }
@media (prefers-reduced-motion: reduce) { .pgin { animation: none; } }

/* 图标尺寸（按所在容器定） */
.tabbar a .pill .ic { width: 24px; height: 24px; }
.topbar .back .ic, .stage .nav .back .ic { width: 26px; height: 26px; }
.ebadge .ic { width: 34px; height: 34px; }
.icon-btn .ic { width: 20px; height: 20px; }
.tile .ti .ic { width: 20px; height: 20px; }
.claimbar .ci .ic { width: 22px; height: 22px; }
.dtier .em .ic { width: 22px; height: 22px; }
.agrid i .ic { width: 23px; height: 23px; }
.ck .ic { width: 14px; height: 14px; stroke-width: 3; }
.notice .ic { width: 16px; height: 16px; flex: none; }
.ticker > .ic { width: 16px; height: 16px; }
.wallet .ic { width: 16px; height: 16px; color: var(--foil-a); }
.wallet .plus .ic { width: 14px; height: 14px; color: var(--night); stroke-width: 2.6; }
.logo-mark .ic { width: 22px; height: 22px; }
.go-pill .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.btn .ic { width: 16px; height: 16px; }
.fab .ic { width: 18px; height: 18px; }
.stripe .ic, .strip .ic { width: 24px; height: 24px; }
.tiers .stop b .ic { width: 18px; height: 18px; }
.codechip .ic { width: 13px; height: 13px; }
.sheet h3 .ic { width: 22px; height: 22px; color: var(--ribbon-d); }
.tabbar a.on .pill .ic { stroke-width: 2.1; }
.ti-pin { width: 38px; height: 38px; border-radius: 12px; background: #ece6ff; color: #5a35c9; display: grid; place-items: center; flex: none; }
.card.row { gap: 12px; }
.sheet .coupon { margin-left: 0; margin-right: 0; }
.btn.light:disabled { background: #cfcbe6; color: #6a678f; }
.btn.ghost:disabled { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--sub); background: #fff; opacity: 1; }
.actbar .btn.ghost:disabled { background: transparent; color: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.kv span:first-child { white-space: nowrap; flex: none; }
.fab { left: auto; right: max(calc(50% - 240px + 14px), 14px); width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
.fab .ic { width: 22px; height: 22px; }
.fab .badge { position: absolute; right: -4px; top: -4px; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- 动态流光边框：盲盒卡片、传说 / 史诗商品卡 ---------- */
.bcard, .icard.legend, .icard.epic, .rcard.legend, .rcard.epic {
  --fa: #ff4f70; --fb: #ff9ec0; --fc: #a58bff; --fd: #3b82f6; --fe: #19b99a; --fdim: rgba(139,92,246,.22);
  position: relative; isolation: isolate; overflow: hidden; background: transparent;
}
.bcard { --r: 22px; --sz: 460px; border-radius: 22px; }
.icard { --r: 18px; --sz: 320px; }
.rcard { --r: 20px; --sz: 440px; }
.icard.legend, .rcard.legend { --fa: #fff3c4; --fb: #f6c24d; --fc: #ff8a3c; --fd: #ff4f70; --fe: #f6c24d; --fdim: rgba(246,194,77,.45); }
.icard.epic, .rcard.epic { --fa: #e4dbff; --fb: #8b5cf6; --fc: #ff9ec0; --fd: #3b82f6; --fe: #8b5cf6; --fdim: rgba(139,92,246,.4); }
.bcard::before, .icard.legend::before, .icard.epic::before, .rcard.legend::before, .rcard.epic::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  background: conic-gradient(from 0deg, var(--fa) 0%, var(--fb) 8%, var(--fc) 15%, var(--fd) 22%, var(--fe) 29%, var(--fa) 36%, var(--fdim) 44%, var(--fdim) 92%, var(--fa) 100%);
  animation: flowspin 4.2s linear infinite; will-change: transform;
}
.bcard::after, .icard.legend::after, .icard.epic::after, .rcard.legend::after, .rcard.epic::after {
  content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: calc(var(--r) - 2px); background: #fff;
}
.rcard.legend, .rcard.epic { box-shadow: 0 0 30px var(--fdim); }
@keyframes flowspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bcard::before, .icard.legend::before, .icard.epic::before, .rcard.legend::before, .rcard.epic::before { animation: none; } }

/* ---------- 盒子详情：主题色展台 ---------- */
.stage.themed { padding-bottom: 62px; background: radial-gradient(70% 38% at 50% 40%, rgba(255,255,255,.5), transparent 72%), radial-gradient(60% 30% at 50% 0%, rgba(255,255,255,.28), transparent 70%), linear-gradient(180deg, var(--f2), var(--f3)); text-shadow: 0 1px 8px rgba(0,0,0,.22); }
.stage.themed .nav { display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; margin: 0 -8px; }
.stage .nav .ttl { font-size: 17px; font-weight: 800; }
.stage .nav .navlink { font-size: 13.5px; text-align: right; padding-right: 8px; color: #fff; opacity: .92; }
.sc { position: relative; width: 236px; height: 236px; margin: 6px auto 0; }
.sc .art3d { position: absolute; inset: 0; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.sc-glow { position: absolute; left: 50%; top: 4%; width: 280px; height: 280px; margin-left: -140px; background: radial-gradient(circle, rgba(255,240,190,.8), transparent 64%); pointer-events: none; }
.sc-item { position: absolute; left: 50%; top: -2%; margin-left: -48px; width: 96px; text-align: center; z-index: 3; animation: bob 3.2s ease-in-out infinite; }
.sc-item .iem { font-size: 84px; line-height: 1.1; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.sc-item.swap .iem { animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes pop { from { transform: scale(.4) translateY(30px); opacity: 0; } }
.sc-rar { position: absolute; left: -26px; top: 22px; z-index: 4; font-size: 13px; padding: 1px 14px; transform: rotate(-12deg); border-radius: 8px; text-shadow: none; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.sc-name { position: relative; margin: 8px 4px 0; padding: 9px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(20,18,58,.62), rgba(20,18,58,.4)); font-size: 14px; font-weight: 700; line-height: 1.45; min-height: 48px; display: flex; align-items: center; justify-content: center; text-shadow: none; }
.sc-price { position: relative; display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px; padding: 3px 22px 4px; border-radius: 99px; background: #fff; color: var(--ribbon-d); font-size: 24px; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 8px 18px rgba(0,0,0,.2); text-shadow: none; font-variant-numeric: tabular-nums; }
.sc-price small { font-size: 11px; font-weight: 600; color: var(--sub); letter-spacing: 0; }
.sc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.sc-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.45); transition: width .25s, background .25s; cursor: pointer; }
.sc-dots i.on { width: 20px; background: #fff; }
.pick-title { text-align: center; margin: 24px 16px 0; }
.pick-title b { display: block; font-size: 17px; font-weight: 800; }
.pick-title small { font-size: 12.5px; color: var(--sub); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pt-tile { border-radius: 12px; overflow: hidden; text-align: center; box-shadow: inset 0 0 0 1.5px currentColor; }
.pt-tile span { display: block; font-size: 12.5px; font-weight: 800; padding: 6px 0 5px; }
.pt-tile b { display: block; font-size: 12.5px; padding: 5px 0 6px; color: #fff; }
.pt-tile.legend { color: #d98a0a; } .pt-tile.legend b { background: linear-gradient(90deg, #f5b83d, #ff6a5a); }
.pt-tile.epic { color: var(--epic); } .pt-tile.epic b { background: var(--epic); }
.pt-tile.rare { color: var(--rare); } .pt-tile.rare b { background: var(--rare); }
.pt-tile.common { color: #7d7ba3; } .pt-tile.common b { background: var(--common); }
.pt-tile.zero { opacity: .45; }
.linkbtn { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.linkbtn .ic { width: 15px; height: 15px; }

/* ---------- 后台 ---------- */
.adm-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 16px 0; }
.arow { background: #fff; border-radius: 18px; margin: 10px 16px 0; padding: 12px; box-shadow: var(--sh-1); }
.arow .top { display: flex; gap: 12px; align-items: center; }
.arow.off .top { opacity: .55; }
.arow .sart.gbox { background: transparent; }
.abtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.tag.on { background: var(--ok); } .tag.off { background: var(--common); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickhd { font-size: 12.5px; color: var(--sub); margin: 4px 0 6px; }
.picklist { max-height: 250px; overflow: auto; background: #fff; border-radius: 14px; padding: 4px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pickgrp { padding: 8px 0 2px; }
.pickrow[hidden], .pickgrp[hidden] { display: none; }
.pickrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pickrow input { width: 18px; height: 18px; accent-color: var(--ribbon); flex: none; }
.pickrow .pe { font-size: 22px; width: 28px; text-align: center; flex: none; }
.sheet .prob { margin: 10px 0; }
.hdr-right { display: flex; align-items: center; gap: 8px; }
.icon-btn.cpn { position: relative; width: 36px; height: 36px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: var(--foil-a); }
.icon-btn .badge { position: absolute; right: -3px; top: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ribbon); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--night); }
.stats b { font-size: 17px; white-space: nowrap; }
.arow .sname { font-weight: 800; font-size: 14.5px; }
.arow .smeta { font-size: 12px; color: var(--sub); margin-top: 1px; }

/* ---------- 概率控制面板 ---------- */
.tag.vtag { background: var(--ink2); }
.arow .prob { margin: 12px 0 8px; }
.oddsmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.oddsmeta .linkbtn { margin-left: auto; }
.tinrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tin { display: flex; align-items: center; width: 128px; flex: none; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.tin:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink2), 0 0 0 3px rgba(59,53,163,.12); }
.tin input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; text-align: right; padding: 0 2px 0 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tin input:focus { outline: none; }
.tin input:disabled, .tin input[readonly] { color: var(--sub); }
.tin em { font-style: normal; padding: 0 12px 0 3px; color: var(--sub); font-weight: 700; }
.adet { margin-top: 10px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.adet > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; cursor: pointer; }
.adet > summary::-webkit-details-marker { display: none; }
.adet > summary::after { content: "展开"; margin-left: auto; font-size: 12px; color: var(--sub); font-weight: 600; }
.adet[open] > summary::after { content: "收起"; }
.adet .body { padding: 0 14px 6px; }
.orow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.orow .pe { font-size: 22px; width: 28px; text-align: center; flex: none; }
.orow .nm { font-size: 13.5px; font-weight: 700; }
.orow .shr { width: 64px; height: 38px; flex: none; border-radius: 10px; border: 1.5px solid var(--line); text-align: center; background: #fff; font-weight: 800; }
.orow .shr:disabled { background: transparent; border-color: transparent; color: var(--sub); }
.warn { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff3d6; color: #7a5200; }
.warn .ic { margin-top: 2px; }
.warn.err { background: #ffe8ec; color: #8a1230; }
.num.bad { color: var(--ribbon-d); font-weight: 800; }
.olog { padding: 12px 0; border-top: 1px dashed var(--line); }
.olog:first-of-type { border-top: 0; padding-top: 4px; }
.olog .diff { margin-top: 4px; color: var(--ink2); font-weight: 600; }
.olog .prob { margin: 8px 0; }

/* ---------- 保底 / 拆盒选项 / 确认订单 ---------- */
.pitypill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 9px 2px 3px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--ribbon-d); background: #fff0f3; box-shadow: inset 0 0 0 1px rgba(255,79,112,.35); max-width: 100%; }
.pitypill b { padding: 0 7px; border-radius: 99px; background: var(--ribbon); color: #fff; font-size: 11px; line-height: 1.6; }
.pitybar { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, #fff, #fff4f6); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(255,79,112,.25); }
.pitybar .pb-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 5px 10px; border-radius: 99px; background: linear-gradient(180deg, #ff6784, var(--ribbon-d)); color: #fff; font-weight: 800; font-size: 13px; }
.pitybar .pb-tag .ic { width: 15px; height: 15px; }
.pitybar .pb-main { flex: 1; min-width: 0; }
.pitybar .pb-main b { display: block; font-size: 13.5px; }
.pitybar .pb-main small { font-size: 11.5px; color: var(--sub); }
.pb-track { height: 7px; border-radius: 99px; background: #f3dfe4; margin: 5px 0 4px; overflow: hidden; }
.pb-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb23d, var(--ribbon)); transition: width .4s; }
.pitybar .pb-n { flex: none; font-size: 13px; color: var(--sub); }
.pitybar .pb-n b { font-size: 20px; color: var(--ribbon-d); }
.buybar.one button.bopen { background: linear-gradient(180deg, #ff6784, var(--ribbon-d)); color: #fff; box-shadow: 0 10px 22px rgba(255,79,112,.36); font-size: 18px; height: 58px; }
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 12px; }
.pk-head b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.01em; background: linear-gradient(100deg, #e89a12, #ff4f70 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-head small { color: var(--sub); font-size: 12.5px; }
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; padding: 18px 6px 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-1); text-align: center; }
.pk b { font-size: 16px; font-weight: 900; }
.pk .pk-price { font-size: 18px; font-weight: 900; color: var(--ribbon-d); }
.pk .pk-price s { margin-left: 5px; font-size: 12px; font-weight: 600; color: var(--sub); }
.pk small { font-size: 11.5px; color: var(--sub); }
.pk .pk-off { position: absolute; left: 0; top: 0; padding: 1px 8px; border-radius: 16px 0 12px 0; background: #ffe3e8; color: var(--ribbon-d); font-size: 11px; font-weight: 800; }
.pk.solo { background: linear-gradient(180deg, #fff, #f1efff); }
.pk:active { transform: scale(.97); }
.cf-head { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cf-head h3 { margin: 0; }
.cf-back { position: absolute; left: -4px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border-radius: 50%; color: var(--sub); }
.cf-item { display: flex; align-items: center; gap: 12px; margin: 0; }
.cf-art { width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.payrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.payrow .pm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e6f8f4; color: var(--ok); flex: none; }
.payrow .okdot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.payrow .okdot .ic { width: 14px; height: 14px; }
.terms { margin: 12px 0 8px; padding-left: 18px; font-size: 12px; color: var(--sub); line-height: 1.7; }
.rcard .gtag { position: absolute; right: 14px; top: 14px; z-index: 2; font-size: 10.5px; font-weight: 800; background: linear-gradient(180deg, #ff6784, var(--ribbon-d)); color: #fff; padding: 0 7px; border-radius: 6px; line-height: 1.6; }
.rcard .gtag.low { top: 36px; }

/* ===== 商品图片 / 详情页 ===== */
/* 有主图时：图片铺满容器（EMOJI 版的小阴影不再需要） */
.iem.pic { display: block; width: 100%; height: 100%; object-fit: contain; font-size: 0; }
.istage.hasimg { overflow: hidden; }
.istage.hasimg::after { display: none; }
.istage.hasimg .iem.pic { padding: 6px; }
.pcard .istage.hasimg { height: auto; aspect-ratio: 1; }
.pcard .istage.hasimg .iem.pic { padding: 0; object-fit: cover; }
.rgrid.one .istage.hasimg { height: 190px; }
.sart .iem.pic { object-fit: cover; border-radius: inherit; }
.sart { overflow: hidden; }
.sart.gbox { overflow: visible; }
.av { overflow: hidden; }
.av img, .pe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe img { width: 28px; height: 28px; border-radius: 8px; }
.sc-item .iem.pic { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
/* 首页盲盒卡片的封面图 */
.bcard .bart.hasimg { padding: 0; overflow: hidden; align-self: stretch; min-height: 120px; }
.bcard .bart .bcover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard .bart.hasimg .flag { z-index: 1; }
.cf-art.hasimg img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
/* 可点开看详情的商品卡 */
.icard.tap { cursor: pointer; }
.icard.tap:active { transform: scale(.98); }
.istage .dtag { position: absolute; right: 6px; bottom: 6px; z-index: 2; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(20,18,58,.62); padding: 0 7px; border-radius: 99px; line-height: 1.7; }
.ii-hero { height: 220px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 55%, #fff, #f1eefb); }
.ii-hero.legend { background: radial-gradient(70% 70% at 50% 55%, #fffaf0, #ffe9ae); }
.ii-hero.epic { background: radial-gradient(70% 70% at 50% 55%, #fbf8ff, #e4d9ff); }
.ii-hero.rare { background: radial-gradient(70% 70% at 50% 55%, #f8fbff, #d9e7ff); }
.ii-hero .iem { font-size: 110px; }
.ii-hero .iem.pic { padding: 10px; }
/* 详情页：图片从上到下无缝拼接 */
.dpage { margin: 10px 16px 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); font-size: 0; }
.dpage img { display: block; width: 100%; height: auto; min-height: 80px; background: #f1eefb; }
.sheet .dpage { margin: 6px 0 0; box-shadow: none; }
/* 商城商品详情页 */
.mp-hero { position: relative; width: 100%; aspect-ratio: 1; max-height: 480px; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 55%, #fff, #e9e5fa); overflow: hidden; }
.mp-hero img { width: 100%; height: 100%; object-fit: contain; }                 /* 完整显示、不裁切：统一成正方形的新图正好铺满，已传的非正方形老图也不会被切掉 */
.mp-hero .iem { font-size: 120px; }
.mp-info { margin-top: -18px; position: relative; z-index: 2; }
.mp-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mp-price .coinp { display: inline-flex; align-items: center; gap: 5px; font-size: 26px; font-weight: 800; color: #a4710a; }
.mp-price .coinp .ic { width: 24px; height: 24px; }
.mp-price .ref { font-size: 12.5px; color: var(--sub); }
.mp-name { font-size: 18px; font-weight: 800; line-height: 1.4; margin: 8px 0 6px; }
.mp-tags { display: flex; align-items: center; gap: 10px; }
.mp-bar { align-items: center; }
.mp-bar .mp-have { display: flex; align-items: center; gap: 8px; flex: none; padding: 0 6px 0 2px; color: #a4710a; }
.mp-bar .mp-have small { display: block; font-size: 11px; color: var(--sub); }
.mp-bar .mp-have b { font-size: 17px; }
.mp-bar .mp-have .ic { width: 28px; height: 28px; }
/* 后台：图片上传部件 */
.mfield { margin: 4px 0 12px; }
.mfield > label { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.mfield > label small { font-size: 11px; opacity: .85; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mthumb, .madd { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb.big, .madd.big { width: 112px; }
.madd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--sub); font-size: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: #faf9ff; border: 0; }
.madd .ic { width: 22px; height: 22px; }
.madd:active { background: #f1eefb; }
.mthumb .mx { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(20,18,58,.72); color: #fff; font-size: 15px; line-height: 22px; text-align: center; }
.mthumb .mi { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.mthumb .mmv { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 3px 4px; background: linear-gradient(0deg, rgba(20,18,58,.6), transparent); }
.mthumb .mmv button { width: 26px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 800; color: var(--night); line-height: 22px; text-align: center; }
.mthumb .mre { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: rgba(20,18,58,.65); color: #fff; font-size: 12px; }
.mspin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d9d4f2; border-top-color: var(--ribbon); animation: mspin .8s linear infinite; }
@keyframes mspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mspin { animation-duration: 2.4s; } }
/* 展台：商品图片像一张弹出来的卡片 */
.sc-item .iem.pic { width: 104px; height: 104px; margin-left: -4px; object-fit: cover; border-radius: 18px; border: 3px solid #fff; background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.32); filter: none; }

/* 仓库：全选 */
.actbar .selall { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; text-align: left; color: #fff; }
.actbar .selall .ck { width: 22px; height: 22px; border-color: rgba(255,255,255,.6); }
.actbar .selall.all .ck, .actbar .selall.part .ck { background: var(--ribbon); border-color: var(--ribbon); }
.actbar .selall .ck .dash { width: 10px; height: 2.5px; border-radius: 2px; background: #fff; }
.actbar .selall .st { display: flex; flex-direction: column; line-height: 1.25; }
.actbar .selall b { font-size: 14px; }
.actbar .selall small { font-size: 11px; opacity: .78; }

/* ===== 首页轮播 ===== */
.bn { position: relative; z-index: 2; margin: -14px 16px 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 12px 26px rgba(30,24,80,.2), 0 0 0 1px rgba(255,255,255,.5); }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-track:focus-visible { box-shadow: inset 0 0 0 3px rgba(255,255,255,.9); }
.bn-slide { position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 5 / 2; scroll-snap-align: start; scroll-snap-stop: always; display: block; overflow: hidden; text-align: left; color: #fff; padding: 0; border: 0; font: inherit;
  background: radial-gradient(70% 110% at 92% 30%, rgba(255,255,255,.28), transparent 70%), linear-gradient(135deg, var(--f2), var(--f3)); }
/* 金色底太浅，白字看不清，改深色字 */
.bn-slide[data-theme="gold"]:not(.pic), .bn-th[data-theme="gold"] { color: #3b2a00; text-shadow: none; }
div.bn-slide { cursor: default; }
.bn-slide:active { filter: brightness(.97); }
.bn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; -webkit-user-drag: none; user-select: none; }
.bn-art { position: absolute; right: -2px; bottom: -14px; line-height: 0; pointer-events: none; }
.bn-txt { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; max-width: 66%; padding: 0 0 0 18px; text-shadow: 0 1px 8px rgba(20,18,58,.28); }
.bn-txt b { font-size: 19px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bn-txt small { font-size: 12px; line-height: 1.45; opacity: .92; overflow-wrap: anywhere; }
/* 有图的轮播页：文字压在图下方的渐变上，不挡住图的主体 */
.bn-slide.pic .bn-txt { inset: auto 0 0 0; max-width: none; justify-content: flex-end; padding: 34px 16px 24px; background: linear-gradient(0deg, rgba(20,18,58,.62), rgba(20,18,58,0)); }
.bn-slide.pic .bn-txt b { font-size: 16px; }
.bn-dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; pointer-events: none; }
.bn-dots button { pointer-events: auto; position: relative; width: 20px; height: 20px; padding: 0; border: 0; background: none; }
.bn-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(20,18,58,.22); transition: width .25s, margin .25s, background .25s; }
.bn-dots button.on::after { width: 16px; margin-left: -8px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .bn-dots button::after { transition: none; } }

/* 首页轮播：后台列表、预览、上传 */
.bn.pv { margin: 0; z-index: 0; box-shadow: var(--sh-1); }
.bn.pv .bn-track { overflow: hidden; }
.bn-th { position: relative; flex: none; width: 92px; aspect-ratio: 5 / 2; border-radius: 10px; overflow: hidden; display: flex; align-items: center; padding: 0 7px; color: #fff; font-size: 10px; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 4px rgba(20,18,58,.3);
  background: linear-gradient(135deg, var(--f2), var(--f3)); box-shadow: inset 0 0 0 1px rgba(20,18,58,.08); }
.bn-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-th span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arow .bn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; padding: 6px 9px; border-radius: 10px; background: #fff6dc; color: #6b4a00; font-size: 12px; line-height: 1.5; }
.bn-warn .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: #c98a12; }
.abtns .btn.mv { min-width: 36px; padding: 0 8px; }
.abtns .btn:disabled { opacity: .35; }
.mthumb.wide, .madd.wide { width: 100%; aspect-ratio: 5 / 2; }
.abtns .danger { color: var(--ribbon-d); }

/* =====================================================================
   科技风格（HUD）覆盖层：放在文件最后，同等优先级下覆盖前面的浅色版规则
   ===================================================================== */
/* ---- 底层：深海军蓝 + 点阵 ---- */
#app { background: radial-gradient(120% 36% at 50% 0%, rgba(74,125,255,.16), transparent 70%), radial-gradient(rgba(130,190,255,.08) 1px, transparent 1.4px) 0 0 / 20px 20px, var(--paper); }
#app.login-on { background: linear-gradient(rgba(61,230,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(61,230,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, radial-gradient(90% 50% at 50% 20%, rgba(74,125,255,.35), transparent 70%), var(--night); }
:focus-visible { outline-color: var(--cyan); }
::selection { background: rgba(61,230,255,.3); }
input::placeholder { color: #5b7096; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cyan); }
.num, .bal, .stats b, .bp, .pk .pk-price, .sc-price, .rv-sum b, .mp-price .coinp, .imeta .ip, .nh-price, .inv .code, .pb-n b, .wallet b, .coinbar b, .bmeta, .ti-count { font-family: var(--mono); font-feature-settings: "tnum"; }
.stats b { font-size: 16px; letter-spacing: -.04em; }
.mono { color: #9fd9ff; }

/* ---- 页头 / 顶栏 ---- */
.sky { background: linear-gradient(rgba(61,230,255,.06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(61,230,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
  radial-gradient(90% 140% at 100% -30%, rgba(74,125,255,.55), transparent 62%), radial-gradient(70% 100% at 0% 120%, rgba(61,230,255,.16), transparent 70%), var(--night); }
.hdr, .mehead { border-radius: 0 0 16px 16px; border-bottom: 1px solid var(--edge); box-shadow: 0 12px 36px rgba(61,230,255,.07); }
.logo-mark { border-radius: 10px; background: linear-gradient(135deg, #7cf3ff, #4a7dff); color: #03121f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 18px rgba(61,230,255,.45); }
.brand-sub { opacity: 1; color: var(--cyan); font-family: var(--mono); letter-spacing: .1em; font-size: 10.5px; }
.wallet { border-radius: 10px; background: rgba(61,230,255,.08); box-shadow: inset 0 0 0 1px var(--edge); }
.wallet .plus { border-radius: 7px; background: var(--prime); color: #03121f; }
.wallet .plus .ic { color: #03121f; }
.assure .ic { color: var(--cyan); }
.icon-btn { border-radius: 10px; background: rgba(61,230,255,.08); box-shadow: inset 0 0 0 1px var(--edge); }
.icon-btn.cpn { color: var(--cyan); }
.icon-btn .badge { box-shadow: 0 0 0 2px var(--night); }
.coinbar { border-radius: 12px; background: rgba(61,230,255,.07); box-shadow: inset 0 0 0 1px var(--edge); }
.topbar { background: rgba(5,10,24,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.topbar .back, .stage .nav .back { border-radius: 10px; }

/* ---- 按钮 / 标签 / 分段 ---- */
.btn { border-radius: 10px; color: #03121f; background: var(--prime); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 6px 20px rgba(61,230,255,.28); }
.btn.sm { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn.gold { background: var(--foil); color: #3a2500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 6px 20px rgba(246,194,77,.28); }
.btn.ghost { background: rgba(61,230,255,.06); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.btn.light { background: var(--prime); color: #03121f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 6px 20px rgba(61,230,255,.3); }
.btn.light:disabled { background: rgba(255,255,255,.08); color: var(--sub); box-shadow: none; }
.btn.ghost:disabled { background: transparent; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); opacity: .7; }
.btn:disabled { opacity: 1; background: rgba(255,255,255,.07); color: rgba(255,255,255,.38); box-shadow: inset 0 0 0 1px var(--line); text-shadow: none; }
.chip { border-radius: 8px; background: rgba(255,255,255,.04); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: rgba(61,230,255,.14); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.tabs { border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { border-radius: 9px; }
.tabs button.on { background: rgba(61,230,255,.14); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi), 0 0 14px rgba(61,230,255,.15); }
.tag { border-radius: 4px; }
.tag.vtag { background: rgba(61,230,255,.14); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge); }
.tag.on { background: rgba(46,230,166,.16); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(46,230,166,.4); }
.tag.off { background: rgba(255,255,255,.07); color: var(--sub); }
.seg button { border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.seg button.on { background: rgba(61,230,255,.14); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.linkbtn { color: var(--cyan); }
.price { color: var(--foil-b); }
.num.bad { color: var(--ribbon); }

/* ---- 面板：玻璃 + 细描边；主要读数面板再加四角角标 ---- */
.card, .tile, .claimbar, .ticker, .stats, .wcard, .irow, .srow, .arow, .pcard, .coupon, .dtier, .icard, .dpage, .pk, .payrow, .adet, .picklist, .pitybar, .tin, .bn {
  background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--sh-1);
}
.card, .tile, .claimbar, .stats, .wcard, .irow, .srow, .arow, .pcard, .coupon, .dtier, .icard, .dpage, .pitybar { border-radius: 14px; }
.card, .wcard, .stats { background: var(--hud), var(--glass); }
.card.flat { background: rgba(255,255,255,.03); border-color: var(--line); box-shadow: none; }
.ticker { border-radius: 10px; }
.ticker > .ic { color: var(--foil-b); }
.notice, .warn { background: rgba(246,194,77,.08); color: #f3d38a; border: 1px solid rgba(246,194,77,.28); border-radius: 10px; }
.notice .ic { color: var(--foil-b); }
.warn.err { background: rgba(255,90,119,.1); color: #ff9db0; border-color: rgba(255,90,119,.35); }
.kv { border-bottom-color: var(--line); }
.ebadge { border-radius: 16px; background: rgba(139,108,255,.14); color: #b7a5ff; box-shadow: inset 0 0 0 1px rgba(139,108,255,.4), 0 0 24px rgba(139,108,255,.2); }
.field input, .field select { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(61,230,255,.16); }
.tin { border-radius: 10px; }
.tin:focus-within { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 3px rgba(61,230,255,.14); }
.orow .shr { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); border-radius: 8px; }
.adet, .picklist, .payrow, .pk { border-radius: 12px; }
.pickrow { border-bottom-color: var(--line); }

/* ---- 进度条 / 档位 ---- */
.bar, .tiers .track { background: rgba(255,255,255,.08); }
.bar > i, .tiers .track i { background: linear-gradient(90deg, var(--azure), var(--cyan)); box-shadow: 0 0 10px rgba(61,230,255,.5); }
.tiers .stop b { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1.5px var(--line); }
.tiers .stop.on b { background: rgba(246,194,77,.16); box-shadow: inset 0 0 0 1.5px var(--foil-b), 0 0 12px rgba(246,194,77,.3); color: var(--foil-a); }
.day { background: rgba(255,255,255,.04); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.day.on { background: rgba(246,194,77,.16); color: var(--foil-a); box-shadow: inset 0 0 0 1px var(--foil-b); }
.dtier .em { background: rgba(246,194,77,.14); color: var(--foil-b); border-radius: 10px; }
.rk { background: rgba(255,255,255,.07); border-radius: 7px; }
.rk.r1 { background: var(--foil); color: #3a2500; }
.rk.r2 { background: linear-gradient(135deg, #e8f0ff, #8ea4c8); color: #0c1730; }

/* ---- 首页 ---- */
.tile .ti { border-radius: 9px; }
.tile .ti.r { background: linear-gradient(160deg, #ff7d95, #e03c5d); }
.tile .ti.v { background: linear-gradient(160deg, #9d86ff, #5b3fd6); }
.claimbar .ci { background: rgba(255,90,119,.14); color: #ff8fa3; border-radius: 10px; }
.ti-pin { background: rgba(139,108,255,.16); color: #b7a5ff; border-radius: 10px; }
.newhero { border-radius: 16px; border: 1px solid var(--edge-hi); background: var(--hud), radial-gradient(60% 90% at 88% 40%, rgba(74,125,255,.5), transparent 70%), linear-gradient(135deg, #0f2a66, #070f27); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 30px rgba(61,230,255,.12); }
.newhero .nh-tag { background: rgba(61,230,255,.14); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge); border-radius: 4px; }
.newhero .nh-price { color: var(--foil-a); text-shadow: 0 0 24px rgba(246,194,77,.4); }
.strip { border-radius: 12px; border: 1px solid var(--edge); background: var(--glass-solid); }
.fab { background: rgba(8,16,36,.92); color: var(--cyan); border: 1px solid var(--edge-hi); box-shadow: 0 0 22px rgba(61,230,255,.25), 0 8px 22px rgba(0,0,0,.4); }
.fab .badge { box-shadow: 0 0 0 2px var(--night); }

/* ---- 盲盒卡片：主题色流光描边（沿用旧的彗星式转圈），卡面换成深色玻璃 ---- */
.bcard { --fa: #fff; --fb: var(--f1); --fc: var(--f2); --fd: var(--cyan); --fe: var(--f1); --fdim: rgba(90,170,255,.2); }
.bcard::after, .icard.legend::after, .icard.epic::after, .rcard.legend::after, .rcard.epic::after { background: var(--glass-solid); }
.bcard .bart { border-radius: 10px; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 16px 16px, radial-gradient(70% 70% at 50% 60%, rgba(255,255,255,.14), transparent 75%), linear-gradient(180deg, rgba(10,20,44,.9), rgba(10,20,44,.9)); box-shadow: inset 0 0 0 1px var(--edge); }
@supports (color: color-mix(in srgb, red, blue)) {
  .bcard .bart { background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 16px 16px, radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--f2) 55%, transparent), transparent 78%), #09132b; }
}
.bcard .flag { border-radius: 4px; }
.bmeta .chance { color: var(--foil-b); }
.bp { color: var(--foil-a); text-shadow: 0 0 18px rgba(246,194,77,.3); }
.go-pill { border-radius: 8px; background: rgba(61,230,255,.12); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.av { background: rgba(255,255,255,.05); }
.av.legend { background: rgba(245,184,61,.16); } .av.epic { background: rgba(139,108,255,.18); } .av.rare { background: rgba(74,141,255,.18); }
.pitypill { border-radius: 6px; color: #ff9db0; background: rgba(255,90,119,.1); box-shadow: inset 0 0 0 1px rgba(255,90,119,.35); }
.pitybar { background: linear-gradient(120deg, rgba(34,24,56,.8), rgba(12,22,48,.85)); border-color: rgba(255,90,119,.35); }
.pitybar .pb-tag { border-radius: 6px; background: linear-gradient(180deg, #ff7d95, #e03c5d); }
.pb-track { background: rgba(255,255,255,.08); }
.pb-track i { background: linear-gradient(90deg, #ffb23d, #ff5a77); box-shadow: 0 0 10px rgba(255,90,119,.5); }

/* ---- 盒子详情：深色舞台 + 主题色光晕 + 刻度盘 ---- */
.stage.themed { background: linear-gradient(180deg, var(--f3), #050a18); }
@supports (color: color-mix(in srgb, red, blue)) {
  .stage.themed { background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(62% 32% at 50% 44%, color-mix(in srgb, var(--f2) 70%, transparent), transparent 74%), linear-gradient(180deg, color-mix(in srgb, var(--f3) 34%, #050a18), #050a18 96%); }
}
.stage.themed { border-radius: 0 0 16px 16px; border-bottom: 1px solid var(--edge-hi); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.sc::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; pointer-events: none; opacity: .75;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.7) 0 .7deg, transparent .7deg 6deg); -webkit-mask: radial-gradient(circle, transparent 69%, #000 69.6%, #000 73%, transparent 73.6%); mask: radial-gradient(circle, transparent 69%, #000 69.6%, #000 73%, transparent 73.6%);
  animation: spin 80s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sc::before { animation: none; } }
.sc-glow { background: radial-gradient(circle, rgba(61,230,255,.38), transparent 64%); }
.sc-name { border-radius: 10px; background: rgba(5,10,24,.62); box-shadow: inset 0 0 0 1px var(--edge); }
.sc-price { border-radius: 8px; background: rgba(5,10,24,.78); color: var(--foil-a); box-shadow: inset 0 0 0 1px rgba(246,194,77,.5), 0 0 22px rgba(246,194,77,.18); }
.sc-price small { color: var(--sub); }
.sc-rar { border-radius: 4px; }
.sc-dots i { border-radius: 2px; }
.sc-dots i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.stats { margin-top: -26px; }
.pick-title b { font-size: 16px; }
.prob { border-radius: 4px; gap: 2px; }
.prob .legend { background: linear-gradient(90deg, #f5b83d, #ff5a77); box-shadow: 0 0 10px rgba(245,184,61,.4); }
.prob .epic { box-shadow: 0 0 10px rgba(139,108,255,.4); } .prob .rare { box-shadow: 0 0 10px rgba(74,141,255,.4); }
.legendrow i { border-radius: 2px; }
.pt-tile { border-radius: 8px; background: rgba(255,255,255,.03); }
.pt-tile.common { color: #9bb0d4; }

/* ---- 商品卡 / 列表行 ---- */
.istage { border-radius: 10px; background: radial-gradient(70% 70% at 50% 55%, rgba(90,140,255,.2), rgba(8,14,32,.92)); box-shadow: inset 0 0 0 1px var(--line); }
.istage::after { background: rgba(61,230,255,.22); }
.icard.legend .istage, .rcard.legend .istage { background: radial-gradient(70% 70% at 50% 55%, rgba(246,194,77,.3), rgba(8,14,32,.92)); box-shadow: inset 0 0 0 1px rgba(246,194,77,.3); }
.icard.epic .istage, .rcard.epic .istage { background: radial-gradient(70% 70% at 50% 55%, rgba(139,108,255,.34), rgba(8,14,32,.92)); box-shadow: inset 0 0 0 1px rgba(139,108,255,.32); }
.icard.rare .istage, .rcard.rare .istage { background: radial-gradient(70% 70% at 50% 55%, rgba(74,141,255,.3), rgba(8,14,32,.92)); box-shadow: inset 0 0 0 1px rgba(74,141,255,.3); }
.imeta .ip { color: var(--foil-a); }
.istage .dtag { background: rgba(5,10,24,.7); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--edge); }
.sart { border-radius: 10px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.sart.legend { background: linear-gradient(160deg, rgba(246,194,77,.3), rgba(246,194,77,.06)); box-shadow: inset 0 0 0 1px rgba(246,194,77,.35); }
.sart.epic { background: linear-gradient(160deg, rgba(139,108,255,.34), rgba(139,108,255,.06)); box-shadow: inset 0 0 0 1px rgba(139,108,255,.38); }
.sart.rare { background: linear-gradient(160deg, rgba(74,141,255,.32), rgba(74,141,255,.06)); box-shadow: inset 0 0 0 1px rgba(74,141,255,.36); }
.arow .sart.gbox { background: transparent; box-shadow: none; }
.srow.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(61,230,255,.22); }
.ck { border-color: rgba(255,255,255,.3); border-radius: 6px; }
.srow.sel .ck { background: var(--cyan); border-color: var(--cyan); color: #03121f; }
.actbar { border-radius: 14px; background: rgba(6,13,30,.94); border: 1px solid var(--edge-hi); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 26px rgba(61,230,255,.16), 0 12px 28px rgba(0,0,0,.5); }
.actbar .selall .ck { border-color: rgba(255,255,255,.4); }
.actbar .selall.all .ck, .actbar .selall.part .ck { background: var(--cyan); border-color: var(--cyan); color: #03121f; }
.actbar .selall .ck .dash { background: #03121f; }
.actbar .btn.ghost { background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.actbar .btn.ghost:disabled { background: transparent; color: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.coupon .a { background: linear-gradient(160deg, #ff7d95, #e03c5d); border-radius: 13px 0 0 13px; }
.coupon .b { border-left: 2px dashed var(--edge); }
.coupon.used .a { background: var(--common); }
.pcard.can { border-color: var(--edge-hi); box-shadow: 0 0 0 1px var(--edge-hi), 0 0 22px rgba(61,230,255,.16); }
.pcard .coinp, .mp-price .coinp, .mp-bar .mp-have { color: var(--foil-b); }

/* ---- 底部标签栏 / 购买栏 ---- */
.tabbar { background: rgba(6,12,28,.9); border-top: 1px solid var(--edge); box-shadow: 0 -10px 30px rgba(0,0,0,.45); }
.tabbar a { position: relative; }
.tabbar a.on { color: var(--cyan); }
.tabbar a .pill { border-radius: 8px; }
.tabbar a.on .pill { background: rgba(61,230,255,.12); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi), 0 0 16px rgba(61,230,255,.22); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 2px; margin-left: -14px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.buybar { background: linear-gradient(0deg, rgba(7,13,31,.97) 70%, rgba(7,13,31,0)); }
.buybar button { border-radius: 12px; }
.buybar .b1 { background: rgba(61,230,255,.08); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.buybar .b2, .buybar.one button.bopen { background: var(--prime); color: #03121f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 26px rgba(61,230,255,.32); }
.buybar .b3 { color: #3a2500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 22px rgba(246,194,77,.32); }

/* ---- 抽屉 / 弹窗 / 提示 ---- */
.mask { background: rgba(2,6,16,.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { background: linear-gradient(180deg, #0f1c3a, #08122a 42%); border: 1px solid var(--edge); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.55), 0 -1px 0 var(--edge-hi); }
.sheet::before { background: var(--edge-hi); border-radius: 2px; }
.sheet h3 .ic { color: var(--cyan); }
.mask.center .sheet { border-radius: 16px; border-bottom: 1px solid var(--edge); }
.toast { border-radius: 10px; background: rgba(8,18,40,.96); border: 1px solid var(--edge-hi); box-shadow: 0 0 24px rgba(61,230,255,.2), 0 10px 30px rgba(0,0,0,.5); }

/* ---- 开箱 ---- */
.reveal { background: linear-gradient(rgba(61,230,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(61,230,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, radial-gradient(80% 60% at 50% 34%, #123a86, #050a18 72%); }
.reveal.rv-epic { background: linear-gradient(rgba(180,150,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(180,150,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, radial-gradient(80% 60% at 50% 34%, #3a1f9a, #050a18 72%); }
.reveal.rv-legend { background: linear-gradient(rgba(255,220,140,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,220,140,.05) 1px, transparent 1px) 0 0 / 24px 24px, radial-gradient(80% 60% at 50% 34%, #8a5a08, #0a0a1c 72%); }
.rv-sum b { color: var(--foil-a); text-shadow: 0 0 28px rgba(246,194,77,.45); }
.rv-hint { font-family: var(--mono); font-size: 12.5px; }
.rcard { border-radius: 14px; background: var(--glass-solid); border: 1px solid var(--edge); color: var(--text); }
.rcard.legend, .rcard.epic { border: 0; }
.rbar { background: linear-gradient(0deg, #050a18 62%, rgba(5,10,24,0)); }
.rbar .btn.ghost { background: rgba(5,10,24,.7); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.rcard .gtag { background: linear-gradient(180deg, #ff7d95, #e03c5d); border-radius: 4px; }
.rcard .free { border-radius: 4px; color: #03121f; }

/* ---- 我的 ---- */
.avatar { border-radius: 14px; background: linear-gradient(135deg, #7cf3ff, #4a7dff); color: #03121f; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 20px rgba(61,230,255,.4); }
.codechip { border-radius: 6px; background: rgba(61,230,255,.1); box-shadow: inset 0 0 0 1px var(--edge); font-family: var(--mono); }
.wcard { border-radius: 16px; }
.wmini > div { background: rgba(255,255,255,.04); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.wmini .ic { color: var(--foil-b); }
.agrid i { border-radius: 12px; background: rgba(61,230,255,.08); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge); }
.agrid i.hl { background: rgba(255,90,119,.12); color: #ff8fa3; box-shadow: inset 0 0 0 1px rgba(255,90,119,.32); }
.agrid i.gd { background: rgba(246,194,77,.12); color: var(--foil-b); box-shadow: inset 0 0 0 1px rgba(246,194,77,.32); }
.agrid i.vi { background: rgba(139,108,255,.14); color: #b7a5ff; box-shadow: inset 0 0 0 1px rgba(139,108,255,.36); }
.agrid i.gr { background: rgba(46,230,166,.12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(46,230,166,.32); }
.inv { border-radius: 16px; border: 1px solid var(--edge-hi); }

/* ---- 登录 ---- */
.login .panel { background: linear-gradient(180deg, #0f1c3a, #08122a 60%); color: var(--text); border-radius: 18px 18px 0 0; border: 1px solid var(--edge); border-bottom: 0; box-shadow: 0 -1px 0 var(--edge-hi), 0 -20px 60px rgba(0,0,0,.4); }
.login a.sw { color: var(--cyan); }
.login .logo { letter-spacing: .02em; }

/* ---- 保底 / 拆盒选项 / 确认订单 ---- */
.pk { background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--sh-1); }
.pk .pk-price { color: var(--foil-a); }
.pk .pk-off { background: rgba(255,90,119,.16); color: #ff9db0; border-radius: 11px 0 8px 0; }
.pk.solo { background: linear-gradient(180deg, rgba(40,70,140,.55), rgba(10,20,44,.9)); border-color: var(--edge-hi); }
.payrow .pm { background: rgba(46,230,166,.12); color: var(--ok); border-radius: 8px; }
.payrow .okdot { color: #03121f; }

/* ---- 图片 / 详情页 / 后台 ---- */
.dpage img { background: #0b1530; }
.mp-hero { background: radial-gradient(70% 70% at 50% 55%, rgba(90,140,255,.28), #07102a); }
.ii-hero { border-radius: 12px; background: radial-gradient(70% 70% at 50% 55%, rgba(90,140,255,.22), #08122a); box-shadow: inset 0 0 0 1px var(--line); }
.ii-hero.legend { background: radial-gradient(70% 70% at 50% 55%, rgba(246,194,77,.3), #08122a); }
.ii-hero.epic { background: radial-gradient(70% 70% at 50% 55%, rgba(139,108,255,.34), #08122a); }
.ii-hero.rare { background: radial-gradient(70% 70% at 50% 55%, rgba(74,141,255,.3), #08122a); }
.mthumb, .madd { border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.madd { background: rgba(61,230,255,.04); box-shadow: inset 0 0 0 1px var(--edge); color: var(--cyan); }
.madd:active { background: rgba(61,230,255,.12); }
.mthumb .mx { background: rgba(5,10,24,.8); box-shadow: inset 0 0 0 1px var(--edge-hi); border-radius: 6px; }
.mthumb .mi { background: rgba(5,10,24,.78); color: var(--cyan); border-radius: 4px; font-family: var(--mono); }
.mthumb .mmv button { background: rgba(5,10,24,.8); color: var(--cyan); border-radius: 5px; }
.mthumb .mre { background: rgba(5,10,24,.78); color: var(--cyan); }
.mspin { border-color: rgba(255,255,255,.14); border-top-color: var(--cyan); }
.sc-item .iem.pic { border-color: rgba(255,255,255,.85); }
.abtns .danger { color: #ff8fa3; }
.arow.off { border-style: dashed; }

/* ---- 首页轮播（科技版）：深色渐变 + 网格 + 取景框角标 ---- */
.bn { border-radius: 14px; background: #09132b; border-color: var(--edge-hi); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(61,230,255,.12); }
.bn::after { content: ""; position: absolute; inset: 6px; z-index: 3; pointer-events: none; background: var(--hud); opacity: .85; }
.bn.pv::after { inset: 5px; }
.bn-slide { background: linear-gradient(135deg, var(--f3), #0a142b); color: #fff; }
@supports (color: color-mix(in srgb, red, blue)) {
  .bn-slide, .bn-th { background: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(70% 110% at 92% 30%, color-mix(in srgb, var(--f1) 50%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--f3) 78%, #050a18), color-mix(in srgb, var(--f2) 34%, #050a18)); }
}
.bn-slide[data-theme="gold"]:not(.pic), .bn-th[data-theme="gold"] { color: #fff; text-shadow: 0 1px 8px rgba(20,18,58,.28); }
.bn-txt b { letter-spacing: 0; }
.bn-th { border-radius: 8px; color: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.bn-dots button.on::after { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.bn-warn { background: rgba(246,194,77,.08); color: #f3d38a; border: 1px solid rgba(246,194,77,.28); border-radius: 8px; }
.bn-warn .ic { color: var(--foil-b); }
.buybar .b2.short { background: rgba(255,255,255,.07); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.buybar .b2:disabled { background: rgba(255,255,255,.07); color: var(--sub); box-shadow: none; }

/* ---- 商品框：白底（商品图大多是白底照片，放在深色框里很突兀；稀有度只在边缘带一点点颜色） ---- */
.istage, .icard.legend .istage, .rcard.legend .istage, .icard.epic .istage, .rcard.epic .istage, .icard.rare .istage, .rcard.rare .istage { box-shadow: none; }
.istage { background: #fff; }
.icard.legend .istage, .rcard.legend .istage { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #fff0c8); }
.icard.epic .istage, .rcard.epic .istage { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #ebe4ff); }
.icard.rare .istage, .rcard.rare .istage { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #e1ecff); }
.istage::after { background: rgba(30,50,100,.16); }
.sart, .sart.legend, .sart.epic, .sart.rare { box-shadow: none; }
.sart { background: #fff; }
.sart.legend { background: radial-gradient(78% 78% at 50% 50%, #fff 55%, #fff0c8); }
.sart.epic { background: radial-gradient(78% 78% at 50% 50%, #fff 55%, #ebe4ff); }
.sart.rare { background: radial-gradient(78% 78% at 50% 50%, #fff 55%, #e1ecff); }
.arow .sart.gbox { background: transparent; }
.ii-hero, .ii-hero.legend, .ii-hero.epic, .ii-hero.rare { box-shadow: none; }
.ii-hero { background: #fff; }
.ii-hero.legend { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #fff0c8); }
.ii-hero.epic { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #ebe4ff); }
.ii-hero.rare { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #e1ecff); }
.mp-hero { background: #fff; }
.av, .av.legend, .av.epic, .av.rare { background: #fff; }
.dpage { background: #fff; }
.dpage img { background: #fff; }

/* ---- 盲盒封面框、盒子页展台：也用白底（边缘带一点主题色） ---- */
.bcard .bart { background: radial-gradient(80% 80% at 50% 50%, #fff 52%, var(--tint, #eef2ff)); box-shadow: none; }
.stage.themed { color: #0d1b3d; text-shadow: none; border-bottom: 1px solid var(--edge-hi);
  background: linear-gradient(rgba(30,60,120,.06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(30,60,120,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(64% 34% at 50% 44%, var(--tint, #eef2ff), transparent 78%), #fff; }
.stage.themed .nav .back, .stage.themed .nav .navlink { color: #0d1b3d; }
.stage.themed .nav .back:active { background: rgba(13,27,61,.08); }
.stage.themed .tl { opacity: .7; }
.sc::before { background: repeating-conic-gradient(from 0deg, var(--f2) 0 .7deg, transparent .7deg 6deg); opacity: .5; }
.sc-glow { background: radial-gradient(circle, var(--tint, #eef2ff), transparent 66%); }
.sc-name { background: rgba(13,27,61,.05); color: #0d1b3d; box-shadow: inset 0 0 0 1px rgba(13,27,61,.14); }
.sc-price { background: #0b1634; color: var(--foil-a); box-shadow: 0 8px 20px rgba(13,27,61,.25); }
.sc-price small { color: #9fb2d6; }
.sc-dots i { background: rgba(13,27,61,.18); }
.sc-dots i.on { background: var(--f2); box-shadow: none; }
.sc-item .iem.pic { border-color: #fff; box-shadow: 0 10px 22px rgba(13,27,61,.22); }

/* ---- 前台商品：整张卡片都是白底，商品图和卡片融为一体，没有“框”的感觉（后台列表保持深色） ---- */
.icard, .pcard, .srow:not(.adm), .rcard, .card.pw {
  --text: #0d1b3d; --sub: #6b7a99; --line: rgba(13,27,61,.1);
  color: #0d1b3d; background: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.icard.legend::after, .icard.epic::after, .rcard.legend::after, .rcard.epic::after { background: #fff; }
.rcard.legend, .rcard.epic { background: transparent; }
.card.pw { background: #fff; }
.istage, .icard.legend .istage, .rcard.legend .istage, .icard.epic .istage, .rcard.epic .istage, .icard.rare .istage, .rcard.rare .istage { background: transparent; }
.srow:not(.adm) .sart, .srow:not(.adm) .sart.legend, .srow:not(.adm) .sart.epic, .srow:not(.adm) .sart.rare, .card.pw .sart { background: transparent; }
.pcard .istage.hasimg, .icard .istage.hasimg, .rcard .istage.hasimg { background: #fff; }
.imeta .ip, .pcard .coinp, .mp-price .coinp { color: #a4710a; }
.pcard.can { box-shadow: 0 0 0 2px var(--cyan), 0 0 22px rgba(61,230,255,.3); }
.srow.sel:not(.adm) { box-shadow: 0 0 0 2px var(--cyan), 0 0 22px rgba(61,230,255,.3); }
.srow:not(.adm):not(.sel) .ck { border-color: #c3cde0; }
.card.pw .btn.ghost { background: transparent; color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,110,138,.5); }
.card.pw .mono { color: #0a6e8a; }
.card.pw.mp-info { border-radius: 14px; box-shadow: 0 -6px 22px rgba(0,0,0,.18); }
.card.pw .tag.rare { background: var(--rare); } .card.pw .tag.epic { background: var(--epic); }

/* ---- 首页盲盒卡：参考叮当首页——整张白卡，封面与商品小图没有框，商品像直接摆在卡片上 ---- */
.bcard { --text: #0d1b3d; --sub: #6b7a99; color: #0d1b3d; gap: 12px; padding: 14px 14px 14px 10px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.bcard::after { background: #fff; }
.bcard .bart, .bcard .bart.hasimg { width: 124px; border-radius: 0; background: transparent; box-shadow: none; padding: 6px 0; align-self: center; overflow: visible; }
.bcard .bart.hasimg { align-self: stretch; padding: 0; min-height: 124px; }
.bcard .bart .bcover { object-fit: contain; }
.bcard .flag { left: 4px; top: 2px; border-radius: 4px; }
.bcard .bname { font-size: 17px; color: #0d1b3d; }
.bcard .btag { display: block; align-self: flex-start; max-width: 100%; padding: 2px 6px; border: 1px solid #e3475c; border-radius: 2px; color: #e3475c; font-size: 12px; line-height: 1.4; }
.bcard .pitypill { align-self: flex-start; margin-top: 0; color: #d6304f; background: #fff0f3; box-shadow: inset 0 0 0 1px rgba(227,71,92,.35); }
.bcard .bbuy { margin-top: 2px; align-items: baseline; }
.bcard .bp { color: #a4710a; text-shadow: none; font-size: 26px; }
.bcard .blike { font-size: 11.5px; color: #8a96ad; }
.bcard .bval { display: flex; align-items: stretch; align-self: flex-start; max-width: 100%; font-size: 11.5px; line-height: 1.5; }
.bcard .bval b { padding: 0 6px; background: linear-gradient(90deg, #ff9d57, #ff7e45); color: #fff; font-weight: 700; white-space: nowrap; }
.bcard .bval span { padding: 0 6px; border: 1px solid #ff9d57; border-left: 0; color: #7a8599; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .bprev { gap: 8px; margin-top: 2px; }
.bcard .av, .bcard .av.legend, .bcard .av.epic, .bcard .av.rare { width: 32px; height: 32px; border-radius: 0; background: transparent; box-shadow: none; font-size: 22px; overflow: visible; }
.bcard .av img { object-fit: contain; }

/* ======== 灰白背景（前台）：页面底色换成灰白，面板、顶栏、标签栏、抽屉都变白底深字；
   页头、轮播、新人横幅、开箱页、登录页、悬浮操作条这些“展示位”保持深色科技风，在灰白底上更醒目 ======== */
:root {
  color-scheme: light;
  --paper: #ebedf2; --card: #fff; --text: #0d1b3d; --sub: #6b7a99; --line: rgba(13,27,61,.1);
  --edge: rgba(13,27,61,.09); --edge-hi: rgba(8,128,160,.4); --cyan: #0a8fb0; --ok: #0f9f6e;
  --glass: #fff; --glass-solid: #fff; --foil-a: #a4710a; --foil-b: #b97f0c; --hud-c: rgba(10,143,176,.4);
  --sh-1: 0 6px 18px rgba(30,40,90,.09), 0 1px 2px rgba(30,40,90,.06);
}
.sky, .bn, .newhero, .reveal, .login, #app.login-on, .actbar, .toast, .fab {
  color-scheme: dark;
  --text: #e6f0ff; --sub: #8aa1c6; --line: rgba(110,175,255,.16); --edge: rgba(70,190,255,.22); --edge-hi: rgba(80,225,255,.6);
  --cyan: #3de6ff; --ok: #2ee6a6; --foil-a: #ffeaa6; --foil-b: #f6c24d; --hud-c: rgba(61,230,255,.7);
  --glass: linear-gradient(180deg, rgba(24,44,86,.74), rgba(10,20,44,.86)); --glass-solid: linear-gradient(180deg, #112146, #0a142b);
  --sh-1: 0 10px 28px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
html, body { background: #dfe2ea; }
#app { background: #ebedf2; }
::selection { background: rgba(10,143,176,.22); }
input::placeholder { color: #9aa6bf; }
.mono { color: #0a6e8a; }
.sky .mono, .newhero .mono, .reveal .mono { color: #9fd9ff; }

/* 顶栏 / 标签栏 / 购买栏 */
.topbar { background: rgba(255,255,255,.92); color: var(--text); border-bottom: 1px solid var(--edge); }
.topbar .back:active { background: rgba(13,27,61,.08); }
.tabbar { background: rgba(255,255,255,.95); border-top: 1px solid var(--edge); box-shadow: 0 -6px 20px rgba(30,40,90,.08); }
.tabbar a.on::before { box-shadow: none; }
.tabbar a.on .pill { background: rgba(10,143,176,.1); box-shadow: inset 0 0 0 1px rgba(10,143,176,.35); }
.buybar { background: linear-gradient(0deg, rgba(235,237,242,.97) 70%, rgba(235,237,242,0)); }
.buybar .b1 { background: #fff; box-shadow: inset 0 0 0 1px var(--edge-hi); }
.buybar .b2.short, .buybar .b2:disabled { background: #dfe3ec; color: #8a96ad; box-shadow: none; }
.rbar { background: linear-gradient(0deg, #050a18 62%, rgba(5,10,24,0)); }

/* 抽屉 / 弹窗 */
.mask { background: rgba(13,27,61,.5); }
.sheet { background: #fff; border: 1px solid var(--edge); border-bottom: 0; box-shadow: 0 -18px 50px rgba(13,27,61,.25); }
.mask.center .sheet { border-bottom: 1px solid var(--edge); }
.login .sheet, .reveal .sheet { background: linear-gradient(180deg, #0f1c3a, #08122a 42%); }

/* 按钮 / 标签 / 输入 */
.btn.ghost { background: transparent; color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,110,138,.5); }
.btn:disabled, .btn.light:disabled { background: #dfe3ec; color: #8a96ad; box-shadow: none; }
.btn.ghost:disabled { background: transparent; color: #a3adc2; box-shadow: inset 0 0 0 1px var(--line); }
.chip, .seg button { background: #fff; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.chip.on, .seg button.on { background: rgba(10,143,176,.1); color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,143,176,.5); }
.tabs { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button.on { background: rgba(10,143,176,.1); color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,143,176,.45); }
.tag.vtag { background: rgba(10,143,176,.1); color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,143,176,.3); }
.tag.on { background: rgba(15,159,110,.12); color: #0f9f6e; box-shadow: inset 0 0 0 1px rgba(15,159,110,.35); }
.tag.off { background: #e6e9f0; color: #7a869e; }
.linkbtn { color: #0a6e8a; }
.field input, .field select { background: #f6f7fa; }
.field input:focus, .field select:focus { border-color: #0a8fb0; box-shadow: 0 0 0 3px rgba(10,143,176,.16); }
.tin:focus-within { box-shadow: inset 0 0 0 1px #0a8fb0, 0 0 0 3px rgba(10,143,176,.14); }
.orow .shr { background: #f6f7fa; }
.bar, .tiers .track, .pb-track { background: #e1e5ee; }
.bar > i, .tiers .track i { box-shadow: none; }
.tiers .stop b, .day, .rk, .pt-tile, .wmini > div, .mthumb { background: #f3f5f9; }
.tiers .stop.on b, .day.on { background: #fff3d6; color: #8a5a00; }
.rk.r2 { color: #0c1730; }
.card.flat { background: #f6f7fa; }
.madd { background: rgba(10,143,176,.05); color: #0a6e8a; }
.ck { border-color: #c3cde0; }
.pt-tile.common { color: #6b7a99; }

/* 提示 / 徽章 / 彩色小块（深色下的浅粉浅紫，换成白底可读的深一点的颜色） */
.notice, .warn { background: #fff7e0; color: #8a5a00; border-color: rgba(185,127,12,.35); }
.notice .ic, .bn-warn .ic { color: #b97f0c; }
.warn.err { background: #fff0f3; color: #d6304f; border-color: rgba(227,71,92,.35); }
.bn-warn { background: #fff7e0; color: #8a5a00; border-color: rgba(185,127,12,.35); }
.ebadge { background: #f1ebff; color: #6b4fe0; box-shadow: inset 0 0 0 1px rgba(107,79,224,.35); }
.claimbar .ci { background: #ffe8ed; color: #e03c5d; }
.ti-pin { background: #efe9ff; color: #6b4fe0; }
.pitybar { background: linear-gradient(120deg, #fff1f4, #fff); border-color: rgba(227,71,92,.3); }
.pitypill { color: #d6304f; background: #fff0f3; }
.pk .pk-off { background: #ffe8ed; color: #d6304f; }
.pk.solo { background: linear-gradient(180deg, #e9f6fb, #fff); }
.payrow .pm { background: rgba(15,159,110,.12); color: #0f9f6e; }
.codechip { background: rgba(10,143,176,.08); color: #0a6e8a; }
.agrid i { background: rgba(10,143,176,.08); color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,143,176,.25); }
.agrid i.hl { background: #ffe8ed; color: #e03c5d; box-shadow: inset 0 0 0 1px rgba(227,71,92,.28); }
.agrid i.gd { background: #fff3d6; color: #b97f0c; box-shadow: inset 0 0 0 1px rgba(185,127,12,.3); }
.agrid i.vi { background: #efe9ff; color: #6b4fe0; box-shadow: inset 0 0 0 1px rgba(107,79,224,.3); }
.agrid i.gr { background: #dff5ec; color: #0f9f6e; box-shadow: inset 0 0 0 1px rgba(15,159,110,.3); }
.abtns .danger { color: #d6304f; }
.mspin { border-color: rgba(13,27,61,.14); border-top-color: #0a8fb0; }
.mthumb .mx, .mthumb .mi, .mthumb .mmv button, .mthumb .mre { background: rgba(255,255,255,.92); color: #0a6e8a; }
.dpage img { background: #fff; }
.coupon .b { border-left-color: #cfd6e6; }
.wcard .row .ic, .wmini .ic { color: #b97f0c; }
.tile .ti, .newhero .btn { color: #fff; }
.login .field input, .login .field select, .reveal .field input { background: rgba(255,255,255,.06); }
.login .field input::placeholder { color: #5b7096; }
.login .btn.ghost { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--edge-hi); }

/* ---- 底部标签栏：选中 / 按下变黑，点一下会弹性回弹 ---- */
.tabbar a { -webkit-user-select: none; user-select: none; }
.tabbar a .pill { border-radius: 12px; transition: background .18s, color .18s, transform .5s cubic-bezier(.3,1.9,.5,1); }
.tabbar a.on { color: #0b0f1a; }
.tabbar a.on::before { display: none; }
.tabbar a.on .pill { background: #0b0f1a; color: #fff; box-shadow: 0 6px 14px rgba(11,15,26,.28); }
.tabbar a.on .pill .ic { fill: currentColor; fill-opacity: .2; }
.tabbar a:active .pill { background: #0b0f1a; color: #fff; transform: scale(.8); transition-duration: .1s, .1s, .1s; }
.tabbar a .pill.pop { animation: tabpop .55s cubic-bezier(.3,1.5,.5,1); }
@keyframes tabpop { 0% { transform: scale(.8); } 38% { transform: scale(1.18) translateY(-3px); } 62% { transform: scale(.94); } 82% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tabbar a .pill, .tabbar a .pill.pop { animation: none; transition: background .01s; } .tabbar a:active .pill { transform: none; } }

/* ---- 后台：批量导入商品（Excel / CSV） ---- */
.adm-btns { display: inline-flex; gap: 8px; }
.imp-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.imp-step > b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #0b0f1a; color: #fff; display: grid; place-items: center; font-size: 13px; margin-top: 1px; }
.imp-step .t { font-weight: 700; }
.imp-step .t small { display: block; margin-top: 2px; color: var(--sub); font-weight: 400; font-size: 12px; }
.imp-step .btn { margin-top: 8px; }
.imp-fn { margin-left: 10px; font-size: 12px; color: var(--sub); word-break: break-all; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.imp-sum span { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef1f6; color: var(--sub); }
.imp-sum .ok { background: #dff5ec; color: #0f9f6e; } .imp-sum .bad { background: #ffe8ed; color: #d6304f; } .imp-sum .skip { background: #fff3d6; color: #8a5a00; }
.imp-list { max-height: 34vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.imp-row { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.imp-row:last-child { border-bottom: 0; }
.imp-row .rn { flex: none; width: 48px; font-family: var(--mono); font-size: 12px; color: var(--sub); padding-top: 1px; }
.imp-row .nm { flex: 1; min-width: 0; }
.imp-row .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-row .st { display: block; font-size: 12px; line-height: 1.45; }
.imp-row.ok .st { color: #0f9f6e; } .imp-row.bad .st { color: #d6304f; } .imp-row.skip .st, .imp-row.warn .st { color: #8a5a00; }
.imp-more { padding: 8px 10px; font-size: 12px; color: var(--sub); text-align: center; }

/* ======== 开盒结果页：「恭喜获得」——黑底、橙金标题、切角边框的暗色卡片（稀有度配色照参考图） ======== */
.reveal.rv-dark, .reveal.rv-result { background: linear-gradient(115deg, rgba(255,255,255,.04) 0 14%, transparent 14% 33%, rgba(255,255,255,.028) 33% 58%, transparent 58% 80%, rgba(255,255,255,.03) 80%), radial-gradient(90% 46% at 50% 14%, #25252b, #060608 72%), #060608; }
.rv-title { width: min(100%, 480px); display: flex; align-items: center; justify-content: center; gap: 12px; padding: calc(52px + env(safe-area-inset-top)) 14px 0; }
.rv-title span { font-size: 36px; line-height: 1.2; font-weight: 900; letter-spacing: .1em; text-indent: .1em; background: linear-gradient(180deg, #ffe2b0 0%, #ffa54a 52%, #e0641c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255,140,40,.5)); }
.rv-title::before, .rv-title::after { content: ""; flex: 1; height: 14px; min-width: 24px;
  background: linear-gradient(90deg, transparent, #c4601a 55%, #ff9a3c) 0 6px / 100% 2px no-repeat, linear-gradient(90deg, transparent 38%, #ff9a3c 38% 46%, transparent 46% 52%, #ff9a3c 52% 60%, transparent 60% 66%, #c4601a 66% 74%, transparent 74%) 0 2px / 100% 2px no-repeat; }
.rv-title::after { transform: scaleX(-1); }
.reveal.rv-result .rv-sum { padding: 8px 16px 0; }
.reveal.rv-result .rv-sum small { opacity: .62; }
.reveal.rv-result .rv-sum b { font-size: 26px; margin: 2px 0; display: block; background: linear-gradient(180deg, #ffe9b8, #ffb54d); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.reveal.rv-result .rgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 10px; width: min(100%, 480px); padding: 26px 12px 0; }
.reveal.rv-result .rgrid.one { width: min(100%, 480px); padding-top: 30px; }

/* 卡片：外层是边框色，::before 画切角边框，::after 是切角深色卡面；装饰线放在卡片外沿 */
.reveal .rcard { --rc: #3b82f6; --cut: 12px; --cut2: 18px;
  position: relative; isolation: isolate; overflow: visible; flex: 0 0 calc((100% - 20px) / 3); max-width: 138px; aspect-ratio: 5 / 7; padding: 30px 8px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff;
  --text: #fff; --sub: #9aa0b4; display: flex; flex-direction: column; }
.reveal .rcard.legend { --rc: #ff4f70; } .reveal .rcard.epic { --rc: #f2b34b; } .reveal .rcard.rare { --rc: #5b5be6; } .reveal .rcard.common { --rc: #3b82f6; }
.reveal .rgrid.one .rcard { flex-basis: 210px; max-width: 210px; padding-top: 34px; }
.reveal .rcard::before, .reveal .rcard.legend::before, .reveal .rcard.epic::before, .reveal .rcard::after, .reveal .rcard.legend::after, .reveal .rcard.epic::after {
  content: ""; display: block; position: absolute; z-index: -1; left: 0; top: 0; right: 0; bottom: 0; width: auto; height: auto; margin: 0; animation: none; will-change: auto; transform: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut2)) 0, 100% var(--cut2), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut2) 100%, 0 calc(100% - var(--cut2)), 0 var(--cut)); }
.reveal .rcard::before, .reveal .rcard.legend::before, .reveal .rcard.epic::before { background: linear-gradient(180deg, var(--rc) 0, var(--rc) 46%, #f1f2f6 74%, #f1f2f6 100%); }
.reveal .rcard::after, .reveal .rcard.legend::after, .reveal .rcard.epic::after { z-index: -1; inset: 1.5px; border-radius: 0;
  background: linear-gradient(135deg, #0a0a0d 0%, #2a2a30 38%, #101013 62%, #1a1a1f 100%); }
.reveal .rcard .rc-top, .reveal .rcard .rc-bot { position: absolute; left: 10px; right: 6px; height: 7px; pointer-events: none; }
.reveal .rcard .rc-top { top: -6px; background: linear-gradient(var(--rc), var(--rc)) 0 0 / 100% 1.5px no-repeat, linear-gradient(var(--rc), var(--rc)) 14% 4px / 70% 1.5px no-repeat, linear-gradient(var(--rc), var(--rc)) 30px 0 / 14px 6px no-repeat; opacity: .9; clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); }
.reveal .rcard .rc-bot { bottom: -5px; left: 14px; right: 12px; background: linear-gradient(#f1f2f6, #f1f2f6) 0 3px / 40% 1.5px no-repeat, linear-gradient(#f1f2f6, #f1f2f6) 60% 0 / 40% 1.5px no-repeat; opacity: .85; }
.reveal .rcard .rc-rar { position: absolute; left: 14px; top: 10px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--rc); }
.reveal .rcard.rare .rc-rar { color: #7b7bff; }
.reveal .rcard .free, .reveal .rcard .gtag { right: 14px; top: 9px; border-radius: 3px; font-size: 10px; padding: 0 5px; }
.reveal .rcard .gtag.low { top: 28px; }
.reveal .rcard .istage, .reveal .rcard.legend .istage, .reveal .rcard.epic .istage, .reveal .rcard.rare .istage { flex: 1; min-height: 0; height: auto; margin: 0 2px; background: transparent; border-radius: 10px; box-shadow: none; }
.reveal .rcard .istage::after { bottom: 6px; background: rgba(255,255,255,.1); }
.reveal .rcard .istage.hasimg { background: #fff; margin: 0 6px; }
.reveal .rcard .iem { font-size: 46px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.reveal .rgrid.one .rcard .iem { font-size: 80px; }
.reveal .rcard .istage.hasimg .iem.pic { padding: 4px; object-fit: contain; filter: none; }
.reveal .rcard .inm { min-height: 0; margin: 8px 2px 0; font-size: 11.5px; font-weight: 600; color: #f4f5fa; text-align: center; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal .rcard .rc-price { margin: 4px 0 2px; text-align: center; font-size: 11.5px; font-style: italic; font-weight: 700; color: #fff; letter-spacing: .02em; }
.reveal .rgrid.one .rcard .inm { font-size: 14px; } .reveal .rgrid.one .rcard .rc-price { font-size: 14px; }
.reveal.rv-result .rmeta { opacity: .5; }
.reveal.rv-result .rbar { background: linear-gradient(0deg, #060608 62%, rgba(6,6,8,0)); }
.reveal.rv-result .rbar .btn.ghost { background: rgba(255,255,255,.06); color: #ffd7a1; box-shadow: inset 0 0 0 1px rgba(255,170,80,.55); }
.reveal.rv-result .rbar .btn:not(.ghost) { background: linear-gradient(180deg, #ffb45c, #e8691c); color: #2a1100; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(232,105,28,.35); }
.reveal .rcard .free, .reveal .rcard .gtag { right: 10px; top: 32px; }
.reveal .rcard .gtag.low { top: 52px; }
.reveal .rcard.legend { filter: drop-shadow(0 0 9px rgba(255,79,112,.5)); }
.reveal .rcard.epic { filter: drop-shadow(0 0 9px rgba(242,179,75,.42)); }

/* ---- 开奖动画：三排商品从左往右滚动，依次减速，停在中间的准星里 ---- */
.rv-reels { --s: 88px; --gap: 8px; --rg: 14px; position: relative; width: min(100%, 480px); margin-top: 13vh; display: flex; flex-direction: column; gap: var(--rg); }
.rv-reel { height: calc(var(--s) + 8px); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.rv-track { display: flex; gap: var(--gap); width: max-content; padding-top: 4px; will-change: transform; }
.rv-tile { --rc: #3b82f6; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #17171b, #2e2e35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.rv-tile::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.rv-tile.legend { --rc: #ff4f70; } .rv-tile.epic { --rc: #f2b34b; } .rv-tile.rare { --rc: #5b5be6; } .rv-tile.common { --rc: #3b82f6; }
.rv-tile .iem { font-size: calc(var(--s) * .52); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.rv-tile.hasimg { background: #fff; }
.rv-tile .iem.pic { padding: 7px; object-fit: contain; filter: none; }
.rv-tile.landed { transform: scale(1.08); z-index: 1; box-shadow: 0 0 0 2px var(--rc), 0 0 22px var(--rc); transition: transform .25s cubic-bezier(.2,1.6,.4,1), box-shadow .25s; }
/* 准星：竖着穿过三排 */
.rv-ptr { position: absolute; left: 50%; top: -12px; bottom: -12px; width: calc(var(--s) + 20px); margin-left: calc((var(--s) + 20px) / -2); border-radius: 14px; pointer-events: none; z-index: 2;
  border: 2px solid #ffb04a; box-shadow: 0 0 22px rgba(255,150,50,.55), inset 0 0 18px rgba(255,150,50,.2); animation: ptrpulse 1.1s ease-in-out infinite; }
.rv-ptr::before, .rv-ptr::after { content: ""; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.rv-ptr::before { top: -2px; border-top-color: #ffb04a; } .rv-ptr::after { bottom: -2px; border-bottom-color: #ffb04a; }
.rv-reels.done .rv-ptr { animation: none; border-color: #fff; box-shadow: 0 0 30px rgba(255,190,100,.9), inset 0 0 24px rgba(255,190,100,.4); }
@keyframes ptrpulse { 50% { box-shadow: 0 0 34px rgba(255,150,50,.85), inset 0 0 22px rgba(255,150,50,.32); } }
.reveal.rv-dark .rv-hint { margin-top: 26px; color: #ffd7a1; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .rv-ptr { animation: none; } }

/* 一抽：一排大的，放在屏幕中间；五抽以内：中等；十抽：很密的 10 排，标题缩小腾地方 */
.reveal.rv-one .rv-reels { margin-top: 17vh; }
.reveal.rv-one .rv-tile.landed { transform: scale(1.06); }
.reveal.rv-dense .rv-title { padding-top: calc(36px + env(safe-area-inset-top)); }
.reveal.rv-dense .rv-title span { font-size: 28px; }
.reveal.rv-dense .rv-reels { margin-top: 18px; }
.reveal.rv-dense .rv-tile { border-radius: 7px; }
.reveal.rv-dense .rv-tile::after { left: 6px; right: 6px; height: 2px; }
.reveal.rv-dense .rv-ptr { top: -6px; bottom: -6px; border-radius: 10px; }
.reveal.rv-dense .rv-hint { margin-top: 18px; }
.reveal.rv-mid .rv-reels { margin-top: 9vh; }

/* ===== 后台·概率：公开记录时间线 ===== */
.ofeed { background: #fff; border-radius: 18px; margin: 12px 16px 0; padding: 14px 14px 8px; box-shadow: var(--sh-1); }
.ofeed .row b { display: inline-flex; align-items: center; gap: 6px; }
.obar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.otl-list { position: relative; margin: 8px 0 0 5px; padding-left: 16px; }
.otl-list::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line); }
.otl { position: relative; padding: 7px 0 9px; }
.otl:not(:last-child) { border-bottom: 1px dashed var(--line); }
.otl .dot { position: absolute; left: -17px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #9aa3b5; }
.otl:first-child .dot { background: #0b0f1a; box-shadow: none; }
.otl.new .dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.otl .row b { font-size: 13px; font-weight: 700; line-height: 1.7; min-width: 0; }
.otl .row > .small { white-space: nowrap; }
.otl .obox { font-weight: 800; }
.otl .diff { margin-top: 2px; color: var(--ink2); font-weight: 600; }
.tag.fresh { background: #16a34a; color: #fff; box-shadow: none; }
.otl-more { margin: 4px 0 6px 21px; }
.arow .abtns .btn .ic { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }
.olog .diff, .otl .diff { color: #0a6e8a; }
.otl .oh { flex-wrap: wrap; row-gap: 0; }
.otl .oh b { white-space: nowrap; }
.otl .oh .small { margin-left: auto; }
.otl .onote { margin-top: 1px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.tag.cur { background: #0b0f1a; color: #fff; box-shadow: none; }

/* ===== 结果页：稀有 / 史诗 / 传说卡片的流彩边框（彩色沿着边框一圈一圈流动） ===== */
@property --rca { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.reveal .rcard.rare, .reveal .rcard.epic, .reveal .rcard.legend { --bw: 2.5px; }
.reveal .rcard.rare::before, .reveal .rcard.epic::before, .reveal .rcard.legend::before {
  background: conic-gradient(from var(--rca) at 50% 50%, var(--f1), var(--f2), var(--f3), var(--f4), var(--f1));
  animation: rcspin var(--fs, 3.2s) linear infinite; }
.reveal .rcard.rare::after, .reveal .rcard.epic::after, .reveal .rcard.legend::after { inset: var(--bw); }
.reveal .rcard.legend { --f1: #ffd66b; --f2: #ff4f70; --f3: #a855f7; --f4: #22d3ee; --fs: 2.4s; filter: drop-shadow(0 0 10px rgba(255,100,150,.55)); }
.reveal .rcard.epic   { --f1: #f6c24d; --f2: #ff7ab0; --f3: #8b5cf6; --f4: #ff9a3c; --fs: 3s;   filter: drop-shadow(0 0 9px rgba(246,160,90,.5)); }
.reveal .rcard.rare   { --f1: #3b82f6; --f2: #22d3ee; --f3: #8b5cf6; --f4: #60a5fa; --fs: 3.6s; filter: drop-shadow(0 0 8px rgba(80,140,255,.5)); }
.reveal .rcard.rare .rc-rar, .reveal .rcard.epic .rc-rar, .reveal .rcard.legend .rc-rar { text-shadow: 0 0 8px currentColor; }
@keyframes rcspin { to { --rca: 360deg; } }
@media (prefers-reduced-motion: reduce) { .reveal .rcard.rare::before, .reveal .rcard.epic::before, .reveal .rcard.legend::before { animation: none; } }

/* ===== 登录弹窗：顶部插画 + 要点 + 大按钮 + 关闭键（颜色跟随主题，没传图时用礼盒插画） ===== */
.mask.pop-mask { align-items: center; justify-content: center; padding: 18px 0; overflow: auto; background: rgba(8,10,24,.76); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.popup { position: relative; width: min(84vw, 330px); margin: auto; display: flex; flex-direction: column; align-items: center; animation: popin .5s cubic-bezier(.2,1.25,.3,1) both; }
.pop-rays { position: absolute; left: 50%; top: 150px; width: 640px; height: 640px; margin: -320px 0 0 -320px; pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,170,0) 0 9deg, rgba(255,236,170,.2) 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 66%); mask: radial-gradient(circle, #000 14%, transparent 66%); animation: popspin 28s linear infinite; }
.pop-card { position: relative; z-index: 1; width: 100%; border-radius: 28px; overflow: hidden; background: #fff7e6; box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.6); }
.pop-hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 206px; padding: 24px 14px 44px; overflow: hidden; color: #fff;
  background: radial-gradient(90% 70% at 50% 105%, var(--f1), transparent 70%), linear-gradient(170deg, var(--f1) -10%, var(--f2) 55%, var(--f3) 125%); }
.pop-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 30px; background: #fff7e6; border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 3; }
.pop-title { position: relative; z-index: 2; margin: 0 0 2px; max-width: 100%; text-align: center; font-size: 32px; line-height: 1.15; font-weight: 900; letter-spacing: .04em; color: #fff; word-break: break-all;
  text-shadow: -2px -2px 0 var(--f3), 2px -2px 0 var(--f3), -2px 2px 0 var(--f3), 2px 2px 0 var(--f3), 0 -2px 0 var(--f3), 0 2px 0 var(--f3), -2px 0 0 var(--f3), 2px 0 0 var(--f3), 0 5px 0 rgba(0,0,0,.2), 0 9px 16px rgba(0,0,0,.28); }
.pop-art { position: relative; z-index: 2; margin-top: 2px; }
.pop-hero .pc { position: absolute; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4b8, #f6c24d 55%, #c98a12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 4px 8px rgba(0,0,0,.25); animation: pcfloat 3.4s ease-in-out infinite; }
.pop-hero .pc.c1 { left: 11%; top: 42%; } .pop-hero .pc.c2 { right: 9%; top: 30%; width: 28px; height: 28px; animation-delay: -1.2s; }
.pop-hero .pc.c3 { left: 21%; bottom: 24%; width: 15px; height: 15px; animation-delay: -2s; } .pop-hero .pc.c4 { right: 20%; bottom: 28%; width: 18px; height: 18px; animation-delay: -.6s; }
.popup.pic .pop-hero { display: block; min-height: 0; padding: 0; aspect-ratio: 4 / 3; background: #e9ebf2; }
.popup.pic .pop-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-panel { position: relative; padding: 2px 20px 24px; text-align: center; color: #5b3a12; background: linear-gradient(180deg, #fff7e6, #ffe8bd); }
.pop-h { margin: 0 0 4px; font-size: 22px; font-weight: 900; color: #8a3a06; word-break: break-all; }
.pop-sub { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #a9742f; }
.pop-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; text-align: left; }
.pop-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; font-weight: 700; line-height: 1.42; word-break: break-all; }
.pop-list .ic { flex: none; width: 19px; height: 19px; padding: 3px; margin-top: 1px; border-radius: 50%; background: #ff7a29; color: #fff; stroke-width: 3.2; }
.pop-cta { position: relative; z-index: 1; margin-top: 20px; min-width: 190px; max-width: 100%; height: 52px; padding: 0 30px; border-radius: 28px; font-size: 19px; font-weight: 900; letter-spacing: .08em; color: #fff;
  background: linear-gradient(180deg, #ffb347, #ff6a2b 58%, #ff4d1f); border: 3px solid #ffe3c0; text-shadow: 0 2px 0 rgba(150,40,0,.5);
  box-shadow: 0 6px 0 #c2410c, 0 14px 26px rgba(255,90,30,.42), inset 0 2px 0 rgba(255,255,255,.6); transition: transform .12s, box-shadow .12s; }
.pop-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #c2410c, 0 6px 12px rgba(255,90,30,.4), inset 0 2px 0 rgba(255,255,255,.6); }
.pop-x { position: relative; z-index: 1; margin-top: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.12); transition: transform .15s, background .15s; }
.pop-x:active { transform: scale(.88); background: rgba(255,255,255,.28); }
.pop-x .ic { width: 18px; height: 18px; stroke-width: 2.8; }
@keyframes popin { from { transform: scale(.7) translateY(34px); opacity: 0; } }
@keyframes popspin { to { transform: rotate(360deg); } }
@keyframes pcfloat { 50% { transform: translateY(-9px) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .popup, .pop-rays, .pop-hero .pc { animation: none; } }
/* 后台：编辑弹窗时的预览（缩小显示，不能点） */
.pop-pv { display: flex; justify-content: center; padding: 14px 0 10px; border-radius: 14px; background: #1b2038; overflow: hidden; }
.pop-pv .popup { width: 330px; zoom: .68; margin: 0; animation: none; pointer-events: none; }
.pop-pv .pop-rays, .pop-pv .pop-hero .pc { animation: none; }
.pop-sw { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f5fa; }
.pop-sw input { flex: none; width: 22px; height: 22px; accent-color: #0a8fb0; }
.pop-sw b { display: block; font-size: 14px; } .pop-sw small { display: block; font-size: 12px; color: var(--sub); }
.field textarea { width: 100%; min-height: 92px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #f6f7fa; color: var(--text); resize: vertical; line-height: 1.5; font: inherit; }
.field textarea:focus { outline: none; border-color: #0a8fb0; box-shadow: 0 0 0 3px rgba(10,143,176,.16); }
.pop-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup.bare .pop-panel, .popup.bare .pop-hero::after { display: none; }
/* 结果页底部不再有小字：给最后一排卡片和底栏之间留点空 */
.reveal.rv-result .rgrid { padding-bottom: 26px; }

/* ===== 福利中心 / 爬塔 / 图鉴 / 首页宫格 / 后台数据 ===== */
.tabs { overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; padding: 0 12px; position: relative; white-space: nowrap; }
.rdot { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ff4f70; color: #fff; font: 800 10.5px/16px var(--num, inherit); font-style: normal; text-align: center; }

.wgrid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin: 14px 16px 0; }
.wg { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); text-align: left; min-width: 0; overflow: hidden; }
.wg b { font-size: 14px; }
.wg small { font-size: 11.5px; color: var(--sub); line-height: 1.35; }
.wg .bar { margin-top: 5px; }
.wg-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 4px; color: #fff; }
.wg-ic .ic { width: 19px; height: 19px; }
.wg-ic.g { background: var(--foil); color: #4a3000; }
.wg-ic.r { background: linear-gradient(160deg, #ff7d95, var(--ribbon-d, #e03a5a)); }
.wg-ic.v { background: linear-gradient(160deg, #a58bff, #6a45da); }
.wg-main { grid-row: 1 / span 2; justify-content: flex-end; min-height: 150px; background: linear-gradient(160deg, #fff8e1, #ffe29a 70%, #f6c24d); box-shadow: 0 8px 22px rgba(246,194,77,.35), inset 0 0 0 1px rgba(214,150,20,.35); }
.wg-main b { font-size: 18px; color: #3a2500; }
.wg-main small { color: #7a5a14; }
.wg-art { position: absolute; right: -8px; top: 8px; width: 86px; height: 86px; color: rgba(190,125,0,.55); transform: rotate(8deg); }
.wg-art .ic { width: 100%; height: 100%; stroke-width: 1.1; }
.wg-badge { font-style: normal; align-self: flex-start; margin-top: 6px; padding: 2px 9px; border-radius: 99px; background: #ff4f70; color: #fff; font-size: 11px; font-weight: 800; }
.wg-daily, .wg-tower { grid-column: 2 / span 2; }
.wg-gift { grid-column: 1; } .wg-rank { grid-column: 2 / span 2; }

.trow { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.trow .bar { margin: 7px 0 3px; }
.trow.rdy, .floor.rdy { box-shadow: 0 4px 14px rgba(246,194,77,.3), inset 0 0 0 1.5px #f5b83d; }
.trow.got { opacity: .65; }
.trw { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; flex: none; }
.trw .num { font-weight: 800; color: #b57a00; }
.trw small { font-size: 10.5px; color: var(--sub); }

.tw-sum .tw-big { font-size: 16px; font-weight: 800; margin: 6px 0 4px; line-height: 1.4; }
.tower { display: flex; flex-direction: column; gap: 8px; margin: 10px 16px 0; }
.floor { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.floor .fl-n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: #ebedf2; color: var(--sub); flex: none; }
.floor.got .fl-n { background: #d9f5e6; color: #12804a; }
.floor.rdy .fl-n { background: var(--foil); color: #4a3000; }
.floor.cur { box-shadow: 0 4px 14px rgba(10,143,176,.14), inset 0 0 0 1.5px rgba(10,143,176,.55); }
.floor.cur .fl-n { background: rgba(10,143,176,.12); color: #0a6e8a; }
.floor.lock { opacity: .6; }
.floor .bar { margin-top: 6px; }
.floor .muted .ic, .floor > .muted .ic { width: 18px; height: 18px; }


.statg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 16px 0; }
.statg > div { padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; }
.statg b { font-size: 20px; }
.statg span { font-size: 11.5px; color: var(--sub); }
.funnel .fn + .fn { margin-top: 12px; }
.funnel .fn .row { font-size: 13px; margin-bottom: 5px; }
.tag.muted { background: #8a93a8; color: #fff; }

/* 盒中商品详情页：沿用商城商品详情的框架，主图底色按稀有度区分 */
.mp-hero.legend { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #fff0c8); }
.mp-hero.epic { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #ebe4ff); }
.mp-hero.rare { background: radial-gradient(78% 78% at 50% 50%, #fff 58%, #e1ecff); }
.mp-hero.hasimg { background: #fff; }

/* 盒中商品卡：有主图时图片铺满整个展示区（和商城商品卡一样，正方形、cover、不留白边） */
.icard .istage.hasimg { height: auto; aspect-ratio: 1; }
.icard .istage.hasimg .iem.pic { padding: 0; object-fit: cover; }

/* ===== 展台：图片商品铺满一个正面打开的大礼盒 =====
   有主图的商品：盒子换成正面的大盒子（顶部丝带 + 盒盖），商品图铺满整个盒内（cover，不留白边）；没主图的仍是立体礼盒 + 表情图标。
   盒子里有图片时 .sc 整体加高（tall），这样在图片商品和表情商品之间轮播时页面不会跳。 */
.sc.tall { height: 276px; margin-top: 30px; }
.sc .pbox { display: none; }
.sc.pic .art3d { display: none; }
.sc.pic .pbox { display: block; position: absolute; left: 50%; top: 30px; width: 236px; height: 242px; margin-left: -118px; border-radius: 5px; z-index: 1;
  background: linear-gradient(180deg, var(--f2), var(--f3)); box-shadow: 0 16px 22px -8px rgba(0,0,0,.38), inset 0 0 0 2px rgba(255,255,255,.2); }
.pbox::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -14px; height: 16px; border-radius: 50%; background: rgba(20,18,58,.28); filter: blur(6px); z-index: -1; }
.pbox .pb-lid { position: absolute; left: -8px; right: -8px; top: -8px; height: 30px; border-radius: 6px; background: linear-gradient(180deg, var(--f1), var(--f2)); box-shadow: 0 4px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.55); }
.pbox .pb-bow { position: absolute; left: 50%; top: -58px; width: 132px; height: 56px; margin-left: -66px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.28)); }
.sc.pic .sc-item { left: 50%; top: 60px; width: 208px; height: 198px; margin-left: -104px; animation: none; z-index: 2; overflow: hidden; border-radius: 2px; background: var(--f3); }
.sc.pic .sc-item .iem.pic { position: static; width: 100%; height: 100%; margin: 0; padding: 0; object-fit: cover; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; }
.sc.pic .sc-item.swap .iem.pic { animation: picin .55s cubic-bezier(.2,1,.3,1); }
.sc.pic .sc-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 14px 16px -8px rgba(0,0,0,.42), inset 14px 0 14px -10px rgba(0,0,0,.3), inset -14px 0 14px -10px rgba(0,0,0,.3); }
@keyframes picin { from { transform: scale(1.12); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sc.pic .sc-item.swap .iem.pic { animation: none; } }

/* 盒中商品卡：有主图的卡片，图片铺到卡片边缘（顶部、左右都没有内边距） */
.icard.pics { padding: 0 0 10px; }
.icard.pics .istage { border-radius: 0; }
.icard.pics .rtag { left: 8px; top: 8px; }
.icard.pics .inm { margin: 8px 10px 0; }
.icard.pics .imeta { margin: 2px 10px 0; }

/* ===== 桶装礼盒封面（首页盲盒卡片） ===== */
.bcard .bart.bkart { width: 128px; padding: 8px 0 4px; }
.bk { display: inline-block; position: relative; vertical-align: top; }
.bk-in { position: absolute; left: 0; top: 0; width: 240px; height: 236px; transform-origin: 0 0; }
.bk-in > svg { position: absolute; left: 0; top: 0; width: 240px; height: 236px; overflow: visible; }
.bk-in > svg.bk-front { z-index: 5; }
.bk .f2 { fill: var(--f2); } .bk .f3 { fill: var(--f3); }
.bk-it { position: absolute; display: grid; place-items: center; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 5px 10px rgba(0,0,0,.28); }
.bk-it span { font-size: calc(var(--s) * .62); line-height: 1; }
.bk-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-it.legend { box-shadow: 0 0 0 3px #f6c24d, 0 5px 12px rgba(246,194,77,.5); }
.bk-it.epic { box-shadow: 0 0 0 3px #8b5cf6, 0 5px 12px rgba(139,92,246,.45); }
.bk-it.rare { box-shadow: 0 0 0 3px #3b82f6, 0 5px 10px rgba(0,0,0,.28); }
.bk-tx text { fill: #fff; font-weight: 900; font-style: italic; stroke: rgba(24,10,70,.6); stroke-width: 3.2px; paint-order: stroke; stroke-linejoin: round; }

/* ===== 返回手势：左边缘往右滑时跟着手指的圆形箭头 ===== */
.swb { position: fixed; left: 0; top: 50%; z-index: 200; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  color: #fff; background: rgba(13,27,61,.82); box-shadow: 0 6px 18px rgba(13,27,61,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateX(calc(var(--x, 0px) - 46px)) scale(.86); transition: background .15s, transform .12s; will-change: transform, opacity; }
.swb .ic { width: 22px; height: 22px; }
.swb.ready { background: #1fb6e6; color: #04121f; transform: translateX(calc(var(--x, 0px) - 46px)) scale(1.06); }
.swb.out { transition: transform .2s ease, opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .swb, .swb.out { transition: none; } }

/* ===== 盒子页展台：背景图里自带展示台，商品站在台上 =====
   两套背景图方案（app.js 里的 STAGE_BG 选）：.ice 冰蓝丝绸 + 玻璃展示台（浅色）、.gold 黑金展示台（深色）。
   每套给出：背景图、图高 / 图宽（--arf）、台面中心在图里的位置（--cxf 横向占宽度比例，--byf 纵向占“宽度”的比例）和一组配色。 */
.stage.luxe { --W: min(100vw, 480px); --by: calc(var(--W) * var(--byf)); padding: 0 0 40px; color: var(--ink); overflow: hidden; }
.stage.luxe.gold { --arf: 1.00347; --byf: .7847; --cxf: .483; background: #17150f;
  --ink: #f3e6c4; --name: #f6ead0; --card: rgba(255,255,255,.07); --cardline: rgba(246,194,77,.28); --pill: rgba(0,0,0,.55); --pillink: #f6c24d; --pillsub: #b9a77f; --pillline: rgba(246,194,77,.55);
  --dot: rgba(255,255,255,.28); --doton: #f6c24d; --arrbg: rgba(0,0,0,.4); --arrline: rgba(246,194,77,.45); --ring: rgba(243,230,196,.9); --shd: rgba(0,0,0,.55); --blend: screen; --beamk: 52%; --glowk: 48%; }
.stage.luxe.ice { --arf: 1.0379; --byf: .7614; --cxf: .504; background: linear-gradient(180deg, #dfe5ee 0, #dfe5ee 30%, #b9c9df 80%);
  --ink: #12254d; --name: #12254d; --card: rgba(255,255,255,.58); --cardline: rgba(18,37,77,.14); --pill: #0b1634; --pillink: #f6c24d; --pillsub: #9fb2d6; --pillline: rgba(246,194,77,.5);
  --dot: rgba(18,37,77,.22); --doton: #12254d; --arrbg: rgba(255,255,255,.55); --arrline: rgba(18,37,77,.18); --ring: #fff; --shd: rgba(35,55,110,.42); --blend: normal; --beamk: 26%; --glowk: 34%; }
.stage.luxe.gold .sc::before { background-image: url(/stage-bg.webp); }
.stage.luxe.ice .sc::before { background-image: url(/stage-bg-ice.webp); }
.stage.luxe .nav { position: absolute; left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); z-index: 6; margin: 0; }
.stage.luxe .nav, .stage.luxe .nav .back, .stage.luxe .nav .navlink, .stage.luxe .nav .ttl { color: var(--ink); }
.stage.luxe .nav .back:active { background: rgba(127,127,127,.18); }
.stage.luxe .sc { --lt: var(--common); position: relative; width: 100%; height: calc(var(--W) * var(--arf)); margin: 0; }
.stage.luxe .sc[data-rar="legend"] { --lt: var(--legend); } .stage.luxe .sc[data-rar="epic"] { --lt: var(--epic); } .stage.luxe .sc[data-rar="rare"] { --lt: var(--rare); }
.stage.luxe .sc::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: 0; opacity: 1; animation: none; z-index: 0;
  background-position: 50% 0; background-size: 100% 100%; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 90%, transparent); }
/* 台面上的一团光和往上打的一束光，颜色跟着稀有度 */
.stage.luxe .sc-glow { position: absolute; left: calc(var(--cxf) * 100%); top: calc(var(--by) - 150px); width: 340px; height: 200px; margin-left: -170px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lt) var(--glowk), transparent), transparent); filter: blur(4px); }
.stage.luxe .sc-beam { position: absolute; left: calc(var(--cxf) * 100%); top: calc(var(--by) - 250px); width: 270px; height: 250px; margin-left: -135px; pointer-events: none; mix-blend-mode: var(--blend);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0, 0 0); filter: blur(5px);
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--lt) var(--beamk), transparent) 26%, transparent 94%); }
.stage.luxe .sc-rar { left: 14px; top: 58px; }
/* 商品：emoji 悬在台面上方轻轻浮动；非白底的照片是一张圆角图卡，立在台面上；白底图抠掉底后直接站在台面上 */
.stage.luxe .sc .sc-item { position: absolute; left: calc(var(--cxf) * 100%); top: calc(var(--by) - 168px); width: 150px; height: 136px; margin-left: -75px; display: flex; align-items: flex-end; justify-content: center; z-index: 3; }
.stage.luxe .sc .sc-item .iem { font-size: 112px; line-height: 1; filter: drop-shadow(0 10px 14px var(--shd)) drop-shadow(0 0 16px color-mix(in srgb, var(--lt) 35%, transparent)); }
.stage.luxe .sc.pic .sc-item { top: calc(var(--by) - 182px); width: 192px; height: 192px; margin-left: -96px; display: block; overflow: hidden; border-radius: 22px; background: #fff; animation: none;
  box-shadow: 0 0 0 3px var(--ring), 0 16px 30px var(--shd); }
.stage.luxe .sc.pic .sc-item::after { display: none; }
.stage.luxe .sc.pic .sc-item .iem.pic { filter: none; }
.stage.luxe .sc.pic.cut .sc-item { left: 0; top: 0; width: 100%; height: 100%; margin: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; pointer-events: none; }
.stage.luxe .sc.pic.cut .sc-item .iem.pic { position: absolute; max-width: none; object-fit: fill; filter: drop-shadow(0 8px 10px var(--shd)) drop-shadow(0 0 14px color-mix(in srgb, var(--lt) 28%, transparent)); }
/* 左右切换：箭头按钮 + 滑动，新商品从滑动的方向滑入 */
.stage.luxe .sc-arr { position: absolute; top: calc(var(--by) - 118px); z-index: 5; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: var(--arrbg); box-shadow: inset 0 0 0 1px var(--arrline), 0 6px 14px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .12s, opacity .2s; }
.stage.luxe .sc-arr.l { left: 12px; } .stage.luxe .sc-arr.r { right: 12px; }
.stage.luxe .sc-arr:active { transform: scale(.9); }
.stage.luxe .sc-arr .ic { width: 22px; height: 22px; }
@keyframes slin-r { from { transform: translateX(54px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slin-l { from { transform: translateX(-54px); opacity: 0; } to { transform: none; opacity: 1; } }
.stage.luxe .sc .sc-item.slide-r .iem, .stage.luxe .sc.pic .sc-item.slide-r .iem.pic { animation: slin-r .38s cubic-bezier(.2,.9,.3,1) both; }
.stage.luxe .sc .sc-item.slide-l .iem, .stage.luxe .sc.pic .sc-item.slide-l .iem.pic { animation: slin-l .38s cubic-bezier(.2,.9,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .stage.luxe .sc .sc-item.slide-r .iem, .stage.luxe .sc .sc-item.slide-l .iem, .stage.luxe .sc.pic .sc-item.slide-r .iem.pic, .stage.luxe .sc.pic .sc-item.slide-l .iem.pic { animation: none; } }
/* 名称 / 价格 / 页码点 */
.stage.luxe .sc-name { margin: 6px 16px 0; background: var(--card); color: var(--name); box-shadow: inset 0 0 0 1px var(--cardline); }
.stage.luxe .sc-price { background: var(--pill); color: var(--pillink); box-shadow: inset 0 0 0 1px var(--pillline), 0 8px 20px rgba(13,27,61,.2); }
.stage.luxe .sc-price small { color: var(--pillsub); }
.stage.luxe .sc-dots i { background: var(--dot); }
.stage.luxe .sc-dots i.on { background: var(--doton); box-shadow: none; }

/* 主图下面的「自动抠掉白底」开关 */
.mcut { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink, #0d1b3d); cursor: pointer; }
.mcut input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #1fb6e6; flex: none; }
.mcut small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--sub, #6b7ba0); line-height: 1.4; }

/* 抠掉白底的商品图（透明 PNG）：图片的底不再强制刷成白色，让商品直接落在各自卡片的稀有度底色上，和页面融在一起。
   整张铺满的白底 JPEG 会盖住底色，所以老图看上去不变。 */
.pcard .istage.hasimg, .icard .istage.hasimg { background: radial-gradient(70% 70% at 50% 55%, #fff, #eef2fb); }
.icard.legend .istage.hasimg { background: radial-gradient(70% 70% at 50% 55%, #fffdf6, #ffeebb); }
.icard.epic .istage.hasimg { background: radial-gradient(70% 70% at 50% 55%, #fcfaff, #e6dcff); }
.icard.rare .istage.hasimg { background: radial-gradient(70% 70% at 50% 55%, #f9fbff, #dbe8ff); }
.reveal .rcard .istage.hasimg { background: transparent; }

/* ===== 盒中商品卡（照参考图）：浅蓝白斜纹卡面，左上角宝石徽章，商品居中，名称两行，红色“参考价” =====
   只作用在盒子页的 .igrid 里；开盒结果、仓库、商城不受影响。获得概率放在右上角的小标签里，公示的概率一个都不能少。 */
.igrid { gap: 12px; padding: 10px 16px 0; }
.igrid .icard[class] {
  --ca: #d6e2f8; --cc: #eef3fd; --cbr: 112,146,224; --pr: #c95068;
  padding: 0 0 13px; border: 0; border-radius: 6px; background: #fff; overflow: hidden; isolation: isolate;
  box-shadow: 0 6px 18px rgba(24,44,96,.2);
}
.igrid .icard.legend { --ca: #f7c25a; --cc: #ffe3b3; --cbr: 217,138,10; }
.igrid .icard.epic { --ca: #e4dafa; --cc: #f5f0fe; --cbr: 150,116,226; }
.igrid .icard.rare { --ca: #d3e7fa; --cc: #eef6fe; --cbr: 80,150,225; }
.igrid .icard.common { --ca: #e2e7ef; --cc: #f3f5f9; --cbr: 140,152,176; }
.igrid .icard[class]::before {
  content: ""; position: absolute; inset: 0; left: 0; top: 0; width: auto; height: auto; margin: 0; z-index: -1; border-radius: 0; animation: none; will-change: auto;
  background:
    linear-gradient(110deg, transparent 0 76%, rgba(255,255,255,.95) 76% 76.7%, transparent 76.7%),
    linear-gradient(110deg, transparent 0 90%, rgba(var(--cbr),.34) 90% 90.6%, transparent 90.6%),
    linear-gradient(114deg, transparent 0 20%, rgba(255,255,255,.9) 20% 20.6%, transparent 20.6%),
    linear-gradient(146deg, transparent 0 60%, rgba(var(--cbr),.2) 60% 84%, transparent 84%),
    linear-gradient(146deg, transparent 0 20%, rgba(255,255,255,.62) 20% 47%, transparent 47%),
    linear-gradient(180deg, var(--ca) 0%, var(--cc) 36%, #fff 64%, var(--cc) 100%);
}
.igrid .icard[class]::after { content: none; }
.igrid .icard.tap:active { transform: scale(.985); }
/* 左上角徽章：一颗彩色宝石 + 稀有度，渐变底，斜体字 */
.igrid .icard .rtag { left: 9px; top: 10px; height: 20px; padding: 0 8px 0 24px; line-height: 20px; border-radius: 6px; font-size: 12.5px; font-weight: 700; font-style: normal; letter-spacing: .14em; color: #fff; vertical-align: top;
  text-shadow: 0 1px 1px rgba(10,20,80,.3); background: linear-gradient(90deg, #3f6bff, #7b3ff2); box-shadow: 0 2px 6px rgba(70,70,210,.35); }
.igrid .icard .rtag.epic { background: linear-gradient(90deg, #9a5cff, #e25cf0); box-shadow: 0 2px 6px rgba(170,80,220,.35); }
.igrid .icard .rtag.rare { background: linear-gradient(90deg, #1f9aff, #20c4e6); box-shadow: 0 2px 6px rgba(30,150,230,.35); }
.igrid .icard .rtag.common { background: linear-gradient(90deg, #8996b2, #aab5cb); box-shadow: 0 2px 6px rgba(100,115,150,.3); }
.rtag .gem { position: absolute; left: -5px; top: 50%; width: 25px; height: 25px; margin-top: -12.5px; clip-path: polygon(50% 0, 100% 27%, 100% 73%, 50% 100%, 0 73%, 0 27%);
  background: conic-gradient(from 25deg, #ff6b9a, #ffc14d, #7dffa0, #4dc8ff, #9a6bff, #ff6b9a); }
.rtag .gem::after { content: ""; position: absolute; inset: 5px; clip-path: polygon(50% 0, 100% 27%, 100% 73%, 50% 100%, 0 73%, 0 27%); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.25)); }
/* 商品图：居中，没有框；白底老图用“正片叠底”融进卡面 */
.igrid .icard[class] .istage[class] { height: auto; aspect-ratio: 1; width: 76%; margin: 36px auto 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.igrid .icard .istage .iem { font-size: 74px; }
.igrid .icard .istage::after { bottom: 4px; width: 64px; margin-left: -32px; background: rgba(40,60,120,.14); }
.igrid .icard .istage.hasimg .iem.pic { padding: 0; object-fit: contain; mix-blend-mode: multiply; }
.igrid .icard .istage .dtag { right: -4px; bottom: -2px; }
/* 名称两行，参考价红色加粗 */
.igrid .icard { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.igrid .icard .inm { margin: 8px 12px 0; min-height: 36px; font-size: 13px; font-weight: 400; line-height: 1.4; color: #222; letter-spacing: 0; }
.igrid .icard .imeta { display: flex; align-items: baseline; justify-content: flex-start; margin: 6px 12px 0; white-space: nowrap; }
.igrid .icard .imeta .ilab { font-size: 11px; font-weight: 500; color: #a9afbc; }
.igrid .icard .imeta .ip { font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--pr); }

/* ===== 开奖画面 / 恭喜获得：商品的底统一成“珍珠白斜纹”（和盒子页的商品卡同一套）=====
   转动的小格子和结果卡里的图片区都用它；商品图用“正片叠底”叠上去，白底图（包括没抠底的老图）不会露出白方块。
   稀有度仍然靠格子底部的色条、停下时的发光和卡片边框来区分。 */
.reveal { --pearl: linear-gradient(110deg, transparent 0 62%, rgba(255,255,255,.95) 62% 63.4%, transparent 63.4%), linear-gradient(146deg, transparent 0 18%, rgba(255,255,255,.62) 18% 50%, transparent 50%), linear-gradient(180deg, #d3e0f7, #f2f6fd 58%, #fff); }
.rv-tile[class], .rv-tile.hasimg[class] { background: var(--pearl); }
.rv-tile .iem { filter: drop-shadow(0 3px 4px rgba(30,50,110,.3)); }
.rv-tile .iem.pic, .reveal .rcard .istage.hasimg .iem.pic { mix-blend-mode: multiply; }
.reveal .rcard[class] .istage[class] { background: var(--pearl); }
.reveal .rcard .istage::after { background: rgba(40,60,120,.16); }
.reveal .rcard .iem { filter: drop-shadow(0 4px 6px rgba(30,50,110,.3)); }

/* ===== 商城商品框（照参考图）：方正的白卡，大图居中，名称一行，大号黑色价格，橙红色幸运币价 =====
   只作用在商城页的 .mall 里。金边（.can）仍表示你现在就能兑换。 */
.mall { gap: 16px 14px; }
.mall .pcard[class] { padding: 0 0 14px; border: 0; border-radius: 2px; background: #fff; box-shadow: 0 6px 16px rgba(30,40,70,.14); overflow: hidden; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.mall .pcard.can[class] { box-shadow: 0 0 0 2px var(--cyan), 0 6px 16px rgba(30,40,70,.14); }
.mall .pcard .istage[class] { height: auto; aspect-ratio: 1; margin: 0; padding: 0; border-radius: 0; background: #fff; box-shadow: none; overflow: hidden; }
.mall .pcard .istage .iem { font-size: 78px; filter: drop-shadow(0 4px 5px rgba(30,50,110,.22)); }
.mall .pcard .istage::after { bottom: 20%; background: rgba(40,60,120,.12); }
.mall .pcard .istage.hasimg .iem.pic { padding: 6px; object-fit: contain; }
.mall .pcard .pnm { display: -webkit-box; margin: 8px 12px 0; min-height: 2.8em; font-size: 14px; font-weight: 400; line-height: 1.4; color: #333; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* 名称最多两行（商品名称可以到 60 字），固定占两行高度，一排里价格对齐 */
.mall .pcard .pref { margin: 5px 12px 0; font-size: 21px; font-weight: 700; line-height: 1.25; color: #111; font-variant-numeric: tabular-nums; }
.mall .pcard .pref small { font-size: 13px; font-weight: 700; margin-right: 1px; }
.mall .pcard .pcoin { margin: 3px 12px 0; font-size: 14px; font-weight: 500; color: #f0521f; font-variant-numeric: tabular-nums; }

/* ===== 商城商品详情的购买栏：左边客服，右边两个按钮（幸运币兑换 / 余额购买） ===== */
.mp-bar { align-items: stretch; gap: 8px; }
.mp-bar .mp-svc { flex: none; width: 52px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: transparent; color: #4b5a7a; font-size: 11px; font-weight: 700; box-shadow: none; }
.mp-bar .mp-svc .ic { width: 24px; height: 24px; }
.mp-bar .mp-svc:active { transform: scale(.94); background: rgba(13,27,61,.06); }
.buybar .b1.short, .buybar .b1:disabled { background: #dfe3ec; color: #8a96ad; box-shadow: none; }
.mp-hold { margin-top: 8px; }
.mp-hold b { color: #a4710a; font-weight: 800; }

/* 空状态里的行动按钮（例如仓库没有商品时的“去逛逛”） */
.empty .empty-go { margin-top: 18px; min-width: 148px; height: 44px; padding: 0 28px; font-size: 15px; }

/* ===== 传说统一用“获得概率”里传说款那一档的金橙色（#f5b83d → #ff6a5a，字 / 边 #d98a0a）：盒子页卡面和徽章、开奖小格子、结果卡 ===== */
.igrid .icard .rtag.legend { background: linear-gradient(90deg, #f5b83d, #ff6a5a); box-shadow: 0 2px 6px rgba(240,120,50,.4); }
.rv-tile.legend { --rc: #f59a35; }
.reveal .rcard.legend { --rc: #f59a35; --f1: #ffd36b; --f2: #f5b83d; --f3: #ff6a5a; --f4: #ffb347; filter: drop-shadow(0 0 10px rgba(245,140,50,.55)); }

/* ===== 传说配色统一（其它页面）：标签、概率条、商品底都用同一组金橙色，和“获得概率”里的传说款一致 ===== */
.tag.legend { background: linear-gradient(90deg, #f5b83d, #ff6a5a); }
.prob .legend { background: linear-gradient(90deg, #f5b83d, #ff6a5a); box-shadow: 0 0 10px rgba(245,150,60,.4); }
.sart.legend, .ii-hero.legend, .mp-hero.legend { background: radial-gradient(78% 78% at 50% 50%, #fff 56%, #ffe3b3); }
.bk-it.legend { box-shadow: 0 0 0 3px #f5a53d, 0 5px 12px rgba(245,150,60,.5); }

/* 后台概率：确认生成新版本的提示卡 */
.ocf { box-shadow: inset 0 0 0 1.5px rgba(246,194,77,.85); margin: 0; }

/* iPhone 上输入框字号小于 16px 时，点进去页面会被自动放大，登录完也不会缩回来：整页偏右、右边和底栏被切掉。
   触屏设备上所有输入类控件统一 16px（只改字号，高度、内边距不变），就不会触发自动放大 */
@media (pointer: coarse), (hover: none) { input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; } }
@supports (-webkit-touch-callout: none) { input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; } }

/* 盒子页的四个概率框（样式 .ptiles / .pt-tile 在前面） */

/* 后台「公式与演算」 */
.mth h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 800; }
.mth .fm { margin: 4px 0; padding: 7px 10px; border-radius: 10px; background: rgba(120,120,160,.09); font-size: 12.5px; line-height: 1.6; word-break: break-all; }
.mth .fm b { color: var(--ink2, #3b35a3); }
.mtw { overflow-x: auto; margin: 6px 0; }
.mt { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.mt th { text-align: left; font-weight: 700; color: var(--sub); padding: 5px 6px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mt td { padding: 5px 6px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.mt td.nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.mt tr.sub td { font-weight: 800; background: rgba(120,120,160,.07); }
.mt .tag { font-size: 10.5px; padding: 1px 6px; }
.mt.w td, .mt.w th { white-space: normal; }

.pgtiles { margin: 12px 16px 0; }

/* ABA 付款弹窗 */
.paybox { text-align: center; padding: 4px 0 12px; }
.pay-amt { font-size: 30px; font-weight: 900; }
.pay-qr { display: block; width: min(280px, 78vw, 36vh); height: auto; margin: 12px auto 8px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pay-qr.dead { filter: grayscale(1); opacity: .3; }
.chlogo { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.chqr { display: block; width: 150px; max-width: 60%; height: auto; margin: 6px 0 8px; border-radius: 8px; background: #fff; }
/* 付款窗口里「取消订单 / 我已付款」固定贴在窗口底部：窗口矮、要往下滑时也一直看得到 */
.pay-acts { position: sticky; bottom: 0; z-index: 2; margin: 10px -16px 0; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 32%); }
#pdl { text-decoration: none; text-align: center; }

/* 后台用户管理 */
.ugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ukv { padding: 8px 10px; border-radius: 12px; background: rgba(120,120,160,.09); min-width: 0; }
.ukv span { display: block; font-size: 11.5px; color: var(--sub); }
.ukv b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.uh { margin: 16px 0 6px; font-size: 13.5px; font-weight: 800; }
.uln { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.uln > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uln > span:last-child { flex: none; text-align: right; font-size: 11.5px; }

/* 余额不足 → 充值页顶部的提示条 */
.tcard { display: flex; align-items: center; gap: 12px; box-shadow: inset 0 0 0 1.5px #f2b84b; background: #fff8e8; }
.tcard.ok { box-shadow: inset 0 0 0 1.5px #3cc28a; background: #eefbf4; }

/* 开奖结果页底部：再开 1 / 3 / 5 / 10 次四个选择 */
.rbar.rv-packs { gap: 8px; padding-left: 12px; padding-right: 12px; }
.rbar.rv-packs .rv-n { flex: 1 1 0; min-width: 0; height: auto; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 2px; line-height: 1.2; border-radius: 14px; }
.rbar.rv-packs .rv-n b { font-size: 13.5px; white-space: nowrap; line-height: 1.3; }
.rbar.rv-packs .rv-n small { font-size: 11px; font-weight: 700; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; line-height: 1.45; padding-bottom: 1px; }
.reveal.rv-result .rbar.rv-packs .btn.cur { background: linear-gradient(180deg, #ffb45c, #e8691c); color: #2a1100; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(232,105,28,.35); }
@media (max-width: 360px) { .rbar.rv-packs { gap: 6px; padding-left: 8px; padding-right: 8px; } .rbar.rv-packs .rv-n b { font-size: 12px; } .rbar.rv-packs .rv-n small { font-size: 10px; } }

/* 盒子页“首抽保障”条（样式沿用保底条） */
.pitybar.firstbar .pb-main small { display: block; margin-top: 2px; }
.pitybar.firstbar.used { opacity: .6; }

/* 后台盲盒列表：新人首抽开关 */
.nbsw { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(120,120,160,.09); font-size: 13px; }
.nbsw.on { background: #eefbf4; }
.nbsw b { font-weight: 800; }

.nbsw.nbt { justify-content: flex-start; background: rgba(120,120,160,.06); }
.nbsw.nbt input { width: 9.5em; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; }
.nbsw.nbt .btn { margin-left: auto; }
.nbsw.nbt span { white-space: nowrap; }
.nbsw.nbt input { flex: 1 1 auto; min-width: 0; width: auto; }
.nbsw.nbt .btn { margin-left: 0; flex: none; }

/* 客服弹窗：Telegram / Messenger 按钮（只用文字和品牌色，不放官方图标） */
.svc-btns { display: grid; gap: 10px; }
.btn.svc { height: auto; min-height: 50px; flex-direction: column; gap: 1px; padding: 9px 14px; text-decoration: none; color: #fff; border-radius: 14px; box-shadow: none; }
.btn.svc small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.btn.svc.tg { background: #229ed9; }
.btn.svc.fb { background: #0866ff; }
.svc-acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(120,120,160,.09); font-size: 13px; }

/* 后台发货 */
.tabs .tdot { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.arow.shipo .shipaddr { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(120,120,160,.08); font-size: 13px; }
.arow.shipo.pending { box-shadow: inset 3px 0 0 #f59e0b; }
/* 后台搜索框（发货 / 用户）和表单输入框一个样式 */
input#shq, input#uqs, input#lgq, input#wq { min-width: 0; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: #fff; font: inherit; font-size: 14px; }
input#shq:focus, input#uqs:focus, input#lgq:focus, input#wq:focus { outline: none; border-color: var(--ink2); box-shadow: 0 0 0 3px rgba(59,53,163,.12); }

/* 物流动态时间线 */
.evt { list-style: none; margin: 4px 0 0; padding: 0; }
.evt li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 0 0 14px 22px; }
.evt li > i { position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #c9cbd8; }
.evt li:not(:last-child)::before { content: ''; position: absolute; left: 9px; top: 16px; bottom: 0; width: 1.5px; background: #e1e3ec; }
.evt li.now > i { background: #12a05c; box-shadow: 0 0 0 4px rgba(18,160,92,.15); }
.evt li b { display: block; font-size: 13.5px; font-weight: 700; }
.evt li.now b { color: #0d7f48; }
.evt li small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.evline { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #eefbf4; text-align: left; font-size: 13px; }
.evline > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #12a05c; }
.evline b { display: block; font-weight: 700; color: #0d7f48; }
.evline small { display: block; font-size: 11.5px; color: var(--sub); }
.evline .ic { width: 15px; height: 15px; color: var(--sub); }
.smeta.evlast { color: #0d7f48; }
input#evt { min-width: 0; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: #fff; font: inherit; font-size: 14px; }

/* 后台操作日志（后台是灰白底白卡片） */
.lgbox { padding: 2px 14px 6px; }
.lgday { font-size: 12px; font-weight: 800; color: var(--sub); margin: 12px 0 0; letter-spacing: .02em; }
.lgr { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.lgday + .lgr { border-top: 0; }
.lgt { flex: none; width: 40px; padding-top: 1px; font-size: 12px; color: var(--sub); }
.lgh { font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.lgh b { font-weight: 800; }
.lgo { color: var(--text); font-weight: 500; }
.lgd { margin-top: 2px; font-size: 12.5px; line-height: 1.55; word-break: break-word; color: #33415c; }
.lgm { margin-top: 3px; font-size: 11.5px; color: var(--sub); }
.lgm a { color: #0a6e8a; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lgc { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; line-height: 1.7; vertical-align: 1px; color: var(--sub); background: rgba(13,27,61,.06); }
.lgc.c-odds { color: #a35f00; background: rgba(245,184,61,.2); }
.lgc.c-pay { color: #0f7f59; background: rgba(15,159,110,.12); }
.lgc.c-user { color: #5b3fd6; background: rgba(139,108,255,.13); }
.lgc.c-order { color: #0a6e8a; background: rgba(10,143,176,.11); }
.lgc.c-mall, .lgc.c-box, .lgc.c-item { color: #b4461a; background: rgba(255,140,64,.13); }
.lgr.fail .lgh b { color: #d92d4a; }
.lgr.fail .lgc { color: #d92d4a; background: rgba(255,90,119,.12); }
.lgwarn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #9f1239; background: #fff5f6; box-shadow: inset 0 0 0 1px rgba(217,45,74,.28), var(--sh-1); }
.lgwarn svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #d92d4a; }
.lgwarn b { color: #d92d4a; }

/* 我的 → 星盒 App；后台「App」 */
.appcard .appico { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 4px 12px rgba(5,10,24,.25); }
.appcard .btn { gap: 6px; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.appcard .btn .ic { width: 17px; height: 17px; }
.appcard .btn small { font-size: 11px; opacity: .7; font-weight: 600; margin-left: 2px; }
.isteps { list-style: none; margin: 4px 0 6px; padding: 0; }
.isteps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.isteps li:first-child { border-top: 0; }
.isteps li > b:first-child { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: #0a8fb0; margin-top: 1px; }

/* 横向滚动的标签栏 / 筛选条：两头渐隐 + 小箭头（还能往那边滑时才出现） */
.hsw { position: relative; }
.hsw > .tabs, .hsw > .chips { position: relative; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.hsw > .dragging { cursor: grabbing; user-select: none; }
.hsw::before, .hsw::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 46px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hsw::before { left: 1px; border-radius: 12px 0 0 12px; background: linear-gradient(90deg, var(--hsbg) 35%, rgba(255,255,255,0)); }
.hsw::after { right: 1px; border-radius: 0 12px 12px 0; background: linear-gradient(270deg, var(--hsbg) 35%, rgba(255,255,255,0)); }
.hsw.l::before, .hsw.r::after { opacity: 1; }
.hsa { position: absolute; top: 50%; z-index: 2; width: 26px; height: 26px; margin-top: -13px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a6e8a;
  box-shadow: 0 2px 8px rgba(13,27,61,.18), inset 0 0 0 1px rgba(10,143,176,.3); opacity: 0; pointer-events: none; transition: opacity .15s; cursor: pointer; }
.hsa .ic { width: 15px; height: 15px; }
.hsa.l { left: 4px; } .hsa.r { right: 4px; }
.hsw.l .hsa.l, .hsw.r .hsa.r { opacity: 1; pointer-events: auto; }

/* ===== 高棉语：Kantumruy Pro 字体（只用于高棉文字，中文、数字照旧），高棉文字上下有叠写符号，行高要大一些 ===== */
@font-face { font-family: "Kantumruy Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-400.woff2) format("woff2"); unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC; }
@font-face { font-family: "Kantumruy Pro"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-500.woff2) format("woff2"); unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC; }
@font-face { font-family: "Kantumruy Pro"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/kantumruy-pro-khmer-700.woff2) format("woff2"); unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC; }
body { font-family: "Kantumruy Pro", -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html.lang-km body { line-height: 1.62; }
/* 语言切换 */
.langsw { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(13,27,61,.06); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.langsw button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--sub); font-weight: 700; font-size: 13px; cursor: pointer; }
.langsw button.on { background: #fff; color: #0a6e8a; box-shadow: 0 1px 4px rgba(13,27,61,.14), inset 0 0 0 1px rgba(10,143,176,.4); }
.langsw.lgsw { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 3; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(110,175,255,.25); }
.langsw.lgsw button { color: #8aa1c6; }
.langsw.lgsw button.on { background: rgba(61,230,255,.16); color: #3de6ff; box-shadow: inset 0 0 0 1px rgba(80,225,255,.5); }
.login.sky { position: relative; }
/* 高棉文字是“叠写”的：字间距不为 0 时浏览器会把一个字拆开显示，所以高棉语模式下字间距统一为 0；
   等宽数字字体里没有高棉文字，Kantumruy Pro 排在最前面（它只管高棉文字，数字照样用等宽字体） */
html.lang-km { --mono: "Kantumruy Pro", ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
html.lang-km body *, html.lang-km body *::before, html.lang-km body *::after { letter-spacing: 0 !important; }
html.lang-km .mono { font-family: "Kantumruy Pro", ui-monospace, Menlo, Consolas, monospace; }
html.lang-km .igrid .icard, html.lang-km .mall .pcard[class] { font-family: "Kantumruy Pro", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", sans-serif; }
html.lang-km input, html.lang-km button, html.lang-km select, html.lang-km textarea { font-family: inherit; }
/* 高棉语没有空格，浏览器靠词典断行；break-all / anywhere 会把一个字从中间断开，高棉语模式下改成按词断 */
html.lang-km body * { word-break: normal !important; overflow-wrap: break-word !important; }

/* ===== 取消订单 / 批量发货 / 价格表 / 员工 / Telegram / 隐私政策 ===== */
.btn.danger { background: linear-gradient(180deg, #ff6b6b, #d6304f); color: #fff; box-shadow: 0 6px 14px rgba(214,48,79,.28); }
.cxl { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff1f3; color: #b4233c; line-height: 1.55; }
.cxl b { color: #8f1328; }
.imp-err { margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px; background: #ffe8ed; color: #b4233c; font-size: 13px; line-height: 1.55; }
.imp-list > div:not([class]), .imp-list > .bad { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.imp-list > div:last-child { border-bottom: 0; }
.imp-list > .bad { color: #d6304f; }
.imp-list .tag { vertical-align: 1px; }
.imp-list + .small { margin: 6px 2px 10px; }
#sb-prev .imp-list, #pr-prev .imp-list { margin-bottom: 10px; }
.admwho { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 16px 0; font-size: 12.5px; color: var(--sub); }
.admwho span { display: inline-flex; align-items: center; gap: 5px; }
.admwho .ic { width: 15px; height: 15px; }
.secline { margin: 6px 16px 0; line-height: 1.6; }
.permtags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.ckgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ckgrid label { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; background: #f3f5f9; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ckgrid label:has(input:checked) { background: #e3f6fb; box-shadow: inset 0 0 0 1.5px rgba(10,143,176,.45); }
.ckgrid input { width: 16px; height: 16px; margin: 0; accent-color: #0a8fb0; }
@media (max-width: 360px) { .ckgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lgagree { margin: -4px 0 12px; }
.lgagree a, .lglinks a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lglinks { margin: 14px 16px 0; color: var(--sub); }
.login .lglinks { margin: 18px 0 calc(18px + env(safe-area-inset-bottom)); opacity: .8; }
.lgsep { margin: 0 8px; opacity: .6; }
/* Telegram 一键登录：分隔线 + 按钮 */
.lgor { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--sub); font-size: 12px; }
.lgor::before, .lgor::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tgbtn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tgbtn svg { width: 18px; height: 18px; flex: none; }
.lgagree.tgagree { margin: 8px 0 0; text-align: center; }
.legal { padding: 18px 18px 8px; line-height: 1.75; font-size: 14px; }
.legal h2 { font-size: 19px; margin: 0 0 4px; }
.legal h4 { font-size: 15px; margin: 18px 0 6px; }
.legal p { margin: 0 0 8px; }
.legal ul { margin: 0 0 8px; padding-left: 20px; }
.legal li { margin: 0 0 6px; }
.legal .lg-date { color: var(--sub); font-size: 12.5px; margin-bottom: 10px; }
.legal a { color: #0a6e8a; }
html.lang-km .legal { line-height: 1.9; }
.tag.kind { background: #e9eef6; color: #3b4a66; }
/* 登录页（深色）上弹出的抽屉（找回密码）：抽屉本身是白底，要用浅色主题的文字颜色 */
#app.login-on .sheet {
  color-scheme: light;
  --text: #0d1b3d; --sub: #6b7a99; --line: rgba(13,27,61,.1); --edge: rgba(13,27,61,.09); --edge-hi: rgba(8,128,160,.4); --cyan: #0a8fb0; --ok: #0f9f6e;
  --glass: #fff; --glass-solid: #fff; --foil-a: #a4710a; --foil-b: #b97f0c; --hud-c: rgba(10,143,176,.4); --sh-1: 0 6px 18px rgba(30,40,90,.09), 0 1px 2px rgba(30,40,90,.06);
  color: var(--text);
}
/* ===== 管理后台（独立页面 /admin、单文件版的 #admin）：没有底部标签栏 ===== */
#app.admin-app { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.admtop h1 { display: flex; align-items: center; gap: 8px; padding-left: 10px; }
.admtop h1 .ic { width: 20px; height: 20px; }
.admlink { flex: none; font-size: 13px; font-weight: 700; color: var(--cyan); padding: 8px 6px; }
.ugrid .ukv small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--sub); font-weight: 500; }
.wlist .uln > span:last-child { text-align: right; flex: none; padding-left: 10px; }
.wlist .uln { align-items: flex-start; }
#wgU { width: 100%; min-height: 92px; padding: 10px 12px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: #f6f7fa; font: inherit; font-size: 16px; resize: vertical; }
/* ===== 后台「高棉语」：后台录入文字的译文 ===== */
.kmlist { padding: 4px 14px; }
.kmrow { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kmrow:last-child { border-bottom: 0; }
.kmrow.unused { opacity: .6; }
.kmzh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.kmzh b { font-size: 14px; }
.kmzh span { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.kmzh i { font-style: normal; }
.kmin { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: #f6f7fa; font: inherit; font-size: 16px; font-family: "Kantumruy Pro", -apple-system, "PingFang SC", sans-serif; }
.kmin:focus { outline: none; box-shadow: inset 0 0 0 1.5px #0a8fb0, 0 0 0 3px rgba(10,143,176,.12); }
.kmin::placeholder { color: #9aa5ba; }
.kmbar { position: sticky; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #ebedf2 30%); }
/* ===== 登录 / 注册：显示密码、边输边提示、错误提示 ===== */
.pwbox { position: relative; }
.pwbox input { padding-right: 48px !important; }
.pweye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--sub); background: none; }
.pweye .ic { width: 20px; height: 20px; }
.pweye:active { background: rgba(127,127,160,.14); }
.fhint { font-size: 12px; line-height: 1.5; margin: 5px 2px 0; }
.fhint:empty { display: none; }
.fhint.bad { color: #ff8fa3; }
.fhint.ok { color: var(--ok); }
.lgerr { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.55; background: rgba(255,90,119,.14); color: #ffb3c1; box-shadow: inset 0 0 0 1px rgba(255,90,119,.35); }
.lgerr[hidden] { display: none; }
.agree a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.login .btn[disabled] { opacity: .7; }

/* ---- 后台「商品」标签：商城 + 盲盒奖品合一 ---- */
.gseg { margin: 12px 16px 0; }
.gseg button { height: 38px; }
.gsrch { margin: 10px 16px 0; }
.gchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gchips button { height: 30px; padding: 0 12px; border-radius: 15px; font-weight: 700; font-size: 12.5px; background: #fff; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.gchips button.on { background: rgba(10,143,176,.1); color: #0a6e8a; box-shadow: inset 0 0 0 1px rgba(10,143,176,.5); }
.gdiff { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(245,158,11,.12); color: #8a5a00; font-size: 12.5px; line-height: 1.5; }
.gsel { margin: 4px 0 8px; }
.gsel .mcut { margin-top: 10px; }
[hidden] { display: none !important; }
.pickrow .prar { height: 28px; border-radius: 8px; font-size: 12px; padding: 0 4px; max-width: 64px; flex: none; }

/* 盒中商品卡：抠好底的商品直接盖在卡面背景前面，不再和背景花纹“正片叠底” */
.igrid .icard .istage.hasimg .iem.pic.cut { mix-blend-mode: normal; }

/* ---- 商城分类管理 / 选择商品批量移分类 ---- */
.gcatrow { gap: 8px; margin-top: 10px; align-items: center; }
.gcatrow select { flex: 1; min-width: 0; height: 34px; border-radius: 10px; padding: 0 8px; font-size: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.arow .top .gck { display: flex; align-items: center; flex: none; padding-right: 2px; }
.arow .top .gck input { width: 20px; height: 20px; accent-color: #1fb6e6; }
.gbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -6px 18px rgba(20,18,58,.14); backdrop-filter: blur(8px); }
.gbar .grow { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; font-size: 13px; min-width: 0; }
.gbar .linkbtn { font-size: 12px; padding: 0; }
.gbar select { height: 34px; max-width: 120px; border-radius: 10px; padding: 0 6px; font-size: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.catlist { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.catrow { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(120,120,160,.08); }
.catrow .grow { min-width: 0; font-size: 14px; }
.catrow input.grow { height: 34px; border-radius: 8px; padding: 0 8px; }
.catrow .btn { flex: none; }
.catrow .btn.mv { min-width: 34px; padding: 0 8px; }
.catrow .btn:disabled { opacity: .35; }
.catrow .btn.danger { color: var(--ribbon-d); }
.adm-sum { flex-wrap: wrap; row-gap: 8px; }
.adm-sum > .muted { flex: 1 1 130px; }
.adm-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* 游客逛逛：首页右上角的“登录”，登录页上的提示条 */
.glogin { height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 14px; font-weight: 700; color: inherit; }
.lgwhy { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #fff6df; color: #7a5200; font-size: 13px; font-weight: 600; line-height: 1.4; }
.lgwhy .ic { width: 18px; height: 18px; flex: none; }
