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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #3498db;
}

/* 首页英雄区域 */
.hero {
    /* 默认使用渐变背景色 */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), 
                linear-gradient(45deg, #3498db, #2c3e50);
    background-size: 400% 400%;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 如果需要使用背景图片，可以取消下面的注释并提供图片 */
/*
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}
*/

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-small {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #2980b9;
}

/* 特色服务区域 */
.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex: 0 0 30%;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 最新赛事区域 */
.latest-events {
    padding: 80px 0;
}

.latest-events h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #2c3e50;
}

.event-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.event-card {
    flex: 0 0 30%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.event-card h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.event-card p {
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

/* 页面头部样式 */
.page-header {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
}

/* 赛事信息页面样式 */
.events-filter {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.filter-group {
    display: inline-block;
    margin-right: 30px;
}

.filter-group label {
    margin-right: 10px;
    font-weight: bold;
}

.filter-group select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.events-list {
    padding: 50px 0;
}

.event-item {
    display: flex;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.event-date {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 20px;
    min-width: 100px;
}

.event-date .month {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-details h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.event-meta {
    margin-bottom: 15px;
}

.event-meta span {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
}

.category {
    padding: 3px 8px;
    border-radius: 3px;
    color: white;
    font-size: 12px;
}

.category.sports { background-color: #27ae60; }
.category.esports { background-color: #9b59b6; }
.category.academic { background-color: #f39c12; }
.category.cultural { background-color: #e74c3c; }

.event-description {
    margin-bottom: 20px;
    color: #666;
}

/* 新闻资讯页面样式 */
.news-list {
    padding: 50px 0;
}

.news-item {
    display: flex;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-image {
    flex: 0 0 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content {
    flex: 1;
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.news-meta {
    margin-bottom: 15px;
}

.news-meta .date,
.news-meta .category {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #777;
}

.news-excerpt {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 关于我们页面样式 */
.about-content {
    padding: 50px 0;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-section p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.about-section ul {
    padding-left: 20px;
}

.about-section ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3498db;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 5px;
    color: #3498db;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 联系我们页面样式 */
.contact-content {
    padding: 50px 0;
}

.contact-content .container {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 0 0 40%;
}

.contact-info h3,
.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
}

.contact-form {
    flex: 0 0 55%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* 常见问题样式 */
.faq {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.faq h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.faq-item {
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .feature {
        flex: 0 0 100%;
    }
    
    .event-card {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: none;
        height: 200px;
    }
    
    .contact-content .container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        flex: none;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .filter-group {
        display: block;
        margin-bottom: 15px;
    }
}