* { margin: 0; padding: 0; list-style: none; box-sizing: border-box; }

body { background: #fff; }

#app {
  min-height: 100vh;
  max-width: 720px;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 150px auto 0;
}

#app, .nav { background: #fff; }

.nav {
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  z-index: 99;
}

.nav .header, .nav .kind, .nav .select {
  display: flex;
  justify-content: space-between;
}

.nav .header {
  background: linear-gradient(0deg, #41d843, #1c6109);
  height: 36px;
  color: #fff;
  line-height: 36px;
  justify-content: center;
  font-size: 16px;
}

.nav .kind div {
  width: 16.66%;
  padding: 5px 0;
  font-size: 12px;
  cursor: pointer;
}

.nav .kind div img { width: 46px; }

.nav .kind .act {
  color: #ff6500;
  text-decoration: underline;
}

.nav select {
  width: 33.3%;
  padding: 3px 0;
  text-align: center;
  border: 1px solid #ff9200;
  background: #fff;
  outline: none;
}

.main { padding: 0 2px; }

.jiazai {
  line-height: 40px;
  color: #ff7d27;
  letter-spacing: 3px;
  font-size: 18px;
}

.placeholder {
  line-height: 120px;
  color: #999;
  font-size: 15px;
}

/* ---------- 历史记录 ---------- */
.hv .his-line {
  display: flex;
  padding: 8px 2px;
  border-bottom: 1px solid #8fdbff;
}

.hv .his-qid {
  color: #8b8b8b;
  font-size: 14px;
  width: 20%;
  line-height: 20px;
}

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

.hv .his-nb { width: 80%; }

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

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

.hv .pro { font-size: 14px; }

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

.c01, .c02, .c07, .c08, .c12, .c13, .c18, .c19, .c23, .c24, .c29, .c30, .c34, .c35, .c40, .c45, .c46 {
  background-image: url(static/ball_red.png);
}

.c03, .c04, .c09, .c10, .c14, .c15, .c20, .c25, .c26, .c31, .c36, .c37, .c41, .c42, .c47, .c48 {
  background-image: url(static/ball_blue.png);
}

.c05, .c06, .c11, .c16, .c17, .c21, .c22, .c27, .c28, .c32, .c33, .c38, .c39, .c43, .c44, .c49 {
  background-image: url(static/ball_green.png);
}

/* ---------- 通用标签 / 球 ---------- */
.th {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.th .active {
  background: #fff;
  color: #ff6500;
  font-weight: 600;
}

.th li {
  list-style: none;
  width: 16%;
  margin: 1px;
  padding: 2px 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.th li select {
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
}

.ball {
  background: #ffc300;
  border-radius: 50%;
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.6rem;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.ball0 { background: red; }
.ball1 { background: #00a149; }
.ball2 { background: #2c98ff; }

.btn button {
  margin: 0 10%;
  width: 30%;
  padding: 5px 0;
}

/* ---------- 走势图表 ---------- */
.zv .th li { background: #f95e5f; }
.zv .th li.active { background: #fff; }

.zv .zscale {
  position: relative;
  height: 50px;
  display: flex;
  border-top: 1px solid #b60909;
}

.zv .lf {
  width: 10%;
  border-right: 1px solid #d7d7d7;
  font-size: 14px;
}

.zv .ri {
  width: 86%;
  margin: 0 2%;
  font-size: 14px;
  display: flex;
  justify-content: space-evenly;
}

.zv .zscale .ri.space-between {
  justify-content: space-between;
  align-items: center;
}

.zv .chart-wrap { position: relative; }

.zv .tongji {
  width: 100%;
  max-width: 720px;
  background: #fff;
  position: relative;
}

.zv .line {
  display: flex;
  height: 40px;
  position: relative;
}

.zv .line:nth-child(2n-1) { background: #e6f8ff; }

.zv .ri .ball, .zv .ri .ballti {
  font-size: 14px;
  position: absolute;
  transform: translate(-50%, -50%);
}

.zv .ri .ball {
  box-shadow: 1px 1px 1px 0 #747474;
  z-index: 3;
}

.zv .ri .ballx { width: 24px; }
.zv .ball.ballx { height: 24px; line-height: 25px; }
.zv .ri .balld { width: 30px; }
.zv .ball.balld { height: 30px; line-height: 32px; }
.zv .ri .ballti { top: 50%; }

.z-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---------- 开奖统计 ---------- */
.tv .th li { background: #51c01b; }
.tv .th li.active { background: #fff; }

.tv .tongji {
  border: 2px solid #ec922b;
  padding: 2px;
}

.tv .line {
  display: flex;
  margin: 8px 0;
}

.tv .lf {
  width: 15%;
  border: 1px solid #ff8100;
}

.tv .lf div { padding: 3px 0; }

.tv .lf .item {
  background: #ffe5a3;
  font-weight: 600;
  padding: 5px 0;
}

.tv .lf .num { border-bottom: 1px solid #c2c2c2; }

.tv .ri {
  width: 85%;
  text-align: left;
}

.tv .ri .ri1 {
  display: flex;
  align-items: center;
  height: 32px;
}

.tv .ri .tu {
  background: linear-gradient(#deffe0, #16cc0b);
  height: 20px;
  transition: width .5s;
}

/* ---------- 遗漏统计 ---------- */
.yl .th li { background: #ffaf55; }
.yl .th li.active { background: #fff; }

.yl .tongji { border: 2px solid #ff8100; }

.yl .tongji table {
  width: 100%;
  border-collapse: collapse;
}

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

.yl .btn {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 15px solid #8d8d8d;
  display: inline-block;
  vertical-align: text-bottom;
}

.yl .btn-s { border-top: 15px solid #ff665b; }

/* ---------- 开奖日期 ---------- */
.kd .select {
  height: 25px;
  display: flex;
  justify-content: space-between;
}

.kd .select select {
  width: 33.3%;
  padding: 3px 0;
  text-align: center;
  border: 1px solid #03a9f4;
  background: #fff;
  outline: none;
}

.kd .ti { background: #ffeb3b; }

.kd .kd-main {
  background: url(static/rili_02.png);
  background-size: 100% 100%;
}

.kd .table {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  justify-content: space-between;
}

.kd .table > div {
  width: 14%;
  padding: 5px 0;
  cursor: pointer;
  border: 1px solid #fff;
}

.kd .table .day {
  font-weight: 600;
  font-size: 1.1rem;
}

.kd .table .tday .day {
  background: red;
  color: #fff;
}

.kd .table .act { border-color: red; }
.kd .table .kj { background: #afe7ff; }

.kd .info {
  padding: .4rem;
  font-weight: 800;
  font-family: 楷体;
  line-height: 1.2rem;
}

.kd .info > p { margin: .2rem 0; }

.kd img {
  width: 100%;
  display: block;
}

/* ---------- 生肖统计 ---------- */
.sv .tb {
  background: #ff0;
  padding: 5px 0;
}

.sv .tb ul {
  display: flex;
  flex-wrap: wrap;
}

.sv .tb li {
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 3px;
  padding: 2px 5px;
  font-size: .8rem;
  cursor: pointer;
}

.sv .tb .act {
  background: red;
  color: #fff;
  border-color: red;
}

.sv .his-line { padding: 2px; }

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

.sv .his-line ul li {
  width: 13%;
  border: .5px solid #656565;
}

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

.sv .pro {
  font-size: 14px;
  font-weight: 900;
}

.sv .nb {
  color: #fff;
  width: 100%;
  height: 26px;
  background-size: contain;
  line-height: 26px;
  font-weight: 600;
}

.sv .n01, .sv .n02, .sv .n07, .sv .n08, .sv .n12, .sv .n13, .sv .n18, .sv .n19, .sv .n23, .sv .n24, .sv .n29, .sv .n30, .sv .n34, .sv .n35, .sv .n40, .sv .n45, .sv .n46 {
  background: red;
}

.sv .n03, .sv .n04, .sv .n09, .sv .n10, .sv .n14, .sv .n15, .sv .n20, .sv .n25, .sv .n26, .sv .n31, .sv .n36, .sv .n37, .sv .n41, .sv .n42, .sv .n47, .sv .n48 {
  background: #3fa2ff;
}

.sv .n05, .sv .n06, .sv .n11, .sv .n16, .sv .n17, .sv .n21, .sv .n22, .sv .n27, .sv .n28, .sv .n32, .sv .n33, .sv .n38, .sv .n39, .sv .n43, .sv .n44, .sv .n49 {
  background: #1aa91a;
}
