:root {
  color-scheme: light;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --qs-app-safe-top: env(safe-area-inset-top, 0px);
  --qs-app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --qs-user-bottom-nav-height: calc(64px + var(--qs-app-safe-bottom));
}

html {
  overscroll-behavior-x: none;
}

body[data-user-production-page="true"] {
  margin: 0;
  min-width: 320px;
  -webkit-tap-highlight-color: transparent;
}

body[data-user-production-page="true"] [hidden] {
  display: none !important;
}

body[data-user-production-page="true"] .hidden {
  display: none !important;
}

html[data-qs-modal-open="true"],
html[data-qs-modal-open="true"] body {
  overflow: hidden !important;
}

body[data-user-production-page="true"] input,
body[data-user-production-page="true"] select,
body[data-user-production-page="true"] textarea {
  font-size: max(16px, 1em);
}

/* UI1-NAV-01: top menus stay in document flow; fixed business bars keep their own contracts. */
body[data-user-production-page="true"] [data-action-log="top-app-bar"]:not(.fixed) {
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* UI1-NAV-01: home and mine top bars must remain in document flow. */
body[data-screen-id="user-home"] > header,
body[data-qiushi-page="mine"] [data-action-log="top-app-bar"] {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

body[data-screen-id="user-home"] .qs-home-main > .h-14 {
  display: none !important;
}

body[data-qiushi-page="mine"] main.pt-14 {
  padding-top: 0 !important;
}

/* Fixed top bars must stay inside the locked 402px terminal canvas on desktop previews. */
@media (min-width: 500px) {
  body[data-user-production-page="true"] [data-action-log="top-app-bar"].fixed {
    width: 402px !important;
    max-width: 402px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* Keep document-flow top bars aligned to the application canvas on desktop. */
@media (min-width: 500px) {
  body[data-screen-id="user-home"] > header.fixed,
  body[data-qiushi-page="mine"] [data-action-log="top-app-bar"].fixed {
    width: 100% !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

body[data-qiushi-page="football"] [class*="bottom-[56px]"],
body[data-qiushi-page="football-detail"] [class*="bottom-[56px]"],
body[data-qiushi-page="basketball-detail"] [class*="bottom-[56px]"],
body[data-qiushi-page="beijing-single"] [class*="bottom-[56px]"],
body[data-qiushi-page="basketball"] footer[class*="bottom-14"] {
  bottom: var(--qs-user-bottom-nav-height) !important;
}

.qs-ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--qs-ui-icon) no-repeat center / contain;
  mask: var(--qs-ui-icon) no-repeat center / contain;
}

.qs-league-badge {
  --qs-league-color: #dc2626;
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 24px !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--qs-league-color) !important;
  box-shadow: none;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.qs-match-meta {
  display: inline-flex;
  min-width: 58px;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  color: #666;
  line-height: 1;
}

.qs-match-meta__top {
  display: inline-flex;
  min-width: 0;
  max-width: 104px;
  align-items: center;
  gap: 4px;
}

.qs-match-meta__issue,
.qs-match-meta__time {
  color: #666;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.qs-match-meta__time { display: block; }

.qs-team-logo-frame,
.qs-team-logo-frame img,
img.qs-team-logo-frame {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.qs-team-logo-fallback {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9 !important;
  color: #d71920;
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
}

.qs-football-more-sheet[hidden] { display: none !important; }

.qs-production-empty__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 52px;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 12px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.qs-production-empty__header a {
  color: #d71920;
  font-size: 30px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

.qs-production-empty__header h1 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qs-production-empty {
  display: flex;
  min-height: calc(100dvh - 132px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px 24px 96px;
  background: #f8fafc;
  color: #111827;
  text-align: center;
}

.qs-production-empty__mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: #fff1f2;
  color: #d71920;
  font-size: 18px;
  font-weight: 800;
}

.qs-production-empty h2 { margin: 18px 0 0; font-size: 18px; }
.qs-production-empty p { margin: 8px 0 0; color: #6b7280; font-size: 14px; line-height: 22px; }
.qs-production-empty > a { margin-top: 20px; color: #d71920; font-size: 14px; text-decoration: none; }

.qs-production-empty__back {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #374151;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.qs-production-empty__action {
  min-width: 144px;
  min-height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: #e5e7eb;
  color: #9ca3af;
  font: inherit;
  cursor: not-allowed;
}

.qs-production-nav {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.05);
}

.qs-production-nav__item {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  color: #6b7280;
  font-size: 10px;
  line-height: 14px;
  text-decoration: none;
}

.qs-production-nav__item.is-active {
  color: #d71920;
  font-weight: 700;
}

.qs-production-nav__icon {
  width: 24px;
  height: 24px;
  overflow: hidden;
  font-size: 23px;
  line-height: 24px;
}

/* Fallback for reviewed pages whose navigation style lived outside the page fragment. */
.qs-events-bottom-nav[data-user-production-shared-navigation] {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--qs-user-bottom-nav-height);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px var(--qs-app-safe-bottom);
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.05);
}

.qs-events-bottom-nav[data-user-production-shared-navigation] .qs-events-bottom-nav__item {
  display: flex;
  min-width: 32px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 0;
  color: #6b7280;
  text-decoration: none;
}

.qs-events-bottom-nav[data-user-production-shared-navigation] .qs-events-bottom-nav__item.is-active {
  color: #d71920;
  font-weight: 700;
}

@media (min-width: 720px) {
  .qs-production-nav {
    right: 50%;
    left: 50%;
    width: min(100%, 402px);
    transform: translateX(-50%);
  }
}

.qs-state-page {
  min-height: calc(100dvh - 64px);
  padding: 16px 16px 96px;
  background: #f8fafc;
  color: #111827;
}

.qs-state-topbar,
.qs-state-home-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 52px;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 12px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.qs-state-topbar a,
.qs-state-home-head a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: #d71920;
  text-decoration: none;
}

.qs-state-topbar h1,
.qs-state-home-head h1 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qs-state-brand {
  grid-column: 1 / 3;
  color: #d71920;
  font-size: 22px;
  font-weight: 800;
}

.qs-state-home-head a { grid-column: 3; }
.qs-state-home { padding-top: 12px; }

.qs-state-tabs {
  display: flex;
  gap: 22px;
  min-height: 48px;
  align-items: center;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  scrollbar-width: none;
}

.qs-state-tabs::-webkit-scrollbar { display: none; }
.qs-state-tabs a { color: #6b7280; font-size: 13px; text-decoration: none; white-space: nowrap; }
.qs-state-tabs a.is-active { color: #d71920; font-weight: 700; }

.qs-state-status,
.qs-state-account,
.qs-state-detail-placeholder {
  display: grid;
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.qs-state-status { grid-template-columns: repeat(3, 1fr); padding: 14px 8px; }
.qs-state-status div { display: grid; gap: 3px; justify-items: center; border-right: 1px solid #eef0f2; }
.qs-state-status div:last-child { border-right: 0; }
.qs-state-status span, .qs-state-account span, .qs-state-detail-placeholder span { color: #6b7280; font-size: 11px; }
.qs-state-status strong { font-size: 18px; }

.qs-state-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.qs-state-shortcuts a {
  display: grid;
  min-height: 76px;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  text-decoration: none;
}

.qs-state-shortcuts .material-symbols-outlined { color: #d71920; font-size: 23px; }

.qs-state-section { margin: 16px 0; border-top: 1px solid #e5e7eb; background: #fff; }
.qs-state-section--flush { margin-top: 0; }
.qs-state-section__head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.qs-state-section__head h2 { margin: 0; color: #111827; font-size: 16px; }
.qs-state-section__head a { color: #d71920; font-size: 12px; text-decoration: none; }
.qs-state-badge { color: #6b7280; font-size: 12px; }

.qs-state-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px 16px;
  border-top: 1px solid #f0f1f2;
  text-align: center;
}

.qs-state-empty .material-symbols-outlined { color: #9ca3af; font-size: 30px; }
.qs-state-empty strong { color: #374151; font-size: 14px; }
.qs-state-empty p { margin: 0; color: #6b7280; font-size: 12px; line-height: 18px; }

.qs-state-account { grid-template-columns: 48px minmax(0, 1fr); align-items: center; padding: 16px; }
.qs-state-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff1f2; color: #d71920; }
.qs-state-account strong, .qs-state-account span { display: block; }
.qs-state-account dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin: 14px 0 0; border-top: 1px solid #eef0f2; padding-top: 12px; }
.qs-state-account dl div { display: grid; gap: 3px; }
.qs-state-account dt { color: #6b7280; font-size: 11px; }
.qs-state-account dd { margin: 0; font-size: 16px; font-weight: 700; }

.qs-state-detail-placeholder { grid-template-columns: repeat(3, 1fr); padding: 14px; text-align: center; }
.qs-state-detail-placeholder strong { font-size: 16px; }
.qs-state-primary { display: block; width: 100%; min-height: 44px; border: 0; background: #e5e7eb; color: #9ca3af; font-size: 14px; }
.qs-state-primary:disabled { cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@keyframes qs-attention-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.qs-attention-pulse {
  animation: qs-attention-breathe 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .qs-attention-pulse { animation: none; }
}

/* Official digital-lottery hues, rendered as compact dimensional draw balls. */
.qs-lottery-ball-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}

.qs-lottery-ball {
  --qs-ball-color: #e12633;
  --qs-ball-edge: #b81723;
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--qs-ball-edge);
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--qs-ball-color) 68%, white) 0%, var(--qs-ball-color) 46%, color-mix(in srgb, var(--qs-ball-color) 76%, black) 100%);
  box-shadow:
    inset -3px -4px 5px rgba(0, 0, 0, 0.2),
    inset 2px 2px 3px rgba(255, 255, 255, 0.3),
    0 2px 3px rgba(17, 24, 39, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.34);
}

.qs-lottery-ball-group--compact { gap: 3px; }
.qs-lottery-ball-group--split { display: inline-grid; gap: 4px; }
.qs-lottery-ball-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: inherit; }
.qs-lottery-ball-group--compact .qs-lottery-ball {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 11px;
  box-shadow: inset -2px -3px 4px rgba(0, 0, 0, 0.19), inset 1px 1px 2px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(17, 24, 39, 0.2);
}

.qs-lottery-ball--welfare-red { --qs-ball-color: #e12633; --qs-ball-edge: #b81723; }
.qs-lottery-ball--welfare-blue { --qs-ball-color: #2673e1; --qs-ball-edge: #1654b0; }
.qs-lottery-ball--welfare-cyan { --qs-ball-color: #26afe1; --qs-ball-edge: #1687b3; }
.qs-lottery-ball--welfare-gold { --qs-ball-color: #f3ae00; --qs-ball-edge: #c98a00; }
.qs-lottery-ball--welfare-special { --qs-ball-color: #f37100; --qs-ball-edge: #c45400; }
.qs-lottery-ball--welfare-orange { --qs-ball-color: #f33600; --qs-ball-edge: #c32500; }
.qs-lottery-ball--sport-blue { --qs-ball-color: #499bf4; --qs-ball-edge: #2778cd; }
.qs-lottery-ball--sport-orange { --qs-ball-color: #ff9100; --qs-ball-edge: #d47400; }
.qs-lottery-ball--sport-purple { --qs-ball-color: #ac5198; --qs-ball-edge: #843b73; }
.qs-lottery-ball--sport-pink { --qs-ball-color: #f15188; --qs-ball-edge: #c83269; }
.qs-lottery-ball--sport-indigo { --qs-ball-color: #3f4888; --qs-ball-edge: #2c3366; }

/* 特征分析（赛事前瞻）对比卡排版 */
#preview-feature .qs-feature-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f0eded;
  border-radius: 10px;
  background: #faf8f8;
}
#preview-feature .qs-feature-teams__name {
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}
#preview-feature .qs-feature-teams__name.is-home { color: #d71920; }
#preview-feature .qs-feature-teams__name.is-away { color: #241b1b; }
#preview-feature .qs-feature-teams__vs {
  flex: 0 0 auto;
  color: #9a9191;
  font-size: 11px;
  line-height: 16px;
}
#preview-feature .qs-feature-list {
  display: grid;
  gap: 10px;
}
#preview-feature .qs-feature-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid #f0eded;
  border-radius: 10px;
  background: #fff;
}
#preview-feature .qs-feature-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#preview-feature .qs-feature-row__label {
  color: #241b1b;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
#preview-feature .qs-feature-row__meta {
  flex: 0 0 auto;
  color: #9a9191;
  font-size: 10px;
  line-height: 14px;
}
#preview-feature .qs-feature-row__values {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
#preview-feature .qs-feature-row__value {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#preview-feature .qs-feature-row__value.is-home { color: #d71920; }
#preview-feature .qs-feature-row__value.is-away { align-items: flex-end; text-align: right; color: #241b1b; }
#preview-feature .qs-feature-row__rate {
  margin-top: 2px;
  color: #9a9191;
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
}
#preview-feature .qs-feature-row__track {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0eded;
}
#preview-feature .qs-feature-row__track i {
  display: block;
  height: 100%;
  min-width: 1px;
}
#preview-feature .qs-feature-row__track i.is-home { background: #d71920; }
#preview-feature .qs-feature-row__track i.is-rest { background: #ece7e7; }
#preview-feature .qs-feature-row__track i.is-away { background: #52525b; }

/* 历史交锋 / 比赛近况 / 未来赛事 / 射手信息 排版 */
#preview-history .qs-wdl,
#preview-recent .qs-wdl {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f0eded;
  border-radius: 10px;
  background: #faf8f8;
}
#preview-history .qs-wdl__bar,
#preview-recent .qs-wdl__bar {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0eded;
}
#preview-history .qs-wdl__bar i,
#preview-recent .qs-wdl__bar i {
  display: block;
  height: 100%;
  min-width: 1px;
}
#preview-history .qs-wdl__bar i.is-win,
#preview-recent .qs-wdl__bar i.is-win { background: #d71920; }
#preview-history .qs-wdl__bar i.is-draw,
#preview-recent .qs-wdl__bar i.is-draw { background: #dcd5d5; }
#preview-history .qs-wdl__bar i.is-loss,
#preview-recent .qs-wdl__bar i.is-loss { background: #52525b; }
#preview-history .qs-wdl__labels,
#preview-recent .qs-wdl__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #8a8080;
  font-size: 11px;
  line-height: 16px;
}
#preview-history .qs-wdl__labels .is-win,
#preview-recent .qs-wdl__labels .is-win { color: #d71920; font-weight: 700; }
#preview-history .qs-wdl__labels .is-loss,
#preview-recent .qs-wdl__labels .is-loss { color: #52525b; font-weight: 700; }

#preview-history .qs-match-list,
#preview-recent .qs-match-list,
#preview-future .qs-match-list {
  display: grid;
  gap: 10px;
}
.qs-match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #f0eded;
  border-radius: 10px;
  background: #fff;
}
.qs-match-card__meta {
  display: flex;
  flex: 0 0 56px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.qs-match-card__date {
  color: #241b1b;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}
.qs-match-card__year {
  color: #9a9191;
  font-size: 9px;
  line-height: 12px;
}
.qs-match-card__league {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f4f1f1;
  color: #746a6a;
  font-size: 9px;
  line-height: 14px;
}
.qs-match-card__teams {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.qs-match-card__team {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #241b1b;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}
.qs-match-card__team.is-left { text-align: left; }
.qs-match-card__team.is-right { text-align: right; }
.qs-match-card__score {
  flex: 0 0 auto;
  color: #d71920;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  white-space: nowrap;
}
.qs-match-card__score small {
  display: block;
  color: #9a9191;
  font-size: 9px;
  font-weight: 400;
  line-height: 12px;
  text-align: center;
}
.qs-match-card__score.is-future {
  padding: 2px 6px;
  border-radius: 5px;
  background: #faf8f8;
  color: #8a8080;
  font-size: 10px;
  font-weight: 600;
}

#preview-recent .qs-team-blocks,
#preview-future .qs-team-blocks,
#preview-players .qs-team-blocks {
  display: grid;
  gap: 14px;
}
.qs-team-block {
  min-width: 0;
  padding: 14px 14px 10px;
  border: 1px solid #ece7e7;
  border-radius: 14px;
  background: #fff;
}
.qs-team-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f2f2;
}
.qs-team-block__head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #241b1b;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}
.qs-team-block__head span {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(215, 25, 32, 0.08);
  color: #d71920;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

#preview-future .qs-future-list {
  display: grid;
}
#preview-future .qs-future-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0 12px 10px;
  border-bottom: 1px solid #f5f2f2;
}
#preview-future .qs-future-row:last-child {
  padding-bottom: 6px;
  border-bottom: 0;
}
#preview-future .qs-future-row.is-next::before {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: #d71920;
  content: '';
}
#preview-future .qs-future-row__date {
  display: flex;
  flex: 0 0 52px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
#preview-future .qs-future-row__date strong {
  color: #241b1b;
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
}
#preview-future .qs-future-row__date span {
  color: #9a9191;
  font-size: 11px;
  line-height: 14px;
}
#preview-future .qs-future-row__main {
  flex: 1 1 auto;
  min-width: 0;
}
#preview-future .qs-future-row__league {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f4f1f1;
  color: #746a6a;
  font-size: 10px;
  line-height: 15px;
}
#preview-future .qs-future-row__teams {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#preview-future .qs-future-row__team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #52525b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
#preview-future .qs-future-row__team.is-current {
  color: #d71920;
  font-weight: 800;
}
#preview-future .qs-future-row__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d71920;
}
#preview-future .qs-future-row__vs {
  flex: 0 0 auto;
  color: #c4bbbb;
  font-size: 11px;
  line-height: 14px;
}
#preview-future .qs-future-row__time {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6f2f2;
  color: #8a4a4e;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
#preview-future .qs-future-row__time.is-tbd {
  background: #faf8f8;
  color: #b5abab;
  font-weight: 600;
}

#preview-players .qs-wdl { display: none; }
#preview-players .qs-player-list { display: grid; gap: 8px; }
#preview-players .qs-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #faf8f8;
}
#preview-players .qs-player-row__rank {
  flex: 0 0 22px;
  color: #9a9191;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}
