/* Reset default spacing */
body, html {
    margin: 0;
    padding: 0;
    font-family: "LiSu", "隶书";
    font-weight: bold;
}

/* Project title styling */
.section {
    background-color: #e6e0e0;
}

.section .tit {
    background-color: #2e0e0e;
    color: rgb(240, 240, 5);
    text-align: center;
    padding: 8px 0;
    margin: 2px 0 0 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Content styling */
.section .content {
    text-align: center;
    border: 2px solid #2e0e0e;
    font-size: 17px;
}

#jzyx, #jxzt, #jzsd {
    font-size: 14px;
}

.section .content p {
    border-bottom: 1px dashed #101011;
    padding-top: 0px;
    padding-bottom: 10px;
    margin-bottom: 0;
    line-height: 1.2;
    min-height: 10px;
}

.section .content p:last-child {
    border-bottom: none;
}

.section .content .qi {
    color: #083dee;
}

.section .content .name {
    color: #080505;
}

.section .content .num {
    color: #ff0202;
}

.section .content .kai {
    color: #017a17;
}

.section .content .jxyc {
    color: #fc0707;
}

.section .content .jxkai {
    color: #017a17;
}

/* 精准一肖三列布局 */
.section .content.yxym p {
    flex: 1 0 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin: 10px;
}

.section .content.yxym p[style*="background:#ff0"] {
    margin: 0px;
    padding: 12px;
    height: 5px;
}

.section .content.yxym .jxqi {
    width: 25%;
    text-align: left;
}

.section .content.yxym .jxyc {
    width: 50%;
    text-align: center;
}

.section .content.yxym .jxkai {
    width: 25%;
    text-align: right;
}

/* Mobile first - default width */
.container, .section, .content-area {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

/* Fixed home section */
.section.home-section {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    z-index: 1000;
}

body {
    padding-top: 120px; /* 减少10px顶部内边距 */
}

/* 头部统一样式 */
.cgi-head-home {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(212, 120, 34);
    gap: 20px;
    box-sizing: border-box;
    height: 60px;
}

.cgi-head-home > div {
    flex: 1;
    display: flex !important;
    justify-content: center !important;
}

.cgi-head-home img {
    display: block !important;
    height: 50px !important;
    width: auto !important;
    border: none !important;
    object-fit: contain !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 特定图片调整 */
.cgi-head-home > div:first-child img:nth-child(2) {
    margin-left: -150px !important;
    margin-top: 3px !important;
}

.cgi-head-home > div:last-child img {
    margin-right: -130px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cgi-head-home {
        flex-direction: row;
        height: 50px;
        padding: 0 5px;
        gap: 10px;
    }
    
    .cgi-head-home img {
        height: 40px !important;
    }
    
    .cgi-head-home > div:first-child img:nth-child(2) {
        margin-left: -120px !important;
    }
    .cgi-head-home > div:last-child img {
        margin-right: -100px !important;
    }
}

/* iframe基础样式 */
.section iframe {
    height: 45px;
    width: 100%;
    min-width: 100%;
    max-width: 600px;
    display: block;
    border: none;
    box-sizing: border-box;
    margin: 0 auto;
    background-color: transparent;
}

/* 历史记录链接容器 */
.history-link-container {
    text-align: center;

}

/* 历史记录链接样式 */
.history-link {
    color: #faf9f9;
    font-weight: bold;
    text-decoration: none;
    background-color: #d7710a;
    padding: 5px 0;
    border-radius: 13px;
    display: block;
    box-sizing: border-box;
    height: 25px;
    line-height: 15px;
    transition: background-color 0.3s ease;
}

.history-link:hover {
    background-color: #017a17;
}

/* Desktop override */
@media (min-width: 992px) {
    body {
        padding-top: 130px;
    }
    .container, .section, .content-area {
        width: 600px;
    }
    .section iframe {
        height: 45px;
        width: 100%;
        min-width: 100%;
        margin: 0;
    }
}

/* Table styling for 三期必出 */
#sqbc table {
    width: 100%;
    border-collapse: collapse;
}

#sqbc td {
    font-weight: bold;
    padding: 5px;
    text-align: center;
}

#sqbc .qi {
    color: #0c18f4;
    font-weight: bold;
}

#sqbc .name{
    color: #010914;
    font-weight: bold;
}

#sqbc .num {
    color: #f90404;
    font-weight: bold;
}

#sqbc .kai {
    color: #017a17;
    font-weight: bold;
}
.section .content table td {
    border: 1px solid #2e0e0e;
    text-align: center;
    vertical-align: middle;
}
.section .content table .qi {
    width: 20%;
}
.section .content table .num {
    width: 55%;
}

.section .content table .kai {
    width: 25%;
}
