/* 雾月电竞 · 冰蓝少女风
   颜色取自雾月横幅：冰蓝底、白、灰蓝字；招牌元素是带“– ×”的圆角窗口和四角星 */
@font-face {
  font-family: "WY Rounded";
  src: url(/rounded-zh.woff2) format("woff2");  /* 站酷快乐体（OFL），只保留界面用到的字 */
  font-display: swap;
}
@font-face {
  font-family: "WY Num";
  src: url(/quicksand-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "WY Num";
  src: url(/quicksand-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #EEF4FD;
  --surface: #FFFFFF;
  --ink: #34466E;
  --ink-2: #61739A;
  --ink-3: #98A6C4;
  --line: #DCE5F4;
  --brand: #4F6A9A;
  --brand-soft: #A9BEE0;
  --wash: #E3ECFA;
  --good: #3E8F7B;
  --wait: #B9842A;
  --bad: #CC6283;
  --radius-l: 16px;
  --radius-s: 10px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --round: "WY Rounded", var(--font);
  --num: "WY Num", "WY Rounded", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 页面骨架 ---------- */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px var(--gutter) calc(96px + env(safe-area-inset-bottom));
}
.brandbar { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; }
.brandbar img { width: 30px; height: 30px; }
.brandbar span { font-family: var(--round); font-size: 19px; color: var(--brand); letter-spacing: 1px; }
.page-title { font-family: var(--round); font-weight: 400; font-size: 26px; color: var(--ink); margin: 10px 0 14px; }
.back { border: 0; background: none; padding: 8px 0; color: var(--ink-2); font-size: 15px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding: 0 12px calc(8px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.tabbar-inner {
  display: flex; width: 100%; max-width: 420px; pointer-events: auto;
  background: rgba(255,255,255,.94);
  border: 1.5px solid var(--brand-soft);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(79,106,154,.12);
}
.tab {
  flex: 1; border: 0; background: none; padding: 8px 0 7px;
  font-family: var(--round); font-size: 13px; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--brand); }

/* ---------- 窗口（雾月的招牌元素） ---------- */
.window {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--brand-soft);
  border-radius: var(--radius-l);
}
.window-bar {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 7px 12px 0; color: var(--brand-soft);
}
.window-bar svg { width: 12px; height: 12px; }
.window .sparkle {
  position: absolute; top: -11px; left: -9px; width: 20px; height: 20px; color: var(--brand);
}

/* ---------- 表单 ---------- */
.group { background: var(--surface); border-radius: var(--radius-l); padding: 2px 0; margin-bottom: 12px; }
.field { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); min-height: 52px; }
.field + .field, .hint + .field { border-top: 1px solid var(--line); }
.field > label, .field > .label { flex: 0 0 82px; color: var(--ink-2); font-size: 15px; }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 0; font-size: 16px; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field select { appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 44px; }
.field .unit { color: var(--ink-3); font-size: 14px; }
.field.stack { flex-direction: column; align-items: stretch; gap: 8px; }
.field.stack > .label { flex: none; }
.req::after { content: " *"; color: var(--bad); }
.hint { color: var(--ink-3); font-size: 13px; padding: 0 var(--gutter) 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--ink-2);
}
.chip.on { border-color: var(--brand); background: var(--wash); color: var(--brand); font-weight: 600; }
.chip.on::before { content: "♥ "; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb {
  width: 72px; height: 72px; border-radius: var(--radius-s); object-fit: cover;
  background: var(--wash); border: 1.5px solid var(--line);
}
.thumb-add {
  width: 72px; height: 72px; border-radius: var(--radius-s); border: 1.5px dashed var(--brand-soft);
  display: grid; place-items: center; color: var(--brand-soft); font-size: 28px; background: var(--bg);
}
.thumb-wrap { position: relative; }
.thumb-del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: var(--brand); color: #fff; font-size: 13px; line-height: 18px; padding: 0;
}

