:root {
  --red-brand: #d80011;
  --red-dark: #991b1b;
  --pink-header: #ffc9c9;
  --yellow-accent: #eee222;
  --yellow-active: #fff100;
  --border-gray: #dadada;
  --border-box: #d4d4d4;
  --shadow-card: 0 1px 4px #c8c8c8;
  --text-dark: #292929;
  --text-digit: #3b3b3b;
  --text-muted: #848484;
  --text-light: #a4a4a4;
  --zebra-bg: #f0f0f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
  padding-bottom: 64px;
}

/* ==================== 1. 顶部 Logo 与 6 色导航栏 ==================== */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-gray);
}

.header-top {
  max-width: 1170px;
  margin: 0 auto;
  height: 110px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-3d {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 45%, #d80011 95%);
  border: 3px solid #d80011;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  box-shadow: 0 3px 10px rgba(216, 0, 17, 0.25);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--red-brand);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.header-datetime {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 500;
}

.nav-bar-wrap {
  max-width: 1170px;
  margin: 0 auto;
  border-bottom: 5px solid var(--yellow-accent);
}

.desktop-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 38px;
}

.desktop-nav .nav-btn {
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.desktop-nav .nav-btn:hover {
  filter: brightness(1.08);
}

.desktop-nav .nav-btn.active {
  color: var(--yellow-active);
}

.nav-color-1 { background: linear-gradient(180deg, #ef4444 0%, #d80011 100%); }
.nav-color-2 { background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%); }
.nav-color-3 { background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%); }
.nav-color-4 { background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%); }
.nav-color-5 { background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%); }
.nav-color-6 { background: linear-gradient(180deg, #f472b6 0%, #db2777 100%); }

/* ==================== 2. 主容器与轮播横幅 ==================== */
.main-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 12px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.hero-swiper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  margin-bottom: 16px;
  background: radial-gradient(circle at 50% 45%, #dc2626 0%, #991b1b 55%, #450a0a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-balls-deco {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}

.deco-ball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 55%, #b45309 100%);
  color: #450a0a;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-headline {
  font-size: 46px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 4px;
  text-shadow: 0 3px 0 #7f1d1d, 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 6px;
}

.hero-subline {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-light);
  border: none;
  cursor: pointer;
}

.hero-dot.active {
  background: var(--red-brand);
}

/* ==================== 3. 双栏开奖大厅 (.lotteryHall) ==================== */
.lottery-hall {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 15px;
  margin-bottom: 16px;
  align-items: start;
}

.main-lottery-card,
.post-lottery-card,
.card {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-card);
  border-radius: 4px;
  overflow: hidden;
}

/* 粉色顶栏 */
.pink-header {
  height: 40px;
  background: var(--pink-header);
  border-bottom: 1px solid var(--red-brand);
  color: var(--red-brand);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pink-header-title {
  font-size: 19px;
  font-weight: 700;
}

.pink-header-right {
  font-size: 14px;
  font-weight: 600;
}

.main-lottery-body {
  position: relative;
  min-height: 240px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  padding: 20px 22px;
  gap: 20px;
}

/* 左侧：最新开奖号码球 */
.lottery-num-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lottery-issue-row {
  font-size: 15px;
  color: #525252;
  font-weight: 600;
}

.lottery-issue-row strong {
  color: var(--text-dark);
  margin-right: 8px;
}

.issue-highlight {
  color: var(--red-brand);
  font-weight: 800;
}

.balls-3d-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 933699 风格：白芯彩色外环立体球 + 黑色数字 */
.ball-ring-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f3f4f6 52%, #d1d5db 100%);
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}

