/* 优米体育 · 浅蓝 App 外壳 + PC 版 */
:root {
  --yomi-bg: #f3f7ff;
  --yomi-bg-page: #f8faff;
  --yomi-bar: #e8f0ff;
  --yomi-blue: #4c7dff;
  --yomi-blue-soft: #dce8ff;
}

html {
  background: linear-gradient(180deg, #e4edf9 0%, #eef3fb 40%, #f5f8ff 100%);
}

.yomi-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #4c7dff, #6b93ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
}

.yomi-app-bar-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--yomi-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.yomi-shell.app,
.yomi-shell.page {
  background: var(--yomi-bg-page) !important;
  box-shadow: 0 12px 40px rgba(76, 125, 255, .12);
}

.yomi-promo-strip {
  display: block;
  margin: 8px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 16px rgba(76, 125, 255, .12);
  border: 1px solid rgba(76, 125, 255, .1);
}

.yomi-promo-strip img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.yomi-pc-inner {
  display: block;
}

.yomi-pc-sidebar {
  display: none;
}

.yomi-main {
  min-width: 0;
}

/* 浅色覆盖旧深色块 */
.yomi-shell .live-comments {
  background: linear-gradient(165deg, #6b93ff, #a8c4ff) !important;
}

.yomi-shell .live-comments-viewport::before {
  background: linear-gradient(to bottom, rgba(107, 147, 255, .92), transparent) !important;
}

.yomi-shell .live-bubble {
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

.yomi-shell .result-panel,
.yomi-shell .result-tabs .tab,
.yomi-shell .tab-row .tab,
.yomi-shell .card-grid .card,
.yomi-shell .modal-card,
.yomi-shell .news-modal-card {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.yomi-shell .result-tabs .tab.active,
.yomi-shell .tab.active {
  background: var(--yomi-blue-soft) !important;
  color: var(--yomi-blue) !important;
}

.yomi-shell #panel-home > .brand-banner,
.yomi-shell #panel-home > .home-auth-card,
.yomi-shell .brand-banner.yomi-hide-dupe {
  display: none !important;
}

.yomi-shell .carousel {
  margin-left: 12px;
  margin-right: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(76, 125, 255, .15);
}

.yomi-shell .top {
  background: #fff !important;
  box-shadow: 0 1px 0 var(--border);
}

/* 顶部 Tab：浅蓝未选 / 深蓝选中（!important 压过页内 style） */
.yomi-shell .nav-scroll {
  gap: 8px !important;
  padding: 4px 12px 12px !important;
  scroll-snap-type: x proximity;
}

.yomi-shell .nav-scroll a {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  position: relative !important;
  color: #1e40af !important;
  background: #e8f0ff !important;
  border: 1px solid #b8cffd !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, .08) !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.yomi-shell .nav-scroll a .nav-ico {
  font-size: 14px;
  line-height: 1;
}

.yomi-shell .nav-scroll a:active {
  transform: scale(0.96);
}

.yomi-shell .nav-scroll a.active {
  color: #fff !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 45%, #2563eb 100%) !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 6px 16px rgba(30, 64, 175, .45) !important;
}

.yomi-shell .nav-scroll a.active::after {
  display: none !important;
  content: none !important;
}

/* 手机底栏：胶囊按钮；PC 隐藏 */
@media (max-width: 991.98px) {
  body.yomi-site nav.bottom-nav,
  body.yomi-site #bottomNav {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    min-height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    border-top: 1px solid #dce8ff !important;
    box-shadow: 0 -4px 20px rgba(30, 64, 175, .08) !important;
  }

  body.yomi-site #bottomNav a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    background: #e8f0ff !important;
    border: 1px solid #c7d9fc !important;
  }

  body.yomi-site #bottomNav a strong {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body.yomi-site #bottomNav a.active {
    color: #fff !important;
    background: linear-gradient(180deg, #1e3a8a, #2563eb) !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, .35) !important;
  }

  body.yomi-site:has(#bottomNav) .cs-float-anchor {
    display: none !important;
  }
}

body.yomi-site:has(.yomi-app-bar) nav.bottom-nav {
  max-width: 430px;
}

.yomi-shell .notice {
  background: #fff;
  border: 1px solid var(--border);
}

.yomi-shell .hall-grid {
  grid-template-columns: 1fr 1fr;
}

/* 福利页 · 特殊彩金 */
.welfare-special-promo {
  position: relative;
  margin: 14px 0 16px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(145deg, #fff7ed 0%, #fff 42%, #eff6ff 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 32px rgba(234, 88, 12, .15), 0 0 0 1px rgba(251, 146, 60, .35);
}

.welfare-special-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #f97316, #fb7185, #2563eb);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.welfare-special-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  box-shadow: 0 4px 12px rgba(220, 38, 38, .35);
}

.welfare-special-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #1e3a8a;
}

