/* LB9 电竞 · 客户站样式（390px 竖屏为基准，向上自适应） */
:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --ink: #23252A;
  --ink-2: #464A50;
  --muted: #8C8579;
  --muted-2: #B3AB9D;
  --line: #ECE5D8;
  --line-2: #F4EEE3;
  --brand: #1B2430;
  --steel: #274C77;
  --radius: 18px;
  --shadow: 0 14px 30px -22px rgba(35, 37, 42, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
        "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(120% 60% at 100% 0%, rgba(39, 76, 119, .06), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(201, 162, 39, .07), transparent 65%);
  background-repeat: no-repeat;
}

#app { max-width: 480px; margin: 0 auto; padding: 0 20px 28px; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 12px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
  background: #FAF6EF;
}
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .8px; }
.topbar .spacer { flex: 1; }

.btn-ghost {
  border: 1px solid rgba(35, 37, 42, .14);
  background: rgba(255, 255, 255, .7);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
}
.btn-ghost:active { transform: scale(.97); }

.avatar-btn { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(0,0,0,.08); padding: 0; }
.avatar-btn img, .me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- 通用块 */
.sec-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 26px 2px 12px;
}
.sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.sec-head .hint { font-size: 11px; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- 电子卡 */
.member-card {
  position: relative; overflow: hidden;
  aspect-ratio: 8 / 5;
  border-radius: 22px;
  padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--c-ink);
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 20px 36px -26px rgba(20, 20, 24, .7);
  isolation: isolate;
}
.member-card .facets {
  position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%;
  z-index: -1; pointer-events: none;
}
.mc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px; opacity: .82; }
.mc-top img { width: 18px; height: 18px; border-radius: 5px; opacity: .9; }
.mc-top .tag { margin-left: auto; font-size: 10px; letter-spacing: 1.6px; opacity: .6; }
.mc-mid { display: flex; flex-direction: column; gap: 2px; }
.mc-label { font-size: 10px; letter-spacing: 3px; opacity: .55; }
.mc-name { font-size: 31px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }
.mc-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mc-spend { display: flex; flex-direction: column; gap: 1px; }
.mc-spend-label { font-size: 10px; letter-spacing: 2px; opacity: .55; }
.mc-spend-value { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.mc-no { font-size: 10px; letter-spacing: .6px; opacity: .48; }

/* 8 档卡面配色 */
.member-card[data-level="none"]     { --c1:#F2F3F5; --c2:#DFE0E4; --c-ink:#3A3D42; --c-facet:#FFFFFF; --c-line:#B4B7BD; }
.member-card[data-level="silver"]   { --c1:#F7F9FB; --c2:#D9DEE6; --c-ink:#2F343B; --c-facet:#FFFFFF; --c-line:#9FA9B6; }
.member-card[data-level="gold"]     { --c1:#F9F0DC; --c2:#E3C88E; --c-ink:#3C2C13; --c-facet:#FFFFFF; --c-line:#A9822C; }
.member-card[data-level="platinum"] { --c1:#F8FAFD; --c2:#DCE6F2; --c-ink:#23384A; --c-facet:#2C4E6B; --c-line:#2C4E6B; }
.member-card[data-level="diamond"]  { --c1:#EDF6FD; --c2:#DCDAF5; --c-ink:#243049; --c-facet:#7B72C9; --c-line:#6E67B8; }
.member-card[data-level="sapphire"] { --c1:#12294F; --c2:#1C4E97; --c-ink:#F1F6FF; --c-facet:#8FD8FF; --c-line:#8FD8FF; }
.member-card[data-level="ruby"]     { --c1:#48111E; --c2:#7B2135; --c-ink:#FFF1EC; --c-facet:#FFB3A7; --c-line:#FFB3A7; }
.member-card[data-level="emerald"]  { --c1:#0F2A21; --c2:#1D4B37; --c-ink:#F2F7EF; --c-facet:#D8B96A; --c-line:#D8B96A; }

/* 游客品牌卡 */
.brand-card {
  position: relative; overflow: hidden; aspect-ratio: 8 / 5; border-radius: 22px; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #F4F7FB; background: linear-gradient(135deg, #222C39 0%, #0E131A 100%);
  box-shadow: 0 22px 40px -28px rgba(14, 19, 26, .9); isolation: isolate;
}
.brand-card .facets { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; z-index: -1; opacity: .9; }
.bc-mid { display: flex; flex-direction: column; gap: 6px; }
.bc-title { font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.bc-games { font-size: 12px; letter-spacing: 1.5px; color: #9FB0C2; }
.bc-bot { display: flex; align-items: flex-end; justify-content: space-between; font-size: 10px; letter-spacing: 1.4px; color: #8FA0B2; }
.bc-bot .est { color: #5E6C7C; }

.login-cta {
  width: 100%; margin-top: 12px; height: 50px; border-radius: 14px;
  background: #1B1D21; color: #F7F7F5; font-size: 15px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 12px 24px -16px rgba(27, 29, 33, .8);
}
.login-cta:active { transform: translateY(1px); }
.cta-note { margin: 8px 2px 0; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- 双入口 */
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.entry {
  position: relative; display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 12px; min-height: 100px; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.entry:active { transform: scale(.985); }
.entry .ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #F4EFE6; color: var(--steel);
}
.entry h3 { margin: 0; font-size: 15px; font-weight: 700; }
.entry p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.entry .arrow { position: absolute; right: 14px; top: 16px; color: var(--muted-2); font-size: 13px; }

/* ---------------------------------------------------------------- 客服 */
.service {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow);
}
.service:active { transform: scale(.99); }
.service .qr { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line-2); object-fit: cover; background: #fff; }
.service .txt { flex: 1; min-width: 0; }
.service .txt h3 { margin: 0; font-size: 15px; font-weight: 700; }
.service .txt p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.service .chev { color: var(--muted-2); }

.foot { margin: 26px 4px 0; font-size: 11px; line-height: 1.7; color: var(--muted-2); text-align: center; }
.foot strong { display: block; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

/* ---------------------------------------------------------------- 页头返回 */
.pagehead { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 14px 0 10px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
  background: #FAF6EF; }
.back { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.8); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); }
.pagehead h1 { margin: 0; font-size: 17px; font-weight: 700; }
.pagehead .sub { font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- 价目表 */
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 16px;
  background: #F1EADF; border-radius: 999px;
}
.seg button {
  height: 38px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button.on { background: #1B1D21; color: #F7F7F5; box-shadow: 0 8px 16px -12px rgba(0,0,0,.9); }
.seg button .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }

.pricelist { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow);
}
.item:active { transform: scale(.99); }
.item .thumb {
  width: 62px; height: 62px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  background: #F1ECE3; border: 1px solid var(--line-2); position: relative;
}
.item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.item .body { flex: 1; min-width: 0; }
.item h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.item p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.pill { font-size: 10px; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; background: #F4EFE6; color: #7A7264; }
.pill.link { background: #EAF0F6; color: #37587A; }
.item .chev { color: var(--muted-2); padding-right: 2px; }

.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.5); }
.empty small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted-2); }

/* ---------------------------------------------------------------- 会员中心 */
.me-card { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.me-top { display: flex; align-items: center; gap: 12px; }
.me-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); }
.me-top .who { flex: 1; min-width: 0; }
.me-top h2 { margin: 0; font-size: 19px; font-weight: 700; }
.me-no { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.me-no .tag { padding: 1px 7px; border-radius: 6px; background: #F4EFE6; color: #6E675A; font-size: 10px; letter-spacing: .5px; }
.lv-chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.me-div { height: 1px; background: var(--line-2); margin: 16px 0 14px; }
.me-spend { display: flex; align-items: flex-end; justify-content: space-between; }
.me-spend .lb { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.me-spend .val { font-size: 23px; font-weight: 700; letter-spacing: .5px; margin-top: 3px; }
.me-spend .right { text-align: right; font-size: 11px; color: var(--muted); }

.cardwall { display: flex; flex-direction: column; gap: 12px; }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.wcard .face { width: 100%; aspect-ratio: 8 / 5; border-radius: 14px; overflow: hidden; background: #EFEAE0; border: 1px solid var(--line-2); }
.wcard .face img { width: 100%; height: 100%; object-fit: cover; }
.wcard .face .none { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; color: var(--muted-2); }
.wcard .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 0 2px 2px; }
.wcard h3 { margin: 0; font-size: 15px; font-weight: 700; }
.wcard .kind { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: .5px; }
.wcard .value { font-size: 16px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.wcard .value small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: .5px; }
.wcard .stamp { font-size: 10.5px; color: var(--muted-2); margin-top: 8px; padding: 0 2px; }

/* ---------------------------------------------------------------- 弹层 */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(14, 16, 20, .94); padding: 16px; }
.modal[hidden] { display: none; }
.modal img { max-width: 100%; max-height: 86dvh; object-fit: contain; border-radius: 10px; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: grid; place-items: center; color: #fff; backdrop-filter: blur(6px); }
.modal .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .5px; }

.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(20, 20, 24, .42); display: flex; align-items: flex-end; }
.sheet-wrap[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 480px; margin: 0 auto; background: var(--bg);
  border-radius: 24px 24px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(28px); opacity: .6 } to { transform: none; opacity: 1 } }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: #DCD3C4; margin: 2px auto 16px; }
.sheet h2 { margin: 0; font-size: 18px; font-weight: 700; }
.sheet p.lead { margin: 6px 0 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.oauth-btn { width: 100%; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.oauth-btn.wechat { background: #07C160; color: #fff; }
.oauth-btn.qq { background: #12B7F5; color: #fff; }
.oauth-btn .state { font-size: 10px; font-weight: 500; opacity: .8; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.22); }
.dev-btn { width: 100%; height: 46px; border-radius: 14px; border: 1px solid rgba(35,37,42,.16); background: #fff; font-size: 14px; font-weight: 600; margin-top: 4px; }
.sheet .tip { margin-top: 14px; font-size: 11px; color: var(--muted-2); line-height: 1.7; }
.sheet .close-x { position: absolute; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(10px);
  background: rgba(22, 24, 28, .94); color: #F6F6F4; font-size: 13px; padding: 10px 16px; border-radius: 12px;
  z-index: 80; opacity: 0; transition: all .18s ease; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------- 响应式 */
@media (min-width: 520px) {
  #app { padding-bottom: 40px; }
  .member-card, .brand-card { border-radius: 26px; }
}
@media (max-width: 350px) {
  .mc-name { font-size: 26px; }
  .item .thumb { width: 54px; height: 54px; }
}
