/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #6c5ce7;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #5649c0;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #6c5ce7;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 页头样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 2rem;
    color: #6c5ce7;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #6c5ce7;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s 0.5s both;
}

.hero .btn {
    animation: fadeInUp 1s 1s both;
}

/* 游戏卡片样式 */
.featured-games {
    padding: 100px 0;
    background-color: #fff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px 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-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.game-info p {
    margin-bottom: 15px;
    color: #666;
}

/* 新闻区域样式 */
.news {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-date {
    color: #6c5ce7;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.news-card p {
    margin-bottom: 15px;
    color: #666;
}

.read-more {
    color: #6c5ce7;
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: #6c5ce7;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #6c5ce7;
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #6c5ce7;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #6c5ce7;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* 关于我们页面样式 */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
}

.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

.about-text h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #6c5ce7;
    bottom: -15px;
    left: 0;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.member-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.member-position {
    color: #6c5ce7;
    font-weight: bold;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    font-size: 0.9rem;
}

/* 游戏页面样式 */
.games-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/games-bg.jpg');
    background-size: cover;
    background-position: center;
}

.games-section {
    padding: 100px 0;
}

.game-showcase {
    margin-bottom: 100px;
}

.game-showcase:last-child {
    margin-bottom: 0;
}

.game-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.game-display-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-display-image img {
    width: 100%;
    display: block;
}

.game-display-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

.game-display-info h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #6c5ce7;
    bottom: -15px;
    left: 0;
}

.game-showcase:nth-child(even) .game-display {
    grid-template-columns: 1fr 1fr;
}

.game-showcase:nth-child(odd) .game-display {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.game-showcase:nth-child(odd) .game-display > * {
    direction: ltr;
}

.game-showcase:nth-child(odd) .game-display-info h2:after {
    left: 0;
}

.game-features {
    margin-top: 30px;
}

.game-features h3 {
    margin-bottom: 15px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.features-list li {
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6c5ce7;
    font-weight: bold;
}

.game-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* 联系页面样式 */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
}

.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #6c5ce7;
    bottom: -15px;
    left: 0;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details li i {
    margin-right: 15px;
    width: 20px;
    color: #6c5ce7;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式样式 */
@media (max-width: 992px) {
    .about-content,
    .game-display,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .game-showcase:nth-child(odd) .game-display {
        direction: ltr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .games-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
}