#preview-players .qs-player-row__main {
  flex: 1 1 auto;
  min-width: 0;
}
#preview-players .qs-player-row__main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #241b1b;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
#preview-players .qs-player-row__main span {
  display: block;
  color: #8a8080;
  font-size: 10px;
  line-height: 14px;
}
#preview-players .qs-player-row__stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
#preview-players .qs-player-row__goals {
  color: #d71920;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  white-space: nowrap;
}
#preview-players .qs-player-row__meta {
  color: #9a9191;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}

/* ===== 用户端顶部栏统一标准（2026-08-08 系统级，对全部用户页自动生效） =====
   页面标题 20/28px 600 品牌红、靠左；顶栏高度统一 56px。
   例外：首页品牌字 30px/700；会员中心标题白色（品牌红背景）。 */
body[data-qiushi-page] header h1 {
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 600 !important;
  color: #d71920 !important;
  text-align: left;
}

body[data-qiushi-page="home"] header h1 {
  font-size: 30px !important;
  line-height: 30px !important;
  font-weight: 700 !important;
}

body[data-qiushi-page="member"] header h1 {
  color: #ffffff !important;
}

body[data-qiushi-page] header[class*="h-11"],
body[data-qiushi-page] header[class*="h-12"],
body[data-qiushi-page] header[class*="h-16"] {
  height: 56px !important;
}

