:root {
    --color-purple: #6B4B8A;
    --color-pink: #FF9EC7;
    --color-orange: #FFA07A;
    --color-white: #FFFFFF;
}

.header {
    background: linear-gradient(to right, var(--color-purple), var(--color-pink));
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header__content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo__image {
    height: 40px;
    width: auto;
}

.logo__text {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .logo__image {
        height: 32px;
    }
    
    .logo__text {
        font-size: 1.2rem;
    }
}

.game-section {
    padding-top: 80px; /* 为fixed header留出空间 */
    width: 100%;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    aspect-ratio: 16 / 9; /* 保持游戏画面比例 */
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-section {
        padding-top: 60px;
    }

    .game-container {
        padding: 10px;
        aspect-ratio: 9 / 16; /* 移动端竖屏比例 */
        height: calc(100vh - 60px); /* 减去header高度 */
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .game-container {
        aspect-ratio: 16 / 9;
        height: auto;
        max-height: calc(100vh - 60px);
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 2rem;
    background: linear-gradient(45deg, var(--color-purple), var(--color-pink));
    color: var(--color-white);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

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

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

.hero-image {
    flex: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.features-section {
    padding: 6rem 2rem;
    background-color: var(--color-white);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--color-purple);
}

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

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    padding: 2rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 500px;
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: translateY(-5px);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2rem;
    color: var(--color-purple);
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .feature-row {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
        padding: 1rem;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-image {
        max-width: 100%;
    }

    .feature-content {
        text-align: center;
    }

    .feature-content h3 {
        font-size: 1.75rem;
    }
}
/* How to Play Section */
.how-to-play-section {
    padding: 6rem 2rem;
    background-color: #f8f9fa;
}

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

.instruction-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instruction-step.reverse {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--color-purple);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.step-image {
    flex: 1;
}

.step-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.faq-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 1rem;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq-item {
        padding: 1.2rem 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.2rem;
    }

    .faq-item p {
        font-size: 1rem;
    }
}

/* Music Guide Section */
.music-guide-section {
    padding: 6rem 2rem;
    background-color: #f8f9fa;
}

.guide-container {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Community Section */
.community-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #8B5FBF 0%, #FF61D8 100%);
    color: white;
}

.community-container {
    max-width: 1000px;
    margin: 0 auto;
}

.inspiration-content,
.resource-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Shared Styles */
.music-guide-section h2,
.community-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.music-guide-section h3,
.community-section h3 {
    font-size: 2rem;
    margin: 2rem 0;
}

.music-guide-section h4,
.community-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-guide-section,
    .community-section {
        padding: 4rem 1rem;
    }

    .guide-content,
    .inspiration-content,
    .resource-content {
        padding: 1.5rem;
    }
}

.video-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

.video-wrapper {
    flex: 1;
    width: 100%;
    /* 移除了padding-bottom */
}

.video-wrapper iframe {
    width: 100%;
    height: 315px; /* 设置固定高度 */
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
    }

    .video-wrapper {
        margin-bottom: 2rem;
    }

    .video-wrapper iframe {
        height: 240px; /* 移动端稍微降低高度 */
    }
}