:root {
    --primary-color: #4292EE;
    --primary-dark: #4292EE;
    --primary-light: #A5D6A7;
    --accent-color: #FFEB3B;
    --text-on-primary: #FFFFFF;
    --background-color: #F9FFF9;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 全站板块表头：与主色一致的不透明蓝底（避免浅蓝像半透明） */
    --section-head-bg: #4292EE;
    --section-head-border: #4a90e2;
    /* 全站内容与屏幕左右留白（各板块对齐用） */
    --page-gutter: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    color: #333;
    line-height: 1.6;
    padding: 0 var(--page-gutter);
    margin: 0 auto;
    min-height: 100vh;
    font-size: 0.8rem;
    max-width: 100%;
    width: 100%;
    background-color: #ececec;
}

/* 开奖板块 iframe：通栏贴边，避免两侧灰底露缝 */
iframe[name="kjI1"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    vertical-align: top;
}

.main-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 4px;
    border: 2px solid var(--section-head-border);
    box-sizing: border-box;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-on-primary);
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 1.1rem;
}

.header h1 {
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ========== 三列表头：期数 | 站点名◆板块名 | 结果（统一图二风格） ========== */
.header.section-head-bar,
.sxhm-card-head.section-head-bar {
    display: grid;
    /* 与 .ds-data-table 三列比例一致；用 fr 铺满 100%（纯 % 合计 95% 会右侧留白、与表体竖线错位） */
    grid-template-columns: minmax(0, 16.5fr) minmax(0, 52.5fr) minmax(0, 26fr);
    align-items: stretch;
    padding: 0;
    margin: 0;
    background: var(--section-head-bg) !important;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    text-shadow: none;
    border-bottom: 2px solid var(--section-head-border);
    box-sizing: border-box;
}

/* 春夏秋冬历史表：与 ds-data-table 左右贯通 */
.section-content-chunxqd-table {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}
.section-content-chunxqd-table .item-content {
    padding-left: 0;
    padding-right: 0;
}

/* 新正澳神算：仅本板块隐藏表头左右「期数」「结果」，中间期数标签独占一行 */
#aomen-shensuan > .header.section-head-bar {
    grid-template-columns: 1fr;
}
#aomen-shensuan > .header.section-head-bar > .section-head-cell:first-child,
#aomen-shensuan > .header.section-head-bar > .section-head-cell:last-child {
    display: none !important;
}

/* 玄机锦囊：表头单列全宽，与新正澳神算「仅中间」一致 */
#xuanji-jinnang > .header.section-head-bar {
    grid-template-columns: 1fr;
}

/* 澳门马票、八卦神算：同锦囊，仅保留中间标题 */
#ma-piao-section > .header.section-head-bar,
#ba-gua-section > .header.section-head-bar {
    grid-template-columns: 1fr;
}

.section-head-bar .section-head-cell,
.section-head-bar .section-head-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    min-height: 44px;
    line-height: 1.25;
    /* border-right: 2px solid var(--section-head-border); */
    box-sizing: border-box;
    word-break: break-word;
}

.section-head-bar .section-head-cell:last-child {
    border-right: none;
}

.section-head-bar .section-head-title {
    font-size: 0.92rem;
    padding-left: 6px;
    padding-right: 6px;
}

.section-head-bar .section-head-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 5px;
}

.section-head-bar .section-head-result a {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 4px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.section-head-bar .section-head-result a:hover {
    background: rgba(255, 255, 255, 0.35);
}

.section-head-bar .section-head-center {
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* 期数标签在表头内：浅色药丸，适配蓝底 */
.section-head-bar .period-header-tabs {
    padding: 4px 2px;
    gap: 5px;
    width: 100%;
    justify-content: center;
}

.section-head-bar .period-tab {
    background: rgba(255, 255, 255, 0.95);
    color: var(--section-head-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-size: 0.78rem;
    padding: 5px 6px;
}

.section-head-bar .period-tab:hover {
    background: #fff;
    color: #1565c0;
}

.section-head-bar .period-tab.active {
    background: red;
    color: #fff;
}

.section {
    width: 100%;
}

.section-header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 8px 0;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    width: 100%;
}

.section-content {
    width: 100%;
}

.item-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-row:last-child {
    border-bottom: none;
    padding: 0;
}


.left-element {
    width: 26%;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    color: var(--primary-dark);
}
.right-content {
    width: 32%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.hot-text {
    width: 26%;
    display: inline-block;
    text-align: right;
    vertical-align: middle;
}

.hit-number {
    color: red !important;
    font-weight: bold !important;
}

.hit-zodiac {
    color: red !important;
    font-weight: bold !important;
}

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-on-primary);
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 1.1rem;
}

.history-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.history-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 琴棋书画样式 */
.zodiac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: center;
    margin: 10px 5px;
}

.zodiac-item {
    padding: 15px 10px;
    font-weight: bold;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zodiac-item:hover {
    background: inherit;
}

.zodiac-item:nth-child(1) {
    background: #ffffff;
    border: 1px solid #4292EE;
}

.zodiac-item:nth-child(2) {
    background: #ffffff;
    border: 1px solid #4292EE;
}

.zodiac-item:nth-child(3) {
    background: #ffffff;
    border: 1px solid #4292EE;
}

.zodiac-item:nth-child(4) {
    background: #ffffff;
    border: 1px solid #4292EE;
}

.zodiac-title {
    color: var(--primary-dark);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    position: relative;
    font-size: 1.05em;
}

.zodiac-title:after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 4px auto;
    opacity: 0.6;
}

.zodiac-animals {
    color: #333;
    font-size: 1.05em;
    letter-spacing: 1px;
    display: block;
    position: relative;
}

.zodiac-item:hover .zodiac-animals {
    color: inherit;
}

/* 琴棋书画历史记录样式 */
.qqsh-history-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.qqsh-history-item:last-child {
    border-bottom: none;
}

.qqsh-period {
    flex: 0 0 15%;
    font-weight: bold;
    text-align: left;
    font-size: 0.9rem;
}

.qqsh-content {
    flex: 0 0 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.qqsh-result {
    flex: 0 0 30%;
    text-align: right;
    font-weight: normal;
    white-space: nowrap;
    font-size: 0.9rem;
}

.qqsh-item {
    display: inline-block;
    padding: 0 3px;
    font-weight: bold;
}

.qqsh-item-separator {
    display: inline-block;
    font-weight: normal;
}

.qqsh-item.qqsh-correct {
    color: red;
    font-weight: bold;
}

.qqsh-correct {
    font-weight: bold;
}

.qqsh-incorrect {
    color: #333;
    font-weight: normal;
}

.qqsh-unknown {
    color: #333;
    font-weight: normal;
}

#qin-qi-shu-hua {
    width: 100%;
}

.qqsh-zhun {
    font-weight: bold;
    color: red;
}

.qqsh-cuo {
    color: #333;
    font-weight: bold;
}

/* 七尾 / 平特三尾等：绿球、红球用图片（与必出三尾一致） */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    color: #333;
    margin: 0 2px;
    font-weight: bold;
    box-sizing: border-box;
    background: url('/ziliao/tupian/ball-green.png') center center / contain no-repeat;
    background-color: transparent;
}

.ball.hit {
    background: url('/ziliao/tupian/ball-red.png') center center / contain no-repeat;
    background-color: transparent;
    color: red;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

/* 平特三尾：纯文字「5-9-8 尾」（不再用 .ball 球形图） */
.ptsanwei-tails-text {
    display: inline;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.ptsanwei-tail-digit {
    font-weight: bold;
    color: #333;
}
.ptsanwei-tail-digit-hit {
    color: red;
}
.ptsanwei-tail-suffix {
    font-weight: bold;
    color: #333;
}

.no-data-message {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem; 
    background-color: #f9fff9;
}

/* 七尾表格样式 */
.qiwei-table {
    width: 100%;
    table-layout: fixed;
    background-color: #fff;
    font-size: 0.9rem;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
}
.qiwei-row {
    /* 行底边由 table td border-bottom 统一处理 */
}
.qiwei-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px;
    font-size: 0.8rem;
    font-weight: bold;
}
.qiwei-table td:last-child { border-right: none; }
.qiwei-table td:first-child { border-left: none; }
.qiwei-table tr:last-child td {
    border-bottom: 1px solid #4a90e2;
}
.qiwei-period { width: 16.5%; color: #333; }
.qiwei-content { width: 55.5%; }
.qiwei-result { width: 26%; }
.qiwei-content-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 2px;
    min-height: 24px;
}

/* 精选七尾：与特码个位相同的数字标红 */
.qiwei-table .qiwei-digit-hit {
    color: red;
    font-weight: bold;
}

/* 天王六肖板块：表格贴齐容器；去掉全局 .section-content 的上下 5px，避免表与底栏之间白条 */
#ban-kuai-liuxiao > .section {
    margin-bottom: 0;
}
#ban-kuai-liuxiao > .section > .section-content {
    padding: 0;
}
#ban-kuai-liuxiao #liu-xiao-zhong {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 天王六肖表格：列间蓝网格；最右列无边框，外侧与 .main-container 对齐 */
#liu-xiao-zhong table.liu-xiao-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
}

#liu-xiao-zhong table.liu-xiao-data-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px;
}

#liu-xiao-zhong table.liu-xiao-data-table td:last-child {
    border-right: none;
}


/* 天王六肖：左列黑字、中列默认黑字、右列主文红色 */
#liu-xiao-zhong td.liu-xiao-period-cell {
    width: 16.5%;
    color: #333;
    font-weight: bold;
}

#liu-xiao-zhong td.liu-xiao-zodiac-cell {
    width: 55.5%;
    color: #333;
    font-weight: bold;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: 0;
    word-spacing: 0;
    white-space: nowrap;
}

#liu-xiao-zhong td.liu-xiao-result-cell {
    width: 26%;
    color: #333;
    font-weight: bold;
}

