/* 首页彩票区域样式 */
.lottery-section {
    margin-bottom: 30px;
    padding: 0px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lottery-section h2 {
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.lottery-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 添加图片背景时的半透明效果 */
body[class*="theme-style-enabled"] .lottery-info {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 针对彩票结果页面的lottery-info样式 */
body[class*="theme-style-enabled"] .lottery-latest-result .lottery-info {
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    max-width: 900px;
}

.lottery-period {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.lottery-period h4 {
    font-size: 20px;
    color: #2271b1;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}

/* 添加新的样式让期号标题居中显示 */
.lottery-period-title {
    text-align: center;
    margin: 0 auto 8px;
    padding: 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2271b1;
}

.lottery-numbers {
    display: flex;
    flex-direction: column;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 800px;
    overflow: visible;
    align-self: center;
}

/* 号码球容器标题部分 */
.lottery-numbers-header {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.lottery-numbers-header h4 {
    font-size: 20px;
    color: #2271b1;
    margin: 0 0 6px 0;
    font-weight: 600;
}

/* 号码球容器球部分 */
.lottery-numbers-balls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    padding-top: 5px;
    padding-bottom: 10px;
    align-self: center;
}

/* 开奖时间样式优化 */
.lottery-draw-time {
    margin: 5px 0 0;
    padding: 0;
    background-color: transparent;
    border-left: none;
    color: #666;
    font-size: 16px;
    display: block;
    text-align: center;
}

/* 首页号码球样式 */
.number-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 66px;
    margin: 0 0 16px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.number-ball.special-number {
    background-color: #3498db;
}

.number-ball:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* 球的前后缀样式 */
.number-ball::before,
.number-ball::after {
    font-size: 15px;
}

/* 彩票类型选择器 */
.lottery-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.lottery-tab {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.lottery-tab:hover {
    background-color: #f0f0f0;
}

.lottery-tab.active {
    background-color: #2271b1;
    color: #fff;
}

.lottery-tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 查看历史按钮 */
.view-history-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-history-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 下期开奖信息 */
.next-draw-info {
    text-align: center;
    margin-top: 20px;
    background-color: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
} 