/* =============================================================
   星野陪玩 · 前台样式（PC + H5 双端自适应）
   设计令牌 → 基础 → 头部/底部 → 组件 → 页面 → 移动端适配
   ============================================================= */

:root {
  /* 主色：单一靛蓝（Material 3 主色，替代原紫红双色） */
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-soft: #eef2ff;
  /* 中性色阶（Material 灰度） */
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --bg: #fafafa;
  --card: #ffffff;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  /* 语义色（降饱和，贴合极简） */
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;
  /* Material 3 圆角体系 */
  --radius: 14px;
  --radius-sm: 10px;
  /* 扁平：无投影，用描边表达层级 */
  --shadow: none;
  --shadow-lg: 0 4px 16px rgba(24, 24, 27, 0.06);
  --header-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; padding-bottom: 64px; }

/* ---------------------------------------------------------- 头部 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 16px rgba(91, 61, 245, .35);
  overflow: hidden; flex: none;
}
.brand-mark .brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: .18s;
}
.nav a:hover { background: #f2f3f9; color: var(--ink); }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; position: relative; font-size: 17px;
}
.icon-btn:hover { border-color: #d8dbe8; }
.badge-dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px; line-height: 18px;
  text-align: center; font-weight: 700;
}
.avatar-btn { display: flex; align-items: center; gap: 8px; border: none; background: none; }
.avatar-xs { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #eee; }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff; box-shadow: 0 8px 20px rgba(91, 61, 245, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(91, 61, 245, .34); }
.btn-primary:disabled { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-line { border-color: #d9dce8; background: #fff; color: var(--ink-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: #f2f3f9; color: var(--ink-2); }
.btn-ghost:hover { background: #e9ebf5; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- 卡片 / 区块 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 24px; letter-spacing: -.4px; }
.section-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.link-more { color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------- 首屏 */
.hero { margin-top: 24px; }
.hero-slider {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 320px;
  box-shadow: var(--shadow-lg); background: #1e1b4b;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease; display: flex; align-items: center;
  overflow: hidden;
}
/* 轮播图用 img 标签渲染：部分大尺寸 PNG 作为 background-image 时 Chrome 只绘制首行 */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  /* 仅在文案左侧做局部压暗，保证纯图片横幅主体清晰可见 */
  background: linear-gradient(90deg, rgba(10, 8, 30, .62) 0%, rgba(10, 8, 30, .34) 34%, rgba(10, 8, 30, 0) 62%);
  opacity: 0; transition: opacity .3s ease;
}
.hero-slide.hasText::after { opacity: 1; }
.hero-copy { position: relative; z-index: 2; padding: 56px 56px; max-width: 620px; color: #fff; }
.hero-copy h1 { font-size: 40px; letter-spacing: -1px; }
.hero-copy p { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .82); }
.hero-copy .btn { margin-top: 26px; }
.hero-dots { position: absolute; bottom: 18px; left: 56px; display: flex; gap: 8px; z-index: 3; }
.hero-dots i {
  width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: .25s;
}
.hero-dots i.on { width: 24px; background: #fff; }
.hero-aside { display: none; }

.notice-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 18px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2);
}
.notice-bar strong { color: var(--brand); flex: none; }

