:root {
    /* 冰冷主题配色 */
    --ice-blue: #a8d8ff;
    --deep-ice: #2c5c8f;
    --frost-white: #f0f8ff;
    --glacier-blue: #64a5dd;
    --ice-shadow: rgba(44, 92, 143, 0.1);
}

.header {
    background: linear-gradient(to bottom, var(--frost-white), transparent);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo__image {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px var(--ice-shadow));
}

.logo__text {
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--deep-ice);
    text-transform: uppercase;
    letter-spacing: 2px;
    /* 冰冻文字效果 */
    text-shadow: 
        0 0 5px var(--ice-blue),
        0 0 10px var(--ice-blue),
        0 0 15px var(--glacier-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--deep-ice);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--ice-blue);
    color: var(--deep-ice);
    box-shadow: 0 0 10px var(--ice-shadow);
}

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}.game-section {
    /* 考虑到header是fixed定位，需要添加上边距 */
    margin-top: 80px;
    padding: 2rem;
    background: linear-gradient(180deg, 
        var(--frost-white) 0%,
        var(--ice-blue) 100%);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 8px 32px var(--ice-shadow),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
    /* 添加overflow隐藏 */
    overflow: hidden;
    position: relative; /* 添加相对定位 */
}

.game-container iframe {
    width: 100%;
    /* 调整高度比例以裁剪底部广告 */
    aspect-ratio: 16/8.5;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--ice-shadow);
    /* 使用margin-bottom负值来隐藏底部广告 */
    margin-bottom: -50px;
    /* 可选：使用scale略微放大以补偿裁剪 */
    transform: scale(1.02);
    transform-origin: top center;
}


@media (max-width: 768px) {
    .game-container {
        padding: 0;
        margin: 0;
        border-radius: 0;
        height: calc(100vh - 60px); /* 减去顶部导航的高度 */
        overflow: hidden;
        background: none;
        box-shadow: none;
        position: relative; /* 添加相对定位 */
    }

    .game-container iframe {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        margin: 0;
        transform: scale(1.1);
        transform-origin: center center; /* 修改变换原点到中心 */
        border-radius: 0;
        position: absolute;
        top: 50%; /* 居中定位 */
        left: 50%;
        transform: translate(-50%, -50%) scale(1.1); /* 组合变换 */
    }

    .game-section {
        padding: 0;
        margin-top: 60px;
        background: var(--frost-white); /* 添加背景色 */
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .game-container {
        height: calc(100vh - 60px);
    }
    
    .game-container iframe {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* 添加加载动画 */
.game-container.loading {
    position: relative;
}

.game-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid var(--ice-blue);
    border-top-color: var(--deep-ice);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, 
        var(--deep-ice) 0%,
        var(--glacier-blue) 100%);
    position: relative;
    overflow: hidden;
}

/* 添加冰晶背景效果 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-text {
    color: var(--frost-white);
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    /* 冰冻文字效果 */
    background: linear-gradient(to bottom, #ffffff, var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(168, 216, 255, 0.5);
}

.title-sub {
    display: block;
    font-size: 1.8rem;
    color: var(--ice-blue);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--frost-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--frost-white);
    color: var(--deep-ice);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button.secondary {
    background: transparent;
    color: var(--frost-white);
    border: 2px solid var(--frost-white);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* 漂浮动画 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* 冰晶粒子效果 */
.ice-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

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

    .hero-buttons {
        justify-content: center;
    }

    .title-line {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .title-line {
        font-size: 2.5rem;
    }
}
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--frost-white), var(--ice-blue));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-ice);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-row {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

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

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    font-size: 1.8rem;
    color: var(--deep-ice);
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-content h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--glacier-blue);
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--deep-ice);
}

.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--ice-shadow);
}

.feature-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* 冰晶装饰效果 */
.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .feature-content {
        padding: 1rem;
    }

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

/* 共享变量和基础样式 */
:root {
    --ice-blue: #a8d8ff;
    --deep-ice: #2c5c8f;
    --frost-white: #f0f8ff;
    --glacier-blue: #64a5dd;
    --ice-shadow: rgba(44, 92, 143, 0.1);
    --section-padding: 6rem 2rem;
}

/* What Is Section 样式 */
.what-is-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--frost-white) 0%, var(--ice-blue) 100%);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px var(--ice-shadow),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--deep-ice);
    margin-bottom: 1.5rem;
}

/* How to Play Section 样式 */
.how-to-play-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--frost-white) 0%, var(--ice-blue) 100%);
}

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

.step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px var(--ice-shadow);
}

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

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--deep-ice);
    color: var(--frost-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px var(--ice-shadow);
}

.step h3 {
    color: var(--deep-ice);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step p {
    color: var(--deep-ice);
    line-height: 1.6;
}

/* FAQ Section 样式 */
.faq-section {
    padding: var(--section-padding);
    background: linear-gradient(45deg, var(--frost-white) 0%, var(--ice-blue) 100%);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--ice-shadow);
    transition: transform 0.3s ease;
}

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

.faq-question {
    color: var(--deep-ice);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.faq-question::before {
    content: '❄';
    position: absolute;
    left: 0;
    color: var(--glacier-blue);
    font-size: 1.2rem;
}

.faq-answer {
    color: var(--deep-ice);
    line-height: 1.6;
    font-size: 1.1rem;
    padding-left: 2rem;
}

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

    .faq-question {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }

    .faq-answer {
        font-size: 1rem;
        padding-left: 1.5rem;
    }
}

/* 共享标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-ice);
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--glacier-blue);
}

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

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 1.5rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .description p {
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step, .faq-item, .content-wrapper {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 冰晶装饰效果 */
.section-title::before {
    content: '❄';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--glacier-blue);
    opacity: 0.5;
}



.game-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-icon {
    fill: var(--frost-white);
    transition: transform 0.3s ease;
}

/* 全屏状态样式 */
.game-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 1000;
}

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