:root {
    /* 从游戏截图提取的主题色 */
    --color-primary: #FF3B30;    /* 番茄酱红色 */
    --color-secondary: #4A4A4A;  /* 深灰色 */
    --color-background: #FFFFFF; /* 白色背景 */
    --header-height: 80px;
}

/* 重置基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header样式 */
.header {
    background-color: var(--color-primary);
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-background);
    gap: 12px;
}

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

.header__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-background);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header__title {
        font-size: 1.2rem;
    }
    
    .header__logo-img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 60px;
    }
    
    .header__content {
        padding: 0 15px;
    }
}
/* 游戏区域样式 */
.game-section {
    margin-top: var(--header-height); /* 为固定定位的header留出空间 */
    padding: 20px;
    background-color: var(--color-secondary);
}

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

.game-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 保持16:9比例 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 增加高度以隐藏底部广告 */
    height: calc(100% + 40px); /* 40px是广告栏的大概高度，可以根据实际情况调整 */
    border: none;
    /* 使用clip-path裁剪掉底部 */
    clip-path: inset(0 0 40px 0); /* 裁剪掉底部40px */
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

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

.fullscreen-icon {
    fill: white;
}

/* 全屏模式样式 */
.game-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 0;
    z-index: 9999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-section {
        padding: 10px;
    }
    
    .game-wrapper {
        padding-top: 75%; /* 移动端使用4:3比例 */
    }
    
    .fullscreen-btn {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .game-section {
        margin-top: 60px; /* 对应移动端更小的header高度 */
        padding: 5px;
    }
    
    .fullscreen-btn {
        width: 32px;
        height: 32px;
        bottom: 10px;
        right: 10px;
    }
}
/* Hero部分样式 */
.hero {
    background-color: var(--color-secondary);
    padding: 60px 20px;
    color: var(--color-background);
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__content {
    padding-right: 20px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.9;
}

.hero__cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

.hero__image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        padding-right: 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }
}

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

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__cta {
        padding: 12px 30px;
    }
}

.features {
    padding: 80px 20px;
    background-color: var(--color-secondary);
    color: var(--color-background);
}

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

.features__main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-primary);
}

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

.feature-card {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.feature-card__image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card__image img {
    transform: scale(1.05);
}

.feature-card__content {
    flex: 0 0 60%;
    padding: 30px;
}

.feature-card__content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-card__content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-card__content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

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

    .feature-card__image {
        height: 200px;
    }
}

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

    .features__main-title {
        font-size: 2rem;
    }

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

    .feature-card__content h4 {
        font-size: 1.1rem;
    }
}
/* 共享样式 */
.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* About部分样式 */
.about {
    padding: 80px 20px;
    background-color: var(--color-secondary);
}

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

.about__content {
    color: #fff;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* How to Play部分样式 */
.how-to-play {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

/* Why Play部分样式 */
.why-play {
    padding: 80px 20px;
    background-color: var(--color-secondary);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .steps-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* FAQ部分样式 */
.faq {
    padding: 80px 20px;
    background-color: var(--color-secondary);
    color: #fff;
}

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

.faq__content {
    margin-top: 40px;
}

.faq__item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.faq__item h4 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq__answer {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.faq h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 59, 48, 0.3);
}

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

    .faq__item {
        padding: 20px;
    }

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

    .faq h3 {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }
}
/* 视频部分样式 */
.video-section {
    padding: 40px 20px;
    background-color: var(--color-secondary);
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr; /* 手机端改为单列 */
    }

    .video-section {
        padding: 20px 15px;
    }
}