/* ---------------------------------------------------------- 分类胶囊 */
.chip-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); transition: .18s;
}
.chip:hover { border-color: #cdd2e4; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- 服务卡片 */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .22s; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-cover { position: relative; aspect-ratio: 4 / 3; background: #eceefb; overflow: hidden; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.svc-card:hover .svc-cover img { transform: scale(1.05); }
.svc-play {
  position: absolute; right: 10px; bottom: 10px; background: rgba(10, 12, 30, .66); color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 7px; backdrop-filter: blur(4px);
}
.svc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.svc-title { min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.svc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c7cbdb; }
.svc-price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.price { color: var(--danger); font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.price small { font-size: 12px; font-weight: 600; margin-left: 2px; }
.price .unit { color: var(--muted); font-size: 12px; font-weight: 500; }
.sales { color: var(--muted); font-size: 12px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px;
  background: var(--brand-soft); color: var(--brand); font-weight: 500;
}
.tag.gray { background: #f2f3f8; color: var(--ink-2); }

/* ---------------------------------------------------------- 商城 */
.mall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .22s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-cover { aspect-ratio: 1 / 1; background: #f1f2fa; position: relative; overflow: hidden; }
.prod-cover img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 14px 16px 16px; }
.prod-name { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.prod-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.prod-price .old { color: var(--muted); text-decoration: line-through; font-size: 12px; }

/* ---------------------------------------------------------- 详情页 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; margin-top: 24px; }
.gallery { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery-main { aspect-ratio: 4 / 3; background: #eef0fa; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.gallery-thumbs img {
  width: 72px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex: none;
}
.gallery-thumbs img.on { border-color: var(--brand); }
.video-flag {
  position: absolute; left: 14px; top: 14px; background: rgba(15, 23, 42, .7); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.detail-main, .detail-side { min-width: 0; }
.info-panel { min-width: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-panel h1 { font-size: 24px; letter-spacing: -.4px; }
.info-sub { color: var(--muted); margin-top: 8px; font-size: 14px; }
.price-block {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(135deg, #f7f5ff, #fdf6ff); border: 1px solid #ece6ff;
}
.price-block .price { font-size: 30px; }
.info-rows { margin-top: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.info-rows .row { display: flex; gap: 10px; }
.info-rows .k { color: var(--muted); width: 72px; flex: none; }
.player-card { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; background: #fafbff; border-radius: 14px; }
.player-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.verify { color: var(--ok); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }

.booking-form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #dfe3ef;
  background: #fff; outline: none; transition: .16s; color: var(--ink);
}
.textarea { height: auto; padding: 12px 14px; min-height: 82px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 61, 245, .12); }
.stepper { display: inline-flex; align-items: center; border: 1px solid #dfe3ef; border-radius: 12px; overflow: hidden; }
.stepper button { width: 38px; height: 40px; border: none; background: #fafbff; font-size: 18px; color: var(--ink-2); }
.stepper input { width: 54px; height: 40px; border: none; text-align: center; outline: none; font-size: 15px; }
.total-line { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; }
.total-line .price { font-size: 26px; }

/* 富文本 */
.rich { color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.rich h3 { font-size: 17px; margin: 18px 0 8px; color: var(--ink); }
.rich p { margin: 8px 0; }
.rich ul { margin: 8px 0; }
.rich img { border-radius: 12px; margin: 12px 0; }

/* ---------------------------------------------------------- 订单 */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.tab {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); white-space: nowrap;
}
.tab.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.order-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.order-no { color: var(--muted); font-size: 12.5px; }
.order-body { display: flex; gap: 14px; padding: 16px 0; }
.order-body img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: #f0f1f8; }
.order-title { font-weight: 600; font-size: 15.5px; }
.order-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.status.pending { background: var(--warn-soft); color: var(--warn); }
.status.paid { background: var(--info-soft); color: var(--info); }
.status.serving { background: #eef2ff; color: #4f46e5; }
.status.finished { background: var(--ok-soft); color: var(--ok); }
.status.cancelled { background: #f2f3f8; color: var(--muted); }
.status.refunded { background: var(--danger-soft); color: var(--danger); }

.countdown { font-size: 13px; color: var(--danger); font-weight: 600; }

/* 状态时间轴 */
.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline .step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.timeline .rail { position: relative; display: flex; justify-content: center; }
.timeline .rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline .step:first-child .rail::before { top: 14px; }
.timeline .step:last-child .rail::before { bottom: calc(100% - 14px); }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd4e4; margin-top: 7px; position: relative; z-index: 1; }
.timeline .step.done .dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(91, 61, 245, .12); }
.timeline .content { padding: 0 0 18px; }
.timeline .content b { font-size: 14.5px; }
.timeline .content span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------------------------------------------------------- 支付 */
.pay-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.pay-box { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.amount-big { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.pay-channel {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); cursor: pointer; transition: .16s; margin-bottom: 12px;
}
.pay-channel.on { border-color: var(--brand); background: #faf8ff; }
.pay-channel .logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700; }
.pay-channel .logo.alipay { background: #1677ff; }
.pay-channel .logo.wechat { background: #07c160; }
.pay-channel .logo.mock { background: #64748b; }
.pay-channel .meta { flex: 1; }
.pay-channel .meta b { display: block; font-size: 14.5px; }
.pay-channel .meta span { color: var(--muted); font-size: 12.5px; }
.qr-wrap { display: grid; place-items: center; gap: 12px; padding: 18px; background: #fafbff; border-radius: 16px; }
.qr-wrap img, .qr-wrap canvas { width: 200px; height: 200px; border-radius: 12px; background: #fff; }
.qr-hint { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------------------------------------------------------- 账号 */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 560px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 28px; background: #fff; }
.auth-side {
  background: linear-gradient(150deg, #1b1440, #4c1d95 55%, #7c3aed);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { font-size: 30px; letter-spacing: -.6px; }
.auth-side p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 14.5px; }
.auth-side ul { margin-top: 24px; display: grid; gap: 10px; padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.86); }
.auth-form { padding: 48px; }
.auth-form h3 { font-size: 22px; }
.auth-form .hint { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.toggle-auth { display: flex; gap: 6px; background: #f2f3f9; padding: 4px; border-radius: 12px; margin: 20px 0 22px; }
.toggle-auth button { flex: 1; height: 36px; border: none; border-radius: 9px; background: transparent; font-size: 14px; color: var(--ink-2); }
.toggle-auth button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.form-stack { display: grid; gap: 14px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }

.profile-head { display: flex; align-items: center; gap: 16px; padding: 24px; background: linear-gradient(135deg, #f7f5ff, #fff); border-radius: var(--radius); }
.profile-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat-cell { background: #fff; border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-cell b { display: block; font-size: 22px; letter-spacing: -.5px; }
.stat-cell span { color: var(--muted); font-size: 12.5px; }
.menu-list { margin-top: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item .left { display: flex; align-items: center; gap: 12px; }
.menu-item .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.menu-item .arrow { color: #c3c8d8; }

/* ---------------------------------------------------------- 表单页 / 审核 */
.panel { min-width: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-box {
  border: 1.5px dashed #d5d9e8; border-radius: 14px; padding: 20px; text-align: center; background: #fbfcff;
  cursor: pointer; transition: .16s; min-height: 120px; display: grid; place-items: center; gap: 6px; color: var(--muted); font-size: 13px;
}
.upload-box:hover { border-color: var(--brand); background: #f8f5ff; }
.upload-box img { max-height: 140px; border-radius: 10px; object-fit: contain; }
.upload-box.filled { padding: 8px; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: #eef0fa; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 12px; line-height: 1; }
.upload-progress { height: 6px; border-radius: 3px; background: #eceefb; overflow: hidden; margin-top: 8px; }
.upload-progress i { display: block; height: 100%; background: var(--brand); transition: .2s; }

.alert { border-radius: 12px; padding: 14px 16px; font-size: 13.5px; display: flex; gap: 10px; }
.alert.warn { background: var(--warn-soft); color: #8a5a00; }
.alert.danger { background: var(--danger-soft); color: #a32428; }
.alert.ok { background: var(--ok-soft); color: #0b6b35; }
.alert.info { background: var(--info-soft); color: #1746a2; }

.mask-cell { letter-spacing: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------------------------------------------------- 空态/加载/分页 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; margin-bottom: 10px; opacity: .7; }
.loading-bar { height: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 40% 100%; animation: slide 1.1s infinite linear; border-radius: 2px; }
@keyframes slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.pagination button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .45; }

/* ---------------------------------------------------------- 弹层 */
.overlay { position: fixed; inset: 0; background: rgba(10, 12, 25, .48); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px 22px; display: flex; gap: 12px; }
.toast-wrap { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; }
.toast { background: rgba(15, 23, 42, .92); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); }
.toast.err { background: rgba(190, 30, 40, .95); }
.toast.ok { background: rgba(12, 120, 60, .95); }

/* ---------------------------------------------------------- 底部 */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 44px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- 移动端 TabBar */
.mobile-tabbar { display: none; }
.mobile-only { display: none; }
.pc-only { display: block; }

/* ============================================================
   响应式：<= 960px 进入移动端布局
   ============================================================ */
@media (max-width: 960px) {
  :root { --header-h: 56px; --radius: 16px; }
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .main { padding-bottom: 150px; }

  .nav, .pc-only, .site-footer .footer-grid > div:not(:first-child) { display: none !important; }
  .mobile-only { display: block; }
  .header-inner { gap: 12px; }
  .brand { font-size: 17px; }
  .header-actions { margin-left: auto; }

  .hero { margin-top: 14px; }
  .hero-slider { min-height: 200px; border-radius: 18px; }
  .hero-copy { padding: 26px 20px 40px; max-width: 100%; }
  .hero-copy h1 { font-size: 23px; letter-spacing: -.4px; }
  .hero-copy p { font-size: 13px; margin-top: 8px; }
  .hero-copy .btn { margin-top: 16px; height: 38px; padding: 0 16px; font-size: 13.5px; }
  .hero-dots { left: 20px; bottom: 14px; }

  .notice-bar { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; }
  .section { margin-top: 26px; }
  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 18px; }
  .section-head .sub { font-size: 12px; }

  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc-body { padding: 10px 12px 12px; gap: 6px; }
  .svc-title { font-size: 13.5px; -webkit-line-clamp: 2; }
  .svc-meta { font-size: 11px; }
  .price { font-size: 17px; }
  .tag { font-size: 10.5px; padding: 1px 6px; }

  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-body { padding: 10px 12px 12px; }
  .prod-name { font-size: 13.5px; }

  .detail-layout, .pay-layout, .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .info-panel { padding: 18px; }
  .info-panel h1 { font-size: 19px; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-main { display: contents; }
  .detail-layout .gallery { order: -2; }
  .detail-side { order: -1; }
  .price-block { padding: 12px 14px; }
  .price-block .price { font-size: 24px; }
  .booking-form { gap: 12px; }
  .input, .textarea, .select { height: 42px; font-size: 15px; }

  .auth-side { display: none; }
  .auth-form { padding: 24px 20px; }

  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; }
  .order-body img { width: 68px; height: 68px; }
  .order-card { padding: 14px; }
  .order-foot { gap: 8px; }
  .btn-sm { height: 32px; }

  .site-footer { padding: 26px 0 18px; margin-top: 24px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .footer-bottom { font-size: 11.5px; }

  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a {
    flex: 1; display: grid; place-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 11px;
  }
  .mobile-tabbar a .ico { font-size: 19px; line-height: 1; }
  .mobile-tabbar a.active { color: var(--brand); font-weight: 600; }

  /* 详情页底部下单条 */
  .sticky-buy {
    position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 55;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  }
  .sticky-buy .price { font-size: 21px; }
  .sticky-buy .btn { flex: 1; }

  .overlay { align-items: end; padding: 0; }
  .modal { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .toast-wrap { top: auto; bottom: 96px; }
}

@media (min-width: 961px) {
  .mobile-tabbar, .sticky-buy { display: none !important; }
}

/* ============================================================
   钱包 / 充值 / VIP / 提现
   ============================================================ */
.balance-card {
  margin-top: 24px; padding: 26px 28px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #1b1440, #4c1d95 55%, #7c3aed);
  box-shadow: 0 18px 40px rgba(76, 29, 149, .28);
}
.muted-light { font-size: 13px; opacity: .75; }
.balance-num { font-size: 40px; font-weight: 800; letter-spacing: -1.4px; margin: 6px 0 18px; }
.balance-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.balance-row div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px; }
.balance-row span { display: block; font-size: 11.5px; opacity: .75; }
.balance-row b { font-size: 15px; }
.balance-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-light { background: rgba(255, 255, 255, .94); color: #4c1d95; border: none; height: 38px; padding: 0 18px; border-radius: 11px; font-weight: 600; font-size: 14px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.plan-card {
  position: relative; background: #fff; border-radius: 18px; padding: 26px 20px 20px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; transition: .2s; border: 2px solid transparent;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan-card.hot { border-color: #f0e4ff; background: linear-gradient(160deg, #fff, #fbf7ff); }
.plan-tag { position: absolute; top: 10px; right: 12px; background: var(--danger); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.plan-amount { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.plan-bonus { color: var(--ok); font-size: 13px; font-weight: 600; margin-top: 4px; }
.plan-bonus.vip { color: var(--brand); }
.plan-total { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.vip-card {
  margin-top: 20px; padding: 26px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #2b1b52, #7c3aed 60%, #c026d3);
  box-shadow: 0 18px 40px rgba(124, 58, 237, .28);
}
.vip-name { font-size: 26px; font-weight: 800; }
.vip-discount { opacity: .85; font-size: 13.5px; margin-top: 4px; }
.vip-progress { margin-top: 18px; }
.vip-progress-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.vip-progress-bar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.vip-progress-text { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .85; margin-top: 8px; }

.vip-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.vip-level { background: #fff; border-radius: 16px; padding: 20px 16px; box-shadow: var(--shadow); position: relative; border: 2px solid transparent; }
.vip-level.on { border-color: var(--brand); }
.vl-name { font-weight: 700; font-size: 15px; }
.vl-cond { color: var(--muted); font-size: 12px; margin-top: 4px; }
.vl-discount { color: var(--brand); font-weight: 700; font-size: 17px; margin-top: 10px; }
.vl-benefit { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.vl-tag { position: absolute; top: -9px; right: 12px; background: var(--brand); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; }

.log-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .balance-card { margin-top: 14px; padding: 20px 18px; border-radius: 18px; }
  .balance-num { font-size: 32px; margin: 4px 0 14px; }
  .balance-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .plan-amount { font-size: 24px; }
  .vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ============================================================
   游戏管理框架：游戏筛选 / 玩法表单 / 商城分区
   ============================================================ */
.seg {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.seg button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 7px 14px; border-radius: 9px; font-size: 13px; cursor: pointer;
  transition: .16s; font-family: inherit;
}
.seg button:hover { border-color: var(--brand); color: var(--brand); }
.seg button.on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
.game-fields {
  background: #faf9ff; border: 1px solid #efe9ff; border-radius: 12px; padding: 13px 14px;
}
.game-fields > label { font-weight: 600; color: var(--ink-2); }

/* 游戏导航条 */
.game-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.game-chip {
  flex: none; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 8px; cursor: pointer; transition: .18s; text-decoration: none;
}
.game-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.game-chip.on { border-color: var(--brand); background: #f5f1ff; box-shadow: 0 6px 16px rgba(124,58,237,.12); }
.game-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.game-chip b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.game-chip span { font-size: 11.5px; color: var(--muted); }
.game-chip.on b { color: var(--brand); }

/* 首页游戏入口 */
.game-entry {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
}
.game-entry a {
  background: #fff; border-radius: 16px; padding: 18px 10px; text-align: center;
  box-shadow: var(--shadow); transition: .2s; text-decoration: none; min-width: 0;
}
.game-entry a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-entry img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.game-entry b { display: block; margin-top: 9px; font-size: 14px; color: var(--ink); }
.game-entry span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

/* 商城分区切换 */

@media (max-width: 960px) {
  .game-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-entry img { width: 44px; height: 44px; }
  .game-entry b { font-size: 13px; }
    .game-fields { padding: 11px 12px; }
}

/* 游戏标签与商品标签 */
.tag.game { background: #eef4ff; color: #3554d1; border-color: #dbe6ff; }
.prod-game { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   设计提案 v3 · 扁平 + Material + 极简融合
   ------------------------------------------------------------
   三条原则：
   1. 去投影：用 1px 描边表达层级，仅在浮层保留极淡阴影
   2. 单主色：靛蓝 #4F46E5 统一交互语义，其余交给中性灰阶
   3. Tonal 选中态：浅色底 + 主色文字，取代高饱和实心块
   ============================================================ */

/* ------------------------------------------------ 全局收口 */
body { background: #fafafa; letter-spacing: -0.01em; }

.section { margin-top: 56px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.section-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.container { max-width: 1200px; }

/* ------------------------------------------------ 页头（扁平白条） */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark {
  border-radius: 10px;
  background: var(--brand);
  box-shadow: none;
  font-weight: 700;
}
.nav a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
}
.nav a:hover { background: #f4f4f5; color: var(--ink); }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ------------------------------------------------ 按钮（Material filled / outlined） */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .16s, border-color .16s, color .16s;
  box-shadow: none;
}
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.btn-line { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { background: #f4f4f5; color: var(--ink); }

/* ------------------------------------------------ 分类胶囊（Tonal 选中态） */
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .16s, border-color .16s, color .16s;
}
.chip:hover { border-color: var(--line-strong); background: #fafafa; }
.chip.on {
  background: var(--brand-soft);
  border-color: #c7d2fe;
  color: var(--brand);
  font-weight: 600;
}

/* ------------------------------------------------ 排序 tab（内联文字式） */
.tab {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.tab:hover { background: #f4f4f5; color: var(--ink); }
.tab.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ------------------------------------------------ 服务卡片（描边卡） */
.svc-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s;
}
.svc-card:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: 0 2px 12px rgba(24, 24, 27, 0.04);
}
.svc-card:hover .svc-cover img { transform: scale(1.03); }
.svc-cover { background: #f4f4f5; }
.svc-cover img { transition: transform .35s ease; }
.svc-play {
  background: rgba(24, 24, 27, 0.72);
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0;
}
.svc-body { padding: 14px 15px 15px; gap: 7px; }
.svc-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.svc-meta { font-size: 12px; color: var(--muted); }
.svc-price-row { padding-top: 2px; }

/* 价格：极简黑体数字，单位弱化 */
.price {
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price .unit { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 1px; }
.sales { color: var(--muted); font-size: 11.5px; }

/* 标签（低饱和小标签） */
.tag {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  background: #f4f4f5;
  color: var(--ink-2);
  letter-spacing: 0;
}
.tag.gray { background: #f4f4f5; color: var(--muted); }
.tag.game { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------ 商品卡片（描边卡） */
.prod-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s;
}
.prod-card:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: 0 2px 12px rgba(24, 24, 27, 0.04);
}
.prod-cover { background: #f4f4f5; }
.prod-body { padding: 13px 14px 15px; }
.prod-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prod-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.prod-game { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.prod-price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.prod-price .price { font-size: 17px; }
.prod-price .old { color: #a1a1aa; font-size: 12px; text-decoration: line-through; }

/* ------------------------------------------------ 面板 / 弹层 */
.panel, .info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.modal {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(24, 24, 27, 0.14);
}
.modal-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }

/* ------------------------------------------------ 输入控件 */
.input, .textarea, select.input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

/* ------------------------------------------------ 游戏入口（首页） */
.game-entry a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .18s;
}
.game-entry a:hover {
  transform: none;
  border-color: var(--brand);
  box-shadow: none;
}
.game-entry img { border-radius: 12px; }
.game-entry b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.game-entry span { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------ 轮播（扁平化） */
.hero { border-radius: 18px; overflow: hidden; }
.hero-slide { border-radius: 18px; }
.hero-dots i { background: rgba(255, 255, 255, 0.4); }
.hero-dots i.on { background: #fff; }

/* ------------------------------------------------ 空态与加载 */
.empty { color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.loading-bar { background: linear-gradient(90deg, #f4f4f5, #e4e4e7, #f4f4f5); }

/* ------------------------------------------------ 分页（极简） */
.pagination button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  min-width: 36px;
  transition: .16s;
}
.pagination button:hover:not(:disabled) { border-color: var(--line-strong); }
.pagination button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: .4; }

/* ------------------------------------------------ 移动端微调 */
@media (max-width: 960px) {
  .section { margin-top: 36px; }
  .section-head h2 { font-size: 18px; }
  .chip { padding: 7px 14px; font-size: 13px; }
  .price { font-size: 17px; }
  .svc-body { padding: 11px 12px 13px; }
  .prod-body { padding: 11px 12px 13px; }
  .svc-grid, .mall-grid { gap: 10px; }
  .btn { border-radius: 9px; }
}

/* ------------------------------------------------ 商品玩法标记（替代 emoji） */
.prod-mode {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
}

/* ------------------------------------------------ 游戏入口：自适应列宽（避免落单） */
.game-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
}
.game-entry a { padding: 20px 12px 18px; }
.game-entry img { width: 48px; height: 48px; }
.game-entry b { margin-top: 10px; }
.game-entry span { margin-top: 4px; }
@media (max-width: 960px) {
  .game-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-entry a { padding: 14px 8px 13px; }
  .game-entry img { width: 40px; height: 40px; }
}

/* ------------------------------------------------ 旧紫色残留统一为中性/主色浅调 */
.price-block { background: #f8f8f9 !important; border: 1px solid var(--line); }
.game-fields { background: #f8f8f9; border-color: var(--line); }
.balance-card { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6366f1); box-shadow: none; }
.vip-card { background: linear-gradient(135deg, #312e81, #4f46e5 60%, #7c3aed); box-shadow: none; }
.seg button.on { background: var(--brand); border-color: var(--brand); }
.seg button:hover { border-color: var(--brand); color: var(--brand); }
.plan-card.hot { border-color: #c7d2fe; background: #fafbff; }
.plan-bonus.vip { color: var(--brand); }
.vip-level.on { border-color: var(--brand); }
.vl-discount { color: var(--brand); }
.vl-tag { background: var(--brand); }
.game-chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.game-chip:hover { border-color: var(--brand); transform: none; }

/* ============================================================
   账号体系：邮箱 / 微信号 登录注册 + 忘记密码
   ============================================================ */
/* 「或」分隔线 */
.auth-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; margin: -4px 0;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.auth-or span { flex: none; letter-spacing: .04em; }

/* 底部链接行 */
.auth-links {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-top: -2px;
}
.auth-links a { color: var(--brand); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* 单栏布局（忘记密码用） */
.auth-wrap.auth-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
  margin: 40px auto;
}
.auth-wrap.auth-single .auth-form { border-radius: var(--radius); }

/* 登录表单细节 */
.auth-form h3 { letter-spacing: -0.02em; }
.auth-form .hint { color: var(--muted); font-size: 13px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: block; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }

@media (max-width: 960px) {
  .auth-wrap.auth-single { margin: 20px auto; padding: 0 4px; }
}

.auth-wrap.auth-single { min-height: 0; box-shadow: none; border: 1px solid var(--line); }
.auth-wrap { box-shadow: none; border: 1px solid var(--line); }

/* 忘记密码页：提示与表单间距 */
.auth-form .hint { margin: 6px 0 22px; line-height: 1.65; }
.auth-wrap.auth-single .auth-form { padding: 34px 32px 30px; }
.auth-wrap.auth-single h3 { font-size: 21px; }

.auth-links[style*="center"] { gap: 20px; }

/* ------------------------------------------------ 押金卡片 */
.deposit-card { border-left: 3px solid var(--brand); }
.deposit-body { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.deposit-amount { display: flex; align-items: baseline; gap: 6px; }
.deposit-amount .price { font-size: 30px; }
.deposit-amount .unit { color: var(--muted); font-size: 13px; }
.deposit-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.deposit-meta b { color: var(--ink); }
@media (max-width: 960px) {
  .deposit-body { gap: 14px; }
  .deposit-amount .price { font-size: 24px; }
}

/* ============================================================
   邀请有礼 / 注册协议 / 法律文本
   ============================================================ */
.invite-page { padding-top: 4px; }
.invite-hero {
  position: relative; overflow: hidden; margin-top: 16px; padding: 26px 28px;
  border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #312e81, #4f46e5 56%, #7c3aed);
  box-shadow: 0 18px 40px rgba(49, 46, 129, .22);
}
.invite-hero::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -90px; top: -140px; background: rgba(255, 255, 255, .08);
}
.ih-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.ih-top h1 { font-size: 26px; letter-spacing: -.6px; }
.ih-top p { margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.ih-badge {
  flex: none; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.invite-code {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .3);
}
.ic-label { font-size: 12px; color: rgba(255, 255, 255, .72); }
.ic-code {
  font-size: 26px; font-weight: 800; letter-spacing: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ic-copy {
  margin-left: auto; height: 34px; padding: 0 15px; border-radius: 9px; border: none;
  background: #fff; color: #4f46e5; font-weight: 700; font-size: 13px; cursor: pointer;
}
.invite-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.invite-stats div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.invite-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.invite-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.invite-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 16px; }
.invite-link-card .link-row { display: flex; gap: 8px; }
.invite-link-card .link-row .input { flex: 1; min-width: 0; font-size: 12.5px; }
.qr-box { display: grid; place-items: center; padding: 16px; margin-top: 12px; background: #fafafa; border-radius: 12px; }
.qr-box img { width: 150px; height: 150px; }
.invite-rules { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.invite-records { display: grid; }
.invite-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.invite-record:last-child { border-bottom: none; }
.ir-main { min-width: 0; }
.ir-main b { font-size: 13.5px; }
.ir-order { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ir-time { display: block; font-size: 11px; color: #b0b0b8; }
.ir-amount { text-align: right; flex: none; }
.ir-amount b { font-size: 15px; color: var(--ok); font-variant-numeric: tabular-nums; }
.ir-amount b.void { color: var(--muted); }
.ir-amount span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

.agree-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.agree-row input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: #4f46e5; }
.agree-row a { color: var(--brand); }

.legal-lead {
  padding: 14px 16px; border-radius: 12px; background: #f7f7ff;
  border: 1px solid #eceaff; color: var(--ink-2); line-height: 1.9;
}
.legal-foot { margin-top: 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .invite-hero { margin-top: 10px; padding: 18px; border-radius: 20px; }
  .ih-top h1 { font-size: 20px; }
  .ih-top p { font-size: 12px; }
  .ih-badge { font-size: 11px; padding: 5px 10px; }
  .invite-code { margin-top: 16px; padding: 12px 14px; gap: 10px; }
  .ic-code { font-size: 22px; letter-spacing: 4px; }
  .ic-copy { height: 30px; padding: 0 11px; font-size: 12px; }
  .invite-stats b { font-size: 17px; }
  .invite-stats div { padding: 9px 11px; }
  .invite-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .invite-rules { font-size: 12.5px; }
  .qr-box { padding: 12px; }
  .qr-box img { width: 132px; height: 132px; }
}
.link-text {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  background: #fafafa; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   抢单大厅
   ============================================================ */
.grab-page { padding-top: 4px; }
.grab-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #312e81, #4f46e5 60%, #7c3aed);
  box-shadow: 0 18px 40px rgba(49, 46, 129, .22);
}
.grab-hero h1 { font-size: 24px; letter-spacing: -.5px; }
.grab-hero p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.grab-count {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.grab-count i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.grab-list { display: grid; gap: 12px; margin-top: 14px; }
.grab-card { background: #fff; border: 1px solid rgba(16, 24, 40, .06); border-radius: 16px; padding: 14px; }
.grab-top { display: flex; gap: 12px; }
.grab-top img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: #f1f2fa; }
.grab-info { flex: 1; min-width: 0; }
.grab-title {
  font-weight: 600; font-size: 14.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.grab-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.grab-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c7cbdb; }
.grab-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.grab-money b { font-size: 20px; font-weight: 800; color: #4f46e5; font-variant-numeric: tabular-nums; }
.grab-money span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.grab-foot .btn { height: 38px; padding: 0 20px; border-radius: 11px; }
.grab-note { margin-top: 16px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 960px) {
  .grab-hero { margin-top: 10px; padding: 16px 18px; border-radius: 18px; align-items: flex-start; }
  .grab-hero h1 { font-size: 19px; }
  .grab-hero p { font-size: 11.5px; }
  .grab-count { font-size: 11px; padding: 5px 9px; }
  .grab-card { padding: 12px; border-radius: 15px; }
  .grab-top img { width: 64px; height: 64px; border-radius: 11px; }
  .grab-title { font-size: 13.5px; }
  .grab-meta { font-size: 11px; }
  .grab-money b { font-size: 18px; }
  .grab-foot .btn { height: 34px; font-size: 13px; padding: 0 16px; }
}
