* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 动画类 */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部渐变区域 */
.hero-section {
    background: linear-gradient(180deg, #2D3047 0%, #3D4158 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.header-top {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    padding: 0 20px;
    animation: slideInLeft 0.8s ease-out;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: fadeIn 0.8s ease-out, float 3s ease-in-out infinite 1s;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.game-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.main-heading {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.play-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both, float 3s ease-in-out infinite 2s;
}

.play-button:hover {
    transform: scale(1.05);
    animation: pulse 0.6s ease-in-out;
}

.play-badge {
    height: 60px;
    width: auto;
    display: block;
}

/* 游戏介绍区域 */
.intro-section {
    background: white;
    padding: 80px 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #2d3436;
    position: relative;
    padding-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2D3047, #1982C4);
    border-radius: 2px;
    transition: transform 0.8s ease-out 0.3s;
}

.section-title.animated::after {
    transform: translateX(-50%) scaleX(1);
}

.game-description {
    font-size: 18px;
    line-height: 1.8;
    color: #636e72;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.game-description.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 特色功能 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s ease;
}

.feature-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.feature-desc {
    font-size: 16px;
    color: #636e72;
    line-height: 1.6;
}

/* 游戏玩法说明 */
.how-to-play {
    background: #f8f9fa;
    padding: 80px 20px;
}

.play-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s ease;
}

.step.animated {
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2D3047, #1982C4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 15px rgba(45, 48, 71, 0.4);
}

.step h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.step p {
    font-size: 16px;
    color: #636e72;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #2D3047;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 14px;
    color: #b2bec3;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-heading {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .game-description {
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .play-steps {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .play-badge {
        height: 50px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

