:root {
  --page-bg: #edf4ff;
  --phone-bg: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --line: #dfe8f8;
  --ink: #15203a;
  --muted: #70809d;
  --blue: #4f7df3;
  --blue-deep: #345fd8;
  --blue-soft: #edf2ff;
  --green: #16a978;
  --green-soft: #e9f8f2;
  --orange: #ff8a3d;
  --orange-soft: #fff2e8;
  --yellow: #f5b83d;
  --yellow-soft: #fff7df;
  --red: #ef5b67;
  --red-soft: #fff0f2;
  --purple: #7d69e8;
  --shadow: 0 12px 30px rgba(68, 101, 166, .12);
  --radius: 20px;
  --radius-sm: 14px;
  /* 银行卡比例：ISO/IEC 7810 ID-1 = 85.60 × 53.98 mm = 1.5858 : 1
     商城商品卡的横图用它，与 PC 端同一比例（同一张 800×505 的图两边通用）。 */
  --bank-ratio: 1.5858;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.mobile-app-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mobile-standalone {
  width: 100%;
  display: grid;
  place-items: center;
}

@media (max-width: 520px) {
  /* 2026-11-10：锁死文档层。
     会员中心首页内容接近一屏，.mobile-main 的 overflow-y:auto 不构成滚动容器
     （内容没超出自身高度时它不滚），overscroll-behavior:contain 随之失效 ——
     下拉手势落到文档上，iOS 在文档做橡皮筋，整个外壳（含顶栏）被拖下去。
     这里把 body 固定成一屏、禁止文档滚动，滚动只能发生在 .mobile-main 内部，
     顶栏就永远钉在顶部；下拉手势改由 mobile-runtime.js 的「下拉刷新」接管。 */
  body.mobile-app-page {
    display: block;
    padding: 0;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-standalone .phone-frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 7px;
    border-radius: 0;
  }

  .mobile-standalone .phone-screen {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    border-radius: 30px;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(117, 170, 255, .22), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(147, 223, 255, .18), transparent 24%),
    var(--page-bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.mobile-preview-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.preview-controls {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid rgba(202, 218, 243, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #79aaff);
  box-shadow: 0 10px 22px rgba(79, 125, 243, .28);
  font-weight: 900;
}

.preview-brand strong,
.preview-brand span {
  display: block;
}

.preview-brand strong {
  font-size: 15px;
}

.preview-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.preview-control-group {
  margin-top: 17px;
}

.preview-control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.segmented-control button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 5px 12px rgba(79, 125, 243, .12);
}

.preview-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.preview-page-nav button {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5f6f8c;
  background: #fff;
  font-size: 11px;
  text-align: left;
}

.preview-page-nav button.is-active {
  border-color: rgba(79, 125, 243, .36);
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 800;
}

.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 18px;
}

.preview-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #739dff);
  font-size: 12px;
  font-weight: 800;
}

.preview-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.preview-stage {
  min-width: 0;
}

.preview-stage__head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.preview-kicker {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.preview-stage__head h1 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.preview-status {
  padding: 8px 13px;
  border: 1px solid rgba(79, 125, 243, .22);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
}

.phone-frame {
  position: relative;
  width: 420px;
  margin: 0 auto;
  padding: 15px;
  border: 1px solid rgba(200, 215, 238, .96);
  border-radius: 46px;
  background: linear-gradient(145deg, #1b2947, #0f172a);
  box-shadow: 0 28px 65px rgba(35, 57, 102, .24);
}

.phone-speaker {
  position: absolute;
  z-index: 4;
  top: 21px;
  left: 50%;
  width: 82px;
  height: 7px;
  border-radius: 99px;
  background: #07101f;
  transform: translateX(-50%);
}

.phone-screen {
  width: 390px;
  height: 844px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  color: var(--ink);
  background: var(--phone-bg);
}

.phone-screen.is-fullscreen {
  position: fixed;
  z-index: 3000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.mobile-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 0, rgba(130, 185, 255, .23), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
}

.mobile-topbar {
  min-height: 58px;
  /* 2026-11-10：顶栏显式吸顶（第二道保险）。
     滚动归 .mobile-main 时它本来就不动，这条只在「某页内容不足一屏、
     内层不构成滚动容器」时兜底，避免顶栏再被外壳一起拖走。 */
  position: sticky;
  top: 0;
  z-index: 21;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(221, 231, 248, .9);
  backdrop-filter: blur(16px);
}

.mobile-topbar.is-game-topbar {
  min-height: 48px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.mobile-game-compact {
  display: none;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid rgba(221, 231, 248, .95);
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 22px rgba(52, 86, 145, .08);
  text-align: left;
  backdrop-filter: blur(18px);
}

.mobile-app.is-compact .mobile-topbar {
  display: none;
}

.mobile-app.is-compact .mobile-game-compact {
  display: flex;
}

.mobile-game-compact__name {
  font-size: 12px;
  font-weight: 900;
}

.mobile-game-compact__issue {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-game-compact__status {
  margin-left: auto;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-game-compact__countdown {
  color: var(--blue-deep);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.mobile-game-compact.is-stopped .mobile-game-compact__status,
.mobile-game-compact.is-stopped .mobile-game-compact__countdown {
  color: var(--orange);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mobile-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.mobile-brand__logo {
  display: block;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 8px rgba(8, 120, 229, .18));
}

.mobile-brand.is-game-switch {
  cursor: pointer;
}

.mobile-brand.is-game-switch::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: translateY(-1px) rotate(45deg);
}

.mobile-brand.is-game-switch > div {
  transform: translateY(-1px);
}

.mobile-brand strong,
.mobile-brand span {
  display: block;
}

.mobile-brand strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-status-pill {
  border: 0;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-select-toggle {
  cursor: pointer;
}

.mobile-top-actions [data-mobile-login] {
  cursor: pointer;
}

.mobile-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px 14px 88px;
  scrollbar-width: none;
}

.mobile-main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mobile-main.has-participation-summary {
  padding-bottom: 240px;
}

.mobile-main.has-participation-summary.is-summary-collapsed {
  padding-bottom: 160px;
}

.mobile-bottom-nav {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 8px 8px;
  border-top: 1px solid rgba(219, 229, 247, .95);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 26px rgba(52, 86, 145, .07);
  backdrop-filter: blur(18px);
}

.mobile-bottom-nav button {
  border: 0;
  border-radius: 13px;
  color: #7a89a4;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.mobile-bottom-nav button.is-active {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.mobile-bottom-nav span {
  height: 20px;
  display: block;
  margin-top: 2px;
}

.mobile-bottom-nav .mobile-bottom-icon {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-section {
  margin-bottom: 13px;
}

.mobile-section:last-child {
  margin-bottom: 0;
}

.mobile-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 2px 9px;
}

.mobile-section-head h2,
.mobile-section-head h3 {
  margin: 0;
  font-size: 17px;
}

.mobile-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.mobile-link {
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

/* 登录页底部两个链接：注册靠左、忘记密码靠右 */
.mobile-auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.mobile-auth-links .mobile-link {
  white-space: nowrap;
}

.mobile-hero {
  padding: 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, .28), transparent 26%),
    linear-gradient(135deg, #4b78ee 0%, #6597fa 54%, #84c8ff 100%);
  box-shadow: 0 16px 32px rgba(79, 125, 243, .22);
}

.mobile-hero small {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.mobile-hero h1 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.18;
}

.mobile-hero p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  line-height: 1.65;
}

.mobile-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.mobile-button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

.mobile-button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #709aff);
  box-shadow: 0 9px 20px rgba(79, 125, 243, .22);
}

.mobile-button.light {
  color: var(--blue-deep);
  background: #fff;
}

.mobile-button.soft {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.mobile-button.subtle {
  color: #5d6d8d;
  background: var(--surface-soft);
}

.mobile-button.warning {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ffac68);
}

/* 2026-11-08：追号的「停止 #N」。
   用户改：浅红描边太淡看不清，换成项目品牌橘实心（比 .warning 的橘更深一档，避免与其它橘按钮混淆）。 */
.mobile-button.danger {
  color: #fff;
  background: linear-gradient(135deg, #f26522, #f78444);
  box-shadow: 0 6px 14px rgba(242, 101, 34, .28);
}

.mobile-button.small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 11px;
}

.mobile-button:disabled,
.mobile-button.is-disabled {
  color: #9aa7bd;
  background: #e9eef6;
  box-shadow: none;
  cursor: not-allowed;
}

.mobile-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mobile-quick-card {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.mobile-quick-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.mobile-quick-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.mobile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.mobile-card + .mobile-card {
  margin-top: 9px;
}

.mobile-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.mobile-game-card__cover {
  height: 92px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(135deg, #84caff, #6c8ef6);
}

.mobile-game-card__cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mobile-game-card__cover.tone-orange {
  background: linear-gradient(135deg, #ffb167, #ff7b6e);
}

.mobile-game-card__cover.tone-green {
  background: linear-gradient(135deg, #61d6ac, #26a786);
}

.mobile-game-card__cover.tone-purple {
  background: linear-gradient(135deg, #aa9af5, #765de0);
}

.mobile-game-card__cover.tone-navy {
  background: linear-gradient(135deg, #405c95, #17284c);
}

.mobile-game-card__cover.tone-red {
  background: linear-gradient(135deg, #ff8d91, #e8485e);
}

.mobile-game-card__cover.tone-yellow {
  background: linear-gradient(135deg, #ffd36a, #f0a73a);
}

.mobile-game-card__cover.tone-cyan {
  background: linear-gradient(135deg, #5fe1e8, #28a9c3);
}

.mobile-game-card__body {
  padding: 10px;
}

.mobile-game-card__body h3 {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-game-card__body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mobile-chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #63728e;
  background: #fff;
  font-size: 11px;
}

.mobile-chip.is-active {
  border-color: rgba(79, 125, 243, .32);
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 800;
}

.mobile-search {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.mobile-search:focus {
  border-color: rgba(79, 125, 243, .55);
  box-shadow: 0 0 0 3px rgba(79, 125, 243, .1);
}

.mobile-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-form h2 {
  margin: 0;
  font-size: 20px;
}

.mobile-form > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.mobile-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #5f6f8c;
  font-size: 11px;
  font-weight: 700;
}

.mobile-field input,
.mobile-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.mobile-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.mobile-captcha {
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--blue-deep);
  background: linear-gradient(135deg, #f8fbff, #e9f1ff);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  overflow: hidden;
}

.mobile-captcha img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-game-switch {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 1px 8px;
  scrollbar-width: none;
}

.mobile-game-switch::-webkit-scrollbar {
  display: none;
}

.mobile-game-switch button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #687795;
  background: #fff;
  font-size: 11px;
}

.mobile-game-switch button.is-active {
  border-color: rgba(79, 125, 243, .34);
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 800;
}

.game-home-profile {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(73, 103, 172, .045);
}

.game-home-profile__main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.game-home-profile__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background: #eef4ff;
}

.game-home-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-home-profile__main strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-home-profile__main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.game-home-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.game-home-profile__stats div {
  min-width: 0;
  padding: 6px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.game-home-profile__stats span,
.game-home-profile__stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-home-profile__stats span {
  color: var(--muted);
  font-size: 8px;
}

.game-home-profile__stats strong {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.game-home-sign-button {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  box-shadow: 0 6px 14px rgba(79, 125, 243, .18);
}

.game-home-sign-button:disabled {
  box-shadow: none;
}

.game-home-draw {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(66, 93, 145, .08);
}

/* 蓝卡头部：2×2 网格（2026-11-11 改）
   行1 = 期号（左） + 倒计时数字（右），基线对齐
   行2 = 状态「火热投注中」（左） + 标签「开奖倒计时」（右），同一基线 —— 两个小字持平
   内层两个 div 用 display:contents 拆掉盒子，四个元素各自定位到格子里；
   不拆的话它们是两个各自上下排的列，右侧标签比左侧状态低 6~7px，永远对不齐。
   b 的 line-height 压到 1：23px 的字带 1.5 倍行高会把整行撑到 34.5px，
   比左侧 16px 期号的 24px 高出 10px，蓝卡就白高这一截。 */
.game-home-draw__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  padding: 9px 12px 6px;
  color: #fff;
  background: linear-gradient(135deg, #4f7df3, #77b5ff);
  border-radius: 17px 17px 0 0;
}

.game-home-draw__head > div {
  display: contents;
}

.game-home-draw__head strong {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-home-draw__head span {
  grid-column: 1;
  grid-row: 2;
  font-size: 9px;
  line-height: 1.3;
  opacity: .9;
}

.game-home-draw__head > div:last-child {
  text-align: right;
}

.game-home-draw__head b {
  grid-column: 2;
  grid-row: 1;
  font-size: 23px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.game-home-draw__head small {
  grid-column: 2;
  grid-row: 2;
  font-size: 8px;
  line-height: 1.3;
  opacity: .9;
}

.game-home-draw__result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.game-home-draw__result > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--ball, #4f7df3);
  font-size: 14px;
}

.game-home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.game-home-action {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #52617d;
  background: #fff;
  box-shadow: 0 4px 12px rgba(66, 93, 145, .04);
  font-size: 9px;
  font-weight: 600;
}

.game-home-action b {
  display: block;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.game-home-action small {
  display: block;
  margin-top: 2px;
  color: #13876a;
  font-size: 7px;
}

.game-home-action.is-enabled {
  border-color: rgba(25, 174, 131, .3);
  background: #f0fbf8;
}

.game-home-action.is-current {
  border-color: rgba(79, 125, 243, .34);
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.game-home-action.is-current.is-enabled {
  border-color: rgba(25, 174, 131, .3);
  background: #effaf6;
}

.live-board {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(135deg, #486fe1, #6998f5 62%, #82c9ff);
  box-shadow: 0 15px 32px rgba(79, 125, 243, .2);
}

.live-board__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live-board__top small {
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
}

.live-board__top h2 {
  margin: 5px 0 0;
  font-size: 21px;
}

.live-board__countdown {
  text-align: right;
}

.live-board__countdown strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.live-board__countdown span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
}

.live-result {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
}

.live-result b {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 6px 13px rgba(32, 68, 140, .16);
}

.live-result i {
  color: rgba(255, 255, 255, .85);
  font-style: normal;
}

.live-board__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.live-board__meta div {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
}

.live-board__meta span,
.live-board__meta strong {
  display: block;
}

.live-board__meta span {
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
}

.live-board__meta strong {
  margin-top: 4px;
  font-size: 12px;
}

.game-workspace-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -14px 12px;
  padding: 4px 14px 7px;
  border: 1px solid rgba(219, 229, 247, .82);
  border-radius: 14px;
  background: rgba(244, 248, 255, .78);
  scrollbar-width: none;
}

.game-workspace-nav::-webkit-scrollbar {
  display: none;
}

.game-workspace-nav button {
  min-height: 31px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #8290a8;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.game-workspace-nav button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--blue);
  font-weight: 900;
}

.auto-task-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244, 248, 255, .88);
}

.auto-task-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: #7c8aa3;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.auto-task-tabs button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 5px 13px rgba(79, 125, 243, .12);
}

.workspace-context-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 10px;
}

.workspace-context-row .mobile-link {
  font-size: 11px;
}

.game-result-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.game-result-number b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5d8ff7, #3971e5);
  font-size: 11px;
}

.ranking-tabs {
  margin-top: 2px;
  margin-bottom: 10px;
}

.ranking-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.ranking-card__head,
.ranking-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.ranking-card__head {
  min-height: 36px;
  color: var(--muted);
  background: #f4f8ff;
  font-size: 10px;
  font-weight: 800;
}

.ranking-card__head strong {
  justify-self: end;
  color: var(--blue-deep);
}

.ranking-row {
  min-height: 48px;
  border-top: 1px solid #eef2f8;
}

.ranking-row__rank {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #71809b;
  background: #f0f4fb;
  font-size: 11px;
}

.ranking-row__rank.is-top {
  color: #fff;
  background: linear-gradient(135deg, #5d8ff7, #3971e5);
}

.ranking-row__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__score {
  justify-self: end;
  color: var(--red);
  font-size: 12px;
  text-align: right;
}

.ranking-row__score small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.ranking-empty {
  padding: 26px 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.history-list,
.record-list,
.announcement-list,
.product-list,
.vip-list,
.member-list {
  display: grid;
  gap: 9px;
}

.upcoming-list {
  gap: 6px;
}

.mobile-list-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(73, 103, 172, .06);
}

.home-game-draw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-game-draw-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  background: #fff;
  box-shadow: 0 6px 16px rgba(73, 103, 172, .06);
}

.home-game-draw-card__head,
.home-game-draw-card__issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.home-game-draw-card__head strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-game-draw-card__head span {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.home-game-draw-card__result {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
}

.home-game-draw-card__result .game-result-number b {
  width: 21px;
  height: 21px;
  font-size: 10px;
}

.home-game-draw-card__result > b,
.home-game-draw-card__result > em {
  font-size: 10px;
  font-style: normal;
}

.home-game-draw-card__issue {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #eef2f8;
  color: var(--muted);
  font-size: 8px;
}

.home-game-draw-card__issue strong {
  color: var(--blue-deep);
  font-size: 9px;
}

.mobile-list-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-list-card__head strong {
  font-size: 12px;
}

.mobile-list-card__head span {
  color: var(--muted);
  font-size: 10px;
}

.mobile-list-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mobile-list-card__meta span {
  color: var(--muted);
  font-size: 10px;
}

.mobile-list-card__meta b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-card {
  padding: 9px 10px;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(73, 103, 172, .04);
}

.upcoming-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto 50px;
  align-items: center;
  gap: 6px;
}

.upcoming-card__issue {
  min-width: 0;
}

.upcoming-card__issue strong,
.upcoming-card__issue span {
  display: block;
}

.upcoming-card__issue strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-card__issue span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.upcoming-card__top .mobile-button.small {
  min-height: 27px;
  flex: 0 0 auto;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 700;
}

.game-home-join-button {
  min-height: 29px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  box-shadow: 0 5px 12px rgba(79, 125, 243, .16);
}

.upcoming-card__stats {
  display: grid;
  gap: 2px;
}

.upcoming-card__stats span {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
  white-space: nowrap;
}

.upcoming-card__stats b {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.upcoming-state.is-open {
  color: #159b73;
}

.upcoming-state.is-closed {
  color: #e35f59;
}

.upcoming-state.is-pending {
  color: #8068c9;
}

.upcoming-join {
  color: #919cb0 !important;
}

.upcoming-join.is-active {
  color: var(--blue-deep) !important;
}

.history-card {
  padding: 10px 11px;
  border-radius: 15px;
}

/* 僵尸期（giveUp）：整卡压灰，一眼能看出这期不会开奖了。
   但「我的参与」必须单独还原成深色 —— 那是玩家真实投进去的钱，
   跟整行一起压灰等于把它抹掉了。与 PC 的 tr.is-giveup td[data-history-bet] 同一做法。 */
.history-card.is-stopped .history-card__issue strong,
.history-card.is-stopped .history-card__issue span,
.history-card.is-stopped .history-card__result,
.history-card.is-stopped .history-card__stats span,
.history-card.is-stopped .history-card__stats b {
  color: #9aa6b8;
}

.history-card.is-stopped .history-card__stats b[data-history-bet] {
  color: #43536b;
  font-weight: 600;
}

.history-card__stopped {
  color: #9aa6b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
}

.history-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-card__issue {
  min-width: 0;
}

.history-card__issue strong,
.history-card__issue span {
  display: block;
}

.history-card__issue strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card__issue span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.history-card__result {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.history-card__result-label {
  display: none;
}

.history-card__result .game-result-number b {
  width: 25px;
  height: 25px;
  box-shadow: 0 3px 8px rgba(57, 113, 229, .25);
  font-size: 11px;
  font-weight: 900;
}

.history-card__result .game-result-number i {
  color: #8da0bd;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.history-card__result > span:not(.history-card__result-label):not(.game-result-number) {
  color: #70809d;
  font-size: 12px;
  font-weight: 900;
}

.history-card__result > b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: 1px;
  border: 2px solid #4f7df3;
  border-radius: 50%;
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 3px 8px rgba(79, 125, 243, .2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.history-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #eef2f8;
}

.history-card__stats span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card__stats b {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-positive {
  color: var(--red) !important;
}

.profit-negative {
  color: var(--green) !important;
}

.participation-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.participation-tool-tabs,
.participation-money-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 9px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244, 248, 255, .88);
}

.participation-tool-tabs button,
.participation-money-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: #7c8aa3;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.participation-tool-tabs button.is-active,
.participation-money-tabs button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 5px 13px rgba(79, 125, 243, .12);
}

.participation-tool {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.participation-tool__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.participation-tool__head h3 {
  margin: 0;
  font-size: 14px;
}

.participation-tool__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.quick-select-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.quick-select-grid:not(.is-expanded) {
  grid-auto-rows: 34px;
}

.quick-select-grid button {
  min-height: 34px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5f6f8c;
  background: #fff;
  font-size: 10px;
}

.quick-select-grid button.is-active {
  border-color: color-mix(in srgb, var(--blue) 40%, #fff);
  color: var(--blue);
  background: var(--blue-soft);
}

.participation-money-tool {
  margin-top: 10px;
}

.quick-amount-grid,
.quick-multiplier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.quick-amount-grid button,
.quick-multiplier-grid button {
  min-height: 32px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5f6f8c;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.quick-amount-grid button.is-active {
  border-color: color-mix(in srgb, var(--blue) 40%, #fff);
  color: var(--blue);
  background: var(--blue-soft);
}

.participation-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 7px;
  margin-top: 8px;
}

.participation-control-row input {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  outline: none;
}

.participation-control-row input:focus {
  border-color: var(--blue);
}

.participation-control-row button {
  border: 0;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 900;
}

.custom-mode-list {
  max-height: 116px;
  display: flex;
  gap: 7px;
  overflow-y: auto;
  flex-wrap: wrap;
  margin-top: 11px;
}

.custom-mode-list button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5f6f8c;
  background: var(--surface-soft);
  font-size: 10px;
}

.custom-mode-list button.is-active {
  border-color: rgba(79, 125, 243, .32);
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 800;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(14, auto);
  grid-auto-flow: column;
  gap: 7px;
}

.number-item {
  padding: 8px;
  border: 1px solid #dce6f7;
  border-radius: 13px;
  background: #fff;
}

.number-item.is-selected {
  border-color: rgba(79, 125, 243, .38);
  background: var(--blue-soft);
}

.number-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.number-item__badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.number-item.is-selected .number-item__badge {
  color: #fff;
  background: linear-gradient(135deg, #668ff5, #3f6fe0);
}

.number-item__stat {
  flex: 1;
  min-width: 0;
}

.number-item__stat span,
.number-item__stat b {
  display: block;
}

.number-item__stat span {
  color: var(--muted);
  font-size: 9px;
}

.number-item__stat b {
  margin-top: 3px;
  color: var(--blue);
  font-size: 11px;
}

.number-item input {
  width: 100%;
  min-height: 32px;
  margin-top: 7px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  outline: none;
}

.number-item:not(.is-selected) input {
  border-color: #dce6f7;
  background: #fff;
}

.number-item input:focus {
  border-color: var(--blue);
}

.number-multiplier {
  display: none;
  gap: 4px;
  margin-top: 6px;
}

.number-item.is-selected .number-multiplier {
  display: flex;
}

.number-multiplier button {
  min-height: 27px;
  flex: 1;
  border: 0;
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.participation-summary {
  position: absolute;
  z-index: 25;
  left: 12px;
  right: 12px;
  bottom: 74px;
  padding: 10px 11px;
  border: 1px solid rgba(208, 221, 244, .96);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 17px 36px rgba(43, 76, 137, .18);
  backdrop-filter: blur(15px);
}

.participation-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.participation-summary__head small {
  color: var(--muted);
  font-size: 9px;
}

.participation-summary__head h3 {
  margin: 3px 0 0;
  font-size: 12px;
}

.participation-summary__balance {
  text-align: right;
}

.participation-summary__head-side {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.participation-summary__toggle {
  min-height: 25px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.participation-summary__balance span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.participation-summary__balance strong {
  display: block;
  margin-top: 3px;
  color: var(--blue-deep);
  font-size: 12px;
}

.participation-summary__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 7px;
}

.participation-summary__stats div {
  padding: 5px 4px;
  border-radius: 10px;
  text-align: center;
  background: var(--surface-soft);
}

.participation-summary__stats span,
.participation-summary__stats b {
  display: block;
}

.participation-summary__stats span {
  color: var(--muted);
  font-size: 8px;
}

.participation-summary__stats b {
  margin-top: 2px;
  font-size: 10px;
}

.participation-summary__mode-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.participation-summary__mode-actions button {
  min-height: 28px;
  border: 0;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.participation-summary__mode-actions button.is-danger {
  color: #c24c5a;
  background: var(--red-soft);
}

.participation-summary__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(78px, 1.35fr);
  gap: 6px;
  margin-top: 7px;
}

.participation-summary__actions button {
  min-height: 29px;
  border: 0;
  border-radius: 10px;
  color: #60708d;
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
}

.participation-summary__actions button:nth-child(1) {
  color: #9b6b15;
  background: var(--yellow-soft);
}

.participation-summary__actions button:nth-child(2) {
  color: #c24c5a;
  background: var(--red-soft);
}

.participation-summary__actions button:nth-child(3) {
  color: #188269;
  background: var(--green-soft);
}

.participation-summary.is-collapsed {
  padding-bottom: 9px;
}

.participation-summary.is-collapsed .participation-summary__stats,
.participation-summary.is-collapsed .participation-summary__actions {
  display: none;
}

.participation-summary__confirm {
  width: 100%;
  min-height: 29px;
  margin-top: 0;
  padding: 0 6px;
  font-size: 10px;
}

.participation-summary__feedback {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stats-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--three .stat-card {
  min-width: 0;
  padding: 10px 8px;
}

.stats-grid--three .stat-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.stats-grid--three .stat-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(73, 103, 172, .06);
}

.mine-pagination {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.mine-pagination__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.mine-pagination__summary strong {
  color: var(--text);
}

.mine-pagination__controls,
.mine-page-size {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mine-pagination__controls button,
.mine-page-size button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue-deep);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.mine-pagination__controls button.is-active,
.mine-page-size button.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
}

.mine-pagination__controls button:disabled {
  color: #b8c2d5;
  background: #f5f7fb;
}

.mine-detail-overview {
  overflow: hidden;
}

.mine-detail-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.mine-detail-totals article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.mine-detail-totals span,
.mine-detail-totals strong {
  display: block;
}

.mine-detail-totals span {
  color: var(--muted);
  font-size: 9px;
}

.mine-detail-totals strong {
  margin-top: 4px;
  font-size: 12px;
}

.mine-detail-table .mobile-table-row {
  grid-template-columns: .8fr 1fr 1fr 1fr;
}

.mine-detail-table .mobile-table-row em {
  font-style: normal;
  font-weight: 800;
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  margin-top: 6px;
  font-size: 15px;
}

.trend-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.trend-stat {
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.trend-stat span,
.trend-stat strong {
  display: block;
}

.trend-stat span {
  color: var(--muted);
  font-size: 9px;
}

.trend-stat strong {
  margin-top: 3px;
  color: var(--blue-deep);
  font-size: 13px;
}

.trend-number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.trend-number-cell {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(73, 103, 172, .05);
}

.trend-number-cell b {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--trend-ball-color, var(--blue));
  font-size: 13px;
}

.trend-number-cell span,
.trend-number-cell em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-number-cell span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.trend-number-cell span strong {
  color: var(--text);
}

.trend-number-cell em {
  margin-top: 3px;
  color: #8894aa;
  font-size: 8px;
  font-style: normal;
}

.trend-result-list {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.trend-result-list__head {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--muted);
  background: #f5f8fd;
  font-size: 10px;
  font-weight: 800;
}

.trend-result-row {
  display: grid;
  grid-template-columns: minmax(82px, 1.05fr) 34px minmax(0, 2.25fr);
  gap: 7px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #edf1f8;
}

.trend-result-row:last-child {
  border-bottom: 0;
}

.trend-result-row__issue {
  min-width: 0;
}

.trend-result-row__issue strong,
.trend-result-row__issue span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-result-row__issue strong {
  font-size: 9px;
}

.trend-result-row__issue span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.trend-result-ball {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--trend-ball-color, var(--blue));
  font-size: 12px;
}

.trend-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trend-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.trend-result-pill.is-red { background: #f14539; }
.trend-result-pill.is-purple { background: #945abe; }
.trend-result-pill.is-green { background: #08c494; }
.trend-result-pill.is-orange { background: #eb8725; }
.trend-result-pill.is-lime { background: #8fc64f; }
.trend-result-pill.is-blue { background: #0c9fff; }
.trend-result-pill.is-plain { color: #60708d; background: #edf2fa; }

.mobile-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-switch-card strong {
  font-size: 13px;
}

.mobile-switch-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.switch-pill {
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: #dfe7f3;
}

.switch-pill::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 7px rgba(43, 67, 111, .18);
}

.switch-pill.is-on {
  background: var(--blue);
}

.switch-pill.is-on::after {
  margin-left: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.form-grid .mobile-field {
  margin-top: 0;
}

.form-grid .mobile-field.is-wide {
  grid-column: 1 / -1;
}

.mobile-field small {
  color: #8794aa;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.auto-task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 11px !important;
}

.auto-task-summary div {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.auto-task-summary span,
.auto-task-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-task-summary span {
  color: var(--muted);
  font-size: 8px;
}

.auto-task-summary strong {
  margin-top: 3px;
  font-size: 11px;
}

.auto-mode-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.auto-mode-row {
  display: grid;
  grid-template-columns: minmax(88px, .9fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 7px;
  align-items: center;
  padding: 9px;
  border-bottom: 1px solid #edf1f8;
}

.auto-mode-row:last-child {
  border-bottom: 0;
}

.auto-mode-row__name {
  min-width: 0;
}

.auto-mode-row__name strong,
.auto-mode-row__name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-mode-row__name strong {
  font-size: 10px;
}

.auto-mode-row__name span,
.auto-mode-row label > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.auto-mode-row label > span {
  display: block;
  margin-bottom: 4px;
}

.auto-mode-row select {
  width: 100%;
  min-height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font-size: 9px;
}

.auto-stop-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #60708d;
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.5;
}

.auto-stop-toggle input {
  margin-top: 2px;
  accent-color: var(--blue);
}

.auto-task-feedback {
  min-height: 0;
  margin: 9px 0 0;
  color: #c24c5a;
  font-size: 9px;
  line-height: 1.45;
}

.mobile-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.mobile-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f8;
  font-size: 10px;
}

.mobile-table-row:last-child {
  border-bottom: 0;
}

.mobile-table-row.is-head {
  color: var(--muted);
  background: #f5f8fd;
  font-weight: 800;
}

/* ============================================================
   段 2C：商城商品卡片（2026-11-08 用户定案 C2）
   手机端形态 = 图上、文下（左图右文在 360 宽里放不下，图会被压到 150 以内）。
   图片比例 = 银行卡 1.5858:1，跟 PC 端同一个比例、同一张 800×505 的图。
   ============================================================ */

.shop-product-card {
  overflow: hidden;
  padding: 0;
}

.shop-product-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--bank-ratio);
  overflow: hidden;
  border-bottom: 1px solid #f1d99f;
  background: var(--yellow-soft);
}

.shop-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 没传图：米黄占位块 + IMG */
.shop-product-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9b6a00;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.shop-product-mark span {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
  opacity: .35;
}

.shop-product-body {
  padding: 11px 12px 13px;
}

.shop-product-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

/* 商品说明：运营在后台自己填，留空整行不渲染；太长最多两行 */
.shop-product-desc {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
}

.shop-product-price .lab,
.shop-product-price .unit {
  color: var(--muted);
  font-size: 11px;
}

.shop-product-price .num {
  color: #b47a0a;
  font-size: 18px;
  font-weight: 800;
}

.shop-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.shop-product-left {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.shop-product-left b {
  color: var(--ink);
  font-size: 12.5px;
}

.shop-product-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-product-right label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.shop-product-right input {
  width: 46px;
  min-height: 32px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.shop-product-right button:disabled {
  color: #a7b1c3;
  background: #e8edf5;
}

/* 次数用完：图片降饱和 + 标题变灰 */
.shop-product-card.is-out .shop-product-media img {
  filter: grayscale(.6) brightness(.9);
}

.shop-product-card.is-out h3 {
  color: #8d8a83;
}

.shop-password {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 9px;
  text-align: left;
}

.mobile-section-head .member-head-password {
  flex: 0 0 auto;
  width: 170px;
  min-width: 0;
  max-width: 50%;
}

.shop-password input {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font-size: 10px;
}

.shop-record-list {
  display: grid;
  gap: 7px;
}

.shop-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(88px, .8fr) 48px;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.shop-record-row div {
  min-width: 0;
}

.shop-record-row strong,
.shop-record-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-record-row strong {
  font-size: 10px;
}

.shop-record-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.shop-record-row button {
  min-height: 27px;
  border: 0;
  border-radius: 8px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.shop-detail-lines {
  display: grid;
  gap: 7px;
  max-height: 260px;
  margin-top: 12px;
  overflow-y: auto;
}

.shop-detail-lines p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.vip-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(135deg, #fff, #f6f9ff);
  box-shadow: 0 8px 18px rgba(73, 103, 172, .07);
}

.vip-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vip-card h3 {
  margin: 0;
  font-size: 15px;
}

.vip-card__price {
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 900;
}

.vip-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.vip-benefits div {
  padding: 8px;
  border-radius: 11px;
  color: #65748f;
  background: #fff;
  font-size: 10px;
}

.vip-benefits b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.member-item {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  background: #fff;
  box-shadow: 0 6px 16px rgba(73, 103, 172, .06);
}

.member-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.member-item strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.member-profile-card {
  padding: 14px;
  border: 1px solid rgba(139, 173, 244, .45);
  border-radius: 20px;
  background: linear-gradient(135deg, #eef5ff, #dfe9ff);
  box-shadow: 0 10px 24px rgba(65, 103, 189, .12);
}

.member-profile-card__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.member-profile-card__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 15px;
  background: #fff;
}

.member-profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile-card__head strong {
  display: block;
  font-size: 14px;
}

.member-profile-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.member-ranking-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #dfe8f8;
  border-radius: 16px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 7px 18px rgba(73, 103, 172, .07);
}

.member-ranking-bar__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #5d8ff7, #3971e5);
}

.member-ranking-bar__icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.member-ranking-bar__text {
  min-width: 0;
}

.member-ranking-bar__text strong {
  display: block;
  font-size: 13px;
}

.member-ranking-bar__text em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-ranking-bar i {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.member-profile-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.member-profile-card__stats div {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
}

.member-profile-card__stats span,
.member-profile-card__stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile-card__stats span {
  color: var(--muted);
  font-size: 8px;
}

.member-profile-card__stats strong {
  margin-top: 3px;
  font-size: 11px;
}

.member-info-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.member-info-card div {
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.member-info-card span,
.member-info-card strong {
  display: block;
}

.member-info-card span {
  color: var(--muted);
  font-size: 9px;
}

.member-info-card strong {
  margin-top: 4px;
  font-size: 11px;
}

.member-record-list {
  display: grid;
  gap: 7px;
}

.member-agent-card {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-agent-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-agent-card__head strong {
  font-size: 11px;
}

.member-agent-card__head span {
  color: var(--muted);
  font-size: 9px;
}

.member-agent-card__head b {
  color: var(--blue-deep);
  font-size: 11px;
}

.member-agent-card__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #edf2f8;
}

.member-agent-card__rows span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.member-agent-card__rows b {
  display: block;
  margin-top: 3px;
  color: #24324a;
  font-size: 10px;
}

.member-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-record-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-record-card span,
.member-record-card strong,
.member-record-card small {
  display: block;
}

.member-record-card span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-record-card strong {
  margin-top: 8px;
  font-size: 15px;
}

.member-record-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.member-trade-list {
  display: grid;
  gap: 8px;
}

.member-trade-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-trade-card__head,
.member-trade-card__money {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-trade-card__head strong {
  font-size: 10px;
}

.member-trade-card__head span,
.member-trade-card__money span {
  color: var(--muted);
  font-size: 8px;
}

.member-trade-card p {
  margin: 8px 0 0;
  color: #51617d;
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.member-trade-card button {
  min-height: 27px;
  margin-top: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 700;
}

.member-trade-card__money {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #eef2f8;
}

.member-trade-card__money b {
  color: var(--blue-deep);
  font-size: 11px;
}

.member-trade-card__money button {
  margin-left: auto;
}

.member-trade-detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.member-trade-raw {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.member-trade-raw span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 800;
}

.member-trade-raw p {
  margin: 0;
  color: #51617d;
  font-size: 9px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.member-trade-detail-summary span {
  color: var(--muted);
  font-size: 9px;
}

.member-trade-detail-summary strong {
  color: var(--blue-deep);
  font-size: 12px;
}

.member-trade-number-list {
  display: grid;
  gap: 7px;
  max-height: 420px;
  margin-top: 10px;
  overflow-y: auto;
}

.member-trade-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.member-trade-number-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--trade-number-color, var(--blue));
  font-size: 11px;
  font-weight: 800;
}

.member-trade-number-row strong {
  color: var(--ink);
  font-size: 11px;
}

.member-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
}

.member-pagination > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-pagination button {
  min-height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
}

.member-pagination button:disabled {
  color: #a8b2c4;
  background: #eef2f8;
}

.member-pagination b {
  color: var(--ink);
  font-size: 10px;
}

.member-profile-edit {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

.member-profile-edit input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
}

.member-trade-full {
  white-space: normal;
  overflow-wrap: anywhere;
}

.member-bank-card {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-bank-card > input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
}

.bank-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.bank-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 700;
}

.bank-actions button:first-child,
.bank-actions button:last-child {
  color: #fff;
  background: var(--blue);
}

/* ── 卡商转币（2026-11-07 新增）────────────────────────────────
   复用 .member-bank-card 的外壳，这里只加「带标题的输入行」和提示文字。 */
.member-transfer-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.member-transfer-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-transfer-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.member-transfer-field > input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
}

/* 账号星点：只读展示，长得像输入框但不可编辑 */
.member-transfer-static {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 提示占左、按钮占右，同一行
   flex-basis 必须是 0：写 auto 时提示会按文字宽度参与分配，
   把按钮挤到容器外（实测 390px 屏上「确认转币」被裁掉半个字）。 */
.member-transfer-submit-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-transfer-submit-row .member-transfer-hint {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.member-transfer-submit-row .mobile-button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 12px;
  margin: 0;
  white-space: nowrap;
}

.member-transfer-hint {
  padding: 9px 11px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}

.member-transfer-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.member-transfer-log-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.member-transfer-log-title > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.member-transfer-log-title > small {
  color: var(--muted);
  font-size: 10px;
}

.member-empty {
  margin: 0;
  padding: 16px 11px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.member-security-grid {
  display: grid;
  gap: 10px;
}

.member-security-form {
  display: grid;
  gap: 9px;
}

.member-security-form h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.member-security-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.member-security-form input {
  width: 100%;
  min-height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 10px;
}

.member-security-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 7px;
}

.member-security-inline button {
  min-height: 37px;
  border: 0;
  border-radius: 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
}

.member-security-inline img {
  width: 100%;
  height: 37px;
  object-fit: contain;
}

.member-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.member-record-row.is-column {
  grid-template-columns: 1fr;
}

.member-record-row strong,
.member-record-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-record-row strong {
  font-size: 10px;
}

.member-record-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.member-record-row p {
  margin: 0;
  color: #51617d;
  font-size: 9px;
  line-height: 1.5;
  white-space: normal;
}

.member-record-row__money {
  text-align: right;
}

.member-record-row button {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.member-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 72px;
  gap: 7px;
  margin-bottom: 9px;
}

.member-filter-row input,
.member-filter-row select {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 10px;
}

.member-filter-row.member-used-filter {
  grid-template-columns: minmax(0, 1fr) 72px;
}

.member-card-search-button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  box-shadow: none;
}

.member-card-status {
  min-width: 48px;
  padding: 5px 6px;
  border-radius: 8px;
  text-align: center;
  font-size: 8px;
  font-style: normal;
}

.member-card-status.is-unused {
  color: #137d67;
  background: var(--green-soft);
}

.member-card-status.is-transferred {
  color: #9a6500;
  background: var(--yellow-soft);
}

.member-card-status.is-used {
  color: #8490a6;
  background: #eef2f8;
}

.member-promotion {
  display: grid;
  gap: 9px;
}

.member-promotion-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 13px;
  background: #eef3fb;
}

.member-promotion-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.member-promotion-tabs button.is-active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(48, 87, 160, .1);
}

.member-code-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 10px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.member-code-result {
  margin-top: 10px;
}

.member-code-result span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.member-code-result p {
  margin: 0;
  color: #51617d;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.member-promotion-rules-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.member-promotion-junior {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.member-promotion-junior > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-promotion-junior__stats {
  display: grid;
  gap: 3px;
  text-align: right;
}

.member-promotion-junior__stats span {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.member-promotion-junior__stats b {
  margin-left: 6px;
  color: var(--blue-deep);
  font-size: 10px;
}

.member-promotion-rule-dialog p {
  margin: 0 0 10px;
  color: #51617d;
  font-size: 10px;
  line-height: 1.75;
}

.member-promotion-rule-dialog p:last-child {
  margin-bottom: 0;
}

.member-promotion-rule-dialog b {
  color: var(--blue-deep);
}

.member-promotion-records {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.member-promotion-record {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f8;
}

.member-promotion-record:last-child {
  border-bottom: 0;
}

.member-promotion-record p {
  margin: 0;
  color: #51617d;
  font-size: 10px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.member-promotion-record > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.member-promotion-record span {
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-promotion-record strong {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-size: 10px;
}

.member-promotion > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.member-promotion span {
  color: var(--muted);
  font-size: 9px;
}

.member-promotion strong {
  font-size: 11px;
}

.member-promotion-link {
  margin: 0;
  padding: 9px;
  border-radius: 10px;
  color: #51617d;
  background: #f7f9fd;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.member-detail-card p {
  margin: 8px 0 0;
  padding: 8px 9px;
  border-radius: 9px;
  color: #51617d;
  background: var(--surface-soft);
  font-size: 9px;
  line-height: 1.5;
}

.member-detail-card button {
  margin-top: 10px;
}

.announcement-card {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  background: #fff;
  box-shadow: 0 6px 16px rgba(73, 103, 172, .06);
}

.announcement-card.is-active {
  border-color: rgba(79, 125, 243, .4);
  background: var(--blue-soft);
}

.announcement-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.announcement-card h3 {
  margin: 0;
  font-size: 13px;
}

.announcement-card span {
  color: var(--muted);
  font-size: 10px;
}

.announcement-card p {
  margin: 9px 0 0;
  color: #60708d;
  font-size: 11px;
  line-height: 1.65;
}

.mobile-announcement-popup {
  position: absolute;
  z-index: 95;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.mobile-announcement-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 43, 74, .3);
  backdrop-filter: blur(4px);
}

.mobile-announcement-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100% - 44px);
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(41, 66, 116, .24);
}

.mobile-announcement-popup__panel > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.mobile-announcement-popup__panel h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.mobile-announcement-popup__content {
  max-height: 42vh;
  margin-top: 11px;
  overflow-y: auto;
  color: #51617d;
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.mobile-announcement-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.announcement-detail-modal__head {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.announcement-detail-modal__head span {
  color: var(--muted);
  font-size: 9px;
}

.announcement-detail-modal__content {
  max-height: 46vh;
  margin-top: 10px;
  overflow-y: auto;
  color: #51617d;
  font-size: 10px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.mobile-modal {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.mobile-modal.is-open {
  display: flex;
}

.mobile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 43, 74, .28);
  backdrop-filter: blur(4px);
}

.mobile-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(41, 66, 116, .22);
}

.mobile-modal__panel h3 {
  margin: 0;
  font-size: 17px;
}

.mobile-modal__panel p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.mobile-modal__input {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  outline: none;
}

.mobile-modal__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 123, 242, .1);
}

.mobile-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.mobile-modal__actions.is-single {
  grid-template-columns: 1fr;
}

.game-switch-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.game-switch-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  background: #fff;
}

.game-switch-option span {
  min-width: 0;
}

.game-switch-option strong,
.game-switch-option small {
  display: block;
}

.game-switch-option strong {
  font-size: 12px;
}

.game-switch-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.game-switch-option > b {
  color: var(--blue-deep);
  font-size: 12px;
}

.game-switch-option.is-active {
  border-color: rgba(79, 125, 243, .42);
  background: var(--blue-soft);
}

.mobile-game-detail {
  max-height: calc(100% - 38px);
  overflow-y: auto;
}

.mobile-game-detail__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.mobile-game-detail img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-soft);
}

.mobile-game-detail__eyebrow {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.mobile-game-detail h3 {
  margin-top: 5px;
}

.mobile-game-detail__facts {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #62718d;
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.55;
}

.mobile-game-detail ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #60708d;
  font-size: 10px;
  line-height: 1.65;
}

.mobile-game-detail__start {
  width: 100%;
  margin-top: 12px;
}

.empty-state {
  padding: 26px 16px;
  border: 1px dashed #cfdbed;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .58);
  text-align: center;
  font-size: 11px;
  line-height: 1.65;
}

.preview-toast {
  position: fixed;
  z-index: 4000;
  left: 50%;
  bottom: 30px;
  padding: 11px 16px;
  border-radius: 13px;
  color: #fff;
  background: rgba(26, 40, 69, .92);
  box-shadow: 0 14px 30px rgba(25, 40, 70, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease;
}

.preview-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.preview-large .mobile-preview-shell {
  width: 100%;
  padding-top: 0;
}

body.preview-large .preview-controls,
body.preview-large .preview-stage__head {
  display: none;
}

body.preview-large .preview-stage {
  width: 100%;
}

body.preview-large .phone-frame {
  width: 420px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .mobile-preview-shell {
    width: min(720px, calc(100% - 28px));
    grid-template-columns: 1fr;
  }

  .preview-controls {
    position: static;
  }

  .preview-page-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mobile-preview-shell {
    width: 100%;
    padding: 0;
  }

  .preview-controls {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .preview-page-nav {
    grid-template-columns: 1fr 1fr;
  }

  .preview-stage__head {
    padding: 0 14px;
  }

  body.mobile-app-page .phone-frame {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.mobile-app-page .phone-speaker {
    display: none;
  }

  body.mobile-app-page .phone-screen {
    width: 100%;
    height: 100vh;
    /* 2026-11-10：普通 Safari 里 100vh 是「工具栏收起」的大视口，比可视区高，
       外壳会比屏幕多出约一条工具栏的高度 → 文档能滚、顶栏被带走。
       dvh 用当前可视高度，外壳与屏幕正好一样高。
       （standalone 那两段在文件更后面，仍然覆盖这里，安全区那 34px 照旧生效） */
    height: 100dvh;
    max-width: none;
    margin: 0 auto;
    border-radius: 0;
  }
}

/* ==========================================================================
   2026-11-07：本次追号记录（WAP 自动追号页底部）
   类名全部 auto-record-*，不覆盖既有样式。
   ========================================================================== */
.auto-record-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.auto-record-tasks .mobile-button.is-active {
  border-color: #f5c451;
  color: #f5c451;
}

.auto-record-table .mobile-table-row {
  display: grid;
  grid-template-columns: 1.45fr 1.25fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.auto-record-table .mobile-table-row b {
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.auto-record-table .mobile-table-row span,
.auto-record-table .mobile-table-row strong {
  font-variant-numeric: tabular-nums;
}

.auto-record-table .mobile-table-row em.profit-positive {
  margin-left: 4px;
  font-style: normal;
  font-size: 11px;
}

.auto-record-empty {
  margin: 16px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* 2026-11-08：本次记录翻页条（替代原来的「加载更多」整宽按钮） */
.auto-record-pager {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.auto-record-pager-info {
  font-size: 12px;
  opacity: 0.66;
  font-variant-numeric: tabular-nums;
}

.auto-record-pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.auto-record-page-btn {
  min-width: 34px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.auto-record-page-btn.is-active {
  background: #f26522;
  border-color: #f26522;
  color: #fff;
  font-weight: 600;
}

.auto-record-page-gap {
  font-size: 12px;
  opacity: 0.5;
  padding: 0 2px;
}

/* 2026-11-08：保留期倒计时红字（用户明确要求红色） */
.auto-record-keep {
  margin-left: 8px;
  color: #d92d20;
  font-weight: 600;
}

.auto-record-keep.is-expired {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(217, 45, 32, 0.1);
}

.auto-record-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.72;
}

.auto-record-summary strong {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2026-11-07：自动参与 / 自动追号 · 运行中把设置区收成一张小卡
   手机上表单铺开就是两屏，记录永远在下面看不到。
   ========================================================================== */
.auto-settings-collapsed {
  background: #fff;
}

.auto-settings-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.auto-settings-line strong {
  color: var(--green, #16a978);
  font-weight: 600;
}

.auto-settings-line span:last-child {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted, rgba(0, 0, 0, 0.45));
}

.auto-settings-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #16a978);
  box-shadow: 0 0 0 3px rgba(22, 169, 120, 0.16);
  animation: autoSettingsPulse 1.8s ease-in-out infinite;
}

@keyframes autoSettingsPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 169, 120, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(22, 169, 120, 0.06); }
}

.auto-settings-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted, rgba(0, 0, 0, 0.5));
}

.auto-settings-meta b {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.auto-settings-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.auto-settings-buttons .mobile-button {
  flex: 1;
  margin: 0;
  /* 2026-11-07：四个字不许折成两行 */
  white-space: nowrap;
}

/* ------- 2026-11-08：并行追号 · 记录卡里的停止按钮 / 绿点 / 上限提示 ------- */

/* 停止按钮独立一行，右对齐 —— 不跟 chip 挤在一起，避免误点 */
.auto-record-stop-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.auto-record-stop-row .mobile-button {
  margin: 0;
  flex: 0 0 auto;
}

/* 2026-11-08：删除按钮（软删除，只从列表隐藏）。
   用灰色次级样式而不是红色：它没删掉一分钱，也没删库里任何一行 ——
   红色会让人以为资金记录没了。橘色留给「停止」这个真影响资金的动作。 */
.mobile-button.soft.auto-record-del-btn {
  color: #5d6d8d;
  background: #eef2f8;
  border: 1px solid rgba(93, 109, 141, .22);
  box-shadow: none;
}

/* 运行中的任务 chip 加绿点：多条并行时一眼分出哪几条是活的 */
.auto-record-tasks .mobile-button[data-auto-running="1"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #0e8a45;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* 到并行上限时的提示（按钮已被禁用，这里说清为什么不给点） */
.auto-task-limit-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #d92d20;
  text-align: center;
}

/* ------- 记录：两行式 ------- */
.auto-record-table {
  display: flex;
  flex-direction: column;
}

.auto-record-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.auto-record-row:last-child {
  border-bottom: 0;
}

.auto-record-row.is-pending {
  opacity: 0.6;
}

.auto-record-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.auto-record-main b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.auto-record-mode {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.auto-record-tag {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.auto-record-tag.is-win {
  background: rgba(22, 169, 120, 0.12);
  color: var(--green, #16a978);
}

.auto-record-tag.is-lose {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.45);
}

.auto-record-tag.is-pending {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.36);
}

/* 2026-11-09：第四态 —— 已开奖但注单一笔都没结算（结算漏跑）。
   橙色示警，跟「待开奖」的灰区分开，否则漏结算永远看不出来。 */
.auto-record-tag.is-unsettled {
  background: rgba(217, 122, 24, 0.14);
  color: #b45f0a;
}

.auto-record-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted, rgba(0, 0, 0, 0.5));
  font-variant-numeric: tabular-nums;
}

.auto-record-sub .auto-record-win.is-win {
  color: var(--green, #16a978);
  font-weight: 600;
}

/* ------- 模式分布 ------- */
.auto-record-mode-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
}

.auto-record-mode-stats-label {
  color: var(--text-muted, rgba(0, 0, 0, 0.45));
}

.auto-record-mode-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.035);
  font-variant-numeric: tabular-nums;
}

.auto-record-mode-stat b {
  font-weight: 600;
}

.auto-record-mode-stat em {
  font-style: normal;
  font-weight: 600;
}

/* ------- 2026-11-07 单期投注明细（点卡片展开）------- */
.auto-record-row.is-open {
  background: rgba(245, 196, 81, 0.06);
  border-radius: 10px;
}

.auto-record-caret {
  font-style: normal;
  font-size: 10px;
  color: var(--muted, rgba(0, 0, 0, 0.35));
  margin-right: 4px;
}

.auto-record-row.is-open .auto-record-caret {
  color: #a97b00;
}

.auto-record-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.auto-record-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 5px;
}

.auto-record-detail-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px 3px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.auto-record-detail-chip b {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.auto-record-detail-chip i {
  font-style: normal;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
}

.auto-record-detail-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
}

.auto-record-detail-chip.is-draw {
  border-color: #e0a400;
}

.auto-record-detail-chip.is-hit {
  border-color: rgba(22, 169, 120, 0.4);
  background: rgba(22, 169, 120, 0.1);
}

.auto-record-detail-note {
  margin-top: 7px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
}

.auto-record-detail-note b {
  color: rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   2026-11-10：主屏全屏适配（display-mode: standalone）
   —— 手机版页面被 iOS「添加到主屏幕」打开后不再有浏览器地址栏，
      下面这段只在那种真·全屏模式里生效；普通 Safari / 微信里浏览时零影响，
      也不会给用户任何提示。
   ========================================================================== */
@media (display-mode: standalone) {
  /* 全屏后没有地址栏，视口高度换成动态单位，避免底部被切掉 */
  body.mobile-app-page {
    min-height: 100dvh;
  }

  .mobile-standalone .phone-frame {
    min-height: 100dvh;
  }

  .phone-screen,
  body.mobile-app-page .phone-screen {
    height: 100vh;
    height: 100dvh;
  }
}

/* 让出底部安全区：iPhone 那条 Home 指示条（小白条）会压住底部导航。
   min-height: 750px 用来排除带 Home 键的机型（如 SE 667pt）—— 那些机型没有指示条。
   以后若给 viewport 加 viewport-fit=cover，这里可以换成 env(safe-area-inset-bottom) 精确取值。 */
@media (display-mode: standalone) and (min-height: 750px) {

  .phone-screen,
  body.mobile-app-page .phone-screen {
    height: calc(100vh - 34px);
    height: calc(100dvh - 34px);
  }

  .preview-toast {
    bottom: 64px;
  }
}

/* ==========================================================================
   2026-11-10：下拉刷新提示条
   —— 手势与触发逻辑在 mobile-runtime.js（refreshCurrentPageData / bindPullRefresh）。
      原生下拉刷新在 wap 这套结构里永远触发不了：文档不滚（body 已锁死）、
      而「加到主屏」后的 PWA 模式 iOS 本来就没有原生下拉刷新，
      所以只能自己实现，这条就是它拖出来的那颗胶囊。
   ========================================================================== */
.mobile-pull-refresh {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 0 0 14px 14px;
  color: #33507f;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 22px rgba(52, 86, 145, .18);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% + var(--pull-y, 0px)));
  transition: opacity .16s ease, visibility .16s linear;
}

.mobile-pull-refresh.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-pull-refresh.is-ready {
  color: #1b64c8;
  background: rgba(240, 247, 255, .99);
}

.mobile-pull-refresh__dot {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(79, 125, 243, .28);
  border-top-color: #4f7df3;
  border-radius: 999px;
}

.mobile-pull-refresh.is-refreshing .mobile-pull-refresh__dot {
  animation: mobilePullSpin .75s linear infinite;
}

@keyframes mobilePullSpin {
  to {
    transform: rotate(360deg);
  }
}
