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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #39bced;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 15px 0;
}

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

.logo {
    display: inline-block;
    overflow: hidden;
    height: 40px; /* 保持原来的高度 */
    /* width: 60px; 根据原始宽度调整，这里假设原始宽度为40px */
}

.logo img {
    height: 60px; /* 1.5倍的原始高度 */
    width: auto; /* 保持宽高比 */
    margin-top: -6px; /* 向上移动10%的高度 (60px * 0.1 = 6px) */
    transform: scale(1.5); /* 放大1.5倍 */
    transform-origin: center center; /* 确保从中心放大 */
}

.nav-links {
    display: flex;
    list-style-type: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255,255,255,0.2);
}

.auth-links {
    display: flex;
    align-items: center;
}

.auth-links a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
}

.auth-links .register {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.auth-links .register:hover {
    background-color: #0056b3;
}

.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-box input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-links li {
        margin-left: 15px;
    }
    
    .search-box {
        display: none;
    }
}

/* 英雄区域样式 */
.hero {
    background-image: url('files/yj_banner1.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 0;
    margin-top: 70px;
}

.hero-slider {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.slider-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.slider-dots span.active {
    background-color: #007bff;
}

/* 特性区域样式 */
.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}



.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #007bff;
}

.feature-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    flex-basis: calc(25% - 20px);
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s;
}

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

.feature-item img {
    width: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.feature-item:hover img {
    transform: scale(1.1);
}

.feature-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}
.feature-item p {
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .feature-item {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .feature-item {
        flex-basis: 100%;
    }
}

/* 客户评价区域样式 */
/* 客户评价区域样式 */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.testimonial {
    flex-basis: calc(33.333% - 20px);
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-style: italic;
    font-size: 1em;
    margin-bottom: 15px;
    color: #333;
}

.testimonial cite {
    font-weight: bold;
    color: #007bff;
    display: block;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .testimonial {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial {
        flex-basis: 100%;
    }
}

/* 移动设备滑动效果 */
@media (max-width: 768px) {
    .testimonial-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .testimonial {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 15px;
    }

    .testimonial:last-child {
        margin-right: 0;
    }
}


/* 最新动态区域样式 */
.latest-news {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex-basis: calc(33.333% - 30px);
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

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

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links, .auth-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .feature-item {
        flex-basis: calc(50% - 20px);
    }

    .footer-section {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-basis: 100%;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }
}

/* 使用步骤 */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.step-item {
    flex-basis: calc(25% - 1rem);
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.step-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.step-item p {
    font-size: 0.9rem;
    color: #666;
}

/* 支持的平台 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.platform-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.platform-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.platform-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.platform-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.platform-features li:before {
    content: "✓";
    color: #28a745;
    margin-right: 0.5rem;
}

.platform-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.platform-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .step-item {
        flex-basis: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .step-item {
        flex-basis: 100%;
    }
}


.our-games {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* .games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
} */

.games-grid {
    display: flex;
    justify-content: center;
}

.games-grid a.game-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-item:hover {
    transform: translateY(-5px);
}

.game-image-container {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.game-info p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.start-game-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.start-game-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}
