:root {
    --primary-color: #2563eb;
    --text-color: #333;
    --bg-color: #fff;
    --secondary-bg: #f3f4f6;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --text-color: #e5e7eb;
    --bg-color: #1f2937;
    --secondary-bg: #111827;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: var(--secondary-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.light-icon,
.dark-icon {
    position: absolute;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .light-icon,
[data-theme="light"] .dark-icon {
    opacity: 0;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.game-modes {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.testimonials {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 300px;
    padding: 20px;
    margin: 10px;
    background: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.car-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.car-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s;
}

.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.placeholder-img {
    background: linear-gradient(45deg, var(--secondary-bg), var(--bg-color));
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    border-radius: 8px;
}

.gameplay-video {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9宽高比 */
}

.gameplay-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-box {
    background: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.badge {
    background: var(--secondary-bg);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 添加响应式图片处理 */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* 添加图片加载效果 */
.img-loading {
    opacity: 0;
    transition: opacity 0.3s;
}

.img-loaded {
    opacity: 1;
}

/* 导航菜单样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-color);
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding-top: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    h1 {
        font-size: 2rem;
        margin-top: 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    /* 调整主容器顶部边距，为固定导航栏留出空间 */
    .container {
        margin-top: 60px;
    }
}

.slider-progress {
    height: 4px;
    background: var(--secondary-bg);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.slider-progress::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* 添加页面滚动进度条样式 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1002;
}

/* 新增样式 */
.game-intro {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.5)
    );
    z-index: 2;
}

.intro-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-intro {
        min-height: 400px;
    }
    
    .intro-content h2 {
        font-size: 2rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
}

.download-cta {
    margin: 2rem 0;
}

.download-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.gameplay-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq-item {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

/* 页脚样式 */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--footer-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--footer-social);
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 8px;
}

.social-links a:hover {
    color: var(--footer-social-hover);
    transform: translateY(-2px);
}

.fa-discord:hover {
    color: #7289da;
}

.fa-youtube:hover {
    color: #ff0000;
}

.fa-facebook:hover {
    color: #1877f2;
}

.fa-twitter:hover {
    color: #1da1f2;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.legal-links a {
    color: var(--footer-legal);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--footer-legal-hover);
}

.copyright {
    font-size: 0.9rem;
    color: var(--footer-copyright);
}

.copyright p {
    margin: 0.5rem 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
} 