/* =====================================================================
   新澳门六合彩 · H5 前台 设计系统 "Aurora Gold"
   深色玻璃拟态 + 金色点睛 · 所有变量集中在 :root
   ===================================================================== */
:root {
  --bg: #0B0F1A;
  --bg2: #0f1526;
  --panel: rgba(255, 255, 255, .06);
  --panel2: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .10);
  --line2: rgba(255, 255, 255, .06);
  --txt: #E8ECF5;
  --muted: #8A93A8;
  --gold: #F5C451;
  --gold2: #FFE29A;
  --gold-dim: rgba(245, 196, 81, .16);
  --gold-glow: 0 0 18px rgba(245, 196, 81, .55), 0 0 42px rgba(245, 196, 81, .25);
  --red: #FF3B4E;
  --blue: #3B8BFF;
  --green: #2ED573;
  --ok: #2ED573;
  --warn: #F5C451;
  --err: #FF3B4E;
  --info: #3B8BFF;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  --r: 18px;
  --r-sm: 12px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --num: "DIN Alternate", "Roboto Mono", "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --top-h: 56px;
  --tab-h: 62px;
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
  --page-pad: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; height: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--txt); font-size: 14px; line-height: 1.5;
  min-height: 100%; overflow-x: hidden; overscroll-behavior-y: none;
  padding-top: calc(var(--top-h) + var(--sat)); padding-bottom: calc(var(--tab-h) + var(--sab));
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: rgba(245, 196, 81, .35); }
::-webkit-scrollbar { width: 0; height: 0; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ---------- 极光流光背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #182242 0%, var(--bg) 55%); }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; will-change: transform;
  width: 70vw; height: 70vw; max-width: 520px; max-height: 520px;
}
.aurora i:nth-child(1) { background: #3b4dff; top: -25vw; left: -20vw; animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: #b3821e; top: 10vh; right: -35vw; opacity: .22; animation: drift2 28s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: #6a2cff; bottom: -30vw; left: 10vw; opacity: .2; animation: drift3 34s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(30vw, 18vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-25vw, 30vh) scale(1.15); } }
@keyframes drift3 { to { transform: translate(20vw, -25vh) scale(1.1); } }
.stars {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.35) .6px, transparent 1px), radial-gradient(rgba(245,196,81,.35) .6px, transparent 1px);
  background-size: 90px 90px, 140px 140px; background-position: 0 0, 40px 60px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ---------- 玻璃卡 ---------- */
.glass {
  background: linear-gradient(160deg, var(--panel), var(--panel2));
  border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
}
.card { padding: 16px; margin: 0 var(--page-pad) 14px; position: relative; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.card-title svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.card-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 0 10px rgba(245,196,81,.6); }
.card-sub { font-size: 12px; color: var(--muted); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(var(--top-h) + var(--sat)); padding: var(--sat) var(--page-pad) 0;
  display: flex; align-items: center; justify-content: space-between; border-radius: 0; border-width: 0 0 1px;
  background: linear-gradient(180deg, rgba(11,15,26,.82), rgba(11,15,26,.6)); box-shadow: none;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--gold-glow); animation: floatY 5s ease-in-out infinite; }
