* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft Yahei", sans-serif;
}

/* 前台主题变量：默认靛蓝，.theme-red 为红色 */
:root {
  --fp-primary: #4f46e5;
  --fp-primary-hover: #4338ca;
  --fp-primary-light: #eef2ff;
  --fp-radius: 14px;
  --fp-radius-sm: 12px;
  --fp-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --fp-float: 0 10px 40px -8px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  --fp-glow: 0 0 20px -4px rgba(79, 70, 229, 0.45), 0 4px 14px rgba(0,0,0,0.1);
}
body.theme-red {
  --fp-primary: #dc2626;
  --fp-primary-hover: #b91c1c;
  --fp-primary-light: #fef2f2;
}
body.theme-gold {
  --fp-primary: #ef4444;
  --fp-primary-hover: #dc2626;
  --fp-primary-light: #450a0a;
}
body.theme-darkgray {
  --fp-primary: #6b7280;
  --fp-primary-hover: #4b5563;
  --fp-primary-light: #f3f4f6;
}

body {
  background-color: #f0f2f6;
  color: #1f2937;
  transition: background-color 0.3s, color 0.3s;
  padding-top: 60px;
}

body.dark {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 登录框 - iOS 风格：悬浮、立体 */
.login-box {
  max-width: 420px;
  margin: 100px auto;
  padding: 36px;
  background-color: white;
  border-radius: 20px;
  box-shadow: var(--fp-float, 0 10px 40px -8px rgba(0,0,0,0.12)), 0 0 0 1px rgba(0,0,0,0.04);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.login-box:hover {
  box-shadow: 0 14px 48px -10px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
}

.dark .login-box {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--fp-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group-remember .remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}
.form-group-remember .remember-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: middle;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--fp-radius-sm, 10px);
  font-size: 16px;
  background-color: white;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
body.theme-red .form-group input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
body.theme-gold .form-group input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
body.theme-darkgray .form-group input:focus {
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.dark .form-group input {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

/* 按钮 - iOS 风格：立体、荧光、悬浮 */
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.15) inset, 0 4px 14px rgba(79, 70, 229, 0.25), 0 2px 6px rgba(0,0,0,0.08);
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.btn:hover {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2) inset, 0 0 24px -4px rgba(79, 70, 229, 0.5), 0 6px 20px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}
body.theme-red .btn {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.15) inset, 0 4px 14px rgba(220, 38, 38, 0.25), 0 2px 6px rgba(0,0,0,0.08);
}
body.theme-red .btn:hover {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2) inset, 0 0 24px -4px rgba(220, 38, 38, 0.5), 0 6px 20px rgba(220, 38, 38, 0.35);
}
body.theme-gold .btn {
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}
body.theme-gold .btn:hover {
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
}
body.theme-darkgray .btn:hover {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.15) inset, 0 0 24px -4px rgba(107, 114, 128, 0.4), 0 6px 20px rgba(107, 114, 128, 0.3);
}
.btn:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-block {
  display: block;
  width: 100%;
}
.login-register-link {
  color: var(--fp-primary);
  text-decoration: none;
}
.login-register-link:hover {
  text-decoration: underline;
}

/* 公告文字 20% 透明（不透明度 80%） */
.web-notice-bar,
.web-notice-bar .web-notice-text {
  opacity: 0.8;
}
#game-page .game-notice,
#game-page .game-notice-text,
.game-notice-text {
  opacity: 0.8;
}

/* 顶部导航 - iOS 风格：毛玻璃、悬浮 */
.tab-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 999;
  transition: background-color 0.3s, border-color 0.3s;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.6) inset, 0 4px 16px rgba(0,0,0,0.06);
}

.dark .tab-nav {
  background-color: #2d2d2d;
  border-bottom-color: #444;
}

.tab-item {
  flex: 1;
  padding: 15px 0;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.dark .tab-item {
  color: #aaa;
}

.tab-item.active {
  color: var(--fp-primary);
  font-weight: bold;
  border-bottom: 3px solid var(--fp-primary);
}

.tab-content {
  padding-bottom: 20px; /* ?????????????? */
}

/* ??????? */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ???????? - ??????????? */
.real-time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.dark .real-time-header {
  border-bottom-color: #444;
}

/* ?????????????? */
.data-date {
  color: #28a745;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  font-size: 14px;
}

.dark .data-date {
  color: #36d399;
}

/* 与 date-btn 同尺寸 */
.refresh-btn {
  margin-left: 0;
  padding: 8px 14px;
  font-size: 14px;
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%);
}
.refresh-btn:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
body.theme-red .refresh-btn:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
body.theme-gold .refresh-btn:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
body.theme-darkgray .refresh-btn:hover {
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* ???????????? */
.stock-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stock-btn {
  padding: 20px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
}
.stock-btn:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.dark .stock-btn {
  background-color: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stock-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dark .stock-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ??????????Grid???? - ???????4???????????? */
.stock-title, .stock-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4???????????? */
  gap: 10px; /* ??????????? */
  align-items: flex-start; /* ??????????????????? */
  text-align: left;
}

.stock-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: bold;
}

.dark .stock-title {
  color: #aaa;
}

.stock-data {
  font-size: 16px;
  line-height: 1.6;
}

/* ???????????????????????????????? */
.stock-name-code {
  cursor: pointer; /* ??????? */
}

/* ??????????? */
.multi-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.small-text {
  font-size: 12px;
  color: #999;
  font-weight: normal; /* ????????? */
}

.dark .small-text {
  color: #777;
}

/* ???????????????? */
.text-red { 
  color: red !important; 
  font-weight: bold !important; 
}
/* ???????????????????????????? */
.text-blue { 
  color: inherit !important; /* ????????? */
  font-weight: normal !important;
}

.copy-tip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background-color: rgba(0,0,0,0.8);
  color: white;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}

/* ????????? - ??????? */
.calendar-container {
  margin: 20px 0;
  padding: 20px;
  background-color: white;
  border-radius: 18px;
  box-shadow: 0 10px 40px -8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  max-width: 100%;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.calendar-container:hover {
  box-shadow: 0 14px 48px -10px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}

.dark .calendar-container {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ????????? */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #666;
  text-align: center;
  width: 100%;
}

.dark .calendar-weekdays {
  color: #aaa;
}

/* ???????? */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
}

.calendar-day {
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  background-color: #f8f9fa;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dark .calendar-day {
  background-color: #333;
}

/* 历史查询：有数据日期随主题加深，与系统风格一致 */
.calendar-day.has-data {
  background-color: #eef2ff;
  color: #3730a3;
  font-weight: bold;
}
body.theme-red .calendar-day.has-data {
  background-color: #fef2f2;
  color: #991b1b;
}
body.theme-gold .calendar-day.has-data {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
  color: #ef4444;
}
body.theme-darkgray .calendar-day.has-data {
  background-color: #e5e7eb;
  color: #374151;
}

