/* =========================
   基础样式
   仅桌面布局，不做手机端适配
========================= */
:root {
  --bg: #dbe8f8;
  --panel-bg: #ffffff;
  --text: #1b1b1b;
  --primary: #2d3ea8;
  --primary-dark: #1f2d8a;
  --border: #bcbcbc;
  --muted: #666;
  --success: #1a8f2a;
  --danger: #d83b3b;
  --notice: #05058b;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

/* =========================
   登录页
========================= */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-panel {
  width: 460px;
  background: var(--panel-bg);
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  padding: 28px 30px 22px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 62, 168, 0.12);
}

.primary-btn,
.secondary-btn {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.secondary-btn {
  background: #f5f5f5;
}

.hint-text {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
}

/* =========================
   规则确认全屏遮罩
========================= */
.agreement-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  place-items: center;
  padding: 40px;
}

.agreement-card {
  width: 560px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 24px 26px;
}

.agreement-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.agreement-body {
  line-height: 1.9;
  color: #2b2b2b;
  min-height: 140px;
}

.agreement-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

/* =========================
   主页
========================= */
.home-view {
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
}

.topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-mark {
  width: 88px;
  height: 88px;
  border: 2px solid var(--primary);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: #f4f8ff;
}

.account-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  min-width: 210px;
}

.account-item {
  border: 1px solid #b7b7b7;
  border-radius: 4px;
  background: #fff;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.account-item .label {
  color: #222;
}

.account-item .value {
  font-weight: 700;
}

.value-green { color: var(--success); }
.value-red { color: var(--danger); }

.lottery-box {
  border: 1px solid #888;
  background: #fff;
  min-width: 270px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  align-items: start;
}

.lottery-item {
  min-width: 0;
}

.lottery-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.5;
}

.lottery-name {
  font-weight: 700;
}

.lottery-period {
  color: #ff6f00;
}

.lottery-status {
  color: #000;
  font-weight: 700;
}

.lottery-countdown {
  font-weight: 700;
}

.icon-nav {
  display: grid;
  grid-template-columns: repeat(9, 76px);
  gap: 8px;
  justify-content: end;
}

.nav-icon-btn {
  width: 76px;
  min-height: 82px;
  padding: 8px 6px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  color: #1a1a1a;
}

.nav-icon-btn .icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #fff;
  color: var(--primary);
}

.nav-icon-btn span:last-child {
  font-size: 13px;
}

.nav-icon-btn.is-active .icon-circle,
.nav-icon-btn:hover .icon-circle {
  background: var(--primary);
  color: #fff;
}

.logout-btn span:last-child {
  color: #9d3b2c;
}

.notice-bar {
  margin: 0 0 10px;
  background: var(--notice);
  color: #fff;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.notice-title {
  color: #fff200;
  margin-right: 8px;
  font-weight: 700;
}

.notice-bar marquee {
  width: 100%;
}

.home-main {
  padding: 0 14px 16px;
}

.panel {
  display: none;
  background: var(--panel-bg);
  border: 1px solid #d8d8d8;
  min-height: 180px;
  padding: 18px 18px 20px;
}

.panel.is-active {
  display: block;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.placeholder-box {
  margin-top: 16px;
  min-height: 120px;
  background: #fbfbfb;
  border: 1px dashed #d2d2d2;
  display: grid;
  place-items: center;
  color: #666;
  text-align: center;
  padding: 18px;
}

/* =========================
   会员资料面板
========================= */
.member-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.member-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.small-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.member-profile-status {
  color: var(--muted);
  font-size: 13px;
}

.member-profile-status.is-ok {
  color: var(--success);
}

.member-profile-status.is-error {
  color: var(--danger);
}

.member-profile-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 12px;
}

.member-card {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  overflow: hidden;
}

.member-card-title {
  min-height: 34px;
  padding: 8px 10px;
  background: #f2f5ff;
  border-bottom: 1px solid #cfcfcf;
  font-weight: 700;
  color: #18236e;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.compact-table th,
.compact-table td {
  border: 1px solid #d7d7d7;
  padding: 6px 8px;
  vertical-align: middle;
}

.compact-table th {
  background: #f7f7f7;
  font-weight: 700;
  text-align: center;
}

.member-info-table td:nth-child(odd) {
  width: 18%;
  background: #fbfbfb;
  color: #555;
  font-weight: 700;
  text-align: right;
}

.member-info-table td:nth-child(even) {
  width: 32%;
  color: #111;
}

.coding-mode-table select {
  width: 100%;
  height: 28px;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  background: #fff;
}

.coding-mode-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.odds-card {
  margin-top: 12px;
}

.odds-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.formula-text {
  font-size: 12px;
  color: #4b4b4b;
  font-weight: 400;
}

.odds-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #d7d7d7;
  background: #fcfcfc;
}

.same-rebate-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.rebate-select {
  height: 30px;
  width: 96px;
  min-width: 96px;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  background: #fff;
  text-align: center;
  text-align-last: center;
}

.odds-table-wrap {
  width: 100%;
  max-height: 520px;
  overflow: auto;
}

.odds-settings-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

/* 只控制赔率主表第一层单元格，避免影响“福/体”内嵌小表格 */
.odds-settings-table > thead > tr > th,
.odds-settings-table > tbody > tr > td {
  padding: 6px 10px;
  height: 42px;
  text-align: center;
  vertical-align: middle;
}

.odds-settings-table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.odds-settings-table > thead > tr > th:nth-child(1),
.odds-settings-table > tbody > tr > td:nth-child(1) { width: 110px; }
.odds-settings-table > thead > tr > th:nth-child(2),
.odds-settings-table > tbody > tr > td:nth-child(2) { width: 170px; }
.odds-settings-table > thead > tr > th:nth-child(3),
.odds-settings-table > tbody > tr > td:nth-child(3) { width: 90px; }
.odds-settings-table > thead > tr > th:nth-child(4),
.odds-settings-table > tbody > tr > td:nth-child(4) { width: 95px; }
.odds-settings-table > thead > tr > th:nth-child(5),
.odds-settings-table > tbody > tr > td:nth-child(5) { width: 155px; }
.odds-settings-table > thead > tr > th:nth-child(6),
.odds-settings-table > tbody > tr > td:nth-child(6) { width: 155px; }
.odds-settings-table > thead > tr > th:nth-child(7),
.odds-settings-table > tbody > tr > td:nth-child(7) { width: 110px; }
.odds-settings-table > thead > tr > th:nth-child(8),
.odds-settings-table > tbody > tr > td:nth-child(8) { width: 115px; }

.odds-settings-table > tbody > tr > td:nth-child(5),
.odds-settings-table > tbody > tr > td:nth-child(6),
.odds-settings-table > tbody > tr > td:nth-child(7) {
  padding: 4px 8px;
}

.odds-settings-table > tbody > tr > td:nth-child(7) {
  text-align: center;
}

.readonly-number {
  background: #fbfbfb;
  text-align: center;
  color: #111;
  font-weight: 700;
}

.limit-stack-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  background: #fff;
}

.limit-stack-table th,
.limit-stack-table td {
  border: 1px solid #e1e1e1;
  padding: 3px 6px;
  line-height: 18px;
}

.limit-stack-table th {
  width: 34px;
  background: #f5f5f5;
  color: #555;
  text-align: center;
}

.limit-stack-table td {
  width: auto;
  text-align: center;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}

.actual-odds-cell {
  color: #0b5f18;
  font-weight: 700;
  text-align: center;
}




/* =========================
   会员报表面板：下注明细 / 历史账单 / 开奖号码
   只追加样式，不影响其它面板
========================= */
.report-title-bar {
  height: 34px;
  line-height: 34px;
  padding: 0 8px;
  background: #009688;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.report-title-bar.inner {
  margin: 0;
  text-align: center;
}

.report-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 10px 8px;
  border: 1px solid #7ab8b3;
  border-top: none;
  background: #fff;
}

.report-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}

.report-field input,
.report-field select {
  height: 36px;
  border: 1px solid #d5dbe5;
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
  outline: none;
  min-width: 132px;
}

.report-field select {
  min-width: 84px;
}

.report-field.compact select {
  width: 84px;
  min-width: 84px;
}

.report-field.wide select {
  width: 138px;
  min-width: 138px;
}

.report-field.date-field input {
  width: 275px;
  min-width: 275px;
}

.report-field.order-field input {
  width: 164px;
  min-width: 164px;
}

.report-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  white-space: nowrap;
}

.report-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.report-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a73e8;
}

.report-radio-group input[type="radio"]:checked + span {
  color: #006dff;
}

