/* =========================================================
   斗战胜佛游戏厅 · 前台界面 v2（2026-10-06）
   只给 index / login / redeem / account 使用
   后台 admin.html 仍用 style.css，互不影响
   ========================================================= */
:root {
  --bg: #100e0b;
  --bg-soft: #191510;
  --card: #221d16;
  --card-2: #2b2419;
  --line: #3a3226;
  --line-soft: #2c2519;
  --gold: #f0c04a;
  --gold-2: #ffd76a;
  --gold-dim: #b8912f;
  --text: #f5efe4;
  --muted: #a1958a;
  --muted-2: #7d7266;
  --ok: #5cb85c;
  --err: #d9534f;
  --blue: #4f8cff;
  --r: 14px;
  --r-sm: 10px;
  --topbar-h: 58px;
  --tabbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 480px at 50% -12%, #2a2214 0%, rgba(16, 14, 11, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20, 17, 12, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--gold);
  white-space: nowrap;
  flex: none;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.active { color: var(--gold); background: var(--card-2); font-weight: 600; }

.userbox { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; }
.userbox .email {
  color: var(--muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 页面容器 ---------------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
}

/* ---------------- Hero ---------------- */
.hero { padding: 6px 0 4px; }
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.25;
  background: linear-gradient(92deg, #ffe9a8, #f0c04a 55%, #c99a2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--muted);
}
.pill b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 公告 ---------------- */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #3a2f14, #262012);
  border: 1px solid #4d3f1c;
  color: #f0d79a;
  font-size: 13px;
}
.notice .tag {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #221c10;
  background: var(--gold);
  border-radius: 5px;
  padding: 1px 7px;
}
.notice .txt { flex: 1; min-width: 0; }
.notice .x { flex: none; cursor: pointer; color: #b79a52; padding: 0 2px; font-size: 16px; line-height: 1; }

/* ---------------- 搜索 ---------------- */
.search { position: relative; margin: 16px 0 12px; }
.search input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(240, 192, 74, .1); }
.search .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); display: flex; pointer-events: none;
}
.search .ico svg { width: 18px; height: 18px; }
.search .clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: var(--card-2); color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; display: none; font-family: inherit;
}
.search .clear.on { display: block; }

/* ---------------- 分类 ---------------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 8px;
  margin-bottom: 6px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--gold-dim); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #221c10; font-weight: 600; }
.chip .n { font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
.chip.on .n { opacity: .6; }

/* ---------------- 分区标题 ---------------- */
.sect {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 12px;
}
.sect h2 { font-size: 15px; font-weight: 600; }
.sect .count { font-size: 12.5px; color: var(--muted-2); }
.sect .line { flex: 1; height: 1px; background: var(--line-soft); }

