/* PG 游戏大厅（手机端 H5）：配色与版式仿 WG 游戏大厅——金色顶栏、浅灰底纹、圆角卡片、
   金色名称条、底部导航。电脑上居中显示手机宽度单栏。后台页面仍使用 style.css。 */
:root {
  --gold: #e2a614;
  --gold-deep: #c98a06;
  --gold-soft: #f7c74a;
  --gold-text: #d9960a;
  --bg: #f2f2f2;
  --card: #fff;
  --text: #333;
  --muted: #999;
  --line: #e7e7e7;
  --red: #e5484d;
  --green: #18a957;
  --tabbar-h: 58px;
  --top-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #e6e6e6; }
body {
  margin: 0;
  color: var(--text);
  font: 14px/1.45 -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #e6e6e6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.shell {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0, 0, 0, .025) 0 14px, transparent 15px),
    radial-gradient(circle at 60px 60px, rgba(0, 0, 0, .02) 0 10px, transparent 11px);
  background-size: 80px 80px;
  overflow-x: hidden;
}

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #e8ac1c, var(--gold) 60%, #d89c0d);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; min-width: 0; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: #1aa34a;
  font: 900 18px/1 "Arial Black", Arial, sans-serif;
  letter-spacing: -1px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 19px; letter-spacing: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); white-space: nowrap; }
.brand-text small { font-size: 10px; letter-spacing: 3px; opacity: .85; }
.guest { display: flex; gap: 8px; }
.guest button {
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.btn-login { background: #fff; color: var(--gold-text); border: 0; font-weight: 600; }
.btn-register { background: transparent; color: #fff; border: 1.5px solid #fff; }
.account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  min-width: 0;
  padding: 0 4px 0 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  color: #fff;
}
.wallet strong { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe68a, #f2b51c 60%, #c98a06);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.coin.wide { font-size: 8px; letter-spacing: -.5px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  cursor: pointer;
}
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-text);
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, .7);
}

.page { display: block; padding: 10px 12px 18px; }