.red-gradient-btn,
.orange-btn {
  height: 36px;
  border-radius: 5px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.red-gradient-btn {
  background: linear-gradient(#d64b4b, #b51f28);
}

.orange-btn {
  background: linear-gradient(#f4ad3c, #e49118);
}

.report-card {
  margin-top: 12px;
  border: 1px solid #7ab8b3;
  background: #fff;
}

.report-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 15px;
}

.report-table th,
.report-table td {
  border: 1px solid #7ab8b3;
  height: 38px;
  padding: 7px 8px;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
}

.report-table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #000;
}

.report-table tfoot td {
  background: #fffdf3;
  font-weight: 700;
}

.bet-detail-table {
  min-width: 1180px;
}

.bet-detail-table th:nth-child(1),
.bet-detail-table td:nth-child(1) { width: 90px; }
.bet-detail-table th:nth-child(2),
.bet-detail-table td:nth-child(2) { width: 175px; }
.bet-detail-table th:nth-child(3),
.bet-detail-table td:nth-child(3) { width: 175px; }
.bet-detail-table th:nth-child(4),
.bet-detail-table td:nth-child(4) { width: 178px; }
.bet-detail-table th:nth-child(5),
.bet-detail-table td:nth-child(5) { width: 120px; }
.bet-detail-table th:nth-child(6),
.bet-detail-table td:nth-child(6),
.bet-detail-table th:nth-child(7),
.bet-detail-table td:nth-child(7),
.bet-detail-table th:nth-child(8),
.bet-detail-table td:nth-child(8),
.bet-detail-table th:nth-child(9),
.bet-detail-table td:nth-child(9),
.bet-detail-table th:nth-child(10),
.bet-detail-table td:nth-child(10) { width: 90px; }
.bet-detail-table th:nth-child(11),
.bet-detail-table td:nth-child(11) { width: 94px; }
.bet-detail-table th:nth-child(12),
.bet-detail-table td:nth-child(12) { width: 90px; }

.history-bill-table th,
.history-bill-table td {
  height: 44px;
}

.draw-result-table th:nth-child(1),
.draw-result-table td:nth-child(1) { width: 140px; }
.draw-result-table th:nth-child(2),
.draw-result-table td:nth-child(2) { width: 180px; }
.draw-result-table th:nth-child(3),
.draw-result-table td:nth-child(3) { width: 180px; }

.draw-balls {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
}

.draw-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #d81717;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
}

