:root {
    --color-primary: #1B2838; /* 深蓝色背景 */
    --color-secondary: #ffffff; /* 白色文字 */
    --color-accent: #8B5CF6; /* 紫色按钮 */
    --color-accent-hover: #7C3AED; /* 按钮悬停色 */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 1rem 2rem;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.nav__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav__logo-text {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav__cta {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav__cta:hover {
    background-color: var(--color-accent-hover);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav__link:hover {
    opacity: 0.8;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav__logo-container {
        gap: 0.5rem;
    }

    .nav__logo-img {
        width: 32px;
        height: 32px;
    }

    .nav__logo-text {
        font-size: 1.25rem;
    }

    .nav__links {
        gap: 1rem;
    }

    .nav__link {
        font-size: 0.875rem;
    }

    .nav__cta {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 360px) {
    .nav__logo-text {
        font-size: 1rem;
    }

    .nav__links {
        gap: 0.75rem;
    }

    .nav__link,
    .nav__cta {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

.hero {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1920px;
    margin: 0 auto;
}

.hero__ad {
    width: 160px;
    height: 600px;
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: none; /* 默认隐藏 */
}

.hero__ad--left {
    left: 0;
}

.hero__ad--right {
    right: 0;
}

.hero__content {
    max-width: 1200px;
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero__image-container {
    margin: 2rem auto;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.hero__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.hero__cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 响应式设计 */
@media (min-width: 1540px) {
    /* 在大屏幕上显示广告 */
    .hero__ad {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
        flex-direction: column;
    }

    /* 在移动端将广告移到内容下方 */
    .hero__ad {
        display: block;
        width: 100%;
        height: auto;
        position: static;
        margin: 1rem 0;
    }

    /* 调整移动端广告容器 */
    .hero__ad--left, 
    .hero__ad--right {
        max-height: 280px;
        overflow: hidden;
    }
}

.videos {
    background-color: var(--color-primary);
    padding: 2rem;
}

.videos__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.videos__wrapper {
    flex: 1;
    position: relative;
    padding-top: 28.125%; /* 16:9宽高比的一半，因为有两个视频 */
    max-width: 560px;
}

.videos__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

    .videos__wrapper {
        padding-top: 56.25%; /* 16:9宽高比 */
    }
}

.features {
    padding: 6rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

/* 文字在右边的布局 */
.feature--text-right {
    flex-direction: row !important; /* 图片在左，文字在右 */
}

.feature--text-left {
    flex-direction: row !important; /* 文字在左，图片在右 */
}

.feature__content {
    flex: 1;
}

.feature__content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature__content p {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

.feature__image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature__image img {
    width: 100%;
    height: auto;
    display: block;
}

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

    .feature {
        flex-direction: column !important; /* 覆盖之前的方向设置 */
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature__content {
        text-align: center;
    }

    .feature__content h3 {
        font-size: 1.5rem;
    }
}

.about,
.how-to-play,
.why-play {
    padding: 6rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.about__content,
.how-to-play__steps,
.why-play__content {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid,
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item,
.reason-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.step {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

h3 {
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about,
    .how-to-play,
    .why-play {
        padding: 4rem 1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 1rem;
    }
}

.faq {
    padding: 6rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

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

.faq__category {
    margin-bottom: 4rem;
}

.faq__category h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

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

.faq__item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.faq__item p {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

    .faq__category h3 {
        font-size: 1.5rem;
    }

    .faq__item {
        padding: 1.5rem;
    }

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

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

/* 添加以下 CSS 样式 */
.floating-banner {
    position: fixed;
    top: 80px; /* header 高度 + 一些间距 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.floating-banner:hover {
    transform: translateX(-50%) translateY(-2px);
}

.floating-banner__link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    gap: 12px;
}

.floating-banner__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.floating-banner__text {
    flex: 1;
    font-size: 16px;
}

.floating-banner__arrow {
    font-size: 24px;
    opacity: 0.5;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .floating-banner {
        top: 70px;
        width: 95%;
    }

    .floating-banner__link {
        padding: 8px 16px;
    }

    .floating-banner__icon {
        width: 24px;
        height: 24px;
    }

    .floating-banner__text {
        font-size: 14px;
    }
}

/* 在现有的 nav 相关样式后添加 */

/* 语言切换下拉菜单样式优化 */
.nav__dropdown {
    position: relative;
    display: inline-block;
}

.nav__dropdown-content {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    background: var(--color-primary);
    min-width: 160px;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden; /* 替代 display: none */
    transform: translateY(-10px);
    transition: all 0.3s ease;
    /* 创建一个隐形的连接区域 */
    padding-top: 15px;
    margin-top: -10px;
}

/* 当鼠标悬停在下拉菜单容器上时显示内容 */
.nav__dropdown:hover .nav__dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-content a {
    color: var(--color-secondary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

/* 添加语言图标的样式 */
.nav__dropdown-content a::before {
    content: attr(data-lang);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav__dropdown-content {
        position: fixed;
        top: 60px; /* header 高度 */
        right: 1rem;
        width: 200px;
    }
    
    .nav__dropdown-content a {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* 添加横幅广告容器样式 */
.hero__banner-ad {
    width: 468px;
    height: 60px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* 移动端响应式处理 */
@media (max-width: 768px) {
    .hero__banner-ad {
        width: 100%;
        max-width: 468px;
        height: auto;
        min-height: 60px;
    }
}