#liu-xiao-zhong td.liu-xiao-result-cell .liu-xiao-result-miss {
    color: #333;
}

/* 命中生肖：仅红色字，无黄底/无衬底 */
#liu-xiao-zhong .liu-xiao-zodiac-hit {
    display: inline;
    background: none !important;
    background-color: transparent !important;
    color: red !important;
    font-weight: bold;
    padding: 0;
    border-radius: 0;
    line-height: 1.5;
}

/* 十八码板块：布局与必中八肖一致（蓝格三列表） */
#ban-kuai-shibama > .section {
    margin-bottom: 0;
}
#ban-kuai-shibama > .section > .section-content {
    padding: 0;
}
#ban-kuai-shibama #shibama-zhong {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#shibama-zhong table.shibama-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
}

#shibama-zhong table.shibama-data-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px;
}

#shibama-zhong table.shibama-data-table td:last-child {
    border-right: none;
}

#shibama-zhong td.shibama-period-cell {
    width: 16.5%;
    color: #333;
    font-weight: bold;
}

#shibama-zhong td.shibama-mid-cell {
    width: 55.5%;
    color: #333;
    font-weight: bold;
    padding-left: 4px;
    padding-right: 4px;
    white-space: normal;
    word-break: normal;
    line-height: 1.45;
    font-size: 0.78rem;
}

/* 二十四码：三行、每行 8 个，数与数之间「. 」分隔，蓝色衬线字（与参考图一致） */
#shibama-zhong .shibama-mid-lines {
    color: #333;
    font-weight: normal;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.55;
    letter-spacing: 0.02em;
    text-align: center;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#shibama-zhong td.shibama-result-cell {
    width: 26%;
    color: #333;
    font-weight: bold;
}

#shibama-zhong td.shibama-result-cell .shibama-result-miss {
    color: #333;
}

#shibama-zhong .shibama-mid-lines .shibama-num-hit {
    display: inline;
    background: none !important;
    color: red !important;
    padding: 0;
}

/* 六肖样式 */
.liuxiao-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0px;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
    margin-bottom: 0;
}
.liuxiao-item:nth-child(odd) {
    background-color: white;
}
.liuxiao-item:last-child {
    border-bottom: none;
}
.liuxiao-qishu {
    flex: 0 0 21.6%;
    font-weight: bold;
    color: #333;
    text-align: left;
    display: flex;
    align-items: center;
}
.liuxiao-content {
    flex: 1;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    width: 59%;
}
.liuxiao-result {
    flex: 0 0 30%;
    text-align: right;
    white-space: normal;
    display: block;
    overflow: visible;
    min-width: 100px;
}
.liuxiao-result span:first-child {
    margin-right: 0px;
}
.liuxiao-correct {
    color: red;
    font-weight: bold;
}
.liuxiao-incorrect {
    color: #333;
    font-weight: bold;
}

/* 大小中特样式 */
.daxiao-title {
    width: 20%;
    font-weight: bold;
    color: var(--primary-dark);
}

.daxiao-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0px;
}

.daxiao-row:last-child {
    border-bottom: none;
}

.daxiao-period {
    width: 16%;
    font-weight: bold;
}

.daxiao-prediction {
    width: 38%;
    text-align: center;
    font-weight: bold;
}

.daxiao-kaijiang {
    width: 26%;
    text-align: right;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.daxiao-result {
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.prediction-text {
    color: #333;
    text-align: center;
}

.prediction-correct {
    color: red;
    text-align: center;
}

.result-correct {
    color: red;
    font-weight: bold;
}

.result-incorrect {
    color: #333;
    font-weight: bold;
}

/* 三头预测样式 */
#santou-container {
    width: 100%;
}

.santou-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.santou-item:last-child {
    border-bottom: none;
}

.santou-period-label {
    flex: 0 0 16%;
    font-weight: bold;
    white-space: nowrap;
}

.santou-highlight {
    flex: 0 0 20%;
    color: var(--primary-dark);
    font-weight: bold;
    white-space: nowrap;
}

.santou-content-area {
    flex: 0 0 37%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.santou-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.santou-number.hit {
    background-color: red;
}

.santou-result-area {
    flex: 0 0 35%;
    text-align: right;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.santou-result-number {
    display: inline-block;
    margin: 0 3px 0px 0px;
}

.santou-result-number.hit {
    background-color: red;
    color: white;
    padding: 0 4px;
    border-radius: 3px;
}

.santou-result-zodiac {
    display: inline-block;
    margin: 0;
}

.santou-result-correctness {
    display: inline-block;
    margin-left: 8px;
}

.santou-result-correctness.correct {
    color: red;
}

.santou-result-area.correct {
    color: red;
}

.santou-result-area.incorrect {
    color: #333;
}

.santou-result-area.pending {
    color: red;
}

.santou-loading-message, .santou-error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.santou-error-message {
    color: red;
}

@media (max-width: 768px) {
    .santou-period-label {
        flex: 0 0 18%;
    }
    
    .santou-highlight {
        flex: 0 0 20%;
    }
    
    .santou-content-area {
        flex: 0 0 25%;
    }
    
    .santou-result-area {
        flex: 0 0 37%;
    }
    
    .santou-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .santou-item {
        flex-wrap: wrap;
        padding: 8px 0;
    }
    
    .santou-period-label {
        flex: 0 0 15%;
        font-size: 0.9rem;
    }
    
    .santou-highlight {
        flex: 0 0 20%;
        font-size: 0.9rem;
    }
    
    .santou-content-area {
        flex: 0 0 38%;
        font-size: 0.9rem;
    }
    
    .santou-result-area {
        flex: 0 0 26%;
        text-align: right;
        margin-top: 5px;
        font-size: 0.9rem;
    }
    
    .santou-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9rem;
        margin: 0 2px;
    }
}

/* 前后生肖样式（及同类双卡说明区）：左右留白，避免贴边 */
.zodiac-container {
    display: flex;
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
    box-sizing: border-box;
}

.zodiac-row {
    flex: 1;
    padding: 15px 5px;
    border-radius: 8px;
    text-align: center;
}

.zodiac-row:first-child {
    background: #fff;
    border: 1px solid #4292EE;
}

.zodiac-row:last-child {
    background: #fff;
    border: 1px solid #4292EE;
}

.zodiac-label {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: block;
}

.zodiac-signs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.zodiac-sign {
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

.number-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.number-row:last-child {
    border-bottom: none;
}

.period {
    font-weight: bold;
    flex: 0 0 16%;
    font-size: 0.8rem;
}

.period-type {
    font-weight: bold;
    font-size: 0.8rem;
    flex: 0 0 25%;
    color: #4292EE;
}

.qianhoux-content {
    color: #333;
    font-weight: bold;
}

.qianhoux-content.correct {
    color: #FF0000;
}

/* 平特三尾 - 无数据提示 */
.no-data-message {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem; 
    background-color: #f9fff9;
}

/* 二肖杀旧版行（四列由 .bankuai-fourcol-flex；三列绝杀二肖用 .erxiao-ds-row） */
.erxiao-row:not(.bankuai-fourcol-flex):not(.erxiao-ds-row) {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.left-col {
    text-align: left;
    align-items: center;
    width: 16%;
}

.center-col {
    text-align: center;
    display: flex;
    align-items: center;
    flex: 1;
}

.right-col {
    text-align: right;
    color: #000;
    font-weight: bold;
    min-width: 100px;
}

.period {
    font-weight: bold;
    min-width: 16%;
}

.erxiao-title {
    color: var(--primary-dark);
    font-weight: bold;
    margin-right: 10%;
}

.erxiao-content {
    font-weight: bold;
    width: 50%;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.star {
    color: var(--primary-dark);
    margin: 0 2px;
}

.correct {
    color: #ff0000; /* 红色 - 用于显示"准" */
    font-weight: bold;
}

/* 五肖五码样式 */
.item-qishu {
    flex: 0 0 16%;
    font-weight: bold;
    white-space: nowrap;
}

.item-content {
    flex: 1;
    font-weight: bold;
}

.item-result {
    flex: 0 0 30%;
    text-align: right;
    font-weight: bold;
}

/* 五肖五码板块：与必中八肖同风格——列间蓝网格；最右列无边框贴容器 */
#sixiaosima > .section {
    margin-bottom: 0;
}
#sixiaosima > .section > .section-content {
    padding: 0;
}
#sixiaosima-container {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#sixiaosima-container table.sixiaosima-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
}

#sixiaosima-container table.sixiaosima-data-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px; /* 与 #liu-xiao-zhong 表格一致 */
}

#sixiaosima-container table.sixiaosima-data-table td:last-child {
    border-right: none;
}

#sixiaosima-container table.sixiaosima-data-table tr:last-child td {
    border-bottom: 1px solid #4a90e2;
}

#sixiaosima-container td.sixiaosima-period-cell {
    width: 16.5%;
    color: #333;
    font-weight: bold;
}

#sixiaosima-container td.sixiaosima-zodiac-cell {
    width: 55.5%;
    color: #333;
    font-weight: bold;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: 0;
    word-spacing: 0;
    white-space: normal;
    line-height: 1.5;
}

#sixiaosima-container td.sixiaosima-result-cell {
    width: 26%;
    color: #333;
    font-weight: bold;
}

#sixiaosima-container .sixiaosima-empty {
    color: #999;
}

/* 单双生肖：一行文案「单肖: xxx 双肖: xxx」 */
#sixiaosima-container .sixiaosima-danshuang-text {
    display: inline-block;
    color: #333;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    padding: 2px 4px;
}

/* 与开奖生肖一致的肖字标红 */
#sixiaosima-container .sixiaosima-sx-hit {
    color: red !important;
    font-weight: bold;
}

/* 单双四肖标签样式（备用） */
#sixiaosima-container .dan-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 14px;
    margin: 1px 2px;
}
#sixiaosima-container .shuang-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f3e5f5;
    color: #6a1b9a;
    border-radius: 12px;
    font-size: 14px;
    margin: 1px 2px;
}