.report-status {
  min-height: 22px;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

.report-status.inline {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
}

.report-status.is-ok { color: var(--success); }
.report-status.is-error { color: var(--danger); }

.report-bottom-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.report-positive { color: #0b7a1d; font-weight: 700; }
.report-negative { color: #d83b3b; font-weight: 700; }
.report-muted { color: #777; }

/* =========================
   快速入口 / 规则 / 安全设置
========================= */
.quick-entry-grid,
.rules-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.quick-card {
  min-height: 150px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.quick-card.muted {
  background: #fbfbfb;
}

.quick-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #18236e;
}

.quick-card p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.rules-card {
  padding-bottom: 10px;
}

.rules-card ul {
  margin: 10px 16px 0 26px;
  padding: 0;
  line-height: 1.9;
  color: #333;
}

.rules-card code {
  background: #f1f3f8;
  border: 1px solid #d8ddea;
  border-radius: 4px;
  padding: 1px 5px;
}

.bet-format-card {
  grid-column: 1 / -1;
  padding-bottom: 0;
}

.bet-format-body {
  padding: 14px;
}

.bet-format-notice,
.bet-format-footnote {
  border: 1px solid #cdd9ef;
  border-radius: 6px;
  background: #f7faff;
  padding: 11px 13px;
  color: #344054;
  line-height: 1.75;
}

.bet-format-section + .bet-format-section {
  margin-top: 16px;
}

.bet-format-section h3 {
  margin: 0 0 8px;
  color: #18236e;
  font-size: 15px;
}

.bet-format-table-wrap {
  overflow-x: auto;
}

.bet-format-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.bet-format-table th,
.bet-format-table td {
  border: 1px solid #d8deea;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.bet-format-table th {
  background: #eef3ff;
  color: #18236e;
  font-weight: 700;
}

.bet-format-table th:first-child,
.bet-format-table td:first-child {
  width: 100px;
  font-weight: 700;
  white-space: nowrap;
}

.bet-format-table th:nth-child(2),
.bet-format-table td:nth-child(2) {
  width: 43%;
}

.bet-format-table code,
.bet-format-notice code,
.bet-format-footnote code {
  display: inline-block;
  margin: 1px 0;
  white-space: nowrap;
}

.bet-format-footnote {
  margin-top: 16px;
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .bet-format-body {
    padding: 10px;
  }

  .bet-format-table {
    font-size: 12px;
  }
}

.settings-form,
.route-layout {
  margin-top: 16px;
  max-width: 720px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.settings-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.settings-field span {
  font-weight: 700;
  color: #333;
}

.settings-field input {
  height: 38px;
  border: 1px solid #bcbcbc;
  border-radius: 5px;
  padding: 0 10px;
  outline: none;
}

.settings-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 62, 168, 0.12);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-msg {
  min-height: 20px;
  color: #666;
  font-size: 13px;
}

.settings-msg.is-ok { color: var(--success); }
.settings-msg.is-error { color: var(--danger); }

.route-layout {
  max-width: 900px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.route-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 12px;
  background: #fbfbfb;
  cursor: pointer;
}

.route-card:has(input:checked) {
  border-color: var(--primary);
  background: #f2f5ff;
}

.route-card-main {
  display: grid;
  gap: 4px;
}

.route-card-main strong {
  color: #18236e;
}

.route-card-main em {
  font-style: normal;
  color: #666;
  font-size: 12px;
  word-break: break-all;
}

/* =========================
   快速录入面板：文本录入 / 本地解码 / 快速下单
   只复用现有玩家端解码规则，不改玩法规则文件
========================= */
.quick-entry-panel {
  padding: 0;
  background: #f6f6f6;
  border-color: #d7d7d7;
  min-height: 560px;
}

.quick-workbench {
  display: grid;
  grid-template-columns: 356px minmax(720px, 1fr);
  gap: 32px;
  align-items: stretch;
  min-height: 560px;
}

.quick-side {
  background: #fff;
  border-right: 1px solid #dcdcdc;
  padding: 0 0 10px;
}

.quick-box {
  border: 1px solid #0b9b90;
  background: #fff;
  margin: 0 0 12px;
}

.quick-box-title {
  min-height: 40px;
  background: #06998d;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 48px;
}

.quick-box-title .quick-mini-btn,
.quick-box-title .quick-link-btn {
  position: absolute;
  right: 4px;
  top: 6px;
}

.quick-account-row {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #ededed;
  font-size: 15px;
}

.quick-info-table,
.quick-result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.quick-info-table th,
.quick-info-table td,
.quick-result-table th,
.quick-result-table td {
  border-bottom: 1px solid #ececec;
  border-right: 1px solid #ececec;
  height: 38px;
  text-align: left;
  padding: 0 14px;
  font-weight: 400;
}

.quick-info-table th,
.quick-result-table th {
  background: #efefef;
}

.quick-result-table td[colspan] {
  text-align: center;
  color: #777;
}

.quick-record-box {
  min-height: 290px;
}

.quick-record-total {
  min-height: 36px;
  border-bottom: 1px dashed #d5d5d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.quick-record-total strong {
  color: #ff0000;
  font-size: 18px;
}

.quick-copy-row {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding: 6px 4px 12px;
}

.quick-record-list {
  min-height: 160px;
  padding: 12px 10px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.quick-record-item {
  text-align: left;
  border-bottom: 1px dashed #e2e2e2;
  padding: 8px 2px;
  line-height: 1.5;
}

.quick-record-item strong {
  color: #222;
}

.quick-mini-btn,
.quick-link-btn,
.quick-blue-btn,
.quick-light-btn,
.quick-orange-btn,
.quick-outline-btn,
.quick-icon-btn,
.quick-warn-btn,
.quick-green-btn,
.quick-gray-btn,
.quick-submit-btn {
  border: 1px solid #d6dce7;
  border-radius: 4px;
  min-height: 30px;
  padding: 0 12px;
  cursor: pointer;
  background: #fff;
}

.quick-mini-btn {
  background: #fff;
  color: #111;
  height: 28px;
  min-height: 28px;
  padding: 0 6px;
}

.quick-link-btn {
  background: transparent;
  color: #fff;
  border: 0;
  height: 28px;
  min-height: 28px;
  padding: 0 2px;
}

.quick-blue-btn {
  background: #428ff5;
  border-color: #428ff5;
  color: #fff;
  font-weight: 700;
}

.quick-light-btn {
  background: #fff;
  color: #2f3f68;
}

.quick-main {
  min-width: 0;
  padding: 12px 10px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-top-actions {
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.quick-orange-btn {
  background: #eda12c;
  color: #fff;
  border-color: #eda12c;
  height: 38px;
  min-width: 88px;
  font-weight: 700;
}

.quick-outline-btn {
  background: #fff;
  color: #374151;
  height: 38px;
  min-width: 86px;
}

.quick-input-wrap {
  position: relative;
  background: #fff;
}

.quick-input {
  width: 100%;
  min-height: 275px;
  resize: vertical;
  border: 0;
  border-top: 1px solid #ffe0e0;
  border-bottom: 1px solid #ffe0e0;
  background: #ffe1e3;
  padding: 14px 16px 24px;
  font-size: 18px;
  line-height: 1.6;
  outline: none;
  color: #111;
}

.quick-input:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 144, 144, 0.45);
}

.quick-input-counter {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 14px;
  color: #000;
}

.quick-toolbar {
  background: #fff;
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.quick-toolbar-primary {
  border-bottom: 1px solid #f1f1f1;
}

.quick-icon-btn.danger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff4f4;
  border-color: #ffd0d0;
  color: #ff5555;
  font-size: 20px;
}

.quick-warn-btn {
  background: #fff7ed;
  color: #d08a2a;
  border-color: #fde1bd;
  height: 38px;
  min-width: 70px;
}

.quick-green-btn {
  background: #61c23b;
  color: #fff;
  border-color: #61c23b;
  height: 38px;
  min-width: 70px;
  font-weight: 700;
}

.quick-gray-btn {
  background: #fff;
  color: #374151;
  height: 38px;
  min-width: 96px;
}

.quick-gray-btn.weak {
  color: #aeb5c1;
  background: #f4f6f8;
}

.quick-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 16px;
}

.quick-inline-field input {
  width: 126px;
  height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 8px;
  outline: none;
}

.quick-submit-btn {
  background: #ffb5bb;
  color: #fff;
  border-color: #ffb5bb;
  min-width: 70px;
  height: 42px;
  font-weight: 700;
  font-size: 16px;
}

.quick-submit-btn:not(:disabled):hover {
  filter: brightness(0.97);
}

.quick-submit-btn:disabled,
.quick-green-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.quick-group-input {
  width: 190px;
  height: 40px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.quick-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
}

.quick-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quick-switch span {
  position: relative;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background: #d6dae2;
  transition: background .16s ease;
}

.quick-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  transition: transform .16s ease;
}

.quick-switch input:checked + span {
  background: #e76637;
}

.quick-switch input[name="quickGameType"][value="fucai3d"]:checked + span,
.quick-switch input#quickImmediateDecodeSwitch:checked + span,
.quick-switch input#quickSmartFixSwitch:checked + span {
  background: #439bf4;
}

.quick-switch input:checked + span::after {
  transform: translateX(24px);
}

.quick-switch em {
  font-style: normal;
  color: #111;
}

.quick-decode-preview {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  min-height: 82px;
  padding: 10px 14px;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 15px;
  color: #111;
}

.quick-preview-empty {
  color: #777;
  text-align: center;
  padding-top: 18px;
}

.quick-preview-error {
  color: #d83b3b;
}

.quick-summary-row {
  min-height: 52px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  font-size: 20px;
}

.quick-summary-row span + span {
  border-left: 1px dashed #d1d1d1;
  padding-left: 14px;
}

.quick-status {
  font-size: 14px;
  color: #777;
  border-left: 0 !important;
  margin-left: auto;
}

.quick-status.is-ok { color: var(--success); }
.quick-status.is-error { color: var(--danger); }



/* =========================
   统一视觉优化：全站配色 + 快速录入精修
   说明：仅覆盖展示样式，不修改下注/解码业务逻辑
========================= */
:root {
  --bg: #edf4ff;
  --panel-bg: #ffffff;
  --text: #172033;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-soft: #eaf2ff;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --accent-soft: #e8fbf8;
  --border: #d7e2f0;
  --muted: #64748b;
  --success: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --notice: #12336c;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --shadow-sm: 0 8px 20px rgba(24, 42, 87, 0.08);
  --shadow-md: 0 16px 42px rgba(24, 42, 87, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html,
body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(20, 184, 166, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f9ff 0%, var(--bg) 42%, #eaf3ff 100%);
}

.app-shell {
  background: transparent;
}

button,
select,
input,
textarea {
  font-family: inherit;
}

button {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:not(:disabled):active {
  transform: translateY(0);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, .72) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

/* 登录 / 协议弹窗统一质感 */
.login-panel,
.agreement-card {
  border: 1px solid rgba(215, 226, 240, .95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.brand-logo,
.site-mark {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.brand-title,
.quick-card-title,
.member-card-title,
.route-card-main strong {
  color: var(--primary-dark);
}

.primary-btn,
.small-btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.secondary-btn {
  border-radius: 10px;
  border-color: var(--border);
  background: #f8fbff;
  color: var(--primary-dark);
}

/* 顶部栏统一为清爽蓝绿风格 */
.topbar {
  margin: 12px 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(215, 226, 240, .95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.site-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 40px;
}

.account-box {
  min-width: 232px;
  gap: 8px;
}

.account-item {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 6px 14px rgba(24, 42, 87, .05);
}

.account-item .label,
.lottery-status {
  color: var(--muted);
}

.account-item .value,
.lottery-name,
.lottery-countdown {
  color: var(--text);
}

.value-green,
.report-positive {
  color: var(--success);
}

.value-red,
.report-negative {
  color: var(--danger);
}

.lottery-box {
  min-width: 300px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 8px 18px rgba(24, 42, 87, .06);
}

.lottery-period {
  color: var(--warning);
  font-weight: 700;
}

.icon-nav {
  gap: 10px;
}

.nav-icon-btn {
  min-height: 78px;
  border-radius: 16px;
  color: var(--muted);
}

.nav-icon-btn .icon-circle {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(37, 99, 235, .22);
  background: #f7fbff;
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 8px 16px rgba(24, 42, 87, .06);
}

.nav-icon-btn span:last-child {
  color: #334155;
  font-weight: 600;
}

.nav-icon-btn.is-active,
.nav-icon-btn:hover {
  background: var(--primary-soft);
}

.nav-icon-btn.is-active .icon-circle,
.nav-icon-btn:hover .icon-circle {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}

.logout-btn:hover {
  background: #fff1f2;
}

.logout-btn span:last-child {
  color: #b42318;
}

.notice-bar {
  height: 34px;
  margin: 10px 14px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--notice), #1e40af 48%, var(--accent-dark));
  box-shadow: 0 10px 22px rgba(18, 51, 108, .15);
}

.notice-title {
  color: #fef08a;
}

.home-main {
  padding: 0 14px 18px;
}

.panel {
  border: 1px solid rgba(215, 226, 240, .95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.member-card,
.quick-card,
.settings-form,
.route-layout,
.report-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 42, 87, .06);
  overflow: hidden;
}

.member-card-title,
.report-title-bar,
.quick-box-title {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
  color: #fff;
}

.member-card-title {
  border-bottom: 0;
}

.compact-table th,
.report-table th,
.quick-info-table th,
.quick-result-table th {
  background: #f1f6ff;
  color: #1e3a8a;
}

.compact-table th,
.compact-table td,
.report-table th,
.report-table td {
  border-color: var(--border);
}

.report-title-bar {
  height: 38px;
  line-height: 38px;
  padding: 0 14px;
  border-radius: 0;
  letter-spacing: .5px;
}

.report-toolbar {
  border-color: var(--border);
  background: #fbfdff;
}

.report-field input,
.report-field select,
.settings-field input,
.rebate-select,
.coding-mode-table select,
.quick-inline-field input,
.quick-group-input {
  border-color: var(--border);
  border-radius: 10px;
  background: #fff;
}

.red-gradient-btn,
.orange-btn {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(24, 42, 87, .12);
}

.red-gradient-btn {
  background: linear-gradient(135deg, #f43f5e, #ef4444);
}

.orange-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.route-card {
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: #f8fbff;
}

.route-card:has(input:checked) {
  border-color: rgba(37, 99, 235, .55);
  background: var(--primary-soft);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

/* 快速录入：整体工作台精修 */
.quick-entry-panel {
  min-height: 604px;
  padding: 0;
  border: 1px solid rgba(215, 226, 240, .95);
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(241, 248, 255, .92));
}

.quick-workbench {
  grid-template-columns: 324px minmax(760px, 1fr);
  gap: 18px;
  min-height: 604px;
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .08), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, .10), transparent 30%);
}

.quick-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border-right: 0;
  background: transparent;
}

.quick-box {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.quick-box-title {
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 88px 0 16px;
  font-size: 16px;
  letter-spacing: .3px;
}

.quick-box-title::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .2);
}

.quick-box-title .quick-mini-btn,
.quick-box-title .quick-link-btn {
  right: 10px;
  top: 8px;
}

.quick-account-row {
  height: 42px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.quick-account-row strong {
  color: var(--primary-dark);
}

.quick-info-table,
.quick-result-table {
  font-size: 14px;
}

.quick-info-table th,
.quick-info-table td,
.quick-result-table th,
.quick-result-table td {
  height: 38px;
  border-color: var(--border);
  padding: 0 12px;
}

.quick-result-table td[colspan],
.quick-record-list,
.quick-preview-empty {
  color: var(--muted);
}

.quick-record-box {
  flex: 1;
  min-height: 314px;
}

.quick-record-total {
  min-height: 42px;
  border-bottom: 1px dashed var(--border);
  padding: 0 12px;
  color: var(--muted);
}

.quick-record-total strong {
  color: var(--danger);
}

.quick-copy-row {
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef3fb;
}

.quick-record-list {
  min-height: 172px;
  padding: 12px;
}

.quick-record-item {
  padding: 10px 12px;
  border: 1px solid #e8eff8;
  border-radius: 12px;
  background: #fbfdff;
  line-height: 1.6;
  box-shadow: 0 4px 10px rgba(24, 42, 87, .04);
}

.quick-record-item + .quick-record-item {
  margin-top: 8px;
}

.quick-record-item strong {
  color: var(--primary-dark);
}

.quick-main {
  gap: 12px;
  padding: 0;
  min-width: 0;
}

.quick-top-actions,
.quick-input-wrap,
.quick-toolbar,
.quick-decode-preview,
.quick-summary-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
}

.quick-top-actions {
  height: 58px;
  justify-content: space-between;
  padding: 0 14px;
}

.quick-top-actions::before {
  content: '快速录入工作台';
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .4px;
}

.quick-input-wrap {
  position: relative;
  overflow: hidden;
}

.quick-input-wrap::before {
  content: '下注文本';
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.quick-input {
  min-height: 286px;
  border: 0 !important;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 248, 249, .96), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(0deg, transparent 0, transparent 30px, rgba(239, 68, 68, .06) 31px);
  padding: 52px 18px 32px;
  font-size: 17px;
  line-height: 1.7;
  color: #111827;
}

.quick-input::placeholder {
  color: #94a3b8;
}

.quick-input-counter {
  right: 16px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  font-size: 12px;
}

.quick-toolbar {
  min-height: 58px;
  gap: 10px;
  padding: 10px 12px;
}

.quick-toolbar-primary {
  border-bottom: 1px solid var(--border);
}

.quick-toolbar-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .96));
}

.quick-inline-field {
  height: 38px;
  padding: 0 8px;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fbfdff;
  color: #475569;
  font-size: 14px;
}

.quick-inline-field input {
  width: 110px;
  height: 30px;
}

.quick-mini-btn,
.quick-link-btn,
.quick-blue-btn,
.quick-light-btn,
.quick-orange-btn,
.quick-outline-btn,
.quick-icon-btn,
.quick-warn-btn,
.quick-green-btn,
.quick-gray-btn,
.quick-submit-btn {
  border-radius: 10px;
  border-color: var(--border);
  font-weight: 700;
}

.quick-mini-btn {
  border: 0;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-dark);
}

