/* lishi.php 复刻：参考站 js/css.css 原样 + 页面内联样式原样 */
@charset "utf-8";
/* www.89829.com 金多�?*/

body,
html {
    font-family: STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    color: #000;
    font-size: 12px
}

html {
    background: #e7e7e7;
    background-attachment: fixed
}

body {
    max-width: 720px;
    margin: 0 auto
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

ol,
ul,
li {
    list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%
}

a:link {
    text-decoration: none
}

a:visited {
    text-decoration: none
}

a:hover {
    text-decoration: none
}

a:active {
    text-decoration: none
}

a:focus {
    outline: 0
}

a.hidefocus {
    outline: 0
}

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

img {
    width: 100%;
    height: auto
}

input[type=button],
input[type=submit],
input[type=text] {
    -webkit-appearance: none;
    outline: 0
}

button {
    border: 0;
    outline: 0;
    cursor: pointer
}

input {
    outline: 0
}

table {
    table-layout: fixed;
    width: 100%
}

.clearfix:after,
.clearfix:before {
    content: "";
    display: table
}

.clearfix:after {
    clear: both
}

.pad2 {
    padding: 2px
}

.pad4 {
    padding: 4px
}

.nullbox44 {
    height: 50px
}

div.top {
    position: fixed;
    z-index: 99;
    height: 44px;
    width: 100%;
    max-width: 720px;
    background: #886800;
    text-align: center
}

div.top div.logo {
    position: absolute;
    top: 0px;
    left: 48px;
    right: 48px;
}

div.top div.logo span {
    width: 135px;
    height: 44px;
    background: url(logo.png) no-repeat center 0px;
    background-size: 135px;
    box-sizing: border-box;
    display: inline-block;
}

div.top div.icon span {
    position: absolute;
    width: 36px;
    height: 40px;
    color: #fff;
    background-image: url(menuicon.png);
    background-repeat: no-repeat;
    overflow: hidden;
    display: block;
    background-position: 0 0
}

div.top div.icon span.menu {
    top: 1px;
    right: 8px;
    background-size: 36px auto;
    -webkit-background-size: 36px auto;
    background-position: 0 -56px
}

div.top div.icon span.prev {
    top: 1px;
    left: 5px;
    background-size: 32px auto;
    -webkit-background-size: 32px auto;
    background-position: 0 -110px
}

div.top div.logoLeft {
    left: 5px;
    text-align: left
}

div.top div.prevHide {
    z-index: 1001;
    display: none
}

div.top div.menuDialog {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1001;
    display: none
}

div.top div.menu_nav {
    max-width: 720px;
    margin: 0 auto;
    height: 100%;
}

div.top div.menu_nav ul {
    float: right;
    width: 150px;
    background: rgba(255, 255, 255, .9);
    height: 100%;
}

div.top div.menu_nav ul li {
    text-align: left;
}

div.top div.menu_nav ul li a {
    padding-left: 60px;
    height: 38px;
    line-height: 38px;
    font-size: 13px;
    position: relative;
    display: block;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    margin-top: -1px
}

div.top div.menu_nav ul li a:first-child {
    border-top: none
}

div.top div.menu_nav ul li span.icon {
    display: inline-block;
    height: 23px;
    width: 23px;
    background: url(menunavicon.png) no-repeat 0 0;
    background-size: 23px;
    position: absolute;
    top: 8px;
    left: 29px
}

div.top div.menu_nav ul li span.icon.i03 {
    background-position-y: -92px
}

div.top div.menu_nav ul li span.icon.i09 {
    background-position-y: -368px
}

div.top div.menu_nav ul li span.icon.i11 {
    background-position-y: -460px
}

div.top div.menu_nav ul li span.icon.i12 {
    background-position-y: -506px
}

div.top div.menu_nav ul li span.icon.i16 {
    background-position-y: -690px
}

div.top div.menu_nav ul li span.icon.i19 {
    background-position-y: -759px
}

div.box div.subnav ul {
    margin: 8px;
    0;
}

div.box div.subnav ul li {
    display: block;
    float: left;
    width: 25%;
    text-align: center
}

div.box div.subnav ul li a {
    display: inline-block;
    width: 60px
}

div.box div.subnav ul li a img {
    margin: 0 auto;
    display: block;
    width: 53px;
    height: 53px;
    vertical-align: middle
}

div.box {
    margin: 5px 0;
    background-color: #fff;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px
}

div.box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle
}