/* ---------------- 游戏卡片 ---------------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.tile:active { transform: scale(.985); }
.tile .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #3a2f1c, #1c1710);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 2px;
}
.tile .tag {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tag.ok { background: rgba(240, 192, 74, .92); color: #221c10; }
.tag.lk { background: rgba(20, 17, 12, .78); color: #d9cdb8; border: 1px solid var(--line); }
.tile .go {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(240, 192, 74, .94);
  color: #221c10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s, transform .16s;
}
.tile:hover .go { opacity: 1; transform: none; }
.tile .go svg { width: 15px; height: 15px; }
.tile .name {
  padding: 9px 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.tile .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 11px 11px;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: -4px;
}

/* ---------------- 骨架屏 ---------------- */
.sk {
  background: linear-gradient(90deg, #221d16 25%, #2f2819 37%, #221d16 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
}
.sk.thumb { aspect-ratio: 4 / 3; border-radius: 0; }
.sk.tx { height: 12px; margin: 12px 11px; border-radius: 6px; }
.sk.tx.s { width: 55%; margin-top: -4px; }
.tile.skel { cursor: default; }
.tile.skel:hover { transform: none; border-color: var(--line); box-shadow: none; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------- 空态 / 加载更多 / 结束 ---------------- */
.empty {
  text-align: center;
  padding: 46px 16px;
  color: var(--muted-2);
  font-size: 13.5px;
}
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .6; }
.morebox { text-align: center; padding: 18px 0 6px; }
.morebox button {
  padding: 11px 26px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.morebox button:hover { color: var(--gold); border-color: var(--gold-dim); }
.end { text-align: center; color: var(--muted-2); font-size: 12.5px; padding: 18px 0 4px; }
.sentinel { height: 1px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #f5ca58, #e0ac35);
  color: #221c10;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}
.btn.ghost:hover { color: var(--text); border-color: var(--gold-dim); }
.btn.sm { width: auto; padding: 7px 13px; font-size: 13px; font-weight: 600; border-radius: 9px; }
.btn.block { width: 100%; }

/* ---------------- 表单面板 ---------------- */
.sheet {
  max-width: 420px;
  margin: 26px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}
.sheet h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.sheet.wide { max-width: 560px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
input::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(240, 192, 74, .1); }
input.code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 13px;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.seg button {
  flex: 1;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.seg button.on { background: var(--gold); color: #221c10; font-weight: 700; }

.msg {
  display: none;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-top: 14px;
}
.msg.err { display: block; background: #3a1f1f; color: #f0a09c; border: 1px solid #5c2c2c; }
.msg.ok { display: block; background: #1f3320; color: #98d998; border: 1px solid #2c5c2e; }

.altlink { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted-2); }
.altlink a { color: var(--gold); }

/* ---------------- 登录 / 注册页 ---------------- */
.auth-head { text-align: center; padding: 26px 0 18px; }
.auth-head .logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(92deg, #ffe9a8, #f0c04a 55%, #c99a2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-head .tip { font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-note {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.7;
}
.auth-note b { color: var(--gold); font-weight: 600; }

.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw .eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 12.5px;
  padding: 6px 8px;
  font-family: inherit;
}

/* ---------------- 兑换成功卡 ---------------- */
.win {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #26331d, #1d2417);
  border: 1px solid #2c5c2e;
  margin-bottom: 14px;
}
.win .ic { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.win .t { font-size: 16px; font-weight: 700; color: #b6e08a; }
.win .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------------- 兑换记录 ---------------- */
.rec {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 9px;
}
.rec .c {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: .5px;
  color: var(--gold);
}
.rec .v { flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.rec .t { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* ---------------- 我的：资料卡 ---------------- */
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
}
.avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5ca58, #b8912f);
  color: #221c10;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.profile .who { flex: 1; min-width: 0; }
.profile .mail { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.profile .meta { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.profile .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.profile .tags span {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--card-2);
  color: var(--gold);
  border: 1px solid var(--line);
}
.profile .tags span.admin { background: #1e2c44; color: #9dc2ff; border-color: #2c4166; }

.quick { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.quick a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 10px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px;
}
.quick a:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ---------------- 提示条 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--topbar-h) + 12px);
  transform: translate(-50%, -12px);
  z-index: 200;
  background: rgba(34, 29, 22, .97);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 86vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }

/* ---------------- 底部标签栏（手机） ---------------- */
.tabbar { display: none; }
body.no-tab .tabbar { display: none !important; }

/* ---------------- 桌面微调 ---------------- */
@media (min-width: 768px) {
  .page { padding-bottom: 40px; }
  .hero { padding: 18px 0 6px; }
  .hero h1 { font-size: 30px; }
}

/* ---------------- 手机 ---------------- */
@media (max-width: 767px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .nav { display: none; }
  .brand { font-size: 16px; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(20, 17, 12, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted-2);
    font-size: 11px;
    min-height: 44px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a.active { color: var(--gold); }
  .tabbar a.active::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
  }
  .tabbar svg { width: 21px; height: 21px; display: block; }

  .page { padding: 16px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); }
  .hero h1 { font-size: 22px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile:hover { transform: none; box-shadow: none; }
  .tile .thumb { aspect-ratio: 4 / 3; }
  .tile .ph { font-size: 17px; }
  .tile .name { font-size: 13px; padding: 8px 10px 10px; -webkit-line-clamp: 1; min-height: 1.4em; }
  .tile .go { display: none; }
  .sheet { margin: 16px auto 0; padding: 18px; border-radius: 16px; }
  .rec { flex-wrap: wrap; }
  .rec .t { width: 100%; padding-left: 0; }
}

@media (max-width: 359px) {
  .brand { font-size: 14.5px; }
  .games { gap: 8px; }
}

/* ---------------- 推荐区块（后台标记「推荐」的游戏） ---------------- */
.feat { margin: 16px 0 2px; }
.fstrip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px;
}
.fstrip::-webkit-scrollbar { display: none; }
.fstrip .tile { flex: 0 0 168px; width: 168px; }
.fstrip .tile:hover { transform: translateY(-3px); }
@media (max-width: 767px) {
  .fstrip { gap: 10px; }
  .fstrip .tile { flex: 0 0 134px; width: 134px; }
  .fstrip .tile .thumb { aspect-ratio: 4 / 3; }
}

/* ---------------- APP 下载页（app.html） ---------------- */
.uabar {
  margin: 16px 0 4px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #3a2f14, #262012);
  border: 1px solid #4d3f1c;
  color: #f0d79a;
  font-size: 13px;
  line-height: 1.55;
}
.uabar b { color: var(--gold-2); }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color .18s, box-shadow .18s;
}
.plan.hi {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(240, 192, 74, .18), 0 10px 26px rgba(0, 0, 0, .32);
}
.ptop { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pico {
  flex: none;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.ptop h2 { font-size: 16px; font-weight: 700; }
.ptop p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.btn.dl { margin-bottom: 8px; }
.apk-meta {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  margin-bottom: 18px;
}

.steps-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 4px 0 10px;
}
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 10px; }
.steps .num {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.steps b { font-size: 13.5px; }
.steps p { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.steps p b { color: var(--gold-2); font-size: 12.5px; }

.tip {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}
.tip b { color: var(--text); }

.sheet.wide { max-width: none; }
.use {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.ucard {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 14px;
}
.ucard .ui { font-size: 18px; margin-bottom: 6px; }
.ucard b { font-size: 13.5px; }
.ucard p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.65; }

.faq { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 0 14px;
}
.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; float: right; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: '－'; }
.faq details p {
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 0 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 16px; }
  .use { grid-template-columns: 1fr; }
  .uabar { font-size: 12.5px; }
}

/* ==== [2026-10-06 自适应加固] 字体放大不撑破 + 底部栏常驻 ==== */
@media (max-width: 900px) {
  .tabbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    height:calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom:env(safe-area-inset-bottom, 0px); will-change:transform; }
  .page, .hero, body > main {
    padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px) !important; }
}
@media (max-width: 900px) and (max-height: 520px) {
  :root { --tabbar-h: 48px; }
  .tabbar a { font-size:10px; min-height:38px; }
  .tabbar svg { width:18px; height:18px; }
}
@media (max-width: 900px) {
  .hero h1 { font-size:clamp(18px, 5.2vw, 24px) !important; }
  .brand { font-size:clamp(14px, 4vw, 17px) !important; }
  .tile .name { font-size:clamp(12px, 3.4vw, 14px) !important; }
  .tile .ph { font-size:clamp(15px, 4.4vw, 18px) !important; }
  input, select, textarea, button { font-size:max(16px, 0.95rem) !important; max-width:100% !important;
    -webkit-appearance:none; appearance:none; }
  .tile, .card, .btn, button, a.btn { white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
  .btn, button { min-height:44px; padding-left:max(12px, 3vw); padding-right:max(12px, 3vw); }
  html, body { overflow-x:hidden; max-width:100%; }
  img, svg, video, canvas { max-width:100%; height:auto; }
}
@media (max-width: 900px) and (max-height: 480px) {
  .tabbar { display:none !important; }
  .page, .hero, body > main { padding-bottom:24px !important; }
}
