/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    color: #fff;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 100, 200, 0.4);
    backdrop-filter: blur(10px);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    flex: 1;
    min-width: 200px;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 15px rgba(0, 191, 255, 0.4);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background: #00bfff;
    transition: width 0.3s ease;
    width: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 2rem);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.btn-line {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 首页英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 40, 80, 0.7), rgba(0, 20, 40, 0.7)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=fantasy%20game%20world%20background%20with%20magic%20and%20adventure&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 100, 200, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0066aa 0%, #004488 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 100, 200, 0.5);
}

/* 部分标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #004488;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 100, 200, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0088cc 0%, #0066aa 100%);
}

/* 公司简介部分样式 */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
    color: #333;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%230088cc" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    max-width: 900px;
    text-align: center;
}

.about-tagline {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #004488;
    letter-spacing: 1px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.feature-item {
    flex: 1;
    min-width: 220px;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0088cc 0%, #004488 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.15);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #004488;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-item h3::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-item:nth-child(1) h3::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%230088cc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 2L2 7l10 5 10-5-10-5z"/%3E%3Cpath d="M2 17l10 5 10-5"/%3E%3Cpath d="M2 12l10 5 10-5"/%3E%3C/svg%3E');
}

.feature-item:nth-child(2) h3::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%230088cc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/%3E%3C/svg%3E');
}

.feature-item:nth-child(3) h3::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%230088cc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/%3E%3Ccircle cx="9" cy="7" r="4"/%3E%3Cpath d="M23 21v-2a4 4 0 0 0-3-3.87"/%3E%3Cpath d="M16 3.13a4 4 0 0 1 0 7.75"/%3E%3C/svg%3E');
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #777;
    margin: 0;
    transition: all 0.3s ease;
}

.feature-item:hover p {
    color: #555;
}

/* 游戏详情部分样式 */
.game {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    position: relative;
}

.game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%230088cc" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    z-index: 0;
}

.game .container {
    position: relative;
    z-index: 1;
}

.game-intro {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.game-icon {
    flex: 0 0 200px;
    margin-right: 2rem;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 100, 200, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.game-intro-text {
    flex: 1;
}

.game-intro-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #004488;
    text-shadow: 0 2px 10px rgba(0, 100, 200, 0.2);
    letter-spacing: 1px;
}

.game-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.game-intro-text p:last-child {
    margin-bottom: 0;
}

.game-info h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.game-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.game-info ul li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.game-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00bfff;
    font-weight: bold;
}

.game-screenshots {
    margin-top: 4rem;
}

.game-screenshots h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshots-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.screenshots-grid img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: #00bfff;
    cursor: pointer;
}

/* 联系我们部分样式 */
.contact {
    padding: 6rem 0;
    background: #fff;
}

.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    margin-right: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00bfff;
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bfff;
}

/* 页脚样式 */
.footer {
    padding: 3rem 0;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%230088cc" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
    letter-spacing: 1px;
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00bfff;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #00bfff;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 1rem;
}

.footer-copyright a {
    color: #00bfff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 隐私政策和服务条款样式 */
.privacy-policy,
.terms {
    padding: 6rem 0;
    background: #f8f9fa;
    color: #333;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.policy-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.policy-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #004488;
}

.policy-content h3:first-of-type {
    margin-top: 1.5rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-content li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .about-content,
    .game-content,
    .contact-content {
        flex-direction: column;
    }

    .about-text,
    .game-image {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .game-content {
        flex-direction: column-reverse;
    }

    .game-info {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin: 1.5rem 0;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .game-icon {
        flex: 0 0 150px;
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-info h3 {
        font-size: 1.5rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .nav-links li {
        margin-left: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
}