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

:root {
    --primary-color: #ff4500;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-text: #777777;
    --light-bg: #f5f5f5;
    --dark-bg: #222222;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --hover-color: #ff6a33;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

ul, ol {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--hover-color);
    color: var(--light-text);
}

.btn-large {
    padding: 12px 24px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--gray-text);
}

/* 头部样式 */
header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 24px;
    font-weight: bold;
}

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

nav ul li a:hover {
    background-color: var(--primary-color);
}

/* 轮播图样式 */
.banner {
    padding: 0;
    margin-bottom: 50px;
    background-color: var(--dark-bg);
}

.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
}

.slide-content h1, .slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.slider-controls span:hover {
    background-color: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* 热门视频样式 */
.hot-videos {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.video-meta {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 10px;
}

.video-desc {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

/* 教学视频样式 */
.tutorial-videos {
    padding: 50px 0;
    background-color: var(--card-bg);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.tutorial-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tutorial-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tutorial-content {
    padding: 15px;
}

.tutorial-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.tutorial-content p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 比赛视频样式 */
.match-videos {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.match-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.match-thumbnail {
    position: relative;
    height: 200px;
}

.match-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.match-card:hover .match-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.match-info {
    padding: 15px;
}

.match-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.match-info p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-text);
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

/* 武器教程样式 */
.weapon-tutorials {
    padding: 50px 0;
    background-color: var(--card-bg);
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.weapon-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 15px;
}

.weapon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.weapon-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.weapon-card h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    padding: 0 15px;
    color: var(--secondary-color);
}

.weapon-card p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    padding: 0 15px;
    line-height: 1.5;
}

/* APP下载样式 */
.app-download {
    padding: 50px 0;
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.app-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.app-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #cccccc;
}

.app-features {
    margin-bottom: 25px;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.app-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download i {
    font-size: 20px;
}

.app-image {
    flex: 1;
    text-align: center;
}

.app-image img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 文章样式 */
.articles {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.article-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    font-weight: 500;
}

/* 社区模块样式 */
.community {
    padding: 50px 0;
    background-color: var(--card-bg);
}

.community-content {
    display: flex;
    gap: 50px;
}

.community-info {
    flex: 2;
}

.community-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--gray-text);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-color);
}

.join-community {
    flex: 1;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.join-community h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.join-community p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}

.footer-nav {
    display: flex;
    gap: 50px;
}

.footer-nav-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li a {
    color: #aaaaaa;
    transition: var(--transition);
}

.footer-nav-column ul li a:hover {
    color: var(--primary-color);
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--light-text);
}

/* 页脚样式（续） */
.footer-contact p {
    margin-bottom: 10px;
    color: #aaaaaa;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.qrcode {
    margin-top: 15px;
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin: 0 auto 5px;
    border: 4px solid var(--light-text);
    border-radius: 4px;
}

.qrcode span {
    font-size: 14px;
    color: #aaaaaa;
}

.friend-links {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.friend-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links ul li a {
    color: #aaaaaa;
    font-size: 14px;
    transition: var(--transition);
}

.friend-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 5px;
}

/* 图标样式 */
.icon-check:before {
    content: "✓";
}

.icon-video:before {
    content: "📹";
}

.icon-chat:before {
    content: "💬";
}

.icon-team:before {
    content: "👥";
}

.icon-email:before {
    content: "✉";
}

.icon-phone:before {
    content: "📞";
}

.icon-weibo:before {
    content: "微";
}

.icon-wechat:before {
    content: "微";
}

.icon-qq:before {
    content: "Q";
}

.icon-bilibili:before {
    content: "B";
}

.icon-android:before {
    content: "A";
}

.icon-apple:before {
    content: "i";
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .video-grid,
    .match-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tutorial-grid,
    .weapon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .community-content {
        flex-direction: column;
    }
    
    .community-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 28px;
    }
    
    .tutorial-grid,
    .weapon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .video-grid,
    .tutorial-grid,
    .match-grid,
    .weapon-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content h1, .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
