/*
 * 子比福彩20选8 - 样式文件
 * 
 * @package Zib Lottery
 * @since 1.0.0
 */

.zib-lottery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.zib-lottery-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.zib-lottery-section {
    margin-bottom: 30px;
}

.zib-lottery-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    color: #333;
}

.zib-lottery-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* 表格样式 */
.zib-lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.zib-lottery-table th,
.zib-lottery-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.zib-lottery-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.zib-lottery-table tr:nth-child(even) {
    background: #f9f9f9;
}

.zib-lottery-kj-history {
    max-height: 300px;
    overflow-y: auto;
}

/* 开奖号码球 */
.zib-lottery-ball {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    margin: 0 3px;
    font-weight: 600;
    font-size: 14px;
}

/* 号码选择区 */
.zib-lottery-select-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.zib-lottery-numbers {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.zib-lottery-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.zib-lottery-number:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.zib-lottery-number.active {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

/* 购买区 */
.zib-lottery-buy-section {
    flex: 0 0 280px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.zib-lottery-buy-info {
    margin-bottom: 20px;
}

.zib-lottery-selected,
.zib-lottery-beishu,
.zib-lottery-cost,
.zib-lottery-win,
.zib-lottery-balance {
    margin-bottom: 12px;
    font-size: 14px;
}

.zib-lottery-beishu select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
}

.zib-lottery-cost span,
.zib-lottery-win span {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
}

.zib-lottery-balance span {
    color: #27ae60;
    font-weight: 600;
}

/* 按钮样式 */
.zib-lottery-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zib-lottery-btn-buy {
    background: #e74c3c;
    color: #fff;
}

.zib-lottery-btn-buy:hover:not(:disabled) {
    background: #c0392b;
}

.zib-lottery-btn-buy:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.zib-lottery-btn-duijiang {
    background: #3498db;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
}

.zib-lottery-btn-duijiang:hover {
    background: #2980b9;
}

/* 玩法说明 */
.zib-lottery-description {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

.zib-lottery-description p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

/* 用户记录 */
.zib-lottery-user-records {
    max-height: 400px;
    overflow-y: auto;
}

.zib-lottery-user-records .zib-lottery-table {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zib-lottery-select-section {
        flex-direction: column;
    }
    
    .zib-lottery-buy-section {
        flex: 1;
    }
    
    .zib-lottery-numbers {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .zib-lottery-numbers {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .zib-lottery-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* 开奖状态区域 */
.zib-lottery-kj-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.zib-lottery-kj-status h3 {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.zib-lottery-kj-status-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.zib-lottery-kj-status-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.zib-lottery-kj-status-item strong {
    color: #ffd700;
    font-size: 16px;
    margin-left: 5px;
}

.zib-lottery-kj-user-section {
    grid-column: 1 / -1;
    margin-top: 15px;
    text-align: center;
}

.zib-lottery-btn-user-kj {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.zib-lottery-btn-user-kj:hover:not(:disabled) {
    background: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.zib-lottery-btn-user-kj:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.zib-lottery-kj-user-tip {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 合规声明 */
.zib-lottery-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

.zib-lottery-disclaimer h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1976d2;
    font-weight: 600;
}

.zib-lottery-disclaimer p {
    margin: 0;
    color: #37474f;
    line-height: 1.6;
    font-size: 14px;
}
