/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #f8b500;
    --secondary-color: #ff7f50;
    --warm-color: #ffa07a;
    --light-color: #fffaf0;
    --dark-color: #333;
    --text-color: #666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'ZCOOL KuaiLe', cursive;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* 英雄区样式 */
.hero {
    height: 2vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 1px;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 游戏介绍样式 */
.about {
    padding: 6rem 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

/* 媒体展示样式 */
.media {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.gallery {
    margin-bottom: 4rem;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition);
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.video-section {
    text-align: center;
}

.video-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* 平台信息样式 */
.platforms {
    padding: 6rem 0;
    background-color: #fff;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.platform-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.platform-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.platform-item i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* 联系方式样式 */
.contact {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    /* 英雄区响应式 */
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero h3 {
        font-size: 1.5rem;
    }
    
    /* 游戏介绍响应式 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    /* 平台信息响应式 */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 联系方式响应式 */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* 英雄区响应式 */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero h3 {
        font-size: 1.2rem;
    }
    
    /* 通用响应式 */
    h2 {
        font-size: 1.5rem;
    }
    
    .about, .media, .platforms, .contact {
        padding: 4rem 0;
    }
}

/* 备案号链接样式 */
.footer-copyright a {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

.footer-copyright a:hover, .footer-copyright a:active, .footer-copyright a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}