
.keno {
    max-width: 1200px;
    margin: 5px;
}

.lottery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

/* PC端布局 - 宽屏显示多列 */
@media (min-width: 768px) {
    .lottery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .lottery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lottery-item {
    background: linear-gradient(180deg, #092f5c, #6187ad);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 号码网格 */
.number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    background: #0d3360;
    border-radius: 8px;
    overflow: hidden;
}

.number-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.number-cell:hover {
    transform: scale(1.05);
}

.number-cell.selected-blue {
    background: #4a90e2;
    color: white;
}

.number-cell.selected-red {
    background: #e74c3c;
    color: white;
}

/* 计算面板 */
.calculation-panel {
    color: white;
    padding: 5px;
    border-radius: 12px;
    text-align: center;
}

.period-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.equation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.number-circle.result {
    background: #e74c3c;
    border-color: #e74c3c;
}

.operator {
    font-size: 24px;
    font-weight: bold;
}

/* 计算过程面板 */
.process-panel {
    /*background: linear-gradient(135deg, #34495e, #2c3e50);*/
    color: white;
    padding: 5px;
    border-radius: 12px;
}

.process-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.process-item {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 14px;
}

/* 移动端优化 */
@media (max-width: 767px) {
    .lottery-item {
        padding: 15px;
    }

    .number-cell {
        font-size: 12px;
    }

    .period-title {
        font-size: 24px;
    }

    .number-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .operator {
        font-size: 20px;
    }
}
