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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo h2 {
    color: #6366f1;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-link:hover {
    color: #6366f1;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.3s ease;
    min-width: 120px;
}

.lang-button:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
}

.current-lang {
    font-weight: 500;
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown .lang-link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-dropdown .lang-link:hover {
    background: #f8fafc;
    color: #6366f1;
}

.lang-dropdown .lang-link.current {
    background: #6366f1;
    color: white;
}

.language-selector.open .lang-arrow {
    transform: rotate(180deg);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    align-items: center;
}

.hero-container {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-container p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* 游戏区域 - 第一屏 */
.game-section {
    min-height: 100vh;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.game-hero {
    text-align: center;
    color: white;
    max-width: 800px;
}

.game-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.game-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
}

.game-frame-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: white;
    width: 100%;
    max-width: 1000px;
}

.game-frame-container iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.game-buttons {
    padding: 25px;
    background: white;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.fullscreen-button,
.reload-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.fullscreen-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.fullscreen-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.reload-button {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.reload-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 特色功能 */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-container>p {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* 使用指南 */
.guide-section {
    padding: 80px 0;
    background: #f8fafc;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.guide-container>p {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-steps {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%236366f1" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    margin-bottom: 4rem;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.about-feature {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-feature .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-feature h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-feature p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.about-cta {
    margin-top: 3rem;
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.cta-content>* {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    color: white;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo h3 {
    color: #6366f1;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-logo p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.copyright p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .language-selector {
        position: relative;
    }

    .lang-button {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-width: 100px;
    }

    .lang-dropdown {
        min-width: 160px;
        right: 0;
    }

    .lang-dropdown .lang-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 100px 0 60px;
        margin-top: 70px;
    }

    .hero-container h1 {
        font-size: 2.5rem;
    }

    .hero-container p {
        font-size: 1.1rem;
    }

    .game-section {
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .game-hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .game-hero p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .game-frame-container {
        max-width: 95%;
    }

    .game-frame-container iframe {
        height: 500px;
    }

    .features-section,
    .guide-section,
    .about-section {
        padding: 60px 0;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-features {
        gap: 1rem;
    }

    .about-feature {
        padding: 1.2rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .features-container h2,
    .guide-container h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .guide-step {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .game-buttons {
        flex-direction: column;
        align-items: center;
    }

    .game-frame-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-container h1 {
        font-size: 2rem;
    }

    .hero-container p {
        font-size: 1rem;
    }

    .game-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .game-hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .game-frame-container {
        padding: 15px;
        max-width: 90%;
    }

    .game-frame-container iframe {
        height: 350px;
    }

    .game-buttons {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .fullscreen-button,
    .reload-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: auto;
    }

    .about-header h2 {
        font-size: 1.75rem;
    }

    .about-subtitle {
        font-size: 0.95rem;
    }

    .about-text {
        padding: 1.2rem;
    }

    .about-feature {
        padding: 1rem;
    }

    .about-feature .feature-icon {
        font-size: 1.5rem;
    }

    .cta-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }

    .cta-content h3 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .features-container h2,
    .guide-container h2 {
        font-size: 1.75rem;
    }

    .feature-card,
    .guide-step {
        padding: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.guide-step,
.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}