/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    color: #1a365d;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* 语言切换样式 */
.lang-switch {
    display: flex;
    margin-left: 30px;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

.lang-btn.active {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 移动端菜单切换 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* 首页横幅样式 */
.hero {
    background-color: #1a365d;
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: #2563eb;
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* 通用部分样式 */
.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: #1a365d;
}

/* 关于我们部分样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

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

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 游戏产品部分样式 */
.games {
    padding: 100px 0;
    background-color: #f9fafb;
}

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

.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-image {
    padding: 20px;
    text-align: center;
}

.game-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.game-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 20px;
    color: #1a365d;
}

.game-description {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 合作伙伴部分样式 */
.partners {
    padding: 100px 0;
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.partner-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* 联系我们部分样式 */
.contact {
    padding: 100px 0;
    background-color: #f9fafb;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

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

.footer-social a {
    display: inline-block;
    margin-right: 12px;
}

.footer-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav.active {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .lang-switch {
        margin: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about,
    .games,
    .partners,
    .contact {
        padding: 80px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 12px 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .about,
    .games,
    .partners,
    .contact {
        padding: 60px 0;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* 商务风格的额外样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-primary {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.games-grid,
.partners-grid,
.contact-content {
    animation: fadeIn 0.8s ease forwards;
}

/* 确保图片加载正确 */
img {
    max-width: 100%;
    height: auto;
}