.brand-logo svg { width: 34px; height: 34px; }
@keyframes floatY { 50% { transform: translateY(-3px); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; font-weight: 900; letter-spacing: .5px; background: linear-gradient(135deg, #fff 20%, var(--gold2) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 9px; letter-spacing: 2.2px; color: var(--muted); margin-top: 3px; }
.online-pill { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(46,213,115,.1); border: 1px solid rgba(46,213,115,.28); font-size: 12px; }
.online-pill .num { font-weight: 700; color: var(--ok); font-size: 13px; }
.online-pill .lbl { color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46,213,115,.6); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(46,213,115,0); } 100% { box-shadow: 0 0 0 0 rgba(46,213,115,0); } }

/* ---------- 视图切换 ---------- */
.view { min-height: calc(100vh - var(--top-h) - var(--tab-h)); padding-top: 12px; position: relative; }
.page { animation: pageIn .42s var(--ease) both; }
.page.from-left { animation-name: pageInL; }
@keyframes pageIn { from { opacity: 0; transform: translateX(28px) scale(.985); } }
@keyframes pageInL { from { opacity: 0; transform: translateX(-28px) scale(.985); } }
.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.stagger > * { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* ---------- 下拉刷新 ---------- */
.ptr { position: fixed; top: calc(var(--top-h) + var(--sat)); left: 0; right: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 8px; height: 0; overflow: hidden; color: var(--muted); font-size: 12px; transition: height .25s var(--ease); }
.ptr.show { height: 44px; }
.ptr-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(245,196,81,.25); border-top-color: var(--gold); transform: rotate(var(--rot, 0deg)); }
.ptr.loading .ptr-ring { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + var(--sab)); padding-bottom: var(--sab);
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 0; border-width: 1px 0 0;
  background: linear-gradient(180deg, rgba(15,21,38,.85), rgba(11,15,26,.95)); box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; transition: color .25s; overflow: hidden; }
.tab-ic { width: 24px; height: 24px; display: grid; place-items: center; transition: transform .45s var(--spring), filter .3s; }
.tab-ic svg { width: 22px; height: 22px; }
.tab.on { color: var(--gold); }
.tab.on .tab-ic { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 0 8px rgba(245,196,81,.8)); animation: tabBounce .55s var(--spring); }
@keyframes tabBounce { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-7px) scale(1.25); } 100% { transform: translateY(-3px) scale(1.12); } }
.tab.on .tab-tx { text-shadow: 0 0 10px rgba(245,196,81,.7); }
.tab-glow { position: absolute; top: 0; height: 2px; width: 25%; left: 0; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 14px var(--gold); transition: left .4s var(--spring); pointer-events: none; }
.tab-glow::after { content: ""; position: absolute; inset: 0 20%; top: 0; height: 26px; background: radial-gradient(ellipse at top, rgba(245,196,81,.28), transparent 70%); }

/* ---------- 涟漪 ---------- */
.ripple-host { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.35) 0%, rgba(255,255,255,.12) 45%, transparent 70%); transform: scale(0); animation: ripple .65s ease-out forwards; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--txt);
  background: rgba(255,255,255,.07); border: 1px solid var(--line); transition: transform .18s var(--spring), box-shadow .3s, background .25s, opacity .2s; user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-gold { color: #1a1300; background: linear-gradient(135deg, var(--gold2), var(--gold) 55%, #d9a53a); border-color: rgba(255,226,154,.6); box-shadow: 0 8px 24px rgba(245,196,81,.32), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn-ghost { background: transparent; border-color: rgba(245,196,81,.4); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-danger { color: #fff; background: linear-gradient(135deg, #ff6b7a, var(--red)); border-color: rgba(255,59,78,.5); }

/* ---------- 表单 ---------- */
.inp { width: 100%; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--txt); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-size: 15px; }
.inp::placeholder { color: rgba(138,147,168,.7); }
.inp:focus { border-color: rgba(245,196,81,.6); box-shadow: 0 0 0 3px rgba(245,196,81,.15); background: rgba(255,255,255,.07); }
.inp.err { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255,59,78,.15); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; padding-left: 2px; }
.field-err { font-size: 12px; color: var(--err); margin-top: 5px; min-height: 0; padding-left: 2px; animation: fadeUp .25s; }
.cap-row { display: flex; gap: 10px; }
.cap-row .inp { flex: 1; }
.cap-img { width: 110px; height: 46px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 12px; }
.cap-img svg { width: 100%; height: 100%; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- 骨架屏 ---------- */
.sk { position: relative; overflow: hidden; background: rgba(255,255,255,.06); border-radius: 10px; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent); transform: translateX(-100%); animation: skl 1.4s infinite; }
@keyframes skl { to { transform: translateX(100%); } }
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-ball { width: 40px; height: 40px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(var(--top-h) + var(--sat) + 10px); left: 0; right: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 11px 16px; border-radius: 14px; background: rgba(20,27,45,.92); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 13.5px; animation: toastIn .45s var(--spring) both; position: relative; overflow: hidden; }
.toast.leaving { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.95); } }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #0B0F1A; flex-shrink: 0; }
.toast.ok .t-ic { background: var(--ok); } .toast.err .t-ic { background: var(--err); color: #fff; } .toast.warn .t-ic { background: var(--warn); } .toast.info .t-ic { background: var(--info); color: #fff; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); animation: barRun linear forwards; }
@keyframes barRun { from { width: 100%; } to { width: 0; } }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4,6,12,.66); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .22s both; padding-bottom: var(--sab); }
.overlay.center { align-items: center; padding: 20px; }
.overlay.closing { animation: fadeOut .2s forwards; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.sheet { width: 100%; max-height: 88vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + var(--sab)); animation: sheetUp .38s var(--ease) both; }
.overlay.center .sheet { border-radius: 22px; width: min(420px, 100%); animation: popIn .35s var(--spring) both; padding-bottom: 18px; }
.overlay.closing .sheet { animation: sheetDown .2s ease forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } } @keyframes sheetDown { to { transform: translateY(30px); opacity: 0; } }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: -6px auto 14px; }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal-foot { display: flex; gap: 10px; margin-top: 16px; }
.modal-foot .btn { flex: 1; }