.dark .calendar-day.has-data {
  background-color: #312e81;
  color: #c7d2fe;
}
body.theme-red.dark .calendar-day.has-data {
  background-color: #7f1d1d;
  color: #fecaca;
}
body.theme-gold.dark .calendar-day.has-data {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
  color: #fecaca;
}
body.theme-darkgray.dark .calendar-day.has-data {
  background-color: #374151;
  color: #e5e7eb;
  border: 2px solid rgba(96, 165, 250, 0.5);
  box-shadow: inset 0 0 14px rgba(96, 165, 250, 0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.calendar-day.today {
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%);
  color: white;
  font-weight: bold;
}

.calendar-day:hover {
  background-color: #e9ecef;
}

.dark .calendar-day:hover {
  background-color: #444;
}

/* ???????????? */
/* 卡片 - iOS 风格：悬浮、立体 */
.user-info-container,
#pay-page .pay-card {
  background-color: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 40px -8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  margin: 20px 0;
  transition: box-shadow 0.25s, transform 0.2s;
}
#pay-page .pay-card { margin: 0; }
.user-info-container:hover,
#pay-page .pay-card:hover {
  box-shadow: 0 14px 48px -10px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}

.dark .user-info-container,
.dark #pay-page .pay-card {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.my-info-layout .my-info-title {
  margin-bottom: 16px;
  color: var(--fp-primary);
  font-size: 1.25rem;
}

.my-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.my-info-grid .info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 8px;
}

.my-info-grid .info-label {
  flex: 0 0 auto;
  min-width: 80px;
  font-size: 13px;
  color: #888;
}
/* 我的信息页：标题靠左、标题列加大、中间值列缩小 */
#my-info-page .my-info-grid .info-label {
  text-align: left;
  font-size: 15px;
}
#my-info-page .my-info-grid .info-value,
#my-info-page .info-agent-members-line {
  font-size: 12px;
}
#my-info-page .my-info-grid .ref-link-value {
  font-size: 11px;
}

/* 基本信息：第1列 70px，第2列 210px，列间距 3px。 */
#my-info-page .my-info-grid .mi-basic-row {
  display: grid !important;
  align-items: center;
  row-gap: 8px;
  column-gap: 3px !important;
  gap: 8px 3px !important;
  /* 覆盖 .info-item 的 space-between：两列时否则第2列会被甩到行尾 */
  justify-content: start;
  padding: 6px 0;
  box-sizing: border-box;
}
#my-info-page .my-info-grid .mi-basic-row.mi-basic-2col {
  grid-template-columns: 70px 210px;
}
#my-info-page .my-info-grid .mi-basic-row.mi-basic-3col {
  grid-template-columns: 70px 210px 72px;
  min-height: 44px;
  padding-right: 0 !important;
}
#my-info-page .my-info-grid .mi-basic-row .info-label {
  justify-self: start;
  max-width: 70px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
#my-info-page .my-info-grid .mi-basic-row > .info-value,
#my-info-page .my-info-grid .mi-basic-row > .info-agent-members-line {
  grid-column: 2;
  min-width: 0;
}
#my-info-page .my-info-grid .mi-basic-row.mi-basic-3col > .btn,
#my-info-page .my-info-grid .mi-basic-row.mi-basic-3col > .btn-inline {
  grid-column: 3;
  position: static !important;
  transform: none !important;
  justify-self: end;
  align-self: center;
  margin: 0 !important;
  width: 70px;
  min-width: 70px;
}
#my-info-page .my-info-grid .mi-basic-row.mi-basic-agent {
  align-items: start;
}
#my-info-page .my-info-grid .mi-basic-row.mi-basic-agent .info-label {
  align-self: start;
  padding-top: 2px;
}
#my-info-page .my-info-grid .mi-basic-row .ref-link-value {
  white-space: normal;
  word-break: break-all;
  line-height: 1.35;
}
#my-info-page .my-info-grid .mi-basic-agent .info-agent-members-line {
  width: auto;
  max-width: 100%;
  flex: none !important;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.65;
}
/* 一级/二级代理：内容过长时整段可多行折行（含成员列表与返利说明） */
#my-info-page .my-info-grid .mi-basic-agent .info-agent-rebate-suffix {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#my-info-page .my-info-grid .mi-basic-agent .info-agent-mid {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* 基本信息下所有文字不加粗 */
#my-info-page .my-info-layout .my-info-title,
#my-info-page .my-info-layout .my-info-section-title,
#my-info-page .my-info-grid .info-label,
#my-info-page .my-info-grid .info-value,
#my-info-page .my-info-signin-row #signin-daily-bonus-text {
  font-weight: normal;
}
.info-agent-members-line {
  text-align: left;
  line-height: 1.55;
  word-break: break-all;
}
.info-agent-mid {
  word-break: break-all;
}
/* 返利文案不换行拆开，避免被挤没 */
.info-agent-rebate-suffix {
  white-space: nowrap;
}
/* 我的信息页：本页所有按钮高度一致 */
#my-info-page .btn,
#my-info-page .my-info-theme-row .btn,
#my-info-page .my-info-actions .btn,
#my-info-page .my-info-grid .btn {
  min-height: 42px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  box-sizing: border-box;
}

.dark .my-info-grid .info-label {
  color: #999;
}

.my-info-grid .info-value {
  flex: 1 1 auto;
}

.info-item-block {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 8px;
}

.dark .info-item-block {
  border-top-color: #444;
}

.my-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.my-info-actions-spacer {
  flex: 1;
  min-width: 0;
}

.dark .my-info-actions {
  border-top-color: #444;
}

.my-info-theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  justify-content: flex-end;
}

.dark .my-info-theme-row {
  border-top-color: #444;
}

.my-info-theme-row .btn {
  padding: 10px 20px;
  font-size: inherit;
}

.my-info-grid .info-item-ref-link {
  gap: 4px;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  position: relative;
  padding-right: 80px;
  box-sizing: border-box;
}
.info-item-ref-link .info-value {
  min-width: 0;
}
.info-item-ref-link .ref-link-value {
  font-size: 12px;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: 1.35;
  flex: 1;
  margin-right: 8px;
}
/* 帐号续期行与推荐链接行同款排列：标签·值·按钮右对齐 */
.my-info-grid .info-item-inline-btn-row {
  position: relative;
  padding-right: 80px;
  box-sizing: border-box;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.my-info-grid .info-item-inline-btn-row .info-value {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}
.my-info-grid .info-item-inline-btn-row .btn-inline {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  min-width: 70px;
  flex: none;
  margin: 0;
}
/* 我的信息页：签到 / 获取 / 待领 按钮宽度与续期一致 */
#my-info-page .my-info-signin-row .btn,
#my-info-page .my-info-grid .info-item-inline .btn-inline,
#my-info-page #btn-claim-sub-reward {
  width: 70px;
  min-width: 70px;
  flex-shrink: 0;
}

/* 会员试玩/签到行：第二列「每帐号每日可领取…」 */
#my-info-page .my-info-signin-row .signin-desc-value {
  text-align: left;
  word-break: break-word;
  line-height: 1.45;
  min-width: 0;
}
#my-info-page .my-info-signin-row #signin-daily-bonus-text {
  margin: 0 2px;
}

