html,
body.lh-page {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.lh-page {
  max-width: 850px;
  margin: 0 auto;
  background: #f5f5f5;
  font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.lh-filter {
  background: #fff;
  border-bottom: 2px solid #c30;
  padding: 10px 12px 6px;
}

.lh-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.lh-filter-label {
  font-size: 13px;
  color: #c30;
  font-weight: bold;
  min-width: 28px;
  line-height: 30px;
  flex-shrink: 0;
}

.lh-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.lh-fbtn {
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.lh-fbtn:hover {
  border-color: #c30;
  color: #c30;
  background: #fff5f5;
}

.lh-fbtn.active {
  background: #c30;
  color: #fff;
  border-color: #c30;
  box-shadow: 0 2px 6px rgba(204, 51, 0, 0.35);
}

.lh-fbtn-special {
  border-color: #fe9f01;
  color: #c07000;
}

.lh-fbtn-special:hover {
  border-color: #fe9f01;
  color: #fe9f01;
  background: #fffaf0;
}

.lh-fbtn-special.active {
  background: #fe9f01;
  color: #fff;
  border-color: #fe9f01;
}

.lh-freset {
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  color: #888;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.lh-freset:hover {
  background: #e8e8e8;
  color: #555;
  border-color: #bbb;
}

.lh-filter-stat {
  font-size: 13px;
  color: #666;
  padding: 4px 0 2px;
  border-top: 1px dashed #eee;
  margin-top: 2px;
}

.lh-filter-stat strong {
  color: #c30;
  font-size: 15px;
}

.stat-tag {
  display: inline-block;
  background: #c30;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 12px;
  margin: 0 1px;
}

.lh-ball.lh-ball-hit {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.6);
  position: relative;
  z-index: 1;
}

.lh-ball.lh-ball-dim {
  opacity: 0.15;
}

.lh-header {
  background: #c30;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lh-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lh-toolbar {
  background: #fff;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.lh-years {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lh-year-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.lh-year-btn:hover {
  border-color: #fe9f01;
  color: #fe9f01;
}

.lh-year-btn.active {
  background: #c30;
  color: #fff;
  border-color: #c30;
  box-shadow: 0 2px 6px rgba(254, 159, 1, 0.3);
}

.lh-list {
  padding: 2px 0;
}

.lh-item {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lh-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.item-issue {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.item-date {
  font-size: 13px;
  color: #999;
}

.lh-item-balls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0;
}

.lh-ball-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.lh-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  min-width: 50px;
  padding: 8px 6px 6px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  gap: 4px;
}

.ball-num {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.ball-attrs {
  background: #fff;
  padding: 3px 3px;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  line-height: 1.2;
  white-space: nowrap;
}

.ball-plus {
  font-size: 20px;
  color: #999;
  margin: 0 4px;
  align-self: center;
}

.hm.redBoClass,
.redBoClass {
  background-color: red;
}

.hm.blueBoClass,
.blueBoClass {
  background-color: #00f;
}

.hm.greenBoClass,
.greenBoClass {
  background-color: #090;
}

.lh-empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .lh-title {
    font-size: 16px;
  }

  .lh-year-btn {
    padding: 5px 12px;
    font-size: 13px;
  }

  .lh-ball {
    min-width: 38px;
    padding: 6px 4px;
  }

  .ball-num {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .lh-filter {
    padding: 8px 8px 4px;
  }

  .lh-fbtn {
    padding: 4px 7px;
    font-size: 12px;
  }

  .lh-freset {
    padding: 4px 8px;
    font-size: 11px;
  }

  .lh-filter-label {
    font-size: 12px;
    line-height: 26px;
  }

  .lh-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lh-ball {
    min-width: 35px;
    gap: 4px;
  }
}
