:root {
    --header-bg-color: #1a0505; /* 深红色背景 */
    --header-text-color: #ffffff;
    --header-height: 80px;
    --header-border-color: #4a0f0f; /* 略微亮一点的红色边框 */
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--header-bg-color);
    height: var(--header-height);
    border-bottom: 1px solid var(--header-border-color);
    z-index: 1000;
}

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

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

.header__logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header__title {
    color: var(--header-text-color);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 添加悬停效果 */
.header__brand:hover .header__title {
    color: #ff4444; /* 鼠标悬停时文字变为亮红色 */
    transition: color 0.3s ease;
}

/* 响应���设计 */
@media (max-width: 768px) {
    .header__container {
        padding: 0 1rem;
    }

    .header__title {
        font-size: 1.2rem;
    }

    .header__logo {
        height: 40px;
    }
}

/* 确保header下方的内容不被遮挡 */
body {
    padding-top: var(--header-height);
}
/* Game Section Styles */
.game {
    width: 100%;
    background-color: var(--header-bg-color);
    padding: 2rem 0;
}

.game__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.game__wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.game__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game__fullscreen {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: 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 ease;
    z-index: 10;
}

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

.game__fullscreen-icon {
    fill: white;
    width: 24px;
    height: 24px;
}

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

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

    .game__container {
        padding: 0 0.5rem;
    }

    .game__wrapper {
        padding-top: 75%; /* 4:3 比例，让游戏界面更大 */
        border-radius: 0; /* 移除圆角，最大化空间利用 */
    }

    .videos__container {
        padding: 0 1rem;
    }

    .video__wrapper {
        padding-top: 56.25%;
    }

    .game__fullscreen {
        width: 36px;
        height: 36px;
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-width: 896px) {
    .game__wrapper {
        padding-top: 65%; /* 更适合横屏查看的比例 */
        max-width: 85%; /* 限制最大宽度 */
        margin: 0 auto; /* 居中显示 */
    }
}

.hero {
    background-color: var(--header-bg-color);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

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

.hero__content {
    color: #ffffff;
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
    max-width: 500px;
}

.hero__cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff4444, #ff0000);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(26, 5, 5, 0.7),
        rgba(26, 5, 5, 0.3)
    );
    border-radius: 12px;
}

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

    .hero__content {
        order: 1;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .hero__image {
        order: 2;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__container {
        padding: 0 1rem;
    }
}

.features {
    padding: 6rem 0;
    background-color: var(--header-bg-color);
    color: #ffffff;
}

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

.features__main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #ffffff, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-card__image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.feature-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.feature-card__content {
    padding: 2rem;
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ff4444;
}

.feature-card__subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1rem;
}

.feature-card__description {
    color: #ffffff;
    line-height: 1.6;
    font-size: 1rem;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }

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

    .feature-card__content {
        padding: 1.5rem;
    }
}

/* About Section Styles */
.about {
    background: linear-gradient(to bottom, var(--header-bg-color), #2a0505);
    padding: 6rem 0;
    color: #ffffff;
}

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

.about__title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* How To Play Section Styles */
.how-to-play {
    background-color: #1a0505;
    padding: 6rem 0;
    color: #ffffff;
}

.how-to-play__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.how-to-play__steps {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Why Play Section Styles */
.why-play {
    background: linear-gradient(to bottom, #2a0505, var(--header-bg-color));
    padding: 6rem 0;
    color: #ffffff;
}

.why-play__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .why-play__benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-play__benefits {
        grid-template-columns: 1fr;
    }
}

.faq {
    background-color: var(--header-bg-color);
    padding: 6rem 0;
    color: #ffffff;
}

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

.faq__title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq__category {
    font-size: 1.8rem;
    color: #ff4444;
    margin: 3rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

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

.faq__question {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.faq__answer p {
    margin-bottom: 1rem;
}

.faq__answer ul,
.faq__answer ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

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

    .faq__title {
        font-size: 2rem;
    }

    .faq__category {
        font-size: 1.5rem;
    }

    .faq__question {
        font-size: 1.2rem;
    }

    .faq__item {
        padding: 1.5rem;
    }
}

.videos {
    background-color: var(--header-bg-color);
    padding: 2rem 0 4rem;
}

.videos__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.videos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video__wrapper {
    position: relative;
    width: 100%;
    /* 16:9 宽高比 */
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

    .videos__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .videos__container {
        padding: 0 1rem;
    }

    .video__wrapper {
        border-radius: 8px;
    }
}