/* 单双四肖命中项高亮 */
#sixiaosima-container .sixiaosima-hit {
    background-color: #ffd700 !important;
    color: #b71c1c !important;
    font-weight: bold;
    box-shadow: 0 0 4px rgba(183, 28, 28, 0.4);
}

.loading-message, .no-data-message {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem; 
    background-color: #f9fff9;
}

/* 五行分类样式 */
.wuxing-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.wuxing-item {
    padding: 5px 2px 5px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}



.wuxing-label {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 30px;
    color: #333;
}

.wuxing-numbers {
    font-size: 14px;
    color: #555;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* 五行等：纯色圆球（不再使用球形地图 PNG） */
.number-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 1;
    font-size: 11px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    box-sizing: border-box;
    background-color: #008000;
    background-image: none;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

.number-circle.bose-red {
    background: #e02020;
    background-image: none;
    color: #fff;
}

.number-circle.bose-blue {
    background: #07F;
    background-image: none;
    color: #fff;
}

.number-circle.bose-green {
    background: #008000;
    background-image: none;
    color: #fff;
}

/* 三个半波：纯文字，黑字加粗，命中为红字，无背景 */
#bo-se-history-container .ds-mid-content {
    font-weight: bold;
}
#bo-se-history-container .bose-tag-name {
    color: #000;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline;
    font-weight: bold;
    font-size: inherit;
}
#bo-se-history-container .bose-tag-hit {
    color: #ff0000 !important;
    font-weight: bold;
}

/* 平肖成语样式 */
.pxcy-item {
    display: flex;
    align-items: center;
    padding: 8px 0px;
    border-bottom: 1px solid #f0f0f0;
}

.pxcy-item:last-child {
    border-bottom: none;
}

.period-num {
    flex: 0 0 16%;
    font-weight: bold;
    font-size: 0.9rem;
}

.period-type {
    flex: 0 0 26%;
    font-weight: bold;
    font-size: 0.9rem;
}

.content {
    flex: 0 0 32%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}
.contentt {
    flex: 0 0 32%;
    text-align: center;
    padding: 8px 10px;
}
.result {
    flex: 0 0 26%;
    text-align: right;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.zhun {
    color: red;
    font-weight: bold;
}

.cuo {
    color: #333;
    font-weight: bold;
}

.highlight {
    font-weight: bold !important;
}

.bracket {
    color: #333;
    font-weight: bold;
}

.normal-content {
    color: #333;
    font-weight: bold;
}

.hit-content {
    color: red;
    font-weight: bold;
}

#pxcy-container {
    min-height: 300px;
}

.loading {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #666;
}

/* 家野双肖样式 */
.danssx-list {
    width: 100%;
}

.danssx-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.danssx-item:last-child {
    border-bottom: none;
}

.qishu {
    width: 16%;
    font-weight: bold;
}

.danssx-title {
    width: 26%;
    font-weight: bold;
    color: #4292EE;
}

.danssx-content {
    width: 32%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.kj-result {
    width: 26%;
    text-align: right;
}

/* .hit {
    color: red;
} */

/* 春夏秋冬样式 */
.chunxqd-history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.chunxqd-history-item:last-child {
    border-bottom: none;
}

.chunxqd-period {
    flex: 0 0 15%;
    font-weight: bold;
    text-align: left;
    font-size: 0.9rem;
}

.chunxqd-content {
    flex: 0 0 55%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.chunxqd-result {
    flex: 0 0 30%;
    text-align: right;
    font-weight: normal;
    white-space: nowrap;
    font-size: 0.9rem;
}

.chunxqd-item {
    display: inline-block;
    padding: 0 3px;
    font-weight: bold;
}

.chunxqd-item-separator {
    display: inline-block;
    font-weight: normal;
}

.chunxqd-item.chunxqd-correct {
    color: red;
    font-weight: bold;
}

.chunxqd-correct {
    color: red;
    font-weight: bold;
}

.chunxqd-incorrect {
    color: #333;
    font-weight: normal;
}

.chunxqd-unknown {
    color: #333;
    font-weight: normal;
}

#chun-xia-qiu-dong {
    width: 100%;
}

/* 春夏秋冬未开奖行：占位「中」与已开奖「中」同为红色 */
#chun-xia-qiu-dong .ds-status-pending {
    color: red;
    font-weight: bold;
}

.chunxqd-zhun {
    font-weight: bold;
    color: red;
}

.chunxqd-cuo {
    font-weight: bold;
    color: #333;
}

/* 绝杀二半波的样式 */
.sha-bo-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.sha-bo-row:last-child {
    border-bottom: none;
}

.sha-bo-period {
    width: 16%;
    font-weight: bold;
}

.sha-bo-title {
    width: 26%;
    color: var(--primary-dark);
}

.sha-bo-content {
    width: 32%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.sha-bo-result {
    width: 26%;
    text-align: right;
}

.red-text {
    color: red;
}

.black-text {
    color: #333;
}

/* 绝杀二头样式 */
.shaertou-number-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    width: 100%;
}

.shaertou-number-row:last-child {
    border-bottom: none;
}

.shaertou-period {
    font-weight: bold;
    flex: 0 0 16%;
    font-size: 0.9rem;
}
.numbers {
    width: 58%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}
.shaertou-numbers {
    flex: 0 0 26%;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
}

.shaertou-title-text {
    color: var(--primary-dark);
    font-weight: bold;
}

.shaertou-balls-container {
    flex: 0 0 32%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.shaertou-result {
    flex: 0 0 26%;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
}

.shaertou-result .correct {
    color: red;
}

.shaertou-result .black-text {
    color: #333;
}

.shaertou-result .incorrect {
    color: #333;
}

.shaertou-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    color: #333;
    margin: 0 10px;
    font-weight: bold;
    box-sizing: border-box;
    background: url('/ziliao/tupian/ball-green.png') center center / contain no-repeat;
    background-color: transparent;
}

.shaertou-ball.hit {
    background: url('/ziliao/tupian/ball-red.png') center center / contain no-repeat;
    background-color: transparent;
    color: red;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.shaertou-no-data-message {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-weight: bold;
    font-size: 0.9rem; 
    background-color: #f9fff9;
}

/* 码神绝杀一头 table：中间列纯文字「N 尾」，不用圆球背景 */
.ds-data-table .shaertou-wei-text {
    font-weight: bold;
    font-size: 0.8rem;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.ds-data-table .shaertou-pred-wrong {
    color: #e53935;
    font-weight: bold;
}

/* 绝杀二头改为 table 后：中间列两球横向排列（旧版，已少用） */
.ds-data-table .shaertou-balls-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.ds-data-table .shaertou-balls-wrap .shaertou-ball {
    margin: 0 2px;
}

/* 家禽野兽样式（与前后生肖共用 .zodiac-container） */
.zodiac-container {
    display: flex;
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
    box-sizing: border-box;
}

.zodiac-row {
    flex: 1;
    padding: 15px 5px;
    border-radius: 8px;
    text-align: center;
}

.zodiac-row:first-child {
    border: 1px solid #4292EE;
    background: #ffffff;  /* 淡粉色背景 */
}

.zodiac-row:last-child {
    border: 1px solid #4292EE;
    background: #ffffff;  /* 淡蓝色背景 */
}

.zodiac-label {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: block;
}

.zodiac-signs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.zodiac-sign {
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

.jiaye-row:not(.bankuai-fourcol-flex) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.jiaye-period {
    font-weight: bold;
    flex: 0 0 16%;
    font-size: 0.8rem;
}

.jiaye-type {
    font-weight: bold;
    font-size: 0.8rem;
    color: #4292EE;
}

.jiaye-content {
    flex: 0 0 30%;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.jiaye-result {
    flex: 0 0 27%;
    text-align: right;
    font-weight: bold;
    font-size: 0.8rem;
}

.jiaye-correct {
    color: #FF0000;
}

.jiaye-incorrect {
    color: #000000;
}

/* 家野三肖：中间列「家禽：… 野兽：…」单行不换行，极窄屏可横向滑动 */
.jiayesx-data-row .bankuai-fourcol-mid.jiayesx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.jiayesx-data-row .jiaye-content.jiayesx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 前后三肖：中间列「前肖：… 后肖：…」单行不换行，与家野三肖一致；极窄屏可横向滑动 */
.qianhousx-data-row .bankuai-fourcol-mid.qianhousx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.qianhousx-data-row .jiaye-content.qianhousx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 男女四肖：与家野三肖布局完全一致 */
.nannvsx-data-row .bankuai-fourcol-mid.nannvsx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.nannvsx-data-row .jiaye-content.nannvsx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 天地二肖：与家野三肖布局完全一致 */
.tiandisx-data-row .bankuai-fourcol-mid.tiandisx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.tiandisx-data-row .jiaye-content.tiandisx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 天地二肖：与板块标题一致的蓝色前缀 */
.tiandisx-content .tiandisx-block-label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 4px;
}

/* 天地二肖：蓝色前缀「天地二肖 》」 */
.tiandisx-data-row .tiandisx-block-label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 2px;
}

/* 左肖四肖 */
.jimeisx-data-row .bankuai-fourcol-mid.jimeisx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.jimeisx-data-row .jiaye-content.jimeisx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 笔画三肖 */
.bihuasx-data-row .bankuai-fourcol-mid.bihuasx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.bihuasx-data-row .jiaye-content.bihuasx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

.heibaisx-data-row .bankuai-fourcol-mid.heibaisx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.heibaisx-data-row .jiaye-content.heibaisx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

.yinyangsx-data-row .bankuai-fourcol-mid.yinyangsx-mid {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.yinyangsx-data-row .jiaye-content.yinyangsx-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.78rem;
}

/* 以下样式从 ziliao.html 移动过来 */

/* 导航/头部样式 */
.nav-container {

    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
    background: #4292EE;  /* 头部底色：绿色 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 新头部布局：左 logo、中 站点名称、右 首页图标 */
.site-header-bar .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    height: 50px;
    box-sizing: border-box;
}

.site-header-bar .site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
}

.site-header-bar .site-logo img {
    max-height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
}

.site-header-bar .site-logo-placeholder {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.site-header-bar .site-title {
    flex: 1;
    margin: 0;
    padding: 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 50px;
}

.site-header-bar .home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.site-header-bar .home-link .home-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    height: 50px;
}

.nav-item {
    padding: 15px 0;
    color: white;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.9rem; 
    border-radius: 0;
    margin: 0;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: white;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -1px 3px rgba(255,255,255,0.3);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px;
        padding: 16px 0;
        letter-spacing: 0;
    }
}

