:root {
  /* 主色调 */
  --ppc-primary-color: #008000;
  /* 页面宽度 */
  --ppc-body-width: 720px;
}

/* ======================= 基础重置 ======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "noto sans", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  color: #000;
  background: #fff;
}

ul,
ol,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
  padding: 0;
}

input[type="checkbox"] {
  margin: 0;
}

img {
  vertical-align: middle;
}

[hidden] {
  display: none !important;
}

/* 桌面端 */
@media (min-width: 769px) {
  body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
  }

  .container {
    width: var(--ppc-body-width);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

/* ======================= 页面骨架 ======================= */
.history-v2-page {
  max-width: var(--ppc-body-width);
}

.h-v2-top {
  max-width: var(--ppc-body-width);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

@media screen and (max-width: 750px) {
  .h-v2-top {
    left: 0;
    max-width: 100%;
  }
}

/* ======================= 标题栏 ======================= */
.h-v2-top .bar {
  align-items: center;
  background: var(--ppc-primary-color);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
}

.h-v2-top .bar .title {
  font-size: 20.5px !important;
}

.h-v2-top .bar img {
  cursor: pointer;
  height: 26px;
}

/* ======================= 菜单 ======================= */
.menu-tab {
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 4px 6% 8px;
}

.menu-item {
  align-items: center;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.menu-item img {
  height: 46px;
  width: 46px;
}

.menu-item span {
  color: #000;
  font-size: 14px;
  margin-top: 5px;
}

.active span {
  color: #ff6500;
  text-decoration: underline;
}

/* ======================= 彩种切换 ======================= */
.ppc-tab {
  background: #fff;
  display: flex;
  padding: 0 .18rem;
}

.ppc-tab .tab-item {
  border: 1px solid var(--ppc-primary-color);
  border-radius: 0;
  color: var(--ppc-primary-color);
  cursor: pointer;
  flex: 1 0 auto;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  padding: 2px .5rem;
  text-align: center;
}

.ppc-tab .tab-item:first-child {
  border-radius: 10px 0 0 10px;
  border-right: 0;
}

.ppc-tab .tab-item:nth-child(3) {
  border-left: 0;
}

.ppc-tab .tab-item:last-child {
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.ppc-tab .tab-item-active {
  background: var(--ppc-primary-color);
  color: #fff;
}

/* ======================= 筛选栏 ======================= */
.select-bar {
  display: flex;
  justify-content: space-between;
}

.select-item,
select {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.select-item {
  background: #fff;
  border: 1px solid #ff9200;
  flex: 1;
  outline: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='gray'><path d='M3 4.5l3 3 3-3'/></svg>");
  background-position: right 5% center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  -moz-text-align-last: center;
  text-align-last: center;
}

.select-item select {
  background-color: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  height: 28px;
  outline: none;
  padding: 0 2px;
  text-align: center;
  width: 100%;
}

.select-item label {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
}

/* ======================= 列表容器 ======================= */
.container {
  padding-top: 190px;
}

.history-container {
  min-height: 100vh;
}

.history-list {
  background: #fff;
}

.loading-text {
  color: #ff6500;
  margin: 10px 0;
  text-align: center;
}

/* ======================= 号码查询 ======================= */
.num-search {
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 8px 6px;
}

.num-search .search-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.num-search .search-row input {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  flex: 1;
  font-family: inherit;
  font-size: 16px;
  height: 36px;
  min-width: 0;
  outline: none;
  padding: 0 10px;
}

.num-search .search-row input:focus {
  border-color: #00c8bd;
}

.num-search .search-row button {
  background: #00c8bd;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  height: 36px;
  padding: 0 18px;
  white-space: nowrap;
}

.num-search .search-row button:active {
  opacity: .85;
}

.num-search .search-tip {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 2px 0;
}

/* 查询后的高亮 / 置灰 */
.his-nb ul li.miss .nb {
  filter: grayscale(1);
  opacity: .3;
}

.his-nb ul li.miss .pro {
  color: #c8c8c8;
}

.his-nb ul li.hit .nb {
  border-radius: 50%;
  outline: 3px solid #e60012;
  outline-offset: 1px;
}

.his-nb ul li.hit .nb.red {
  outline-color: #e60012;
}

.his-nb ul li.hit .nb.blue {
  outline-color: #1e6fff;
}

.his-nb ul li.hit .nb.green {
  outline-color: #00a149;
}

/* ======================= 开奖行 ======================= */
.his-line {
  border-bottom: 1px solid #8fdbff;
  display: flex;
  padding: 8px 1px;
}

.his-qid {
  color: #8b8b8b;
  font-size: 12.5px;
  line-height: 20px;
  text-align: center;
  width: 20%;
  word-wrap: normal;
  font-family: Avenir, Helvetica, Arial, sans-serif;
}

.his-qid .qn {
  color: #373737;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 32px;
}

.his-nb {
  width: 80%;
}

.his-nb ul {
  display: flex;
  justify-content: space-around;
}

.nb {
  background-size: contain;
  font-weight: 600;
  height: 32px;
  line-height: 32px;
  text-align: center;
  width: 32px;
}

.pro {
  font-size: 14px;
}

.his-nb ul li div {
  font-size: 16px;
}

.red {
  background-image: url(red1.png);
}

.blue {
  background-image: url(blue1.png);
}

.green {
  background-image: url(green1.png);
}

/* ======================= 走势 / 统计 / 遗漏 二级导航 ======================= */
.second-nav .th {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.second-nav .th li {
  background: #f95e5f;
  color: #fff;
  cursor: pointer;
  list-style: none;
  margin: 1px;
  padding: 6px 0;
  text-align: center;
  width: 16%;
}

.second-nav .th li.active {
  background: #fff;
  color: #f95e5f;
  font-weight: 700;
}

.second-nav.green-theme .th li {
  background: #51c01b;
}

.second-nav.green-theme .th li.active {
  background: #fff;
  color: #51c01b;
}

.second-nav.yellow-theme .th li {
  background: #ffaf55;
}

.second-nav.yellow-theme .th li.active {
  background: #fff;
  color: #ffaf55;
}

.second-nav .th li select {
  width: 100%;
  height: 100%;
  text-align: center;
  color: #000;
  border: 1px solid #333;
}

/* ======================= 走势图表 ======================= */
#chart-box {
  height: auto;
  min-height: 800px;
  width: 100%;
}

/* ======================= 开奖统计 ======================= */
#view-stat .tongji {
  border: 2px solid #ec922b;
  padding: 2px;
}

#view-stat .tongji * {
  transition: all .3s;
}

#view-stat .tongji .btn button {
  background: #e5e5e5;
  border: 1px solid #000;
  border-radius: 2px;
  color: #000;
  font-family: inherit;
  margin: 0 10%;
  padding: 5px 0;
  width: 30%;
}

#view-stat .tongji .line {
  display: flex;
  margin: 8px 0;
  transition: transform .3s;
}

#view-stat .tongji .line .lf {
  border: 1px solid #ff8100;
  width: 15%;
}

