* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.register-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero区域 */
.hero {
    padding: 10rem 2rem 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

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

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

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

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

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

.btn-primary {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.game-preview {
    position: relative;
}

.game-screen {
    width: 400px;
    height: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 100%);
    position: relative;
}

.game-element {
    position: absolute;
    border-radius: 10px;
}

.element-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 30px;
    left: 30px;
    animation: float 3s ease-in-out infinite;
}

.element-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 150px;
    right: 50px;
    animation: float 3s ease-in-out infinite 0.5s;
}

.element-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    bottom: 40px;
    left: 150px;
    animation: float 3s ease-in-out infinite 1s;
}

.element-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    top: 80px;
    right: 100px;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 游戏特色 */
.features {
    padding: 5rem 2rem;
    background: white;
}

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

.feature-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

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

/* 学习路径 */
.learning {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.learning-path {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.path-step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    position: relative;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
}

.path-step.active {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
}

.path-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.step-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.path-step.active .step-badge {
    background: #4caf50;
    color: white;
}

.path-step:not(.active) .step-badge {
    background: #e0e0e0;
    color: #666;
}

.path-connector {
    width: 30px;
    height: 2px;
    background: #ddd;
    margin: 0 1rem;
}

/* 产品演示 */
.demo {
    padding: 5rem 2rem;
    background: white;
}

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

.video-wrapper {
    position: relative;
}

.video-player {
    width: 100%;
    height: 300px;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
    outline: none;
    object-fit: contain;
    display: block;
}

.video-player:focus {
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102,126,234,0.4);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-icon {
    color: #667eea;
    font-size: 1.5rem;
    margin-left: 5px;
}

.video-placeholder p {
    color: white;
    font-size: 1.1rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.demo-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: #f0f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.demo-info p {
    color: #666;
    font-size: 0.95rem;
}

/* 新闻动态 */
.news {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.news-image {
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    margin-bottom: 0.7rem;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

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

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

.footer-section .logo {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #666;
    font-size: 0.85rem;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 2rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .game-screen {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .learning-path {
        flex-direction: column;
    }
    
    .path-connector {
        width: 2px;
        height: 30px;
        margin: 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}