/* 添加导航栏占位空间 */
body::before {
    content: "";
    display: block;
    height: 50px; /* 与导航栏高度相同 */
}

/* 幻灯片样式 */
.slideshow-wrapper {
    margin-bottom: 8px;
    /* 与 body 左右 --page-gutter 对齐，不再用负边距「冲出」导致各块宽度不一致 */
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
    box-sizing: border-box;
    /* 勿用负 margin-top：会把轮播顶进固定导航下方被遮挡；占位由 body::before 50px 承担 */
    margin-top: 0;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    /* border-radius: 0px 0px 20px 20px; */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mySlides {
    display: none;
}

.mySlides img {
    vertical-align: middle;
    width: 100%;
    /* border-radius: 0px 0px 20px 20px; */
}

/* 标题文本 */
.text {
    color: #fff;
    font-size: 15px;
    padding: 10px 16px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
    font-weight: bold;
}

/* 前/后按钮 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -22px;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.4);
    text-align: center;
    line-height: 20px;
    -webkit-user-select: none;
    user-select: none;
}

.next {
    right: 15px;
}

.prev {
    left: 15px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 指示点 */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    margin-top: 8px;
}

/* 期数标签样式 */
.period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.period-header-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 5px 0;
}

.period-tab {
    padding: 6px 6px;
    background-color: #E7FFE8;
    color: var(--primary-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.82rem;
}

.period-tab:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.period-tab.active {
    background-color: #f00;
    color: white;
}

#period-image-container {
    text-align: center;
    padding: 0;
    line-height: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#current-period-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
    vertical-align: top;
    object-fit: contain;
}

@media (max-width: 768px) {
    #current-period-image {
        max-width: 100%;
    }
}

/* 波色样式 */
.ball-red {
    background-color: red;
    color: white;
}

.ball-green {
    background-color: #4CAF50;
    color: white;
}

.ball-blue {
    background-color: #07F;
    color: white;
}

/* 波色文本样式 */
.bo-red {
    color: red;
}

.bo-blue {
    color: #07F;
}

.bo-green {
    color: #4CAF50;
}

/* 三尾显示样式（必出三尾等）：绿球用图片背景 */
.tail-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 1;
    text-align: center;
    color: #fff;
    border-radius: 50%;
    margin: 0;
    margin-right: 4px;
    font-weight: bold;
    box-sizing: border-box;
    background: url('/ziliao/tupian/ball-green.png') center center / contain no-repeat;
    background-color: transparent;
}

.tail-number:last-child {
    margin-right: 0;
}

.tail-number.hit {
    background: url('/ziliao/tupian/ball-red.png') center center / contain no-repeat;
    background-color: transparent;
    color: red;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#three-tails-history-container {
    min-height: 100px;
}

/* 主攻三尾表：微软雅黑 + 中间列「主：0.3.4　防：5.8.9」（主/防间一个全角空格） */
#three-tails-history-container .ds-data-table {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#three-tails-history-container .ds-data-table .three-tails-mid-plain {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    color: #111;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
#three-tails-history-container .ds-data-table .three-tails-mid-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

#three-tails-history-container .item-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

#three-tails-history-container .item-row:last-child {
    border-bottom: none;
}

#three-tails-history-container .item-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

#three-tails-history-container .item-content .period-label {
    width: 16%;
    font-weight: bold;
    text-align: left;
    min-width: auto;
}

#three-tails-history-container .highlight {
    color: var(--primary-dark);
    font-weight: bold;
    width: 42%;
    display: inline-block;
    position: relative;
    align-self: center;
}

/* 三头中特：标题"三头中特 》"的右边框（在标题和圆圈之间） */
#three-tails-history-container .highlight::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px; /* 固定高度，不延伸到底部 */
    background-color: #4292EE;
}

#three-tails-history-container .content-area {
    width: 60%;
    display: flex;
}

#three-tails-history-container .hot-text {
    width: 26%;
    text-align: right;
    font-weight: bold;
    min-width: auto;
}

.three-tails-balls {
    display: inline-flex;
    width: 56%;
    position: relative;
    align-self: center;
}

/* 三头中特：圆圈容器的右边框（在圆圈和结果之间） */
.three-tails-balls::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px; /* 固定高度，不延伸到底部 */
    background-color: #4292EE;
}

/* 主攻三尾历史表——命中高亮 */
#three-tails-history-container .tail-hit-digit {
    color: red;
    font-weight: bold;
}
#three-tails-history-container .tail-dot-sep {
    color: #000;
    font-weight: normal;
    margin: 2px;
  }
#three-tails-history-container .tail-missing {
    color: #bbb;
}
#three-tails-history-container .tail-group-label {
    color: #000;
    font-weight: normal;
    font-weight: bold;
}
/* 结果列「中/错」与 #chun-xia-qiu-dong 共用 .ds-data-table 规则，此处不再单独改字号 */

.three-tails-balls .tail-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    margin: 0 3px;
    color: #333;
    font-weight: bold;
    box-sizing: border-box;
    background: url('/ziliao/tupian/ball-green.png') center center / contain no-repeat;
    background-color: transparent;
}

.three-tails-balls .tail-number.hit {
    background: url('/ziliao/tupian/ball-red.png') center center / contain no-repeat;
    background-color: transparent;
    color: red;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 平肖历史记录样式（含新港澳 index 中的 #ping-xiao-pingxiao） */
#ping-xiao-history-container,
#ping-xiao-pingxiao {
    min-height: 100px;
}

#ping-xiao-history-container .item-row,
#ping-xiao-pingxiao .item-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

#ping-xiao-history-container .item-row:last-child,
#ping-xiao-pingxiao .item-row:last-child {
    border-bottom: none;
}

#ping-xiao-history-container .item-content,
#ping-xiao-pingxiao .item-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

#ping-xiao-history-container .period-label,
#ping-xiao-pingxiao .period-label {
    min-width: 16%;
    font-weight: bold;
}

#ping-xiao-history-container .highlight,
#ping-xiao-pingxiao .highlight {
    color: var(--primary-dark);
    font-weight: bold;
    white-space: nowrap !important;
}

#ping-xiao-history-container .content-area,
#ping-xiao-pingxiao .content-area {
    flex: 1;
    text-align: center;
}

#ping-xiao-history-container .hot-text,
#ping-xiao-pingxiao .hot-text {
    min-width: 26%;
    text-align: right;
    font-weight: bold;
}

/* 修复平肖内容中的span样式，移除margin-left */
#ping-xiao-history-container .content-area span,
#ping-xiao-pingxiao .content-area span {
    margin-left: 0;
}

/* 复式三肖 - 列间绿色竖线（复式三肖》 | 【生肖】| 开奖） */
/* 已移除期数右侧的竖线，只保留后面两条 */

/* 复式三肖 - 参考三头中特的布局，确保整齐对齐 */
#ping-xiao-history-container .item-row .item-content,
#ping-xiao-pingxiao .item-row .item-content {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* 期数固定宽度 - 参考 new-daxiao-period */
#ping-xiao-history-container .item-row .item-content .period-label,
#ping-xiao-pingxiao .item-row .item-content .period-label {
    width: 16% !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

/* 复式三肖 》标签 - 参考三头中特的 highlight，作为独立元素，占 26% */
#ping-xiao-history-container .item-row .item-content > .highlight,
#ping-xiao-pingxiao .item-row .item-content > .highlight {
    width: 26% !important;
    color: var(--primary-dark) !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    display: inline-block !important;
    position: relative !important;
    align-self: center !important;
    flex-shrink: 0 !important;
}

/* 复式三肖 》标签的右边框（在"》"和"【"之间） */
#ping-xiao-history-container .item-row .item-content > .highlight::after,
#ping-xiao-pingxiao .item-row .item-content > .highlight::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1px !important;
    height: 20px !important;
    background-color: #4292EE !important;
}

/* 【生肖】部分 - 参考 three-tails-balls，作为独立元素，占 32% */
#ping-xiao-history-container .item-row .item-content > .pingxiao-shengxiao-content,
#ping-xiao-pingxiao .item-row .item-content > .pingxiao-shengxiao-content {
    width: 32% !important;
    text-align: center !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    position: relative !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

/* 【生肖】部分的右边框（在"】"和"开：..."之间） */
#ping-xiao-history-container .item-row .item-content > .pingxiao-shengxiao-content::after,
#ping-xiao-pingxiao .item-row .item-content > .pingxiao-shengxiao-content::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1px !important;
    height: 20px !important;
    background-color: #4292EE !important;
}

/* 结果区域 - 参考三头中特的 hot-text */
#ping-xiao-history-container .item-row .item-content .hot-text,
#ping-xiao-pingxiao .item-row .item-content .hot-text,
#ping-xiao-history-container .item-content .hot-text,
#ping-xiao-pingxiao .item-content .hot-text {
    width: 26% !important;
    text-align: right !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
}

/* 确保.content-area内的元素不使用inline样式添加margin */
.content-area > span {
    margin-left: 0 !important;
}

/* 特殊样式 */
.accent {
    color: #ff7600;
}

