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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background-image: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 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: 30px 0;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

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

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容样式 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 抽签容器样式 */
.lottery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.lottery-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.lottery-box:hover {
    transform: translateY(-5px);
}

/* 灵签图片样式 */
.lottery-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 灵签结果样式 */
.lottery-result {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #4facfe;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.result-label {
    font-weight: bold;
    color: #4facfe;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.result-value {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

/* 控制按钮样式 */
.lottery-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.draw-button, .clear-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.draw-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.draw-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.draw-button:active {
    transform: translateY(0);
}

.clear-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.clear-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.clear-button:active {
    transform: translateY(0);
}

/* 关于部分样式 */
.about-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    color: #4facfe;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .lottery-box {
        padding: 20px;
    }
    
    .lottery-result {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        padding: 12px;
    }
    
    .draw-button, .clear-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .lottery-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .draw-button, .clear-button {
        width: 100%;
    }
}