.my-info-gift-row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px !important;
}
.my-info-gift-row .my-info-gift-icon {
  margin-right: 2px;
  flex-shrink: 0;
}
.my-info-gift-row .info-label,
.my-info-gift-row .info-value {
  margin-right: 2px;
  white-space: nowrap;
}
.my-info-gift-row #btn-claim-sub-reward {
  flex-shrink: 0;
  margin-left: 4px;
}
.my-info-gift-icon {
  font-size: 1.1em;
}
.btn-claim-pending {
  background: linear-gradient(180deg, #f5d042 0%, #d4a82b 100%) !important;
  color: #333 !important;
  border: 1px solid #c99a1f !important;
  padding: 10px 20px;
  font-size: inherit;
  font-weight: bold;
}
.btn-claim-pending:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe066 0%, #e6b82e 100%) !important;
}
#btn-claim-sub-reward:disabled {
  cursor: default;
}
#sub-reward-countdown {
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.info-item-inline {
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.info-item-inline .info-value {
  margin-right: 8px;
}

.btn-inline {
  padding: 4px 10px;
  font-size: 13px;
}

/* 网站说明：卡片风格（与下方基本信息卡片一致） */
.my-info-usage-top {
  margin-top: 0;
  margin-bottom: 16px;
  background-color: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 40px -8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s;
}
.my-info-usage-top:hover {
  box-shadow: 0 14px 48px -10px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}
.dark .my-info-usage-top {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.my-info-section-title {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--fp-primary);
}

.usage-text-inner {
  font-size: 13px;
  color: #555;
  white-space: pre-line;
  line-height: 1.4;
}

.dark .usage-text-inner {
  color: #aaa;
}

.my-info-section.recharge-section {
  margin: 16px 0;
}

.my-info-layout .my-info-title {
  margin-bottom: 10px;
}

.my-info-grid {
  gap: 6px 16px;
  margin-bottom: 10px;
}

.my-info-grid .info-item {
  padding: 4px 0;
}

.theme-toggle {
  background-color: #6c757d;
  margin-bottom: 20px;
  display: inline-block;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.dark .info-item {
  border-bottom-color: #333;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: #666;
}

.dark .info-label {
  color: #aaa;
}

.info-value {
  font-weight: bold;
}

.recharge-section {
  margin: 30px 0;
}

.recharge-section h3 {
  margin-bottom: 15px;
  color: var(--fp-primary);
}

.recharge-form {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dark .recharge-form {
  background-color: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ?????? */
.loading {
  text-align: center;
  padding: 50px;
  color: #666;
}

.dark .loading {
  color: #aaa;
}

.empty-page {
  text-align: center;
  padding: 100px 0;
  color: #999;
  font-size: 18px;
}

.dark .empty-page {
  color: #777;
}

.hidden {
  display: none;
}

.online-count {
  color: var(--fp-primary);
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

/* ?????????????? */
.risk-tip-bar {
  background-color: #dc3545;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ????????????????????????? */
body {
  padding-top: 46px !important;
}

/* ????????????? */
#login-page {
  padding-top: 60px;
}

/* ????????? */
.result-disclaimer {
  color: #6c757d;
  font-size: 12px;
  margin: 12px 0;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-left: 4px solid #ffc107;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.full-disclaimer {
  border-top: 1px solid #eee;
  padding: 20px;
  margin-top: 30px;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
  background-color: #f9fafb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}

.full-disclaimer strong {
  color: #dc3545;
  font-size: 14px;
}

.full-disclaimer-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* ?????????? */
.dark .risk-tip-bar {
  background-color: #c82333;
  color: #fff;
}

.dark .result-disclaimer {
  background-color: #2d2d2d;
  color: #aaa;
  border-left-color: #ffc107;
}

.dark .full-disclaimer {
  background-color: #2d2d2d;
  color: #aaa;
  border-top-color: #444;
}

/* ????????????????????????????? */
.stock-title span,
.stock-data span {
  white-space: nowrap; /* ??????? */
  overflow: hidden;
  text-overflow: ellipsis; /* ???????... */
}

.stock-btn {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
}

/* ?????????????? */
.date-btn {
  margin-left: 10px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%);
  color: white;
  border: none;
  border-radius: var(--fp-radius-sm, 10px);
}
.date-btn:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
body.theme-red .date-btn:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
body.theme-gold .date-btn:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
body.theme-darkgray .date-btn:hover {
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}
.date-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ????????? */
.stock-search-container {
  margin: 20px 0;
}
.stock-code-input {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-size: 16px; /* ???????????????????????????? */
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  resize: none; /* ??????????????????????????? */
  box-sizing: border-box;
  background-color: #ffffff; /* ????????????? */
  color: #333333; /* ????????????? */
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; /* ??????? */
}
/* ??????????????? - ??????? */
.dark .stock-code-input {
  background-color: #2d2d2d !important; /* ????????????? */
  color: #f0f0f0 !important; /* ????????????? */
  border-color: #444444 !important; /* ???????????? */
}
.search-btn {
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-hover) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--fp-radius-sm, 10px);
  cursor: pointer;
  margin-right: 10px;
}
.search-btn:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
body.theme-red .search-btn:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
body.theme-gold .search-btn:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
body.theme-darkgray .search-btn:hover {
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.stock-result-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.stock-result-item {
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dark .stock-result-item {
  background-color: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.stock-result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dark .stock-result-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ??????????????????? - ?????????????4?????? */
.stock-result-title, .stock-result-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}
.stock-result-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: bold;
}
.dark .stock-result-title {
  color: #aaa;
}
.stock-result-data {
  font-size: 16px;
  line-height: 1.6;
}

.red-text {
  color: #dc3545;
}
.green-text {
  color: #28a745;
}
.empty-result {
  color: #6c757d;
  padding: 20px;
  text-align: center;
}

/* ========== 暗黑风格 theme-dark：浅灰银按钮 + 灰色卡片 + 加深灰黑背景，边缘毛玻璃加粗，选中紫光 ========== */
body.theme-dark {
  --fp-primary: #a78bfa;
  --fp-primary-hover: #8b5cf6;
  --fp-primary-light: #1e1b4b;
  background-color: #0a0a0f;
  color: #e5e7eb;
}
/* 卡片/顶栏：灰色 + 毛玻璃边缘加粗 */
body.theme-dark .login-box,
body.theme-dark .tab-nav {
  background: rgba(55, 65, 81, 0.75);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 0 rgba(255,255,255,0.06);
}
body.theme-dark .tab-item {
  color: #9ca3af;
}
body.theme-dark .tab-item.active {
  color: #e5e7eb;
  border-bottom: 3px solid #d1d5db;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.4);
}
body.theme-dark .form-group input,
body.theme-dark .form-group textarea {
  background-color: #374151;
  border: 2px solid rgba(255,255,255,0.1);
  color: #f3f4f6;
}
body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.35), 0 0 20px rgba(167, 139, 250, 0.25);
}
body.theme-dark .form-group label {
  color: #d1d5db;
}
/* 所有按钮：浅灰银色 */
body.theme-dark .btn {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: #111827 !important;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.25) inset, 0 4px 14px rgba(0,0,0,0.2);
}
body.theme-dark .btn:hover,
body.theme-dark .btn:focus {
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.5), 0 0 40px rgba(167, 139, 250, 0.2), 0 1px 0 0 rgba(255,255,255,0.3) inset;
  border-color: rgba(167, 139, 250, 0.6) !important;
}
body.theme-dark .btn:active {
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.4);
}
body.theme-dark .date-btn,
body.theme-dark .search-btn,
body.theme-dark .refresh-btn {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: #111827 !important;
}
body.theme-dark .date-btn:hover,
body.theme-dark .search-btn:hover,
body.theme-dark .refresh-btn:hover {
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.45);
  border-color: rgba(167, 139, 250, 0.5) !important;
}
/* 卡片模块：灰色 + 毛玻璃边缘加粗，选中/聚焦紫光 */
body.theme-dark .my-info-usage-top,
body.theme-dark .user-info-container,
body.theme-dark #pay-page .pay-card,
body.theme-dark .stock-btn,
body.theme-dark .calendar-container,
body.theme-dark .recharge-form,
body.theme-dark .stock-container .stock-btn {
  background: rgba(55, 65, 81, 0.8) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 0 rgba(255,255,255,0.05);
}
body.theme-dark .user-info-container:focus-within,
body.theme-dark #pay-page .pay-card:focus-within,
body.theme-dark .stock-btn:hover,
body.theme-dark .calendar-container:focus-within {
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.3), 0 4px 24px rgba(0,0,0,0.3);
  border-color: rgba(167, 139, 250, 0.4);
}
body.theme-dark .stock-title,
body.theme-dark .stock-result-title {
  color: #9ca3af;
}
body.theme-dark .calendar-day {
  background-color: #374151;
  color: #f3f4f6;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-dark .calendar-day:hover {
  background-color: #4b5563;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}
body.theme-dark .calendar-day.has-data {
  background-color: #4b5563;
  color: #e5e7eb;
}
body.theme-dark .calendar-day.today {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #111827;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}
body.theme-dark .calendar-weekdays {
  color: #9ca3af;
}
body.theme-dark .real-time-header {
  border-bottom-color: rgba(255,255,255,0.1);
}
body.theme-dark .data-date {
  color: #a78bfa;
}
body.theme-dark .online-count {
  color: #d1d5db;
}
body.theme-dark .result-disclaimer {
  background: rgba(55, 65, 81, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #9ca3af;
  border-left: 4px solid #a78bfa;
  border: 2px solid rgba(255,255,255,0.1);
  border-left-width: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
}
body.theme-dark .full-disclaimer {
  background: rgba(55, 65, 81, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #9ca3af;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
}
body.theme-dark .stock-search-container {
  background: rgba(55, 65, 81, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 0 rgba(255,255,255,0.05);
  color: #f3f4f6;
}
body.theme-dark .info-item,
body.theme-dark .my-info-grid .info-label {
  border-color: rgba(255,255,255,0.08);
  color: #d1d5db;
}
body.theme-dark .info-value,
body.theme-dark .my-info-section-title,
body.theme-dark .my-info-layout .my-info-title {
  color: #f3f4f6;
}
body.theme-dark .my-info-section-title {
  color: #a78bfa;
}
body.theme-dark .usage-text-inner {
  color: #d1d5db;
}
body.theme-dark .loading,
body.theme-dark .small-text {
  color: #9ca3af;
}
body.theme-dark .recharge-section h3 {
  color: #a78bfa;
}
body.theme-dark .stock-code-input {
  background-color: #374151 !important;
  border: 2px solid rgba(255,255,255,0.1) !important;
  color: #f3f4f6 !important;
}
body.theme-dark .stock-code-input:focus {
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.35), 0 0 20px rgba(167, 139, 250, 0.2);
  border-color: #a78bfa !important;
}
body.theme-dark .info-item-block {
  border-top: 2px solid rgba(255,255,255,0.08);
}
body.theme-dark .my-info-actions,
body.theme-dark .my-info-theme-row {
  border-top: 2px solid rgba(255,255,255,0.08);
}
/* 暗黑风格 - 积分游戏页：灰色卡片 + 毛玻璃边缘 + 紫光选中 */
body.theme-dark #game-page .game-card {
  background: rgba(55, 65, 81, 0.85) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 0 rgba(255,255,255,0.06);
  color: #f3f4f6;
}
body.theme-dark #game-page .game-card:focus-within {
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.35), 0 4px 24px rgba(0,0,0,0.35);
  border-color: rgba(167, 139, 250, 0.45) !important;
}
body.theme-dark #game-page .game-title,
body.theme-dark #game-page .stat-label {
  color: #a78bfa;
}
body.theme-dark #game-page .stat-value {
  color: #f3f4f6;
}
body.theme-dark #game-page #trend-canvas {
  background: #0a0a0f !important;
}
body.theme-dark #game-page .trend-chart-right,
body.theme-dark #game-page .trend-indicators-row {
  background: #0a0a0f !important;
}
body.theme-dark #game-page .trend-y-scale,
body.theme-dark #game-page .trend-time-hint {
  color: #9ca3af;
}
body.theme-dark #game-page .game-stake-row input {
  background: #374151 !important;
  border: 2px solid rgba(255,255,255,0.1) !important;
  color: #f3f4f6;
}
body.theme-dark #game-page .game-stake-row input:focus {
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.4);
  border-color: #a78bfa !important;
}
body.theme-dark #game-page .record-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.theme-dark #game-page .game-modal-content {
  background: rgba(55, 65, 81, 0.95) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.25), 0 8px 32px rgba(0,0,0,0.4);
  color: #f3f4f6;
}
body.theme-dark #game-page .btn,
body.theme-dark #game-page .btn-buy,
body.theme-dark #game-page .btn-sell {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: #111827 !important;
}
body.theme-dark #game-page .btn:hover,
body.theme-dark #game-page .btn:focus,
body.theme-dark #game-page .btn-buy:hover,
body.theme-dark #game-page .btn-sell:hover {
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.5), 0 0 40px rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.6) !important;
}