.shengxiao-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.shengxiao-item .qishu {
    font-weight: bold;
    margin-bottom: 5px;
}

.shengxiao-item .content {
    font-size: 0.9rem; 
    color: #333;
    margin-bottom: 5px;
}

.history-list-wrap {
    padding: 0 15px 15px;
}

.history-list-wrap .list-title {
    font-weight: bold;
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.history-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list li .qishu {
    flex: 0 0 20%;
    font-weight: bold;
}

.history-list li .content {
    flex: 1;
}

.history-list li .result {
    flex: 0 0 20%;
    text-align: right;
}

/* 响应式适配 */
@media only screen and (max-width: 480px) {
    .text {font-size: 14px; padding: 8px;}
    .prev, .next {
        width: 30px;
        height: 30px;
        line-height: 12px;
    }
    .dot {
        height: 8px;
        width: 8px;
    }
    body {
        margin-bottom: 65px;
        background-color: #fff;
    }
    .header h1 {
        font-size: 1rem;
    }
    .section-head-bar .section-head-cell,
    .section-head-bar .section-head-center {
        font-size: 1rem;
        padding: 8px 3px;
        min-height: 40px;
    }
    .section-head-bar .section-head-title {
        font-size: 1rem;
    }
    .section-head-bar .period-tab {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
    .section-header {
        padding: 8px;
    }
    .section-content {
    }
    .main-container > .section > .section-content:has(.ds-data-table),
    .main-container > .section > .section-content:has(.liu-xiao-data-table),
    .main-container > .section > .section-content:has(.shibama-data-table),
    .main-container > .section > .section-content:has(.sixiaosima-data-table) {
        padding: 0;
    }
    #ban-kuai-liuxiao > .section > .section-content,
    #ban-kuai-shibama > .section > .section-content,
    #sixiaosima > .section > .section-content,
    #bizhong-bose > .section > .section-content,
    .main-container.bankuai-ds-erxiao > .section > .section-content {
        padding: 0;
    }
    .main-container > .section:has(.ds-data-table),
    .main-container > .section:has(.liu-xiao-data-table),
    .main-container > .section:has(.shibama-data-table),
    .main-container > .section:has(.sixiaosima-data-table),
    .main-container > .section:has(.qiwei-table) {
        margin-bottom: 0;
    }
    #ban-kuai-liuxiao > .section,
    #ban-kuai-shibama > .section,
    #sixiaosima > .section,
    #bizhong-bose > .section,
    .main-container.bankuai-ds-erxiao > .section {
        margin-bottom: 0;
    }
    .ball {
        width: 26px;
        height: 26px;
        line-height: 26px;
        margin: 0 2px;
        font-size: 0.8rem;
    }
}

/* 双波特中布局样式 */
.item-content {
    /* display: flex; */
    width: 100%;
    align-items: center;
}

.period-label {
    width: 16%;
    display: inline-block;
    vertical-align: middle;
}

.left-element {
    width: 26%;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.right-content {
    width: 32%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.hot-text {
    width: 26%;
    display: inline-block;
    text-align: right;
    vertical-align: middle;
}

/* 修复content-area内部的子元素，使其不继承父元素的flex样式 */
.content-area > * {
    display: inline-block !important;
    vertical-align: middle;
    margin-left: 0 !important;
    /* 移除绿色边框，避免在数字和文本后显示 */
    border-right: none !important;
}

/* 修复highlight类，确保它作为content-area的子元素也有正确的宽度 */
.content-area .highlight {
    width: 26%;
    text-align: left;
    font-weight: bold;
    color: var(--primary-dark);
    display: inline-block !important;
}

/* 创建一个新的类来包装波色内容 */
.bo-se-content-wrapper {
    width: 34%;
    text-align: center;
    font-weight: bold;
    display: inline-block !important;
}

.content-area {
    width: 60%;
    text-align: center;
}

/* 为前后生肖专门创建样式 */
#qian-hou-xiao {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#qian-hou-xiao .number-row {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    flex-wrap: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

#qian-hou-xiao .number-row:last-child,
#qian-hou-xiao .number-row.last-item {
    border-bottom: none;
}

#qian-hou-xiao .period {
    width: 16%;
    min-width: 16%;
    font-weight: bold;
    text-align: left;
    margin: 0;
    padding: 0;
}

#qian-hou-xiao .period-type {
    width: 26%;
    min-width: 26%;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0;
    padding: 0;
}

#qian-hou-xiao .numbers {
    width: 28%;
    min-width: 28%;
    text-align: center;
    display: inline-block;
    margin: 0;
    padding: 0;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

#qian-hou-xiao .result {
    width: 30%;
    min-width: 30%;
    text-align: right;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

#qian-hou-xiao .qianhoux-content {
    color: #333;
    font-weight: bold;
    display: inline;
}

.qianhoux-content.correct {
    color: #FF0000;
}


/* ============================================================
   通用三列表格基础样式（所有预测模块统一复用）
   规则：border-collapse、列间 1px；末列不设右边框（外侧仅 .main-container 的 2px），避免与容器右边框叠线显粗
   ============================================================ */
.ds-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
    background-color: #fff;
}
.ds-data-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px;
    font-size: 0.8rem;
    font-weight: bold;
}
.ds-data-table td:last-child {
    border-right: none;
}

/* 最后一行保留底边，竖线与表格底横线闭合（避免底部“开口”白条） */
.ds-data-table tr:last-child td {
    border-bottom: 1px solid #4a90e2;
}

/* 资料 Flex 行：三格（期数 | 中间「标签+内容」合并居中 | 结果），与三列表头一致 */
.bankuai-fourcol-flex {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
    box-sizing: border-box;
    border-bottom: 1px solid #4a90e2;
    font-weight: bold;
    font-size: 0.8rem;
    background-color: #fff;
}
/* 「xxx」子标题与下方数据首行之间补顶横线，与左右竖线闭合成完整表格外框 */
.section .section-header + .section-content .item-content > .bankuai-fourcol-flex:first-child {
    border-top: 1px solid #4a90e2;
}
.bankuai-fourcol-flex > * {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 2px;
    border-right: 1px solid #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.bankuai-fourcol-flex > *:last-child {
    border-right: none;
}
/* 期数 | 中间合并区（整格内 flex 居中，gap 对齐 .ds-mid-inner）| 结果 */
.bankuai-fourcol-flex > *:nth-child(1) {
    flex: 0 0 16.5%;
}
.bankuai-fourcol-flex > .bankuai-fourcol-mid {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    text-align: center;
}
.bankuai-fourcol-flex > *:nth-child(3) {
    flex: 0 0 26%;
}
.bankuai-fourcol-mid .danssx-label,
.bankuai-fourcol-mid .hlvxiao-title,
.bankuai-fourcol-mid .tiandi-title,
.bankuai-fourcol-mid .dsbi-title,
.bankuai-fourcol-mid .heibai-title,
.bankuai-fourcol-mid .nannv-title,
.bankuai-fourcol-mid .jiaye-type {
    color: var(--primary-dark);
    flex-shrink: 0;
}
.bankuai-fourcol-mid .danssx-content,
.bankuai-fourcol-mid .hlvxiao-content,
.bankuai-fourcol-mid .tiandi-content,
.bankuai-fourcol-mid .choumei-content,
.bankuai-fourcol-mid .dsbi-content,
.bankuai-fourcol-mid .heibai-content,
.bankuai-fourcol-mid .nannv-content,
.bankuai-fourcol-mid .jiaye-content,
.bankuai-fourcol-mid .qianhousx-content {
    min-width: 0;
    text-align: center;
}
/* 去掉旧版子元素宽度与中间列双边框，避免与网格竖线重叠 */
.bankuai-fourcol-flex .hlvxiao-period,
.bankuai-fourcol-flex .hlvxiao-title,
.bankuai-fourcol-flex .hlvxiao-content,
.bankuai-fourcol-flex .hlvxiao-result,
.bankuai-fourcol-flex .tiandi-period,
.bankuai-fourcol-flex .tiandi-title,
.bankuai-fourcol-flex .tiandi-content,
.bankuai-fourcol-flex .tiandi-result,
.bankuai-fourcol-flex .choumei-period,
.bankuai-fourcol-flex .choumei-content,
.bankuai-fourcol-flex .choumei-result,
.bankuai-fourcol-flex .dsbi-period,
.bankuai-fourcol-flex .dsbi-title,
.bankuai-fourcol-flex .dsbi-content,
.bankuai-fourcol-flex .dsbi-result,
.bankuai-fourcol-flex .heibai-period,
.bankuai-fourcol-flex .heibai-title,
.bankuai-fourcol-flex .heibai-content,
.bankuai-fourcol-flex .heibai-result,
.bankuai-fourcol-flex .nannv-period,
.bankuai-fourcol-flex .nannv-title,
.bankuai-fourcol-flex .nannv-content,
.bankuai-fourcol-flex .nannv-result,
.bankuai-fourcol-flex .jiaye-period,
.bankuai-fourcol-flex .jiaye-type,
.bankuai-fourcol-flex .jiaye-content,
.bankuai-fourcol-flex .jiaye-result,
.bankuai-fourcol-flex .qianhousx-content,
.bankuai-fourcol-flex .danssx-period,
.bankuai-fourcol-flex .danssx-label,
.bankuai-fourcol-flex .danssx-content,
.bankuai-fourcol-flex .danssx-result,
.bankuai-fourcol-flex .wuxing-cell {
    width: auto !important;
    max-width: none !important;
    text-align: center !important;
}
/* 旧版 content 左右 #4292EE 边线：合并进 .bankuai-fourcol-mid 后全部去掉，避免紧贴文字两侧多出竖线；列分隔只保留外层 .bankuai-fourcol-mid 的 border-right */
.bankuai-fourcol-mid .danssx-content,
.bankuai-fourcol-mid .jiaye-content,
.bankuai-fourcol-mid .hlvxiao-content,
.bankuai-fourcol-mid .tiandi-content,
.bankuai-fourcol-mid .choumei-content,
.bankuai-fourcol-mid .dsbi-content,
.bankuai-fourcol-mid .heibai-content,
.bankuai-fourcol-mid .nannv-content {
    border-left: none !important;
    border-right: none !important;
}
/* 列竖线：期数格、中间合并格、结果格由 .bankuai-fourcol-flex > * 的 border-right 提供 */
.bankuai-fourcol-flex .jiaye-type {
    color: var(--primary-dark);
}
/* 绝杀二肖：与其它带表板块块一致四边贴齐（去掉 .contentt 的 8px 10px 内边距） */
#er-xiao-sha.contentt {
    flex: none !important;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
}
/* 绝杀二肖表体：三列比例 16.5 : 52.5 : 26（与前后生肖 ds-data-table、表头 grid 一致）
 * 注意：若用 flex-basis 16.5%+55.5%+26% 且 flex-grow:0，合计仅 95%，右侧会空一截且竖线与上表错位 */
