.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.header__logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

.header__logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(
        to right,
        #ff0000,  /* Red */
        #ff7f00,  /* Orange */
        #ffff00,  /* Yellow */
        #00ff00,  /* Green */
        #00ffff,  /* Cyan */
        #8b00ff   /* Violet */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

/* 游戏区域样式 */
.game-section {
    padding-top: 80px; /* 为固定的header留出空间 */
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.game-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    aspect-ratio: 16 / 9;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* 控制按钮样式 */
.game-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 100;
}

.fullscreen-btn {
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fullscreen-icon {
    fill: white;
}

/* 全屏模式样式 */
.game-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    padding: 0;
    z-index: 9999;
    background-color: #000;
}

.game-container.fullscreen .game-iframe {
    border-radius: 0;
}

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

    .game-controls {
        top: 20px;
        right: 20px;
    }

    .fullscreen-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .game-container {
        aspect-ratio: 4 / 3; /* 移动端使用更适合的比例 */
    }
}

.hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e1f4ff 100%);
    overflow: hidden;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 1;
    padding-right: 20px;
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(
        to right,
        #ff0000,  /* Red */
        #ff7f00,  /* Orange */
        #ffff00,  /* Yellow */
        #00ff00,  /* Green */
        #00ffff,  /* Cyan */
        #8b00ff   /* Violet */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.hero__title-sub {
    display: block;
    font-size: 2rem;
    color: #666;
    font-weight: 600;
}

.hero__description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
}

.hero__button {
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero__button--primary {
    background: #ff7f00;
    color: white;
}

.hero__button--secondary {
    background: white;
    color: #ff7f00;
    border: 2px solid #ff7f00;
}

.hero__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

/* 响应式设计 */
@media (max-width: 968px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        padding-right: 0;
    }

    .hero__title-main {
        font-size: 2.8rem;
    }

    .hero__title-sub {
        font-size: 1.6rem;
    }

    .hero__description {
        margin: 0 auto 32px;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-container {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 40px;
    }

    .hero__title-main {
        font-size: 2.2rem;
    }

    .hero__title-sub {
        font-size: 1.4rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__button {
        width: 100%;
        text-align: center;
    }
}

.features {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

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

.features__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature-card {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card__image {
    flex: 1;
    min-width: 300px;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card__content {
    flex: 1;
    padding: 30px;
}

.feature-card__content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-card__content h4 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.feature-card__content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .feature-card {
        flex-direction: column;
    }

    .feature-card__image {
        min-width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 40px 16px;
    }

    .features__title {
        font-size: 2rem;
    }

    .feature-card__content {
        padding: 20px;
    }

    .feature-card__content h3 {
        font-size: 1.5rem;
    }
}

/* Common Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
}

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

.about__content {
    display: grid;
    gap: 2rem;
}

/* How to Play Section */
.how-to-play {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-to-play__steps {
    display: grid;
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Why Play Section */
.why-play {
    padding: 80px 20px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.why-play__reasons {
    display: grid;
    gap: 2rem;
}

.reason {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .about__content,
    .how-to-play__steps,
    .why-play__reasons {
        grid-template-columns: 1fr;
    }
}

.faq {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.faq__content {
    display: grid;
    gap: 2rem;
}

.faq__item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.faq__item h4 {
    color: #2d3436;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq__answer {
    color: #636e72;
    line-height: 1.6;
}

.faq__answer ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.faq__answer li {
    margin-bottom: 0.5rem;
}

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

    .faq__item {
        padding: 1.5rem;
    }

    .faq__item h4 {
        font-size: 1.1rem;
    }
}

/* 视频区域样式 */
.video-section {
    margin-top: 40px;
    padding: 0 20px;
}

.video-section__title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #333;
}

.video-section__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-section__item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-section__item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-section__container {
        grid-template-columns: 1fr; /* 手机端一列显示 */
    }

    .video-section {
        margin-top: 30px;
        padding: 0 16px;
    }

    .video-section__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}