:root {
    --color-black: #1a0f2e;
    --color-dark-purple: #31165b;
    --color-white: #ffffff;
    --color-pink: #FF2D78;
    --color-pink-light: #ff4488;
    --gradient-primary: linear-gradient(135deg, #1a0f2e 0%, #31165b 100%);
    --gradient-accent: linear-gradient(45deg, #ff2d78, #ff2d78aa);
}

.header {
    background: var(--gradient-primary);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.header__logo-text {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 添加悬停效果 */
.header__logo-link:hover .header__logo-text {
    color: var(--color-pink);
    transition: color 0.3s ease;
}

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

    .header__logo-img {
        height: 30px;
    }

    .header__logo-text {
        font-size: 1.2rem;
    }
}

/* 游戏区域样式 */
.game-section {
    padding: 2rem;
    margin-top: 80px; /* 为fixed header留出空间 */
    background: var(--gradient-primary);
    color: var(--color-white);
}

.game-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.game-section__header h2 {
    background: linear-gradient(to right, #fff, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: bold;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* 保持16:9的宽高比 */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* 全屏按钮样式 */
.fullscreen-btn {
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 45, 120, 0.3);
}

.fullscreen-btn:hover {
    background: linear-gradient(45deg, var(--color-pink-light), var(--color-pink));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 45, 120, 0.4);
}

.fullscreen-icon {
    fill: white;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

/* 全屏模式样式 */
.game-section.fullscreen {
    background: var(--color-black);
}

.game-section.fullscreen .game-container {
    max-width: none;
    width: 100%;
    height: 100vh;
    aspect-ratio: auto;
}

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

    .game-section__header h2 {
        font-size: 1.5rem;
    }

    .game-container {
        aspect-ratio: 4 / 3; /* 移动端使用更方便的4:3比例 */
    }

    .fullscreen-btn {
        padding: 8px;
    }

    .fullscreen-icon {
        width: 20px;
        height: 20px;
    }
}

/* Hero section styles */
.hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, #1a0f2e 0%, #31165b 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem;
}

/* 半透明叠加层 */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path-to-your-hero-image.jpg') center/cover;
    opacity: 0.15;
}

/* 内容样式 */
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #ff2d78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero__cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #ff2d78, #ff2d78aa);
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 45, 120, 0.4);
}

/* 几何图形装饰 */
.hero__geometric-shapes .shape {
    position: absolute;
    opacity: 0.1;
}

.shape.circle {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 50%;
    top: 20%;
    left: 15%;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #fff;
    top: 40%;
    right: 15%;
}

.shape.square {
    width: 50px;
    height: 50px;
    border: 3px solid #fff;
    bottom: 20%;
    left: 25%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        min-height: 60vh;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero__cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .hero__geometric-shapes {
        display: none; /* 在移动端隐藏装饰元素 */
    }
}

/* Features Section Styles */
.features {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.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: 2rem;
}

.feature-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-pink);
}

.feature-card__content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .feature-card {
        flex-direction: column;
    }

    .feature-card__image {
        flex: 0 0 200px;
    }

    .feature-card__content {
        flex: 1;
    }
}

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

    .features__title {
        font-size: 2rem;
    }

    .feature-card__content {
        padding: 1.5rem;
    }

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

/* Common section styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

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

.about__features {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

.game-phases {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-phases h4 {
    color: var(--color-pink);
    margin-bottom: 1rem;
}

.game-phases ul {
    list-style: none;
    padding-left: 1.5rem;
}

.game-phases ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.game-phases ul li::before {
    content: "•";
    color: var(--color-pink);
    position: absolute;
    left: -1.5rem;
}

/* Why Play Section */
.why-play {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

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

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

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

.benefit-card h4 {
    color: var(--color-pink);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

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

    .about, .how-to-play, .why-play {
        padding: 2rem 1rem;
    }
}

/* FAQ Section Styles */
.faq {
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

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

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

.faq-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.faq-group h3 {
    color: var(--color-pink);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.faq-item ul li {
    position: relative;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.faq-item ul li::before {
    content: "•";
    color: var(--color-pink);
    position: absolute;
    left: -1.5rem;
}

/* Hover Effects */
.faq-group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq {
        padding: 2rem 1rem;
    }

    .faq-group {
        padding: 1.5rem;
    }

    .faq-item h4 {
        font-size: 1.1rem;
    }
}

/* Video Section Styles */
.video-section {
    padding: 2rem;
    background: var(--gradient-primary);
    color: var(--color-white);
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* 视频悬停效果 */
.video-wrapper:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

    .video-section {
        padding: 1.5rem;
    }

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

    .video-wrapper:last-child {
        margin-bottom: 0;
    }
}