#er-xiao-sha .erxiao-ds-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
    box-sizing: border-box;
    border-bottom: 1px solid #4a90e2;
    font-weight: bold;
    font-size: 0.8rem;
    background-color: #fff;
}
#er-xiao-sha .erxiao-ds-row > * {
    box-sizing: border-box;
    /* 与 .ds-data-table td 左右对称，避免期数看起来偏左 */
    padding: 6px 1px;
    border-right: 1px solid #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}
#er-xiao-sha .erxiao-ds-row > *:last-child {
    border-right: none;
}
/* 33 : 105 : 52 = 16.5 : 52.5 : 26，flex-grow 均分剩余空间，整行铺满 100% */
#er-xiao-sha .erxiao-ds-row > .erxiao-period-cell {
    flex: 31 1 0;
    max-width: none;
    min-width: 0 !important;
    white-space: nowrap;
}
/* 覆盖全局 .period { min-width:16% }，否则 span 占位偏左、期数不像 ds-period 居中 */
#er-xiao-sha .erxiao-ds-row > .erxiao-period-cell .period {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 auto;
    text-align: center !important;
    white-space: nowrap;
}
#er-xiao-sha .erxiao-ds-row > .erxiao-mid-cell {
    flex: 105 1 0;
    max-width: none;
    min-width: 0;
}
/* 与 .ds-data-table 中间列同款：蓝链标签 + 括号内容横排居中 */
#er-xiao-sha .erxiao-mid-cell .ds-mid-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    width: 100%;
}
#er-xiao-sha .erxiao-mid-cell .ds-mid-label {
    flex-shrink: 0;
    color: var(--primary-dark);
}
#er-xiao-sha .erxiao-mid-cell .ds-mid-content {
    min-width: 0;
    text-align: center;
}
/* 结果列：与上表同比例，内容居中 */
#er-xiao-sha .erxiao-ds-row > .erxiao-result-cell {
    flex: 49.5 1 0;
    max-width: none;
    min-width: 0;
    justify-content: center;
}
#er-xiao-sha .erxiao-result-cell .ds-result-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}
/* 与 .ds-data-table 内红/黑样式一致（绝杀二肖不在 table 内，需单独写） */
#er-xiao-sha .ds-zhun,
#er-xiao-sha .ds-hit {
    color: red;
    font-weight: bold;
}
#er-xiao-sha .ds-cuo {
    color: #333;
    font-weight: bold;
}

/* ========== 必中四行历史 (#wu-xing-sha)：三列网格与绝杀二肖/ ds-data-table 一致 ========== */
.section:has(#wu-xing-sha) > .section-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.section:has(#wu-xing-sha) > .section-content > .item-row {
    padding: 0 !important;
    border-bottom: none !important;
}
.section:has(#wu-xing-sha) > .section-content .item-content#wu-xing-sha {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
#wu-xing-sha {
    width: 100%;
    box-sizing: border-box;
}
/* 必中四行：与平特三尾等同款蓝网格（竖线 + 行间横线 + 首行顶线） */
#wu-xing-sha .ds-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
    box-sizing: border-box;
    background-color: #fff;
}
#wu-xing-sha .ds-data-table td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #4a90e2;
    border-bottom: 1px solid #4a90e2;
    box-sizing: border-box;
    padding: 6px 1px;
    font-size: 0.8rem;
    font-weight: bold;
}
#wu-xing-sha .ds-data-table td:last-child {
    border-right: none;
}
#wu-xing-sha .ds-data-table tr:first-child td {
    border-top: 1px solid #4a90e2;
}
#wu-xing-sha .ds-data-table tr:last-child td {
    border-bottom: 1px solid #4a90e2;
}
#wu-xing-sha .ds-mid-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    width: 100%;
}
#wu-xing-sha .ds-mid-label {
    flex-shrink: 0;
    color: var(--primary-dark);
}
#wu-xing-sha .ds-mid-content {
    min-width: 0;
    text-align: center;
}
#wu-xing-sha .ds-result-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
    text-align: center;
}
#wu-xing-sha .ds-zhun,
#wu-xing-sha .ds-hit {
    color: red;
    font-weight: bold;
}
#wu-xing-sha .ds-cuo {
    color: #333;
    font-weight: bold;
}

.ds-data-table td.ds-period { width: 16.5%; color: #333; }
.ds-data-table td.ds-mid     { width: 55.5%; }
.ds-data-table td.ds-result { width: 26%; }

/* 期数 <td> 若带 .period-label，会被全局 .period-label{display:inline-block;width:16%} 当成行内块，
   表格列宽仍按 16.5% 留白，内容只占 16% 且易断行 → 第一列右侧出现大块空白（非故意留白） */
.ds-data-table td.period-label {
    display: table-cell !important;
    width: 16.5%;
    max-width: none;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

/* 三个半波 / 主攻三尾：期数格带 .period-label 时覆盖全局 inline-block/16% 与 #three-tails… .period-label 的左对齐 */
#bo-se-history-container .ds-data-table td.period-label,
#three-tails-history-container .ds-data-table td.period-label {
    display: table-cell;
    width: 16.5%;
    max-width: none;
    vertical-align: middle;
    text-align: center;
}

/* 主攻三尾改为 table 后：列间由 td 贯通，去掉原「标题/球区」短竖线伪元素 */
#three-tails-history-container .ds-data-table .three-tails-balls {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: static;
}
#three-tails-history-container .ds-data-table .three-tails-balls::after {
    display: none;
}

/* 复式三肖：与三头中特相同 ds-data-table 网格，取消原 flex 列短竖线 */
#ping-xiao-pingxiao .ds-data-table td.period-label,
#ping-xiao-history-container .ds-data-table td.period-label {
    display: table-cell;
    width: 16.5%;
    max-width: none;
    vertical-align: middle;
    text-align: center;
}
#ping-xiao-pingxiao .ds-data-table .pingxiao-shengxiao-content::after,
#ping-xiao-history-container .ds-data-table .pingxiao-shengxiao-content::after {
    display: none !important;
}
#ping-xiao-pingxiao .ds-data-table .pingxiao-shengxiao-content,
#ping-xiao-history-container .ds-data-table .pingxiao-shengxiao-content {
    width: auto !important;
    max-width: 100%;
    display: inline !important;
    position: static !important;
    flex-shrink: unset !important;
    margin: 0 !important;
}

.ds-data-table .ds-mid-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
}
.ds-data-table .ds-mid-label {
    flex-shrink: 0;
    color: var(--primary-dark);
}
.ds-data-table .ds-mid-content {
    min-width: 0;
    text-align: center;
}
.ds-data-table .ds-result-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
}
/* 四列 flex 资料表（家野双肖、家禽野兽、红蓝绿肖等）：结果列与三列表同款间距 */
.bankuai-fourcol-flex .ds-result-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
}
.ds-data-table .ds-status,
.bankuai-fourcol-flex .ds-result-inner .ds-status {
    flex-shrink: 0;
}
.ds-data-table .ds-zhun,
.ds-data-table .ds-correct {
    color: red;
}
.ds-data-table .ds-cuo,
.ds-data-table .ds-incorrect {
    color: #333;
}
/* 九肖板块：中间列命中的生肖、结果列「中」为红色 */
#san-he-sheng-xiao .ds-mid-content .ds-hit {
    color: red;
    font-weight: bold;
}
/* 九肖板块：仅「中」为红色 */
#san-he-sheng-xiao .ds-zhun,
#san-he-sheng-xiao .ds-correct {
    color: red;
}
#san-he-sheng-xiao .ds-cuo,
#san-he-sheng-xiao .ds-incorrect {
    color: #333;
}
/* 九肖未开奖行：占位「中」与已命中「中」同为红色 */
#san-he-sheng-xiao .ds-status-pending {
    color: red;
    font-weight: bold;
}
/* 未开奖等：占位「中」默认灰（其它板块保持区分） */
.ds-data-table .ds-status-pending {
    color: #333;
}
.ds-data-table .ds-hit {
    color: red;
}
.ds-data-table .ds-mid-content .prediction-correct {
    color: red;
}
.ds-data-table td.ds-period ~ td { border-left: none; }

/* 通用表头列间竖线（所有 main-container 的 section-head-bar 统一三列分隔） */
.main-container > .header.section-head-bar,
.bankuai-ds-erxiao > .header.section-head-bar {

    box-sizing: border-box;
}

/* 含三列表的 .section：去掉底部 margin（全局 .section 有 margin-bottom:5px），避免表与容器底圆角之间白条 */
.main-container > .section:has(.ds-data-table),
.main-container > .section:has(.liu-xiao-data-table),
.main-container > .section:has(.shibama-data-table),
.main-container > .section:has(.sixiaosima-data-table),
.main-container > .section:has(.qiwei-table),
.main-container > .section:has(.bankuai-fourcol-flex) {
    margin-bottom: 0;
}
#ban-kuai-liuxiao > .section,
#ban-kuai-shibama > .section,
#sixiaosima > .section,
#bizhong-bose > .section,
.main-container.bankuai-ds-erxiao > .section {
    margin-bottom: 0;
}

