/* ============ 新版奕渊 · 基础样式（三区共用） ============ */
:root {
  --ink: #04070f;
  --deep: #070d1c;
  --panel: rgba(15, 26, 46, .78);
  --panel-solid: #0f1a2e;
  --line: rgba(120, 160, 220, .18);
  --line-strong: rgba(120, 160, 220, .34);
  --text: #e8eefc;
  --text-dim: #8ea2c6;
  --text-mute: #62769a;
  --cyan: #00d9ff;
  --red: #e94560;
  --gold: #ffc107;
  --green: #2ee6a8;
  --violet: #8b7bff;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.front { display: flex; flex-direction: column; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- 背景 ---------- */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #10214a 0%, #070d1c 45%, #04070f 100%); }
.sky-glow { position: absolute; width: 120vw; height: 120vw; left: 50%; top: -60vw; transform: translateX(-50%); background: radial-gradient(circle, rgba(0, 217, 255, .16), transparent 60%); }
.sky-stars {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 78% 14%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.6px 1.6px at 34% 68%, rgba(160,220,255,.6), transparent),
    radial-gradient(1.1px 1.1px at 62% 42%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 88% 76%, rgba(0,217,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 6% 84%, rgba(255,255,255,.4), transparent);
  background-size: 42% 46%, 55% 61%, 48% 52%, 38% 44%, 70% 66%, 60% 58%;
  animation: starDrift 120s linear infinite;
  opacity: .9;
}
.sky-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(90,140,220,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(90,140,220,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}
@keyframes starDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-4%, -3%, 0); } }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 11, 24, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 800; letter-spacing: .08em; }
.brand-abyss { color: var(--red); font-size: 19px; }
.brand-orbit { color: #fff; font-size: 19px; }
.brand-sub { color: var(--text-mute); font-size: 12px; margin-left: 8px; letter-spacing: .3em; }

.top-nav { display: flex; gap: 18px; margin-left: 8px; flex-shrink: 0; white-space: nowrap; }
.tn-link { color: var(--text-dim); font-size: 14px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; white-space: nowrap; }
.tn-link:hover { color: #fff; }
.tn-link.is-on { color: #fff; border-color: var(--red); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn { background: none; border: 0; color: var(--text-mute); font-size: 12px; padding: 5px 10px; cursor: pointer; }
.lang-btn.is-on { background: rgba(0, 217, 255, .14); color: var(--cyan); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid transparent;
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--red), #b52c45); color: #fff; box-shadow: 0 8px 22px rgba(233, 69, 96, .28); }
.btn-gold { background: linear-gradient(135deg, #ffd35c, #f0a800); color: #241a00; box-shadow: 0 8px 22px rgba(255, 193, 7, .22); }
.btn-line { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
.btn-mini { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-tiny { padding: 3px 9px; font-size: 12px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; }
.btn-tiny:hover { color: var(--cyan); border-color: var(--cyan); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-close, .panel-close { background: none; border: 0; color: var(--text-mute); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------- 前台通用 ---------- */
.front-main { flex: 1 0 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 64px; }

.hero { padding: 40px 0 22px; }
.hero-copy { max-width: 720px; }
.hero-kicker { color: var(--cyan); font-size: 12px; letter-spacing: .34em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.14; margin: 0 0 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, var(--cyan) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--text-dim); font-size: 16px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; color: #fff; }
.hero-stats span { color: var(--text-mute); font-size: 12px; }

.section-rail { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 0 22px; border-top: 1px solid var(--line); }
.rail-group { display: flex; align-items: center; gap: 10px; }
.rail-label { color: var(--text-mute); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.rail-items { display: flex; gap: 8px; flex-wrap: wrap; }
.rail-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(15, 26, 46, .6); border: 1px solid var(--line);
  color: var(--text-dim); border-radius: 999px; padding: 8px 15px; font-size: 13px; cursor: pointer;
  transition: .18s;
}
.rail-btn i { font-style: normal; color: var(--cyan); }
.rail-btn:hover { border-color: var(--line-strong); color: #fff; }
.rail-btn.is-on { background: rgba(233, 69, 96, .14); border-color: var(--red); color: #fff; }
.rail-btn.is-on i { color: var(--red); }

.stage { display: flex; flex-direction: column; gap: 18px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px clamp(16px, 3vw, 28px) 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: panelIn .35s ease both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.panel-head h2 { margin: 0 0 4px; font-size: 21px; }
.panel-head h2 i { font-style: normal; color: var(--cyan); margin-right: 8px; }
.panel-head p { margin: 0; color: var(--text-mute); font-size: 13px; }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sec-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { background: rgba(8, 16, 32, .72); border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: .2s; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.tile p { margin: 0; color: var(--text-mute); font-size: 13px; }
.tile-link { display: block; }
.tile-cta { display: inline-block; margin-top: 12px; color: var(--cyan); font-size: 13px; }
.tile-demo { text-align: left; }
.demo-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 8px; margin-bottom: 12px; background: linear-gradient(135deg, #12224a, #0a1428 60%, #251033); display: flex; align-items: center; justify-content: center; color: rgba(0,217,255,.6); font-weight: 800; letter-spacing: .2em; font-size: 18px; }
.sec-note { color: var(--text-dim); font-size: 13px; }
.sec-dim { color: var(--text-mute); }

.timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.timeline b { color: var(--cyan); font-size: 13px; letter-spacing: .1em; }
.timeline span { color: var(--text-dim); font-size: 13px; }

.atlas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.atlas-cell { background: rgba(8, 16, 32, .7); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; cursor: pointer; color: var(--text); transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.atlas-cell:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0,217,255,.12) inset; }
.atlas-glyph { font-size: 22px; color: var(--cyan); }
.atlas-name { font-size: 12px; color: var(--text-dim); }

.chap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chap-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,16,32,.55); }
.chap-item.is-open { border-color: rgba(0,217,255,.4); }
.chap-no { color: var(--text-mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.chap-meta { display: flex; flex-direction: column; }
.chap-meta b { font-size: 14px; }
.chap-meta small { color: var(--text-mute); font-size: 12px; }
.chap-tag { margin-left: auto; font-size: 11px; letter-spacing: .16em; color: var(--green); }
.chap-item:not(.is-open) .chap-tag { color: var(--text-mute); }

.sport-preview { display: grid; gap: 8px; }
.sport-row { display: grid; grid-template-columns: 84px 1fr 70px auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,16,32,.55); }
.sport-lg { color: var(--text-mute); font-size: 12px; }
.sport-teams { font-size: 14px; }
.sport-teams em { color: var(--text-mute); font-style: normal; margin: 0 6px; }
.sport-odd { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.account-brief { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: rgba(8,16,32,.7); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.ab-label { display: block; color: var(--text-mute); font-size: 12px; letter-spacing: .18em; }
.ab-balance { font-size: 30px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.ab-user { color: var(--text-mute); font-size: 12px; }
.ab-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gate { text-align: center; padding: 20px 0; }
.gate h3 { margin: 0 0 8px; }
.gate p { color: var(--text-mute); }
.gate-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.join-steps li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(8,16,32,.6); display: flex; flex-direction: column; gap: 6px; }
.join-steps b { color: #fff; }
.join-steps span { color: var(--text-mute); font-size: 13px; }
.join-cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.faq-title { margin: 24px 0 10px; font-size: 15px; color: var(--text-dim); }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq-list li { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.faq-list b { color: var(--text); }
.faq-list span { color: var(--text-mute); }

/* ---------- 底部 ---------- */
.pub-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); background: rgba(5, 9, 18, .8); }
.pf-left strong { color: #fff; letter-spacing: .1em; }
.pf-left span { color: var(--text-mute); }
.pf-legal { color: var(--text-mute); font-size: 12px; margin-top: 6px; }
.pf-links { display: flex; gap: 18px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.pf-links a:hover { color: var(--cyan); }

/* ---------- 表单 / 卡片 ---------- */
.auth-body .front-main { max-width: 980px; padding-top: 54px; }
.auth-card { max-width: 420px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-sub { color: var(--text-mute); font-size: 13px; margin: 0 0 20px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .card-form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); }
input, select, textarea {
  width: 100%; background: rgba(4, 9, 19, .85); color: #fff;
  border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 217, 255, .12); }
.check-row { display: flex !important; align-items: center; gap: 8px; color: var(--text-mute); font-size: 12px; }
.check-row input { width: auto; }
.check-row a { color: var(--cyan); }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--text-mute); flex-wrap: wrap; }
.auth-foot a { color: var(--cyan); }
.auth-admin { border-color: rgba(255,193,7,.35); }
.form-tip { color: var(--gold); font-size: 12px; min-height: 18px; margin: 6px 0 0; }

.flash-wrap { max-width: 1240px; margin: 12px auto 0; padding: 0 clamp(16px, 4vw, 40px); display: grid; gap: 8px; }
.flash { border-radius: 10px; padding: 10px 14px; font-size: 13px; border: 1px solid var(--line); }
.flash-error { border-color: rgba(233,69,96,.5); background: rgba(233,69,96,.1); color: #ffb3c1; }
.flash-message, .flash-success { border-color: rgba(46,230,168,.4); background: rgba(46,230,168,.08); color: var(--green); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 12, 24, .6); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(120,160,220,.1); vertical-align: middle; }
.data-table th { color: var(--text-mute); font-weight: 600; font-size: 12px; letter-spacing: .04em; background: rgba(12, 22, 40, .8); position: sticky; top: 0; }
.data-table tr:hover td { background: rgba(0, 217, 255, .03); }
.data-table .num { font-variant-numeric: tabular-nums; }
.data-table .pos { color: var(--green); }
.data-table .neg { color: #ff8496; }
.data-table .ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loading-line, .empty-line { color: var(--text-mute); text-align: center; padding: 18px; font-size: 13px; }
.row-actions { white-space: nowrap; display: flex; gap: 6px; }
.pill { padding: 2px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }
.pill-ok { background: rgba(46,230,168,.12); color: var(--green); }
.pill-bad { background: rgba(233,69,96,.14); color: #ff9aab; }
.pager { display: flex; gap: 6px; align-items: center; margin-top: 12px; color: var(--text-mute); font-size: 12px; flex-wrap: wrap; }
.pager button { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-dim); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.pager button.is-on { background: rgba(0,217,255,.14); color: var(--cyan); border-color: rgba(0,217,255,.4); }
.pager button:disabled { opacity: .35; cursor: default; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-input { max-width: 260px; }
.toolbar-hint { color: var(--text-mute); font-size: 12px; }
.mod-note { color: var(--text-mute); font-size: 13px; border-left: 2px solid var(--line-strong); padding-left: 12px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: rgba(8,16,32,.72); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.kpi span { color: var(--text-mute); font-size: 12px; }
.kpi b { font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.mod-sub, .blk-title { margin: 22px 0 10px; font-size: 14px; color: var(--text-dim); letter-spacing: .06em; }

.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ctile { background: rgba(8,16,32,.7); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.ctile b { color: #fff; }
.ctile span { color: var(--text-mute); font-size: 12px; }
.ctile em { color: var(--cyan); font-size: 11px; font-style: normal; }
.card-form { background: rgba(8,16,32,.7); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.card-form h4 { margin: 0; font-size: 14px; color: #fff; }
.set-form { max-width: 460px; margin-top: 18px; }

.legal-page { max-width: 760px; }
.back-link { color: var(--text-mute); font-size: 13px; }
.legal-page h1 { margin: 10px 0 18px; }
.legal-body { color: var(--text-dim); font-size: 14px; }
.legal-body li { margin: 6px 0; }

.error-page { text-align: center; padding: 70px 0; }
.err-code { font-size: 84px; font-weight: 800; color: rgba(0,217,255,.22); margin: 0; }
.error-page h1 { margin: 0 0 22px; }
.err-actions { display: flex; gap: 12px; justify-content: center; }

.toast-wrap { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 999; }
.toast { background: rgba(12, 24, 44, .96); border: 1px solid var(--line-strong); border-left: 3px solid var(--cyan); color: var(--text); padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); animation: toastIn .2s ease both; }
.toast.err { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .top-nav { display: none; }
}
@media (max-width: 780px) {
  .hero-stats { gap: 20px; }
  .sport-row { grid-template-columns: 1fr auto; }
  .faq-list li { grid-template-columns: 1fr; gap: 2px; }
}


/* ---------- 前台浮动推广按钮（合作平台） ---------- */
.promo-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #8b7bff, #e94560 78%);
  box-shadow: 0 12px 30px rgba(139, 123, 255, .38), 0 2px 0 rgba(255,255,255,.14) inset;
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.promo-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(233, 69, 96, .42); }
.promo-fab:active { transform: translateY(0); }
.pfab-orb {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 32% 28%, #fff, rgba(255,255,255,.35) 46%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
  animation: pfab-pulse 2.6s ease-in-out infinite;
}
@keyframes pfab-pulse {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.08); opacity: .7; }
}
.pfab-text { display: flex; flex-direction: column; line-height: 1.15; }
.pfab-text b { font-size: 14px; letter-spacing: .02em; }
.pfab-text small { font-size: 11px; color: rgba(255,255,255,.8); letter-spacing: .06em; }
@media (max-width: 620px) {
  .promo-fab { right: 14px; bottom: 16px; padding: 9px 13px 9px 10px; }
  .pfab-text small { display: none; }
}
@media print { .promo-fab { display: none; } }

/* ---------- 收口：横向溢出与浮动按钮避让 ---------- */
body.front { overflow-x: hidden; }
.pub-footer .pf-links { padding-right: 178px; }
@media (max-width: 620px) {
  .pub-footer .pf-links { padding-right: 0; padding-bottom: 62px; }
}
html, body.front { overflow-x: hidden; }
.sky { overflow: hidden; }

/* ---------- 前台浮动卡片（新人礼 → 注册） ---------- */
.promo-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, #1d2942, #0c1322 62%);
  border: 1px solid rgba(255, 193, 7, .42);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.promo-float:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 7, .78);
  box-shadow: 0 20px 44px rgba(240, 168, 0, .28);
}
.pf-gift { flex: 0 0 auto; width: 66px; height: 66px; display: block; }
.pf-gift img { width: 66px; height: 66px; display: block; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); animation: pf-bob 3.2s ease-in-out infinite; }
@keyframes pf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pf-body { display: flex; flex-direction: column; gap: 2px; }
.pf-body b { font-size: 15px; color: #ffd35c; letter-spacing: .02em; }
.pf-body small { font-size: 11.5px; color: var(--text-dim); }
.pf-cta {
  align-self: flex-start; margin-top: 5px; padding: 3px 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; color: #241a00;
  background: linear-gradient(135deg, #ffd35c, #f0a800);
  box-shadow: 0 4px 12px rgba(255, 193, 7, .3);
}
@media (max-width: 620px) {
  .promo-float { right: 12px; bottom: 14px; padding: 8px 13px 8px 8px; gap: 9px; border-radius: 16px; }
  .pf-gift, .pf-gift img { width: 52px; height: 52px; }
  .pf-body b { font-size: 13.5px; }
  .pf-body small { display: none; }
}
@media print { .promo-float { display: none; } }
.pub-footer .pf-links { padding-right: 236px; }
@media (max-width: 620px) { .pub-footer .pf-links { padding-right: 0; padding-bottom: 74px; } }

/* === base_front 手机端顶栏收口（2026-11-10） === */
@media (max-width:640px){
  .topbar{flex-wrap:wrap;padding:8px 10px;gap:6px;align-items:center;}
  .top-nav{display:none !important;}
  .top-actions{margin-left:0 !important;width:100%;justify-content:space-between;gap:8px;flex-wrap:nowrap;}
  .lang-switch{flex:0 1 auto;max-width:calc(100% - 176px);overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .lang-btn{font-size:10.5px;padding:4px 7px;}
  .top-actions .btn{flex:0 0 auto;font-size:12px;padding:6px 12px;}
  .pub-footer{padding-left:12px;padding-right:12px;}
}
