/* 568815.com 原站复刻 - 澳门资料库（字体、标题、颜色贴近原站） */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "SimSun", "宋体", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    background: #e0e0e0;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 16px 24px;
    padding-top: 96px; /* 为固定顶栏留出空间，避免主内容被遮挡 */
    background: #fff;
    min-height: 100vh;
    border: 1px solid #999;
    border-top: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.06);
}

/* ========== 顶部：position:fixed，宽度与 .wrap 一致、左右对齐 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 982px; /* 与 .wrap 一致：980 内容 + 左右各 1px 边框 */
    z-index: 100;
    background: linear-gradient(to bottom, #2e7d32 0%, #4caf50 50%, #81c784 80%, #fff 100%);
    border: 1px solid #2e7d32;
    border-top: none;
    border-bottom: 3px solid var(--header-border-color, #c00);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 6px 16px 8px; /* 与 .wrap 的 16px 左右内边距一致 */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}
.site-header-left {
    flex: 1;
    min-width: 0;
}
.site-header-right {
    flex-shrink: 0;
    align-self: flex-start;
}
.site-header-corner-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
}

.site-title {
    margin: 0 0 4px 0;
    font-family: "Microsoft YaHei", "SimHei", "黑体", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-color, #c00);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.site-header-left > .site-logo {
    margin-bottom: 4px;
}

.site-logo {
    max-height: 36px;
    width: auto;
    max-width: 100%;
    display: block;
    vertical-align: middle;
}

/* 导航栏左侧：仅「标题+网址」两行文字可点击跳转，不占整块区域 */
.site-header-brand {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}
.site-header-brand:hover {
    color: inherit;
    text-decoration: none;
}
.site-header-title {
    display: block;
    font-family: "Microsoft YaHei", "SimHei", "黑体", sans-serif;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #e8c547 0%, #c9a227 35%, #a67c00 70%, #8b6914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.05em;
    text-shadow: none;
    line-height: 1.35;
}
.site-header-domain {
    display: block;
    font-family: "Microsoft YaHei", "SimHei", "黑体", sans-serif;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(135deg, #e8c547 0%, #c9a227 35%, #a67c00 70%, #8b6914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.05em;
    text-shadow: none;
    line-height: 1.35;
    margin-top: 2px;
}

/* 时段导航：左右长、上下短，居中对齐 */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.2vw, 14px);
    margin-bottom: 4px;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5px, 0.8vw, 8px) clamp(20px, 4vw, 36px);
    border-radius: clamp(4px, 0.8vw, 8px);
    color: #fff;
    text-decoration: none;
    font-size: clamp(13px, 1.8vw, 18px);
    font-weight: bold;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background: #1a5fb4;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.92;
}