.btn {
  display: block; width: 100%; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-family: var(--round); font-size: 18px; padding: 13px; margin-top: 8px;
  box-shadow: 0 4px 0 #3D5683;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #3D5683; }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand-soft); box-shadow: none; }
.btn.quiet { background: transparent; color: var(--ink-2); box-shadow: none; font-family: var(--font); font-size: 15px; }

.error { color: var(--bad); font-size: 14px; padding: 8px 2px; }
.notice {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 12px; font-size: 14px; margin-bottom: 12px;
}
.notice.danger { border-color: #F0C3D1; background: #FDF3F6; color: #9C3F5D; }

/* ---------- 到手小票：一个雾月窗口 ---------- */
.ticket { padding: 0 var(--gutter) 12px; background: linear-gradient(180deg, #FFFFFF, #F4F8FE); }
.ticket .window-bar { margin: 0 calc(-1 * var(--gutter)) -6px 0; }
.ticket-label { font-family: var(--round); font-size: 15px; color: var(--ink-2); }
.ticket-amount { font-family: var(--num); font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--brand); }
.ticket-amount small { font-size: 22px; margin-right: 2px; }
.ticket-amount .heart { font-size: 18px; color: var(--brand-soft); margin-left: 4px; }
.ticket-amount.stale { opacity: .4; }
.ticket-split {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1.5px dashed var(--line); margin-top: 10px; padding-top: 8px;
  font-size: 13px; color: var(--ink-2);
}
.ticket-split .num { font-weight: 500; }
.ticket-error { font-size: 14px; margin-top: 6px; color: var(--bad); }
.ticket-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ticket-btn { width: auto; flex: none; margin: 0 0 4px; padding: 11px 22px; font-size: 17px; }

/* 报单页：小票和提交按钮贴在底部导航上方，填表时随时看得到到手金额 */
.submit-bar {
  position: sticky; bottom: 0;
  margin: 0 calc(-1 * var(--gutter)) calc(-96px - env(safe-area-inset-bottom));
  padding: 14px var(--gutter) calc(84px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 85%, rgba(238,244,253,0));
}
.ticket.big { margin: 6px 0 14px; }
.ticket.big .ticket-amount { font-size: 44px; }

/* ---------- 订单列表 ---------- */
.segments { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 2px var(--gutter); scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.seg {
  flex: none; border: 1.5px solid transparent; background: none; padding: 5px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px;
}
.seg.on { background: var(--surface); border-color: var(--brand-soft); color: var(--brand); font-weight: 600; }

.totals { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--surface); border-radius: var(--radius-l); padding: 12px 0; margin-bottom: 12px; }
.totals div { text-align: center; }
.totals div + div { border-left: 1.5px dashed var(--line); }
.totals b { display: block; font-size: 19px; color: var(--ink); }
.totals span { font-size: 13px; color: var(--ink-3); }
.totals .mine { color: var(--brand); }

.order {
  display: block; width: 100%; text-align: left; border: 0;
  background: var(--surface); border-radius: var(--radius-l); padding: 14px var(--gutter); margin-bottom: 8px;
}
.order-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order-name { font-weight: 600; }
.order-income { color: var(--brand); font-size: 18px; }
.order-meta { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.status { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 1px 9px; }
.status.pending { color: var(--wait); background: #FBF2E2; }
.status.approved { color: var(--good); background: #E3F3EE; }
.status.rejected { color: var(--bad); background: #FBE9EF; }
.status.voided { color: var(--ink-3); background: var(--bg); }
.page-title .status { font-family: var(--font); vertical-align: middle; margin-left: 6px; }

.empty { text-align: center; color: var(--ink-3); padding: 28px 0 40px; }
.empty img { width: 104px; display: block; margin: 0 auto 10px; opacity: .9; }
.empty .btn { width: auto; display: inline-block; padding: 10px 26px; margin-top: 12px; }

/* ---------- 详情 ---------- */
.rows { background: var(--surface); border-radius: var(--radius-l); padding: 2px 0; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 11px var(--gutter); font-size: 15px; }
.row + .row { border-top: 1px solid var(--line); }
.row > span:first-child { color: var(--ink-2); flex: none; }
.row > span:last-child { text-align: right; word-break: break-all; }

/* ---------- 我的 ---------- */
.me-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--wash); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--brand-soft);
  display: grid; place-items: center; color: var(--brand);
  font-family: var(--round); font-size: 24px;
}
.me-name { font-size: 20px; font-weight: 650; }
.me-sub { color: var(--ink-3); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; color: var(--brand); background: var(--wash); border-radius: 999px; padding: 0 8px; margin-right: 4px; }
.balance { padding: 0 var(--gutter) 14px; margin-bottom: 12px; }
.balance .window-bar { margin-right: calc(-1 * var(--gutter)); margin-bottom: -6px; }
.balance-label { font-family: var(--round); color: var(--ink-2); font-size: 15px; }
.balance-amount { font-size: 38px; color: var(--brand); line-height: 1.15; }
.income-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.income-grid div { text-align: center; }
.income-grid b { display: block; font-size: 16px; color: var(--ink); }
.income-grid span { font-size: 12px; color: var(--ink-3); }
.section-title { font-family: var(--round); font-weight: 400; font-size: 17px; color: var(--ink-2); margin: 20px 4px 8px; }
.ledger { background: var(--surface); border-radius: var(--radius-l); }
.ledger-row { display: flex; justify-content: space-between; padding: 12px var(--gutter); gap: 12px; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row small { display: block; color: var(--ink-3); font-size: 12px; font-family: var(--font); font-weight: 400; }
.plus { color: var(--brand); }
.minus { color: var(--bad); }

/* ---------- 登录 ---------- */
.auth-screen {
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(60% 40% at 85% 8%, #FFFFFF 0, rgba(255,255,255,0) 70%),
    radial-gradient(70% 50% at 0% 100%, #DCE7F8 0, rgba(220,231,248,0) 70%),
    var(--bg);
}
.auth { max-width: 400px; margin: 0 auto; padding: 28px var(--gutter) 32px; }
.club {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 14px 4px 6px; color: var(--ink-2); font-family: var(--num); font-weight: 500; letter-spacing: 2px; font-size: 13px;
}
.club i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--brand-soft); display: block; }
.auth-hero { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 -18px; position: relative; z-index: 1; }
.auth-hero img.mascot { width: 118px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(79,106,154,.18)); }
.auth-hero .titles { padding-bottom: 26px; }
.auth h1.brand { font-family: var(--round); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--brand); margin: 0; letter-spacing: 2px; }
.auth .tagline { font-family: var(--round); color: var(--ink-2); margin: 4px 0 0; font-size: 17px; }
.auth-card { padding: 26px var(--gutter) 16px; }
.auth-card .window-bar { position: absolute; top: 0; right: 0; }
.auth h2 { font-family: var(--round); font-weight: 400; font-size: 20px; margin: 0 0 10px; color: var(--ink); }
.auth .group { background: var(--bg); }
.auth .field + .field { border-top-color: #fff; border-top-width: 2px; }
.auth p.muted { color: var(--ink-2); margin: 0 0 12px; }
.auth-foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 18px; font-family: var(--num); font-weight: 500; letter-spacing: 1px; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 20;
  max-width: calc(100% - 32px);
}

@media (prefers-reduced-motion: no-preference) {
  .ticket-amount { transition: opacity .15s; }
  .btn { transition: transform .06s; }
}

/* 我的 · 修改密码 */
.pw-actions { display: flex; gap: 10px; padding: 12px var(--gutter) 16px; }
.pw-actions .btn { flex: 1; margin: 0; }
.ok-note { background: #E3F3EE; color: var(--good); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }

/* 派单、工号、排行榜 */
.status.dispatched { color: var(--brand); background: var(--wash); }
.notice.dispatch-note { border-color: var(--brand-soft); background: var(--wash); color: var(--ink); }
.notice.dispatch-note .chip.on::before { content: ""; }
.hint.bad { color: var(--bad); }
input.locked { color: var(--ink-3); }
.tag.workno-tag { font-family: var(--num); font-weight: 700; }
.rank-me { padding: 4px 18px 14px; margin-bottom: 14px; }
.rank-me-line { display: flex; justify-content: space-between; align-items: baseline; }
.rank-me-line b { font-size: 26px; color: var(--brand); }
.rank-me-line span { color: var(--ink-2); }
.rank-list { background: var(--surface); border-radius: var(--radius-l); }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row.me { background: var(--wash); }
.rank-no { width: 30px; text-align: center; font-weight: 700; color: var(--ink-3); font-size: 15px; }
.rank-row.top .rank-no { font-size: 20px; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font-weight: 700; color: var(--brand); }

/* ---------- 会员卡卡面：等级越高越亮 ---------- */
.mcard {
  position: relative; overflow: hidden; aspect-ratio: 1.586; width: 100%; max-width: 420px;
  border-radius: 18px; padding: 18px 20px; color: var(--ink);
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5FC 100%);
  border: 1.5px solid var(--line); box-shadow: 0 10px 28px rgba(79,106,154,.14);
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
}
.mcard::before { /* 月亮水印 */
  content: ""; position: absolute; right: -36px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  box-shadow: -26px 18px 0 0 currentColor; opacity: .08; z-index: -1;
}
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcard-club { font-family: var(--num); font-weight: 700; letter-spacing: .14em; font-size: 12px; opacity: .8; }
.mcard-level { font-family: var(--round); font-size: 30px; line-height: 1.1; margin-top: 4px; }
.mcard-badge { font-size: 12px; border: 1px solid currentColor; border-radius: 999px; padding: 1px 9px; opacity: .85; white-space: nowrap; }
.mcard-no { font-family: var(--num); font-weight: 700; font-size: 24px; letter-spacing: .16em; }
.mcard-no small { display: block; font-size: 11px; letter-spacing: .1em; opacity: .7; font-weight: 500; }
.mcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.mcard-name { font-size: 14px; opacity: .85; }
.mcard-star { position: absolute; width: 14px; height: 14px; opacity: .7; }
.mcard-star path { fill: currentColor; }
.mcard.lv1 { background: linear-gradient(135deg, #FFFFFF 0%, #E9F0FB 100%); border-color: #CCD9EE; }
.mcard.lv2 { background: linear-gradient(135deg, #F4F8FF 0%, #CFDDF4 100%); border-color: #B5C8E8; }
.mcard.lv3 { background: linear-gradient(120deg, #EEF3FB 0%, #C9D5E8 45%, #F3F6FB 55%, #B9C8E1 100%); border-color: #A9BBD9; }
.mcard.lv4 {
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.9) 0 2px, transparent 3px) 0 0 / 26px 26px,
              linear-gradient(140deg, #E8F1FF 0%, #A9C3EA 60%, #D9E6FA 100%);
  border-color: #8FAAD6; box-shadow: 0 0 0 3px rgba(169,190,224,.35), 0 12px 30px rgba(79,106,154,.22);
}
.mcard.lv5, .mcard.lv6 { color: #EAF1FF; border-color: #6F86B3; background: linear-gradient(145deg, #34466E 0%, #4F6A9A 70%, #6A84B6 100%); }
.mcard.lv5 .mcard-no { text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.mcard.lv6 { background: linear-gradient(145deg, #263457 0%, #3E5584 60%, #5B76AB 100%); border: 2px solid transparent;
  background-clip: padding-box; }
.mcard.lv6::after { /* 鸿耀：彩虹边框 + 流光 */
  content: ""; position: absolute; inset: -2px; border-radius: 19px; padding: 2px; z-index: -2;
  background: conic-gradient(from 0deg, #BFD3FF, #F4D9FF, #D6FFF5, #FFF3C9, #BFD3FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mcard.lv6 .mcard-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 48%, transparent 60%) -100% 0 / 200% 100% no-repeat;
  animation: mcard-shine 4.5s ease-in-out infinite; }
@keyframes mcard-shine { 0%, 55% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .mcard.lv6 .mcard-shine { animation: none; } }
.mcard.mini { max-width: 260px; padding: 12px 14px; border-radius: 14px; }
.mcard.mini .mcard-level { font-size: 20px; }
.mcard.mini .mcard-no { font-size: 17px; }
.mcard.mini .mcard-club { font-size: 10px; }

/* 老板端 */
.boss-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.boss-summary div { background: var(--surface); border-radius: var(--radius-s); padding: 10px 4px; }
.boss-summary b { display: block; font-size: 18px; }
.boss-summary span { font-size: 12px; color: var(--ink-3); }
.boss-avail { margin: 16px 0 4px; }
.boss-avail span { color: var(--ink-2); font-size: 14px; }
.boss-avail b { display: block; font-size: 38px; line-height: 1.1; color: var(--brand); }
.level-progress { background: var(--surface); border-radius: var(--radius-l); padding: 14px var(--gutter); margin-bottom: 12px; }
.level-progress .bar { height: 8px; background: var(--wash); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.level-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-soft), var(--brand)); border-radius: 999px; }
.level-progress small { color: var(--ink-3); font-size: 13px; }
.perks { background: var(--surface); border-radius: var(--radius-l); padding: 12px var(--gutter); margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.perks b { color: var(--ink); font-family: var(--round); font-weight: 400; font-size: 16px; }
.order .who { font-size: 13px; color: var(--ink-2); }
.tag.gift-tag { color: #9C3F5D; background: #FBE9EF; }
.status.requested { color: var(--wait); background: #FBF2E2; }

/* ---------- 品牌动效横幅 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wy-banner { --wb-h: 128px; position: relative; display: flex; align-items: center; height: var(--wb-h); margin: 14px 0 6px; }
.wy-banner.compact { --wb-h: 104px; margin: 2px 0 12px; }
.wy-banner-mascot {
  position: relative; z-index: 2; height: 112%; width: auto; flex: none; margin-right: -26px; align-self: flex-end;
  filter: drop-shadow(0 4px 8px rgba(79,106,154,.18)); transform-origin: 50% 90%;
  animation: wyb-sway 4s ease-in-out infinite;
}
.wy-banner-win {
  position: relative; flex: 1; min-width: 0; height: 84%; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #F8FBFF 0%, #EAF1FC 100%); border: 2px solid #7F9BCB;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.8), 0 6px 18px rgba(79,106,154,.14);
  display: grid; place-items: center; padding: 14px 10px 6px 30px;
}
.wy-banner-win::before { /* 顶部斜条纹 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13px;
  background: repeating-linear-gradient(-45deg, rgba(169,190,224,.45) 0 6px, transparent 6px 12px);
  border-bottom: 1px solid rgba(127,155,203,.35);
}
.wy-banner-bar { position: absolute; top: 0; right: 10px; font-size: 13px; line-height: 13px; color: #7F9BCB; letter-spacing: 6px; font-weight: 700; }
.wy-banner-spark { position: absolute; left: -2px; top: -2px; width: 18px; height: 18px; display: none; }
.wy-banner-spark path { fill: #fff; stroke: #7F9BCB; stroke-width: 1.6; }
.wy-banner-slide { text-align: center; line-height: 1.05; }
.wy-banner-title {
  font-family: var(--round); font-size: clamp(26px, 8.6vw, 40px); color: #3E5E92; font-weight: 400; letter-spacing: .04em;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1.5px 1.5px #fff, -1.5px -1.5px #fff, 1.5px -1.5px #fff, -1.5px 1.5px #fff,
               3px 4px 0 #C7D8F2;
  animation: wyb-hop 1.6s ease-in-out infinite;
}
.wy-banner-title.latin { font-family: var(--num); font-weight: 700; letter-spacing: .01em; }
.wy-banner-sub { font-family: var(--round); font-size: clamp(15px, 4.6vw, 20px); color: #3E5E92; margin-top: 4px; letter-spacing: .1em; }
.wy-banner-heart { display: inline-block; color: #8FA9D8; margin-left: 6px; animation: wyb-beat 1.2s ease-in-out infinite; }
.compact .wy-banner-title { font-size: clamp(22px, 7.4vw, 34px); }
.compact .wy-banner-sub { font-size: clamp(13px, 4vw, 17px); }
.banner-tagline { text-align: center; margin: 0 0 10px; color: var(--ink-2); font-family: var(--round); letter-spacing: .12em; }

/* 切换：从上面掉下来弹一下 */
.wyb-enter-active { animation: wyb-in .55s cubic-bezier(.3, 1.6, .5, 1); }
.wyb-leave-active { transition: opacity .18s ease, transform .18s ease; }
.wyb-leave-to { opacity: 0; transform: translateY(10px) scale(.96); }
@keyframes wyb-in { 0% { opacity: 0; transform: translateY(-38%) scale(.85); } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes wyb-hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-5px); } 90% { transform: translateY(1px); } }
@keyframes wyb-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
@keyframes wyb-sway { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .wy-banner-mascot, .wy-banner-title, .wy-banner-heart { animation: none; }
  .wyb-enter-active { animation: none; }
}
body.admin .wy-banner { max-width: 440px; margin-left: auto; margin-right: auto; }
.seg.seg-wrap { flex-wrap: wrap; border-radius: 14px; }

/* 登录方式切换 */
.login-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 3px; margin: 0 0 14px; }
.login-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 7px 0; font-size: 15px; color: var(--ink-2); font-family: var(--round); }
.login-tabs button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(79,106,154,.15); }
.code-btn { flex: none; border: 1.5px solid var(--brand-soft); background: var(--surface); color: var(--brand); border-radius: 999px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }
.code-btn:disabled { color: var(--ink-3); border-color: var(--line); }
.login-switch { text-align: right; margin: -4px 4px 4px; }
.link-btn { border: 0; background: none; color: var(--brand); font-size: 14px; padding: 4px 0; }

/* ---------- 称号徽章 ---------- */
.tbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 999px;
  font-family: var(--round); white-space: nowrap; margin: 0 4px 0 0; border: 1px solid transparent; vertical-align: middle; }
.tbadge::before { content: "✦"; font-size: 10px; }
.tbadge.gold { color: #7A5A12; background: linear-gradient(135deg, #FFF3C8, #F5D77E); border-color: #E6C25B; }
.tbadge.ice { color: #2F5A8F; background: linear-gradient(135deg, #EEF5FF, #CFE0FA); border-color: #A9C3EA; }
.tbadge.rose { color: #9C3F5D; background: linear-gradient(135deg, #FFF0F4, #F9D3DF); border-color: #EFB2C5; }
.tbadge.violet { color: #5B4396; background: linear-gradient(135deg, #F4EEFF, #DCCEFA); border-color: #C2AEF0; }
.tbadge.mint { color: #2E7564; background: linear-gradient(135deg, #ECFAF5, #C8EEE2); border-color: #9FDCC9; }
.tbadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.reg-links { display: flex; gap: 8px; }
.reg-links .btn { flex: 1; }

/* 老板端：点卡面看升级、订单明细 */
.card-tap { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.card-tap:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 18px; }
.card-tap-hint { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
button.order { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.boss-detail { margin-top: 10px; border-top: 1.5px dashed var(--brand-soft); padding-top: 8px; font-size: 14px; }
.boss-detail > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.boss-detail span { color: var(--ink-3); }
.boss-detail b { font-weight: 600; text-align: right; }
.boss-detail-sum { border-top: 1px solid var(--brand-soft); margin-top: 4px; padding-top: 6px !important; }
.boss-detail-sum b { color: var(--brand); font-size: 16px; }
.status.reported { color: #7A5BB5; background: #EFE9FA; }

/* 微信通知绑定 */
.wx-bind { padding-bottom: 6px; }
.wx-bind p { margin: 12px var(--gutter); line-height: 1.6; }
.wx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: var(--gutter); }
.wx-qr { display: block; width: 200px; max-width: 70%; aspect-ratio: 1; margin: 4px auto 0; background: #fff; border-radius: 8px; }

/* 会员线上下单 / 反馈 */
.bk-when { display: flex; gap: 4px; flex: 1; justify-content: flex-end; }
.bk-pending { color: var(--brand); font-weight: 600; }
.bk-declined { color: var(--danger, #d14b5a); }
.fb-field textarea { width: 100%; resize: vertical; min-height: 96px; }
.fb-list { display: grid; gap: 10px; margin-top: 10px; }
.fb-item { background: var(--surface); border-radius: var(--radius-l); padding: 12px var(--gutter); }
.fb-item p { margin: 0; line-height: 1.6; }
.fb-q small { display: block; color: var(--ink-3); font-size: 12px; }
.fb-a { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line, #dfe6f2); }
.fb-wait { margin-top: 6px !important; color: var(--ink-3); font-size: 13px; }
.ticket .ticket-amount.live-wait { font-size: 26px; }
