/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面加载动画 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #ff6b6b;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: #ff6b6b;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主视觉区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: 400% 400%;
    animation: gradientAnimation 60s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    8.33% {
        background: linear-gradient(135deg, #9a748a 0%, #a65b94 100%);
    }
    16.66% {
        background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    }
    25% {
        background: linear-gradient(135deg, #ffd357 0%, #d19c46 100%);
    }
    33.33% {
        background: linear-gradient(135deg, #feca57 0%, #4834d4 100%);
    }
    41.66% {
        background: linear-gradient(135deg, #d19c46 0%, #583ed9 100%);
    }
    50% {
        background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    }
    58.33% {
        background: linear-gradient(135deg, #583ed9 0%, #887de5 100%);
    }
    66.66% {
        background: linear-gradient(135deg, #686de0 0%, #ff9ff3 100%);
    }
    75% {
        background: linear-gradient(135deg, #887de5 0%, #ff8fe8 100%);
    }
    83.33% {
        background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
    }
    91.66% {
        background: linear-gradient(135deg, #ff8fe8 0%, #b557c2 100%);
    }
    100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* 浮动装饰元素 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.15);
}

.floating-element:nth-child(3) {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.floating-element:nth-child(4) {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
}

.floating-element:nth-child(5) {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.floating-element:nth-child(6) {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.22);
}

.floating-element:nth-child(7) {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
}

.floating-element:nth-child(8) {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.19);
}

.floating-element:nth-child(9) {
    width: 13px;
    height: 13px;
    background: rgba(255, 255, 255, 0.24);
}

.floating-element:nth-child(10) {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.16);
}

.floating-element:nth-child(11) {
    width: 17px;
    height: 17px;
    background: rgba(255, 255, 255, 0.17);
}

.floating-element:nth-child(12) {
    width: 19px;
    height: 19px;
    background: rgba(255, 255, 255, 0.14);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(0) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.3;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-pattern.png');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: #ff6b6b;
    color: white;
    border: 2px solid #ff6b6b;
}

.primary-btn:hover {
    background: transparent;
    color: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 通用板块样式 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b6b;
}

.section-title p {
    color: #777;
    font-size: 1.1rem;
}

/* 游戏介绍 */
.about {
    background: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.stat-item p {
    color: #777;
    font-weight: 500;
}

.game-highlights {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.game-highlights h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.game-highlights ul {
    list-style-type: none;
    padding-left: 0;
}

.game-highlights li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 1rem;
}

.game-highlights li:last-child {
    border-bottom: none;
}

/* 游戏截图 */
.screenshots {
    background: white;
}

.screenshot-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.screenshot-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.screenshot-slide {
    min-width: calc(100% / 4); /* 每次显示4张图片 */
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-slide img {
    width: auto;
    height: 300px; /* 调整图片高度以适应竖屏截图 */
    max-width: 180px; /* 限制最大宽度 */
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto; /* 居中显示 */
}

.screenshot-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .screenshot-slide {
        min-width: 33.333%; /* 平板显示3张 */
    }
}

@media screen and (max-width: 768px) {
    .screenshot-slider-wrapper {
        gap: 10px;
    }

    .screenshot-slide {
        min-width: 50%; /* 手机显示2张 */
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 游戏特色 */
.features {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.features .section-title h2,
.features .section-title p {
    color: white;
}

.features .section-title h2::after {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 新闻活动 */
.news {
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    background: #ff6b6b;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ff5252;
    transform: translateX(5px);
}

/* 联系我们 */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.company-info h3,
.download-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.company-info p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.8;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-button {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.store-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.store-button span {
    font-size: 2rem;
    margin-right: 15px;
}

.store-button div p:first-child {
    font-weight: 600;
    margin-bottom: 5px;
}

.store-button div p:last-child {
    color: #777;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff6b6b;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.copyright a {
    color: #ff6b6b;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .game-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 40px 0;
    }

    .nav-menu ul li {
        margin: 15px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}