.nav-links a.nav-current {
    background: var(--theme-color, #c00);
}

.nav-history {
    font-size: 12px;
    color: #444;
}

.nav-history-label {
    color: #333;
    margin-right: 6px;
    font-weight: bold;
}

.nav-history a {
    color: var(--link-color, #c00);
    text-decoration: none;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
}

.nav-history a:hover {
    text-decoration: underline;
}

/* ========== 主内容区 ========== */
.main {
    padding-bottom: 20px;
}

/* ========== 当前开奖区块（首屏，与原站深色标题栏一致） ========== */
.current-open-block {
    margin-bottom: 20px;
    border: 1px solid #666;
    border-top: none;
    overflow: hidden;
}

.current-open-caption {
    text-align: left;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2a1515 0%, #1f1f1f 50%, #1a1a1a 100%);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    border: 1px solid #4a2525;
    border-left: 4px solid var(--theme-color, #c00);
    letter-spacing: 0.03em;
}

.current-open-inner {
    padding: 18px 16px 16px;
    background: #fff;
    border: 1px solid #999;
    border-top: none;
}

.current-open-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
}

.current-ball {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}
.current-ball.red { background: #c00; }
.current-ball.blue { background: #1a5fb4; }
.current-ball.green { background: #2e7d32; }
.current-ball.gray { background: #888; color: #fff; }
.current-ball .ball-num { font-size: 15px; }
.current-ball .ball-zodiac { font-size: 12px; font-weight: normal; opacity: 0.95; }

.current-ball-label {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 4px;
}

.current-open-result {
    margin: 0 0 14px 0;
    font-size: 15px;
}

.current-open-result .open-text {
    font-weight: bold;
    color: #222;
    font-size: 15px;
}

.current-open-next {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    background: #f5f5f5;
    border-left: 4px solid var(--theme-color, #c00);
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.current-open-actions {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #e5e5e5;
}

.btn-history {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 12px;
    background: var(--theme-color, #c00);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-history:hover {
    opacity: 0.9;
    color: #fff;
}

.link-refresh {
    color: var(--link-color, #c00);
    text-decoration: none;
    font-size: 13px;
}

.link-refresh:hover {
    text-decoration: underline;
}

/* ========== 区块与表格（原站：深色标题栏 + 白底表格，标题醒目） ========== */
.block {
    margin-bottom: 20px;
}

.block table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #888;
    font-size: 14px;
    color: #222;
}

.block caption {
    text-align: left;
    padding: 12px 14px;
    background: linear-gradient(135deg, #2d1818 0%, #1f1f1f 45%, #1a1a1a 100%);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    border: 1px solid #3d2525;
    border-left: 4px solid var(--theme-color, #c00);
    border-bottom: none;
    letter-spacing: 0.02em;
}

.data-table th,
.data-table td {
    border: 1px solid #999;
    padding: 9px 12px;
    vertical-align: top;
    line-height: 1.6;
    color: var(--blocks-cell-color, #222);
}

.data-table td:first-child {
    color: var(--blocks-period-color, var(--theme-color, #c00));
    font-weight: bold;
}

.data-table thead th {
    background: var(--blocks-thead-bg, #3d2828);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    border-color: #5c3a3a;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table tbody tr:hover {
    background: #f2f2f2;
}

.data-table a {
    color: var(--link-color, #c00);
    text-decoration: none;
    font-weight: bold;
}

.data-table a:hover {
    text-decoration: underline;
}

.data-table .result-zhun,
.zonghe-line .result-zhun { color: var(--blocks-result-zhun-color, #0a7c0a); font-weight: bold; }
.data-table .result-zhong,
.zonghe-line .result-zhong { color: var(--blocks-result-zhun-color, #0a7c0a); font-weight: bold; }
.data-table .result-cuo,
.zonghe-line .result-cuo { color: var(--blocks-result-cuo-color, #c00); font-weight: bold; }

.data-table.gaoshou-table caption { color: var(--gaoshou-caption-color, #c00); }
.data-table.gaoshou-table a { color: var(--gaoshou-link-color, #c00); }
@keyframes gaoshou-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.data-table.gaoshou-table a.gaoshou-jump { display: inline-block; animation: gaoshou-jump 0.5s ease-in-out infinite; }
@keyframes ziliao-row-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.data-table tr.ziliao-row-jump { animation: ziliao-row-jump 0.55s ease-in-out infinite; }

/* ========== 口号与属性说明（主题色点缀） ========== */
.slogan {
    text-align: center;
    color: #444;
    margin: 18px 0;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(204,0,0,0.06) 0%, transparent 30%, transparent 70%, rgba(204,0,0,0.06) 100%);
    border-radius: 6px;
    border-left: 3px solid var(--theme-color, #c00);
    border-right: 3px solid var(--theme-color, #c00);
}

.attr {
    color: #333;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.65;
}

.attr strong,
.block .attr {
    color: var(--theme-color, #c00);
    font-weight: bold;
}

/* ========== 页脚（主题色顶边 + 灰底） ========== */
.site-footer {
    border-top: 3px solid var(--theme-color, #c00);
    padding: 18px 12px 14px;
    margin-top: 24px;
    font-size: 12px;
    color: #444;
    text-align: center;
    line-height: 1.8;
    background: linear-gradient(180deg, #f5f5f5 0%, #eee 100%);
}

.site-footer p {
    margin: 8px 0;
}

/* ========== 属性知识板块（参考图：绿标题栏、灰副标题、红蓝绿数字球、生肖属性表） ========== */
.site-footer .attr-block.attr-panel {
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-bottom: none;
    text-align: left;
}

.site-footer .attr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2e7d32;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 14px;
    margin: 0;
}
.site-footer .attr-header-gif {
    height: 28px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.site-footer .attr-section {
    border-bottom: 1px solid #e0e0e0;
}

.site-footer .attr-section:last-of-type {
    border-bottom: none;
}

.site-footer .attr-subheader {
    background: #f0f0f0;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 14px;
    border-bottom: 1px solid #ddd;
}

.site-footer .attr-rows {
    padding: 0;
}

.site-footer .attr-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.site-footer .attr-row:nth-child(even) {
    background: #f9fdf9;
}

.site-footer .attr-row:last-child {
    border-bottom: none;
}

.site-footer .attr-label {
    flex-shrink: 0;
    width: 56px;
    font-weight: bold;
}

.site-footer .attr-wuxing-金 { color: #b8860b; }
.site-footer .attr-wuxing-木 { color: #228b22; }
.site-footer .attr-wuxing-水 { color: #1e90ff; }
.site-footer .attr-wuxing-火 { color: #c00; }
.site-footer .attr-wuxing-土 { color: #8b4513; }

.site-footer .attr-bose-red { color: #c00; }
.site-footer .attr-bose-blue { color: #1a5fb4; }
.site-footer .attr-bose-green { color: #2e7d32; }

.site-footer .attr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.site-footer .attr-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.site-footer .attr-chip-red { background: #c00; }
.site-footer .attr-chip-blue { background: #1a5fb4; }
.site-footer .attr-chip-green { background: #2e7d32; }
.site-footer .attr-chip-gray { background: #888; }

.site-footer .attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.site-footer .attr-table td {
    padding: 6px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.site-footer .attr-table tr:nth-child(even) td {
    background: #f9fdf9;
}

.site-footer .attr-table-cat {
    width: 80px;
    font-weight: bold;
    color: #333;
}

.site-footer .attr-table-val {
    color: #444;
}

/* 12生肖网格（3列×4行，每格：生肖名 [冲X] + 号码球） */
.site-footer .attr-zodiac-grid-wrap {
    padding: 12px 14px;
}

.site-footer .attr-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 14px;
}

.site-footer .attr-zodiac-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.site-footer .attr-zodiac-cell-gif {
    height: 22px;
    width: auto;
    margin-right: 6px;
    display: block;
    vertical-align: middle;
}
.site-footer .attr-zodiac-name {
    font-weight: bold;
    font-size: 15px;
    margin-right: 4px;
}

.site-footer .attr-zodiac-clash {
    font-size: 12px;
    color: #555;
    margin-right: 6px;
}

.site-footer .attr-zodiac-cell .attr-chips {
    width: 100%;
    margin-top: 6px;
}

/* 页脚属性知识下方：图片轮播 */
.site-footer .footer-carousel-wrap {
    margin: 20px 0;
    padding: 0;
}
.site-footer .footer-carousel {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
}
.site-footer .footer-carousel-slide {
    display: none;
    width: 100%;
    line-height: 0;
}
.site-footer .footer-carousel-slide.active {
    display: block;
}
.site-footer .footer-carousel-slide img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

.site-footer p a {
    color: var(--link-color, #c00);
    font-weight: bold;
    text-decoration: none;
}

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

/* ========== Banner、装饰图 ========== */
.banner-block {
    margin-bottom: 14px;
}

.banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    border: 0;
}

.caption-deco {
    vertical-align: middle;
    margin-right: 6px;
    height: 1.25em;
    width: auto;
}

.caption-deco:last-of-type {
    margin-right: 0;
    margin-left: 6px;
}

.inline-deco {
    vertical-align: middle;
    height: 1em;
    width: auto;
    margin-left: 4px;
}

.title-star {
    vertical-align: middle;
    height: 1.2em;
    width: auto;
    margin-right: 6px;
}

/* ========== 文章详情页（标题与提示更醒目） ========== */
.article-block .photo-tip {
    margin: 12px 0;
    color: var(--theme-color, #c00);
    font-weight: bold;
    font-size: 15px;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

.article-title {
    font-size: 20px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: var(--theme-color, #c00);
    margin: 14px 0 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.disclaimer {
    color: #555;
    margin-bottom: 14px;
    font-size: 13px;
    padding: 8px 10px;
    background: rgba(204,0,0,0.05);
    border-radius: 4px;
    border-left: 3px solid var(--theme-color, #c00);
}

.zonghe-line {
    margin: 5px 0;
    font-size: 13px;
}

.block-zonghe .zonghe-line {
    border-bottom: 1px dotted #ddd;
    padding: 3px 0;
}

.image-container {
    margin: 12px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    margin: 4px 0;
}

/* ========== 开奖历史页 ========== */
.history-page {
    margin-top: 10px;
}

.history-title {
    font-size: 20px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: var(--theme-color, #c00);
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
}

.history-desc {
    color: #555;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.history-table {
    margin-bottom: 16px;
}

.history-nav {
    font-size: 13px;
    color: #555;
}

.history-nav a {
    color: var(--link-color, #c00);
    text-decoration: none;
    margin-right: 14px;
}

.history-nav a:hover {
    text-decoration: underline;
}

/* ========== 历史开奖页 - 6平码+1特码彩球 ========== */
.history-page-balls .history-toolbar {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.history-year-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-year-wrap label { color: #555; font-size: 13px; }
.history-year-select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.history-tabs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.history-tab {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}
.history-tab:hover {
    background: #e8e8e8;
}
.history-tab.active {
    background: var(--theme-color, #c00);
    color: #fff;
    border-color: var(--theme-color, #c00);
}
.history-balls-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}
.history-balls-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}
.history-balls-table th,
.history-balls-table td {
    padding: 8px 6px;
    border: 1px solid #ddd;
    vertical-align: middle;
    text-align: center;
}
.history-balls-table thead th {
    background: linear-gradient(180deg, #4a2e2e 0%, #3d2828 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-color: #5c3a3a;
}
.history-balls-row td {
    background: #f9f9f9;
}
.history-balls-row:nth-child(even) td {
    background: #f0f0f0;
}
.history-balls-table .col-period {
    text-align: left;
    white-space: nowrap;
    min-width: 140px;
}
.period-num { font-weight: bold; color: #333; }
.period-date { font-size: 12px; color: #666; margin-left: 4px; }
.history-row-label { display: none; }
.col-ball {
    min-width: 52px;
}
.col-special .special-label {
    display: inline-block;
    margin-right: 4px;
    font-size: 12px;
    color: #666;
    vertical-align: middle;
}
.history-ball {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}
.history-ball.red { background: #c00; }
.history-ball.blue { background: #1a5fb4; }
.history-ball.green { background: #2e7d32; }
.history-ball.gray { background: #888; color: #fff; }
.history-ball .ball-num { font-size: 14px; }
.history-ball .ball-zodiac { font-size: 12px; font-weight: normal; opacity: 0.95; }
.col-ball.highlight .history-ball {
    box-shadow: 0 0 0 2px #333;
}

/* ========== 分类页底部属性知识 ========== */
.block .attr + p {
    margin-top: 4px;
}

/* ========== 回到顶部（原站右下角固定，使用图片） ========== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    padding: 8px 4px 10px;
    background: var(--theme-color, #c00);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.back-to-top:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top-with-img {
    background: transparent;
    padding: 6px;
}
.back-to-top-with-img .back-to-top-arrow,
.back-to-top-with-img .back-to-top-text,
.back-to-top-with-img .back-to-top-label { display: none; }
.back-to-top-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}
.back-to-top-arrow {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 2px;
}
.back-to-top-text { font-size: 13px; letter-spacing: 0.05em; }
.back-to-top-label { font-size: 11px; margin-top: 2px; }

/* ========== 移动端 ========== */
@media (max-width: 600px) {
    .wrap {
        padding: 10px 12px;
        padding-top: 120px; /* 为固定导航栏留出空间，避免遮住顶部 Banner */
        border-left: none;
        border-right: none;
    }
    .site-title { font-size: 22px; }
    .nav-links {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links a {
        flex-shrink: 0;
        padding: 5px 8px;
        font-size: 12px;
    }
    .block caption {
        padding: 10px 12px;
        font-size: 14px;
    }
    /* 综合资料区块 - 手机端每行成卡片，单元格纵向排布 */
    .block-zonghe .data-table {
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    .block-zonghe .data-table caption {
        padding: 10px 12px;
        font-size: 14px;
    }
    .block-zonghe .data-table caption .caption-deco {
        max-width: 20px;
        height: auto;
    }
    .block-zonghe .data-table tbody tr {
        display: block;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 8px 12px;
    }
    .block-zonghe .data-table tbody tr:last-child {
        border-bottom: none;
    }
    .block-zonghe .data-table tbody td {
        display: block;
        border: none;
        padding: 2px 0;
        font-size: 13px;
        line-height: 1.5;
    }
    .block-zonghe .data-table tbody td:first-child {
        padding-top: 0;
    }
    .block-zonghe .data-table tbody td + td {
        margin-top: 2px;
    }
    .data-table th,
    .data-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    .current-open-inner {
        padding: 14px 12px 12px;
    }
    .current-open-balls {
        flex-wrap: nowrap;
        gap: 4px 6px;
    }
    .current-ball {
        flex-shrink: 0;
        min-width: 32px;
        padding: 3px 4px;
        border-radius: 4px;
    }
    .current-ball .ball-num { font-size: 11px; }
    .current-ball .ball-zodiac { font-size: 9px; }
    .current-ball-label {
        font-size: 11px;
        margin: 0 2px;
    }
    .back-to-top {
        right: 12px;
        bottom: 16px;
        width: 48px;
        padding: 6px 4px 8px;
        font-size: 11px;
    }
    .back-to-top-arrow { font-size: 14px; }
    .back-to-top-text { font-size: 12px; }
    .back-to-top-label { font-size: 10px; }

    /* 历史开奖页 - 卡片式：期号+开奖时间 / 开奖结果 / 号码球一行 */
    .history-page-balls .history-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .history-tabs-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
    }
    .history-tab {
        flex-shrink: 0;
        padding: 5px 8px;
        font-size: 12px;
    }
    .history-balls-table-wrap {
        overflow: visible;
    }
    .history-balls-table {
        min-width: 0;
    }
    .history-balls-table thead {
        display: none;
    }
    .history-balls-table tbody tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .history-balls-table tbody tr:nth-child(even) {
        background: #fafafa;
    }
    .history-balls-table tbody td {
        border: none;
        padding: 0;
        background: transparent !important;
    }
    .history-balls-table tbody td.col-period {
        display: block;
        padding-bottom: 8px;
        font-size: 14px;
    }
    .history-balls-table tbody td.col-period .period-num {
        font-weight: bold;
        color: #333;
    }
    .history-balls-table tbody td.col-period .period-date {
        color: #666;
        font-size: 13px;
        margin-left: 4px;
    }
    .history-row-label {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 4px;
    }
    .history-balls-table tbody td.col-ball {
        display: inline-block;
        min-width: 0;
        padding: 2px;
        vertical-align: middle;
    }
    .history-balls-table tbody td.col-period + td.col-ball {
        padding-top: 0;
    }
    .col-special .special-label {
        font-size: 11px;
        color: #666;
        margin-right: 2px;
    }
    .history-ball {
        min-width: 32px;
        padding: 4px 5px;
        border-radius: 6px;
    }
    .history-ball .ball-num { font-size: 12px; }
    .history-ball .ball-zodiac { font-size: 10px; }
}
