/* 号码生成器页面样式 */

/* 页面基础样式 */
.site-content {
    padding: 20px 15px;
}

/* 头部样式 */
.lottery-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.mobile-back-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-back-button svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.page-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 20px;
}

/* 彩票类型选择器 */
.lottery-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lottery-tab {
    border: none;
    background-color: #f5f5f5;
    padding: 10px 20px;
    margin: 0 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.lottery-tab.active {
    background-color: #e74c3c;
    color: white;
}

/* 生成方式选择器 */
.generator-mode-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
}

.generator-mode-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.generator-mode-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.generator-mode-btn {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.generator-mode-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 生成选项 */
.generator-options-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.generator-options {
    text-align: center;
}

.birthday-selector,
.year-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.birthday-selector input,
.year-selector select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.fortune-level-selector {
    text-align: center;
    margin-bottom: 10px;
}

.fortune-levels {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.fortune-level-btn {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.fortune-level-btn.active {
    background-color: #f39c12;
    color: white;
    border-color: #f39c12;
}

/* 生成按钮 */
.generator-btn-container {
    text-align: center;
    margin-bottom: 25px;
}

#generate-numbers-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#generate-numbers-btn:hover {
    background-color: #c0392b;
}

/* 号码结果 */
.lottery-result-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    padding: 20px;
    text-align: center;
}

.lottery-result-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.number-combinations-container {
    margin-bottom: 20px;
}

.number-combination {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.number-balls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lottery-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.5s;
}

.lottery-ball.special {
    background-color: #3498db;
}

.lottery-ball.empty {
    background-color: #ccc;
    color: #888;
}

.animate .lottery-ball {
    animation: ballPop 0.5s ease-out;
}

@keyframes ballPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.regenerate-btn,
.copy-numbers-btn {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.regenerate-btn {
    background-color: #f39c12;
    color: white;
}

.copy-numbers-btn {
    background-color: #3498db;
    color: white;
}

.regenerate-btn:hover {
    background-color: #e67e22;
}

.copy-numbers-btn:hover {
    background-color: #2980b9;
}

/* 号码说明 */
.number-explanation {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.number-explanation h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.explanation-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.disclaimer {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 14px;
    color: #777;
}

/* 媒体查询适配 */
@media (max-width: 767px) {
    .lottery-ball {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .generator-mode-btn,
    .fortune-level-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .lottery-ball {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .generator-mode-selector,
    .fortune-levels {
        flex-wrap: wrap;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .regenerate-btn,
    .copy-numbers-btn {
        width: 100%;
    }
} 