* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #000;
}

html {
    background-color: #f0f0f0;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font: 400 14px / 1.5 "\5FAE\8F6F\96C5\9ED1", "Microsoft YaHei", Helvetica;
    background: #f0f5f9;
    font-size: 14px;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    overflow-x: hidden;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

ul li {
    list-style: none;
}

/* 顶部横幅 */
.banner {
    background: linear-gradient(180deg, #c8000f 0%, #e60012 50%, #c8000f 100%);
    text-align: center;
    padding: 0;
    border-bottom: 3px solid #FFEB3B;
}

.banner-wrap {
    position: relative;
    font-size: 0;
}

.banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.banner-ym {
    position: absolute;
    left: 41%;
    top: 77.5%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 网址公告 */
.ymgg {
    background: #ff0;
    font-family: '\5FAE\8F6F\96C5\9ED1', 'Microsoft YaHei';
    font-size: 13pt;
    color: #00f;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

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

.ymgg table td {
    padding: 0.4em 0;
    border: solid 1px #ccc;
}

.ymgg-tit1 {
    color: #fff;
    background: #f00;
}

.ymgg-tit2 {
    color: #ff0;
    background: #00f;
}

/* 分类导航 */
.yqlj {
    table-layout: auto;
    color: #000;
    border-radius: 0px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid #67a4f5;
    border-style: dashed;
}

.yqlj td {
    font-weight: bold;
    border: 1px solid #fefefe;
    font-size: 18pt;
    padding: 4px 5px 3px 5px;
}

.yqlj a {
    height: 35px;
    line-height: 32px;
    text-align: center;
    border: solid 1px #67a4f5;
    border-radius: 20px;
    background: #eee;
    background-image: linear-gradient(to top, #fff, #eee, #fff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

a.c0, a.c1 { color: #FF0000; }
a.c2 { color: #008000; }
a.c3 { color: #FF00FF; }
a.c4 { color: #000000; }
a.c5 { color: #808000; }
a.c6, a.c7, a.c8, a.c9, a.c10, a.c11, a.c12, a.c13, a.c14, a.c15, a.c16, a.c17 { color: #0000FF; }

/* 开奖直播：三个彩种标签切换 */
.kj-box {
    background: #fff;
    padding-bottom: 6px;
}

.kj-tabs {
    display: flex;
    border-bottom: 2px solid #e60012;
    padding: 0 4px;
}

.kj-tab {
    flex: 1;
    padding: 9px 2px;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    color: #333;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kj-tab.active {
    color: #ff6600;
}

.kj-panel {
    display: none;
    padding: 8px 10px 8px;
}

.kj-panel.active {
    display: block;
}

.kj-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.kj-lot {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.kj-lot em {
    font-style: normal;
    color: #e60012;
}

.kj-clock {
    font-size: 21px;
    font-weight: 900;
    color: #111;
}

.kj-history {
    font-size: 15px;
    font-weight: 700;
    color: #e60012;
    white-space: nowrap;
}

/* 开奖号码球：红/绿/蓝波色 + 生肖五行 */
.kj-balls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0 4px;
}

.ball {
    flex: 1 1 0;
    min-width: 0;
    height: 60px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border-radius: 4px;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 20px;
    font-family: Tahoma, Geneva, sans-serif;
}

.ball i {
    font-style: normal;
    height: 18px;
    line-height: 18px;
    margin-top: 7px;
    padding: 0 3px;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ball.red   { background: #e71607; }
.ball.green { background: #1fb61d; }
.ball.blue  { background: #2389e9; }

.kj-plus {
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 3px;
}

.kj-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
}

.kj-next p {
    font-size: 15px;
    color: #333;
}

.kj-next em {
    font-style: normal;
    color: #e60012;
    font-weight: 700;
}

.kj-refresh {
    border: 0;
    border-radius: 5px;
    background: #ff8c00;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 12px;
    cursor: pointer;
}

/* 特码 */
.bzbm {
    background: #f00;
    color: #fff;
    font-size: 15pt;
    text-align: center;
    border-top: 1px #ccc solid;
    padding: 2px 0;
}

.bzbm span {
    display: block;
    font-size: 20px;
}

/* 三肖三码 */
.dgk_p span {
    display: block;
    line-height: 40px;
    border-bottom: 1px solid rgb(235, 235, 235);
    font-size: 17px;
    letter-spacing: 1px;
}

.dgk_h {
    text-align: center;
    background: #ff1100;
    font-size: 20px;
    line-height: 42px !important;
    color: #FFEB3B;
    border-left: 5px double #FFEB3B;
    border-top: 5px double #FFEB3B;
    word-break: break-all;
    border-right: 5px double #FFEB3B;
    border-bottom: 5px double #FFEB3B !important;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.dgk_p font {
    color: blue;
}

/* 区块标题 */
.title, .tit {
    border-left: 5px double #FFEB3B;
    border-top: 5px double #FFEB3B;
    word-break: break-all;
    border-right: 5px double #FFEB3B;
    border-bottom: 5px double #FFEB3B;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    line-height: 40px;
    background: #E91E63;
    color: #fff;
    font-size: 25px;
}

/* 帖子列表 */
.white-box {
    background: #fff;
    padding: 0 8px;
}

.post-list li {
    line-height: 40px;
    border-bottom: 1px #ebebeb solid;
}

.smzx {
    font-size: 17px;
    display: block;
}

.smzx-ico {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    vertical-align: text-bottom;
    margin-right: 5px;
}

.qi {
    color: #009688;
}

.pc {
    color: #999;
    font-size: 14px;
    margin-left: 4px;
}

/* 生肖对照 */
.sx {
    background: #e5e5e5;
    font-size: 13px;
}

.sx table {
    margin-top: 5px;
}

.sx th {
    height: 30px;
    border: solid 1px #ccc;
    background: #f1f1f1;
}

.sx td {
    padding: 5px 0;
    text-align: center;
    border: solid 1px #d8ccb4;
    word-wrap: break-word;
    background: #fff;
}

.sx td.a-left {
    text-align: left;
    padding-left: 5px;
    padding-right: 5px;
}

.sx span {
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin: 0 2px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    border-radius: 9px;
    display: inline-block;
    background: #f00;
}

.sx span.green {
    background: #009933;
}

.sx span.blue {
    background: #3366ff;
}

ul.sx1 li {
    float: left;
    width: 33.33%;
    padding: 5px 0;
}

.sx1 dt {
    margin-bottom: 2px;
}

.sx1 dt span.sx-ico {
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 13px;
    font-size: 14px;
    margin: 0 4px 0 0;
    background: linear-gradient(135deg, #ff7043, #e91e63);
}

/* 页脚 */
.footer {
    background: #f0f5f9;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 14px 10px;
    line-height: 1.8;
    font-weight: 400;
}