#view-stat .tongji .line .lf .num {
  border-bottom: 1px solid #c2c2c2;
}

#view-stat .tongji .line .lf div {
  padding: 3px 0;
}

.with-bg {
  background: #ffe5a3;
  text-align: center;
}

#view-stat .tongji .line .ri {
  text-align: left;
  width: 85%;
}

#view-stat .tongji .line .ri .ri1 {
  align-items: center;
  display: flex;
  height: 32px;
}

#view-stat .tongji .line .ri .tu {
  background: linear-gradient(#deffe0, #16cc0b);
  height: 20px;
  transition: width .5s;
  -moz-transition: width .5s;
  -webkit-transition: width .5s;
  -o-transition: width .5s;
}

.bf {
  text-align: center;
}

/* ======================= 遗漏统计 ======================= */
#view-omit .tongji {
  border: 2px solid #ff8100;
}

#view-omit .tongji table {
  border-collapse: collapse;
  width: 100%;
}

#view-omit .tongji th,
#view-omit .tongji tr {
  border: 1px solid #ffc300;
  font-weight: 500;
  padding: 10px 0;
}

#view-omit .tongji .flex-center {
  cursor: pointer;
  text-align: center;
}

#view-omit .tongji th .btn {
  background-image: url(jt.png);
  background-position-y: 2px;
  background-size: cover;
  display: inline-block;
  height: 14px;
  width: 12px;
}

#view-omit .tongji th .btn-s {
  background-image: url(jta.png);
}

/* 统计 / 遗漏 共用的号码球 */
.ball {
  border-radius: 50%;
  display: block;
  height: 1.5rem;
  line-height: 1.6rem;
  margin: 0 auto;
  text-align: center;
  width: 1.5rem;
}

.ball1 {
  background: red;
  color: #fff;
}

.ball2 {
  background: #2c98ff;
  color: #fff;
}

.ball3 {
  background: #00a149;
  color: #fff;
}

/* 遗漏统计的号码球：未开出过的号码沿用原站黄色底 */
#view-omit .tongji .ball {
  background: #ffc300;
  color: #fff;
}

#view-omit .tongji .ball1 {
  background: red;
}

#view-omit .tongji .ball2 {
  background: #2c98ff;
}

#view-omit .tongji .ball3 {
  background: #00a149;
}