/* ---------- 轮播 ---------- */
.carousel { position: relative; margin: 0 var(--page-pad) 14px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; perspective: 1000px; }
.carousel .slides { position: absolute; inset: 0; transform-style: preserve-3d; }
.slide { position: absolute; inset: 0; will-change: transform, opacity; backface-visibility: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #1b2440, #2a1f4d); color: rgba(255,255,255,.55); font-size: 13px; letter-spacing: 1px; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 13px; font-weight: 700; background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
/* slide */
.carousel[data-fx="slide"] .slide { transition: transform var(--dur, .55s) var(--ease); transform: translateX(calc(var(--off) * 100%)); }
.carousel.dragging[data-fx="slide"] .slide { transition: none; }
/* fade */
.carousel[data-fx="fade"] .slide { opacity: 0; transition: opacity var(--dur, .7s) ease; }
.carousel[data-fx="fade"] .slide.cur { opacity: 1; }
/* zoom */
.carousel[data-fx="zoom"] .slide { opacity: 0; transform: scale(1.18); transition: opacity var(--dur, .7s) ease, transform var(--dur, .7s) var(--ease); }
.carousel[data-fx="zoom"] .slide.cur { opacity: 1; transform: scale(1); }
.carousel[data-fx="zoom"] .slide.prev { opacity: 0; transform: scale(.9); }
/* cube */
.carousel[data-fx="cube"] .slide { transition: transform var(--dur, .75s) var(--ease), opacity var(--dur, .75s); transform-origin: center center calc(var(--w, 340px) * -.5); transform: rotateY(calc(var(--off) * 90deg)); opacity: 0; }
.carousel[data-fx="cube"] .slide.cur, .carousel[data-fx="cube"] .slide.prev, .carousel[data-fx="cube"] .slide.next { opacity: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width .35s var(--spring), background .3s; }
.dot.on { width: 18px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- 开奖卡 ---------- */
.draw-card { padding: 18px 16px 16px; }
.draw-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(245,196,81,.55), transparent 40%, transparent 60%, rgba(245,196,81,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.draw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.draw-name { font-size: 17px; font-weight: 900; letter-spacing: .5px; }
.draw-name em { font-style: normal; color: var(--gold); text-shadow: 0 0 12px rgba(245,196,81,.5); }
.draw-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.draw-meta b { color: var(--txt); font-weight: 600; }
.badge-live { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(245,196,81,.3); white-space: nowrap; }
.balls { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 18px 0 8px; perspective: 600px; }
.ball-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 42px; }
.ball-wrap.sp { width: 46px; }
.ball { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-weight: 800; font-size: 16px; color: #fff; position: relative; text-shadow: 0 1px 2px rgba(0,0,0,.5); transform-style: preserve-3d; }
.ball::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.85) 0, rgba(255,255,255,.25) 18%, transparent 42%); }
.ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset -5px -7px 12px rgba(0,0,0,.42), inset 3px 4px 8px rgba(255,255,255,.18); }
.ball.red { background: radial-gradient(circle at 40% 35%, #ff8a95, var(--red) 55%, #9e0f1e); box-shadow: 0 6px 14px rgba(255,59,78,.4); }
.ball.blue { background: radial-gradient(circle at 40% 35%, #8fbcff, var(--blue) 55%, #123f9c); box-shadow: 0 6px 14px rgba(59,139,255,.4); }
.ball.green { background: radial-gradient(circle at 40% 35%, #8af0b1, var(--green) 55%, #10803f); box-shadow: 0 6px 14px rgba(46,213,115,.4); }
.ball.sm { width: 26px; height: 26px; font-size: 11.5px; }
.ball.sm::after { box-shadow: inset -3px -4px 7px rgba(0,0,0,.4), inset 2px 2px 4px rgba(255,255,255,.18); }
.ball.xs { width: 22px; height: 22px; font-size: 10px; }
.ball.sp-ball { width: 44px; height: 44px; font-size: 17px; }
.ball.sp-ball::after { box-shadow: inset -5px -7px 12px rgba(0,0,0,.42), inset 3px 4px 8px rgba(255,255,255,.18), 0 0 0 2px rgba(245,196,81,.55), 0 0 16px rgba(245,196,81,.55); }
.ball.xs.sp-ball { width: 24px; height: 24px; font-size: 10.5px; }
.ball.xs.sp-ball::after { box-shadow: inset -3px -4px 7px rgba(0,0,0,.4), inset 2px 2px 4px rgba(255,255,255,.18), 0 0 0 1.5px rgba(245,196,81,.6), 0 0 8px rgba(245,196,81,.5); }
.ball-zo { font-size: 11px; color: var(--muted); }
.ball-wrap.sp .ball-zo { color: var(--gold); font-weight: 700; }
.plus { width: 22px; height: 40px; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--gold); text-shadow: var(--gold-glow); animation: plusGlow 1.8s ease-in-out infinite alternate; }
@keyframes plusGlow { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.1); } }
/* 开奖逐球翻转落下 */
.balls.drop .ball-wrap { animation: ballDrop .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 120ms); }
.balls.drop .ball-wrap .ball { animation: ballSpin .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes ballDrop { 0% { opacity: 0; transform: translateY(-60px); } 60% { opacity: 1; transform: translateY(6px); } 100% { transform: translateY(0); } }
@keyframes ballSpin { 0% { transform: rotateX(-540deg) scale(.6); } 100% { transform: rotateX(0) scale(1); } }
.draw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.draw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: var(--muted); }
.tag b { color: var(--txt); font-weight: 700; }

/* 倒计时翻页 */
.countdown { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.14)); border: 1px solid var(--line2); }
.cd-lbl { font-size: 12px; color: var(--muted); }
.cd-group { display: flex; align-items: center; gap: 3px; }
.cd-sep { font-family: var(--num); font-size: 22px; font-weight: 800; color: var(--gold); animation: blink 1s steps(2) infinite; margin: 0 2px; }
@keyframes blink { 50% { opacity: .25; } }
.fd { position: relative; width: 26px; height: 38px; border-radius: 7px; background: linear-gradient(180deg, #1c2540 50%, #141b30 50%); border: 1px solid rgba(255,255,255,.1); overflow: hidden; font-family: var(--num); font-size: 24px; font-weight: 800; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.fd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.fd span { position: absolute; inset: 0; display: grid; place-items: center; }
.fd span.in { animation: fdIn .4s var(--ease) both; }
.fd span.out { animation: fdOut .4s var(--ease) both; }
@keyframes fdIn { from { transform: translateY(-100%) rotateX(60deg); opacity: 0; } }
@keyframes fdOut { to { transform: translateY(100%) rotateX(-60deg); opacity: 0; } }
.cd-unit { font-size: 10px; color: var(--muted); text-align: center; margin-top: 3px; }
.cd-waiting { color: var(--gold); font-weight: 700; font-size: 14px; animation: blink 1.2s steps(2) infinite; }

/* ---------- 网站分析 ---------- */
.ana-scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--page-pad) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ana-card { flex: 0 0 calc(100% - var(--page-pad) * 2); scroll-snap-align: center; padding: 16px; }
.ana-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ana-pos { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; }
.ana-pos .pos-no { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-family: var(--num); font-size: 14px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #1a1300; box-shadow: 0 4px 12px rgba(245,196,81,.35); }
.ana-pos.sp .pos-no { background: linear-gradient(135deg, #ff8a95, var(--red)); color: #fff; }
.ana-sec { font-size: 12px; color: var(--muted); margin: 12px 0 8px; display: flex; align-items: center; gap: 6px; }
.ana-sec::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); }
.cap i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-style: normal; font-weight: 800; font-size: 11.5px; color: #fff; }
.cap b { font-family: var(--num); font-weight: 800; font-size: 14px; }
.cap small { color: var(--muted); }
.c-red { background: var(--red); } .c-blue { background: var(--blue); } .c-green { background: var(--green); color: #05301a !important; }
.c-gold { background: var(--gold); color: #1a1300 !important; } .c-purple { background: #9b6bff; } .c-cyan { background: #22c1dd; color: #032a30 !important; } .c-pink { background: #ff6fb1; } .c-gray { background: #5b6478; }
.miss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.miss { font-size: 12px; }
.miss-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.miss-top b { font-family: var(--num); color: var(--gold); }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--bc, var(--gold)); box-shadow: 0 0 8px var(--bc, var(--gold)); transition: width 1s var(--ease); }
.ball-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ball-row .gap { font-size: 10px; color: var(--muted); margin-left: -3px; margin-right: 3px; }
.mini-ball { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.wave-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.wave-bar i { display: block; height: 100%; transition: width 1s var(--ease); }
.wave-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.wave-legend b { font-family: var(--num); }
.ana-dots { display: flex; justify-content: center; gap: 5px; margin: -4px 0 14px; }
.ana-dots .dot { background: rgba(255,255,255,.18); }
.ana-dots .dot.on { background: var(--gold); }

/* ---------- 历史页 ---------- */
.hist-top { position: sticky; top: calc(var(--top-h) + var(--sat)); z-index: 20; padding: 8px var(--page-pad) 10px; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.hist-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.back-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--txt); }
.back-btn svg { width: 18px; height: 18px; }
.hist-title { font-weight: 900; font-size: 17px; }
.hist-total { margin-left: auto; font-size: 12px; color: var(--muted); }
.hist-total b { color: var(--gold); font-family: var(--num); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { position: relative; overflow: hidden; flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line2); transition: all .25s; }
.chip.on { color: #1a1300; background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: transparent; box-shadow: 0 4px 14px rgba(245,196,81,.35); }
.vlist { position: relative; margin: 0 var(--page-pad); }
.vrow { position: absolute; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); contain: layout paint; }
.vrow.sk-row { justify-content: center; color: var(--muted); font-size: 12px; }
.vrow .vmeta { width: 84px; flex-shrink: 0; }
.vrow .vexp { font-family: var(--num); font-weight: 800; font-size: 13.5px; color: var(--gold); }
.vrow .vdate { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.vrow .vballs { display: flex; align-items: center; gap: 3px; flex: 1; justify-content: flex-end; }
.vrow .vballs .plus { height: 26px; font-size: 16px; width: 12px; animation: none; }
.vrow .mini-ball { font-size: 9px; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 13px; }
.empty .em-ic { font-size: 40px; margin-bottom: 8px; opacity: .6; }

/* ---------- 功能页 ---------- */
.lock-box { text-align: center; padding: 28px 16px 22px; }
.lock-ic { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dim); border: 1px solid rgba(245,196,81,.35); color: var(--gold); box-shadow: var(--gold-glow); animation: floatY 4s ease-in-out infinite; }
.lock-ic svg { width: 30px; height: 30px; }
.lock-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.lock-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.7; }
.pred-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pred-item { grid-column: span 2; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.pred-item.wide { grid-column: 1 / -1; }
.pred-item::after { content: ""; position: absolute; top: -30%; right: -20%; width: 60%; height: 100%; background: radial-gradient(circle, rgba(245,196,81,.12), transparent 70%); pointer-events: none; }
.pred-lbl { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pred-item:not(.wide) .pred-lbl { flex-direction: column; align-items: flex-start; }
.pred-item:not(.wide) .pred-picks { justify-content: center; }
.pick.c-red { background: rgba(255,59,78,.16); color: var(--red); border-color: rgba(255,59,78,.4); }
.pick.c-blue { background: rgba(59,139,255,.16); color: var(--blue); border-color: rgba(59,139,255,.4); }
.pick.c-green { background: rgba(46,213,115,.16); color: var(--green); border-color: rgba(46,213,115,.4); }
.pred-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { padding: 5px 10px; border-radius: 9px; font-weight: 800; font-size: 13px; background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,196,81,.3); }
.pick.lg { font-size: 18px; padding: 8px 16px; }
.ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring .bg { stroke: rgba(255,255,255,.08); }
.ring .fg { stroke: var(--gold); stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 4px rgba(245,196,81,.7)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--num); font-size: 11px; color: var(--gold); }
.pred-conf { display: flex; align-items: center; gap: 12px; }
.big-ring { width: 92px; height: 92px; } .big-ring svg { width: 92px; height: 92px; } .big-ring circle { stroke-width: 6; r: 40; } .big-ring .fg { stroke-dasharray: 251; stroke-dashoffset: 251; } .big-ring b { font-size: 20px; }
.stat-row { display: flex; gap: 10px; }
.stat-mini { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.stat-mini b { display: block; font-family: var(--num); font-size: 22px; font-weight: 800; color: var(--gold); }
.stat-mini span { font-size: 11px; color: var(--muted); }
.hit-list { display: flex; flex-direction: column; gap: 8px; }
.hit-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line2); font-size: 12.5px; }
.hit-row .hx { width: 60px; font-family: var(--num); font-weight: 800; color: var(--muted); flex-shrink: 0; }
.hit-row .hk { flex: 1; min-width: 0; }
.hit-row .hk small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex-shrink: 0; }
.hit-mark.yes { background: var(--gold); color: #1a1300; box-shadow: var(--gold-glow); animation: popIn .5s var(--spring) both; }
.hit-mark.no { background: rgba(255,255,255,.08); color: var(--muted); }
.hit-mark.wait { background: rgba(59,139,255,.15); color: var(--blue); }

/* ---------- 赞助商 ---------- */
.zone-title { display: flex; align-items: center; gap: 8px; margin: 4px var(--page-pad) 10px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.zone-title::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.ad { margin: 0 var(--page-pad) 12px; border-radius: var(--ad-r, 16px); overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.ad.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), var(--ad-c, var(--gold)), transparent 30%, transparent 60%, var(--ad-c, var(--gold))); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinAng 4s linear infinite; pointer-events: none; z-index: 2; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinAng { to { --ang: 360deg; } }
.ad-img img { width: 100%; height: var(--ad-h, auto); object-fit: cover; }
.ad-card { display: flex; gap: 12px; padding: 12px; align-items: center; }
.ad-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.ad-card .ad-tt { font-weight: 800; font-size: 14px; }
.ad-card .ad-ds { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.ad-card .ad-go { margin-left: auto; flex-shrink: 0; }
.ad-html { padding: 14px; font-size: 13px; line-height: 1.7; }
.ad-html h1, .ad-html h2, .ad-html h3, .ad-html h4 { margin: 0 0 6px; }
.ad-html p { margin: 0 0 6px; }
.ad-html img { border-radius: 10px; margin: 6px 0; }
.ad-html ul, .ad-html ol { padding-left: 18px; }

/* ---------- 我的 ---------- */
.login-card { padding: 24px 18px 20px; }
.login-hero { text-align: center; margin-bottom: 18px; }
.login-hero .brand-logo { width: 62px; height: 62px; margin: 0 auto 12px; }
.login-hero .brand-logo svg { width: 62px; height: 62px; }
.login-hero h2 { font-size: 20px; font-weight: 900; }
.login-hero p { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-top: 4px; }
.profile { padding: 18px 16px; display: flex; align-items: center; gap: 14px; }
.profile::after { content: ""; position: absolute; top: -40%; right: -10%; width: 55%; height: 140%; background: radial-gradient(circle, rgba(245,196,81,.18), transparent 70%); pointer-events: none; }
.avatar { width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--gold2), var(--gold), #b57d14); box-shadow: var(--gold-glow); flex-shrink: 0; }
.avatar img, .avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1c2540; font-size: 24px; font-weight: 900; color: var(--gold); }
.p-name { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-id { font-size: 12px; color: var(--muted); font-family: var(--num); margin-top: 3px; }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #1a1300; background: linear-gradient(135deg, var(--gold2), var(--gold)); box-shadow: 0 2px 10px rgba(245,196,81,.4); }
.acc { border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line2); margin-bottom: 8px; overflow: hidden; }
.acc-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 13.5px; }
.acc-h .arr { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--spring); }
.acc.open .acc-h .arr { transform: rotate(180deg); color: var(--gold); }
.acc-b { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); font-size: 13px; color: var(--muted); line-height: 1.7; }
.acc-b > div { padding: 0 14px 12px; }
.acc.open .acc-b { max-height: 600px; }
.acc-q { color: var(--gold); font-size: 11px; margin-right: 6px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line2); margin-bottom: 8px; font-size: 13.5px; }
.list-row .lr-lbl { color: var(--muted); flex-shrink: 0; }
.list-row .lr-val { margin-left: auto; text-align: right; word-break: break-all; }
.list-row .lr-val.tg { color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.list-row .lr-val.tg svg { width: 14px; height: 14px; }
.changelog { white-space: pre-wrap; font-size: 12px; color: var(--muted); line-height: 1.7; }
.mine-actions { margin: 0 var(--page-pad) 14px; display: flex; gap: 10px; }

/* ---------- 通用 ---------- */
.section-gap { height: 4px; }
.hint { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0 14px; }
.roll { display: inline-block; font-family: var(--num); }

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora i, .stars, .brand-logo, .plus, .live-dot, .btn-gold::after, .ad.glow::before, .cd-sep { animation: none !important; }
  .balls.drop .ball-wrap, .balls.drop .ball-wrap .ball, .page, .fade-up, .stagger > *, .tab.on .tab-ic { animation-duration: .01ms !important; }
  * { transition-duration: .01ms !important; }
}
@media (min-width: 560px) {
  body { max-width: 560px; margin: 0 auto; }
  .topbar, .tabbar, .toasts, .ptr { max-width: 560px; margin: 0 auto; }
}

/* ---------- 后台「主题特效开关」(/api/site → theme.{aurora,ballFlip,countdownFlip,ripple,skeleton,tabBounce}=false) ---------- */
body.fx-off-aurora .aurora i { animation: none; opacity: .12; }
body.fx-off-ripple .ripple { display: none; }
body.fx-off-ballFlip .balls.drop .ball-wrap, body.fx-off-ballFlip .balls.drop .ball-wrap .ball { animation: none; }
body.fx-off-countdownFlip .fd span.in, body.fx-off-countdownFlip .fd span.out { animation: none; }
body.fx-off-countdownFlip .fd span.out { display: none; }
body.fx-off-tabBounce .tab.on .tab-ic { animation: none; }
body.fx-off-skeleton .sk::after { animation: none; }