.quick-link-btn {
  color: #fff;
}

.quick-blue-btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  box-shadow: 0 8px 16px rgba(37, 99, 235, .18);
}

.quick-light-btn,
.quick-outline-btn,
.quick-gray-btn {
  background: #f8fbff;
  color: var(--primary-dark);
}

.quick-orange-btn {
  border: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 8px 16px rgba(245, 158, 11, .2);
}

.quick-warn-btn {
  border: 0;
  background: #fff7ed;
  color: #c2410c;
}

.quick-green-btn {
  border: 0;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #fff;
  box-shadow: 0 8px 16px rgba(20, 184, 166, .2);
}

.quick-gray-btn.weak {
  border-color: #edf2f7;
  background: #f8fafc;
  color: #94a3b8;
}

.quick-icon-btn.danger {
  border: 0;
  background: #fff1f2;
  color: var(--danger);
}

.quick-submit-btn {
  min-width: 86px;
  border: 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 10px 20px rgba(239, 68, 68, .18);
}

.quick-submit-btn:not(:disabled):hover,
.quick-green-btn:not(:disabled):hover,
.quick-blue-btn:not(:disabled):hover,
.quick-orange-btn:not(:disabled):hover,
.red-gradient-btn:not(:disabled):hover,
.orange-btn:not(:disabled):hover,
.primary-btn:not(:disabled):hover {
  box-shadow: 0 14px 26px rgba(37, 99, 235, .18);
}

.quick-group-input {
  width: 168px;
  height: 40px;
}

.quick-switch {
  gap: 7px;
  height: 34px;
  padding: 0 8px 0 4px;
  border: 1px solid #e6edf7;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.quick-switch span {
  width: 42px;
  height: 22px;
  background: #cbd5e1;
}

.quick-switch span::after {
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
}

.quick-switch input:checked + span {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.quick-switch input[name="quickGameType"][value="fucai3d"]:checked + span,
.quick-switch input#quickImmediateDecodeSwitch:checked + span,
.quick-switch input#quickSmartFixSwitch:checked + span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.quick-switch input:checked + span::after {
  transform: translateX(20px);
}

.quick-switch em {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.quick-decode-preview {
  min-height: 96px;
  padding: 14px 16px;
  background: #fbfdff;
  color: #1f2937;
  line-height: 1.7;
}

.quick-preview-empty {
  padding-top: 24px;
}

.quick-preview-error {
  color: var(--danger);
  font-weight: 700;
}

.quick-summary-row {
  min-height: 62px;
  padding: 0 20px;
  border-color: rgba(37, 99, 235, .18);
  background: linear-gradient(135deg, #ffffff, #f1f7ff);
  color: #334155;
  font-size: 18px;
}

.quick-summary-row strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.quick-summary-row span + span {
  border-left: 1px dashed var(--border);
}

.quick-status {
  color: var(--muted);
}

.quick-status.is-ok {
  color: var(--success);
}

.quick-status.is-error {
  color: var(--danger);
}



/* 快速录入标题与右侧操作按钮保持同一行两端对齐 */
.quick-top-actions {
  justify-content: flex-start;
}

.quick-top-actions .quick-orange-btn {
  margin-left: auto;
}

/* 历史账单：按日期汇总，点击日期下钻单日明细 */
.history-bill-table {
  min-width: 1080px;
}

.history-date-row {
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.history-date-row:hover,
.history-date-row:focus,
.history-date-row.is-selected {
  background: #eef9f8;
  outline: none;
}

.history-date-row.is-selected {
  box-shadow: inset 4px 0 #168f87;
}

.history-date-link {
  border: 0;
  padding: 4px 7px;
  background: transparent;
  color: #0875c9;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pending-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #fff2cf;
  color: #9a6200;
  font-size: 11px;
  white-space: nowrap;
}

.history-day-detail {
  margin-top: 14px;
  border: 1px solid #7ab8b3;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
}

.history-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(#f4fffd, #e7f6f4);
  border-bottom: 1px solid #7ab8b3;
}

.history-day-head strong {
  display: block;
  font-size: 17px;
}

.history-day-head span {
  display: block;
  margin-top: 3px;
  color: #687978;
  font-size: 13px;
}

.history-day-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  background: #fffdf3;
  border-bottom: 1px solid #e5dcc0;
}

.history-day-summary span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #eadfbf;
  border-radius: 5px;
  background: #fff;
}

.history-day-table {
  min-width: 1620px;
  table-layout: auto;
  font-size: 13px;
}

.history-day-table th,
.history-day-table td {
  white-space: nowrap;
  word-break: normal;
}

.history-day-table td:nth-child(6),
.history-day-table td:nth-child(7) {
  max-width: 240px;
  white-space: normal;
  word-break: break-word;
}



.problem-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #ffe4e2;
  color: #b3261e;
  font-size: 11px;
  white-space: nowrap;
}

.settlement-mode-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid #b8d9d6;
  border-radius: 10px;
  background: #f1fbfa;
  color: #357874;
  font-size: 11px;
  white-space: nowrap;
}

