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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

/* 主内容区样式 */
main {
    padding: 20px 0;
}

/* 抽签容器样式 */
.lottery-container {
    text-align: center;
    margin-bottom: 40px;
}

.lottery-stick {
    width: 180px;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lottery-stick:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stick-content p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 5px;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* 结果容器样式 */
.result-container {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

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

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lottery-image {
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.lottery-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lottery-details {
    width: 100%;
}

.detail-item {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    line-height: 1.6;
}

.detail-item strong {
    color: #667eea;
}

/* 动画效果 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .lottery-stick {
        width: 150px;
        height: 250px;
    }
    
    .stick-content p {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .lottery-stick {
        width: 120px;
        height: 200px;
    }
    
    .stick-content p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}