/* 全站三列预测表：去掉左右留白，避免竖线相对上下板块错位；与表头同宽贯通 */
.main-container > .section > .section-content:has(.ds-data-table),
.main-container > .section > .section-content:has(.liu-xiao-data-table),
.main-container > .section > .section-content:has(.shibama-data-table),
.main-container > .section > .section-content:has(.sixiaosima-data-table),
.main-container > .section > .section-content:has(.bankuai-fourcol-flex) {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.main-container > .section > .section-content:has(.ds-data-table) .item-row,
.main-container > .section > .section-content:has(.liu-xiao-data-table) .item-row,
.main-container > .section > .section-content:has(.shibama-data-table) .item-row,
.main-container > .section > .section-content:has(.sixiaosima-data-table) .item-row,
.main-container > .section > .section-content:has(.bankuai-fourcol-flex) .item-row {
    padding: 0;
    border-bottom: none;
}
.main-container > .section > .section-content:has(.ds-data-table) .item-content,
.main-container > .section > .section-content:has(.liu-xiao-data-table) .item-content,
.main-container > .section > .section-content:has(.shibama-data-table) .item-content,
.main-container > .section > .section-content:has(.sixiaosima-data-table) .item-content,
.main-container > .section > .section-content:has(.bankuai-fourcol-flex) .item-content {
    padding-left: 0;
    padding-right: 0;
}

/* 无 :has 的旧浏览器：与上规则等效 */
#ban-kuai-liuxiao > .section > .section-content,
#ban-kuai-shibama > .section > .section-content,
#sixiaosima > .section > .section-content,
#bizhong-bose > .section > .section-content,
.main-container.bankuai-ds-erxiao > .section > .section-content,
.main-container:has(#liu-he-lian-xiao) > .section > .section-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================================
   三个半单双板块（直接复用 .ds-data-table 通用基类）
   ============================================================ */

#liu-he-lian-xiao {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-bottom: 0;
}

#liu-he-lian-xiao .ds-result-inner strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

#liu-he-lian-xiao .ds-mid-inner {
    gap: 4px;
}

/* 三个半单双：预测正文与图2 期数列一致加粗 */
#liu-he-lian-xiao .ds-mid-content {
    font-weight: bold;
}

/* 其他使用 liuxiao 类名的区域：期数列右侧短竖线（三个半单双已改为 table，无 liuxiao-qishu） */
.liuxiao-item .liuxiao-qishu::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px; /* 固定高度，不延伸到底部 */
    background-color: #4292EE;
}

.liuxiao-content {
    width: 32%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

/* 结果列：生肖与「中/错」留出间距（与顶部参考区「龙 准」一致） */
#liu-he-lian-xiao .liuxiao-ds-result-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
    max-width: 100%;
}

#liu-he-lian-xiao .liuxiao-ds-status {
    flex-shrink: 0;
}

.liuxiao-title {
    color: var(--primary-dark);
    font-weight: bold;
}

.liuxiao-result {
    width: 26%;
    text-align: right;
    font-weight: normal;
    font-size: 0.8rem;
    white-space: nowrap;
}

.liuxiao-result strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.liuxiao-correct {
    color: red;
}

.liuxiao-incorrect {
    color: #333;
}

.liuxiao-hit {
    color: red;
    font-weight: bold;
}

.loading-message, .no-data-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.no-data-message {
    color: #999;
}

.footer p {
    margin: 5px 0;
    text-align: center;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
}


/* 三合生肖样式 */
.sanhe-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.sanhe-item:last-child {
    border-bottom: none;
}

.sanhe-qishu {
    width: 16%;
    font-weight: bold;
    font-size: 0.9rem;
}

.sanhe-title {
    width: 26%;
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.sanhe-content {
    width: 32%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.sanhe-result {
    width: 26%;
    text-align: right;
    font-weight: normal;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sanhe-result strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sanhe-correct {
    color: red;
    font-weight: bold;
}

.sanhe-incorrect {
    color: black;
    font-weight: bold;
}

.loading-message, .no-data-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.no-data-message {
    color: #999;
}


/* 黑白/阴阳生肖四列网格由 .bankuai-fourcol-flex 提供；生肖颜色 */
.red-sx {
    color: red;
}
.green-sx {
    color: green;
}
.blue-sx {
    color: blue;
}

/* 一肖一码样式 */
.jinzita-number.hit, .jinzita-zodiac.hit {
    color: red !important;
    font-weight: bold !important;
}

.jinzita-zhun {
    color: red !important;
    font-weight: bold !important;
}

.jinzita-cuo {
    color: #333 !important;
}

/* 一肖一码：最新未开奖期首行号码前后提示（先试水 / 下100米） */
.jinzita-promo-tip {
    color: red;
}

/* 添加一肖一码专用样式 */
.jinzita-history-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.jinzita-period {
    width: 16%;
    font-weight: bold;
}

.jinzita-content {
    width: 58%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

.jinzita-numbers, .jinzita-zodiacs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 3px 0;
}

.jinzita-number, .jinzita-zodiac {
    padding: 2px 5px;
}

.jinzita-result {
    width: 26%;
    text-align: right;
}

/* 添加未开奖状态的样式 */
.hlvxiao-result {
    width: 26%;
    text-align: right;
    font-weight: bold;
}

.hlvxiao-item .hlvxiao-result {
    position: relative;
}

/* 未开奖样式 */
.wei-kaijang {
    color: #888;
    font-style: italic;
}

.zhun {
    color: red;
    font-weight: bold;
}

.cuo {
    color: black;
    font-weight: bold;
}

/* 天地生肖等四列行：布局见 .bankuai-fourcol-flex */
.tiandi-period { font-weight: bold; }
.tiandi-title { font-weight: bold; }
.tiandi-content { font-weight: bold; }
.tiandi-result { font-weight: bold; }

/* 单笔双笔样式 */
.danbi-shuangbi-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
}
.danbi-shuangbi-item:last-child {
    border-bottom: none;
}
.danbi-shuangbi-period {
    width: 16%;
    text-align: left;
}
.danbi-shuangbi-title {
    width: 26%;
    color: var(--primary-dark);
}
.danbi-shuangbi-content {
    width: 32%;
    text-align: center;
}
.danbi-shuangbi-result {
    width: 26%;
    text-align: right;
}

/* 白边黑中样式 */
.baibian-heizhong-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
}
.baibian-heizhong-item:last-child {
    border-bottom: none;
}
.baibian-heizhong-period {
    width: 16%;
    text-align: left;
}
.baibian-heizhong-title {
    width: 26%;
    color: var(--primary-dark);
}
.baibian-heizhong-content {
    width: 32%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}
.baibian-heizhong-result {
    width: 26%;
    text-align: right;
}

/* 阴阳生肖样式 */
.yinyang-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
}
.yinyang-item:last-child {
    border-bottom: none;
}
.yinyang-period {
    width: 16%;
    text-align: left;
}
.yinyang-title {
    width: 26%;
    color: var(--primary-dark);
}
.yinyang-content {
    width: 32%;
    text-align: center;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}
.yinyang-result {
    width: 26%;
    text-align: right;
}

/* 未开奖状态样式 - 适用于所有生肖预测 */
.wei-kaijiang {
    color: #888;
    font-style: italic;
}

/* 通用样式 - 所有预测板块 */
.zhun, .correct {
    color: red;
    font-weight: bold;
}

.cuo, .incorrect {
    color: #333;
    font-weight: bold;
}

.hit-text {
    color: red;
    font-weight: bold;
}

/* 特准马料样式 */
.tezma-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
}
.tezma-item:last-child {
    border-bottom: none;
}
.tezma-period {
    width: 16%;
    text-align: left;
}
.tezma-title {
    width: 17%;
    color: var(--primary-dark);
}
.tezma-content {
    width: 50%;
    text-align: center;
}
.tezma-result {
    width: 17%;
    text-align: right;
}

/* 修改content-area样式以匹配要求的宽度比例 */
.content-area {
    width: 60%;
    text-align: center;
}

/* 特准马料自定义样式 */
.tezama-content-area {
    flex: 0 0 50% !important;
    width: 50% !important;
    text-align: center;
}

.tezama-period-label {
    width: 16% !important;
    font-weight: bold;
    text-align: left;
}

.tezama-highlight {
    width: 17% !important;
    font-weight: bold;
    color: var(--primary-dark);
}

.tezama-hot-text {
    width: 17% !important;
    text-align: right;
    font-weight: bold;
}

/* 新的大小中特样式（旧 flex 行，其它页若仍使用则保留） */
.new-daxiao-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0px;
}

.new-daxiao-row:last-child {
    border-bottom: none;
}

.new-daxiao-period {
    width: 16%;
    font-weight: bold;
}

.new-daxiao-title {
    width: 26%;
    color: var(--primary-dark);
    font-weight: bold;
}

.new-daxiao-prediction {
    width: 32%;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #4292EE !important;
    border-left: 1px solid #4292EE !important;
}

.new-daxiao-result {
    width: 26%;
    text-align: right;
    font-weight: bold;
}

.new-daxiao-zhun {
    color: red;
    font-weight: bold;
}

.new-daxiao-cuo {
    color: #333;
    font-weight: bold;
}

/* 大小中特首页样式 */
.daxiaozt-index-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.daxiaozt-index-item:last-child {
    border-bottom: none;
}

.daxiaozt-index-period {
    width: 16%;
    font-weight: bold;
    font-size: 0.9rem;
}

