:root {
    --primary-color: #cc2c2c;
    --secondary-color: #cb2c2c;
    --text-color: #333;
    --light-text-color: #777;
    --background-color: #ddd;
    --white-color: #fff;
    --max-width: 720px;
}

html,
body,
div,
span,
a,
dl,
dt,
dd,
ul,
li,
footer,
header {
    margin: 1px 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

footer,
header {
    display: block;
}

ul {
    list-style: none;
}

body {
    line-height: 20px;
    font-family: "Lantinghei SC", "Microsoft Yahei", Helvetica, Arial;
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
    background: var(--background-color);
}

html {
    height: 100%;
    color: #000;
    font-size: 1em;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.cgi-container {
    max-width: var(--max-width);
    margin: 45px auto 0;
    background: var(--white-color);
}

/* 头部样式 */
.cgi-head {
    max-width: var(--max-width);
    height: 45px;
    color: var(--white-color);
    background: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0 auto;
}

.icon-back {
    width: 100px;
    height: 45px;
    display: inline-block;
    position: relative;
}

.icon-back::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--white-color);
    border-right: 2px solid var(--white-color);
    position: absolute;
    top: 16px;
    left: 15px;
    transform: rotate(225deg);
}

.icon-back span.back {
    display: inline-block;
    top: 12px;
    left: 30px;
    position: absolute;
}

.cgi-head-tit {
    line-height: 45px;
    font-size: 18px;
    text-align: center;
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 底部样式 */
.cgi-foot {
    padding: 10px 0;
    font-size: 14px;
    color: var(--white-color);
    text-align: center;
    background: var(--secondary-color);
    bottom: 0;
}

.cgi-foot-blank {
    background: var(--background-color);
    height: 60px;
    clear: both;
    overflow: hidden;
}

/* 弹窗样式 */
.cgi-tan-box-container {
    position: fixed;
    left: -100%;
    right: 100%;
    top: 0;
    bottom: 0;
    text-align: center;
    font-size: 0;
    z-index: 1000;
}

.cgi-tan-box-container::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    width: 0;
}

.cgi-tan-box {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    right: -100%;
    width: 40%;
    max-width: 500px;
    color: var(--white-color);
    font-size: 16px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.cgi-tan-content {
    padding: 20px 15px;
}

#tipDialogContainer {
    display: none;
}

/* 开奖信息样式 */
.kj-tit {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    text-align: left;
    color: var(--light-text-color);
    font-size: 14px;
    background: #eee;
    border-top: solid 1px #ddd;
}

.kj-box {
    height: 82px;
    padding-top: 8px;
    text-align: center;
    font-size: 16px;
    border-top: solid 1px #ddd;
    border-bottom: solid 1px #eee;
    background: var(--white-color);
}

.kj-box ul {
    text-align: center;
    font-size: 0;
}

.kj-box ul li {
    display: inline-block;
    width: 13%;
    font-size: 16px;
    vertical-align: top;
}

.kj-box ul li.kj-add {
    width: 7%;
}

.kj-box ul li dl dt {
    height: 40px;
    line-height: 32px;
    padding-right: 3px;
    font-size: 20px;
    color: var(--text-color);
    font-weight: bold;
}

.kj-box ul li dl dt.ball-red {
    background: url(../images/ball-red.png) top center no-repeat;
    background-size: contain;
}

.kj-box ul li dl dt.ball-blue {
    background: url(../images/ball-blue.png) top center no-repeat;
    background-size: contain;
}

.kj-box ul li dl dt.ball-green {
    background: url(../images/ball-green.png) top center no-repeat;
    background-size: contain;
}

.kj-box ul li.kj-add dl dt {
    background: url(../images/kj-add.png) center center no-repeat;
    background-size: contain;
}

.kj-box ul li dl dd {
    height: 30px;
    line-height: 30px;
    margin-top: 8px;
    border-top: solid 1px #eee;
}

/* 五行颜色样式 */
.wx-gold {
    color: #fc0;
}

.wx-wood {
    color: #3c3;
}

.wx-water {
    color: #39f;
}

.wx-fire {
    color: #f00;
}

.wx-earth {
    color: #c90;
}

.grey-txt {
    color: #ccc;
}

/* 黑色背景遮罩 */
.xz-black-bg {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    background: #000;
    opacity: 0.6;
}

.selectYearDialog {
    display: none;
}

.icon-right {
    width: 100px;
    height: 45px;
    position: relative;
    float: right;
    text-align: right;
}

.icon-right span.year {
    display: inline-block;
    top: 12px;
    right: 12px;
    position: absolute;
}

@media screen and (max-width: 480px) {
    .cgi-container {
        margin-top: 45px;
    }

    .cgi-head {
        height: 45px;
    }

    .kj-box ul li {
        font-size: 14px;
    }

    .kj-box ul li a {
        padding: 0 5px;
    }

    .kj-tit {
        padding: 0 5px;
    }

    .kj-box ul li dl dt {
        height: 36px;
        line-height: 32px;
        padding-right: 3px;
        font-size: 18px;
        color: var(--text-color);
        font-weight: bold;
    }

    .icon-back::after {
        left: 8px;
    }

    .icon-back span.back {
        left: 20px;
    }

    .icon-right span.year {
        right: 6px;
    }
}