/* 快捷入口 */
.quick { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px 10px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.q i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.q svg { width: 26px; height: 26px; }
.yen { font: 900 24px/1 Arial, sans-serif; }
.row i .yen { font-size: 17px; color: #fff; }
.q span {
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.q1 i, .q1 span { background: linear-gradient(#ff7a59, #e8452c); }
.q2 i, .q2 span { background: linear-gradient(#ffcb3d, #f0a400); }
.q3 i, .q3 span { background: linear-gradient(#c36bff, #9140e6); }
.q4 i, .q4 span { background: linear-gradient(#56b6ff, #1f7fe0); }
.q5 i, .q5 span { background: linear-gradient(#4fd38a, #18a957); }

/* 轮播 */
.banner { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.slides { display: flex; transition: transform .45s ease; }
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 150px;
  padding: 16px 16px 0;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  text-align: left;
}
.slide h3 { position: relative; z-index: 1; margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.slide p { position: relative; z-index: 1; margin: 6px 0 0; font-size: 13px; opacity: .95; max-width: 52%; }
.slide .art { position: absolute; right: 4px; bottom: -6px; display: flex; }
.slide .art img {
  width: 68px;
  height: 68px;
  margin-left: -16px;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .85);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  background: #fff;
}
.slide .art img:nth-child(2) { transform: translateY(-16px); }
.slide .art img.solo { width: 104px; height: 104px; margin: 0 6px 16px 0; transform: rotate(6deg); }
.s1 { background: linear-gradient(120deg, #e8452c, #f08a1c 60%, #f5b324); }
.s2 { background: linear-gradient(120deg, #2b5cd6, #6a3de8 60%, #b03fd9); }
.s3 { background: linear-gradient(120deg, #0d8f7a, #1fb5a0 55%, #3cc8e8); }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .3s; }
.dots i.on { width: 16px; background: #fff; }

/* 精选滚动 */
.jackpot {
  margin-top: 12px;
  padding: 8px 0 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
}
.jackpot-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #b8500c;
  letter-spacing: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 199, 74, .35), transparent);
}
.flame {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #ffd34a, #ff7a1a 55%, #e5381b);
  transform: rotate(-8deg);
}
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 40s linear infinite; padding: 0 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .slides { transition: none; } }
.pick { width: 72px; flex: 0 0 72px; text-align: center; border: 0; background: none; padding: 0; cursor: pointer; }
.pick .pick-art { position: relative; display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); background: linear-gradient(160deg, #f4e4b0, #d9b866); }
.pick img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.pick .who { display: block; margin-top: 4px; font-size: 12px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .amt { display: block; font-size: 12px; font-weight: 800; color: var(--gold-text); }
.pick .amt.preview { color: #1f7fe0; }

/* 公告 */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 10px;
  padding: 0 4px 0 6px;
}
.speaker { width: 22px; height: 22px; color: #8a6a1a; flex: none; }
.notice-text { flex: 1; overflow: hidden; white-space: nowrap; color: #555; font-size: 15px; }
.notice-text span { display: inline-block; padding-left: 100%; animation: notice 30s linear infinite; }
@keyframes notice { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice-text span { animation: none; padding-left: 0; } }
.mail { flex: none; width: 36px; height: 30px; border: 0; border-radius: 6px; background: linear-gradient(#ffd25a, #f0a400); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mail svg { width: 22px; height: 22px; }

/* 分类 */
.tabs {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 6px 0 4px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #8a8a8a;
  font-size: 16px;
  letter-spacing: 3px;
  cursor: pointer;
}
.tabs button.active { color: var(--gold-text); font-weight: 700; }
.tabs svg { width: 36px; height: 36px; display: block; }
.tabs button:not(.active) svg { filter: saturate(.8); }

.section-head { display: flex; align-items: center; gap: 8px; margin: 12px 2px 10px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 21px; font-weight: 700; color: #333; white-space: nowrap; }
.section-head .muted { color: var(--muted); font-size: 12px; min-width: 0; }
.more { margin-left: auto; color: var(--muted); font-size: 16px; flex: none; }

/* 游戏卡：方形图标加金色名称条 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.grid.small { gap: 10px 8px; }
.tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4e4b0, #d9b866);
  box-shadow: 0 2px 6px rgba(120, 90, 20, .25);
  cursor: pointer;
  text-align: center;
  outline: none;
}
.tile:focus-visible { box-shadow: 0 0 0 3px #1f6fd6; }
.tile[aria-disabled="true"] { cursor: progress; }
.tile .icon { position: relative; aspect-ratio: 1 / 1; background: #e9e1c9; overflow: hidden; }
.tile img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }
.art-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  color: #8a5a00;
  background: radial-gradient(circle at 50% 35%, #fff4c9, #f2c94c 55%, #d9a514);
  font-weight: 900;
  line-height: 1.1;
}
.art-fallback b { font: 900 22px/1 "Arial Black", Arial, sans-serif; color: #1aa34a; }
.art-fallback small { font-size: 11px; font-weight: 700; word-break: break-all; }
.tile .name {
  padding: 5px 4px 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #e0b24a, #b8862a);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.tile .fav {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  line-height: 26px;
  padding: 0;
  cursor: pointer;
}
.tile .fav.on { background: rgba(255, 255, 255, .9); color: #f0a400; }
/* 左上角入口角标：试玩（红）、预览（蓝） */
.tile .tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 1px 8px 2px 6px;
  border-radius: 14px 0 10px 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ff6a4d, #e5381b);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.tile .tag.preview { background: linear-gradient(180deg, #56b6ff, #1f7fe0); }
.tile .tag.tested { background: linear-gradient(180deg, #22bd80, #12845b); }
.tile.pending .icon::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 20, 20, .55); }
.tile .badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.tile.pending .name { background: linear-gradient(180deg, #b5b5b5, #8d8d8d); }
.grid.small .tile .name { font-size: 12px; padding: 4px 2px 5px; }
.grid.small .tile .tag { font-size: 10px; padding: 0 6px 1px 5px; }
.grid.small .tile .badge { font-size: 13px; letter-spacing: 1px; }
.grid.small .tile .fav { width: 22px; height: 22px; line-height: 22px; font-size: 13px; }
.grid.small .art-fallback b { font-size: 17px; }

/* 「即将上线」分隔：跨满整行 */
.soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 -2px;
  color: #a0a0a0;
  font-size: 13px;
  letter-spacing: 1px;
}
.soon::before, .soon::after { content: ""; flex: 1; height: 1px; background: #dcdcdc; }
.empty { margin: 40px 0; text-align: center; color: var(--muted); }
.offline { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 30px 0; color: var(--muted); }
.offline p { margin: 0; }
.rec-action {
  height: 34px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.rec-action:disabled { opacity: .6; cursor: default; }

/* 全部游戏页 */
.subbar {
  position: sticky;
  top: var(--top-h);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: -10px -12px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}
.subbar h1 { margin: 0; font-size: 19px; font-weight: 600; }
.back { position: absolute; left: 6px; top: 0; width: 44px; height: 46px; }
.back::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 11px;
  height: 11px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
}
.search { position: relative; display: block; margin-bottom: 10px; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 16px;
  border: 1.5px solid #d6d6d6;
  border-radius: 20px;
  background: #fff;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { border-color: var(--gold); }
.search svg { position: absolute; right: 12px; top: 9px; width: 22px; height: 22px; color: var(--gold-text); pointer-events: none; }
.browser { display: flex; gap: 10px; align-items: flex-start; }
.side { display: flex; flex-direction: column; gap: 10px; width: 76px; flex: none; position: sticky; top: calc(var(--top-h) + 56px); }
.side button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #999;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  cursor: pointer;
}
.side button svg { width: 28px; height: 28px; display: block; }
.side button small { font-size: 11px; opacity: .8; }
.side button.active { background: linear-gradient(180deg, #edb52c, #d69a0c); color: #fff; font-weight: 700; }
.browse-main { flex: 1; min-width: 0; }
.seg { display: flex; gap: 8px; margin-bottom: 8px; }
.seg button {
  flex: 1;
  height: 34px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #f4f4f4;
  color: #777;
  font-size: 15px;
  cursor: pointer;
}
.seg button.active { background: linear-gradient(180deg, #edb52c, #d69a0c); border-color: transparent; color: #fff; }
.scope { margin: 0 2px 8px; font-size: 12px; }
.muted { color: var(--muted); }

/* 我的 */
#pageMine { padding: 0 0 18px; }
.mine-head {
  padding: 22px 16px 54px;
  color: #fff;
  background: linear-gradient(160deg, #eeb128, var(--gold) 50%, #d9960a);
}
.mine-user { display: flex; align-items: center; gap: 14px; }
.mine-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-text);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.welcome { margin: 0; font-size: 15px; }
.mine-name { margin: 4px 0 0; font-size: 20px; font-weight: 700; word-break: break-all; }
.mine-name a { color: #fff7d6; text-decoration: underline; }
.mine-wallet { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 24px; }
.mine-wallet strong { font-variant-numeric: tabular-nums; }
.mine-wallet .coin { width: 26px; height: 26px; font-size: 15px; }
.mine-wallet .coin.wide { font-size: 10px; }
.mine-today {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  text-align: center;
}
.mine-today div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.mine-today span { display: block; font-size: 12px; opacity: .9; }
.mine-today b { display: block; margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.card-list {
  position: relative;
  margin: -36px 12px 12px;
  padding: 4px 0;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.card-list + .card-list { margin-top: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.row + .row { border-top: 1px solid #f0f0f0; }
.row em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row em.offline-state { color: var(--red); }
.row em.online-state { color: var(--green); }
.row::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #aaa;
  border-top: 2px solid #aaa;
  transform: rotate(45deg);
}
.row:has(em)::after { margin-left: 8px; }
.row i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.row i svg { width: 18px; height: 18px; fill: #fff; }
.r1 { background: linear-gradient(#56b6ff, #1f7fe0); }
.r2 { background: linear-gradient(#ffcb3d, #f0a400); }
.r3 { background: linear-gradient(#c36bff, #9140e6); }
.r4 { background: linear-gradient(#ff9a5a, #e8452c); }
.r5 { background: linear-gradient(#ff8a7a, #e5484d); }
.r6 { background: linear-gradient(#56d48a, #18a957); }
.foot-note { margin: 14px 16px 0; text-align: center; color: #b0b0b0; font-size: 12px; }

/* 底部导航 */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, .08);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #999; font-size: 13px; }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tabbar a.active { color: var(--gold-text); }

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.sheet { width: 100%; max-width: 380px; border-radius: 14px; overflow: hidden; background: #f4f4f4; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); flex: none; }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  color: #fff;
  font-size: 20px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
}
.sheet-head .brand-mark { width: 34px; height: 34px; font-size: 15px; }
.sheet-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 14px 0;
  padding: 14px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, #2b5cd6, #6a3de8 60%, #b03fd9);
}
.sheet-banner strong { font-size: 18px; }
.sheet-banner span { font-size: 12px; opacity: .92; }
.auth-tabs { display: flex; margin: 8px 14px 0; border-bottom: 1px solid #ddd; }
.auth-tabs button {
  flex: 1;
  height: 46px;
  border: 0;
  background: none;
  font-size: 17px;
  letter-spacing: 3px;
  color: #444;
  cursor: pointer;
  position: relative;
}
.auth-tabs button.active { color: var(--gold-text); }
.auth-tabs button.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; border-radius: 2px; background: var(--gold); }
.auth-form { padding: 6px 14px 16px; }
.hint { margin: 8px 0; font-size: 14px; color: #444; }
.hint.small { margin: -4px 0 14px; font-size: 12px; color: #888; }
.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 12px;
  border: 1.5px solid #d6d6d6;
  border-radius: 9px;
  background: #f7f7f7;
}
.field:focus-within { border-color: var(--gold); background: #fff; }
.field i { width: 18px; height: 18px; margin: 0 6px 0 12px; flex: none; background: #888; }
.f-user { border-radius: 50% 50% 4px 4px; clip-path: polygon(30% 0, 70% 0, 70% 40%, 100% 60%, 100% 100%, 0 100%, 0 60%, 30% 40%); }
.f-lock { border-radius: 3px; clip-path: polygon(25% 40%, 25% 15%, 35% 0, 65% 0, 75% 15%, 75% 40%, 100% 40%, 100% 100%, 0 100%, 0 40%, 32% 40%, 32% 18%, 68% 18%, 68% 40%); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 15px; outline: none; }
.field input::placeholder { color: #aaa; }
.eye { position: relative; width: 40px; height: 100%; flex: none; cursor: pointer; }
.eye::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 20px;
  height: 13px;
  border: 2px solid #bbb;
  border-radius: 50% / 60%;
}
.eye::after { content: ""; position: absolute; left: 7px; top: 21px; width: 26px; height: 2px; background: #bbb; transform: rotate(-35deg); }
.eye.show::after { display: none; }
.strength { display: flex; align-items: center; gap: 6px; margin: -2px 0 12px; font-size: 13px; color: #444; }
.strength span { margin-right: 6px; }
.strength i { flex: 1; height: 6px; border-radius: 3px; background: #ddd; }
.strength[data-level="1"] i:nth-child(-n+2) { background: var(--red); }
.strength[data-level="2"] i:nth-child(-n+3) { background: #f0a400; }
.strength[data-level="3"] i:nth-child(-n+4) { background: var(--green); }
.strength[data-level="4"] i { background: var(--green); }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 14px; color: #444; }
.check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: none; }
.check a { color: var(--gold-text); }
.form-error { min-height: 20px; margin: 0 0 6px; color: var(--red); font-size: 13px; }
.submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #e8ac1c, #d99a0b);
  color: #fff;
  font-size: 18px;
  letter-spacing: 4px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 154, 11, .35);
}
.submit:disabled { opacity: .6; cursor: default; }
.switch { margin: 12px 0 0; text-align: center; color: #888; font-size: 14px; }
.switch a { color: var(--gold-text); }
.guest-entry { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 14px 18px; color: #aaa; font-size: 13px; }
.guest-entry span { display: flex; align-items: center; gap: 10px; width: 100%; }
.guest-entry span::before, .guest-entry span::after { content: ""; flex: 1; height: 1px; background: #ddd; }
.guest-btn {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 9px;
  background: #fff;
  color: var(--gold-text);
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
.guest-btn:disabled { opacity: .6; cursor: default; }
.display-form { padding-top: 16px; }
.select-field { display: flex; align-items: center; gap: 10px; height: 46px; margin-bottom: 12px; padding: 0 6px 0 12px; border: 1.5px solid #d6d6d6; border-radius: 9px; background: #fff; }
.select-field:focus-within { border-color: var(--gold); }
.select-field span { flex: none; color: #555; font-size: 15px; }
.select-field select { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 15px; outline: none; text-align: right; cursor: pointer; }
.close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.close::before, .close::after { content: ""; position: absolute; left: 10px; top: 19px; width: 20px; height: 2.5px; background: #fff; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.info-body { padding: 14px 16px 18px; font-size: 14px; color: #444; max-height: 60vh; overflow-y: auto; }
.info-body h4 { margin: 12px 0 4px; font-size: 15px; color: #333; }
.info-body p { margin: 0 0 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(420px, 86vw);
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: pre-line;
}
.toast.show { opacity: 1; }

/* 窄屏：顶栏放不下品牌文字时只保留标识 */
@media (max-width: 359px) {
  .brand-text small { display: none; }
  .brand-text b { font-size: 16px; letter-spacing: 1px; }
  .guest button { min-width: 60px; padding: 0 10px; font-size: 14px; }
  .side { width: 64px; }
}