.daxiaozt-index-title {
    width: 26%;
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.daxiaozt-index-content {
    width: 32%;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.daxiaozt-index-result {
    width: 26%;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
}

.daxiaozt-index-zhun {
    color: red;
    font-weight: bold;
}

.daxiaozt-index-cuo {
    color: #333;
    font-weight: bold;
}

/* 三头中特新样式 */
.new-santou-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.new-santou-item:last-child {
    border-bottom: none;
}

.new-santou-period {
    width: 16%;
    font-weight: bold;
    text-align: left;
}

.new-santou-title {
    width: 24%;
    color: var(--primary-dark);
    font-weight: bold;
}

.new-santou-content {
    width: 34%;
    display: flex;
    justify-content: center;
    gap: 5px;
    border-left: 1px solid #4292EE;
    border-right: 1px solid #4292EE;
}

/* 三头中特：纯文字「0-3-1 头」，不再使用球形图 */
.santou-heads-text {
    display: inline;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.santou-head-digit {
    font-weight: bold;
    color: #333;
}
.santou-head-digit-hit {
    color: red;
}
.santou-head-suffix {
    font-weight: bold;
    color: #333;
}

.new-santou-result {
    width: 26%;
    text-align: right;
    font-weight: bold;
}

/* 旧版球形数字（.new-santou-number）已弃用，三头中特改为 .santou-heads-text */
.new-santou-number {
    font-weight: bold;
    color: #333;
}
.new-santou-number.hit {
    color: red;
}

.new-santou-zhun {
    color: red;
    font-weight: bold;
}

.new-santou-cuo {
    color: #333;
    font-weight: bold;
}

/* 三头中特首页样式 */
.santou-index-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.santou-index-item:last-child {
    border-bottom: none;
}

.santou-index-period {
    width: 16%;
    font-weight: bold;
    font-size: 0.9rem;
}

.santou-index-title {
    width: 20%;
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.9rem;
}

.santou-index-content {
    width: 38%;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
}

.santou-index-result {
    width: 26%;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
}

.santou-index-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    margin: 0 2px;
    font-weight: bold;
    box-sizing: border-box;
    background: url('/ziliao/tupian/ball-green.png') center center / contain no-repeat;
    background-color: transparent;
    font-size: 0.85rem;
}

.santou-index-number.hit {
    background: url('/ziliao/tupian/ball-red.png') center center / contain no-repeat;
    background-color: transparent;
    color: red;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.santou-index-zhun {
    color: red;
    font-weight: bold;
}

.santou-index-cuo {
    color: #333;
    font-weight: bold;
}

/* 公告滚动样式 */
.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ffffe6 0%, #fff9e6 100%);
    border: 1px solid #FBCA42;
    border-radius: 8px;
    margin: 8px 0;
    padding: 8px var(--page-gutter);
    overflow: hidden;
}
.notice-icon {
    flex-shrink: 0;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
}
.notice-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
    line-height: 24px;
}
.notice-list {
    overflow: hidden;
    white-space: nowrap;
}
.notice-track {
    display: inline-block;
    white-space: nowrap;
    animation: noticeMarquee 25s linear infinite;
    will-change: transform;
}
.notice-item {
    display: inline-block;
    white-space: nowrap;
    color: #d46b08;
    font-size: 14px;
    margin-right: 50px;
}
@keyframes noticeMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 四肖8码首页 — 白绿卡片（对齐「一肖一码」类双列表风格） */
.sxhm-panel {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.sxhm-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--section-head-border);
    box-shadow: 0 2px 8px rgba(18, 195, 97, 0.12);
    margin-bottom: 4px;
}
.sxhm-card-foot {
    background: var(--section-head-bg);
    color: #fff;
    font-weight: bold;
    font-size: 1.05rem;
    text-align: center;
    padding: 12px 10px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    border-top: 2px solid var(--section-head-border);
}
.sxhm-card-body {
    background: #fff;
    padding: 0;
}
.sxhm-content {
    font-size: 13px;
    color: #222;
    line-height: 1.45;
}
/* 期与期之间：粗绿横线 */
.sxhm-period {
    background: #fff;
}
.sxhm-period + .sxhm-period {
    border-top: 3px solid var(--section-head-border);
}
.sxhm-period:first-child .sxhm-row:first-child {
    border-top: none;
}
/* 每行：左列 | 右列（无对错列） */
.sxhm-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    min-height: 40px;
    border-bottom: 1px solid #c8c8c8;
}
.sxhm-period .sxhm-row:last-child {
    border-bottom: none;
}
.sxhm-col-left {
    padding: 8px 10px 8px 12px;
    border-right: 1px solid #4292EE;
    text-align: left;
}
.sxhm-col-right {
    padding: 8px 8px 8px 5px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sxhm-row-label {
    color: #222;
    font-weight: bold;
}
/* 生肖与生肖之间的距离：改 margin-right 即可，改大=距离大，改小=距离小 */
.sxhm-zodiac-line .sxhm-zodiac {
    color: #4292EE;
    font-weight: bold;
    font-size: 13px;
}
.sxhm-zodiac-line .sxhm-zodiac:last-child {
    margin-right: 0;
}
.sxhm-zodiac-line .sxhm-zodiac.hit-red {
    color: red;
}
.sxhm-num-label {
    color: #333;
    font-weight: bold;
}
.sxhm-nums-line {
    color: #4292EE;
    font-size: 13px;
    font-weight: bold;
}
.sxhm-nums-line .sxhm-num.hit-red {
    color: red;
    font-weight: bold;
}
.sxhm-result-text {
    font-size: 13px;
    font-weight: bold;
    margin-left: auto;
    flex-shrink: 0;
}
.sxhm-col-right > span:not(.sxhm-result-text) {
    flex-shrink: 0;
}
.loading-message, .no-data-message, .error-message {
    text-align: center;
    padding: 24px 12px;
    color: #888;
}

/* ========== 百度底风格：五图标横排（开奖与四肖8码之间） ========== */
.baidu-icon-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 0 4px 0;
    padding: 6px var(--page-gutter) 8px;
    background: linear-gradient(180deg, #c7e1ff9c 0%, #c3dfff21 100%);
    border: 1px solid #4292EE;
    border-radius: 10px;
    box-sizing: border-box;
}
.baidu-icon-bar .baidu-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #222;
    opacity: 0;
}
.baidu-icon-bar.baidu-icon-bar-in .baidu-icon-item:nth-child(1) {
    animation: baidu-slide-left 0.5s ease-out forwards;
}
.baidu-icon-bar.baidu-icon-bar-in .baidu-icon-item:nth-child(2) {
    animation: baidu-slide-left 0.5s ease-out 0.1s forwards;
}
.baidu-icon-bar.baidu-icon-bar-in .baidu-icon-item:nth-child(3) {
    animation: baidu-drop-top 0.5s ease-out 0.2s forwards;
}
.baidu-icon-bar.baidu-icon-bar-in .baidu-icon-item:nth-child(4) {
    animation: baidu-slide-right 0.5s ease-out 0.3s forwards;
}
.baidu-icon-bar.baidu-icon-bar-in .baidu-icon-item:nth-child(5) {
    animation: baidu-slide-right 0.5s ease-out 0.4s forwards;
}
.baidu-icon-bar .baidu-icon-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    margin-bottom: 6px;
}
.baidu-icon-bar .baidu-icon-label {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    white-space: nowrap;
}
@keyframes baidu-slide-left {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes baidu-drop-top {
    from { opacity: 0; transform: translateY(-60px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes baidu-slide-right {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* 一肖一码表格 - 在内容区域左右两侧添加绿色线条 */
/* 只针对一肖一码板块，不影响其他板块 */
#current-data,
#history-data {
    position: relative;
    box-sizing: border-box;
}

/* 在期数和内容之间添加绿色竖线 - 使用更高优先级的选择器 */
#current-data .item-row .item-content .period-label,
#history-data .item-row .item-content .period-label {
    border-right: 1px solid #4292EE !important;
    box-sizing: border-box;
}

/* 在内容和结果之间添加绿色竖线 - 使用更高优先级的选择器 */
#current-data .item-row .item-content .content-area,
#history-data .item-row .item-content .content-area {
    border-right: 1px solid #4292EE !important;
    box-sizing: border-box;
}

/* 覆盖 content-area > * 的 border-right: none，只针对一肖一码 */
#current-data .content-area > *,
#history-data .content-area > * {
    border-right: none !important;
}

/* 神料宝塔 / 一肖一码：三列竖线 + 每行横线，与顶栏 #4292EE 风格一致（仅本板块） */
#shenliao-baota #current-data .jinzita-records-container > .item-row.jinzita-table-row,
#shenliao-baota #history-data .jinzita-records-container > .item-row.jinzita-table-row {
    border-bottom: 1px solid #4292EE;
    padding: 0;
    margin: 0;
}
#shenliao-baota #current-data .jinzita-records-container > .item-row.jinzita-table-row:last-child,
#shenliao-baota #history-data .jinzita-records-container > .item-row.jinzita-table-row:last-child {
    border-bottom: 1px solid #4292EE !important;
    padding: 0 !important;
}
#shenliao-baota #current-data .jinzita-table-row .item-content,
#shenliao-baota #history-data .jinzita-table-row .item-content {
    display: flex !important;
    width: 100%;
    align-items: stretch;
    min-height: 40px;
    box-sizing: border-box;
}
#shenliao-baota #current-data .jinzita-table-row .item-content .period-label,
#shenliao-baota #history-data .jinzita-table-row .item-content .period-label {
    flex: 0 0 16.5%;
    max-width: 16.5%;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #4292EE !important;
    padding: 8px 4px;
    box-sizing: border-box;
}
#shenliao-baota #current-data .jinzita-table-row .item-content .content-area,
#shenliao-baota #history-data .jinzita-table-row .item-content .content-area {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #4292EE !important;
    padding: 8px 6px;
    box-sizing: border-box;
}
#shenliao-baota #current-data .jinzita-table-row .item-content .hot-text,
#shenliao-baota #history-data .jinzita-table-row .item-content .hot-text {
    flex: 0 0 26%;
    max-width: 26%;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    box-sizing: border-box;
}