.water-amount {
  display: block;
  margin-top: 2px;
  color: #167b55;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   会员端 2026-07 方形、无渐变版覆盖
   ========================================================= */
:root {
  --member-bg: #eef1f4;
  --member-surface: #ffffff;
  --member-line: #c9d0d8;
  --member-line-dark: #929da9;
  --member-text: #26313d;
  --member-muted: #6d7884;
  --member-primary: #245b84;
  --member-primary-dark: #194563;
  --member-success: #237a4b;
  --member-danger: #b53a3a;
  --member-warning: #9b6618;
}

*, *::before, *::after {
  background-image: none !important;
}

body,
.home-view,
.home-main {
  background-color: var(--member-bg) !important;
  color: var(--member-text);
}

:where(
  .login-panel,
  .agreement-card,
  .topbar,
  .notice-bar,
  .panel,
  .panel-head,
  .report-card,
  .member-card,
  .quick-box,
  .quick-main,
  .quick-input-wrap,
  .quick-decode-preview,
  .settings-form,
  .route-card,
  .route-custom,
  .history-day-detail,
  .square-card,
  .simple-modal-card,
  .stats-strip,
  .stat-cell,
  input,
  select,
  textarea,
  button
) {
  border-radius: 0 !important;
}

.topbar,
.notice-bar,
.panel,
.report-card,
.member-card,
.quick-box,
.quick-main,
.square-card,
.history-day-detail,
.simple-modal-card,
.settings-form,
.route-custom {
  box-shadow: none !important;
  border: 1px solid var(--member-line) !important;
  background-color: var(--member-surface) !important;
}

.topbar {
  border-width: 0 0 1px !important;
  padding: 10px 14px !important;
}

.home-main {
  padding: 12px !important;
}

.panel {
  padding: 12px !important;
}

.panel-head,
.detail-view-head {
  border: 1px solid var(--member-line) !important;
  background: #f6f7f8 !important;
  padding: 12px 14px !important;
  margin-bottom: 12px;
}

.panel-head h2,
.detail-view-head h2 {
  font-size: 17px !important;
  line-height: 1.3;
  margin: 0 0 4px;
}

.panel-head p,
.detail-view-head p {
  font-size: 12px !important;
  color: var(--member-muted) !important;
  margin: 0;
}

.report-title-bar,
.member-card-title {
  background: #e8edf2 !important;
  color: #243341 !important;
  border: 1px solid var(--member-line) !important;
  border-bottom-color: var(--member-line-dark) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  min-height: 34px;
  padding: 7px 10px !important;
}

.report-title-bar.inner {
  border-width: 0 0 1px !important;
}

.primary-btn,
.red-gradient-btn,
.quick-blue-btn,
.quick-green-btn,
.quick-submit-btn {
  background: var(--member-primary) !important;
  border: 1px solid var(--member-primary-dark) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.primary-btn:hover,
.red-gradient-btn:hover,
.quick-blue-btn:hover,
.quick-green-btn:hover,
.quick-submit-btn:hover {
  background: var(--member-primary-dark) !important;
}

.secondary-btn,
.orange-btn,
.quick-light-btn,
.quick-gray-btn,
.quick-outline-btn,
.quick-mini-btn,
.table-action-btn,
.view-number-btn {
  background: #f4f5f6 !important;
  border: 1px solid #9da7b1 !important;
  color: #303b46 !important;
  box-shadow: none !important;
}

button {
  font-size: 12px !important;
}

input,
select,
textarea {
  border: 1px solid #aeb7c1 !important;
  background-color: #fff !important;
  color: var(--member-text) !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

.notice-bar {
  background: #2c536f !important;
  color: #fff !important;
  border-width: 0 0 1px !important;
}

.nav-icon-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #465563 !important;
  padding: 6px 8px !important;
  min-width: 68px;
  font-size: 11px !important;
}

.nav-icon-btn:hover,
.nav-icon-btn.is-active {
  background: #e3eaf0 !important;
  border-color: #9aa8b5 !important;
  color: #173f5c !important;
}

.icon-circle {
  width: 27px !important;
  height: 27px !important;
  background: #dce5ec !important;
  border: 1px solid #9aa8b5 !important;
  color: #244d68 !important;
  font-size: 13px !important;
}

/* 快速录入：字号收小，边界清晰，不使用夸张大按钮 */
.quick-workbench,
.quick-main,
.quick-side,
.quick-box,
.quick-input,
.quick-toolbar,
.quick-switch,
.quick-summary-row,
.quick-record-list,
.quick-info-table,
.quick-result-table {
  font-size: 12px !important;
}

.quick-box-title,
.quick-account-row {
  font-size: 12px !important;
}

.quick-input {
  font-size: 12px !important;
  line-height: 1.7 !important;
  min-height: 250px;
}

.quick-main {
  padding: 10px !important;
}

.quick-toolbar button,
.quick-top-actions button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
}

.quick-switch em,
.quick-inline-field,
.quick-input-counter,
.quick-status,
.quick-summary-row {
  font-size: 11px !important;
}

.quick-decode-preview {
  border: 1px solid var(--member-line) !important;
  background: #f8f9fa !important;
}

/* 报表统一为小字号、方形表格 */
.report-toolbar {
  border: 1px solid var(--member-line) !important;
  background: #f8f9fa !important;
  padding: 8px !important;
  gap: 8px !important;
}

.report-field span,
.report-radio-group,
.report-status {
  font-size: 11px !important;
}

.report-table,
.compact-table {
  font-size: 11px !important;
  border-collapse: collapse !important;
}

.report-table th,
.report-table td,
.compact-table th,
.compact-table td {
  border: 1px solid #c7cdd3 !important;
  padding: 6px 7px !important;
  line-height: 1.35 !important;
  vertical-align: middle;
}

.report-table th,
.compact-table th {
  background: #e9edf0 !important;
  color: #2d3944 !important;
  font-weight: 700 !important;
}

.report-table tbody tr:nth-child(even) td,
.compact-table tbody tr:nth-child(even) td {
  background-color: #f8f9fa !important;
}

.report-table tbody tr:hover td,
.compact-table tbody tr:hover td {
  background-color: #edf3f7 !important;
}

.bet-detail-table {
  min-width: 860px !important;
  table-layout: fixed;
}

.bet-detail-table th:nth-child(1), .bet-detail-table td:nth-child(1) { width: 60px !important; }
.bet-detail-table th:nth-child(2), .bet-detail-table td:nth-child(2) { width: 185px !important; }
.bet-detail-table th:nth-child(3), .bet-detail-table td:nth-child(3) { width: 150px !important; }
.bet-detail-table th:nth-child(4), .bet-detail-table td:nth-child(4) { width: 90px !important; }
.bet-detail-table th:nth-child(5), .bet-detail-table td:nth-child(5) { width: 86px !important; }
.bet-detail-table th:nth-child(6), .bet-detail-table td:nth-child(6) { width: 90px !important; }
.bet-detail-table th:nth-child(7), .bet-detail-table td:nth-child(7) { width: 105px !important; }
.bet-detail-table th:nth-child(8), .bet-detail-table td:nth-child(8) { width: 105px !important; }

.order-number-link,
.player-name-link,
.history-date-link {
  border: 0 !important;
  background: transparent !important;
  color: #165f91 !important;
  padding: 0 !important;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px !important;
}

.refund-order-btn {
  min-width: 58px;
  padding: 4px 8px;
  background: #fff !important;
  color: var(--member-danger) !important;
  border: 1px solid var(--member-danger) !important;
}

.refund-order-btn:hover {
  background: #fbecec !important;
}

.is-refunded-row td {
  background: #edf7f0 !important;
  color: #4a6353 !important;
}

.status-tag {
  display: inline-block;
  border: 1px solid #9ba5ae;
  background: #f2f4f5 !important;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
}

.status-tag.is-refunded,
.refund-success-mark,
.refund-success-text {
  color: var(--member-success) !important;
  font-weight: 700;
}

.status-tag.is-active {
  border-color: #559473;
  color: #246944;
  background: #edf7f1 !important;
}

.status-tag.is-disabled {
  border-color: #a37a7a;
  color: #8d3030;
  background: #f8eeee !important;
}

.panel-switch-view.is-hidden {
  display: none !important;
}

.detail-view-head,
.history-day-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-view-head > div:nth-child(2),
.history-day-head > div {
  flex: 1;
}

.order-detail-card,
.player-profile-card,
.player-limit-card,
.subordinate-toolbar {
  padding: 12px;
  margin-bottom: 12px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  border-top: 1px solid var(--member-line);
  border-left: 1px solid var(--member-line);
  margin-bottom: 14px;
}

.detail-field {
  min-height: 58px;
  padding: 8px 10px;
  border-right: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  background: #fff !important;
}

.detail-field span {
  display: block;
  color: var(--member-muted);
  font-size: 10px;
  margin-bottom: 4px;
}

.detail-field strong {
  display: block;
  font-size: 12px;
  word-break: break-all;
}

.order-detail-block {
  margin-top: 12px;
}

.order-detail-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.order-source-text {
  min-height: 85px;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--member-line);
  background: #f8f9fa !important;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.number-text-cell {
  white-space: normal;
  word-break: break-word;
  line-height: 1.65 !important;
}

.history-day-detail {
  padding: 12px !important;
}

.history-day-head {
  border-bottom: 1px solid var(--member-line) !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px;
}

.history-day-head strong {
  display: block;
  font-size: 15px;
}

.history-day-head span {
  font-size: 11px;
  color: var(--member-muted);
}

.history-day-summary,
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  border-top: 1px solid var(--member-line);
  border-left: 1px solid var(--member-line);
  margin: 10px 0;
}

.history-day-summary > span,
.stat-cell {
  padding: 8px 10px;
  border-right: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  background: #f8f9fa !important;
  font-size: 10px;
}

.history-day-summary strong,
.stat-cell strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.stat-cell small {
  display: block;
  color: var(--member-muted);
  margin-top: 2px;
}

.view-number-btn {
  padding: 3px 9px !important;
  font-size: 10px !important;
}

/* 下级管理 */
.subordinate-head,
.detail-view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subordinate-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  background: #f8f9fa !important;
}

.subordinate-table {
  min-width: 1060px;
}

