/* Q508 lottery page fixes — scoped, do not override native bottom-bar */
.q508-total-bar {
  display: flex; justify-content: space-between; padding: 2.667vw 4vw;
  color: #f5c08a; font-size: 3.733vw; background: rgba(0,0,0,.35);
  border-radius: 2.133vw; margin: 2.667vw 2.667vw 0;
}
/* 官方合作数据 — reference layout */
.q508-official-wrap { display: none !important; }
/* Small phones: scroll game area, keep bottom submit bar fixed */
.container.page.lottery .options-bar .game {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.q508-pay-tabs { display: flex; gap: 2.667vw; padding: 3.2vw 3.2vw 0; }
.q508-pay-tab {
  flex: 1; text-align: center; padding: 2.667vw; border-radius: 2.133vw;
  border: 1px solid #666; color: #fff; font-size: 3.733vw;
}
.q508-pay-tab.active { border-color: #f5c08a; color: #f5c08a; background: rgba(245,192,138,.1); }

/* Login forgot password popup */
.q508-forgot-popup {
  width: 72vw; max-width: 320px; padding: 6.4vw 5.333vw 5.333vw;
  text-align: center; background: linear-gradient(180deg, #2a2426, #1a1818);
}
.q508-forgot-title { color: #efcba7; font-size: 4.267vw; font-weight: 700; margin-bottom: 3.2vw; }
.q508-forgot-msg { color: #f3c7a2; font-size: 3.733vw; line-height: 1.5; margin-bottom: 4.267vw; }
.q508-forgot-btn { border: none; background: linear-gradient(90deg, #efcba7, #dcab76); color: #4a2e12; }

/* Bind card — bound state + QR upload */
.q508-bind-done { opacity: 0.72; pointer-events: none; }
.q508-bind-hint {
  text-align: center; color: #9b8b7a; font-size: 3.2vw; margin: 2.133vw 0 4vw; padding: 0 4vw;
}
.q508-qr-box { padding: 3.2vw 4vw 1.067vw; }
.q508-qr-label {
  color: #646566; font-size: 3.733vw; line-height: 6.4vw; margin-bottom: 2.133vw;
}
.q508-qr-preview {
  display: block; width: 40vw; max-width: 180px; height: auto; margin: 0 auto 1.067vw;
  border: 1px solid rgba(118, 99, 80, 0.45); border-radius: 2.133vw; cursor: pointer;
}
.q508-qr-tap-hint {
  text-align: center; color: #9b8b7a; font-size: 3.2vw; margin: 0 0 2.667vw;
}
.q508-qr-preview-popup { background: rgba(0,0,0,.88) !important; }
.q508-qr-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9999;
  background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center;
  padding: 8vw; box-sizing: border-box;
}
.q508-qr-close-btn {
  position: fixed; top: 4vw; right: 4vw; z-index: 10001;
  color: #fff; font-size: 4.267vw; padding: 2.133vw 4vw;
  border: 1px solid rgba(255,255,255,.55); border-radius: 2.133vw;
  background: rgba(0,0,0,.45); cursor: pointer;
}
.q508-qr-full {
  display: flex; align-items: center; justify-content: center;
  width: 100vw; height: 100vh; padding: 8vw; box-sizing: border-box;
}
.q508-qr-full-img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2.667vw;
}
.q508-qr-upload {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; width: 56vw; max-width: 240px; padding: 2.667vw;
  border: 1px dashed rgba(243, 199, 162, 0.55); border-radius: 2.667vw;
  color: #f3c7a2; font-size: 3.733vw; cursor: pointer;
}
.q508-qr-upload input { display: none; }

/* Withdraw — multi pay method selection */
.q508-withdraw-pay { cursor: pointer; padding: 2.133vw 4vw; }
.q508-withdraw-pay.active { color: #efcba7; }
.q508-withdraw-pay input { margin-right: 2.133vw; }

/* Member message — unread dot + list page (dark/gold v2) */
.q508-msg-menu .left_y { position: relative; }
.q508-msg-dot {
  position: absolute; top: -0.533vw; left: 5.867vw;
  width: 2.133vw; height: 2.133vw; min-width: 8px; min-height: 8px;
  background: #ff3b30; border-radius: 50%; border: 1px solid #1a1818;
}
.q508-msg-page,
.q508-msg-page.container.page,
.q508-msg-v2 {
  min-height: 100vh !important;
  background: #1a1818 !important;
}
.q508-msg-nav,
.q508-msg-nav.q508-choose-header {
  background: linear-gradient(180deg, #242022 0%, #1a1818 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35) !important;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35);
}
.q508-msg-nav .van-nav-bar__title {
  color: #efcba7 !important;
  font-weight: 700;
  font-size: 4.533vw;
  letter-spacing: 0.267vw;
}
.q508-msg-nav .van-nav-bar__content { background: transparent !important; }
.q508-msg-body {
  padding: 3.2vw 4vw 12vw;
  background: #1a1818;
  min-height: calc(100vh - 12vw);
}
.q508-msg-list { display: flex; flex-direction: column; gap: 3.2vw; }
.q508-msg-item {
  background: linear-gradient(180deg, #2a2426 0%, #1f1c1d 100%);
  border: 1px solid rgba(239, 203, 167, 0.22);
  border-radius: 2.667vw;
  padding: 3.733vw 4vw;
  box-shadow: 0 0.533vw 2.667vw rgba(0,0,0,.25);
}
.q508-msg-item.unread {
  border-color: rgba(239, 203, 167, 0.55);
  box-shadow: 0 0 0 1px rgba(239, 203, 167, 0.15), 0 0.533vw 2.667vw rgba(0,0,0,.3);
}
.q508-msg-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2.133vw;
}
.q508-msg-title { color: #efcba7; font-size: 4vw; font-weight: 700; }
.q508-msg-badge {
  font-size: 2.933vw; color: #1a1818; background: #efcba7;
  padding: 0.533vw 2.133vw; border-radius: 2.667vw; font-weight: 700;
}
.q508-msg-content {
  color: #f3c7a2; font-size: 3.733vw; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.q508-msg-time { color: #9b8b7a; font-size: 3.2vw; margin-top: 2.667vw; text-align: right; }
.q508-msg-empty {
  text-align: center; color: #9b8b7a; font-size: 3.733vw;
  padding: 20vw 0; background: transparent;
}

/* ===== Home ranking — matches source dark/gold theme ===== */
.q508-banner-wrap { position: relative; }
.q508-banner-overlay {
  position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 2.667vw;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72));
  pointer-events: none;
}
.q508-banner-title {
  color: #efcba7; font-size: 5.067vw; font-weight: 800; letter-spacing: 0.267vw;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.q508-banner-sub { color: #fff; font-size: 3.2vw; margin-top: 1.067vw; line-height: 1.45; }
.q508-banner-tip { color: #dcab76; font-size: 2.933vw; margin-top: 1.067vw; }
.q508-rank-nav .x_p { font-size: 3.2vw; line-height: 1.35; padding: 0 0.533vw; }
.q508-rank-nav .q508-rank-center { flex: 1.35; font-weight: 700; color: #efcba7; }
.q508-rank-box { padding-bottom: 1.067vw; }
.q508-podium-dark {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2.133vw; padding: 3.2vw 0.533vw 0; min-height: 48vw;
}
.q508-pd-item {
  flex: 1; max-width: 28vw; display: flex; flex-direction: column;
  align-items: center; cursor: pointer;
}
.q508-pd-crown {
  width: 6.667vw; height: 6.667vw; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2vw; font-weight: 800; margin-bottom: -1.6vw;
  position: relative; z-index: 3; border: 1px solid #766350;
}
.q508-pd-crown.r1 { background: linear-gradient(90deg,#efcba7,#dcab76); color: #5c3a12; }
.q508-pd-crown.r2 { background: linear-gradient(90deg,#d8d8d8,#a8a8a8); color: #333; }
.q508-pd-crown.r3 { background: linear-gradient(90deg,#cd9b5a,#a67c3a); color: #3d2b00; }
.q508-pd-avatar {
  width: 17.333vw; height: 17.333vw; border-radius: 50%; object-fit: cover;
  border: 0.533vw solid #766350; position: relative; z-index: 2; margin-bottom: -3.2vw;
}
.q508-pd-r1 .q508-pd-avatar { width: 20vw; height: 20vw; border-color: #dcab76; }
.q508-pd-base {
  width: 100%; border-radius: 2.133vw 2.133vw 0 0; padding: 5.333vw 1.067vw 2.133vw;
  text-align: center; border: 1px solid #766350;
  background: linear-gradient(180deg, #2e2a28, #1a1818);
}
.q508-pd-r1 .q508-pd-base { min-height: 24vw; padding-top: 6.133vw; }
.q508-pd-r2 .q508-pd-base { min-height: 20vw; padding-top: 5.067vw; }
.q508-pd-r3 .q508-pd-base { min-height: 17.333vw; padding-top: 5.067vw; }
.q508-pd-stat {
  color: #e6b98a; font-size: 2.933vw; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.533vw;
}
.q508-pd-stat img { width: 3.467vw; height: 3.467vw; }
.q508-pd-stat-sub { color: #dcab76; font-size: 2.667vw; margin-top: 0.533vw; justify-content: center; }
.q508-pd-r1 { order: 2; transform: translateY(-2.133vw); }
.q508-pd-r2 { order: 1; }
.q508-pd-r3 { order: 3; }
.q508-home-refresh {
  position: fixed; right: 4vw; bottom: 20vw;
  width: 10.667vw; height: 10.667vw; border-radius: 50%;
  background: linear-gradient(120deg,#212121,#313131);
  border: 1px solid #766350; color: #e6b98a; font-size: 5.333vw;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35); z-index: 20; cursor: pointer;
}
.q508-video-top {
  position: fixed; right: 4vw; bottom: 20vw;
  width: 9.6vw; height: 9.6vw; border-radius: 50%;
  background: rgba(22, 20, 22, 0.92);
  border: 1px solid rgba(118, 99, 80, 0.55);
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 25; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.q508-video-top::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 2.4vw; height: 2.4vw; margin: -0.4vw 0 0 -1.2vw;
  border-top: 0.4vw solid #e6b98a;
  border-left: 0.4vw solid #e6b98a;
  transform: rotate(45deg);
  box-sizing: border-box;
}
.q508-video-top--show {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.q508-video-top--hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.q508-video-top:active {
  transform: scale(0.96);
}

/* ===== Choose (选妃) page polish ===== */
.q508-choose-page { min-height: 100vh; background: #1a1818 !important; }
.q508-choose-page .q508-choose-header {
  background: linear-gradient(180deg, #242022 0%, #1a1818 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35);
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35);
  z-index: 100 !important;
}
.q508-choose-page .q508-choose-header .img_c {
  font-size: 4.267vw; font-weight: 700; letter-spacing: 0.4vw;
  color: #ff7a96 !important;
}
.q508-choose-page .q508-choose-list {
  padding: 17.333vw 0 20vw !important;
}
.q508-choose-card,
.q508-home .tu_list .tu_item {
  margin: 3.2vw 3.2vw 2.667vw !important;
  border-radius: 3.2vw !important;
  padding: 3.733vw 3.2vw 3.733vw 3.733vw !important;
  background: linear-gradient(135deg, #2b2729 0%, #1f1d1f 100%) !important;
  border: 1px solid rgba(118, 99, 80, 0.55) !important;
  box-shadow: 0 0.8vw 2.667vw rgba(0,0,0,.32) !important;
  align-items: center !important;
  gap: 2.133vw !important;
  overflow: visible !important;
}
.q508-choose-card .info_box,
.q508-home .tu_list .tu_item .info_box {
  flex: 1; min-width: 0; padding-right: 1.067vw;
}
.q508-choose-card .c_id,
.q508-home .tu_list .tu_item .c_id {
  display: inline-block !important;
  max-width: 100% !important;
  width: auto !important;
  padding: 0.8vw 2.667vw !important;
  font-size: 3.467vw !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
.q508-choose-card .c_c,
.q508-home .tu_list .tu_item .c_c {
  color: #c4bab2 !important;
  font-size: 3.2vw !important;
  line-height: 1.5 !important;
  padding-top: 1.067vw !important;
}
.q508-choose-card .q508-choose-city { color: #a89e96 !important; }
.q508-choose-card .c_b_k,
.q508-home .tu_list .tu_item .c_b_k {
  padding-top: 2.133vw !important;
  gap: 0.533vw !important;
}
.q508-choose-card .c_b_k span,
.q508-home .tu_list .tu_item .c_b_k span {
  color: #e6b98a !important;
  font-weight: 600 !important;
  font-size: 3.067vw !important;
  margin-right: 2.133vw !important;
}
.q508-choose-card .c_b_k .sm_in,
.q508-home .tu_list .tu_item .c_b_k .sm_in {
  opacity: 0.75;
}
.q508-choose-avatar,
.q508-home .tu_list .tu_item .sm_in_c {
  width: 22.667vw !important;
  height: 22.667vw !important;
  border: 0.533vw solid rgba(220, 171, 118, 0.55) !important;
  box-shadow: 0 0.533vw 1.867vw rgba(0,0,0,.4) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}
.q508-choose-card .renzh,
.q508-home .tu_list .tu_item .renzh {
  display: none !important;
}
/* Rich card layout (reference-style) */
.q508-choose-rich {
  display: block !important;
  padding: 3.733vw !important;
}
.q508-ch-top {
  display: flex; align-items: flex-start; gap: 2.667vw; margin-bottom: 2.667vw;
}
.q508-ch-avatar-sm {
  width: 14.667vw; height: 14.667vw; border-radius: 50%; object-fit: cover;
  border: 0.533vw solid rgba(220, 171, 118, 0.55); flex-shrink: 0;
}
.q508-live-avatar {
  position: relative; flex-shrink: 0;
  width: 14.667vw; height: 14.667vw;
  cursor: pointer;
}
.q508-live-avatar::before {
  content: ""; position: absolute; inset: -0.8vw; border-radius: 50%;
  border: 0.4vw solid rgba(255, 107, 129, 0.9);
  animation: q508-live-ring 2s ease-in-out infinite;
  pointer-events: none;
}
.q508-live-avatar::after {
  content: ""; position: absolute; inset: -0.267vw; border-radius: 50%;
  border: 0.267vw solid rgba(255, 154, 60, 0.5);
  pointer-events: none;
}
@keyframes q508-live-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.6; }
}
.q508-live-avatar .q508-ch-avatar-sm {
  width: 100%; height: 100%; display: block;
  border: 0.4vw solid rgba(255, 140, 160, 0.8);
  box-shadow: 0 0 1.067vw rgba(255, 107, 129, 0.35);
}
.q508-live-badge {
  position: absolute; right: -0.533vw; bottom: 0;
  width: 5.067vw; height: 5.067vw; border-radius: 50%;
  background: linear-gradient(135deg, #ffad42 0%, #ff6b35 100%);
  border: 0.4vw solid #fff;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 0.4vw; padding-bottom: 1.067vw;
  box-shadow: 0 0.267vw 0.8vw rgba(255, 107, 53, 0.5);
  z-index: 2;
}
.q508-live-bar {
  display: block; width: 0.667vw; background: #fff; border-radius: 0.267vw;
  transform-origin: bottom center;
}
.q508-live-bar--1 { height: 1.067vw; animation: q508-live-bar 1s ease-in-out infinite; }
.q508-live-bar--2 { height: 1.6vw; animation: q508-live-bar 1s ease-in-out 0.15s infinite; }
.q508-live-bar--3 { height: 2.133vw; animation: q508-live-bar 1s ease-in-out 0.3s infinite; }
@keyframes q508-live-bar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
.q508-ch-head { flex: 1; min-width: 0; }
.q508-ch-name-row { display: flex; align-items: center; gap: 1.067vw; margin-bottom: 1.067vw; }
.q508-ch-name { font-size: 4.267vw; font-weight: 700; color: #efcba7; }
.q508-ch-gender { font-size: 3.733vw; color: #ff8fab; line-height: 1; }
.q508-ch-badges { display: flex; flex-wrap: wrap; gap: 1.067vw; margin-bottom: 1.067vw; }
.q508-ch-badge {
  font-size: 2.667vw; padding: 0.533vw 1.6vw; border-radius: 0.8vw; line-height: 1.3;
}
.q508-ch-badge--cert { color: #7ee8d8; background: rgba(62, 180, 160, 0.15); border: 1px solid rgba(62, 180, 160, 0.35); }
.q508-ch-badge--dep { color: #ffb4c8; background: rgba(232, 67, 120, 0.12); border: 1px solid rgba(232, 67, 120, 0.3); }
.q508-ch-loc { font-size: 3.067vw; color: #a89e96; }
.q508-ch-body {
  display: flex; gap: 2.667vw; margin-bottom: 2.667vw;
}
.q508-ch-photo {
  position: relative; width: 32vw; height: 24vw; flex-shrink: 0;
  border-radius: 2.133vw; overflow: hidden; background: #1a1818;
  cursor: pointer;
}
.q508-ch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q508-ch-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 11vw; height: 11vw; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex !important; align-items: center; justify-content: center;
  pointer-events: none; box-shadow: 0 0.533vw 2.133vw rgba(0, 0, 0, 0.35);
}
.q508-ch-play::after {
  content: ""; width: 0; height: 0; margin-left: 0.8vw;
  border-style: solid; border-width: 1.6vw 0 1.6vw 2.667vw;
  border-color: transparent transparent transparent #fff;
}
.q508-card-video-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw; box-sizing: border-box;
}
.q508-card-video-box {
  width: 100%; max-width: 100%; background: #111;
  border-radius: 2.133vw; overflow: hidden;
  border: 1px solid rgba(118, 99, 80, 0.35);
}
.q508-card-video-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3vw 4vw; color: #efcba7; font-size: 4vw;
}
.q508-card-video-x {
  background: none; border: none; color: #fff; font-size: 7vw;
  line-height: 1; padding: 0; cursor: pointer;
}
.q508-card-video-el {
  width: 100%; max-height: 70vh; background: #000; display: block;
}
.q508-contact-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 6vw; box-sizing: border-box;
}
.q508-contact-box {
  width: 100%; max-width: 84vw;
  background: linear-gradient(180deg, #2a2528 0%, #1a1818 100%);
  border: 1px solid rgba(220, 171, 118, 0.5);
  border-radius: 3.2vw; padding: 6.4vw 5.333vw 5.333vw;
  box-shadow: 0 1.067vw 4.267vw rgba(0, 0, 0, 0.55);
}
.q508-contact-title {
  text-align: center; font-size: 4.8vw; font-weight: 700;
  color: #efcba7; margin-bottom: 4vw; letter-spacing: 0.13vw;
}
.q508-contact-msg {
  text-align: center; font-size: 3.733vw; line-height: 1.65;
  color: #ffb4c8; margin-bottom: 5.333vw; padding: 0 1.067vw;
}
.q508-contact-btn {
  text-align: center; padding: 2.933vw 0; border-radius: 6.667vw;
  font-size: 3.733vw; font-weight: 700; color: #2a1f14; cursor: pointer;
  background: linear-gradient(90deg, #c9924a, #f3c7a2);
  box-shadow: 0 0.533vw 2.133vw rgba(239, 203, 167, 0.35);
}
.q508-match-overlay {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 6vw; box-sizing: border-box;
}
.q508-match-box {
  width: 100%; max-width: 84vw;
  background: linear-gradient(180deg, #2a2528 0%, #1a1818 100%);
  border: 1px solid rgba(220, 171, 118, 0.55);
  border-radius: 3.2vw;
  padding: 6.4vw 5.333vw 5.333vw;
  box-shadow: 0 1.067vw 4.267vw rgba(0, 0, 0, 0.55);
}
.q508-match-title {
  text-align: center; font-size: 5.333vw; font-weight: 800;
  color: #efcba7; margin-bottom: 2.667vw; line-height: 1.4;
  letter-spacing: 0.267vw;
}
.q508-match-sub {
  text-align: center; font-size: 3.733vw; color: #c4bab2;
  margin-bottom: 5.333vw; line-height: 1.55;
}
.q508-match-btn {
  text-align: center; padding: 3.2vw 0; border-radius: 6.667vw;
  font-size: 3.733vw; font-weight: 700; color: #2a1f14; cursor: pointer;
  background: linear-gradient(90deg, #c9924a, #f3c7a2);
  box-shadow: 0 0.533vw 2.133vw rgba(239, 203, 167, 0.35);
}
.q508-ch-meta { flex: 1; min-width: 0; }
.q508-ch-sign {
  font-size: 3.067vw; color: #c4bab2; line-height: 1.5; margin-bottom: 1.6vw;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.q508-ch-tags { display: flex; flex-wrap: wrap; gap: 0.8vw; }
.q508-ch-tag {
  font-size: 2.4vw; padding: 0.4vw 1.4vw; border-radius: 3.733vw; line-height: 1.3;
}
.q508-ch-tag--0 { color: #fff; background: linear-gradient(90deg, #e84393, #ff6b9d); }
.q508-ch-tag--1 { color: #fff; background: linear-gradient(90deg, #f5a623, #ff8c42); }
.q508-ch-tag--2 { color: #fff; background: linear-gradient(90deg, #5b8def, #7eb6ff); }
.q508-ch-tag--3 { color: #fff; background: linear-gradient(90deg, #9b54ca, #e6557f); }
.q508-ch-tag--4 { color: #fff; background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.q508-ch-tag--5 { color: #fff; background: linear-gradient(90deg, #2ecc71, #1abc9c); }
.q508-ch-stats {
  display: flex; flex-wrap: wrap; gap: 2.133vw; font-size: 2.933vw; color: #9a9088;
  margin-bottom: 2.667vw; padding-top: 0.533vw; border-top: 1px solid rgba(118, 99, 80, 0.25);
}
.q508-ch-stats span:last-child { color: #e6b98a; }
.q508-ch-cta {
  text-align: center; padding: 2.667vw 0; border-radius: 6.667vw;
  font-size: 3.733vw; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #e6a067, #e84393);
  box-shadow: 0 0.533vw 2.133vw rgba(232, 67, 120, 0.35);
}
.q508-choose-refresh,
.q508-home-refresh {
  position: fixed; right: 4vw; bottom: 22vw;
  width: 9.6vw; height: 9.6vw; border-radius: 50%;
  background: rgba(22, 20, 22, 0.92);
  border: 1px solid rgba(118, 99, 80, 0.55);
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 20; cursor: pointer;
}
.q508-choose-refresh::before,
.q508-home-refresh::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 3.2vw; height: 3.2vw; margin: -1.6vw 0 0 -1.6vw;
  border: 0.4vw solid transparent;
  border-top-color: #e6b98a;
  border-right-color: #e6b98a;
  border-radius: 50%;
  box-sizing: border-box;
}
.q508-choose-refresh::after,
.q508-home-refresh::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; margin: -2.4vw 0 0 0.4vw;
  border-left: 0.8vw solid transparent;
  border-right: 0.8vw solid transparent;
  border-bottom: 1.067vw solid #e6b98a;
  transform: rotate(45deg);
}
.q508-home-refresh { color: transparent !important; font-size: 0 !important; }

/* Lottery page input + nav polish */
.container.page.lottery .q508-lottery-money .van-field__control {
  color: #f5c08a !important;
  font-size: 4vw;
}
.container.page.lottery .q508-lottery-money .van-field__control::placeholder {
  color: rgba(245, 192, 138, 0.45) !important;
}
.container.page.lottery .amount-wrapper {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(118, 99, 80, 0.55);
  border-radius: 2.133vw;
  padding: 0 2.133vw;
}
.container.page.lottery .c_kk_img {
  width: 8vw; height: 8vw; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(245, 192, 138, 0.45);
}

/* ===== 打赏 page — reference layout, Q508 dark/gold theme ===== */
.q508-reward-page {
  min-height: 100vh;
  background: #1a1818 !important;
  padding-bottom: 18vw;
}
.q508-reward-page .q508-reward-nav,
.q508-reward-page .q508-choose-header {
  background: linear-gradient(180deg, #242022 0%, #1a1818 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35) !important;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35);
}
.q508-reward-page .q508-reward-nav .van-nav-bar__title,
.q508-reward-page .van-nav-bar__title {
  color: #efcba7 !important;
  font-weight: 700;
  font-size: 4.533vw;
  letter-spacing: 0.4vw;
}
.q508-reward-record {
  color: #f5c08a; font-size: 3.467vw; padding-right: 2.133vw;
}
.q508-reward-body {
  padding: 3.733vw 3.2vw 6.4vw;
}
.q508-reward-coops {
  position: relative;
  margin-bottom: 3.733vw;
  padding-top: 1.067vw;
}
.q508-reward-coops-title-img {
  display: block;
  width: 78vw;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2.667vw;
  position: relative;
  z-index: 2;
}
.q508-reward-coops-row {
  display: flex;
  gap: 2.133vw;
  align-items: stretch;
}
.q508-reward-coop-card {
  flex: 1;
  border-radius: 2.133vw;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35);
}
.q508-reward-coop-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.q508-reward-menu {
  background: linear-gradient(135deg, #2b2729 0%, #1f1d1f 100%);
  border: 1px solid rgba(118, 99, 80, 0.45);
  border-radius: 3.2vw; overflow: hidden;
  margin-bottom: 3.733vw;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.28);
}
.q508-reward-menu-item {
  display: flex; align-items: center; padding: 4vw 3.733vw;
  border-bottom: 1px solid rgba(118, 99, 80, 0.25); cursor: pointer;
}
.q508-reward-menu-item:last-child { border-bottom: none; }
.q508-reward-menu-ico-img {
  width: 8.933vw; height: auto; margin-right: 2.667vw; flex-shrink: 0;
  display: block; object-fit: contain;
}
.q508-reward-menu-text {
  flex: 1; font-size: 3.733vw; color: #efcba7; font-weight: 600;
}
.q508-reward-menu-item .van-icon { color: #a89e96; font-size: 4vw; }
.q508-reward-star {
  position: relative; border-radius: 3.2vw; overflow: hidden;
  min-height: 48vw; cursor: pointer;
  border: 1px solid rgba(118, 99, 80, 0.45);
  box-shadow: 0 0.8vw 2.667vw rgba(0,0,0,.35);
}
.q508-reward-star-bg {
  width: 100%; display: block; object-fit: cover; min-height: 48vw;
}
.q508-reward-star-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,24,24,.05) 0%, rgba(26,24,24,.72) 55%, rgba(26,24,24,.88) 100%);
  padding: 3.733vw; display: flex; flex-direction: column; justify-content: flex-end;
}
.q508-reward-star-desc {
  color: #e8ddd4; font-size: 3.067vw; line-height: 1.55;
  margin-bottom: 2.133vw;
  text-shadow: 0 1px 4px rgba(0,0,0,.65);
}
.q508-reward-star-cta {
  color: #f3c7a2; font-size: 5.867vw; font-weight: 900;
  letter-spacing: 0.267vw; text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

/* ===== 防骗指南 page — Q508 dark/gold, reference full text ===== */
.q508-fangpian-page {
  min-height: 100vh;
  background: #1a1818 !important;
}
.q508-fp-nav,
.q508-fp-nav.q508-choose-header {
  background: linear-gradient(180deg, #242022 0%, #1a1818 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35) !important;
  box-shadow: 0 0.533vw 2.133vw rgba(0,0,0,.35);
}
.q508-fp-nav .van-nav-bar__title {
  color: #efcba7 !important;
  font-weight: 700;
  font-size: 4.533vw;
  letter-spacing: 0.267vw;
}
.q508-fp-body {
  padding: 4vw 3.733vw 12vw;
}
.q508-fp-title-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 4vw;
}
.q508-fp-section--top {
  display: flex;
  align-items: flex-start;
  gap: 1.067vw;
  margin-bottom: 2.667vw;
}
.q508-fp-text {
  flex: 1;
  font-size: 3.333vw;
  line-height: 1.72;
  color: #c4bab2;
}
.q508-fp-text p { margin: 0 0 3.2vw; }
.q508-fp-hl {
  color: #f3c7a2;
  font-weight: 700;
}
.q508-fp-police {
  width: 24vw;
  height: auto;
  flex-shrink: 0;
  margin-top: 0.533vw;
}
.q508-fp-bottom {
  display: flex;
  align-items: flex-start;
  gap: 2.133vw;
}
.q508-fp-girl {
  width: 26.667vw;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1.067vw;
  opacity: 0.92;
}
.q508-fp-bottom-right {
  flex: 1;
  min-width: 0;
}
.q508-fp-remind {
  color: #efcba7;
  font-size: 3.2vw;
  line-height: 1.68;
  font-weight: 600;
  margin-bottom: 3.2vw;
}
.q508-fp-remind p { margin: 0; }
.q508-fp-text--bottom p { margin-bottom: 3.2vw; }
.q508-fp-text--bottom p:last-child { margin-bottom: 0; }

/* ===== 投票打赏 page — hex hub + dock + room_bg.gif (large cover) ===== */
.q508-vote-page,
.q508-vote-page.lottery {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a1216 !important;
  background-image: url(/img/neww/room_bg.gif) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  padding-bottom: calc(32vw + env(safe-area-inset-bottom));
}
.q508-vote-page .q508-vote-nav,
.q508-vote-page .q508-choose-header {
  background: linear-gradient(180deg, rgba(36, 32, 34, 0.96) 0%, rgba(26, 24, 24, 0.92) 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35) !important;
  backdrop-filter: blur(6px);
}
.q508-vote-page .q508-vote-nav .van-nav-bar__title,
.q508-vote-page .nav-bar .van-nav-bar__title {
  color: #efcba7 !important;
  font-weight: 700;
  font-size: 4.533vw !important;
}
.q508-vote-record-btn {
  color: #f3c7a2;
  font-size: 3.467vw;
  padding: 1.067vw 2.667vw;
  border: 1px solid rgba(243, 199, 162, 0.55);
  border-radius: 4vw;
  white-space: nowrap;
}
.q508-vote-body {
  padding: 2vw 3.2vw 0;
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent !important;
}
.q508-vote-last {
  display: flex;
  align-items: center;
  gap: 2.133vw;
  padding: 2.133vw 3.2vw;
  margin-bottom: 1.2vw;
  background: rgba(20, 14, 16, 0.35);
  border: 1px solid rgba(118, 99, 80, 0.28);
  border-radius: 2.667vw;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.q508-vote-last-expect {
  color: #efcba7;
  font-size: 3.733vw;
  font-weight: 700;
}
.q508-vote-last-tag {
  font-size: 3.2vw;
  padding: 0.533vw 2.133vw;
  border-radius: 3.733vw;
  background: rgba(243, 199, 162, 0.15) !important;
  color: #f3c7a2 !important;
  border: 1px solid rgba(243, 199, 162, 0.35);
}
.q508-vote-last-tag.d,
.q508-vote-last-tag.x,
.q508-vote-last-tag.v,
.q508-vote-last-tag.r {
  background: rgba(243, 199, 162, 0.15) !important;
  color: #f3c7a2 !important;
}
.q508-vote-last-label {
  margin-left: auto;
  color: #a89e96;
  font-size: 3.467vw;
}
.q508-vote-hex-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  min-height: calc(100vh - 62vw - env(safe-area-inset-bottom));
  height: calc(100vh - 62vw - env(safe-area-inset-bottom));
  max-height: 92vw;
  background: transparent !important;
  overflow: hidden;
  padding: 0;
}
.q508-vote-hex-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: auto;
  height: auto;
  border-radius: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 120, 140, 0.08) 0%, rgba(20, 12, 16, 0.12) 55%, rgba(12, 10, 12, 0.22) 100%);
  pointer-events: none;
  z-index: 0;
}
.q508-vote-hex-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78vw;
  height: 78vw;
  max-height: 90%;
  border-radius: 50%;
  border: 1px solid rgba(243, 199, 162, 0.16);
  box-shadow: inset 0 0 8vw rgba(243, 199, 162, 0.08);
  pointer-events: none;
  z-index: 0;
}
.q508-vote-hex-row {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  margin: 0;
  width: auto;
  pointer-events: none;
}
.q508-vote-hex-row .q508-vote-hex {
  width: 27vw;
  height: 31vw;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6vw;
  background:
    linear-gradient(160deg, rgba(90, 70, 58, 0.95), rgba(28, 20, 18, 0.98));
  border: 0.45vw solid rgba(243, 199, 162, 0.45);
  box-shadow:
    inset 0 0 2vw rgba(243, 199, 162, 0.08),
    0 0.6vw 1.8vw rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s, filter 0.2s, opacity 0.2s, background 0.2s;
  filter: saturate(0.95);
  opacity: 0.9;
}
.q508-vote-hex-row:first-of-type {
  top: 2%;
}
.q508-vote-hex-row:last-of-type {
  bottom: 2%;
}


.q508-vote-hex {
  width: 25vw;
  height: 28.5vw;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8vw;
  background:
    linear-gradient(160deg, rgba(90, 70, 58, 0.95), rgba(28, 20, 18, 0.98));
  border: 0.45vw solid rgba(243, 199, 162, 0.4);
  box-shadow:
    inset 0 0 2vw rgba(243, 199, 162, 0.08),
    0 0.6vw 1.8vw rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s, filter 0.2s, opacity 0.2s, background 0.2s;
  filter: saturate(0.95);
  opacity: 0.82;
}
.q508-vote-hex:active {
  transform: scale(0.94);
}
.q508-vote-hex.active {
  opacity: 1;
  border-color: #ffe7c8;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 214, 170, 0.55) 0%, rgba(180, 110, 55, 0.35) 42%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, #c9924a 0%, #8a5a2e 45%, #4a2e18 100%);
  box-shadow:
    0 0 0 0.55vw rgba(255, 230, 190, 0.95),
    0 0 3.5vw rgba(255, 200, 140, 0.85),
    0 0 7vw rgba(243, 199, 162, 0.55),
    inset 0 0 2.5vw rgba(255, 240, 210, 0.35);
  transform: scale(1.04);
  filter: saturate(1.15) brightness(1.08);
  z-index: 2;
}
.q508-vote-hex-stage:has(.q508-vote-hex.active) .q508-vote-hex:not(.active) {
  opacity: 0.55;
  filter: saturate(0.8) brightness(0.9);
}
.q508-vote-hex.active .q508-vote-hex-text {
  color: #fff8ec;
  text-shadow: 0 0 1.2vw rgba(255, 230, 180, 0.95), 0 0.267vw 0.8vw rgba(0,0,0,0.55);
}
.q508-vote-hex-icon {
  width: 14vw;
  height: 14vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.18) !important;
  border: 0.3vw solid rgba(255, 236, 210, 0.28);
  box-shadow:
    0 0.4vw 1.2vw rgba(0, 0, 0, 0.3),
    inset 0 0 1vw rgba(255, 255, 255, 0.08);
}
.q508-vote-hex.active .q508-vote-hex-icon {
  border-color: #ffe7c8;
  box-shadow:
    0 0 2vw rgba(255, 220, 170, 0.55),
    inset 0 0 1.6vw rgba(255, 240, 210, 0.22);
}
.q508-vote-hex-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}
.q508-vote-hex-img {
  width: 12vw;
  height: 12vw;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.4vw 0.8vw rgba(0,0,0,0.35));
  animation: q508GiftFloat 2.8s ease-in-out infinite;
}
.q508-vote-hex:nth-child(2) .q508-vote-hex-img {
  animation-delay: 0.35s;
}
.q508-vote-hex-row:last-of-type .q508-vote-hex:nth-child(1) .q508-vote-hex-img {
  animation-delay: 0.7s;
}
.q508-vote-hex-row:last-of-type .q508-vote-hex:nth-child(2) .q508-vote-hex-img {
  animation-delay: 1.05s;
}
@keyframes q508GiftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.8vw); }
}
.q508-vote-hex-icon:not(:has(.q508-vote-hex-img)) {
  box-shadow: inset 0 0 2.667vw rgba(255, 255, 255, 0.12);
}
.q508-vote-hex-text {
  color: #ffe7c8;
  font-size: 3.2vw;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.1vw;
  text-shadow: 0 0.267vw 0.8vw rgba(0,0,0,0.55);
}


.q508-vote-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 36vw;
  height: 36vw;
  margin: 0;
  border-radius: 50%;
  border: 0.55vw solid rgba(243, 199, 162, 0.82);
  background: radial-gradient(circle at 50% 36%, rgba(52, 42, 38, 0.96), rgba(14, 12, 12, 0.98));
  box-shadow: 0 0 5.5vw rgba(243, 199, 162, 0.34), inset 0 0 3.2vw rgba(243, 199, 162, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2vw;
}
.q508-vote-hub-label {
  color: #a89e96;
  font-size: 3.467vw;
  margin-bottom: 1.067vw;
  line-height: 1.35;
}
.q508-vote-hub-timer {
  color: #fff3e0 !important;
  font-size: 7.2vw !important;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  padding: 1.067vw 2.667vw;
  border: 0.533vw solid rgba(243, 199, 162, 0.75);
  border-radius: 1.6vw;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 2.133vw rgba(243, 199, 162, 0.12);
}
.q508-vote-hub-sub {
  color: #766350;
  font-size: 3.2vw;
  margin-top: 1.067vw;
}
.q508-vote-hub-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.067vw;
  margin-bottom: 1.067vw;
  cursor: pointer;
}
.q508-vote-hub-name {
  color: #efcba7;
  font-size: 3.733vw;
  font-weight: 700;
  max-width: 28vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q508-vote-game-popup {
  background: linear-gradient(180deg, #2b2729 0%, #1a1818 100%) !important;
}
.q508-vote-game-list {
  padding: 4vw 3.2vw;
  height: 100%;
  overflow-y: auto;
}
.q508-vote-game-title {
  color: #efcba7;
  font-size: 4.267vw;
  font-weight: 700;
  margin-bottom: 3.733vw;
  padding-bottom: 2.133vw;
  border-bottom: 1px solid rgba(118, 99, 80, 0.45);
}
.q508-vote-game-item {
  display: flex;
  align-items: center;
  gap: 2.667vw;
  padding: 2.667vw;
  margin-bottom: 2.133vw;
  border-radius: 2.133vw;
  border: 1px solid rgba(118, 99, 80, 0.45);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.q508-vote-game-item.active {
  border-color: rgba(243, 199, 162, 0.85);
  box-shadow: 0 0 2.667vw rgba(243, 199, 162, 0.18);
}
.q508-vote-game-ico {
  width: 12vw;
  height: 12vw;
  object-fit: contain;
  border-radius: 1.6vw;
  background: rgba(255, 255, 255, 0.06);
}
.q508-vote-game-name {
  color: #e8ddd4;
  font-size: 3.733vw;
  font-weight: 600;
}
.q508-vote-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 13.333vw;
  z-index: 30;
  padding: 1.6vw 2.8vw 1.4vw;
  background: linear-gradient(180deg, rgba(28, 22, 24, 0.82), rgba(16, 14, 16, 0.96));
  border-top: 1px solid rgba(118, 99, 80, 0.4);
  box-shadow: 0 -0.4vw 2.4vw rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.q508-vote-dock-top {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  margin-bottom: 1.4vw;
}
.q508-vote-dock-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2vw;
  color: #a89e96;
  font-size: 2.8vw;
  line-height: 1.25;
  flex-shrink: 0;
  min-width: 22vw;
}
.q508-vote-dock-stats span:last-child {
  color: #f3c7a2;
}
.q508-vote-dock-row {
  display: none;
}
.q508-vote-dock-input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(118, 99, 80, 0.55);
  border-radius: 1.6vw;
  padding: 0 1.6vw;
  height: 8.5vw;
  display: flex;
  align-items: center;
}
.q508-vote-dock-input .van-cell {
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
}
.q508-vote-dock-balance {
  color: #efcba7;
  font-size: 2.7vw;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 28vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q508-vote-page .q508-lottery-money .van-field__control {
  color: #f5c08a !important;
  font-size: 3.2vw !important;
  line-height: 8.5vw !important;
  height: 8.5vw !important;
}
.q508-vote-page .q508-lottery-money .van-field__control::placeholder {
  color: rgba(245, 192, 138, 0.45) !important;
}
.q508-vote-dock-bottom {
  display: flex;
  align-items: center;
  gap: 2vw;
}
.q508-vote-submit {
  flex: 0 0 28vw;
  background: linear-gradient(90deg, #c9924a, #f3c7a2) !important;
  color: #2a1f14 !important;
  font-weight: 700;
  font-size: 3.6vw;
  text-align: center;
  padding: 2.4vw 0;
  border-radius: 1.8vw;
  box-shadow: 0 0.4vw 1.8vw rgba(239, 203, 167, 0.3);
  line-height: 1.2;
}
.q508-vote-tip {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #766350;
  font-size: 2.4vw;
  line-height: 1.35;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q508-vote-page .record,
.q508-vote-page .options-bar,
.q508-vote-page .bottom-bar,
.q508-vote-page .wrapper_box {
  display: none !important;
}



/* q508-vote-select-box */
.q508-vote-hex-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.6vw;
  border-radius: 2.4vw;
  border: 0.45vw solid transparent;
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.q508-vote-hex-wrap.active {
  border-color: rgba(255, 230, 190, 0.95);
  background: rgba(243, 199, 162, 0.16);
  box-shadow:
    0 0 0 0.35vw rgba(255, 220, 170, 0.35),
    0 0 2.8vw rgba(243, 199, 162, 0.45);
  transform: scale(1.02);
}
.q508-vote-hex-wrap.active .q508-vote-hex {
  opacity: 1;
  border-color: #ffe7c8;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 214, 170, 0.5) 0%, rgba(180, 110, 55, 0.3) 42%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, #c9924a 0%, #8a5a2e 45%, #4a2e18 100%);
  filter: saturate(1.15) brightness(1.08) drop-shadow(0 0 1.2vw rgba(255, 220, 170, 0.75));
}
.q508-vote-hex-row .q508-vote-hex-wrap {
  pointer-events: auto;
}

/* q508-vote-adapt */
.q508-vote-page .van-nav-bar,
.q508-vote-page .q508-vote-nav,
.q508-vote-page .q508-choose-header {
  background: rgba(28, 22, 24, 0.55) !important;
}
.q508-vote-hex-stage .q508-vote-hex-row,
.q508-vote-hex-stage .q508-vote-hub {
  z-index: 2;
}
.q508-vote-hex-stage .q508-vote-hub {
  z-index: 3;
}
.q508-vote-hub-label {
  font-size: 3.2vw;
  margin-bottom: 0.6vw;
}
.q508-vote-hub-name {
  font-size: 3.4vw;
  max-width: 28vw;
}
.q508-vote-hub-sub {
  font-size: 2.9vw;
  margin-top: 0.6vw;
}
.q508-vote-hex.active {
  transform: scale(1.05);
}
@media (max-height: 740px) {
  .q508-vote-hex-stage {
    min-height: calc(100vh - 58vw - env(safe-area-inset-bottom));
    height: calc(100vh - 58vw - env(safe-area-inset-bottom));
    max-height: 88vw;
  }
  .q508-vote-hex { width: 25vw; height: 28.5vw; }
  .q508-vote-hex-icon { width: 12.5vw; height: 12.5vw; }
  .q508-vote-hex-img { width: 10.8vw; height: 10.8vw; }
  .q508-vote-hub { width: 33vw; height: 33vw; }
  .q508-vote-hub-timer { font-size: 6.6vw !important; padding: 0.7vw 1.8vw; }
  .q508-vote-hex-row { padding: 0 5vw; }
  .q508-vote-hex-row:first-of-type { top: 1%; }
  .q508-vote-hex-row:last-of-type { bottom: 1%; }
  .q508-vote-last { padding: 1.4vw 2.4vw; margin-bottom: 0.8vw; }
  .q508-vote-page { padding-bottom: calc(30vw + env(safe-area-inset-bottom)); }
  .q508-vote-submit { flex-basis: 26vw; font-size: 3.3vw; padding: 2.1vw 0; }
}
@media (max-height: 640px) {
  .q508-vote-hex-stage {
    min-height: calc(100vh - 54vw - env(safe-area-inset-bottom));
    height: calc(100vh - 54vw - env(safe-area-inset-bottom));
    max-height: 84vw;
  }
  .q508-vote-hex { width: 22vw; height: 25vw; gap: 0.3vw; }
  .q508-vote-hex-icon { width: 10.5vw; height: 10.5vw; }
  .q508-vote-hex-img { width: 9vw; height: 9vw; }
  .q508-vote-hex-text { font-size: 2.7vw; }
  .q508-vote-hub { width: 29vw; height: 29vw; padding: 1.4vw; }
  .q508-vote-hub-timer { font-size: 5.8vw !important; }
  .q508-vote-hub-label, .q508-vote-hub-sub { font-size: 2.5vw; margin: 0.2vw 0; }
  .q508-vote-hex-row { padding: 0 4vw; }
  .q508-vote-dock { padding: 1.2vw 2.4vw 1vw; }
}
@media (min-height: 780px) {
  .q508-vote-hex-stage {
    max-height: 96vw;
  }
  .q508-vote-hub { width: 38vw; height: 38vw; }
  .q508-vote-hub-timer { font-size: 7.8vw !important; }
  .q508-vote-hex { width: 28vw; height: 32vw; }
  .q508-vote-hex-icon { width: 14.5vw; height: 14.5vw; }
  .q508-vote-hex-img { width: 12.5vw; height: 12.5vw; }
  .q508-vote-hex-row { padding: 0 7vw; }
  .q508-vote-hex-row:first-of-type { top: 3%; }
  .q508-vote-hex-row:last-of-type { bottom: 3%; }
}
@media (max-width: 360px) {
  .q508-vote-hex { width: 25vw; height: 28.5vw; }
  .q508-vote-hub { width: 34vw; height: 34vw; }
  .q508-vote-hex-row { padding: 0 4.5vw; }
}


/* ===== 赞助结果 popup — dark/gold ===== */
.q508-vote-results-popup,
.q508-vote-results-popup.van-popup {
  background: linear-gradient(180deg, #2a2426 0%, #1e1a1c 55%, #161416 100%) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.45);
  box-shadow: 0 2.667vw 8vw rgba(0, 0, 0, 0.55);
}
.q508-vote-results-popup .van-pull-refresh,
.q508-vote-results-popup .van-pull-refresh__track {
  background: transparent !important;
  min-height: 100%;
}
.q508-vote-results,
.q508-vote-results.pop_wrapper,
.q508-vote-results.pop_wrapper[data-v-1dd68214] {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 2.667vw 3.2vw 4vw;
  max-height: 100%;
  overflow-y: auto;
}
.q508-vote-results .item,
.q508-vote-results.pop_wrapper .item[data-v-1dd68214] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.667vw;
  padding: 3.2vw;
  margin-bottom: 2.133vw;
  background: rgba(22, 19, 20, 0.92) !important;
  border: 1px solid rgba(118, 99, 80, 0.42) !important;
  border-bottom: 1px solid rgba(118, 99, 80, 0.42) !important;
  border-radius: 2.667vw;
  box-shadow: inset 0 0 2.133vw rgba(0, 0, 0, 0.25);
}
.q508-vote-results .item .left {
  color: #efcba7;
  font-size: 3.733vw;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 26vw;
}
.q508-vote-results .item .right {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.q508-vote-results .kuaisan-ball {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.067vw;
}
.q508-vote-results .ballBox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.933vw;
  height: 6.933vw;
  border-radius: 50%;
  background: rgba(243, 199, 162, 0.12);
  border: 1px solid rgba(243, 199, 162, 0.42);
  color: #f3c7a2;
  font-size: 3.467vw;
  font-weight: 700;
  margin-right: 0 !important;
}
.q508-vote-results .middle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2vw;
  padding: 0.533vw 2.133vw;
  border-radius: 3.733vw;
  border: 1px solid transparent;
  white-space: nowrap;
}
.q508-vote-results .middle.d {
  background: rgba(201, 146, 74, 0.22);
  color: #f3c7a2;
  border-color: rgba(243, 199, 162, 0.45);
}
.q508-vote-results .middle.x {
  background: rgba(180, 120, 140, 0.2);
  color: #e8b8c8;
  border-color: rgba(200, 140, 160, 0.4);
}
.q508-vote-results .middle.v {
  background: rgba(100, 140, 180, 0.2);
  color: #b8d0e8;
  border-color: rgba(120, 160, 200, 0.4);
}
.q508-vote-results .middle.r {
  background: rgba(180, 100, 90, 0.2);
  color: #e8b0a8;
  border-color: rgba(200, 120, 100, 0.4);
}

/* GameRecord — flat card background, no left gradient band */
.container .main .item_list[data-v-beaf95da],
.container .main .item_list[data-v-3913896d] {
  background: rgba(22, 19, 20, 0.92) !important;
  box-shadow: inset 0 0 2.133vw rgba(0, 0, 0, 0.25);
}

/* ===== 确认提交 popup — dark/gold ===== */
.q508-vote-confirm-overlay {
  background-color: rgba(0, 0, 0, 0.72) !important;
}
.q508-vote-confirm-popup.van-popup--center {
  background: transparent !important;
  overflow: visible;
}
.q508-vote-confirm-modal.confirm-order-modal {
  display: flex;
  flex-direction: column;
  width: 84vw;
  max-height: 62vh;
  margin: 0 auto;
  padding: 0 0 4vw;
  background: linear-gradient(180deg, #2a2426 0%, #1e1a1c 55%, #161416 100%) !important;
  border: 1px solid rgba(118, 99, 80, 0.55);
  border-radius: 4vw;
  box-shadow: 0 2.667vw 10.667vw rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.q508-vote-confirm-modal .list {
  flex: 1;
  overflow-y: auto;
  padding: 2.667vw 3.2vw 0;
  margin: 0;
  list-style: none;
}
.q508-vote-confirm-modal .lise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.667vw;
  padding: 3.733vw 0;
  border-bottom: 1px solid rgba(118, 99, 80, 0.35) !important;
}
.q508-vote-confirm-modal .lise-item:last-child {
  border-bottom: none !important;
}
.q508-vote-confirm-modal .main {
  flex: 1;
  min-width: 0;
}
.q508-vote-confirm-modal .bet-name {
  color: #efcba7 !important;
  font-size: 4.267vw;
  font-weight: 700;
  line-height: 1.35 !important;
  margin: 0 0 1.067vw;
}
.q508-vote-confirm-modal .detail-text {
  color: #a89e96 !important;
  font-size: 3.2vw;
  line-height: 1.4 !important;
  margin: 0;
}
.q508-vote-confirm-modal .van-icon {
  color: #c9a882 !important;
  font-size: 5.333vw;
  flex-shrink: 0;
}
.q508-vote-confirm-modal .sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.2vw;
  padding: 3.733vw 3.2vw 0;
  margin-top: 1.067vw;
  border-top: 1px solid rgba(118, 99, 80, 0.35);
}
.q508-vote-confirm-modal .sub-bar .item {
  flex: 1;
  height: 10.667vw;
  line-height: 10.667vw;
  border-radius: 5.333vw;
  font-size: 4vw;
  font-weight: 700;
}
.q508-vote-confirm-modal .cancel-btn {
  background: rgba(22, 19, 20, 0.85) !important;
  border: 1px solid rgba(201, 168, 130, 0.55) !important;
  color: #efcba7 !important;
}
.q508-vote-confirm-modal .sub-btn {
  background: linear-gradient(180deg, #efcba7 0%, #dcab76 100%) !important;
  border: none !important;
  color: #4a2e14 !important;
  box-shadow: 0 0.533vw 2.667vw rgba(239, 203, 167, 0.35);
}

/* ===== PlayVideo page polish ===== */
.q508-play-page .movie-video {
  width: 100%; background: #000; padding: 0;
}
.q508-play-page .movie-video .video-js {
  width: 100% !important; height: 56vw !important; max-height: 56vw;
}
.q508-play-page .movie-video .vjs-tech {
  object-fit: contain; background: #000;
}
.q508-play-page .movie-content {
  padding: 3.2vw 3.733vw 5.333vw;
}
.q508-play-page .movie-descript {
  width: 100%; padding: 3.2vw 0 2.667vw; align-items: flex-start;
}
.q508-play-page .q508-play-name {
  font-size: 4.267vw; font-weight: 700; color: #f3c7a2; line-height: 1.5;
  margin: 0; word-break: break-all;
  white-space: normal !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}
.q508-play-page .q508-play-meta {
  display: flex; flex-wrap: wrap; gap: 2.133vw; margin-top: 2.133vw;
}
.q508-play-page .q508-play-views {
  display: inline-block; padding: 1.067vw 2.667vw;
  border-radius: 3.733vw; font-size: 3.2vw; color: #e6b98a;
  background: rgba(230,185,138,.12); border: 1px solid rgba(230,185,138,.35);
}
.q508-play-page .q508-play-rating {
  display: inline-block; padding: 1.067vw 2.667vw;
  border-radius: 3.733vw; font-size: 3.2vw; color: #ffcf70;
  background: rgba(255,207,112,.12); border: 1px solid rgba(255,207,112,.35);
}
.video_box.q508-cover-rating-v2 .c_yy,
.video_box .q508-video-title {
  width: 100%; overflow: hidden; white-space: normal !important;
  color: #c7c7c7; font-size: 3.733vw; padding: 1.6vw 0 3.733vw; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.header_b {
  z-index: 100 !important;
}
.video_box .movie-list-item {
  position: relative;
  z-index: 0;
}
.video_box .movie-list-item .imb_box,
.video_box .movie-list-item .imb_box.q508-imb-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 2.667vw;
  transform: translateZ(0);
}
.video_box .movie-list-item .imb_box .q508-cover-rating,
.video_box .movie-list-item .imb_box > .q508-cover-rating {
  position: absolute !important;
  top: 1.067vw !important;
  right: 1.067vw !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  padding: 0.533vw 1.6vw; border-radius: 0.8vw;
  font-size: 3.2vw; font-weight: 700; color: #fff; line-height: 1.2;
  background: linear-gradient(135deg, #ff6b9d, #e84393);
  box-shadow: 0 0.267vw 0.8vw rgba(0,0,0,.35);
  pointer-events: none;
}
.q508-play-page .hotlist .q508-rec-cover .q508-rec-rating,
.q508-play-page .hotlist .q508-rec-cover .q508-cover-rating {
  position: absolute !important;
  top: 1.067vw !important;
  right: 1.067vw !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  display: inline-block !important;
  z-index: 3 !important;
  padding: 0.533vw 1.6vw !important;
  border-radius: 0.8vw !important;
  font-size: 3.2vw !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  background: linear-gradient(135deg, #ff6b9d, #e84393) !important;
  box-shadow: 0 0.267vw 0.8vw rgba(0,0,0,.35) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  align-items: initial !important;
  justify-content: initial !important;
  pointer-events: none;
}
.q508-play-page .hotlist .q508-rec-cover .q508-rec-badge {
  position: absolute !important;
  left: 1.6vw !important;
  bottom: 1.6vw !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 3.2vw) !important;
  display: inline-block !important;
  padding: 0.8vw 2.133vw !important;
  border-radius: 2.667vw !important;
  font-size: 2.933vw !important;
  color: #fff !important;
  background: rgba(0,0,0,.62) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  align-items: initial !important;
  justify-content: initial !important;
}
.q508-play-page .movie-body { margin-top: 2.667vw; }
.q508-play-page .movie-title span {
  font-size: 4vw; font-weight: 700; color: #efcba7;
  padding-left: 2.133vw; border-left: 0.8vw solid #aa2ddc;
}
.q508-play-page .hotlist {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 2.667vw 3.2vw;
  margin-top: 2.667vw; flex-wrap: initial !important; justify-content: initial !important;
}
.q508-play-page .hotlist > div {
  position: relative !important;
  width: 100% !important; margin: 0 0 2.667vw !important; border-radius: 2.667vw; overflow: hidden;
  background: #2a2628; cursor: pointer;
}
/* Override legacy scoped .hotlist div div { position:absolute } that hid recommendations */
.q508-play-page .hotlist > div > div {
  position: static !important;
  bottom: auto !important; left: auto !important;
  width: auto !important; height: auto !important;
  background: transparent !important;
  display: block !important;
  align-items: initial !important; justify-content: initial !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.q508-play-page .q508-rec-cover {
  position: relative !important; width: 100% !important;
  aspect-ratio: 16 / 10; min-height: 28vw; overflow: hidden;
  background: #1a1818;
}
.q508-play-page .q508-rec-cover img {
  width: 100% !important; height: 100% !important; object-fit: cover; display: block;
}
.q508-play-page .q508-rec-title {
  position: static !important; padding: 2.133vw 2.667vw 2.667vw; font-size: 3.467vw; line-height: 1.45;
  color: #f3c7a2 !important; min-height: 12vw; width: 100% !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-align: left !important; white-space: normal !important;
}
.q508-play-page .movie-content {
  flex: 1; overflow-y: auto; padding-bottom: 16vw;
}

/* q508-task-record-contrast */
.item_list .ressquareBox {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px !important;
  padding: 2px 10px !important;
  margin: 0 4px 4px 0 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #efd3b0, #d7a874) !important;
  color: #3b2412 !important;
  border: 1px solid rgba(90, 55, 25, 0.35) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}
.item_list .ressquareBox.q508-st-ok {
  background: linear-gradient(180deg, #5f8f62, #3f6d45) !important;
  color: #f4fff4 !important;
  border-color: rgba(40, 70, 45, 0.55) !important;
}
.item_list .ressquareBox.q508-st-fail {
  background: linear-gradient(180deg, #8a5a4a, #6b4035) !important;
  color: #ffe8dc !important;
  border-color: rgba(70, 40, 30, 0.55) !important;
}
.item_list .ressquareBox.q508-st-wait {
  background: linear-gradient(180deg, #8a7350, #6a5638) !important;
  color: #fff4d6 !important;
  border-color: rgba(60, 45, 25, 0.5) !important;
}
.item_list .period-number {
  color: #ffe7c8 !important;
}
.item_list .time span {
  color: #e2d0b4 !important;
}
.item_list .left > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px 0 !important;
}

/* q508-results-expect-contrast */
.q508-vote-results .item > .left,
.q508-vote-results.pop_wrapper .item > .left,
.q508-vote-results.wrapper .item > .left,
.wrapper.q508-vote-results .item > .left,
.pop_wrapper.q508-vote-results .item > .left,
.q508-vote-results .item > .left[data-v-1dd68214],
.q508-vote-results.pop_wrapper .item[data-v-1dd68214] > .left,
.wrapper .item > .left[data-v-1dd68214] {
  color: #ffe7c8 !important;
  -webkit-text-fill-color: #ffe7c8 !important;
  font-size: 3.6vw !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.75) !important;
  min-width: 28vw !important;
  width: auto !important;
  text-align: left !important;
}
.q508-vote-results-popup .q508-vote-results .item > .left {
  color: #ffe7c8 !important;
  -webkit-text-fill-color: #ffe7c8 !important;
}

/* q508-vote-game-ico-fix */
.q508-vote-game-ico {
  width: 12vw !important;
  height: 12vw !important;
  object-fit: cover !important;
  border-radius: 1.6vw !important;
  background: rgba(255, 255, 255, 0.04) !important;
  flex-shrink: 0 !important;
}

/* q508-hide-vip-banner */
.mine_page .c_vip,
.mine_page .c_vip[data-v-1e3edcf8],
div.c_vip,
.c_vip {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: none !important;
}

/* q508-last-result-bar */
.q508-vote-last-tag:empty { display: none !important; }


/* 我的页：积分/信誉/观影卷三列 */
.mine_page .c_card_b{display:flex;justify-content:space-around;align-items:center;}
.mine_page .c_card_b .hang_c{flex:1;text-align:center;}

/* q508 video category chips */
.video_box .nav_box_w[data-v-06a1711e],
.video_box .nav_box_w {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 2vw;
  padding: 2.4vw 3.2vw !important;
  align-items: center;
}
.video_box .nav_box_w[data-v-06a1711e]::-webkit-scrollbar,
.video_box .nav_box_w::-webkit-scrollbar { display: none; height: 0; }
.video_box .nav_box_w .n_item[data-v-06a1711e],
.video_box .nav_box_w .n_item {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 1.4vw 3.6vw !important;
  border-radius: 999px !important;
  font-size: 3.2vw !important;
  line-height: 1.3 !important;
  color: #e8d5b8 !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(230,185,138,0.28) !important;
}
.video_box .nav_box_w .n_item.active[data-v-06a1711e],
.video_box .nav_box_w .n_item.active {
  color: #623a13 !important;
  background: linear-gradient(90deg,#efcba7,#dcab76) !important;
  border-color: transparent !important;
  font-weight: 600;
}

/* q508 withdraw pwd popup */
.q508-pwd-popup.van-popup,
.van-popup.q508-pwd-popup {
  background: linear-gradient(160deg, #2a2624 0%, #1c1918 100%) !important;
  border: 1px solid rgba(230, 185, 138, 0.35) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
}
.q508-pwd-popup .van-popup__close-icon,
.q508-pwd-popup .van-icon-cross {
  color: #cbb79a !important;
}
.q508-pwd-pop-inner {
  padding: 6.4vw 5.333vw 5.333vw;
  box-sizing: border-box;
}
.q508-pwd-pop-title {
  text-align: center;
  color: #e6b98a !important;
  font-size: 4.533vw;
  margin-bottom: 4vw;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.q508-pwd-pop-tip {
  color: #cbb79a;
  font-size: 3.2vw;
  text-align: center;
  margin: -1.5vw 0 3.5vw;
  line-height: 1.4;
}
.q508-pwd-pop-field.van-field,
.q508-pwd-popup .van-field {
  background: #151312 !important;
  border: 1px solid #4a4038 !important;
  border-radius: 2.133vw !important;
  margin-bottom: 3.2vw !important;
  padding: 1.6vw 2.667vw !important;
  color: #f3e6d2 !important;
}
.q508-pwd-popup .van-field__control,
.q508-pwd-popup .van-field__control::placeholder {
  color: #f3e6d2 !important;
  -webkit-text-fill-color: #f3e6d2 !important;
}
.q508-pwd-popup .van-field__control::placeholder {
  color: #8a7a68 !important;
  -webkit-text-fill-color: #8a7a68 !important;
}
.q508-pwd-popup .van-cell::after {
  display: none !important;
}
.q508-pwd-pop-btn {
  background: linear-gradient(#fde3ca, #e7b486) !important;
  color: #68302c !important;
  font-size: 4.267vw !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-radius: 999px !important;
  padding: 2.933vw 0 !important;
  margin: 4.5vw 0 1vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  cursor: pointer;
}

/* hide choose-refresh fab */
.q508-choose-refresh{display:none!important;}


/* q508 tip records */
.q508-tip-page{padding:0 12px 20px}
.q508-tip-tabs{display:flex;gap:0;margin:8px 0 12px;border-bottom:1px solid rgba(212,175,55,.25)}
.q508-tip-tab{flex:1;text-align:center;padding:10px 0;color:rgba(255,255,255,.55);font-size:14px;position:relative}
.q508-tip-tab.on{color:#e8c56a;font-weight:600}
.q508-tip-tab.on:after{content:"";position:absolute;left:20%;right:20%;bottom:-1px;height:2px;background:linear-gradient(90deg,#c9a227,#e8c56a);border-radius:2px}
.q508-tip-card.item_list{background:rgba(40,36,40,.95)!important;border:1px solid rgba(212,175,55,.22)!important;border-radius:10px!important;padding:12px 14px!important;margin:0 0 10px!important}
.q508-tip-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.q508-tip-name{color:#e8c56a;font-size:15px;font-weight:600}
.q508-tip-money{color:#ff5a5a;font-size:18px;font-weight:700;min-width:48px;text-align:right}
.q508-tip-gifts{display:flex;flex-wrap:wrap;gap:8px;min-height:24px;margin-bottom:10px}
.q508-tip-gift{color:rgba(255,255,255,.85);font-size:14px}
.q508-tip-ft{display:flex;justify-content:space-between;align-items:center}
.q508-tip-time{color:rgba(255,255,255,.4);font-size:12px}
.q508-tip-st{font-size:13px;min-width:48px;text-align:right}
.q508-tip-st.wait{color:#e8c56a}
.q508-tip-st.ok{color:#07c160}
.q508-tip-st.fail{color:rgba(255,255,255,.55)}
.q508-tip-card .lottery_info,.q508-tip-card .recent,.q508-tip-card .topInfo,.q508-tip-card .time{display:none!important}

.q508-pwd-pop-field .van-field__control {
  text-align: center !important;
  letter-spacing: 4px !important;
  font-size: 18px !important;
  color: #f2e2c7 !important;
}
.q508-pwd-pop-field .van-field__control::placeholder {
  letter-spacing: 0 !important;
  font-size: 14px !important;
  text-align: center !important;
  color: rgba(203,183,154,.55) !important;
}

/* 顶栏 logo：扣图后按方形 contain，不再把整张海报压扁 */
.header_content .img {
  height: 9.6vw !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.6vw !important;
}
.header_content .img img {
  width: 9.6vw !important;
  height: 9.6vw !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border-radius: 1.2vw !important;
  flex-shrink: 0 !important;
}

/* 登录页 logo 过大修复 */
.logon_box {
  text-align: center !important;
  padding: 6vw 0 2vw !important;
}
.logon_box > img {
  width: 26vw !important;
  max-width: 96px !important;
  height: auto !important;
  max-height: 96px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 3vw !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.logon_box .cc {
  padding-top: 0 !important;
  margin-bottom: 2vw !important;
  font-size: 3.8vw !important;
  color: #f5e6c8 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.65) !important;
}
.logo-container {
  width: 28vw !important;
  max-width: 120px !important;
  margin: 3vw auto 2vw !important;
}
.logo-container .logo-wrapper {
  padding-bottom: 100% !important;
}
.logo-container .logo-wrapper .logo-img {
  object-fit: contain !important;
  background: transparent !important;
}
.login_logo,
.login_logo img,
#login-logo,
img.login-logo {
  max-height: 72px !important;
  height: auto !important;
  width: auto !important;
  max-width: 42vw !important;
  display: block !important;
  margin: 0 auto !important;
  background: transparent !important;
}
.header_content .img img {
  background: transparent !important;
}


