/* 重置和基础样式 */
* {
    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;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4F46E5;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-menu a:hover {
    color: #4F46E5;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-download {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-download i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #FCD34D;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.btn-primary {
    background: #FCD34D;
    color: #333;
}

.btn-primary:hover {
    background: #F59E0B;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

.btn-download-hero {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-download-hero:hover::before {
    left: 100%;
}

.btn-download-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

.btn-download-hero i {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.game-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.game-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 特色功能 */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

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

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* 下载APP区域 */
.download-app {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.download-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.app-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.app-feature i {
    font-size: 1.2rem;
    color: #FCD34D;
}

.download-options {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.download-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    text-decoration: none;
}

.download-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.download-option i {
    font-size: 2rem;
}

.download-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-platform {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.extract-code {
    background: rgba(245, 205, 73, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #FCD34D;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 150px;
    text-align: center;
}

.extract-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #FCD34D;
    font-weight: 500;
}

.extract-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.code-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FCD34D;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(245, 205, 73, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 205, 73, 0.3);
    animation: codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
    0% {
        box-shadow: 0 0 5px rgba(245, 205, 73, 0.3);
        border-color: rgba(245, 205, 73, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(245, 205, 73, 0.6);
        border-color: rgba(245, 205, 73, 0.6);
    }
}

.copy-btn {
    background: #FCD34D;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background: #F59E0B;
    transform: scale(1.1);
}

.copy-btn i {
    font-size: 0.9rem;
}

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-screen {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 游戏课程 */
.games {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-cover {
    position: relative;
    overflow: hidden;
}

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

.game-item:hover .game-cover img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-item:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: #FCD34D;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #F59E0B;
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.game-info p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.game-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 统计数据 */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FCD34D;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.7;
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-feature i {
    color: #10B981;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #4F46E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    color: #1f2937;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4F46E5;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #FCD34D;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FCD34D;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #4F46E5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .game-preview {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .app-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .download-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .extract-code {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .phone-mockup {
        order: -1;
    }
    
    .phone-screen {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-download-hero {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .download-text h2 {
        font-size: 2rem;
    }
    
    .app-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-options {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .download-option {
        min-width: auto;
        justify-content: center;
        width: 100%;
        max-width: 250px;
    }
    
    .extract-code {
        width: 100%;
        max-width: 250px;
    }
    
    .code-text {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
    
    .phone-screen {
        width: 200px;
        height: 400px;
    }
}

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

.feature-card,
.game-item,
.about-text,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

.top-extract-code {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 205, 73, 0.15);
    color: #F59E0B;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    padding: 0.25rem 0.7rem;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(245, 205, 73, 0.08);
    letter-spacing: 1px;
    animation: codeGlow 2s ease-in-out infinite alternate;
}

.top-extract-code i {
    margin-right: 0.3em;
    color: #FCD34D;
}

.top-code-text {
    color: #FCD34D;
    font-size: 1.1em;
    font-weight: 900;
    margin-left: 0.2em;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(245, 205, 73, 0.2);
}

.download-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.download-modal.show {
    display: flex;
}
.download-modal-mask {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.download-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(76, 81, 255, 0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 320px;
    max-width: 90vw;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.download-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.download-modal-title i {
    color: #4F46E5;
}
.download-modal-desc {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.download-modal-code-area {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 2px 8px rgba(245, 205, 73, 0.08);
}
.download-modal-label {
    color: #F59E0B;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.2em;
}
.download-modal-code {
    color: #FCD34D;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: rgba(245, 205, 73, 0.13);
    padding: 0.3rem 0.9rem;
    border-radius: 6px;
    border: 1.5px solid #FCD34D;
    box-shadow: 0 0 12px rgba(245, 205, 73, 0.13);
    animation: codeGlow 2s ease-in-out infinite alternate;
}
.download-modal-copy {
    background: #FCD34D;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-modal-copy:hover {
    background: #F59E0B;
    color: #fff;
    transform: scale(1.1);
}
.download-modal-btn {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #10B981 0%, #4F46E5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(76, 81, 255, 0.13);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: background 0.2s, transform 0.2s;
}
.download-modal-btn:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    transform: translateY(-2px) scale(1.04);
}
.download-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 3;
}
.download-modal-close:hover {
    color: #4F46E5;
    transform: scale(1.2);
}
@media (max-width: 480px) {
    .download-modal-content {
        width: 95vw;
        min-width: 0;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .download-modal-code-area {
        flex-direction: column;
        gap: 0.3rem;
    }
    .download-modal-btn {
        width: 100%;
        justify-content: center;
    }
} 