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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f6f3;
}

/* 颜色定义 - 枣红色主题 */
:root {
    --primary-color: #8B2323; /* 枣红色 */
    --primary-light: #A02A2A;
    --primary-dark: #702121;
    --secondary-color: #F5F5DC;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

header h2 {
    font-size: 1.5rem;
    font-weight: normal;
    opacity: 0.9;
}

/* 主要内容样式 */
main {
    padding: 60px 0;
}

.hero {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 60px;
    text-align: center;
}

.hero-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn.secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--light-text);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* 二维码样式 */
.qr-code {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: inline-block;
}

.qr-code img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* 步骤提示样式 */
.guide-steps {
    margin: 30px 0;
    text-align: left;
}

.guide-steps ol {
    padding-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.guide-steps li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.guide-actions {
    margin-top: 30px;
}

/* 报名弹窗样式 */
.register-content {
    margin: 30px 0;
    text-align: center;
}

.register-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.register-buttons {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .register-buttons {
        flex-direction: column;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero-content h3 {
        font-size: 1.6rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header h2 {
        font-size: 1rem;
    }
    
    main {
        padding: 40px 0;
    }
    
    .hero-content h3 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeIn 0.8s ease-out;
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 35, 35, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}