/* 独立站样式 - 28开奖预测系统 */
._head {
    padding-top: 0px;
    text-align: center;
}

._head span {
    display: inline-block;
    line-height: 36px;
    font-weight: normal;
    font-size: 30px;
    padding-top: 20px;
    padding-bottom: 10px;
}

._head p {
    font-size: 13px;
    color: #555;
}

._nav {
    text-align: center;
}

._search {
    white-space: normal;
    text-align: center;
    max-width: 420px;
    padding-left: 10px;
}

.row {
    vertical-align: middle;
    width: 88%;
    display: block;
}

th {
    text-align: center;
}

td {
    text-align: center;
}

.label-badge {
    padding: 7px 7px;
    border-radius: 25%;
}

.radius1 {
    border-radius: 2%;
}

.label-danger {
    background-color: #E34040;
}

.label-primary {
    background-color: #0094E0;
}

table {
    font-size: 15px;
}

.am-text-sm1 {
    color: red !important;
}

/* 容器样式 */
.lottery-container {
    max-width: 700px;
    margin: 0 auto;
    padding-right: 5px;
    padding-left: 5px;
    font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, 'Microsoft Yahei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
}

/* 头部广告区域 */
.lottery-ads-area {
    text-align: center;
}

.lottery-ads-area .text-ads-wrapper h3 {
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

.lottery-ads-area .text-ads-wrapper a {
    color: #145ccd;
    text-decoration: none;
}

.lottery-ads-area .image-ads-wrapper {
    margin: 10px 0;
}

.lottery-ads-area .ad-banner {
    margin-bottom: 10px;
}

.lottery-ads-area .ad-banner img {
    width: 100%;
    border-radius: 4px;
}

/* 当前期信息 */
#current-info {
    padding-bottom: 10px;
    text-align: center;
    margin: 0;
    list-style: none;
}

#current-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

#current-info strong {
    font-weight: bold;
    color: #E34040;
    font-size: 18px;
}

#current-info .label {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    display: inline-block;
}

#current-info .label-primary {
    background-color: #0094E0;
    color: white;
}

#current-info .label-danger {
    background-color: #E34040;
    color: white;
}

/* Tab 导航 */
.lottery-container .nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.lottery-container .nav-tabs > li {
    float: left;
    margin-bottom: -1px;
    list-style: none;
}

.lottery-container .nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.53846154;
    padding: 8px 15px;
    font-size: 13px;
    color: #353535;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    display: block;
}

.lottery-container .nav-tabs > li > a:hover {
    border-color: #e5e5e5 #e5e5e5 #ddd;
    background-color: #f1f1f1;
}

.lottery-container .nav-tabs > li.active > a,
.lottery-container .nav-tabs > li.active > a:hover,
.lottery-container .nav-tabs > li.active > a:focus {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

/* Tab 内容区域 */
.lottery-container .tab-content {
    padding: 10px 0;
}

/* 模式切换按钮 */
#mode-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
    list-style: none;
}

#mode-tabs li {
    flex: 1;
    min-width: 70px;
    list-style: none;
}

#mode-tabs li a {
    display: block;
    padding: 8px 5px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: normal;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#mode-tabs li.active a {
    background-color: #0094E0;
    border-color: #0094E0;
    color: white;
}

/* 算法按钮 - 一行4个（与独立站一致） */
#algo-tabs-1, #algo-tabs-2 {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
    list-style: none;
}

#algo-tabs-1 li, #algo-tabs-2 li {
    flex: 1;
    min-width: 70px;
    list-style: none;
}

#algo-tabs-1 li a, #algo-tabs-2 li a {
    display: block;
    padding: 8px 5px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#algo-tabs-1 li.active a, #algo-tabs-2 li.active a {
    background-color: #E34040;
    border-color: #E34040;
    color: white;
}

#algo-tabs-1 li a span, #algo-tabs-2 li a span {
    color: red;
    font-size: 10px;
}

#algo-tabs-1 li.active a span, #algo-tabs-2 li.active a span {
    color: #ffe0b2;
}

/* 表格样式 */
.lottery-container .table {
    width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-collapse: collapse;
    font-size: 13px;
}

.lottery-container .table thead th {
    padding: 8px;
    line-height: 1.53846154;
    vertical-align: bottom;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.lottery-container .table tbody td {
    padding: 8px;
    line-height: 1.53846154;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* 标签样式 */
.lottery-container .label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.lottery-container .label-danger {
    background-color: #E34040;
}

.lottery-container .label-primary {
    background-color: #0094E0;
}

.lottery-container .label-success {
    background-color: #38b03f;
}

/* 倒计时数字 */
#time, #times {
    font-weight: bold;
    color: #E34040;
    background: transparent;
    padding: 2px 5px;
}

/* 预测表格特码列 */
.lottery-container .table tbody td:nth-child(4) {
    font-weight: bold;
    color: #E34040;
}

/* 加载动画 */
.refreshing {
    opacity: 0.6;
    transition: opacity 0.2s;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 响应式 */
@media (max-width: 600px) {
    .lottery-container .table thead th,
    .lottery-container .table tbody td {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    #current-info .label {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .lottery-container .nav-tabs > li > a {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    #mode-tabs li a,
    #algo-tabs-1 li a,
    #algo-tabs-2 li a {
        font-size: 10px;
        padding: 6px 3px;
    }
}