.table-action-btn {
  padding: 4px 7px !important;
  font-size: 10px !important;
}

.table-action-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.limit-batch-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--member-line);
  background: #f8f9fa !important;
  margin: 10px 0;
  font-size: 11px;
}

.limit-batch-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.limit-batch-toolbar input,
.limit-number-input {
  width: 110px;
  min-height: 29px;
  padding: 4px 6px;
  text-align: right;
}

.player-limit-table {
  min-width: 900px;
}

.limit-note {
  color: var(--member-muted);
  font-size: 10px;
}

/* 弹窗：方形、无阴影渐变 */
.simple-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.simple-modal.is-hidden {
  display: none !important;
}

.simple-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 31, 38, .46) !important;
}

.simple-modal-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(78vh, 700px);
  overflow: auto;
  padding: 0 !important;
  z-index: 1;
}

.simple-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--member-line);
  background: #e8edf2 !important;
}

.simple-modal-head h3 {
  margin: 0;
  font-size: 14px;
}

.modal-close-btn {
  border: 1px solid #8f99a3 !important;
  background: #fff !important;
  width: 28px;
  height: 26px;
  padding: 0 !important;
  font-size: 18px !important;
}

.modal-number-wrap {
  padding: 12px;
  max-height: 56vh;
}

.create-player-form {
  padding-bottom: 12px !important;
}

.create-player-form .settings-field,
.create-player-form .settings-actions,
.modal-help {
  margin: 10px 12px 0;
}

.player-settings-modal {
  width: min(640px, calc(100vw - 32px));
}

.player-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--member-line);
  background: #f8f9fa !important;
  font-size: 12px;
}

.player-settings-summary span,
.player-settings-summary strong {
  min-width: 0;
}

.player-settings-summary strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-settings-section {
  padding: 12px;
  border-bottom: 1px solid var(--member-line);
}

.player-settings-section:last-child {
  border-bottom: 0;
}

.player-settings-section .settings-field,
.player-settings-section .settings-actions,
.player-settings-section .modal-help {
  margin: 10px 0 0;
}

.point-direction-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--member-line);
  background: #f8f9fa !important;
}

.point-direction-group label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .player-settings-summary {
    grid-template-columns: 1fr;
  }
}

.modal-help {
  padding: 8px;
  border: 1px solid var(--member-line);
  background: #f8f9fa !important;
  font-size: 11px;
  color: var(--member-muted);
}





/* =========================================================
   会员端版头与字号微调（2026-07 二次调整）
   目标：版头分区清晰、导航保持单行、正文恢复舒适字号
   ========================================================= */
body,
.home-view,
.home-main,
.panel {
  font-size: 14px !important;
  line-height: 1.55;
}

/* 版头改为“信息区 + 单行导航区”两层，避免所有内容挤在一行 */
.topbar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 8px 8px 0 !important;
  padding: 0 !important;
  border: 1px solid var(--member-line) !important;
  background: var(--member-surface) !important;
}

.topbar-left {
  display: grid !important;
  grid-template-columns: 72px minmax(280px, 330px) minmax(430px, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100%;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--member-line) !important;
  background: #fff !important;
}

.site-mark {
  width: 72px !important;
  height: 72px !important;
  border: 1px solid var(--member-line) !important;
  background: #f4f7f9 !important;
  color: var(--member-primary) !important;
  box-shadow: none !important;
  font-size: 38px !important;
}

.account-box {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.account-item {
  min-height: 32px !important;
  padding: 5px 10px !important;
  border: 1px solid var(--member-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  align-items: center;
}

.account-item .label {
  color: var(--member-muted) !important;
  font-size: 13px !important;
}

.account-item .value {
  color: var(--member-text) !important;
  font-size: 16px !important;
  line-height: 1.2;
}

.account-item .value-green {
  color: var(--member-success) !important;
}

.account-item .value-red {
  color: var(--member-danger) !important;
}

.lottery-box {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--member-line) !important;
  background: #f8fafb !important;
  box-shadow: none !important;
}

.lottery-item {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 18px;
}

.lottery-item:first-child {
  padding-left: 4px;
}

.lottery-item + .lottery-item {
  border-left: 1px solid var(--member-line);
}

.lottery-row {
  gap: 14px !important;
  align-items: baseline;
  line-height: 1.35 !important;
}

.lottery-name,
.lottery-status {
  font-size: 14px !important;
}

.lottery-name {
  color: #243341 !important;
}

.lottery-period {
  color: var(--member-warning) !important;
  font-size: 16px !important;
}

.lottery-countdown {
  color: #20303e !important;
  font-size: 16px !important;
  letter-spacing: .5px;
}

/* 十一个导航项固定在同一行，图标与文字横向排列 */
.icon-nav {
  display: grid !important;
  grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  gap: 0 !important;
  width: 100%;
  padding: 0 8px !important;
  overflow: visible !important;
  background: #f8fafb !important;
}

.nav-icon-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  padding: 8px 6px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-right: 1px solid #e2e6ea !important;
  border-bottom: 3px solid transparent !important;
  background: transparent !important;
  color: #334452 !important;
  font-size: 14px !important;
  white-space: nowrap;
}

.nav-icon-btn:last-child {
  border-right: 0 !important;
}

.nav-icon-btn .icon-circle,
.icon-circle {
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #9eabb6 !important;
  background: #eef3f6 !important;
  color: #244d68 !important;
  font-size: 14px !important;
}

