/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* CSS变量定义 */
:root {
    --primary: #3a8c38;
    --secondary: #635548;
    --accent: #ff8c42;
    --dark: #2c2c2c;
    --light: #f5f5f5;
    --gray: #4a4a4a;
    --dark-green: #1e522b;
}

/* 主体背景和动画 */
body {
    background: linear-gradient(135deg, #2c5c2b, #3a8c38, #4a9f46);
    color: var(--light);
    line-height: 1.6;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(30, 40, 30, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #ff8c42, #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* 头部区域样式 */
.header {
    text-align: center;
    padding: 60px 0 30px;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #ffffff, #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* 游戏信息区域 */
.game_info {
    background: rgba(30, 40, 30, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff8c42, #ffd166);
    padding: 5px;
}

.icon img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.info {
    flex-grow: 1;
}

.info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffd166;
}

.info p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.age-rating {
    display: inline-block;
    background: #ff8c42;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
}

/* 主要内容区域 */
.content {
    background: rgba(30, 40, 30);
    border-radius: 15px;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 900px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    color: #ffd166;
}

/* 轮播图容器 - 与内容宽度一致 */
.slider-container {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(20, 30, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 轮播图主体 */
.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 500px; /* 固定高度保持一致性 */
    padding: 20px 0; /* 上下留白 */
}

/* 单张幻灯片容器 */
.slide {
    flex: 0 0 100%; /* 每张幻灯片占据100%宽度 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px; /* 左右间隔 */
    box-sizing: border-box;
}

/* 竖屏截图样式 */
.slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: rgba(30, 40, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 导航按钮样式 */
.button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button:hover {
    background-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.7);
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

/* 指示器样式 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--accent);
}

/* 响应式调整 */
@media (max-width: 900px) {
    .slider {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 400px;
        padding: 15px 0;
    }
    
    .button {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .slider-indicators {
        padding: 6px 12px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 350px;
    }
    
    .slide img {
        max-height: 90%;
    }
    
    .button {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* 游戏信息样式 */
.game-description {
    background: rgba(40, 50, 40, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.8;
}

.game-details ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.game-details li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-details li:last-child {
    border-bottom: none;
}

.game-details li i {
    color: var(--accent);
    width: 24px;
    text-align: center;
}

/* 下载按钮样式 */
.download-section {
    text-align: center;
    margin: 30px 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(to right, #ff8c42, #ff6b35);
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 140, 66, 0.6);
}

.download-button:hover::before {
    left: 100%;
}

.download-stats {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 功能亮点卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: rgba(40, 50, 40, 0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 140, 66, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffd166;
}

/* 页脚样式 */
footer {
    background: rgba(20, 25, 20, 0.95);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffd166;
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-info {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--accent);
    text-decoration: none;
}


