* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 响应式根字体 - 使用clamp实现流畅缩放 */
html {
    font-size: clamp(14px, 3.5vw, 18px);
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f0f0f0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #333;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 顶部红色标题栏 - 渐变背景与下方横幅协调 */
.header {
    background: linear-gradient(135deg, #e60012 0%, #c4000d 50%, #a0000a 100%);
    color: #fff;
    padding: 0.6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 添加金色装饰边框 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 20%, 
        #ffed4e 50%, 
        #ffd700 80%, 
        transparent 100%
    );
}

.header-title {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.4),
        0 0 20px rgba(255,215,0,0.3);
    position: relative;
    z-index: 1;
}

/* 标题装饰元素 */
.header-title::before,
.header-title::after {
    content: '◆';
    color: #ffd700;
    font-size: 0.6em;
    margin: 0 12px;
    opacity: 0.8;
    vertical-align: middle;
}

.header-title span {
    color: #ffff00;
    font-size: clamp(0.75rem, 3.8vw, 0.875rem);
    margin-left: 4px;
    font-weight: normal;
}

.top-banner {
    width: 100%;
    height: auto;
    display: block;
    /* 添加与标题栏的过渡效果 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 4个图标导航 - 响应式 */
.icon-nav {
    background: #fff;
    padding: clamp(0.75rem, 4vw, 1rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 3vw, 1rem);
    border-bottom: 1px solid #e0e0e0;
}

.icon-item {
    text-align: center;
    text-decoration: none;
    color: #666;
}

.icon-circle {
    width: clamp(3rem, 16vw, 3.5rem);
    height: clamp(3rem, 16vw, 3.5rem);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-text {
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    color: #333;
    white-space: nowrap;
}

/* 红色标签按钮 - 每行固定5个，固定顶部导航 */
.tag-nav {
    background: #fff;
    padding: clamp(0.375rem, 2vw, 0.5rem);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.375rem, 2vw, 0.5rem);
    border-bottom: 1px solid #e0e0e0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 防止抖动优化 */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

.tag-btn {
    background: #e60012;
    color: #fff;
    padding: clamp(0.375rem, 2vw, 0.5rem) clamp(0.25rem, 1.5vw, 0.375rem);
    border-radius: 15px;
    font-size: clamp(0.6875rem, 3.2vw, 0.8125rem);
    text-decoration: none;
    border: none;
    text-align: center;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 彩票类型Tab - 响应式 */
.lottery-tabs {
    background: #fff;
    display: flex;
    border-bottom: 2px solid #e60012;
    padding: 0 clamp(0.375rem, 2vw, 0.625rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lottery-tabs::-webkit-scrollbar {
    display: none;
}

.lottery-tab {
    padding: clamp(0.5rem, 2.5vw, 0.625rem) clamp(0.625rem, 3vw, 0.9375rem);
    color: #666;
    text-decoration: none;
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.lottery-tab.active {
    color: #4cd964;
    font-weight: bold;
}

/* 开奖结果容器 */
.lottery-result-container {
    position: relative;
}

.lottery-result-item {
    display: none;
}

.lottery-result-item:first-child {
    display: block;
}

/* 开奖结果区 */
.result-box {
    background: #fff;
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

/* 香港天天彩 - 澳门六合彩风格 - 完全复制澳门彩样式 */
.lottery-result-item.new-KJ-TabBox-box,
.new-KJ-TabBox-box {
    font-size: 14px;
    height: 130px;
    box-sizing: border-box;
    color: #333;
    padding: 8px !important;
    margin: 0 !important;
    font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif;
    background: #fff;
    border: none !important;
    overflow: hidden;
}

.new-KJ-TabBox-box a {
    text-decoration: none;
}

.new-KJ-TabBox-box .kj-font-red {
    color: #f00!important;
}

.new-KJ-TabBox-box .new-KJ-TabBox-box-tit {
    display: flex;
    align-items: center;
    height: 17px;
    line-height: 17px;
    font-size: 17px;
    margin: 0;
    padding: 0;
}

.new-KJ-TabBox-box .new-KJ-TabBox-box-tit-l,
.new-KJ-TabBox-box .new-KJ-TabBox-box-tit-m,
.new-KJ-TabBox-box .new-KJ-TabBox-box-tit-r {
    font-size: 16px;
    line-height: 17px;
    color: #333;
    font-weight: 500;
}

.new-KJ-TabBox-box .new-KJ-TabBox-box-tit-m {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.new-KJ-TabBox-box-con {
    display: flex;
    margin: 8px 0;
    padding: 0;
}

.new-KJ-TabBox-box-con .kj-ball {
    flex: none;
    width: 58px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px;
    margin-right: 5px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 3px 0;
}

.new-KJ-TabBox-box-con .kj-ball:last-child {
    margin-right: 0;
}

.new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
    margin-right: 5px;
}

.new-KJ-TabBox-box-con .kj-ball h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 20px;
    font-size: 23px;
    font-weight: 900;
    font-family: Tahoma, Geneva, sans-serif;
}

.new-KJ-TabBox-box-con .kj-ball h2 div {
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: 900;
}

.new-KJ-TabBox-box-con .kj-ball .whsx {
    display: inline-block;
    width: auto;
    height: 18px;
    line-height: 18px;
    margin-top: 7px;
    padding: 0 3px;
    border-radius: 2px;
    color: #333;
    font-size: 12px;
    background: #fff;
    font-family: 'PingFang SC', 'microsoft yahei', sans-serif;
    white-space: nowrap;
}

.new-KJ-TabBox-box-con .kj-add {
    display: flex;
    align-items: center;
    margin-right: 8px;
    font-size: 28px;
    font-weight: bold;
}

.new-KJ-TabBox-box-foot {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.new-KJ-TabBox-box-foot-l {
    flex: 1;
}

.new-KJ-TabBox-box-foot-r-sx {
    display: inline-block;
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    background: #FF9900;
    cursor: pointer;
}

/* 红蓝绿球背景色 */
.new-KJ-TabBox-box-con .kj-ball.bg-red {
    background: #e71607;
}

.new-KJ-TabBox-box-con .kj-ball.bg-blue {
    background: #2389e9;
}

.new-KJ-TabBox-box-con .kj-ball.bg-green {
    background: #1fb61d;
}

@media screen and (max-width: 650px) {
    .new-KJ-TabBox-box {
        font-size: 15px;
    }

    .new-KJ-TabBox-box-tit,
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-l,
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-r {
        font-size: 17px;
        line-height: 17px;
        font-weight: 500;
    }
    
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-m {
        font-size: 17px;
        line-height: 17px;
        font-weight: bold;
    }

    .new-KJ-TabBox-box-con .kj-ball {
        flex: 1;
        width: auto;
        height: 66px;
        min-width: 40px;
        margin-right: 4px;
        padding: 3px 0;
    }

    .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
        margin-right: 4px;
    }

    .new-KJ-TabBox-box-con .kj-ball h2 {
        font-size: 26px;
        line-height: 26px;
    }

    .new-KJ-TabBox-box-con .kj-ball .whsx {
        margin-top: 4px;
        padding: 0 4px;
        font-size: 13px;
        height: 19px;
        line-height: 19px;
    }

    .new-KJ-TabBox-box-con .kj-add {
        margin-right: 4px;
        font-size: 26px;
    }

    .new-KJ-TabBox-box-foot {
        font-size: 15px;
    }
}

@media screen and (max-width: 450px) {
    .new-KJ-TabBox-box-tit-m .kj-lotto-tit2 span:first-child {
        display:none;
    }
    
    .new-KJ-TabBox-box-tit,
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-l,
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-r {
        font-size: 16px;
        line-height: 17px;
        font-weight: 500;
    }
    
    .new-KJ-TabBox-box .new-KJ-TabBox-box-tit-m {
        font-size: 16px;
        line-height: 17px;
        font-weight: bold;
    }
    
    .new-KJ-TabBox-box-con .kj-ball {
        height: 62px;
        min-width: 36px;
        margin-right: 3px;
        padding: 3px 0;
    }
    
    .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) {
        margin-right: 3px;
    }
    
    .new-KJ-TabBox-box-con .kj-ball h2 {
        font-size: 24px;
        line-height: 24px;
    }
    
    .new-KJ-TabBox-box-con .kj-ball .whsx {
        margin-top: 4px;
        padding: 0 2px;
        font-size: 12px;
        height: 18px;
        line-height: 18px;
    }
    
    .new-KJ-TabBox-box-con .kj-add {
        margin-right: 3px;
        font-size: 24px;
    }
}

.xgttc-next {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.countdown {
    color: #e60012;
    font-size: clamp(0.625rem, 2.8vw, 0.75rem);
    white-space: nowrap;
}

.result-info {
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
    color: #333;
}

.result-info .time {
    color: #666;
    margin-left: 8px;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
}

.history-link {
    color: #34c759;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    text-decoration: none;
}

/* 开奖号码 - 响应式适配，平分宽度 */
.balls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.125rem, 1vw, 0.25rem);
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.ball {
    flex: 1;
    min-width: 0;
    aspect-ratio: 0.75;
    max-height: 4rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: clamp(0.875rem, 4vw, 1.25rem);
    line-height: 1;
    padding: 4px 2px;
}

.ball small {
    font-size: clamp(0.625rem, 2.8vw, 0.75rem);
    margin-top: 6px;
    color: #000;
    background: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 2em;
    text-align: center;
}

.ball.red { background: #e60012; }
.ball.green { background: #34c759; }
.ball.blue { background: #007aff; }

.ball-plus {
    font-size: clamp(0.75rem, 3vw, 1rem);
    color: #333;
    flex-shrink: 0;
    padding: 0 clamp(1px, 0.5vw, 4px);
    flex: 0 0 auto;
}

.next-draw {
    color: #e60012;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    margin-top: 0.5rem;
    text-align: center;
}

/* 生肖年份 - 响应式 */
.zodiac-bar {
    background: #e60012;
    color: #fff;
    padding: clamp(0.375rem, 2vw, 0.5rem) clamp(0.5rem, 3vw, 0.75rem);
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
}

.zodiac-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zodiac-label {
    font-weight: bold;
    white-space: nowrap;
}

.zodiac-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.25rem 0.5rem;
    width: 100%;
}

.zodiac-items span {
    text-align: center;
    white-space: nowrap;
}

.zodiac-bar span {
    display: inline-block;
}

/* 网址提示 - 响应式 */
.site-url {
    background: #fff;
    padding: clamp(0.5rem, 2.5vw, 0.625rem);
    text-align: center;
    color: #e60012;
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* AAAAA级大公开 */
.prediction-section {
    background: #fff;
    margin-top: 0.5rem;
}

.prediction-header {
    background: linear-gradient(90deg, #ffeb3b 0%, #ffd700 100%);
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-title {
    color: #e60012;
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
    font-weight: bold;
}

.prediction-rate {
    color: #e60012;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
}

/* 预测列表黑色背景 */
.prediction-list {
    background: #000;
    color: #fff;
    padding: clamp(0.5rem, 2.5vw, 0.625rem) clamp(0.5rem, 3vw, 0.75rem);
}

.prediction-item {
    padding: clamp(0.25rem, 1.5vw, 0.375rem) 0;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    border-bottom: 1px solid #333;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prediction-item:last-child {
    border-bottom: none;
}

.pred-label {
    color: #4cd964;
}

.pred-numbers {
    color: #5ac8fa;
}

.pred-highlight {
    color: #ff4444;
    font-weight: bold;
}

/* 图片区块通用样式 - 响应式 */
.section-block {
    background: #fff;
    margin-top: 0.5rem;
}

.section-title {
    background: #4a4a4a;
    color: #fff;
    padding: clamp(0.5rem, 2.5vw, 0.625rem) clamp(0.5rem, 3vw, 0.75rem);
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
}

.img-container {
    background: #f9f9f9;
    padding: 0.5rem;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.section-content {
    padding: clamp(0.5rem, 3vw, 0.75rem);
}

.section-content img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* 图片占位 - 响应式 */
.img-placeholder {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    min-height: clamp(8rem, 40vw, 12.5rem);
    padding: 0.5rem;
    text-align: center;
}

/* 高手榜 - 响应式 */
.expert-section {
    background: #fff;
    margin-top: 0.5rem;
}

.expert-banner {
    width: 100%;
    margin-top: 0.5rem;
}

.expert-banner img {
    width: 100%;
    height: clamp(3rem, 15vw, 5rem);
    object-fit: cover;
    display: block;
}

.expert-list {
    padding: 0 clamp(0.5rem, 3vw, 0.75rem);
}

.expert-item {
    display: flex;
    align-items: center;
    padding: clamp(0.5rem, 2.5vw, 0.625rem) 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.expert-tag {
    background: #e60012;
    color: #fff;
    padding: clamp(1px, 0.5vw, 2px) clamp(3px, 1.5vw, 5px);
    font-size: clamp(0.5625rem, 2.5vw, 0.625rem);
    border-radius: 3px;
    margin-right: clamp(4px, 2vw, 8px);
    flex-shrink: 0;
}

.expert-title {
    flex: 1;
    color: #333;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-author {
    color: #999;
    font-size: clamp(0.625rem, 2.8vw, 0.6875rem);
    flex-shrink: 0;
}

/* 图库网格 - 响应式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
    gap: clamp(0.375rem, 2vw, 0.625rem);
    padding: clamp(0.5rem, 3vw, 0.75rem);
    background: #fff;
}

.gallery-item {
    text-align: center;
}

.gallery-thumb {
    width: 100%;
    height: clamp(4rem, 20vw, 6.25rem);
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: clamp(0.625rem, 3vw, 0.6875rem);
    text-align: center;
    padding: 0.25rem;
}

.gallery-name {
    font-size: clamp(0.625rem, 3vw, 0.6875rem);
    color: #666;
}

.gallery-img {
    width: 100%;
    height: clamp(5rem, 25vw, 8rem);
    object-fit: contain;
    cursor: zoom-in;
}

/* 图片放大遮罩层 */
.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 1rem;
}

.img-overlay img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

/* 分析文字 - 响应式 */
.analysis-text {
    padding: clamp(0.5rem, 3vw, 0.75rem);
    background: #f9f9f9;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    line-height: 1.8;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.analysis-text strong {
    color: #e60012;
}

/* 杀肖表格 - 响应式 */
.kill-table {
    width: 100%;
    font-size: clamp(0.625rem, 3vw, 0.75rem);
    border-collapse: collapse;
    table-layout: fixed;
}

.kill-table th {
    background: #e60012;
    color: #fff;
    padding: clamp(0.375rem, 2vw, 0.5rem) clamp(0.125rem, 1vw, 0.25rem);
    text-align: center;
    font-weight: normal;
}

.kill-table td {
    padding: clamp(0.375rem, 2vw, 0.5rem) clamp(0.125rem, 1vw, 0.25rem);
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kill-table .current {
    background: #ffeb3b;
}

/* 独家长跟久赢 - 响应式 */
.track-section {
    background: #fff;
    margin-top: 0.5rem;
}

/* 标题栏样式 */
.section-title-bar {
    background: #4a4a4a;
    color: #fff;
    text-align: center;
    padding: clamp(0.625rem, 3vw, 0.875rem);
    font-size: clamp(0.875rem, 4vw, 1rem);
    font-weight: bold;
    letter-spacing: 2px;
}

/* 九肖跟踪表格样式 */
.jx-track-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    background: #fff;
}

.jx-track-table td {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.25rem, 1.5vw, 0.5rem);
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* 期号列 */
.jx-track-table .col-qs {
    width: 25%;
    color: #333;
    white-space: nowrap;
}

/* 生肖列 */
.jx-track-table .col-zodiac {
    width: 50%;
    color: #0066ff;
    word-break: break-all;
}

/* 结果列 */
.jx-track-table .col-result {
    width: 25%;
    color: #333;
    white-space: nowrap;
}

/* 开奖生肖高亮 */
.jx-track-table .highlight-zodiac {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 分组标题行 */
.jx-track-group td {
    border-top: 2px solid #ccc;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: clamp(0.625rem, 3vw, 0.875rem) clamp(0.25rem, 1.5vw, 0.5rem);
}

/* 九肖跟踪 - 错误项中划线 */
.jx-track-table tr.miss td {
    position: relative;
    opacity: 0.7;
}

.jx-track-table tr.miss td::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #999;
}

.jx-track-table tr.miss .col-result {
    color: #999;
}

/* 加载状态 */
.track-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: clamp(0.875rem, 4vw, 1rem);
}

/* 输尽光样式 - 简洁美观 */
.sjg-loading {
    text-align: center;
    padding: 1rem;
    color: #999;
}

.sjg-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sjg-item {
    background: #ffeb3b;
    padding: clamp(0.5rem, 2.5vw, 0.625rem);
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 错误项红色中划线 - 只覆盖文字区域 */
.sjg-item.miss {
    position: relative;
    background: #ffeb3b;
}

.sjg-item.miss::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: #e60012;
    transform: translateY(-50%);
    z-index: 1;
}

.sjg-zodiac {
    border: 2px solid #e60012;
    padding: 1px 5px;
    font-weight: bold;
    color: #e60012;
    background: #fff;
    margin: 0 4px;
}

/* 九肖跟踪 - 红色贯穿中划线 */
.jx-track-table tr.miss {
    position: relative;
}

.jx-track-table tr.miss td {
    position: relative;
}

.jx-track-table tr.miss td::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e60012;
    transform: translateY(-50%);
    z-index: 1;
}

.jx-track-table tr.miss .col-result {
    color: #999;
}

/* 合数统计 - 响应式 */
.stats-section {
    background: #fff;
    padding: clamp(0.5rem, 3vw, 0.75rem);
    margin-top: 0.5rem;
}

.stats-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
}

.stats-row {
    font-size: clamp(0.875rem, 4vw, 1rem);
    color: #666;
    padding: 0.375rem 0;
    position: relative;
    text-align: center;
}

/* 合数错误项 - 红色中划线只覆盖文字 */
.stats-row.wrong {
    position: relative;
}

.stats-row.wrong::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #e60012;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.stats-row.wrong .result-text {
    color: #e60012;
}

.stats-tag {
    display: inline-block;
    padding: clamp(2px, 1vw, 4px) clamp(6px, 2vw, 10px);
    border-radius: 4px;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    font-weight: bold;
}

.stats-tag.small { background: #ffeb3b; color: #333; }
.stats-tag.big { background: #ffeb3b; color: #333; }
.stats-tag.single { background: #007aff; color: #fff; }
.stats-tag.double { background: #007aff; color: #fff; }

/* 互动话题 - 响应式 */
.topic-section {
    background: #fff;
    padding: clamp(0.5rem, 3vw, 0.75rem);
    margin-top: 0.5rem;
}

.topic-title {
    color: #e60012;
    font-weight: bold;
    font-size: clamp(0.75rem, 3.5vw, 0.8125rem);
    margin-bottom: 0.5rem;
}

.topic-content {
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    padding: clamp(0.5rem, 2.5vw, 0.625rem);
    border-radius: 4px;
    font-size: clamp(0.625rem, 2.8vw, 0.6875rem);
    color: #e65100;
    line-height: 1.5;
}

/* 生肖对照表 - 响应式 */
.zodiac-ref {
    background: #fff;
    padding: clamp(0.75rem, 4vw, 0.9375rem);
    margin-top: 0.5rem;
    text-align: center;
}

.zodiac-ref-title {
    font-weight: bold;
    margin-bottom: clamp(0.75rem, 4vw, 0.9375rem);
    color: #333;
    font-size: clamp(0.8125rem, 4vw, 0.875rem);
}

/* 图纸图片容器 */
.drawing-images {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawing-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* 底部导航 - 响应式
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    border-top: 1px solid #e0e0e0;
    padding: clamp(0.25rem, 1.5vw, 0.375rem) 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: clamp(0.5625rem, 2.8vw, 0.625rem);
    min-width: 0;
}

.nav-item.active {
    color: #e60012;
}

.nav-icon {
    font-size: clamp(1.125rem, 5.5vw, 1.375rem);
    display: block;
    margin-bottom: 2px;
    height: clamp(1.25rem, 6vw, 1.5rem);
    line-height: clamp(1.25rem, 6vw, 1.5rem);
}
*/

/* 返回顶部 - 响应式 */
.back-top {
    position: fixed;
    right: clamp(0.5rem, 3vw, 0.75rem);
    bottom: clamp(3.5rem, 18vw, 4.375rem);
    width: clamp(1.875rem, 10vw, 2.25rem);
    height: clamp(1.875rem, 10vw, 2.25rem);
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.5625rem, 2.5vw, 0.625rem);
    cursor: pointer;
    z-index: 99;
    display: none;
}

.back-top::before {
    content: '▲';
    font-size: 0.75rem;
    margin-bottom: -2px;
}

/* 底部留白 - 响应式
.bottom-space {
    height: clamp(3rem, 15vw, 3.75rem);
}
*/

/* 媒体查询适配不同屏幕 */
@media screen and (max-width: 320px) {
    html { font-size: 13px; }
    .ball { width: 2.2rem; height: 2.8rem; font-size: 0.9rem; }
    .ball small { font-size: 0.5rem; padding: 0 2px; }
    .icon-circle { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
    .tag-nav { grid-template-columns: repeat(4, 1fr); }
    .tag-btn { font-size: 0.625rem; padding: 0.25rem 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
    /* .data-table { font-size: 0.625rem; }
    .data-table th, .data-table td { padding: 0.25rem 0.125rem; } */
}

@media screen and (min-width: 321px) and (max-width: 375px) {
    html { font-size: 15px; }
    .ball { width: 2.3rem; height: 3rem; font-size: 1rem; }
    .ball small { font-size: 0.55rem; }
    .tag-nav { grid-template-columns: repeat(5, 1fr); }
}

@media screen and (min-width: 376px) and (max-width: 414px) {
    html { font-size: 16px; }
}

@media screen and (min-width: 415px) and (max-width: 768px) {
    html { font-size: 17px; }
    body { max-width: 100%; }
}

@media screen and (min-width: 769px) {
    html { font-size: 18px; }
    body { max-width: 480px; margin: 0 auto; }
    /* .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); } */
    .back-top { right: calc(50% - 240px + 0.75rem); }
}

/* 版权信息 - 响应式 */
.footer {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    padding: clamp(1rem, 4vw, 1.5rem) clamp(0.75rem, 3vw, 1rem);
    margin-top: 1rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    color: #ccc;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    margin-bottom: 0.5rem;
}

.footer-warning {
    color: #ff6b6b;
    font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
    font-weight: bold;
}