.ball-ring-lg.red { border: 7px solid #d80011; }
.ball-ring-lg.yellow { border: 7px solid #eab308; }
.ball-ring-lg.blue { border: 7px solid #2563eb; }

.ball-ring-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f3f4f6 55%, #d1d5db 100%);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ball-ring-sm.red { border: 4px solid #d80011; }
.ball-ring-sm.yellow { border: 4px solid #eab308; }
.ball-ring-sm.blue { border: 4px solid #2563eb; }

.metrics-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #525252;
}

.metrics-inline span {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 右侧：6 位独立白底倒计时盒 + 直播按钮 */
.lottery-time-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-left: 1px dashed var(--border-gray);
  padding-left: 20px;
}

.countdown-label-sm {
  font-size: 13px;
  color: var(--text-muted);
}

.digit-boxes {
  display: flex;
  align-items: center;
  gap: 5px;
}

.digit-box {
  width: 40px;
  height: 54px;
  background: #ffffff;
  border: 1px solid var(--border-box);
  border-radius: 3px;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-digit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.04);
}

.digit-colon {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-digit);
  padding: 0 2px;
}

.btn-live-red {
  width: 96px;
  height: 34px;
  background: linear-gradient(180deg, #ef4444 0%, #d80011 100%);
  color: #ffffff;
  border: 1px solid #b91c1c;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(216, 0, 17, 0.3);
}

.btn-live-red:hover {
  filter: brightness(1.06);
}

.link-history-query {
  font-size: 13px;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.link-history-query span {
  color: var(--red-brand);
}

/* 准直播播放器覆盖层（LIVE 时覆盖 .main-lottery-body） */
@media (min-width: 769px) {
  .main-lottery-body:has(.live-player-wrap.active) {
    aspect-ratio: 16 / 9;
    min-height: 460px;
  }
}

.live-player-wrap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
}

.live-player-wrap.active {
  display: block;
}

/* 右侧边栏：近期開獎 */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.post-row:nth-child(even) {
  background: var(--zebra-bg);
}

.post-row:last-child {
  border-bottom: none;
}

.post-issue {
  font-size: 13px;
  color: #525252;
  font-weight: 600;
}

.post-balls {
  display: flex;
  gap: 6px;
}

.link-more {
  color: var(--red-brand);
  font-size: 13px;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==================== 4. 验证卡片与子页面通用 ==================== */
.card-body {
  padding: 16px;
}

.hotline-card {
  margin-bottom: 18px;
}

.hotline-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hotline-desc {
  font-size: 13px;
  color: #525252;
}

.hotline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotline-phone {
  font-size: 17px;
  font-weight: 800;
  color: var(--red-brand);
  text-decoration: none;
  border: 1px solid var(--red-brand);
  padding: 5px 12px;
  border-radius: 4px;
}

.btn-primary {
  background: var(--red-brand);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline {
  background: #fff;
  color: var(--red-brand);
  border: 1px solid var(--red-brand);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.input-ctrl,
.select-ctrl {
  padding: 7px 10px;
  border: 1px solid var(--border-box);
  border-radius: 4px;
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #ececec;
}

.data-table th {
  background: #fff5f5;
  color: var(--red-brand);
  font-weight: 700;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* 933699 福彩图库：单列居中大图流 */
.gallery-grid {
  max-width: 810px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item {
  border: 1px solid #eeeeee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-meta {
  padding: 10px;
}

/* 933699 专家预测样式 */
.faq-bar {
  margin-top: 14px;
  height: 50px;
  background: #efefef;
  border-left: 4px solid #141414;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #d85702;
}

.faq-icon {
  width: 15px;
  height: 15px;
  background: #d85702;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.faq-list {
  background: #ffffff;
  padding: 12px 0 20px;
  display: grid;
  gap: 14px;
}

.faq-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 820px;
}

.faq-summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  color: #374151;
  font-size: 15px;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #ececec;
}

.faq-issue strong {
  color: #111827;
  font-size: 16px;
}

.faq-nums-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-num-red {
  color: #c22a42;
  font-size: 14px;
  font-weight: 700;
}

.faq-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 14px 8px;
}

.faq-kv {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.faq-k {
  color: #6b7280;
  font-weight: 500;
}

.faq-v {
  color: #1f2937;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.faq-v.highlight {
  color: #d80011;
}

.faq-v.kill {
  color: #4b5563;
}

.faq-text-blocks {
  display: grid;
  gap: 6px;
  padding: 4px 14px 14px;
}

.faq-text-item {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #374151;
}

.faq-text-item.zuxuan {
  background: #f9fafb;
  border-left-color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  word-break: break-word;
}

/* 933699 福彩3D走势图样式 */
.trend-card {
  padding: 16px;
}

.trend-page-header h1 {
  text-align: center;
  color: #e74c3c;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.trend-control-panel {
  background: #f9f9f9;
  padding: 10px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.chart-container {
  position: relative;
  overflow-x: auto;
  border: 1px solid #dddddd;
}

.trend-table {
  width: 100%;
  min-width: 1960px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
}

.trend-table th,
.trend-table td {
  border: 1px solid #dddddd;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.trend-table thead th {
  background: #f2e9c8;
  color: #333333;
  font-weight: 700;
  padding: 10px 4px;
}

.trend-table tbody tr {
  height: 46px;
}

.trend-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.trend-table th.sec-border,
.trend-table td.sec-border {
  border-right: 2px solid #cccccc;
}

.trend-table td.trail-col {
  background: #f0f8ff;
  font-weight: 700;
  color: #333333;
}

.trend-table td.hit-cell {
  background: #f8f8f8;
}

.trend-table td.zu3-bg {
  background: #f2e9c8;
}

.weekday-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333333;
  font-size: 12px;
}

.sum-value {
  font-weight: 700;
  color: #333333;
  font-size: 14px;
}

.tball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.tball-0, .tball-3, .tball-4, .tball-6, .tball-8 { background: #3498db; }
.tball-1, .tball-2, .tball-7, .tball-9 { background: #e74c3c; }
.tball-5 { background: #2ecc71; }

.omit-number {
  color: #e57373;
  font-size: 13px;
}

.circle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #666666;
  color: #111827;
  font-weight: 700;
  font-size: 12px;
  background: #ffffff;
}

.group-type {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.group-type-6 { background: #3498db; }
.group-type-3 { background: #e74c3c; }
.group-type-1 { background: #2ecc71; }

/* 页脚 */
.site-footer {
  margin-top: 24px;
  background: #ffffff;
}

.footer-inner {
  max-width: 1170px;
  margin: 0 auto;
  height: 45px;
  border-top: 5px solid var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* 通知栏与回放按钮/弹窗 */
.notice-bar {
  margin-top: 14px;
  background: #fdf6ec;
  border: 1px solid #f5dab1;
  color: #8a5a18;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13px;
}

.btn-replay {
  background: linear-gradient(180deg, #ef4444 0%, #d80011 100%);
  color: #ffffff;
  border: 1px solid #b91c1c;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-replay:hover {
  filter: brightness(1.08);
}

.replay-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 220;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.replay-modal.open {
  display: flex;
}

.replay-box {
  background: #ffffff;
  width: 100%;
  max-width: 660px;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.replay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.replay-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-dark);
}

.replay-badge {
  background: var(--red-brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.replay-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #374151;
  font-size: 15px;
  cursor: pointer;
}

.replay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #525252;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

/* Lightbox / Toast / 移动端导航 */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 200; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.lightbox-toolbar button { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.lightbox-img-wrap { max-width: 92vw; max-height: 78vh; overflow: auto; }
.lightbox-img-wrap img { max-width: 100%; max-height: 76vh; transition: transform 0.2s; }

.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: rgba(17,24,39,0.92); color: #fef08a; padding: 9px 18px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 300; }
.toast.show { opacity: 1; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--yellow-accent);
  z-index: 100;
}
.mobile-nav-inner { display: grid; grid-template-columns: repeat(6, 1fr); }
.mobile-nav .nav-btn { border: none; background: transparent; padding: 8px 2px; font-size: 11px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.mobile-nav .nav-btn.active { color: var(--red-brand); font-weight: 800; }

@media (max-width: 960px) {
  .lottery-hall { grid-template-columns: 1fr; }
  .main-lottery-body { grid-template-columns: 1fr; }
  .lottery-time-area { border-left: none; border-top: 1px dashed var(--border-gray); padding-left: 0; padding-top: 16px; }
}

@media (max-width: 768px) {
  .app-header { border-bottom: 4px solid var(--yellow-accent); }
  .header-top { height: 64px; padding: 0 10px; }
  .brand-emblem { width: 44px; height: 44px; font-size: 18px; border-width: 2px; }
  .brand-title { font-size: 20px; }
  .brand-sub { font-size: 11px; }
  .header-datetime { display: none; }
  .nav-bar-wrap { display: none; }
  .mobile-nav { display: block; }

  .main-container { padding: 0 10px; }
  .hero-swiper { height: 170px; margin-bottom: 12px; }
  .hero-balls-deco { gap: 10px; margin-bottom: 8px; }
  .deco-ball { width: 38px; height: 38px; font-size: 18px; }
  .hero-headline { font-size: 26px; letter-spacing: 2px; }
  .hero-subline { font-size: 13px; letter-spacing: 1px; }

  .pink-header { height: auto; min-height: 38px; padding: 6px 10px; flex-wrap: wrap; gap: 4px; }
  .pink-header-title { font-size: 16px; }
  .pink-header-right { font-size: 11px; }

  .main-lottery-body { padding: 14px 12px; gap: 14px; min-height: 230px; }
  .lottery-num-area { align-items: center; gap: 12px; }
  .balls-3d-group { gap: 14px; }
  .ball-ring-lg { width: 54px; height: 54px; font-size: 22px; border-width: 6px; }

  .lottery-time-area { padding-top: 12px; gap: 10px; }
  .digit-box { width: 36px; height: 46px; font-size: 28px; }
  .digit-colon { font-size: 24px; }
  .btn-live-red { width: 120px; height: 36px; font-size: 14px; }

  .pred-grid { grid-template-columns: 1fr; }
  .footer-inner { font-size: 12px; height: 40px; }

  /* 手机端开奖历史：改为紧凑卡片行，彻底避免表格挤压错乱 */
  .history-table thead { display: none; }
  .history-table,
  .history-table tbody { display: block; width: 100%; }
  .history-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "issue replay"
      "time balls";
    gap: 6px 10px;
    align-items: center;
    padding: 12px 10px;
    border: 1px solid #ececec;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
  }
  .history-table tbody tr:nth-child(even) { background: #fafafa; }
  .history-table td { border: none; padding: 0; text-align: left; }
  .history-table td:nth-child(1) { grid-area: issue; font-size: 14px; }
  .history-table td:nth-child(2) { grid-area: time; font-size: 12px; color: var(--text-muted); }
  .history-table td:nth-child(3) { grid-area: balls; text-align: right; }
  .history-table td:nth-child(4) { grid-area: replay; text-align: right; }

  /* 手机端全屏回放弹窗 */
  .replay-modal { padding: 0; background: #000; }
  .replay-box {
    max-width: none;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    background: #000;
    color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
  }
  .replay-title-row { color: #fef08a; font-size: 15px; }
  .replay-meta { color: #d1d5db; border-bottom-color: #27272a; font-size: 12px; }
  #replayVideo {
    flex: 1;
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain;
  }

  /* 手机端 LIVE 准直播全屏播放 */
  .live-player-wrap.active {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 250;
    background: #000;
  }
  .live-player-wrap.active.minimized {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  .live-player-wrap .slp-video {
    object-fit: contain;
  }

  /* 手机端专家预测：期号单独一行，开机号/试机号/开奖号保持同一行，指标两列网格易读 */
  .faq-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 12px;
  }
  .faq-nums-group {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .faq-nums-group .faq-num-red {
    font-size: 12.5px;
  }
  .faq-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px 12px 6px;
  }
  .faq-text-blocks {
    padding: 4px 12px 12px;
  }

  /* 手机端走势图紧凑适配 */
  .trend-card { padding: 8px; }
  .trend-page-header h1 { font-size: 18px; margin-bottom: 8px; }
  .chart-container::before {
    content: "← 左右滑动查看更多 →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666666;
    padding: 6px 0;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
  }
  .trend-table { min-width: 1320px; font-size: 11px; }
  .trend-table thead th { padding: 6px 2px; }
  .trend-table tbody tr { height: 36px; }
  .tball { width: 20px; height: 20px; font-size: 11px; }
  .circle-number { width: 18px; height: 18px; font-size: 11px; }
  .omit-number { font-size: 11px; }
  .weekday-badge { width: 20px; height: 20px; font-size: 11px; }
}