/* 标题为顶栏直接子元素时（返回键/标题/右侧操作三列布局），强制靠左与返回键同组 */
body[data-qiushi-page] header > h1 {
  margin-right: auto;
}

/* 返回键系统标准：品牌红、≥40px 触控区、20px 图标 */
body[data-qiushi-page] header [aria-label^="返回"],
body[data-qiushi-page] header [data-route-back] {
  color: #d71920;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

body[data-qiushi-page] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page] header [aria-label^="返回"] svg,
body[data-qiushi-page] header [data-route-back] .qs-ui-icon,
body[data-qiushi-page] header [data-route-back] svg {
  width: 20px;
  height: 20px;
  color: #d71920;
}

body[data-qiushi-page="member"] header [aria-label^="返回"] {
  color: #ffffff !important;
}

body[data-qiushi-page="member"] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page="member"] header [aria-label^="返回"] svg {
  color: #ffffff !important;
}

/* 数字彩订单明细：玩法元信息与号码分层，多球内容在窄屏稳定换行。 */
body[data-qiushi-page="order-detail"] .qs-order-detail-scheme-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-scheme-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  margin-bottom: 12px;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-scheme-head__meta {
  min-width: 0;
  color: #5e6063;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-scheme-head__play-type {
  max-width: 100%;
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid #e3b7ba;
  border-radius: 999px;
  background: #ffffff;
  color: #b51d24;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  overflow-wrap: anywhere;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eef0f2;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__group {
  display: grid;
  grid-template-columns: minmax(66px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__group + .qs-order-detail-digital-pick__group {
  padding-top: 10px;
  border-top: 1px solid #f1f2f3;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__label {
  color: #707174;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__balls {
  min-width: 0;
  overflow: hidden;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__balls .qs-lottery-ball-group {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__balls .qs-lottery-ball {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}
body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__empty {
  color: #707174;
  font-size: 13px;
  line-height: 20px;
}
@media (max-width:380px) {
  body[data-qiushi-page="order-detail"] .qs-order-detail-scheme-card { padding: 12px; }
  body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__group { grid-template-columns: minmax(58px, auto) minmax(0, 1fr); gap: 7px; }
  body[data-qiushi-page="order-detail"] .qs-order-detail-digital-pick__balls .qs-lottery-ball { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
}

/* Final UI1-NAV-01 alignment override for document-flow home and mine bars. */
body[data-screen-id="user-home"] > header.fixed:not([data-action-log]),
body[data-qiushi-page="mine"] > header.fixed[data-action-log="top-app-bar"] {
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
