* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}
body {
  background: #f5f5f5;
  padding: 10px;
}

.wrap {
  max-width: 100%;
  margin: 0 auto;
}

/* 筛选栏 */
.filter-bar {
  background: #fff3cd;
  padding: 10px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 8px;
  overflow: hidden;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}
.filter-row:last-child{margin-bottom:0;}
.filter-label {
  font-size: 14px;
  font-weight: bold;
  color: #d92b2b;
  width: 35px;
  flex-shrink: 0;
}
.filter-btn {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  width: 33px;
}
.filter-btn.active {
  background: #d92b2b;
  color: #fff;
  border-color: #d92b2b;
}
.filter-reset {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
  padding: 4px 10px;
  width: 60px;
  height: 25px;
}

/* 年份栏 */
.year-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.year-bar::-webkit-scrollbar {height:3px;}
.year-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background: #fd7e14;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.year-btn.active {
  background: #fff;
  color: #333;
  font-weight: bold;
}

/* 开奖列表 */
.lottery-list {
  background: #fff;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.lottery-item {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
}
.issue-info {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.numbers-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  /* 🔴 格子间隙背景改成：浅灰白色 */
  background: #f2f2f2;
  padding: 1px 0;
}
.number-col {
  text-align: center;
  flex: 1;
}

/* ====================== 🔴 格子尺寸精准设置 ====================== */
.grid-box {
  height: 46px;      /* 总高度 45px */
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.grid-num {
  height: 23px;      /* 上格子 23px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
.grid-zod {
  height: 22px;      /* 下格子 22px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #333;
  background: #fff;
  font-weight: bold;
}

/* 颜色 */
.grid-num.red { background:#e53e3e; }
.grid-num.blue { background:#3182ce; }
.grid-num.green { background:#38a169; }

/* 不匹配变浅 */
.grid-box.fade {opacity: 0.25;}
.grid-box.normal {opacity: 1;}

.special-sep {
  color:#999;
  padding:0 4px;
  font-size:12px;
  flex-shrink: 0;
  background: #f2f2f2;
}