.nav-icon-btn span:last-child {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.nav-icon-btn:hover,
.nav-icon-btn.is-active {
  background: #e8eef3 !important;
  border-color: transparent !important;
  border-right-color: #d6dce1 !important;
  border-bottom-color: var(--member-primary) !important;
  color: #173f5c !important;
}

.nav-icon-btn.is-active .icon-circle,
.nav-icon-btn:hover .icon-circle {
  border-color: var(--member-primary) !important;
  background: #fff !important;
  color: var(--member-primary) !important;
  box-shadow: none !important;
}

.logout-btn,
.logout-btn span:last-child {
  color: #a33232 !important;
}

.notice-bar {
  height: 32px !important;
  margin: 8px 8px 10px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

/* 全局字号恢复到正常阅读尺寸 */
button {
  font-size: 13px !important;
}

input,
select,
textarea {
  font-size: 14px !important;
}

.panel-head h2,
.detail-view-head h2 {
  font-size: 18px !important;
}

.panel-head p,
.detail-view-head p {
  font-size: 13px !important;
}

.report-title-bar,
.member-card-title {
  font-size: 14px !important;
}

.quick-workbench,
.quick-main,
.quick-side,
.quick-box,
.quick-input,
.quick-toolbar,
.quick-switch,
.quick-summary-row,
.quick-record-list,
.quick-info-table,
.quick-result-table {
  font-size: 14px !important;
}

.quick-box-title,
.quick-account-row {
  font-size: 14px !important;
}

.quick-input {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.quick-toolbar button,
.quick-top-actions button {
  font-size: 13px !important;
}

.quick-switch em,
.quick-inline-field,
.quick-input-counter,
.quick-status,
.quick-summary-row,
.report-field span,
.report-radio-group,
.report-status {
  font-size: 12px !important;
}

.report-table,
.compact-table,
table {
  font-size: 13px !important;
}

.order-number-link,
.player-name-link,
.history-date-link {
  font-size: 13px !important;
}

.status-tag,
.view-number-btn,
.table-action-btn,
.limit-note,
.detail-field span,
.history-day-head span,
.history-day-summary > span,
.stat-cell,
.modal-help {
  font-size: 12px !important;
}

.detail-field strong,
.order-source-text,
.limit-batch-toolbar {
  font-size: 13px !important;
}

.order-detail-block h3,
.simple-modal-head h3 {
  font-size: 14px !important;
}

.history-day-head strong {
  font-size: 16px !important;
}

.history-day-summary strong,
.stat-cell strong {
  font-size: 15px !important;
}



.notice-title {
  flex: 0 0 auto;
  white-space: nowrap;
}

.notice-bar marquee {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

/* 2026-07 会员端优化：开关状态、快速录入可读性、赔率表布局 */
.quick-toolbar,
.quick-top-actions,
.quick-summary-row,
.quick-decode-preview {
  color: #172033 !important;
}

.quick-gray-btn,
.quick-gray-btn.weak,
.quick-outline-btn,
.quick-light-btn,
.quick-mini-btn,
.quick-link-btn,
.quick-inline-field,
.quick-inline-field input,
.quick-group-input {
  color: #172033 !important;
}

.quick-gray-btn.weak {
  background: #eef2f7 !important;
  border-color: #b8c2cf !important;
}

.quick-switch {
  min-height: 36px !important;
  border: 1px solid #aab5c3 !important;
  background: #f3f5f8 !important;
  color: #344054 !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.quick-switch.is-on {
  border-color: #1677ff !important;
  background: #eaf3ff !important;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, .14) !important;
}

.quick-switch.is-selected-game {
  border-color: #e85d04 !important;
  background: #fff0e6 !important;
  box-shadow: 0 0 0 2px rgba(232, 93, 4, .14) !important;
}

.quick-switch em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #243247 !important;
}

.quick-switch em::after {
  content: '关';
  min-width: 20px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: #667085;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.quick-switch.is-on em::after {
  content: '开';
  background: #1677ff;
}

.quick-switch.is-selected-game em::after {
  content: '已选';
  min-width: 28px;
  background: #e85d04;
}

.quick-decode-preview {
  background: #fff !important;
  border-color: #9eabb9 !important;
  white-space: pre-wrap;
}

.quick-preview-empty {
  color: #556273 !important;
}

/* 赔率表不再使用面板内部滚动，交由浏览器页面滚动。 */
.odds-table-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.odds-settings-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.odds-settings-table > thead > tr > th:nth-child(1),
.odds-settings-table > tbody > tr > td:nth-child(1) { width: 11% !important; }
.odds-settings-table > thead > tr > th:nth-child(2),
.odds-settings-table > tbody > tr > td:nth-child(2) { width: 18% !important; }
.odds-settings-table > thead > tr > th:nth-child(3),
.odds-settings-table > tbody > tr > td:nth-child(3) { width: 10% !important; }
.odds-settings-table > thead > tr > th:nth-child(4),
.odds-settings-table > tbody > tr > td:nth-child(4) { width: 14% !important; }
.odds-settings-table > thead > tr > th:nth-child(5),
.odds-settings-table > tbody > tr > td:nth-child(5) { width: 16% !important; }
.odds-settings-table > thead > tr > th:nth-child(6),
.odds-settings-table > tbody > tr > td:nth-child(6) { width: 16% !important; }
.odds-settings-table > thead > tr > th:nth-child(7),
.odds-settings-table > tbody > tr > td:nth-child(7) { width: 8% !important; }
.odds-settings-table > thead > tr > th:nth-child(8),
.odds-settings-table > tbody > tr > td:nth-child(8) { width: 7% !important; }

.odds-settings-table > thead > tr > th,
.odds-settings-table > tbody > tr > td {
  padding: 7px 6px !important;
  overflow-wrap: anywhere;
}

.odds-settings-table .rebate-select {
  width: 72px !important;
  min-width: 64px !important;
  max-width: 100% !important;
}

.limit-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.limit-pair span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid #d6dce4;
  border-radius: 4px;
  background: #f8fafc;
  color: #172033;
  font-weight: 700;
  white-space: nowrap;
}

.limit-pair b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #e8eef6;
  color: #334155;
  font-size: 11px;
}

/* =========================================================
   2026-07 桌面端定稿：快速录入重新排版、方形控件、取消移动端布局
========================================================= */
html,
body {
  min-width: 1280px;
}

body {
  overflow-x: auto;
}

.app-shell,
.home-view,
.home-main {
  min-width: 1280px;
}

.quick-entry-panel {
  min-height: 610px !important;
  padding: 12px !important;
  border: 1px solid #b8c1cc !important;
  border-radius: 0 !important;
  background: #eef1f4 !important;
}

.quick-workbench {
  grid-template-columns: 310px minmax(850px, 1fr) !important;
  gap: 12px !important;
  min-height: 584px !important;
  padding: 0 !important;
}

.quick-side,
.quick-main,
.quick-box,
.quick-top-actions,
.quick-input-wrap,
.quick-toolbar,
.quick-decode-preview,
.quick-summary-row {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.quick-side {
  padding: 0 !important;
  border: 1px solid #aeb8c4 !important;
  background: #fff !important;
}

.quick-box {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #aeb8c4 !important;
}

.quick-box:last-child {
  border-bottom: 0 !important;
}

.quick-box-title {
  min-height: 38px !important;
  padding: 0 44px 0 12px !important;
  justify-content: flex-start !important;
  border-bottom: 1px solid #173f5c !important;
  background: #2f5f7f !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.quick-box-title .quick-mini-btn,
.quick-box-title .quick-link-btn {
  top: 5px !important;
  right: 7px !important;
}

.quick-info-table th,
.quick-info-table td,
.quick-result-table th,
.quick-result-table td,
.quick-account-row {
  border-color: #d5dbe2 !important;
}

.quick-info-table th,
.quick-result-table th {
  background: #f1f3f5 !important;
}

.quick-main {
  gap: 10px !important;
  padding: 0 !important;
}

.quick-top-actions {
  height: 44px !important;
  min-height: 44px !important;
  padding: 5px 8px !important;
  border: 1px solid #aeb8c4 !important;
  background: #fff !important;
}

.quick-top-actions .quick-orange-btn {
  margin-left: 0 !important;
}

.quick-top-actions .quick-outline-btn {
  margin-left: auto !important;
}

.quick-input-wrap {
  border: 1px solid #aeb8c4 !important;
  background: #fff !important;
}

.quick-input {
  min-height: 280px !important;
  border: 0 !important;
  background: #fff !important;
  color: #172033 !important;
  padding: 14px 16px 26px !important;
}

.quick-input:focus {
  box-shadow: inset 0 0 0 2px rgba(47, 95, 127, .18) !important;
}

.quick-input-counter {
  color: #667085 !important;
}

.quick-toolbar {
  min-height: 0 !important;
  padding: 10px !important;
  border: 1px solid #aeb8c4 !important;
  background: #fff !important;
  gap: 10px !important;
}

.quick-toolbar-primary {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.quick-command-group,
.quick-setting-group,
.quick-replace-group,
.quick-order-group,
.quick-game-group {
  display: flex;
  align-items: center;
}

.quick-command-group {
  gap: 6px;
  padding-right: 10px;
  border-right: 1px solid #d4dae1;
}

.quick-setting-group {
  min-width: 0;
  gap: 10px;
}

.quick-replace-group {
  min-width: 0;
  flex: 1;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid #d4dae1;
}

.quick-group-label {
  flex: 0 0 auto;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.quick-control-field {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}

.quick-control-field.compact {
  flex: 1 1 150px;
}

.quick-control-field input,
.quick-group-input,
.quick-inline-field input {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #aeb8c4 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #172033 !important;
  outline: none !important;
}

.quick-control-field input:focus,
.quick-group-input:focus {
  border-color: #2f5f7f !important;
  box-shadow: inset 0 0 0 1px #2f5f7f !important;
}

.quick-warning-field {
  grid-template-columns: auto 112px;
  flex: 0 0 auto;
}

.quick-toolbar-secondary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.quick-order-group {
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d4dae1;
}

.quick-group-field {
  grid-template-columns: auto 180px;
}

.quick-game-group {
  gap: 5px;
  margin-left: 4px;
}

.quick-options-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(104px, 1fr));
  gap: 6px;
}

.quick-mini-btn,
.quick-blue-btn,
.quick-light-btn,
.quick-orange-btn,
.quick-outline-btn,
.quick-icon-btn,
.quick-warn-btn,
.quick-green-btn,
.quick-gray-btn,
.quick-submit-btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid #8f9ba8 !important;
  border-radius: 0 !important;
  background: #f7f8fa !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.quick-link-btn {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.quick-blue-btn,
.quick-green-btn,
.quick-submit-btn,
.quick-orange-btn {
  border-color: #244d68 !important;
  background: #2f5f7f !important;
  color: #fff !important;
}

.quick-submit-btn {
  min-width: 82px !important;
}

.quick-icon-btn.danger,
.quick-warn-btn,
.quick-gray-btn.weak {
  border-color: #9aa6b2 !important;
  background: #f3f4f6 !important;
  color: #344054 !important;
}

.quick-toolbar button:hover,
.quick-top-actions button:hover {
  border-color: #173f5c !important;
  background: #e8edf1 !important;
  color: #173f5c !important;
  filter: none !important;
  box-shadow: none !important;
}

.quick-toolbar .quick-blue-btn:hover,
.quick-toolbar .quick-green-btn:hover,
.quick-toolbar .quick-submit-btn:hover,
.quick-top-actions .quick-orange-btn:hover {
  background: #244d68 !important;
  color: #fff !important;
}

.quick-switch {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  min-width: 0;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 9px !important;
  border: 1px solid #aeb8c4 !important;
  border-radius: 0 !important;
  background: #f7f8fa !important;
  color: #344054 !important;
  box-shadow: none !important;
}

.quick-switch:hover {
  border-color: #6f7d8c !important;
  background: #eef1f4 !important;
}

.quick-switch span {
  position: relative !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #7d8996 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.quick-switch span::after {
  content: '' !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.quick-switch.is-on,
.quick-switch.is-selected-game {
  border-color: #2f5f7f !important;
  background: #eaf0f4 !important;
  color: #173f5c !important;
  box-shadow: none !important;
}

.quick-switch.is-on span,
.quick-switch.is-selected-game span {
  border-color: #2f5f7f !important;
  background: #fff !important;
}

.quick-switch.is-on span::after,
.quick-switch.is-selected-game span::after {
  background: #2f5f7f !important;
}

.quick-switch em {
  display: block !important;
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  font-style: normal !important;
  font-weight: 600 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-switch em::after {
  content: none !important;
}

.quick-game-choice {
  min-width: 64px !important;
  width: 64px;
  justify-content: center !important;
}

.quick-game-choice em {
  overflow: visible;
}

.quick-decode-preview {
  min-height: 90px !important;
  padding: 12px 14px !important;
  border: 1px solid #aeb8c4 !important;
  background: #fff !important;
}

.quick-summary-row {
  min-height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid #aeb8c4 !important;
  background: #f7f8fa !important;
}

.quick-summary-row strong {
  color: #173f5c !important;
  font-size: 17px !important;
}

.quick-summary-row span + span {
  border-left: 1px solid #cbd2da !important;
}

/* 会员资料：福/体数值按截图改为上下排列。 */
.limit-pair {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  border: 1px solid #9eb1bc;
  background: #fff;
}

.limit-pair span {
  justify-content: flex-start !important;
  min-height: 28px;
  padding: 4px 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #ff4a26 !important;
  font-weight: 500 !important;
}

.limit-pair span + span {
  border-top: 1px solid #9eb1bc !important;
}

.limit-pair b {
  min-width: 18px !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ff4a26 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}


/* 2026-07 快速录入细节修正：避免标题重叠、清空按钮换行 */
.quick-input-wrap::before {
  content: none !important;
  display: none !important;
}

.quick-command-group button {
  flex: 0 0 auto;
  white-space: nowrap !important;
}

.quick-icon-btn.danger {
  width: auto !important;
  min-width: 54px !important;
  padding: 0 12px !important;
  line-height: 30px !important;
  white-space: nowrap !important;
}

/* 会员自定义玩家端房间名称 */
.member-room-name-box{
  margin-top:14px;
  padding:13px;
  border:1px solid #dce5ee;
  border-radius:10px;
  background:#f8fbfe;
}
.member-room-name-box > label{
  display:block;
  margin-bottom:8px;
  color:#24364b;
  font-size:13px;
  font-weight:800;
}
.member-room-name-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.member-room-name-row input{
  flex:1;
  min-width:0;
  height:36px;
  padding:0 10px;
  border:1px solid #cfdbe7;
  border-radius:7px;
  background:#fff;
  color:#1f2937;
  outline:none;
}
.member-room-name-row input:focus{
  border-color:#4b91d1;
  box-shadow:0 0 0 3px rgba(75,145,209,.12);
}
.member-room-name-hint{
  margin-top:8px;
  color:#6b7788;
  font-size:12px;
  line-height:1.5;
}
.member-room-name-hint strong{ color:#1f5f9b; }
.member-room-name-msg{
  min-height:18px;
  margin-top:5px;
  color:#708090;
  font-size:12px;
}
.member-room-name-msg.ok{ color:#087a4b; }
.member-room-name-msg.error{ color:#c5392f; }
@media (max-width:680px){
  .member-room-name-row{ align-items:stretch; flex-direction:column; }
  .member-room-name-row button{ width:100%; }
}



/* 会员子账号管理 */
.member-subaccount-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.member-readonly-tip { flex:0 0 auto; padding:11px 14px; border:1px solid #b7d7ef; border-radius:10px; background:#f1f8fe; color:#315d7e; line-height:1.55; }
.member-subaccount-layout { display:grid; grid-template-columns:minmax(390px,.9fr) minmax(650px,1.45fr); gap:18px; align-items:start; }
.member-subaccount-card { overflow:hidden; border:1px solid var(--line,#d9e1e8); border-radius:14px; background:#fff; box-shadow:0 7px 22px rgba(31,64,94,.07); }
.member-subaccount-card-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:15px 18px; border-bottom:1px solid #e1e8ee; background:linear-gradient(180deg,#fbfdff,#f3f7fa); }
.member-subaccount-card-title strong { color:#234d70; font-size:16px; }
.member-subaccount-card-title span { color:#7b8995; font-size:12px; }
.member-subaccount-form { padding:18px; }
.member-subaccount-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.member-subaccount-password { grid-column:1/-1; }
.member-subaccount-fields .settings-field { margin:0; }
.member-subaccount-fields input { min-height:40px; border-radius:8px; }
.member-permission-fieldset { margin:17px 0 12px; border:1px solid #d4e0e8; border-radius:11px; padding:13px; display:grid; grid-template-columns:repeat(2,minmax(180px,1fr)); gap:10px; background:#fafcfe; }
.member-permission-fieldset legend { padding:0 8px; color:#315773; font-weight:700; }
.member-permission-fieldset legend small { color:#83919b; font-weight:400; }
.member-permission-fieldset > label { display:flex; align-items:flex-start; gap:9px; min-height:65px; padding:11px; border:1px solid #e1e8ee; border-radius:9px; background:#fff; cursor:pointer; transition:.15s; }
.member-permission-fieldset > label:hover { border-color:#8dbad9; box-shadow:0 3px 10px rgba(75,145,209,.1); }
.member-permission-fieldset input { width:auto; margin-top:3px; }
.member-permission-fieldset label > span { display:grid; gap:3px; }
.member-permission-fieldset label b { color:#2d4e67; }
.member-permission-fieldset label small { color:#798896; line-height:1.45; }
.inline-field { display:flex; gap:8px; }
.inline-field input { flex:1; }
.member-subaccount-actions { display:flex; align-items:center; gap:12px; justify-content:flex-end; margin-top:12px; }
.subaccount-credentials { display:grid; grid-template-columns:auto 1fr 1fr; gap:8px 14px; align-items:center; margin:14px 0 0; padding:12px 14px; border:1px solid #9bc59b; border-radius:9px; background:#f2fff2; }
.subaccount-permissions { display:grid; grid-template-columns:repeat(2,minmax(110px,1fr)); gap:5px 8px; min-width:260px; text-align:left; }
.subaccount-permissions label { display:flex; align-items:center; gap:5px; padding:4px; border-radius:5px; }
.subaccount-permissions label:hover { background:#f2f7fb; }
.subaccount-permissions input { width:auto; }
.member-subaccount-list-card .report-table-wrap { max-height:640px; }
.member-subaccount-table { min-width:920px; }
.member-subaccount-table td { vertical-align:top; }
.member-subaccount-table .table-input, .member-subaccount-table select { min-height:34px; border-radius:6px; }
@media (max-width:1180px) { .member-subaccount-layout { grid-template-columns:1fr; } }
@media (max-width:720px) {
  .member-subaccount-head { flex-direction:column; }
  .member-readonly-tip { width:100%; }
  .member-subaccount-fields, .member-permission-fieldset { grid-template-columns:1fr; }
  .member-subaccount-password { grid-column:auto; }
  .subaccount-credentials { grid-template-columns:1fr; }
}

/* =========================================================
   2026-07 会员端版头与下注明细分页修正
   ========================================================= */
.topbar-left {
  grid-template-columns: 72px minmax(500px, 560px) minmax(560px, 760px) !important;
  justify-content: start !important;
}

.account-box {
  width: 100% !important;
  min-width: 500px !important;
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
}

.account-item {
  min-width: 0 !important;
  gap: 12px !important;
}

.account-item .label,
.account-item .value {
  white-space: nowrap !important;
}

.account-item .label {
  flex: 0 0 auto;
}

.account-item .value {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

.lottery-box {
  width: 100% !important;
  max-width: 760px !important;
  grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid var(--member-line, #d6dde4);
  background: #f8fafb;
}

.report-pagination .small-btn {
  min-width: 82px;
}

.report-pagination button:disabled {
  cursor: not-allowed !important;
  opacity: .45;
}

.report-page-info {
  min-width: 92px;
  color: #243341;
  font-weight: 700;
  text-align: center;
}

.report-page-size {
  color: var(--member-muted, #677482);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .topbar-left {
    grid-template-columns: 72px minmax(500px, 1fr) !important;
  }

  .lottery-box {
    grid-column: 2;
    max-width: 760px !important;
  }
}

/* 更换线路改为弹窗 */
.route-modal-card { width: min(620px, calc(100vw - 24px)); }
.route-modal-tip { padding: 12px 14px 4px; color: #66727c; font-size: 13px; }
.route-modal-list { padding: 10px 14px 4px; }
.route-select-card { appearance: none; width: 100%; text-align: left; cursor: pointer; }
.route-select-card.is-current { border: 2px solid #2c7b69 !important; background: #eef8f5 !important; }
.route-select-card > b { flex: 0 0 auto; color: #177a54; font-size: 13px; }
.route-select-card > b.is-slow { color: #aa6900; }
.route-select-card > b.is-error { color: #b02f37; }
.route-modal-status { min-height: 30px; padding: 4px 14px 12px; }
.route-modal-empty { padding: 22px 10px; border: 1px dashed #aeb8c2; color: #727d87; text-align: center; }
