/* 全局样式重置 */
* {
    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;
    margin-bottom: 40px;
    padding: 20px 0;
}

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;
}

.lottery-area {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

/* 抽签按钮样式 */
.draw-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.draw-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 结果容器样式 */
.result-container {
    margin-top: 30px;
    text-align: left;
}

.hidden {
    display: none;
}

.sign-info h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.sign-details {
    margin-bottom: 20px;
}

.sign-details p {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.sign-details p:hover {
    background: #e9ecef;
}

.sign-details strong {
    color: #667eea;
    min-width: 60px;
    display: inline-block;
}

.sign-image {
    text-align: center;
    margin-top: 20px;
}

.sign-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;
}

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

/* 加载动画样式 */
.loading {
    margin-top: 30px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .lottery-area {
        padding: 20px;
    }
    
    .draw-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .sign-info h2 {
        font-size: 1.5rem;
    }
    
    .sign-details p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .draw-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .sign-details p {
        padding: 8px;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .draw-button,
    .loading {
        display: none;
    }
    
    .result-container {
        display: block !important;
    }
}