* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #f2f3f5;
  color: #333;
  -webkit-tap-highlight-color: transparent;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===== Header：仅品牌，无 APK/登录 ===== */
.site-header {
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ===== 红条导航：只要「新拼搏首页」 ===== */
.top-nav {
  background: linear-gradient(to top, #b1150c, #d8261c);
}
.top-nav-inner {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.top-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 12px;
  line-height: 42px;
  position: relative;
}
.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: #fff;
}

/* ===== 彩种导航 ===== */
.lottery-nav {
  background: #fff;
  padding: 4px 12px 8px;
}
.nav-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 16px;
  min-height: 42px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-row .cat-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-row a,
.local-btn {
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  line-height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.nav-row a:active,
.local-btn:active { color: #b70000; }

/* 左：模拟试机号标题入口；右：彩种链接（号码/期号在详情页显示） */
.nav-row-trial {
  align-items: center;
  gap: 12px 20px;
  min-height: 42px;
  padding: 2px 0;
  overflow-x: auto;
}
.trial-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  line-height: 1.3 !important;
  text-decoration: none;
  color: #333;
}
.trial-nav-label .cat-icon {
  margin-top: 0;
}
.trial-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
.nav-row-links {
  display: flex;
  align-items: center;
  gap: 0 16px;
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 0;
}
.nav-row-links a {
  line-height: 42px;
}
.trial-nav-label:active .trial-nav-title {
  color: #b70000;
}
.local-btn .caret {
  font-size: 10px;
  color: #999;
  margin-left: 2px;
}
.local-panel {
  padding: 8px 0 10px 28px;
  border-top: 1px solid #f0f0f0;
}
.local-group + .local-group { margin-top: 10px; }
.local-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.local-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.local-links a {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}
.hidden { display: none !important; }

/* ===== 手机查看提示 ===== */
.mobile-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  font-size: 13px;
  color: #666;
  background: transparent;
}
.mobile-tip img { flex-shrink: 0; }

/* ===== 开奖列表面板（单白底卡片 + 分隔线，对齐截图） ===== */
.result-wrap {
  padding: 0 10px 72px;
}
.result-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.loading, .empty {
  text-align: center;
  color: #999;
  padding: 48px 0;
  font-size: 14px;
}

.result-item {
  padding: 12px 12px 14px;
  border-bottom: 1px solid #eee;
}
.result-item:last-child { border-bottom: none; }

.item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.item-head .icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  flex-shrink: 0;
  object-fit: contain;
}
.item-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a5f9e;
  line-height: 1.25;
}
.item-date {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.ball-label {
  font-size: 12px;
  color: #888;
  margin-right: 2px;
  white-space: nowrap;
}
.ball-label.inline {
  margin-left: 10px;
}
.ball {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.ball.cyan { background: #4fc3f7; }
.ball.purple { background: #9c27b0; }
.ball.red { background: #e53935; }
.ball.orange { background: #ff7043; }
.ball.blue { background: #1e88e5; }
.ball.sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.footer-bar {
  height: 3px;
  background: #b1150c;
  width: 100%;
  max-width: 48px;
  margin: 0 auto 16px;
  border-radius: 2px;
  opacity: 0.85;
}

.fab {
  position: fixed;
  right: 14px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab:active { transform: scale(0.96); }

@media (min-width: 768px) {
  .site-header,
  .top-nav-inner,
  .lottery-nav,
  .mobile-tip,
  .result-wrap {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
  .site-header { height: 72px; padding: 0 16px; }
  .brand-logo { height: 52px; }
  .nav-row { gap: 0 28px; }
}
