/* 首页空白区内容 · 浅色风格（与首页其它区域一致） */
#hm_home_feed {
  display: none;
  margin: 0;
  padding: 12px 12px 20px;
  background: #f5f5f7;
  color: #1a1a1a;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}

body.hm-page-home #hm_home_feed {
  display: block !important;
}

body.hm-page-hall #hm_home_feed,
body:not(.hm-page-home) #hm_home_feed {
  display: none !important;
}

.hf-sec {
  margin-bottom: 16px;
}

.hf-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.hf-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.hf-sec-sub {
  margin-left: 8px;
  font-size: 11px;
  color: #8a8a8a;
  font-weight: 400;
}

.hf-sec-link {
  font-size: 12px;
  color: #8a8a8a;
  text-decoration: none;
}

.hf-seal-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.hf-seal-row::-webkit-scrollbar {
  display: none;
}

.hf-seal-card {
  flex: 0 0 180px;
  width: 180px;
  max-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.hf-seal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hf-seal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f3f5;
}

.hf-seal-info {
  min-width: 0;
  flex: 1;
}

.hf-seal-name {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-seal-meta {
  margin: 0;
  font-size: 10px;
  color: #8a8a8a;
}

.hf-seal-last {
  margin-bottom: 8px;
}

.hf-seal-last-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #8a8a8a;
}

.hf-seal-balls {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: center;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-height: 15px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.hf-seal-balls-empty {
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
}

/* 六合 7 球 + 号：固定尺寸，避免各浏览器字号差导致换行 */
.hf-seal-balls.is-six {
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}

/* PK10：10 个一行（缩小球径，卡片宽度不变） */
.hf-seal-balls.is-pk10 {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 14px;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: center;
  align-items: center;
}

.hf-seal-balls.is-pk10 .hf-mini-ball-wrap {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  margin-bottom: 0;
  -webkit-flex: 0 0 14px;
  flex: 0 0 14px;
}

.hf-seal-balls.is-pk10 .hf-mini-ball-wrap:last-child {
  margin-right: 0;
}

.hf-seal-balls.is-pk10 .hf-mini-ball {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  line-height: 14px;
  font-size: 7.5px;
}

.hf-mini-ball-wrap {
  display: inline-block;
  vertical-align: middle;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-right: 2px;
  box-sizing: border-box;
}

.hf-seal-balls.is-six .hf-mini-ball-wrap {
  width: 14px;
  height: 14px;
  margin-right: 2px;
}

.hf-mini-ball {
  width: 15px;
  height: 15px;
  min-width: 15px;
  max-width: 15px;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  line-height: 15px;
  box-sizing: border-box;
  /* 防止部分浏览器把字撑破圆球导致换行计算异常 */
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hf-seal-balls.is-six .hf-mini-ball {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  line-height: 14px;
  font-size: 7.5px;
}

.hf-mini-ball.red { background: #e73b3b; }
.hf-mini-ball.blue { background: #2f7de0; }
.hf-mini-ball.green { background: #2f9e5b; }

.hf-plus.tiny {
  display: inline-block;
  vertical-align: middle;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 8px;
  font-size: 9px;
  padding: 0;
  margin: 0 1px 0 0;
  color: #8a8a8a;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

.hf-seal-cd {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #e73b3b;
  font-variant-numeric: tabular-nums;
}

.hf-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #e73b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 7px 0;
  box-sizing: border-box;
}

.hf-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hf-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hf-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px 12px;
  min-height: 96px;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.hf-cat-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #444;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: visible;
}

.hf-cat-badge.is-hot {
  background: transparent;
  color: #444;
}

.hf-cat-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.hf-cat-desc {
  margin: 0;
  font-size: 11px;
  color: #8a8a8a;
}

.hf-cat-desc.hot {
  color: #e73b3b;
}

.hf-soon {
  display: none !important;
}

.hf-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hf-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.hf-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hf-result-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.hf-result-period {
  font-size: 12px;
  color: #8a8a8a;
}

.hf-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.hf-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 34px;
}

.hf-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-ball.red { background: #e73b3b; }
.hf-ball.blue { background: #2f7de0; }
.hf-ball.green { background: #2f9e5b; }

.hf-zodiac {
  margin-top: 3px;
  font-size: 10px;
  color: #8a8a8a;
}

.hf-plus {
  align-self: center;
  color: #8a8a8a;
  font-weight: 700;
  padding: 0 2px;
  margin-top: 4px;
}

.hf-result-meta {
  margin-top: 10px;
  font-size: 11px;
  color: #8a8a8a;
}

.hf-empty {
  padding: 16px;
  text-align: center;
  color: #8a8a8a;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
}

/* 首页「全民代理」→ 最新中奖滚动 */
body.hm-page-home #main > .share,
body.hm-page-home .share.hm-win-ticker {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  line-height: 28px !important;
  font-size: 13px !important;
  margin: 0 12px 8px !important;
  padding: 0 10px !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  color: #333 !important;
  pointer-events: none;
}

body.hm-page-home .share.hm-win-ticker a,
body.hm-page-home .share.hm-win-ticker p {
  display: none !important;
}

.hm-win-star {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  background: #e73b3b;
  color: #fff;
  font-size: 13px !important;
  line-height: 24px !important;
  text-align: center;
  font-weight: 700;
}

.hm-win-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 28px !important;
  max-height: none !important;
  line-height: 28px !important;
  position: relative;
}

.hm-win-track {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
  height: 28px !important;
  line-height: 28px !important;
  will-change: transform;
  animation: hm-win-marquee 28s linear infinite;
}

.hm-win-item {
  display: inline-block;
  font-size: 13px !important;
  color: #444;
  line-height: 28px !important;
  height: 28px !important;
  vertical-align: middle;
}

.hm-win-item em {
  font-style: normal;
  color: #e73b3b;
  font-weight: 700;
  font-size: 13px !important;
  line-height: 28px !important;
}

.hm-win-item b {
  color: #e73b3b;
  font-weight: 800;
  font-size: 13px !important;
  line-height: 28px !important;
}

.hm-win-sep {
  display: inline-block;
  width: 22px;
  height: 28px;
}

@keyframes hm-win-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