.welfare-special-offer {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  color: #0f172a;
}

.welfare-special-offer .num {
  color: #2563eb;
}

.welfare-special-offer .plus {
  margin: 0 6px;
  color: #dc2626;
}

.welfare-special-offer .total {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: #ea580c;
}

.welfare-special-sub {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.welfare-special-cta {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.welfare-special-cta .sep {
  opacity: .65;
  margin: 0 6px;
  font-weight: 700;
}

.welfare-special-cta:active {
  transform: scale(0.98);
}

body.yomi-site .cs-float-btn,
body.yomi-site .cs-float-btn-global {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  box-shadow: 0 10px 28px rgba(30, 64, 175, .45) !important;
  opacity: 1 !important;
}

body.yomi-site .cs-float-btn .cs-float-label {
  display: none;
  color: #fff !important;
}

body.yomi-site .cs-float-anchor {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

@keyframes yomi-cs-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(76, 125, 255, .35);
  }
  50% {
    box-shadow: 0 10px 32px rgba(76, 125, 255, .5), 0 0 0 6px rgba(76, 125, 255, .14);
  }
}

@media (min-width: 992px) {
  body {
    padding-bottom: 24px !important;
  }

  .yomi-app-bar {
    border-radius: 12px;
    margin-top: 12px;
  }

  .yomi-shell.app,
  .yomi-shell.page {
    max-width: 1180px !important;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    min-height: auto;
  }

  .yomi-pc-inner {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    padding: 0 16px 16px;
    align-items: start;
  }

  .yomi-pc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 72px;
    padding: 12px 0;
  }

  .yomi-pc-sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s, color .15s;
  }

  .yomi-pc-sidebar a:hover,
  .yomi-pc-sidebar a.active {
    background: var(--yomi-blue-soft);
    color: var(--yomi-blue);
    border-color: rgba(76, 125, 255, .35);
  }

  .yomi-shell .carousel {
    height: 280px !important;
    margin: 12px 0 0;
  }

  .yomi-shell .hero-slot {
    margin: 12px 0 0 !important;
  }

  .yomi-promo-strip {
    margin: 12px 0 0;
  }

  .yomi-shell .hall-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-left: 0;
    margin-right: 0;
  }

  .yomi-shell .hall-card {
    min-height: 140px;
  }

  .yomi-shell .hall-card img {
    height: 140px;
  }

  /* PC：无底栏，只显示客服浮标 */
  body.yomi-site nav.bottom-nav,
  body.yomi-site #bottomNav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.yomi-site .cs-float-anchor {
    display: block !important;
    position: fixed !important;
    left: auto !important;
    right: max(20px, calc(50% - 590px + 20px)) !important;
    bottom: 40px !important;
    z-index: 9999 !important;
    transform: none !important;
  }

  body.yomi-site .cs-float-btn {
    width: auto !important;
    min-height: 58px !important;
    padding: 0 24px 0 18px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    animation: yomi-cs-pulse 2.6s ease-in-out infinite;
  }

  body.yomi-site .cs-float-btn .cs-float-label {
    display: inline !important;
  }

  body.yomi-site .cs-float-icon {
    font-size: 24px;
    line-height: 1;
  }

  .yomi-shell .nav-scroll {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 16px 14px;
  }

  .yomi-shell .nav-scroll a {
    padding: 10px 18px;
    font-size: 14px;
  }

  .yomi-shell .page-footer {
    margin-left: 0;
    margin-right: 0;
  }

  /* 彩票 PC */
  .yomi-shell.page .icon-grid {
    grid-template-columns: repeat(8, 1fr);
    padding-left: 0;
    padding-right: 0;
  }

  .yomi-shell.page .section-title,
  .yomi-shell.page .hall-grid,
  .yomi-shell.page .card-grid,
  .yomi-shell.page .result-tabs,
  .yomi-shell.page .result-panel,
  .yomi-shell.page .live-comments-slot,
  .yomi-shell.page .notice,
  .yomi-shell.page .banner {
    margin-left: 0;
    margin-right: 0;
  }

  .yomi-shell.page .carousel {
    margin: 12px 0 0;
  }
}

@media (min-width: 1200px) {
  .yomi-shell .carousel {
    height: 320px !important;
  }
}
