* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 强制隐藏开奖页面滚动条 */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 0;
}

/* 行布局 */
.row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.row-1 {
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.row-2 {
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.row-3 {
    justify-content: space-between;
    font-size: 14px;
}

.col {
    display: flex;
    align-items: center;
}

.left {
    justify-content: flex-start;
}

.center {
    justify-content: center;
}

.right {
    justify-content: flex-end;
}

/* 文字样式 */
.label {
    color: #333;
    font-size: clamp(14px, 4vw, 20px);
}

.title {
    color: #000;
    font-weight: 900;
    font-size: clamp(14px, 4vw, 20px);
}

.period-num {
    color: #e74c3c;
    font-weight: 900;
    font-size: clamp(14px, 4vw, 20px);
}

.countdown {
    color: #000;
    font-family: monospace;
    font-weight: 900;
    font-size: clamp(14px, 4vw, 20px);
}

.history-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: clamp(14px, 4vw, 20px);
}

.date {
    color: #333;
    font-size: clamp(14px, 4vw, 20px);
}

/* 号码球 - 与九点页面统一尺寸 */
.ball {
    flex: 1 1 auto;
    min-width: 45px;
    max-width: 62px;
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    margin: 0 1px;
    overflow: hidden;
}

.ball-num {
    font-size: clamp(22px, 6vw, 36px);
    line-height: 1.2;
    height: 55%;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-attr {
    font-size: clamp(10px, 2.5vw, 12px);
    line-height: 1;
    color: #000;
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ball.red {
    background: #ff0000;
}

.ball.green {
    background: #00aa00;
}

.ball.blue {
    background: #0066ff;
}

.ball.special {
    /* 特码球不加金边 */
}

/* 加号 */
.plus {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 2px;
}

/* 刷新按钮 */
.refresh-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.refresh-btn:hover {
    background: #f57c00;
}

/* 历史记录弹窗 */
.history-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.history-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.history-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.history-modal-body {
    padding: 15px 20px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.history-filter {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.history-filter span {
    font-weight: bold;
    margin-right: 10px;
}

.history-filter .filter-btn {
    padding: 4px 12px;
    margin-right: 8px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.history-filter .filter-btn.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.history-item-header {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.history-item-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.history-ball-group {
    display: flex;
    gap: 4px;
}

.history-ball {
    width: 42px;
    text-align: center;
}

.history-ball-num {
    height: 28px;
    line-height: 28px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.history-ball-num.red {
    background: #e74c3c;
}

.history-ball-num.blue {
    background: #3498db;
}

.history-ball-num.green {
    background: #27ae60;
}

.history-ball-sx {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.history-te-label {
    font-size: 13px;
    color: #666;
    padding: 0 6px;
}

/* 所有表格强制显示边框 */
table, table.lottery-smart-table {
    border-collapse: collapse !important;
    width: 100% !important;
}
table td, table th, table.lottery-smart-table td, table.lottery-smart-table th {
    border: 1px solid #333 !important;
}

/* 移动端适配 - 已禁用，手机和电脑显示一致 */
@media (max-width: 768px) {
    /* 不添加任何特殊样式，保持与电脑端一致 */
}
