.bm-page {
  margin: 0;
  background: #fff;
}

.bm-wrap {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: #222;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bm-wrap *,
.bm-wrap *::before,
.bm-wrap *::after {
  box-sizing: border-box;
}

.bm-wrap a {
  text-decoration: none;
}

.bm-loading,
.bm-error {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  color: #1fa53c;
  font-size: 16px;
  text-align: center;
}

.bm-error {
  color: #e33a10;
}

.bm-board {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 18px;
}

.bm-card {
  padding: 12px 14px 10px;
  background: #fff;
}

.bm-card + .bm-card {
  border-top: 1px solid #ececec;
}

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

.bm-card-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #1c1c1c;
  font-size: 16px;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.bm-card-title em,
.bm-next em {
  color: #ff2d15;
  font-style: normal;
}

.bm-card-head-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-card-time {
  color: #1f1f1f;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.bm-history {
  color: #ff350d;
  white-space: nowrap;
  font-size: 15px;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.bm-admin {
  color: #148b2a;
  white-space: nowrap;
  font-size: 14px;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.bm-ball-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.bm-ball {
  flex: 1 1 0;
  min-width: 0;
  min-height: 76px;
  padding: 5px 1px 4px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.bm-ball-num {
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.bm-ball-meta {
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
  padding: 2px 4px 1px;
  border-radius: 2px;
  background: #fff;
  color: #161616;
  font-size: 13px;
  line-height: 1.08;
  white-space: nowrap;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.bm-red {
  background: #ef2212;
}

.bm-blue {
  background: #3c93f6;
}

.bm-green {
  background: #22bf2b;
}

.bm-special {
  flex: 1.12 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.bm-special .bm-ball {
  flex: 1 1 0;
  min-width: 0;
}

.bm-plus {
  flex: 0 0 auto;
  align-self: center;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.bm-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.bm-next {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #1f1f1f;
  font-size: 14px;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.bm-refresh {
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  height: 30px;
  line-height: 30px;
  background: #20bb22;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Microsoft YaHei", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

@media screen and (max-width: 520px) {
  .bm-card {
    padding: 8px 8px 7px;
  }

  .bm-card-head {
    gap: 4px;
    margin-bottom: 7px;
  }

  .bm-card-title,
  .bm-card-time {
    font-size: 13px;
  }

  .bm-card-head-right {
    gap: 4px;
  }

  .bm-history {
    font-size: 11px;
  }

  .bm-admin {
    font-size: 11px;
  }

  .bm-ball-row {
    gap: 3px;
  }

  .bm-ball {
    min-height: 62px;
    padding: 4px 1px 4px;
  }

  .bm-ball-num {
    font-size: 18px;
  }

  .bm-ball-meta {
    margin-top: 4px;
    padding: 2px 3px 1px;
    font-size: 11px;
    line-height: 1.05;
  }

  .bm-special {
    flex: 0.84 1 0;
    gap: 3px;
  }

  .bm-plus {
    font-size: 16px;
  }

  .bm-card-foot {
    gap: 4px;
    margin-top: 6px;
  }

  .bm-next {
    font-size: 11px;
  }

  .bm-refresh {
    padding: 0 6px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }
}