/* ========== 暗灰色风格 theme-darkgray：整站深灰 + 灰蓝强调 ========== */
body.theme-darkgray {
  background-color: #1f2937;
  color: #e5e7eb;
}
body.theme-darkgray .login-box,
body.theme-darkgray .tab-nav {
  background-color: #374151;
  border-color: #4b5563;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.theme-darkgray .tab-item {
  color: #9ca3af;
}
body.theme-darkgray .tab-item.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}
body.theme-darkgray .form-group input,
body.theme-darkgray .form-group textarea {
  background-color: #4b5563;
  border-color: #6b7280;
  color: #f3f4f6;
}
body.theme-darkgray .form-group input:focus,
body.theme-darkgray .form-group textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
body.theme-darkgray .form-group label {
  color: #d1d5db;
}
body.theme-darkgray .my-info-usage-top,
body.theme-darkgray .user-info-container,
body.theme-darkgray #pay-page .pay-card,
body.theme-darkgray .stock-btn,
body.theme-darkgray .calendar-container,
body.theme-darkgray .recharge-form {
  background-color: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.theme-darkgray .stock-title,
body.theme-darkgray .stock-result-title {
  color: #9ca3af;
}
body.theme-darkgray .calendar-day {
  background-color: #4b5563;
  color: #f3f4f6;
}
body.theme-darkgray .calendar-day:hover {
  background-color: #6b7280;
}
body.theme-darkgray .calendar-day.today {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}
body.theme-darkgray .calendar-weekdays {
  color: #9ca3af;
}
body.theme-darkgray .real-time-header {
  border-bottom-color: #4b5563;
}
body.theme-darkgray .data-date {
  color: #93c5fd;
}
body.theme-darkgray .online-count {
  color: #60a5fa;
}
body.theme-darkgray .result-disclaimer {
  background-color: #374151;
  color: #9ca3af;
  border-left-color: #60a5fa;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
}
body.theme-darkgray .full-disclaimer {
  background-color: #374151;
  color: #9ca3af;
  border-top-color: #4b5563;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
}
body.theme-darkgray .stock-search-container {
  background-color: #374151;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #f3f4f6;
}
body.theme-darkgray .info-item,
body.theme-darkgray .my-info-grid .info-label {
  border-color: #4b5563;
  color: #d1d5db;
}
body.theme-darkgray .info-value,
body.theme-darkgray .my-info-layout .my-info-title {
  color: #f3f4f6;
}
body.theme-darkgray .my-info-section-title {
  color: #60a5fa;
}
body.theme-darkgray .usage-text-inner {
  color: #d1d5db;
}
body.theme-darkgray .btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  opacity: 0.9;
}
body.theme-darkgray .btn:hover {
  box-shadow: 0 6px 16px rgba(96, 165, 250, 0.25);
}
body.theme-darkgray .login-register-link {
  color: #93c5fd;
}
body.theme-darkgray .loading,
body.theme-darkgray .small-text {
  color: #9ca3af;
}
body.theme-darkgray .recharge-section h3 {
  color: #60a5fa;
}
body.theme-darkgray .stock-code-input {
  background-color: #4b5563 !important;
  border-color: #6b7280 !important;
  color: #f3f4f6 !important;
}
body.theme-darkgray .info-item-block,
body.theme-darkgray .my-info-actions,
body.theme-darkgray .my-info-theme-row {
  border-top-color: #4b5563;
}
body.theme-darkgray #game-page .game-card {
  background: #374151 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #f3f4f6;
}
body.theme-darkgray #game-page .game-title,
body.theme-darkgray #game-page .stat-label {
  color: #60a5fa;
}
body.theme-darkgray #game-page .stat-value {
  color: #f3f4f6;
}
body.theme-darkgray #game-page #trend-canvas {
  background: #1f2937 !important;
}
body.theme-darkgray #game-page .trend-chart-right,
body.theme-darkgray #game-page .trend-indicators-row {
  background: #1f2937 !important;
}
body.theme-darkgray #game-page .trend-y-scale,
body.theme-darkgray #game-page .trend-time-hint {
  color: #9ca3af;
}
body.theme-darkgray #game-page .game-stake-row input {
  background: #4b5563 !important;
  border-color: #6b7280;
  color: #f3f4f6;
}
body.theme-darkgray #game-page .record-item {
  border-bottom-color: #4b5563;
}
body.theme-darkgray #game-page .game-modal-content {
  background: #374151 !important;
  color: #f3f4f6;
}
/* 暗灰色：有数据日期描边 + 内发光 */
body.theme-darkgray .calendar-day.has-data {
  background-color: #374151;
  color: #93c5fd;
  border: 2px solid rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 0 14px rgba(96, 165, 250, 0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ========== 靛蓝主题：全站靛蓝色系，页面加暗靛蓝，卡片加深靛蓝（含积分游戏页） ========== */
body.theme-indigo {
  background-color: #312e81;
  color: #e0e7ff;
}
body.theme-indigo .login-box,
body.theme-indigo .tab-nav {
  background-color: #4338ca;
  border-color: #4f46e5;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
body.theme-indigo .tab-item { color: #a5b4fc; }
body.theme-indigo .tab-item.active { color: #c7d2fe; border-bottom-color: #c7d2fe; }
body.theme-indigo .result-disclaimer,
body.theme-indigo .full-disclaimer {
  background-color: #4338ca;
  color: #c7d2fe;
  border-left-color: #818cf8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.theme-indigo .my-info-usage-top,
body.theme-indigo .user-info-container,
body.theme-indigo #pay-page .pay-card,
body.theme-indigo .stock-btn,
body.theme-indigo .calendar-container,
body.theme-indigo .recharge-form,
body.theme-indigo .stock-container .stock-btn,
body.theme-indigo .stock-search-container {
  background-color: #4338ca !important;
  border-color: #4f46e5;
  color: #e0e7ff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.theme-indigo .calendar-day { background-color: #4f46e5; color: #e0e7ff; }
body.theme-indigo .calendar-day:hover { background-color: #6366f1; }
body.theme-indigo #game-page .game-card {
  background: #4338ca !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #e0e7ff;
}
body.theme-indigo #game-page #trend-canvas { background: #312e81 !important; }
body.theme-indigo #game-page .trend-chart-right,
body.theme-indigo #game-page .trend-indicators-row { background: #312e81 !important; }
body.theme-indigo #game-page .game-title,
body.theme-indigo #game-page .stat-label { color: #c7d2fe; }
body.theme-indigo #game-page .stat-value { color: #e0e7ff; }
body.theme-indigo #game-page .trend-y-scale,
body.theme-indigo #game-page .trend-time-hint { color: #a5b4fc; }
body.theme-indigo #game-page .game-stake-row input {
  background: #4f46e5 !important;
  border-color: #6366f1;
  color: #e0e7ff;
}
body.theme-indigo #game-page .record-item { border-bottom-color: #4f46e5; }
body.theme-indigo #game-page .game-modal-content {
  background: #4338ca !important;
  color: #e0e7ff;
}
body.theme-indigo .info-item,
body.theme-indigo .my-info-grid .info-label { border-color: #4f46e5; color: #c7d2fe; }
body.theme-indigo .info-value,
body.theme-indigo .my-info-layout .my-info-title { color: #e0e7ff; }
body.theme-indigo .my-info-section-title { color: #c7d2fe; }
body.theme-indigo .info-item-block,
body.theme-indigo .my-info-actions,
body.theme-indigo .my-info-theme-row { border-top-color: #4f46e5; }
body.theme-indigo .form-group input,
body.theme-indigo .form-group textarea {
  background-color: #4f46e5;
  border-color: #6366f1;
  color: #e0e7ff;
}
body.theme-indigo .form-group label { color: #c7d2fe; }
body.theme-indigo .real-time-header { border-bottom-color: #4f46e5; }
body.theme-indigo .data-date,
body.theme-indigo .online-count,
body.theme-indigo .loading,
body.theme-indigo .small-text,
body.theme-indigo .stock-title,
body.theme-indigo .stock-result-title { color: #a5b4fc; }
body.theme-indigo .usage-text-inner { color: #c7d2fe; }
body.theme-indigo .recharge-section h3 { color: #c7d2fe; }
body.theme-indigo .calendar-weekdays { color: #a5b4fc; }
body.theme-indigo .stock-search-container { padding: 20px; border-radius: 18px; }
body.theme-indigo .stock-code-input {
  background-color: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #e0e7ff !important;
}
body.theme-indigo .login-register-link { color: #c7d2fe; }

/* ========== 红色主题：全站红色系，页面加暗红，卡片加深红（含积分游戏页） ========== */
body.theme-red {
  background-color: #450a0a;
  color: #fecaca;
}
body.theme-red .login-box,
body.theme-red .tab-nav {
  background-color: #991b1b;
  border-color: #b91c1c;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.theme-red .tab-item { color: #fca5a5; }
body.theme-red .tab-item.active { color: #fecaca; border-bottom-color: #fecaca; }
body.theme-red .result-disclaimer,
body.theme-red .full-disclaimer {
  background-color: #991b1b;
  color: #fecaca;
  border-left-color: #f87171;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
body.theme-red .my-info-usage-top,
body.theme-red .user-info-container,
body.theme-red #pay-page .pay-card,
body.theme-red .stock-btn,
body.theme-red .calendar-container,
body.theme-red .recharge-form,
body.theme-red .stock-container .stock-btn,
body.theme-red .stock-search-container {
  background-color: #991b1b !important;
  border-color: #b91c1c;
  color: #fecaca;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.theme-red .calendar-day { background-color: #b91c1c; color: #fecaca; }
body.theme-red .calendar-day:hover { background-color: #dc2626; }
body.theme-red #game-page .game-card {
  background: #991b1b !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #fecaca;
}
body.theme-red #game-page #trend-canvas { background: #450a0a !important; }
body.theme-red #game-page .trend-chart-right,
body.theme-red #game-page .trend-indicators-row { background: #450a0a !important; }
body.theme-red #game-page .game-title,
body.theme-red #game-page .stat-label { color: #fecaca; }
body.theme-red #game-page .stat-value { color: #fef2f2; }
body.theme-red #game-page .trend-y-scale,
body.theme-red #game-page .trend-time-hint { color: #fca5a5; }
body.theme-red #game-page .game-stake-row input {
  background: #b91c1c !important;
  border-color: #dc2626;
  color: #fef2f2;
}
body.theme-red #game-page .record-item { border-bottom-color: #b91c1c; }
body.theme-red #game-page .game-modal-content {
  background: #991b1b !important;
  color: #fecaca;
}
body.theme-red .form-group input,
body.theme-red .form-group textarea {
  background-color: #7f1d1d;
  border-color: #991b1b;
  color: #fef2f2;
}
body.theme-red .form-group label { color: #fecaca; }
body.theme-red .info-item,
body.theme-red .my-info-grid .info-label { border-color: #b91c1c; color: #fecaca; }
body.theme-red .info-value,
body.theme-red .my-info-layout .my-info-title { color: #fef2f2; }
body.theme-red .my-info-section-title { color: #fecaca; }
body.theme-red .usage-text-inner { color: #fecaca; }
body.theme-red .info-item-block,
body.theme-red .my-info-actions,
body.theme-red .my-info-theme-row { border-top-color: #b91c1c; }
body.theme-red .stock-code-input {
  background-color: #7f1d1d !important;
  border-color: #991b1b !important;
  color: #fef2f2 !important;
}
body.theme-red .real-time-header { border-bottom-color: #991b1b; }
body.theme-red .data-date,
body.theme-red .online-count,
body.theme-red .loading,
body.theme-red .small-text { color: #fca5a5; }
body.theme-red .login-register-link { color: #fecaca; }

/* ========== 纯红色(红客)风格 theme-gold：与纯黑黑客一致，绿色改为红色 ========== */
body.theme-gold {
  --fp-primary: #ef4444;
  --fp-primary-hover: #dc2626;
  --fp-primary-light: #450a0a;
  background-color: #000000;
  color: #ef4444;
}
body.theme-gold .login-box,
body.theme-gold .tab-nav {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border: 2px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}
body.theme-gold .tab-item { color: rgba(239, 68, 68, 0.7); }
body.theme-gold .tab-item.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
body.theme-gold .form-group input,
body.theme-gold .form-group textarea {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}
body.theme-gold .form-group input:focus,
body.theme-gold .form-group textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 0 16px rgba(239, 68, 68, 0.25);
}
body.theme-gold .form-group label { color: #ef4444; }
body.theme-gold .btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
  color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}
body.theme-gold .btn:hover {
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.7) !important;
}
body.theme-gold .my-info-usage-top,
body.theme-gold .user-info-container,
body.theme-gold #pay-page .pay-card,
body.theme-gold .stock-btn,
body.theme-gold .calendar-container,
body.theme-gold .recharge-form,
body.theme-gold .stock-container .stock-btn,
body.theme-gold .stock-search-container {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border: 2px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.12), inset 0 0 0 1px rgba(239, 68, 68, 0.06);
}
body.theme-gold .stock-title,
body.theme-gold .stock-result-title { color: rgba(239, 68, 68, 0.85); }
body.theme-gold .calendar-day {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
}
body.theme-gold .calendar-day:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
body.theme-gold .calendar-day.has-data {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
  color: #ef4444;
}
body.theme-gold .calendar-day.today {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
body.theme-gold .calendar-weekdays { color: rgba(239, 68, 68, 0.7); }
body.theme-gold .real-time-header { border-bottom-color: rgba(239, 68, 68, 0.3); }
body.theme-gold .data-date,
body.theme-gold .online-count { color: #ef4444; }
body.theme-gold .result-disclaimer,
body.theme-gold .full-disclaimer {
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-left-color: #ef4444;
  color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.1);
}
body.theme-gold .info-item,
body.theme-gold .my-info-grid .info-label { border-color: rgba(239, 68, 68, 0.25); color: #fecaca; }
body.theme-gold .info-value,
body.theme-gold .my-info-section-title,
body.theme-gold .my-info-layout .my-info-title { color: #ef4444; }
body.theme-gold .usage-text-inner,
body.theme-gold .loading,
body.theme-gold .small-text { color: rgba(239, 68, 68, 0.8); }
body.theme-gold .recharge-section h3 { color: #ef4444; }
body.theme-gold .stock-code-input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(239, 68, 68, 0.35) !important;
  color: #fecaca !important;
}
body.theme-gold .stock-code-input:focus {
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
  border-color: #ef4444 !important;
}
body.theme-gold .info-item-block,
body.theme-gold .my-info-actions,
body.theme-gold .my-info-theme-row { border-top-color: rgba(239, 68, 68, 0.3); }
body.theme-gold .login-register-link { color: #ef4444; }
body.theme-gold .date-btn,
body.theme-gold .search-btn,
body.theme-gold .refresh-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
  color: #ef4444 !important;
}
body.theme-gold .date-btn:hover,
body.theme-gold .search-btn:hover,
body.theme-gold .refresh-btn:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.6) !important;
}
body.theme-gold #game-page .game-card {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.2), inset 0 0 0 1px rgba(239, 68, 68, 0.08);
  color: #fecaca;
}
body.theme-gold #game-page .game-card:focus-within {
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.55) !important;
}
body.theme-gold #game-page .game-title,
body.theme-gold #game-page .stat-label { color: #ef4444; }
body.theme-gold #game-page .stat-value { color: #fecaca; }
body.theme-gold #game-page #trend-canvas { background: #000000 !important; }
body.theme-gold #game-page .trend-chart-right,
body.theme-gold #game-page .trend-indicators-row { background: #000000 !important; }
body.theme-gold #game-page .trend-y-scale,
body.theme-gold #game-page .trend-time-hint { color: rgba(239, 68, 68, 0.7); }
body.theme-gold #game-page .game-stake-row input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(239, 68, 68, 0.35) !important;
  color: #fecaca;
}
body.theme-gold #game-page .game-stake-row input:focus {
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  border-color: #ef4444 !important;
}
body.theme-gold #game-page .record-item { border-bottom-color: rgba(239, 68, 68, 0.2); }
body.theme-gold #game-page .game-modal-content {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.25);
  color: #fecaca;
}
body.theme-gold #game-page .btn,
body.theme-gold #game-page .btn-buy,
body.theme-gold #game-page .btn-sell {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  color: #ef4444 !important;
}
body.theme-gold #game-page .btn:hover,
body.theme-gold #game-page .btn:focus,
body.theme-gold #game-page .btn-buy:hover,
body.theme-gold #game-page .btn-sell:hover {
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.45);
  border-color: rgba(239, 68, 68, 0.7) !important;
}

body.theme-red .stock-title,
body.theme-red .stock-result-title { color: #fca5a5; }
body.theme-red .recharge-section h3 { color: #fecaca; }

/* ========== 纯白色风格 theme-white：白底 + 浅灰卡片与按钮 ========== */
body.theme-white {
  --fp-primary: #475569;
  --fp-primary-hover: #334155;
  --fp-primary-light: #f8fafc;
  background-color: #ffffff;
  color: #0f172a;
}
body.theme-white .login-box,
body.theme-white .tab-nav {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
body.theme-white .tab-item { color: #0f172a; }
body.theme-white .tab-item.active { color: #0f172a; border-bottom-color: #475569; }
body.theme-white .form-group input,
body.theme-white .form-group textarea {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
body.theme-white .form-group input:focus,
body.theme-white .form-group textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.12);
}
body.theme-white .form-group label { color: #0f172a; }
body.theme-white .btn {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
body.theme-white .btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #94a3b8 !important;
}
body.theme-white .my-info-usage-top,
body.theme-white .user-info-container,
body.theme-white #pay-page .pay-card,
body.theme-white .stock-btn,
body.theme-white .calendar-container,
body.theme-white .recharge-form,
body.theme-white .stock-container .stock-btn,
body.theme-white .stock-search-container {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
body.theme-white .stock-title,
body.theme-white .stock-result-title { color: #0f172a; }
body.theme-white .calendar-day {
  background-color: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
body.theme-white .calendar-day:hover { background-color: #e2e8f0; }
body.theme-white .calendar-day.has-data {
  background-color: #e2e8f0;
  color: #334155;
}
body.theme-white .calendar-day.today {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #fff;
}
body.theme-white .calendar-weekdays { color: #0f172a; }
body.theme-white .real-time-header { border-bottom-color: #e2e8f0; }
body.theme-white .data-date,
body.theme-white .online-count { color: #0f172a; }
body.theme-white .result-disclaimer,
body.theme-white .full-disclaimer {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-left-color: #94a3b8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
body.theme-white .info-item,
body.theme-white .my-info-grid .info-label { border-color: #e2e8f0; color: #0f172a; }
body.theme-white .info-value,
body.theme-white .my-info-section-title,
body.theme-white .my-info-layout .my-info-title { color: #0f172a; }
body.theme-white .usage-text-inner,
body.theme-white .loading,
body.theme-white .small-text { color: #0f172a; }
body.theme-white .recharge-section h3 { color: #0f172a; }
body.theme-white .stock-code-input {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
body.theme-white .info-item-block,
body.theme-white .my-info-actions,
body.theme-white .my-info-theme-row { border-top-color: #e2e8f0; }
body.theme-white .login-register-link { color: #0f172a; }
body.theme-white .date-btn,
body.theme-white .search-btn,
body.theme-white .refresh-btn {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
body.theme-white .date-btn:hover,
body.theme-white .search-btn:hover,
body.theme-white .refresh-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
body.theme-white #game-page .game-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  color: #0f172a;
}
body.theme-white #game-page .game-title,
body.theme-white #game-page .stat-label,
body.theme-white #game-page .trend-y-scale,
body.theme-white #game-page .trend-time-hint,
body.theme-white #game-page .game-notice-text,
body.theme-white #game-page .record-item { color: #0f172a; }
body.theme-white #game-page .record-item { border-bottom-color: #e2e8f0; }
body.theme-white #game-page .stat-value { color: #0f172a; }
body.theme-white #game-page #trend-canvas { background: #f8fafc !important; }
body.theme-white #game-page .trend-chart-right,
body.theme-white #game-page .trend-indicators-row { background: #f8fafc !important; }
body.theme-white #game-page .game-stake-row input {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a;
}
body.theme-white #game-page .game-modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a;
}
body.theme-white #game-page .game-modal-content * { color: #0f172a; }
body.theme-white #game-page .btn,
body.theme-white #game-page .btn-buy,
body.theme-white #game-page .btn-sell {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* 白色主题下，游戏页除红/绿数值外的文字统一偏黑色 */
body.theme-white #game-page .stat-label,
body.theme-white #game-page .stat-hint,
body.theme-white #game-page .trend-chart-right .game-order-tabs .tab,
body.theme-white #game-page .trend-chart-right .game-five-tiers .tier-row,
body.theme-white #game-page .trend-chart-right .game-five-tiers .tier-ohl {
  color: #0f172a;
}

/* ========== 纯黑色黑客风格 theme-black：黑底 + 绿色毛玻璃边框 + 绿光荧光 ========== */
body.theme-black {
  --fp-primary: #22c55e;
  --fp-primary-hover: #16a34a;
  --fp-primary-light: #052e16;
  background-color: #000000;
  color: #22c55e;
}
body.theme-black .login-box,
body.theme-black .tab-nav {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border: 2px solid rgba(0, 255, 100, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.15), inset 0 0 0 1px rgba(0, 255, 100, 0.08);
}
body.theme-black .tab-item { color: rgba(0, 255, 100, 0.7); }
body.theme-black .tab-item.active {
  color: #22c55e;
  border-bottom-color: #22c55e;
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.4);
}
body.theme-black .form-group input,
body.theme-black .form-group textarea {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 255, 100, 0.3);
  color: #a0ffa0;
}
body.theme-black .form-group input:focus,
body.theme-black .form-group textarea:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.2), 0 0 16px rgba(0, 255, 100, 0.25);
}
body.theme-black .form-group label { color: #22c55e; }
body.theme-black .btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(0, 255, 100, 0.45) !important;
  color: #22c55e !important;
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.15);
}
body.theme-black .btn:hover {
  box-shadow: 0 0 24px rgba(0, 255, 100, 0.4), 0 0 40px rgba(0, 255, 100, 0.15);
  border-color: rgba(0, 255, 100, 0.7) !important;
}
body.theme-black .my-info-usage-top,
body.theme-black .user-info-container,
body.theme-black #pay-page .pay-card,
body.theme-black .stock-btn,
body.theme-black .calendar-container,
body.theme-black .recharge-form,
body.theme-black .stock-container .stock-btn,
body.theme-black .stock-search-container {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border: 2px solid rgba(0, 255, 100, 0.35);
  color: #a0ffa0;
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.12), inset 0 0 0 1px rgba(0, 255, 100, 0.06);
}
body.theme-black .stock-title,
body.theme-black .stock-result-title { color: rgba(0, 255, 100, 0.85); }
body.theme-black .calendar-day {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 255, 100, 0.25);
  color: #a0ffa0;
}
body.theme-black .calendar-day:hover {
  border-color: rgba(0, 255, 100, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.2);
}
body.theme-black .calendar-day.has-data {
  border-color: rgba(0, 255, 100, 0.5);
  box-shadow: 0 0 14px rgba(0, 255, 100, 0.25);
  color: #22c55e;
}
body.theme-black .calendar-day.today {
  background: rgba(0, 255, 100, 0.2);
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(0, 255, 100, 0.35);
  color: #22c55e;
}
body.theme-black .calendar-weekdays { color: rgba(0, 255, 100, 0.7); }
body.theme-black .real-time-header { border-bottom-color: rgba(0, 255, 100, 0.3); }
body.theme-black .data-date,
body.theme-black .online-count { color: #22c55e; }
body.theme-black .result-disclaimer,
body.theme-black .full-disclaimer {
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(0, 255, 100, 0.3);
  border-left-color: #22c55e;
  color: rgba(0, 255, 100, 0.9);
  box-shadow: 0 0 16px rgba(0, 255, 100, 0.1);
}
body.theme-black .info-item,
body.theme-black .my-info-grid .info-label { border-color: rgba(0, 255, 100, 0.25); color: #a0ffa0; }
body.theme-black .info-value,
body.theme-black .my-info-section-title,
body.theme-black .my-info-layout .my-info-title { color: #22c55e; }
body.theme-black .usage-text-inner,
body.theme-black .loading,
body.theme-black .small-text { color: rgba(0, 255, 100, 0.8); }
body.theme-black .recharge-section h3 { color: #22c55e; }
body.theme-black .stock-code-input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(0, 255, 100, 0.35) !important;
  color: #a0ffa0 !important;
}
body.theme-black .stock-code-input:focus {
  box-shadow: 0 0 16px rgba(0, 255, 100, 0.3);
  border-color: #22c55e !important;
}
body.theme-black .info-item-block,
body.theme-black .my-info-actions,
body.theme-black .my-info-theme-row { border-top-color: rgba(0, 255, 100, 0.3); }
body.theme-black .login-register-link { color: #22c55e; }
body.theme-black .date-btn,
body.theme-black .search-btn,
body.theme-black .refresh-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(0, 255, 100, 0.45) !important;
  color: #22c55e !important;
}
body.theme-black .date-btn:hover,
body.theme-black .search-btn:hover,
body.theme-black .refresh-btn:hover {
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.4);
  border-color: rgba(0, 255, 100, 0.6) !important;
}
body.theme-black #game-page .game-card {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(0, 255, 100, 0.4) !important;
  box-shadow: 0 0 24px rgba(0, 255, 100, 0.2), inset 0 0 0 1px rgba(0, 255, 100, 0.08);
  color: #a0ffa0;
}
body.theme-black #game-page .game-card:focus-within {
  box-shadow: 0 0 28px rgba(0, 255, 100, 0.35);
  border-color: rgba(0, 255, 100, 0.55) !important;
}
body.theme-black #game-page .game-title,
body.theme-black #game-page .stat-label { color: #22c55e; }
body.theme-black #game-page .stat-value { color: #a0ffa0; }
body.theme-black #game-page #trend-canvas { background: #000000 !important; }
body.theme-black #game-page .trend-chart-right,
body.theme-black #game-page .trend-indicators-row { background: #000000 !important; }
body.theme-black #game-page .trend-y-scale,
body.theme-black #game-page .trend-time-hint { color: rgba(0, 255, 100, 0.7); }
body.theme-black #game-page .game-stake-row input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(0, 255, 100, 0.35) !important;
  color: #a0ffa0;
}
body.theme-black #game-page .game-stake-row input:focus {
  box-shadow: 0 0 14px rgba(0, 255, 100, 0.35);
  border-color: #22c55e !important;
}
body.theme-black #game-page .record-item { border-bottom-color: rgba(0, 255, 100, 0.2); }
body.theme-black #game-page .game-modal-content {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(0, 255, 100, 0.45) !important;
  box-shadow: 0 0 32px rgba(0, 255, 100, 0.25);
  color: #a0ffa0;
}
body.theme-black #game-page .btn,
body.theme-black #game-page .btn-buy,
body.theme-black #game-page .btn-sell {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(0, 255, 100, 0.5) !important;
  color: #22c55e !important;
}
body.theme-black #game-page .btn:hover,
body.theme-black #game-page .btn:focus,
body.theme-black #game-page .btn-buy:hover,
body.theme-black #game-page .btn-sell:hover {
  box-shadow: 0 0 22px rgba(0, 255, 100, 0.45);
  border-color: rgba(0, 255, 100, 0.7) !important;
}

/* 所有主题下统一：正数红、负数绿（五档/明细/开盘最高最低） */
body #game-page .stat-signed.positive,
body #game-page .tier-price.positive,
body #game-page .tier-ohl .positive,
body #game-page .detail-row.positive { color: #e53935 !important; }
body #game-page .stat-signed.negative,
body #game-page .tier-price.negative,
body #game-page .tier-ohl .negative,
body #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-dark #game-page .stat-signed.positive,
body.theme-dark #game-page .tier-price.positive,
body.theme-dark #game-page .tier-ohl .positive,
body.theme-dark #game-page .detail-row.positive { color: #ef5350 !important; }
body.theme-dark #game-page .stat-signed.negative,
body.theme-dark #game-page .tier-price.negative,
body.theme-dark #game-page .tier-ohl .negative,
body.theme-dark #game-page .detail-row.negative { color: #66bb6a !important; }
body.theme-darkgray #game-page .stat-signed.positive,
body.theme-darkgray #game-page .tier-price.positive,
body.theme-darkgray #game-page .tier-ohl .positive,
body.theme-darkgray #game-page .detail-row.positive { color: #e53935 !important; }
body.theme-darkgray #game-page .stat-signed.negative,
body.theme-darkgray #game-page .tier-price.negative,
body.theme-darkgray #game-page .tier-ohl .negative,
body.theme-darkgray #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-indigo #game-page .stat-signed.positive,
body.theme-indigo #game-page .tier-price.positive,
body.theme-indigo #game-page .tier-ohl .positive,
body.theme-indigo #game-page .detail-row.positive { color: #e53935 !important; }
body.theme-indigo #game-page .stat-signed.negative,
body.theme-indigo #game-page .tier-price.negative,
body.theme-indigo #game-page .tier-ohl .negative,
body.theme-indigo #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-red #game-page .stat-signed.positive,
body.theme-red #game-page .tier-price.positive,
body.theme-red #game-page .tier-ohl .positive,
body.theme-red #game-page .detail-row.positive { color: #dc2626 !important; }
body.theme-red #game-page .stat-signed.negative,
body.theme-red #game-page .tier-price.negative,
body.theme-red #game-page .tier-ohl .negative,
body.theme-red #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-gold #game-page .stat-signed.positive,
body.theme-gold #game-page .tier-price.positive,
body.theme-gold #game-page .tier-ohl .positive,
body.theme-gold #game-page .detail-row.positive { color: #ef4444 !important; }
body.theme-gold #game-page .stat-signed.negative,
body.theme-gold #game-page .tier-price.negative,
body.theme-gold #game-page .tier-ohl .negative,
body.theme-gold #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-white #game-page .stat-signed.positive,
body.theme-white #game-page .tier-price.positive,
body.theme-white #game-page .tier-ohl .positive,
body.theme-white #game-page .detail-row.positive { color: #e53935 !important; }
body.theme-white #game-page .stat-signed.negative,
body.theme-white #game-page .tier-price.negative,
body.theme-white #game-page .tier-ohl .negative,
body.theme-white #game-page .detail-row.negative { color: #22c55e !important; }
body.theme-black #game-page .stat-signed.positive,
body.theme-black #game-page .tier-price.positive,
body.theme-black #game-page .tier-ohl .positive,
body.theme-black #game-page .detail-row.positive { color: #ef5350 !important; }
body.theme-black #game-page .stat-signed.negative,
body.theme-black #game-page .tier-price.negative,
body.theme-black #game-page .tier-ohl .negative,
body.theme-black #game-page .detail-row.negative { color: #4ade80 !important; }
body.dark #game-page .stat-signed.positive,
body.dark #game-page .tier-price.positive,
body.dark #game-page .tier-ohl .positive,
body.dark #game-page .detail-row.positive { color: #ef5350 !important; }
body.dark #game-page .stat-signed.negative,
body.dark #game-page .tier-price.negative,
body.dark #game-page .tier-ohl .negative,
body.dark #game-page .detail-row.negative { color: #66bb6a !important; }

/* 会员试玩关闭：双 ID 特异性高于 .mi-basic-row 的 grid !important */
#my-info-page #my-info-signin-block.member-trial-row-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  gap: 0 !important;
}