/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

/* 主内容区域 */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 抽签容器 */
.lottery-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* 说明文字 */
.instructions {
    margin-bottom: 30px;
}

.instructions p {
    font-size: 1.1rem;
    color: #555;
}

/* 抽签按钮 */
.draw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.draw-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.draw-btn:active {
    transform: translateY(-2px);
}

.draw-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 结果容器 */
.result-container {
    margin-top: 40px;
    animation: fadeIn 0.6s ease-in-out;
}

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

.hidden {
    display: none;
}

/* 结果头部 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.result-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.reset-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reset-btn:hover {
    background: #c0392b;
}

/* 抽签图片 */
.lottery-image {
    margin-bottom: 30px;
}

.lottery-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lottery-image img:hover {
    transform: scale(1.02);
}

/* 抽签详情 */
.lottery-details {
    text-align: left;
}

.detail-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: bold;
    color: #34495e;
    display: block;
    margin-bottom: 5px;
}

.detail-value {
    color: #555;
    line-height: 1.7;
}

.explanation {
    white-space: pre-line;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .lottery-container {
        padding: 20px;
    }
    
    .draw-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .footer {
        padding: 20px 15px;
        font-size: 0.8rem;
    }
}