/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
    display: flex;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 通用类 */
.section-title {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6c3afc, #3a8afc);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6c3afc, #3a8afc);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 58, 252, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 58, 252, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* 侧边导航栏 */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #1a1a2e;
    color: #fff;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.side-nav .logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav .logo h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #6c3afc, #3a8afc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.nav-links {
    margin-top: 30px;
    flex: 1;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 500;
    color: #aaa;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(108, 58, 252, 0.1);
    padding-left: 25px;
}

.nav-links a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.side-nav .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.side-nav .social-icons a:hover {
    background-color: #6c3afc;
    transform: translateY(-3px);
}

.side-nav .social-icons i {
    color: white;
    font-size: 1rem;
}

/* 移动导航按钮 */
.mobile-nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
    cursor: pointer;
}

.burger {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s ease;
}

.burger .line1 {
    top: 0;
}

.burger .line2 {
    top: 50%;
    transform: translateY(-50%);
}

.burger .line3 {
    bottom: 0;
}

.burger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .line2 {
    opacity: 0;
}

.burger.active .line3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 240px;
    width: calc(100% - 240px);
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    background: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    padding: 0 10%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.animated-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.animated-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #6c3afc, #3a8afc);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 游戏展示区 */
.games-section {
    padding: 100px 10%;
    background-color: white;
}

.games-carousel {
    margin-top: 50px;
}

.carousel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.game-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-card.featured {
    height: 100%;
}

.game-card.featured .game-img {
    height: 60%;
}

.game-img {
    height: 180px;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-img img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

.game-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* 关于我们 */
.about-section {
    padding: 100px 10%;
    background-color: #f8f9fa;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid #6c3afc;
    border-radius: 10px;
    z-index: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

/* 联系方式 */
.contact-section {
    padding: 100px 10%;
    background-color: white;
}

.contact-container {
    position: relative;
}

.contact-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.info-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background-color: #6c3afc;
    color: white;
    transform: translateY(-5px);
}

.info-card:hover i {
    color: white;
}

.info-card i {
    font-size: 2rem;
    color: #6c3afc;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    color: inherit;
    font-size: 0.9rem;
}

.info-card:first-child {
    grid-column: span 2;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-header h3 {
    font-size: 1.5rem;
    color: #333;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

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

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 50px 10% 20px;
}

.footer-content {
    text-align: center;
}

.footer-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6c3afc, #3a8afc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-info p {
    color: #aaa;
    margin-bottom: 30px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .carousel-container {
        grid-template-columns: 1fr;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: 1;
    }
    
    .about-content {
        order: 2;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        display: block;
    }
    
    .side-nav {
        transform: translateX(-100%);
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .game-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .info-card:first-child {
        grid-column: auto;
    }
    
    .animated-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 0 5%;
    }
    
    .games-section,
    .about-section,
    .contact-section {
        padding: 80px 5%;
    }
    
    .animated-title {
        font-size: 2.5rem;
    }
} 