div.box div.table table {
    width: 100%;
    border-collapse: collapse;
    word-wrap: break-word;
}

div.box div.table table tr {
    text-align: center;
    padding: 0 5px;
    line-height: 18px;
}

div.box div.table {}

div.box div.table ul {}

div.box div.table ul li {
    border-bottom: 1px solid #f9f9f9;
    padding: 8px 0;
    text-align: center;
    font-size: 1.2rem
}

div.box div.table ul li font {
    color: #0000FF
}

div.box div.table ul li span {
    color: #FF0000;
}

div.box div.table div.title {
    height: 40px;
    line-height: 40px;
    background: #65300a;
    background-image: linear-gradient(to top, #65300a, #c07946);
    border-radius: 2px
}

div.box div.table div.title h3 {
    height: 40px;
    padding: 0 50px 0 12px;
    color: #fff;
    font-size: 1.3rem;
    display: inline-block;
    background: #b80d0d;
    background-image: linear-gradient(to top, #b80d0d, #e80303);
    position: relative;
    border-radius: 2px
}

div.box div.table div.title h3 span {
    width: 42px;
    height: 40px;
    background: url(title_icon.png) top right no-repeat;
    background-size: 42px 40px;
    position: absolute;
    top: 0;
    right: 0;
}

div.box div.kjkj ul li {
    float: left;
    margin: 2px;
    padding: 4px 0;
    width: calc(20% - 4px);
    border-radius: 4px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
    background-image: linear-gradient(to top, #FF8000, #FFC184)
}

div.box div.kjkj ul li a {
    color: #FFF;
    font-size: 1.1rem;
    font-weight: bold;
}

div.box div.ptwx ul li span {
    font-size: 1.4rem;
    font-weight: bold
}

div.box div.ptwx ul li span font {
    font-weight: 400
}

div.box div.ptwx ul li span font.cuo {
    color: #ccc
}

div.box div.ptwx ul li u {
    background: #ffff00;
    text-decoration: none;
}

div.box div.mark ul li {
    padding: 8px 5px;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

div.box div.mark ul li span.icon {
    margin-right: 6px;
    padding: 4px 5px;
    font-size: 1rem;
    color: #fff;
    border-radius: 5px;
    background: #FF9900;
    display: inline-block
}

div.box div.mark ul li span.zz {
    float: right;
    margin-left: 10px;
    font-size: 1.1rem;
    color: #999;
}

div.box div.nmzl table {
    table-layout: auto;
    border: solid 1px #EEE;
}

div.box div.nmzl table tr.title th {
    background: #EEE;
    color: #333;
    text-align: center;
    height: 38px;
    line-height: 38px;
    font-size: 1.2rem
}

div.box div.nmzl table tr.title th font {
    color: #ff0000;
    font-size: 1.2rem
}

div.box div.nmzl table tr {
    border-bottom: solid 1px #EEE;
    height: 35px;
    line-height: 35px;
    font-size: 1.1rem
}

div.box div.nmzl table td.l {
    width: 60%;
    text-align: left;
    padding-left: 5px;
    border-right: 1px solid #EEE
}

div.box div.nmzl table td.r {
    width: 39%;
    text-align: right;
    padding-right: 5px
}

div.box div.nmzl td span {
    color: red;
    font-size: 1.2rem
}

div.box div.nmzl table td u {
    background: #ffff00;
    text-decoration: none;
}

div.box div.yxym table {
    table-layout: auto;
}

div.box div.yxym table tr.title th {
    background: #93D1A9;
    color: #fff;
    text-align: center;
    height: 38px;
    line-height: 38px;
    font-size: 1.2rem
}

div.box div.yxym table tr.title th font {
    color: #ff0000;
    font-size: 1.3rem
}

div.box div.yxym table td {
    background: #B4E7C6;
    border-bottom: solid 1px #fff;
    padding: 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

div.box div.yxym table td.l {
    width: 86px;
}

div.box div.yxym table td.c {
    width: auto;
    background-color: #D5F5E1;
    color: #ff0000;
    font-size: 1.4rem
}

div.box div.yxym table td.huan {
    padding: 0
}

div.box div.yxym table td.r {
    width: 86px;
}

div.box div.yxym table td span {
    color: #0000ff
}

div.box div.yxym table td.c u {
    background: #ffff00;
    text-decoration: none;
}

div.box div.sqsx table {}

div.box div.sqsx table td {
    border: 1px solid #f9f9f9;
    padding: 5px 0;
    font-size: 1.2rem
}

div.box div.sqsx table td.l {
    width: 86px;
}

div.box div.sqsx table td.c {
    width: auto;
    font-size: 2.2rem;
    font-weight: bold;
    color: #FF0000
}

div.box div.sqsx table td.r {
    width: 86px;
}

div.box div.sqsx table td u {
    background-color: #ffff00;
    text-decoration: none
}

div.box div.sqsx table td span {
    color: #0000FF;
}

div.box div.wzzy ul li {
    border: 0;
    padding: 0;
    text-align: left;
    font-size: 1.2rem
}

div.box div.wzzy ul li dt {
    padding: 8px 5px;
}

div.box div.wzzy ul li span.r {
    float: right;
    color: #333
}

div.box div.wzzy ul li p {
    border-radius: 4px;
    background: #EEE;
    padding: 4px 5px;
    color: #008000
}

div.box div.jxct ul {
    margin-top: 3px;
}

div.box div.jxct ul li {
    float: left;
    border: 1px solid #FF8000;
    margin: 1px;
    padding: 5px 0;
    width: calc(16.66% - 2px);
    border-radius: 4px;
    font-size: 1rem;
    color: #0000FF
}

div.box div.jxct ul li font {
    color: #333
}

div.box div.choice {}

div.box div.choice.pad4 {
    padding-bottom: 0
}

div.box div.choice ul.kjnf {
    padding: 5px 0;
    text-align: center;
    background: #E7E7E7;
    color: #fff
}

div.box div.choice ul.kjnf li {
    float: left;
    display: block;
    margin: 2px;
    padding: 4px 0;
    width: calc(16.66% - 4px);
    border: 1px solid #fff;
    background: #fe9f01;
    border-radius: 6px
}

div.box div.choice ul.kjnf li a {
    color: #fff;
}

div.box div.choice ul.kjnf li.active {
    background: #fff;
    font-weight: bold
}

div.box div.choice ul.kjnf li.active a {
    color: #333
}

div.box div.choice div.yearDialog {
    position: fixed;
    max-width: 720px;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1001;
    display: none
}

div.box div.choice div.yearDialog ul.kjnf {
    background: #fff
}

div.box div.choice div.yearDialog ul.kjnf li {
    border-color: #eee;
    border-radius: 3px
}

div.box div.choice dl {
    line-height: 26px;
    text-align: center;
    padding-bottom: 8px;
    background: #ffffcc
}

div.box div.choice dl.sx {
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc
}

div.box div.choice dl h3 {
    float: left;
    width: 10%;
    line-height: 30px;
    color: #ff0000;
    font-size: 1.2rem;
}

div.box div.choice dl ul {
    float: left;
    width: 90%
}

div.box div.choice dl ul li {
    float: left;
    width: 7.69%;
    padding: 2px 0;
}

div.box div.choice dl ul li .position_superior {
    width: 35px;
    margin: 0 auto;
    text-align: center;
    border-radius: 3px;
    clear: none;
    cursor: pointer;
    border: 1px solid #ccc
}

div.box div.choice dl ul li .active {
    background: #ec6337;
    color: #fff;
    border-color: #ec6337;
}

div.box div.choice dl ul li button.position_superior {
    height: 26px;
    background: #41b45f;
    border-color: #41b45f;
    color: #fff
}

div.box div.history.pad4 {
    padding-top: 0
}

div.box div.history ul li dl div.opacityOne {
    opacity: 0.1;
}

div.box div.history div.checked {
    padding: 5px;
    background: #ffffcc;
    color: #999;
    font-size: 14px
}

div.box div.history ul li {
    margin: 3px 0;
    background: #fafafa;
    color: #666
}

div.box div.history ul li:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden
}

div.box div.history ul li dt {
    padding-left: 6px;
    height: 1.6rem;
    line-height: 1.6rem;
    font-size: 1.1rem
}

div.box div.history ul li dl {
    text-align: center;
    font-size: 1.2rem
}

div.box div.history ul li dl div.ball {
    width: 13%;
    float: left
}

div.box div.history ul li dl div.te {
    width: 9%;
    float: left
}

div.box div.history ul li dl div.ball p {
    margin: 0 auto;
    background: #fff;
    width: 96%;
    border: 1px solid #e3e3e3;
    border-radius: 1px;
}

div.box div.history ul li dl div.ball span {
    height: 1.8rem;
    line-height: 1.8rem;
    display: block;
    font-weight: 700;
    border-radius: 2px
}

div.box div.history ul li dl div.ball span.blue {
    color: #fff;
    background: blue
}

div.box div.history ul li dl div.ball span.green {
    color: #fff;
    background: green
}

div.box div.history ul li dl div.ball span.red {
    color: #fff;
    background: red
}

div.box div.history ul li dl div.ball b {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem
}

div.box .article {
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
    color: #333;
    text-align: center;
    font-weight: bold
}

div.box .article h3 {
    font-size: 1.2rem;
    padding: 15px 8px 8px;
    overflow: hidden;
}

div.box .article h3,
div.box .article dl {
    display: block;
}

div.box .article dl {
    padding: 8px 8px;
    border-top: 1px #ffeda4 dashed;
    border-bottom: 1px #ffeda4 dashed;
    font-weight: 400;
    color: #d2b335
}

div.box .article ul.content {
    padding: 5px 8px;
    font-size: 1.1rem
}

div.box .article ul.content li {
    padding: 10px 0;
}

div.box .article ul.content li p {
    padding: 2px 10px
}

div.box .article ul.content li u {
    color: #ff0000;
    text-decoration: none;
}

div.box .article ul.content li span {
    color: #0000ff
}

div.box .article ul.content li font {
    color: #ff0000
}

div.box .article ul.content.tl li {
    text-align: left;
}

div.box .article ul.content li:last-child {
    border-bottom: 0
}

div.box .article .ts {
    text-align: center;
    padding: 8px 0;
    border-top: 1px #ffeda4 dashed;
}

div.box .article .ts p {
    padding: 6px 0
}

div.box .article .ts p.ym {
    font-size: 1.26rem;
}

div.box div.tmzs {
    padding: 6px;
}

div.box div.tmzs div.anBtn {
    background: #fffef9
}

div.box div.tmzs div.anBtn div.tmzsResult {
    height: 163px;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    padding: 3px
}

div.box div.tmzs div.anBtn div.tmzsResult .ball_box {
    display: inline-block;
    width: 10%;
    text-align: center;
    float: left;
    padding: 2px
}

div.box div.tmzs div.tmzsTable table {
    border-collapse: collapse;
    text-align: center;
    width: 100%;
    margin: 10px 0 2px 0;
    border: 1px solid #c9c9c9
}

div.box div.tmzs div.tmzsTable table tr.borTop {
    border-top: 1px solid #c9c9c9
}

div.box div.tmzs div.tmzsTable table tr.borBtm {
    border-bottom: 1px solid #c9c9c9
}

div.box div.tmzs div.tmzsTable table tr td {
    text-align: center;
    padding: 0 5px
}

div.box div.tmzs div.tmzsTable table tr.borBtm td>div {
    margin-bottom: 8px
}

div.box div.tmzs div.tmzsTable table tr td h3 {
    font-size: 16px;
    color: #ff0000;
}

div.box div.tmzs div.tmzsTable table tr td span {
    display: inline-block;
    border: 1px solid #ccc;
    height: 27px;
    line-height: 27px;
    width: 100%;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    margin: 8px 0;
    background: #FF9900
}

div.box div.tmzs div.tmzsTable table tr td div {
    border: 1px solid #ccc;
    height: 27px;
    line-height: 27px;
    width: 100%;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
    background: #f6f6f6
}

div.box div.tmzs div.tmzsTable table tr td.borRgt {
    border-right: 1px solid #c9c9c9
}

div.box div.tmzs div.tmzsTable table tr td.borRgt div {
    margin-top: 6px;
    margin-bottom: 6px
}

div.box div.tmzs div.tmzsTable table tr td .hover {
    border: 1px solid #e57149;
    color: #fff;
    background-color: #e57149
}

.blueBall,
.greenBall,
.redBall {
    display: inline-block;
    width: 27px;
    height: 27px;
    background: url(ball.png?v=udf6c913d) no-repeat 0 0;
    background-size: 55px 55px;
    line-height: 23px;
    font-size: 14px;
    color: #303030;
    font-weight: 700;
    text-align: center
}

.greenBall {
    background-position: -28px 0
}

.redBall {
    background-position: 0 -28px
}

div.box.phvad {
    padding: 4px;
    display: none
}

div.footer {
    padding: 4px 8px;
    text-align: center;
}

div.footer p {
    padding: 4px 0;
}

@media screen and (max-width:720px) {
    div.top .logobox .logo {
        margin-left: 5px
    }
    div.top .nav span {
        font-size: 1.1rem
    }
    div.box {
        margin: 4px
    }
    div.box div.choice div.yearDialog {
        left: 3px;
        right: 3px
    }
    div.box div.choice dl.sx h3 {
        line-height: 60px;
    }
    div.box div.choice dl ul li {
        float: left;
        width: 12.5%;
        padding: 2px 0;
    }
    div.box div.choice dl.sx ul li button.position_superior {
        width: 78px;
    }
    div.box div.ptwx ul li {
        font-size: 1.3rem
    }
    div.box div.ptwx ul li span font {
        font-size: 1.1rem
    }
    div.box div.yxym table td.c {
        font-size: 1.2rem
    }
    div.box div.yxym table td.huan dt {
        width: 110px;
        margin: 0 auto;
        text-align: center
    }
    div.box div.jxct ul li {
        width: calc(25% - 2px)
    }
    div.box .article ul.content li dt.f8 {
        margin: 0 auto;
        width: 180px
    }
    div.box .article ul.content li dt.f14 {
        margin: 0 auto;
        width: 310px
    }
}

/* ===== 内联 ===== */

/* 優化頂部樣式 */
.top {
  height: 40px !important;
  min-height: 40px !important;
  padding: 5px 10px !important;
}

.top .logo {
  font-size: 16px !important;
  line-height: 30px !important;
}

.top .logo b font {
  font-size: 16px !important;
}

.top .icon .prev {
  font-size: 14px !important;
  margin-top: 5px !important;
}

/* 左上角返回按鈕（覆蓋基礎圖標樣式） */
.top .icon a.back-link {
  position: absolute;
  left: 6px;
  top: 5px;
  text-decoration: none;
  z-index: 3;
}

.top .icon a.back-link .prev {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  box-sizing: border-box;
  overflow: visible;
  background-image: none !important;
  background: linear-gradient(145deg, #f7f7f7, #e8e8e8);
  border: 1px solid #cfcfcf;
  color: #333 !important;
  font-weight: 700;
  font-size: 14px !important;
  letter-spacing: 0.5px;
  margin-top: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.14);
  text-shadow: none;
  transition: all 0.2s ease;
}

/* 春節主題下的返回按鈕 */
body.festive .top .icon a.back-link .prev {
  background: linear-gradient(145deg, #cf1322, #a8071a);
  border: 1.5px solid #faad14;
  color: #fadb14 !important;
  box-shadow: 0 2px 8px rgba(168, 7, 26, 0.35), inset 0 1px 1px rgba(255,255,255,0.18);
  text-shadow: 0 1px 1px rgba(0,0,0,0.22);
}

body.festive .top .icon a.back-link:active .prev {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 4px rgba(168, 7, 26, 0.35), inset 0 1px 1px rgba(255,255,255,0.12);
}

.nullbox44 {
  height: 40px !important;
}

/* 優化標籤行間距 */
.rili-tab-row {
  margin-top: 5px;
  margin-bottom: 5px;
}

.rili-tab-row ul {
  display: flex;          
  list-style: none;       
  padding: 0;             
  margin: 0;              
  width: 100%;           
}

.rili-tab-row li {
  flex: 1;                 
  text-align: center;     
}

.rili-tab-row a {
  display: block;         
  padding: 10px 0;        
  margin: 0 1px;          
  text-decoration: none;   
  color: #333;            
  background: #f0f0f0;     
  border-radius: 4px;     
  transition: all 0.3s;  
  font-weight: bold;      
  font-size: 1.4rem;
}

@media screen and (max-width: 480px) {
  .rili-tab-row a {
    font-size: 1.2rem;
    padding: 8px 0;
  }
}

@media screen and (max-width: 360px) {
  .rili-tab-row a {
    font-size: 1rem;
    padding: 6px 0;
  }
}

.rili-tab-row a:hover {
  background: #e0e0e0;    
  color: #000;           
}

.rili-tab-row a.active {
  background: #1890ff;
  color: white;
}

/* 選項卡切換加載態 */
.tab-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.tab-loading-mask.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.tab-loading-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.tab-loading-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    border-top-color: #1890ff;
    animation: tabLoadingSpin 0.75s linear infinite;
}
.tab-loading-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
@keyframes tabLoadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 春節喜慶主題（除夕至正月十五） ========== */

/* 頁面背景 */
body.festive {
    background: linear-gradient(180deg, #fef8f0 0%, #fdecd0 50%, #fce4c0 100%) !important;
}

/* 頂部導航欄 */
body.festive .top {
    background: linear-gradient(145deg, #cf1322, #a8071a) !important;
    box-shadow: 0 2px 10px rgba(168, 7, 26, 0.4);
    border-bottom: 2px solid #faad14;
}
body.festive .top .logo {
    top: 5px;
    left: 0;
    right: 0;
    height: 30px;
    line-height: 30px !important;
    display: flex;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}
body.festive .top .logo b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 150px);
    padding: 0 4px;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
}
body.festive .top .logo b font {
    color: #fadb14 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.festive .top .icon .prev {
    color: #fadb14 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
body.festive .tab-loading-mask {
    background: rgba(96, 9, 19, 0.35);
}
body.festive .tab-loading-card {
    border: 1px solid #faad14;
    background: linear-gradient(145deg, #cf1322, #a8071a);
    box-shadow: 0 6px 20px rgba(96, 9, 19, 0.45);
}
body.festive .tab-loading-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fadb14;
}
body.festive .tab-loading-text {
    color: #fadb14;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Tab標籤容器 */
body.festive .rili-tab-row {
    background: linear-gradient(145deg, #fef6ec, #fdefd6);
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid rgba(212, 162, 78, 0.3);
    box-shadow: 0 2px 6px rgba(168, 7, 26, 0.06);
}
body.festive .rili-tab-row a {
    background: linear-gradient(145deg, #fff5e6, #ffe0b8);
    border: 1px solid #e8c07a;
    color: #8c4a1a;
    border-radius: 6px;
    transition: all 0.3s ease;
}
body.festive .rili-tab-row a:hover {
    background: linear-gradient(145deg, #ffe8cc, #ffd6a0);
    box-shadow: 0 2px 6px rgba(212, 162, 78, 0.3);
}
body.festive .rili-tab-row a.active {
    background: linear-gradient(145deg, #cf1322, #a8071a) !important;
    border: 1.5px solid #faad14 !important;
    color: #fadb14 !important;
    box-shadow: 0 3px 10px rgba(168, 7, 26, 0.4), inset 0 1px 1px rgba(255,255,255,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* 主容器 */
body.festive .box {
    background: linear-gradient(180deg, #fef8f0 0%, #fff2e4 40%, #ffecd4 100%);
    border: 2px solid #d4a24e;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(212, 162, 78, 0.3), 0 4px 16px rgba(168, 7, 26, 0.1);
    position: relative;
    overflow: hidden;
}
body.festive .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #faad14, #cf1322, #faad14, #cf1322, #faad14);
    background-size: 200% 100%;
    animation: festiveBar 4s linear infinite;
    z-index: 1;
}
body.festive .box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cf1322, #faad14, #cf1322, #faad14, #cf1322);
    background-size: 200% 100%;
    animation: festiveBar 4s linear infinite reverse;
    z-index: 1;
}
@keyframes festiveBar {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ---- 篩選區域 ---- */
body.festive .choice dl {
    background: linear-gradient(145deg, #fef6ec, #fdefd6);
    border-bottom: 1px solid #e8c07a;
}
body.festive .choice dl h3 {
    color: #cf1322;
    text-shadow: 0 1px 1px rgba(207, 19, 34, 0.15);
}
/* 篩選按鈕（位置 + 生肖） */
body.festive .choice dl ul li .position_superior {
    background: linear-gradient(145deg, #fffdf5, #fff5e0);
    border: 1px solid #d4a24e;
    color: #8c4a1a;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(212, 162, 78, 0.15);
}
body.festive .choice dl ul li .position_superior:hover {
    background: linear-gradient(145deg, #fff0d0, #ffe5b5);
    box-shadow: 0 2px 4px rgba(212, 162, 78, 0.3);
    transform: translateY(-1px);
}
/* 篩選按鈕 - 選中態 */
body.festive .choice dl ul li .position_superior.active,
body.festive .choice dl ul li .active {
    background: linear-gradient(145deg, #cf1322, #a8071a) !important;
    color: #fadb14 !important;
    border-color: #faad14 !important;
    box-shadow: 0 2px 6px rgba(168, 7, 26, 0.35), inset 0 1px 1px rgba(255,255,255,0.15);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    transform: translateY(0);
}
/* "還原" 按鈕 */
body.festive .choice dl ul li button.position_superior {
    background: linear-gradient(145deg, #faad14, #d48806) !important;
    border: 1.5px solid #cf1322 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(212, 136, 6, 0.35), inset 0 1px 1px rgba(255,255,255,0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
body.festive .choice dl ul li button.position_superior:hover {
    background: linear-gradient(145deg, #ffc53d, #faad14) !important;
    box-shadow: 0 3px 8px rgba(212, 136, 6, 0.45);
}
body.festive .choice dl.sx {
    border-bottom-color: #e8c07a;
}

/* ---- 歷史記錄行 ---- */
body.festive .history ul li {
    background: linear-gradient(135deg, #fffdf8 0%, #fff8ee 100%);
    border-left: 3px solid #cf1322;
    margin: 6px 0;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(168, 7, 26, 0.08), 0 0 0 1px rgba(212, 162, 78, 0.12);
    transition: box-shadow 0.2s ease;
}
body.festive .history ul li:hover {
    box-shadow: 0 2px 8px rgba(168, 7, 26, 0.12), 0 0 0 1px rgba(212, 162, 78, 0.25);
}

/* 期號標題行 */
body.festive .history ul li dt {
    color: #1f1f1f;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(250, 220, 120, 0.35), rgba(255, 255, 255, 0.6));
    border-radius: 4px 4px 0 0;
    text-shadow: none;
}
body.festive .history ul li dt b {
    color: #000;
    text-shadow: none;
}

/* 號碼球 */
body.festive .history ul li dl div.ball p {
    border-color: rgba(212, 162, 78, 0.45);
    box-shadow: 0 1px 4px rgba(250, 173, 20, 0.2);
    background: linear-gradient(180deg, #fffef8, #fff8ee);
}
body.festive .history ul li dl div.ball span.red {
    background: linear-gradient(145deg, #cf1322, #e84749);
    box-shadow: 0 0 6px rgba(207, 19, 34, 0.35);
}
body.festive .history ul li dl div.ball span.blue {
    background: linear-gradient(145deg, #0755C1, #1890ff);
    box-shadow: 0 0 6px rgba(7, 85, 193, 0.35);
}
body.festive .history ul li dl div.ball span.green {
    background: linear-gradient(145deg, #389e0d, #52c41a);
    box-shadow: 0 0 6px rgba(56, 158, 13, 0.35);
}

/* 生肖文字 */
body.festive .history ul li dl div.ball b {
    color: #a8071a;
    font-weight: 700;
}

/* "特" 標記 */
body.festive .history ul li dl div.te {
    color: #cf1322;
    font-weight: 900;
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(250, 173, 20, 0.5), 0 1px 2px rgba(168, 7, 26, 0.2);
    position: relative;
}
body.festive .history ul li dl div.te::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 22px; height: 22px;
    border: 1.5px solid #faad14;
    border-radius: 50%;
    opacity: 0.5;
}

/* 特碼球（第7球）金色光暈 */
body.festive .history ul li dl div.ball:last-child p {
    border-color: #faad14;
    box-shadow: 0 0 8px rgba(250, 173, 20, 0.4), 0 1px 4px rgba(0,0,0,0.1);
}
body.festive .history ul li dl div.ball:last-child b {
    color: #cf1322;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(207, 19, 34, 0.15);
}

/* ---- 底部 ---- */
body.festive .footer {
    color: #8c4a1a;
    background: linear-gradient(145deg, rgba(254, 248, 240, 0.6), rgba(253, 239, 214, 0.6));
    border-radius: 8px;
    padding: 8px;
    margin: 4px;
}
body.festive .footer p {
    text-shadow: 0 1px 1px rgba(212, 162, 78, 0.15);
}

/* ---- 分頁 ---- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination a {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.pagination a:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pagination span.current {
    background: #1890ff;
    color: #fff;
    border: 1px solid #1890ff;
}
.pagination span.info {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}
/* 分頁喜慶樣式 */
body.festive .pagination a {
    background: linear-gradient(145deg, #fff5e6, #ffe0b8);
    border: 1px solid #d4a24e;
    color: #8c4a1a;
}
body.festive .pagination a:hover {
    background: linear-gradient(145deg, #ffe8cc, #ffd6a0);
    box-shadow: 0 2px 6px rgba(212, 162, 78, 0.3);
}
body.festive .pagination span.current {
    background: linear-gradient(145deg, #cf1322, #a8071a);
    border: 1.5px solid #faad14;
    color: #fadb14;
    box-shadow: 0 2px 8px rgba(168, 7, 26, 0.3);
}
body.festive .pagination span.info {
    color: #8c4a1a;
}


/* 历史记录分页（补齐 680 期后新增） */
.history-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0 18px; }
.history-pager .pager-btn { display: inline-block; min-width: 74px; padding: 6px 14px; color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; text-decoration: none; background: linear-gradient(145deg, #cf1322, #a8071a); border: 1px solid #faad14; border-radius: 6px; }
.history-pager .pager-btn.is-disabled { color: #c9bfb2; background: #f0e9df; border-color: #ddd3c4; }
.history-pager .pager-info { color: #8c4a1a; font-size: 13px; font-weight: 700; }
div.box div.choice ul.kjnf { display: flex; gap: 8px; padding: 6px 4px 2px; }
div.box div.choice ul.kjnf li a { display: block; padding: 2px 14px; color: #8c4a1a; font-size: 13px; line-height: 22px; text-decoration: none; background: #fff8ec; border: 1px solid #e8c07a; border-radius: 4px; }
div.box div.choice ul.kjnf li.active a { color: #fff; background: linear-gradient(145deg, #cf1322, #a8071a); border-color: #faad14; }
