* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
}

body {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    color: #333;
    overflow-x: clip;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
}

.header {
    background: linear-gradient(180deg, #1e8e3e 0%, #15803d 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #166534;
}

.header-tabs {
    display: flex;
    gap: 6px;
    padding: 4px 6px 6px;
    background: #f5f5f5;
    border-bottom: 1px solid #d7d7d7;
}
.header-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: clamp(14px, 4vw, 17px);
    font-weight: bold;
    color: #dc2626;
    background: linear-gradient(180deg, #ececec 0%, #dcdcdc 100%);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: none;
    border-radius: 18px;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.header-tabs .tab.active {
    color: #fff;
    background: linear-gradient(180deg, #38d430 0%, #23c018 100%);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.logo-title {
    font-size: clamp(14px, 4.5vw, 20px);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.nav-btn {
    background: #dc2626;
    color: #fff;
    padding: 6px clamp(10px, 3vw, 16px);
    border-radius: 6px;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 600;
    border: 2px solid #fbbf24;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    gap: 4px;
}

.tab-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
}

.am-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kl8-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.hk-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.tab.active {
    color: #15803d;
    border-bottom-color: #15803d;
    background: #f0fdf4;
}

.kj-bar {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
}

.kj-qishu {
    color: #dc2626;
    font-weight: 700;
    font-size: 15px;
    text-decoration: underline;
    flex-shrink: 0;
}

.kj-nums {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
}

.kj-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 8vw, 32px);
    height: clamp(34px, 11vw, 42px);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.kj-num .num {
    font-size: clamp(10px, 3.5vw, 14px);
    line-height: 1.2;
}

.kj-num .sx {
    font-size: clamp(7px, 2.2vw, 10px);
    line-height: 1.2;
    opacity: 0.95;
}

.kj-num.green {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

.kj-num.red {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
}

.kj-num.blue {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}


.date-bar {
    padding: 12px 15px;
    background: #fff;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: clamp(12px, 4vw, 16px);
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #15803d 100%);
}

.date-bar span {
    color: #fbbf24;
    margin: 0 2px;
}

.content {
    width: 100%;
    background: #f5f5f5;
}

.tab-panel {
    display: none;
    padding: 0;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel-tip {
    text-align: center;
    padding: 10px;
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.top-kj-wrap {
    background: #fff;
    position: sticky;
    top: 111px;
    z-index: 95;
    border-left: 1px solid #31bf23;
    border-right: 1px solid #31bf23;
    border-bottom: 1px solid #31bf23;
}

.top-kj-section {
    display: none;
}

body.tab-am .top-kj-section.kj-section-am,
body.tab-hk .top-kj-section.kj-section-hk {
    display: block;
}
body.tab-am .top-kj-section.kj-section-hk,
body.tab-hk .top-kj-section.kj-section-am {
    display: none;
}

.top-kj-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 3px;
    min-height: 44px;
}

.top-kj-meta {
    width: 76px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.1;
}

.top-kj-period {
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    margin-bottom: 2px;
}
.top-kj-period span {
    color: #dc2626;
}

.top-kj-history {
    font-size: clamp(10px, 2.8vw, 12px);
    color: #ff7a00;
    font-weight: 700;
    text-decoration: none;
}

.top-kj-nums {
    flex: 1;
    min-width: 0;
}

.top-kj-hidden {
    display: none;
}

.kj-nums-big {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1px;
    padding: 0;
    background: #fff;
}

.kj-num-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    border-radius: 2px;
    color: #fff;
    font-weight: 700;
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
}

.kj-num-big .kj-label {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #9ca3af;
    width: 100%;
    text-align: center;
    padding: 0;
    flex-shrink: 0;
}

.kj-num-big.loading {
    background: #9ca3af;
}
.kj-num-big.loading .kj-label {
    background: #9ca3af;
    color: #fff;
}
.kj-num-big.loading .num-big {
    background: #9ca3af;
    color: #fff;
}
.kj-num-big.loading .sx-big {
    background: #9ca3af;
    color: #fff;
}

.kj-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
    padding: 0 2px;
}

.kj-num-big .num-big {
    font-size: 14px;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.kj-num-big .sx-big {
    font-size: 10px;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    padding: 0 0 1px;
    color: #1f2937;
    background: #fff;
    flex-shrink: 0;
}

.top-kj-wrap .kj-num-big .sx-big {
    font-size: 13px;
    font-weight: 700;
    padding: 1px 0 2px;
}

.top-kj-plus-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    min-width: 22px;
    padding: 1px 2px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.kj-num-big.green .num-big {
    background: #16a34a;
}
.kj-num-big.red .num-big {
    background: #dc2626;
}
.kj-num-big.blue .num-big {
    background: #2563eb;
}
.kj-num-big.green .kj-label {
    background: #15803d;
}
.kj-num-big.red .kj-label {
    background: #b91c1c;
}
.kj-num-big.blue .kj-label {
    background: #1d4ed8;
}

.kj-num-big.te .num-big {
    box-shadow: inset 0 0 0 2px #fbbf24;
}

.top-kj-refresh,
.kj-refresh-btn {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #f59e0b;
    padding: 1px 0;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.top-kj-bar > .top-kj-refresh {
    display: none;
}

.top-kj-nums .top-kj-refresh {
    margin-left: 1px;
}
.top-kj-refresh:active,
.kj-refresh-btn:active {
    background: #d97706;
}

.top-slogan {
    margin: 8px 10px 0;
    padding: 7px 8px;
    text-align: center;
    font-size: clamp(16px, 4.8vw, 22px);
    font-weight: 800;
    color: #111;
    background: linear-gradient(180deg, #70ea64 0%, #1fb218 100%);
    border: 1px solid #1fb218;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.35);
}

.top-slogan span {
    color: #ff1d00;
    padding: 0 2px;
}

.detail-kj-stack {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

body.tab-am #amDetailSection {
    order: 1;
}

body.tab-am #hkDetailSection {
    order: 2;
}

body.tab-hk #hkDetailSection {
    order: 1;
}

body.tab-hk #amDetailSection {
    order: 2;
}

@media (max-width: 480px) {
    .header-top {
        padding: 8px 12px;
    }
    .header-tabs .tab {
        padding: 7px 0;
    }
    .top-kj-wrap {
        top: 98px;
    }
    .top-kj-bar {
        padding: 3px 4px 2px;
    }
    .top-kj-meta {
        width: 62px;
    }
    .top-slogan {
        margin: 6px 6px 0;
        font-size: 18px;
        padding: 6px 4px;
    }
    .top-kj-wrap .kj-num-big .sx-big {
        font-size: 14px;
    }
    .top-kj-plus-text {
        min-width: 20px;
        font-size: 12px;
    }
}

.detail-kj-section {
    background: #fff;
    margin: 10px 0 0;
    padding: 8px 10px 10px;
    border: 1px solid #27bf18;
    border-top: none;
    box-shadow: none;
}

.detail-kj-info-row,
.detail-kj-next-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.detail-kj-info-row {
    padding-bottom: 8px;
}

.detail-kj-period {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.detail-kj-period .detail-qishu {
    color: #dc2626;
}

.detail-kj-time {
    font-size: clamp(16px, 4.5vw, 22px);
    font-weight: 700;
    color: #111827;
    letter-spacing: 1px;
}

.detail-kj-history-link {
    font-size: clamp(13px, 3.8vw, 16px);
    color: #dc2626;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.detail-kj-nums {
    display: flex;
    align-items: stretch;
    gap: 3px;
    padding: 4px 0 6px;
}

.detail-kj-nums .kj-num-big {
    height: clamp(52px, 14vw, 62px);
    border-radius: 3px;
}

.detail-kj-nums .kj-num-big .num-big {
    font-size: clamp(16px, 4.8vw, 21px);
}

.detail-kj-nums .kj-num-big .sx-big {
    font-size: clamp(14px, 4.2vw, 20px);
    padding: 1px 0 3px;
}

.detail-kj-next-row {
    padding-top: 6px;
    border-top: 1px dashed #d1d5db;
}

.detail-kj-next-info {
    font-size: clamp(11px, 3.4vw, 14px);
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-kj-next-info .detail-next-qishu {
    color: #dc2626;
    font-weight: 700;
}

.detail-kj-refresh-btn {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    min-width: auto;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 700;
    color: #fff;
    background: #f59e0b;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-kj-refresh-btn:active {
    background: #d97706;
}

.xiaqi-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: #fef9c3;
    border-radius: 7px;
    color: #854d0e;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #fde68a;
}

.xiaqi-left {
    flex: 1;
    min-width: 0;
}

.xiaqi-qishu {
    color: #dc2626;
    font-weight: 700;
}

.kj-refresh {
    background: #fbbf24;
    color: #92400e;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.kj-refresh:active {
    transform: translateY(1px);
}

.zl-section {
    padding: 0 10px;
}
@media (max-width: 600px) {
    .zl-section { padding: 0 6px; }
}
@media (max-width: 400px) {
    .zl-section { padding: 0 4px; }
}

.zl-title {
    text-align: center;
    padding: 12px 15px;
    margin: 12px 0 6px 0;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(22,163,74,0.25);
    letter-spacing: 0.5px;
}

.zl-block {
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
    overflow-y: hidden;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
}

/* 弹窗内的 .zl-block 不裁剪、无边框阴影，让模块专属样式正常生效且内容不被截断 */
.module-body .zl-block {
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.zl-block.has-wide-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== 期期推荐导航板块 */
.zl-quicknav-title {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
    font-size: clamp(14px, 4.2vw, 18px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.zl-quicknav {
    padding: 6px 4px;
    background: #f0fdf4;
}

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

.quicknav-list li {
    margin: 5px 0;
}

.quicknav-link {
    display: block;
    text-align: left;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.15s;
    line-height: 1.4;
}

.quicknav-link:active {
    transform: translateY(1px);
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* ===== 期期推荐广告位 ===== */
.quicknav-ad-li {
    list-style: none;
    margin: 6px 0;
}
/* 空广告位：无内容时不占空间、不留空白 */
.quicknav-ad-li:empty,
.quicknav-ad-slot:empty {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
}
.quicknav-ad-slot {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
}
.quicknav-ad-link,
.quicknav-ad-text {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    line-height: 1.4;
    word-break: break-all;
}
.quicknav-ad-link:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    color: #78350f;
}
.quicknav-ad-link:active {
    transform: translateY(1px);
}

/* ===== 【疯狂⑤码】下方图片广告位 ===== */
/* 空广告位：无内容时不占空间、无边框、无背景 */
.zl-image-ads:empty {
    display: none !important;
}
.zl-image-ads {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 18px;
    overflow: hidden;
}
.zl-image-ad {
    margin-bottom: 12px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.zl-image-ad:last-child {
    margin-bottom: 0;
}
.zl-image-ad a {
    display: block;
    text-decoration: none;
}
.zl-image-ad img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 0;
}
@media (max-width: 768px) {
    .zl-image-ad {
        margin-bottom: 10px;
        border-radius: 6px;
    }
}

/* ===== 模块内容弹窗 */
.module-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

.module-mask.show {
    display: block;
}

.module-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 24px);
    max-width: 600px;
    max-height: 85vh;
    background: #fff;
    border-radius: 14px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.module-popup.show {
    display: flex;
    flex-direction: column;
}

.module-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    flex-shrink: 0;
}

.module-head .title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.module-body {
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

table.zl-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: clamp(13px, 3.6vw, 16px);
    border-spacing: 0;
    table-layout: auto;
}

table.zl-table.multi-col,
table.sx-table:not(.attr-table) {
    table-layout: auto !important;
}

.zl-table col {
    width: auto;
}

.zl-table tr {
    border-bottom: 1px solid #f3f4f6;
}

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

.zl-table td,
.zl-table th {
    padding: 8px 5px 8px 6px !important;
    color: #1f2937;
    line-height: 1.5;
    vertical-align: middle;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
    white-space: normal !important;
    font-size: clamp(13px, 3.6vw, 16px);
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
}

.zl-table th {
    font-weight: 700;
    color: #92400e;
    background: #fef9c3;
    text-align: left !important;
    padding: 8px 5px 8px 6px !important;
    font-size: clamp(12px, 3.4vw, 15px);
}

.zl-table td:first-child,
.zl-table th:first-child {
    padding-left: 7px !important;
    padding-right: 6px !important;
    font-size: clamp(13px, 3.6vw, 15px);
    white-space: nowrap;
}

.zl-table td:nth-child(2),
.zl-table th:nth-child(2) {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.zl-table td:last-child,
.zl-table th:last-child {
    padding-left: 2px !important;
    padding-right: 7px !important;
    white-space: nowrap;
    font-size: clamp(13px, 3.6vw, 15px);
}

.zl-table td[colspan] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: table-cell;
    box-sizing: border-box;
}

.zl-table.multi-col td {
    border-right: 1px solid #f3f4f6;
}

.zl-table.multi-col td:not(:last-child) {
    white-space: normal !important;
}

.zl-table.multi-col td:last-child {
    border-right: none;
}

.sx-table {
    font-size: 13px;
    min-width: 480px;
    width: 100%;
    table-layout: auto;
}

.sx-table th {
    color: #15803d;
    font-weight: 700;
    background: #f0fdf4;
    text-align: left !important;
    padding: 9px 6px 9px 7px !important;
    min-width: 70px;
    width: auto !important;
    white-space: normal !important;
}

.sx-table td {
    text-align: left !important;
    background: #fff;
    padding: 9px 6px 9px 7px !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal !important;
    min-width: 70px;
}

.zl-block.is-30ma .sx-table th,
.zl-block.is-30ma .sx-table td {
    white-space: nowrap !important;
    word-break: keep-all;
    overflow-wrap: normal;
}

.footer {
    padding: 20px 15px 20px 15px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.footer-ad {
    margin-bottom: 14px;
}
/* 空广告位：无内容时不显示、不留空白 */
.footer-ad:empty {
    display: none !important;
    margin: 0 !important;
}
.footer-ad a,
.footer-ad span {
    display: inline-block;
    max-width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-all;
}
.footer-ad a:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    color: #78350f;
}

.footer-info {
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 12px;
}

.float-btn-group {
    position: fixed;
    right: 12px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22,163,74,0.4);
    transition: transform 0.2s ease;
    border: 2px solid #fff;
    line-height: 1.2;
}

.float-btn:active {
    transform: scale(0.92);
}

.float-btn.back-home {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}

@media (max-width: 380px) {
    .zl-table td,
    .zl-table th {
        padding: 8px 6px;
    }
    .date-bar {
        font-size: 14px;
        padding: 10px 12px;
    }
    .logo-title {
        font-size: 15px;
    }
}

.history-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

.history-mask.show {
    display: block;
}

.history-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.history-popup.show {
    display: flex;
    flex-direction: column;
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    flex-shrink: 0;
}

.history-head .title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.history-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.history-body {
    overflow-y: auto;
    padding: 12px 14px;
    flex: 1;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.history-table th {
    background: #f3f4f6;
    padding: 8px 6px;
    color: #374151;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    text-align: center;
    font-size: 11px;
}

.history-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: middle;
}

.history-table .qishu-cell {
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    font-size: 12px;
}

.history-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    align-items: center;
}

.history-num {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 38px;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    position: relative;
}

.history-num.red {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.history-num.blue {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.history-num.green {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.history-num .hn-num {
    font-size: 12px;
    line-height: 1.1;
}

.history-num .hn-sx {
    font-size: 9px;
    line-height: 1.1;
    margin-top: 2px;
}

.history-num.te {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.history-plus {
    color: #6b7280;
    font-weight: 700;
    font-size: 12px;
    padding: 0 2px;
}

/* ========== hk17 属性知识板块 专用适配（只动hk17 其他板块完全不影响） ========== */
table.sx-table.attr-table {
    min-width: 0px !important;
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    margin: 0 auto;
    color: #111827;
}
table.sx-table.attr-table colgroup col.c3-33 { width: 33.3333%; }
table.sx-table.attr-table colgroup col.c2-20 { width: 20%; }
table.sx-table.attr-table colgroup col.c2-80 { width: 80%; }

/* 统一单元格：padding缩 字体小 手机不挤 */
.sx-table.attr-table th,
.sx-table.attr-table td {
    padding: 4px 2px !important;
    font-size: 12px !important;
    color: #111827;
    line-height: 1.4;
    text-align: left !important;
    vertical-align: middle;
    word-break: break-word;
    min-width: 0px !important;
    max-width: none !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    white-space: normal !important;
}
/* 12生肖 3列网格 第一列/第二列/第三列 等宽不挤 */
.sx-table.attr-table td:nth-child(1),
.sx-table.attr-table th:nth-child(1),
.sx-table.attr-table td:nth-child(2),
.sx-table.attr-table th:nth-child(2),
.sx-table.attr-table td:nth-child(3),
.sx-table.attr-table th:nth-child(3) {
    min-width: 0px !important;
    max-width: none !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    font-size: 12px !important;
}

/* 中间灰条：五行对照/波色/合数单双/生肖属性 标题 */
.attr-section-title {
    background: #f3f4f6 !important;
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-align: center !important;
    padding: 5px 3px !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap !important;
}
.attr-section-title.with-logo {
    position: relative;
    display: table-cell;
}
/* hk17 内嵌表格单元格覆盖源站内联大padding */
.zl-block .sx td.a-left {
    padding-left: 2px !important;
    padding-right: 2px !important;
}
.zl-block .sx td {
    padding-left: 2px !important;
    padding-right: 2px !important;
}
.attr-logo-watermark {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

/* 生肖+冲名 行内样式：生肖图+名称+[冲X] 左对齐 不换行 */
.attr-zodiac-line {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
    line-height: 1.3;
    padding: 1px 1px 4px 1px;
    text-align: left;
}
.attr-zodiac-line .zodiac-emoji {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.attr-zodiac-line .zodiac-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}
.attr-zodiac-line .zodiac-chong {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

/* 号码球容器：flex-wrap wrap 宽度不够自动换行 不挤不乱 */
.attr-ball-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    padding: 2px 1px 1px 1px;
    min-height: 22px;
}
/* 号码球：正方形 字粗 白字 尺寸缩成25px 手机能装下 */
.attr-ball {
    display: inline-block;
    flex-shrink: 0;
    width: 25px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 0;
    padding: 0;
    margin: 0;
    letter-spacing: 0;
    white-space: nowrap !important;
}
/* 球颜色：红/蓝/绿 */
.attr-ball.red  { background: #ef4444; }
.attr-ball.blue { background: #2563eb; }
.attr-ball.green{ background: #10b981; }

/* 五行/波色/合数 第一列（金木水火土/红波蓝波绿波/合数单双）：字大 粗 色 */
.attr-wuxing-name {
    font-size: 18px !important;
    font-weight: 900 !important;
    display: inline-block;
    padding: 0 1px;
    line-height: 1.2;
    white-space: nowrap;
}
/* 行底色去掉 zebra：参考站全白 */
.sx-table.attr-table tr:nth-child(even) td {
    background: #ffffff !important;
}

/* 手机特小屏(≤360px) 球再缩一点14px字号 23宽 */
@media (max-width: 380px) {
    .sx-table.attr-table th,
    .sx-table.attr-table td {
        padding: 5px 3px !important;
        font-size: 11px !important;
    }
    .attr-zodiac-line .zodiac-name { font-size: 13px; }
    .attr-zodiac-line .zodiac-chong { font-size: 11px; }
    .attr-zodiac-line .zodiac-emoji { font-size: 17px; }
    .attr-ball {
        width: 23px;
        height: 20px;
        line-height: 20px;
        font-size: 11px !important;
    }
    .attr-wuxing-name { font-size: 16px !important; }
    .attr-section-title { font-size: 14px !important; padding: 6px 4px !important; }
}

/* ===== 本周八码 (hk18) 样式 — 1:1 还原源站 duilianpt1 ===== */
table.duilianpt1 {
    table-layout: auto !important;
    width: 100% !important;
    color: #FF0000;
    border-radius: 0 !important;
    overflow: hidden;
    text-align: center;
    background: #fff !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 !important;
}
table.duilianpt1 tr {
    height: 30px;
    border-bottom: none !important;
    background: #fff !important;
}
table.duilianpt1 tr:nth-child(even) td {
    background: #fff !important;
}
table.duilianpt1 td {
    font-weight: bold !important;
    border: 1px solid #C0C0C0 !important;
    font-size: 18pt !important;
    text-align: center !important;
    color: #FF0000 !important;
    padding: 4px 3px !important;
    line-height: 1.6;
    vertical-align: middle;
    white-space: normal !important;
    word-break: keep-all;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
}
table.duilianpt1 th {
    padding: 4px 3px !important;
}
table.duilianpt1 th:first-child,
table.duilianpt1 th:last-child {
    padding-left: 3px !important;
    padding-right: 3px !important;
}
table.duilianpt1 td:first-child,
table.duilianpt1 td:last-child {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}
table.duilianpt1 .zl {
    font-size: 22pt;
    font-weight: bold;
}

/* ===== 四字解特码 (hk09) 样式 — yjjt 表格 ===== */
table.yjjt {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
}
table.yjjt td {
    border: 1px solid #C0C0C0 !important;
    font-size: 16pt !important;
    font-weight: bold !important;
    padding: 6px 3px !important;
    line-height: 1.6;
    vertical-align: middle;
    background: #fff !important;
}
table.yjjt td:first-child,
table.yjjt td:last-child {
    padding-left: 3px !important;
    padding-right: 3px !important;
}
table.yjjt td font[color="#000000"] { color: #000000 !important; }
table.yjjt td font[color="#008000"] { color: #008000 !important; }
table.yjjt .xz { font-weight: bold; }
table.duilianpt1 td.dudu {
    text-align: left !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 4px 3px !important;
}

/* ===== 实力波色双波中特 (hk21) 样式 — 3列布局，保留内联 font 颜色 ===== */
table.duilianpt1.bose-table {
    table-layout: auto !important;
}
table.duilianpt1.bose-table th {
    font-weight: bold !important;
    border: 1px solid #C0C0C0 !important;
    font-size: clamp(13px, 3.8vw, 18px) !important;
    text-align: center !important;
    color: #000000 !important;
    padding: 6px 2px !important;
    line-height: 1.6;
    vertical-align: middle;
    background: #fff !important;
    white-space: nowrap !important;
}
table.duilianpt1.bose-table td {
    color: #000000 !important;
    white-space: nowrap !important;
    font-size: clamp(13px, 3.8vw, 18px) !important;
}
table.duilianpt1.bose-table .zl {
    font-size: clamp(13px, 3.8vw, 18px) !important;
    white-space: nowrap !important;
}
table.duilianpt1.bose-table th font[color="#000000"],
table.duilianpt1.bose-table td font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.bose-table th font[color="#800000"],
table.duilianpt1.bose-table td font[color="#800000"] { color: #800000 !important; }
table.duilianpt1.bose-table th font[color="#FF0000"],
table.duilianpt1.bose-table td font[color="#FF0000"] { color: #FF0000 !important; }
table.duilianpt1.bose-table th font[color="#008000"],
table.duilianpt1.bose-table td font[color="#008000"] { color: #008000 !important; }
table.duilianpt1.bose-table th font[color="#0000FF"],
table.duilianpt1.bose-table td font[color="#0000FF"] { color: #0000FF !important; }
table.duilianpt1.bose-table th font[color="#333333"],
table.duilianpt1.bose-table td font[color="#333333"] { color: #333333 !important; }

/* ===== 包赚三头三头中特 (hk22) 样式 — 保留内联 font 颜色，开:中继承红色 ===== */
table.duilianpt1.santou-table td font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.santou-table td font[color="#00CC66"] { color: #00CC66 !important; }
/* ===== 一周三肖 (hk23) 样式 — 期号/开:/期黑色，【生肖】与开:数字红色(继承td)，命中生肖黄底 ===== */
table.duilianpt1.yizhou-table td font[color="#000000"] { color: #000000 !important; }
/* ===== 二期内必开五肖 (hk24) 样式 — 期号/开:XX黑色，五肖红色(继承td)，命中生肖黄底 ===== */
table.duilianpt1.erqi-table td font[color="#000000"] { color: #000000 !important; }
/* ===== 单双二肖 (hk25) 样式 — 期号/〖〗/开:/准黑色，单双2肖深蓝#000080，单双数/生肖/开奖红色(继承td) ===== */
table.duilianpt1.danshuang-table td font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.danshuang-table td font[color="#000080"] { color: #000080 !important; }
/* ===== 琴棋书画 (hk26) 样式 — 期号/〖〗/开:/准黑色，琴棋书画字与开奖号红色(继承td)，命中字黄底；底部图例红/蓝/绿/紫 ===== */
table.duilianpt1.qqsh-table td font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.qqsh-table td font[color="#FF0000"] { color: #FF0000 !important; }
table.duilianpt1.qqsh-table td font[color="#0000FF"] { color: #0000FF !important; }
table.duilianpt1.qqsh-table td font[color="#008000"] { color: #008000 !important; }
table.duilianpt1.qqsh-table td font[color="#FF00FF"] { color: #FF00FF !important; }
/* ===== 三期四肖 (hk27) 样式 — 期号/开:XX黑色(th内)，四肖红色(继承td)，命中生肖黄底 ===== */
table.duilianpt1.sanqi-table th {
    background: #fff !important;
    color: #000000 !important;
    font-weight: bold !important;
    border: 1px solid #C0C0C0 !important;
}
table.duilianpt1.sanqi-table th font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.sanqi-table td font[color="#000000"] { color: #000000 !important; }
/* ===== 经典30码必中特 (hk28) 样式 — 期号/开:/准近黑#000001，〖30码中特〗蓝#0000FF，开奖号/30码红色(继承td)，命中码黄底 ===== */
table.duilianpt1.sanshiba-table td font[color="#000001"] { color: #000001 !important; }
table.duilianpt1.sanshiba-table td font[color="#0000FF"] { color: #0000FF !important; }
table.duilianpt1.sanshiba-table td font[color="#FF0000"] { color: #FF0000 !important; }
/* ===== 经典灭庄五肖 (hk29) 样式 — 期号/开黑#000000，生肖/开奖号红色(继承td)，资料更新中灰#C0C0C0，命中肖黄底 ===== */
table.duilianpt1.miezhuang-table td font[color="#000000"] { color: #000000 !important; }
table.duilianpt1.miezhuang-table td font[color="#C0C0C0"] { color: #C0C0C0 !important; }
/* ===== 打造六合界最快开奖网站 (hk30) 样式 — 1:1 还原源站 qxtable 五肖八码 ===== */
table.zl-table.dazao-table {
    table-layout: auto !important;
    border-collapse: collapse !important;
    border: 1px solid #FFFFFF !important;
}
table.zl-table.dazao-table td {
    padding: 0px !important;
    line-height: normal !important;
    font-size: clamp(16px, 5vw, 26px) !important;
    font-weight: 700 !important;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
    border: 1px solid #FFFFFF !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
}
table.zl-table.dazao-table td:first-child { width: 35% !important; min-width: 0 !important; max-width: none !important; }
table.zl-table.dazao-table td:nth-child(2) { min-width: 0 !important; width: auto !important; }
table.zl-table.dazao-table td:last-child { min-width: 0 !important; max-width: none !important; white-space: normal !important; }
table.zl-table.dazao-table td[colspan="2"] { text-align: center !important; width: 100% !important; }
table.zl-table.dazao-table td[bgcolor="#F4F4F4"] { background: #F4F4F4 !important; }
table.zl-table.dazao-table td[style*="05b34c"] { background: #05b34c !important; }
table.zl-table.dazao-table td[style*="FFCCFF"] { background: #FFCCFF !important; }
table.zl-table.dazao-table td font[color="#000080"] { color: #000080 !important; }
table.zl-table.dazao-table td font[color="#FF0000"] { color: #FF0000 !important; }
table.zl-table.dazao-table td font[color="#0000FF"] { color: #0000FF !important; }
table.zl-table.dazao-table td font[color="#FFFFFF"] { color: #FFFFFF !important; }
table.zl-table.dazao-table td font[color="#008000"] { color: #008000 !important; }

/* ===== 无错⑧尾中特 (hk19) 样式 — 1:1 还原源站 duilianpt ===== */
table.duilianpt {
    table-layout: auto !important;
    width: 100% !important;
    color: #FF0000;
    border-radius: 0 !important;
    overflow: hidden;
    text-align: center;
    background: #fff !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 !important;
}
table.duilianpt tr {
    height: 30px;
    border-bottom: none !important;
    background: #fff !important;
}
table.duilianpt tr:nth-child(even) th {
    background: #fff !important;
}
table.duilianpt th {
    font-weight: bold !important;
    border: 1px solid #C0C0C0 !important;
    font-size: 18pt !important;
    text-align: center !important;
    color: #000000 !important;
    padding: 4px 3px !important;
    line-height: 1.6;
    vertical-align: middle;
    white-space: normal !important;
    word-break: keep-all;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
}
table.duilianpt th:first-child,
table.duilianpt th:last-child {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}
table.duilianpt .zl {
    font-size: 22pt;
    font-weight: bold;
    color: #FF0000 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    line-height: 1.6 !important;
}
table.duilianpt td,
table.duilianpt td:first-child,
table.duilianpt td:last-child {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    white-space: normal !important;
    padding: 6px 3px !important;
}
table.duilianpt td font[color="#0000FF"] { color: #0000FF !important; }
table.duilianpt td font[color="#FF0000"] { color: #FF0000 !important; }
table.duilianpt td font[color="#008000"] { color: #008000 !important; }
table.duilianpt td font[color="#000000"] { color: #000000 !important; }
/* 原创二十码(hk02)期号行文字：与标题字号一致 16px */
table.duilianpt td > font { font-size: 16px !important; }

/* ===== 无错⑧尾中特 (hk19) 响应式：内容较长，限制最大字号防换行 ===== */
body .zl-block[data-key="hk19"] table.duilianpt th {
    font-size: clamp(13px, 3.8vw, 15px) !important;
    line-height: 1.5 !important;
}
body .zl-block[data-key="hk19"] table.duilianpt .zl {
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.5 !important;
}

/* ===== 全局：除【2026年属性知识】(hk17) 外，所有板块文字靠左 + 响应式字体 ===== */
body .zl-block:not([data-key="hk17"]) table,
body .zl-block:not([data-key="hk17"]) table th,
body .zl-block:not([data-key="hk17"]) table td,
body .zl-block:not([data-key="hk17"]) table th:nth-child(n),
body .zl-block:not([data-key="hk17"]) table td:nth-child(n) {
    text-align: left !important;
}
body .zl-block:not([data-key="hk17"]) table th,
body .zl-block:not([data-key="hk17"]) table td,
body .zl-block:not([data-key="hk17"]) table th:nth-child(n),
body .zl-block:not([data-key="hk17"]) table td:nth-child(n) {
    font-size: clamp(13px, 4.2vw, 22px) !important;
    padding-left: 8px !important;
    padding-right: 6px !important;
}
body .zl-block:not([data-key="hk17"]) table .zl {
    font-size: clamp(15px, 5vw, 28px) !important;
}
body .zl-block:not([data-key="hk17"]) table font {
    font-size: inherit !important;
}

/* ===== 手机端修复：5个多列表格第一列期号不换行（PC端不动） ===== */
@media (max-width: 768px) {
    /* hk21 实力波色双波中特 / hk27 三期四肖 — duilianpt1 多列 */
    body .zl-block[data-key="hk21"] table.duilianpt1 th,
    body .zl-block[data-key="hk27"] table.duilianpt1 th,
    body .zl-block[data-key="hk21"] table.duilianpt1 td,
    body .zl-block[data-key="hk27"] table.duilianpt1 td {
        padding: 5px 4px !important;
    }

    /* hk18 原创极准八肖 / hk07 ⑨肖-③肖-精选12码 — qxtable.yxym 三列 */
    body .zl-block[data-key="hk18"] table.qxtable.yxym td,
    body .zl-block[data-key="hk07"] table.qxtable.yxym td {
        padding: 5px 4px !important;
    }
    body .zl-block[data-key="hk18"] table.qxtable.yxym td[colspan="3"],
    body .zl-block[data-key="hk07"] table.qxtable.yxym td[colspan="3"] {
        padding: 6px 4px !important;
    }

    /* hk30 打造六合界最全资料 — dazao-table 两列 */
    body .zl-block[data-key="hk30"] table.zl-table.dazao-table td {
        padding: 4px 3px !important;
    }
}
@media (max-width: 380px) {
    body .zl-block[data-key="hk21"] table.duilianpt1 th,
    body .zl-block[data-key="hk27"] table.duilianpt1 th,
    body .zl-block[data-key="hk21"] table.duilianpt1 td,
    body .zl-block[data-key="hk27"] table.duilianpt1 td {
        padding: 4px 3px !important;
    }
    body .zl-block[data-key="hk18"] table.qxtable.yxym td,
    body .zl-block[data-key="hk07"] table.qxtable.yxym td {
        padding: 4px 3px !important;
    }
    body .zl-block[data-key="hk30"] table.zl-table.dazao-table td {
        padding: 4px 3px !important;
    }
}

/* ========= v19-30ma-v5 期期必中30码 hk13 专属（只改hk13，其他不动） ========= */
table.sx-table.thirtyma-table {
    min-width: 0px !important;
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #9ca3af !important;
}
table.sx-table.thirtyma-table th,
table.sx-table.thirtyma-table td {
    padding: 4px 8px !important;
    vertical-align: middle !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    white-space: normal !important;
    border: 1px solid #9ca3af !important;
}
td.thirtyma-cell {
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 6px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
    font-family: Arial, "Microsoft YaHei", sans-serif !important;
}
.thirtyma-header {
    text-align: center !important;
    background: linear-gradient(180deg, #a7f3d0 0%, #059669 100%) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 23px !important;
    padding: 10px 6px !important;
    border: 1px solid #9ca3af !important;
}
.thirtyma-zodiac-name {
    color: #2563eb !important;
    font-weight: 900 !important;
    font-size: 23px !important;
    display: inline !important;
    margin-right: 0px !important;
    margin-left: 0px !important;
    padding-right: 0px !important;
}
.thirtyma-nums {
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 23px !important;
    display: inline !important;
    letter-spacing: 0px !important;
    margin-left: 0px !important;
}
.thirtyma-num-highlight {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    font-weight: 900 !important;
    padding: 0px 2px !important;
    display: inline !important;
}
.thirtyma-draw-row td {
    background-color: #CCFFFF !important;
    color: #FF0000 !important;
    text-align: center !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    padding: 9px 6px !important;
    white-space: normal !important;
    word-break: keep-all !important;
    border: 1px solid #9ca3af !important;
}
@media (max-width: 540px) {
    table.sx-table.thirtyma-table th,
    table.sx-table.thirtyma-table td { padding: 4px 5px !important; }
    td.thirtyma-cell { padding-left: 6px !important; padding-right: 4px !important; }
    .thirtyma-header { font-size: 17px !important; padding: 8px 4px !important; }
    .thirtyma-zodiac-name { font-size: 16px !important; }
    .thirtyma-nums { font-size: 16px !important; }
    .thirtyma-draw-row td { font-size: 19px !important; padding: 7px 4px !important; }
}
@media (max-width: 400px) {
    table.sx-table.thirtyma-table th,
    table.sx-table.thirtyma-table td { padding: 4px 4px !important; }
    td.thirtyma-cell { padding-left: 5px !important; padding-right: 3px !important; }
    .thirtyma-header { font-size: 14px !important; padding: 7px 3px !important; }
    .thirtyma-zodiac-name { font-size: 13px !important; }
    .thirtyma-nums { font-size: 13px !important; }
    .thirtyma-draw-row td { font-size: 15px !important; padding: 7px 3px !important; }
}
@media (max-width: 350px) {
    .thirtyma-zodiac-name { font-size: 11px !important; }
    .thirtyma-nums { font-size: 11px !important; }
    .thirtyma-header { font-size: 12px !important; }
    .thirtyma-draw-row td { font-size: 12px !important; }
}

/* ===== 原创极准八肖 (hk18) 样式 — qxtable yxym 三列布局 ===== */
table.qxtable.yxym {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    border: 1px solid #C0C0C0 !important;
    background: #FFFFFF !important;
}
table.qxtable.yxym td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 4px !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    color: #000000 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    line-height: 1.6 !important;
}
/* 第一列：期号:⑧肖 */
table.qxtable.yxym td:first-child {
    font-weight: bold !important;
    white-space: nowrap;
}
/* 第二列：八肖生肖（红色，中奖生肖黄色背景） */
table.qxtable.yxym td:nth-child(2) {
    color: #FF0000 !important;
    font-weight: bold !important;
    font-size: clamp(16px, 5vw, 22px) !important;
    letter-spacing: 1px !important;
}
table.qxtable.yxym td:nth-child(2) span[style*="background-color: #FFFF00"] {
    background-color: #FFFF00 !important;
    padding: 0 2px !important;
}
/* 第三列：开奖结果 */
table.qxtable.yxym td:last-child {
    font-weight: bold !important;
    white-space: nowrap;
}
@media (max-width: 600px) {
    table.qxtable.yxym td { padding: 5px 3px !important; }
}
@media (max-width: 400px) {
    table.qxtable.yxym td { padding: 4px 2px !important; }
}

/* ===== ⑨肖-③肖-精选12码 (hk07) 样式 — 多表 qxtable yxym ===== */
/* 精选行 / 分隔行（colspan=3） */
table.qxtable.yxym td[colspan="3"] {
    background: #f7f0d0 !important;
    font-size: clamp(13px, 3.8vw, 15px) !important;
    color: #333333 !important;
    padding: 7px 3px !important;
    line-height: 1.8 !important;
}
table.qxtable.yxym td[colspan="3"] span.jx {
    color: #FF0000;
    font-weight: bold;
    letter-spacing: 1px;
}
/* 精选行保持浅灰背景（源站内联样式） */
table.qxtable.yxym td[colspan="3"][style*="background: #f7f7f7"] {
    background: #f7f7f7 !important;
}
@media (max-width: 600px) {
    table.qxtable.yxym td[colspan="3"] { padding: 6px 3px !important; }
}

/* ===== 全局响应式：duilianpt1 / duilianpt / yjjt / dazao-table / bose-table ===== */
@media (max-width: 600px) {
    /* duilianpt1 — 大部分板块 */
    table.duilianpt1 td { padding: 6px 4px !important; }
    table.duilianpt1 tr { height: auto !important; }

    /* duilianpt — 无错⑧尾 / 原创二十码 / 原创平特四肖四码 */
    table.duilianpt th { padding: 6px 4px !important; }
    table.duilianpt tr { height: auto !important; }

    /* yjjt — 四字解特码 */
    table.yjjt td { padding: 6px 4px !important; }

    /* bose-table — 实力波色双波中特 */
    table.duilianpt1.bose-table th { white-space: normal !important; }
    table.duilianpt1.bose-table td { white-space: normal !important; }
    table.duilianpt1.bose-table .zl { white-space: normal !important; }
}

@media (max-width: 400px) {
    /* duilianpt1 */
    table.duilianpt1 td { padding: 5px 3px !important; }

    /* duilianpt */
    table.duilianpt th { padding: 5px 3px !important; }

    /* yjjt */
    table.yjjt td { padding: 5px 3px !important; }
}

/* ===== 香港彩资料：金牌六肖⑥码 (hk_jinpal) ===== */
table.zl-table.jinpal-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
table.zl-table.jinpal-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
table.zl-table.jinpal-table tr:nth-child(even) td {
    background: #fff !important;
}
table.zl-table.jinpal-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 4px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.5;
    vertical-align: middle;
    text-align: center !important;
    color: #FF0000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}
table.zl-table.jinpal-table td:first-child {
    white-space: nowrap !important;
    text-align: center !important;
    color: #000000 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}
table.zl-table.jinpal-table td:nth-child(2) {
    text-align: left !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}
table.zl-table.jinpal-table td span[style*="FFFF00"],
table.zl-table.jinpal-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
table.zl-table.jinpal-table td font[color="#000000"] { color: #000000 !important; }
table.zl-table.jinpal-table td font[color="#FF0000"] { color: #FF0000 !important; }

@media (max-width: 480px) {
    table.zl-table.jinpal-table td { font-size: clamp(13px, 4vw, 16px) !important; padding: 5px 3px !important; }
}
@media (max-width: 360px) {
    table.zl-table.jinpal-table td { font-size: clamp(12px, 3.8vw, 15px) !important; padding: 4px 2px !important; }
}

/* ===== 香港：金算盘平特一肖（3列：期数 | 生肖 | 开奖结果） ===== */
table.zl-table.jinsuanpan-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
table.zl-table.jinsuanpan-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
table.zl-table.jinsuanpan-table tr:nth-child(even) td {
    background: #fff !important;
}
table.zl-table.jinsuanpan-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 4px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.5;
    vertical-align: middle;
    text-align: center !important;
    color: #FF0000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}
table.zl-table.jinsuanpan-table td:first-child {
    white-space: nowrap !important;
    text-align: center !important;
    color: #000000 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}
table.zl-table.jinsuanpan-table td:nth-child(2) {
    text-align: center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
table.zl-table.jinsuanpan-table td:nth-child(3) {
    white-space: nowrap !important;
    text-align: center !important;
    color: #000000 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}
table.zl-table.jinsuanpan-table td span[style*="FFFF00"],
table.zl-table.jinsuanpan-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
table.zl-table.jinsuanpan-table td font[color="#000000"] { color: #000000 !important; }
table.zl-table.jinsuanpan-table td font[color="#FF0000"] { color: #FF0000 !important; }

@media (max-width: 480px) {
    table.zl-table.jinsuanpan-table td { font-size: clamp(13px, 4vw, 16px) !important; padding: 5px 3px !important; }
}
@media (max-width: 360px) {
    table.zl-table.jinsuanpan-table td { font-size: clamp(12px, 3.8vw, 15px) !important; padding: 4px 2px !important; }
}

/* ===== 香港：AAAA级大公开（hk_aaaa）— 1:1 还原源站 qxtable ㈤肖⑥码 + 推荐 + 横幅 ===== */
body .zl-block table.zl-table.aaaa-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse !important;
    background: #FFFFFF !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.aaaa-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #FFFFFF !important;
}
body .zl-block table.zl-table.aaaa-table td {
    border: 1px solid #FFFFFF !important;
    padding: 5px 6px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.5;
    vertical-align: middle;
    text-align: left !important;
    font-weight: 900 !important;
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
body .zl-block table.zl-table.aaaa-table td font,
body .zl-block table.zl-table.aaaa-table td span {
    font-weight: inherit !important;
}
body .zl-block table.zl-table.aaaa-table td:first-child {
    width: 50% !important;
}
body .zl-block table.zl-table.aaaa-table td:nth-child(2) {
    width: 50% !important;
}
body .zl-block table.zl-table.aaaa-table td[colspan="2"] {
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
}
body .zl-block table.zl-table.aaaa-table td[bgcolor="#F4F4F4"] { background: #F4F4F4 !important; }
body .zl-block table.zl-table.aaaa-table td[style*="f2ffa9"] { background: #f2ffa9 !important; }
body .zl-block table.zl-table.aaaa-table td[style*="FFA500"] { background: #FFA500 !important; }
body .zl-block table.zl-table.aaaa-table td font[color="#000080"] { color: #000080 !important; }
body .zl-block table.zl-table.aaaa-table td font[color="#FF0000"] { color: #FF0000 !important; }
body .zl-block table.zl-table.aaaa-table td font[color="#0000FF"] { color: #0000FF !important; }
body .zl-block table.zl-table.aaaa-table td font[color="#000000"] { color: #000000 !important; }
body .zl-block table.zl-table.aaaa-table td span[style*="FFFF00"],
body .zl-block table.zl-table.aaaa-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}

@media (max-width: 480px) {
    body .zl-block table.zl-table.aaaa-table td { font-size: clamp(13px, 4vw, 16px) !important; padding: 4px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.aaaa-table td { font-size: clamp(12px, 3.8vw, 15px) !important; padding: 3px 3px !important; }
}

/* ===== 香港：周公托梦平特一肖（hk_zhougong）— 单行彩色文字 ===== */
body .zl-block table.zl-table.zhougong-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.zhougong-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
body .zl-block table.zl-table.zhougong-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 8px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    vertical-align: middle;
    text-align: left !important;
    color: #FF0000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
body .zl-block table.zl-table.zhougong-table td font[color="#0000FF"] { color: #0000FF !important; }
body .zl-block table.zl-table.zhougong-table td font[color="#FF00FF"] { color: #FF00FF !important; }
body .zl-block table.zl-table.zhougong-table td font[color="#008000"] { color: #008000 !important; }
body .zl-block table.zl-table.zhougong-table td span.zl { color: #FF0000 !important; }
@media (max-width: 480px) {
    body .zl-block table.zl-table.zhougong-table td { font-size: clamp(12px, 4vw, 15px) !important; padding: 5px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.zhougong-table td { font-size: clamp(11px, 3.8vw, 14px) !important; padding: 4px 3px !important; }
}

/* ===== 香港：原创⑤尾中特（hk_wuwei）— 单行 ===== */
body .zl-block table.zl-table.wuwei-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.wuwei-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
body .zl-block table.zl-table.wuwei-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 8px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    vertical-align: middle;
    text-align: left !important;
    color: #000000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
body .zl-block table.zl-table.wuwei-table td font[color="#000000"] { color: #000000 !important; }
body .zl-block table.zl-table.wuwei-table td font[color="#808080"] { color: #808080 !important; }
body .zl-block table.zl-table.wuwei-table td span.zl { color: #FF0000 !important; }
body .zl-block table.zl-table.wuwei-table td span[style*="FFFF00"],
body .zl-block table.zl-table.wuwei-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
@media (max-width: 480px) {
    body .zl-block table.zl-table.wuwei-table td { font-size: clamp(12px, 4vw, 15px) !important; padding: 5px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.wuwei-table td { font-size: clamp(11px, 3.8vw, 14px) !important; padding: 4px 3px !important; }
}

/* ===== 香港：六肖中特长跟稳赚（hk_liuxiao）— 单行 ===== */
body .zl-block table.zl-table.liuxiao-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.liuxiao-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
body .zl-block table.zl-table.liuxiao-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 8px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    vertical-align: middle;
    text-align: left !important;
    color: #000000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
body .zl-block table.zl-table.liuxiao-table td font[color="#800000"] { color: #800000 !important; }
body .zl-block table.zl-table.liuxiao-table td font[color="#0000FF"] { color: #0000FF !important; }
body .zl-block table.zl-table.liuxiao-table td font[color="#000000"] { color: #000000 !important; }
body .zl-block table.zl-table.liuxiao-table td span.zl { color: #FF0000 !important; }
body .zl-block table.zl-table.liuxiao-table td span[style*="FFFF00"],
body .zl-block table.zl-table.liuxiao-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
@media (max-width: 480px) {
    body .zl-block table.zl-table.liuxiao-table td { font-size: clamp(12px, 4vw, 15px) !important; padding: 5px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.liuxiao-table td { font-size: clamp(11px, 3.8vw, 14px) !important; padding: 4px 3px !important; }
}

/* ===== 香港：平特二中二期期实战（hk_erzhonger）— 单行 ===== */
body .zl-block table.zl-table.erzhonger-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.erzhonger-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
body .zl-block table.zl-table.erzhonger-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 8px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    vertical-align: middle;
    text-align: left !important;
    color: #000000 !important;
    font-weight: bold !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
}
body .zl-block table.zl-table.erzhonger-table td font[color="#000000"] { color: #000000 !important; }
body .zl-block table.zl-table.erzhonger-table td span.zl { color: #FF0000 !important; }
body .zl-block table.zl-table.erzhonger-table td span[style*="FFFF00"],
body .zl-block table.zl-table.erzhonger-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
@media (max-width: 480px) {
    body .zl-block table.zl-table.erzhonger-table td { font-size: clamp(12px, 4vw, 15px) !important; padding: 5px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.erzhonger-table td { font-size: clamp(11px, 3.8vw, 14px) !important; padding: 4px 3px !important; }
}

/* ===== 香港：二期必中单双（hk_erqi）— 三列布局 ===== */
/* ===== 香港：原创三期内必出（hk_sanqi）— 三列布局 ===== */
body .zl-block table.zl-table.erqi-table,
body .zl-block table.zl-table.sanqi-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff !important;
    margin: 0 !important;
}
body .zl-block table.zl-table.erqi-table tr,
body .zl-block table.zl-table.sanqi-table tr {
    height: auto !important;
    border-bottom: none !important;
    background: #fff !important;
}
/* 三列通用：期号列(th) 内容列(td) 开奖列(th) */
body .zl-block table.zl-table.erqi-table th,
body .zl-block table.zl-table.erqi-table td,
body .zl-block table.zl-table.sanqi-table th,
body .zl-block table.zl-table.sanqi-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 4px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.5;
    vertical-align: middle;
    text-align: center !important;
    color: #000000 !important;
    font-weight: bold !important;
    background: #fff !important;
    min-width: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}
/* 第一列：期号列（窄，不换行） */
body .zl-block table.zl-table.erqi-table th:first-child,
body .zl-block table.zl-table.sanqi-table th:first-child {
    width: 22% !important;
    min-width: 52px !important;
    white-space: nowrap !important;
    font-size: clamp(13px, 3.8vw, 17px) !important;
}
/* 第三列：开奖结果列（窄，不换行） */
body .zl-block table.zl-table.erqi-table th:last-child,
body .zl-block table.zl-table.sanqi-table th:last-child {
    width: 24% !important;
    min-width: 56px !important;
    white-space: nowrap !important;
    font-size: clamp(13px, 3.8vw, 17px) !important;
}
/* 中间内容列（宽，允许必要时换行） */
body .zl-block table.zl-table.erqi-table td,
body .zl-block table.zl-table.sanqi-table td {
    white-space: nowrap !important;
}
/* 颜色保留 */
body .zl-block table.zl-table.erqi-table td font[color="#0000FF"],
body .zl-block table.zl-table.sanqi-table td font[color="#0000FF"] { color: #0000FF !important; }
body .zl-block table.zl-table.erqi-table th font[color="#000000"],
body .zl-block table.zl-table.sanqi-table th font[color="#000000"] { color: #000000 !important; }
body .zl-block table.zl-table.erqi-table span.zl,
body .zl-block table.zl-table.sanqi-table span.zl { color: #FF0000 !important; }
body .zl-block table.zl-table.erqi-table td span[style*="FFFF00"],
body .zl-block table.zl-table.erqi-table td span[style*="background-color"],
body .zl-block table.zl-table.sanqi-table td span[style*="FFFF00"],
body .zl-block table.zl-table.sanqi-table td span[style*="background-color"] {
    background-color: #FFFF00 !important;
}
/* 小屏适配：字号和间距微调，保证不溢出 */
@media (max-width: 480px) {
    body .zl-block table.zl-table.erqi-table th,
    body .zl-block table.zl-table.erqi-table td,
    body .zl-block table.zl-table.sanqi-table th,
    body .zl-block table.zl-table.sanqi-table td { font-size: clamp(12px, 4vw, 15px) !important; padding: 5px 3px !important; }
    body .zl-block table.zl-table.erqi-table th:first-child,
    body .zl-block table.zl-table.sanqi-table th:first-child,
    body .zl-block table.zl-table.erqi-table th:last-child,
    body .zl-block table.zl-table.sanqi-table th:last-child { font-size: clamp(11px, 3.6vw, 14px) !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.erqi-table th,
    body .zl-block table.zl-table.erqi-table td,
    body .zl-block table.zl-table.sanqi-table th,
    body .zl-block table.zl-table.sanqi-table td { font-size: clamp(11px, 3.8vw, 14px) !important; padding: 4px 2px !important; }
    body .zl-block table.zl-table.erqi-table th:first-child,
    body .zl-block table.zl-table.sanqi-table th:first-child,
    body .zl-block table.zl-table.erqi-table th:last-child,
    body .zl-block table.zl-table.sanqi-table th:last-child { font-size: clamp(10px, 3.4vw, 13px) !important; min-width: 44px !important; }
}

/* ===== 火爆六肖 & 庄家必吃10码 (hk_huobao / hk_zhuangjia) 单列样式 ===== */
body .zl-block table.zl-table.huobao-table,
body .zl-block table.zl-table.zhuangjia-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}
/* 单列：每行只有一个 th，内容不强制换行 */
body .zl-block table.zl-table.huobao-table th,
body .zl-block table.zl-table.zhuangjia-table th {
    border: 1px solid #C0C0C0 !important;
    padding: 7px 6px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    text-align: left !important;
    vertical-align: middle;
    color: #000000 !important;
    font-weight: bold !important;
    background: #fff !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
/* 庄家必吃10码：长数字串允许在任意位置换行，防止窄屏溢出 */
body .zl-block table.zl-table.zhuangjia-table th span[style*="background-color"] {
    display: inline !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}
/* 火爆六肖的高亮 span 字号略大 */
body .zl-block table.zl-table.huobao-table .zl {
    font-size: clamp(15px, 4.8vw, 20px) !important;
    color: #FF0000;
    font-weight: bold;
}
/* 庄家必吃10码的吃码数字 span 字号略大 */
body .zl-block table.zl-table.zhuangjia-table .zl,
body .zl-block table.zl-table.zhuangjia-table th span[style*="background-color"] {
    font-size: clamp(14px, 4.5vw, 19px) !important;
    font-weight: bold;
}
/* 火爆六肖底部灰色提示行保留背景色 */
body .zl-block table.zl-table.huobao-table th[bgcolor="#C0C0C0"],
body .zl-block table.zl-table.huobao-table tr:last-child th {
    background: #C0C0C0 !important;
}
/* 小屏字号微调 */
@media (max-width: 480px) {
    body .zl-block table.zl-table.huobao-table th,
    body .zl-block table.zl-table.zhuangjia-table th { font-size: clamp(12px, 3.8vw, 15px) !important; }
    body .zl-block table.zl-table.zhuangjia-table th span[style*="background-color"] { font-size: clamp(12px, 3.6vw, 15px) !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.huobao-table th,
    body .zl-block table.zl-table.zhuangjia-table th { font-size: clamp(11px, 3.4vw, 14px) !important; padding: 6px 4px !important; }
    body .zl-block table.zl-table.zhuangjia-table th span[style*="background-color"] { font-size: clamp(11px, 3.2vw, 14px) !important; }
}

/* ===== ⑨肖-③肖-精选12码 (hk_jiuxiao) 三列样式 ===== */
body .zl-block table.zl-table.jiuxiao-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}
body .zl-block table.zl-table.jiuxiao-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 6px 5px !important;
    font-size: clamp(13px, 4vw, 17px) !important;
    line-height: 1.5;
    text-align: left !important;
    vertical-align: middle;
    color: #000000 !important;
    font-weight: bold !important;
    background: #fff !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}
/* 第一列(期号)和第三列(开奖)不换行，中间列自适应 */
body .zl-block table.zl-table.jiuxiao-table td:first-child,
body .zl-block table.zl-table.jiuxiao-table td:last-child {
    white-space: nowrap !important;
    word-break: keep-all !important;
}
/* 中间列(生肖内容)不换行，红色文字 */
body .zl-block table.zl-table.jiuxiao-table td:nth-child(2):not([colspan]) {
    white-space: nowrap !important;
    word-break: keep-all !important;
    color: #FF0000 !important;
}
/* 跨列行(广告/精选/⑧码)允许换行 */
body .zl-block table.zl-table.jiuxiao-table td[colspan] {
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
}
/* 精选行背景色 */
body .zl-block table.zl-table.jiuxiao-table td[colspan][style*="background"] {
    background: #f7f7f7 !important;
    color: #FF0000 !important;
}
/* ⑧码行内容(跨2列)允许换行 */
body .zl-block table.zl-table.jiuxiao-table td[colspan="2"] {
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    color: #FF0000 !important;
}
/* 小屏字号微调 */
@media (max-width: 480px) {
    body .zl-block table.zl-table.jiuxiao-table td { font-size: clamp(12px, 3.6vw, 15px) !important; padding: 5px 4px !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.jiuxiao-table td { font-size: clamp(11px, 3.3vw, 14px) !important; padding: 4px 3px !important; }
}

/* ===== 无错⑧尾中特 (hk_wucuo) 单列样式(th-based) ===== */
body .zl-block table.zl-table.wucuo-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}
body .zl-block table.zl-table.wucuo-table th {
    border: 1px solid #C0C0C0 !important;
    padding: 7px 6px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    text-align: left !important;
    vertical-align: middle;
    color: #000000 !important;
    font-weight: bold !important;
    background: #fff !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
/* 尾数数字串允许换行 */
body .zl-block table.zl-table.wucuo-table .zl {
    font-size: clamp(15px, 4.8vw, 20px) !important;
    color: #FF0000;
    font-weight: bold;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}
@media (max-width: 480px) {
    body .zl-block table.zl-table.wucuo-table th { font-size: clamp(12px, 3.8vw, 15px) !important; }
    body .zl-block table.zl-table.wucuo-table .zl { font-size: clamp(13px, 4vw, 17px) !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.wucuo-table th { font-size: clamp(11px, 3.4vw, 14px) !important; padding: 6px 4px !important; }
    body .zl-block table.zl-table.wucuo-table .zl { font-size: clamp(12px, 3.6vw, 16px) !important; }
}

/* ===== 禁一肖一尾 (hk_jinma) 单列样式(td-based) ===== */
body .zl-block table.zl-table.jinma-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}
body .zl-block table.zl-table.jinma-table td {
    border: 1px solid #C0C0C0 !important;
    padding: 7px 6px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.6;
    text-align: left !important;
    vertical-align: middle;
    color: #000000 !important;
    font-weight: bold !important;
    background: #fff !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
/* 高亮生肖和尾数 */
body .zl-block table.zl-table.jinma-table .zl {
    font-size: clamp(15px, 4.8vw, 20px) !important;
    font-weight: bold;
}
@media (max-width: 480px) {
    body .zl-block table.zl-table.jinma-table td { font-size: clamp(12px, 3.8vw, 15px) !important; }
    body .zl-block table.zl-table.jinma-table .zl { font-size: clamp(13px, 4vw, 17px) !important; }
}
@media (max-width: 360px) {
    body .zl-block table.zl-table.jinma-table td { font-size: clamp(11px, 3.4vw, 14px) !important; padding: 6px 4px !important; }
    body .zl-block table.zl-table.jinma-table .zl { font-size: clamp(12px, 3.6vw, 16px) !important; }
}
