/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', '微软雅黑', sans-serif;
}

body {
    background: #0f0f0f center/cover fixed;
    color: #fff;
    min-height: 100vh;
    /* background-image: url('../images/background.jpg'); */
}

/* 导航栏 */
/* .navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
}

/* .nav-links {
    right: 5%; 
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e74c3c;
} */

/* 通用部分 */
.section-title {
    display: block; /* 让图片变成块级元素，可以设置 margin */
    margin-left: auto; /* 将左外边距设置为 auto */
    margin-right: auto; /* 将右外边距设置为 auto */
    margin-bottom: -15px;
}

/* .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e74c3c;
} */

/* 英雄区块 */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 5% 5%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #ddd;
}

/* .cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
} */

/* 游戏信息 */
.game-info {
    padding: 5rem 5%;
    background: #1a1a1a;
}

.info-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.slide-image {
    flex: 1;
    min-width: 300px;
}

.slide-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide-text {
    flex: 1;
    min-width: 300px;
}

.slide-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.prev-btn,
.next-btn {
    background: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: #e74c3c;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #e74c3c;
}

/* 游戏特性 */
.features {
    padding: 5rem 5%;
    background: #0f0f0f;
}

.features-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.features-container {
    width: 100%;
    overflow: hidden;
}

.feature-slide {
    display: none;
    width: 100%;
}

.feature-slide.active {
    display: block;
}

.feature-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-image {
    flex: 1;
    min-width: 300px;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}

.features-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.prev-feature,
.next-feature {
    background: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-feature:hover,
.next-feature:hover {
    background: #e74c3c;
}

.features-dots {
    display: flex;
    gap: 0.5rem;
}

.feature-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.feature-dot.active {
    background: #e74c3c;
}

/* 游戏截图 */
.screenshots {
    padding: 5rem 5%;
    background: #1a1a1a;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    position: relative;
    /* border-radius: 10px; */
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); */
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}



/* .screenshot-item:hover .screenshot-caption {
    transform: translateY(0);
} */

/* 宣传视频 */
.promo-video {
    padding: 5rem 5%;
    background: #0f0f0f;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 3% auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    /* padding-bottom: 56.25%; */
    /* 16:9 比例 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 游戏预告片 */
.movie-trailer {
    padding: 5rem 5%;
    background: #1a1a1a;
}

.trailer-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.trailer-video {
    width: 100%;
}

.trailer-video video {
    width: 100%;
    display: block;
}

.trailer-title {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(231, 76, 60, 0.8);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
}

.trailer-title h3 {
    font-size: 1.5rem;
    color: #fff;
}

/* 游戏背景 */
/* .game-background { */
    /* padding: 5rem 5%; */
    /* background: #0f0f0f; */
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-attachment: fixed; */
    /* background: url('./images/ACEguanwang_mianban07.png') center/cover; */
/* } */

.background-content {
    max-width: 800px;
    height: 40vh;
    margin: 5%;
    margin-left: 40%;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.background-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.background-text p:last-child {
    margin-bottom: 0;
}


/* 页脚 */
footer {
    background: #0f0f0f;
    padding: 2rem 5% 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 1rem;
    color: #ddd;
}

.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: #e74c3c;
    transform: translateY(-5px);
}

.social-icons i {
    font-size: 1.2rem;
    color: #fff;
}

.footer-bottom {
    /* padding: 0.5rem 0; */
    text-align: center;
    /* border-top: 1px solid #333; */
}

.footer-bottom p {
    margin-bottom: 1rem;
    color: #888;
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slide-content,
    .feature-card {
        flex-direction: column;
    }

    .slide-image,
    .slide-text,
    .feature-image,
    .feature-text {
        width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        width: 100%;
    }
}

.carousel-container {
    /* position: relative;*/
    /*width: 100vh; /* 固定宽度 */
    height: 80vh;
    /* 固定高度 */
    /* align-self: center; */
    /* overflow: hidden; */
    display: flex;
    /* 使用 Flexbox 实现居中 */
    /*justify-content: center; /* 水平居中 */
    /*align-items: center; /* 垂直居中 */
}

.carousel-slide {
    position: absolute;
    bottom: -105%;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    /* 使用 Flexbox 实现居中 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
}

.carousel-slide img {
    /* 这里不需要设置具体的宽度和高度，因为容器已经固定了尺寸 */
    max-width: 80%;
    /* 保证图片宽度不超过容器 */
    max-height: 100%;
    /* 保证图片高度不超过容器 */
    object-fit: contain;
    /* 保持图片比例，并在容器内完整显示，可能会有留白 */
}

.carousel-slide.active {
    opacity: 1;
}

.prev-button,
.next-button {
    position: absolute;
    bottom: -95%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
    opacity: 1;
}

.prev-button {
    left: 40%;
}

.next-button {
    right: 40%;
}

.carousel-controls {
    width: 100%;
    height: 5%;
}

.image-counter {
    position: absolute;
    bottom: -93%;
    left: 50%;
    transform: translateX(-50%);

}