:root {
    --primary-pink: #F5A9B8;  /* 图片中的主要粉色 */
    --background-cream: #FFF5E6;  /* 米色背景 */
    --text-color: #4A4A4A;
}

.header {
    background-color: var(--background-cream);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

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

.header__logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-pink);
}

.header__cta-button {
    background-color: var(--primary-pink);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 169, 184, 0.3);
}

.header__nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.header__nav-link:hover {
    color: #e77c8f;  /* 稍深的粉色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
    }
    
    .header__logo-text {
        font-size: 1.2rem;
    }
    
    .header__cta-button {
        padding: 0.5rem 1rem;
    }

    .header__nav-links {
        gap: 1rem;
    }
}
/* 首页 Hero 样式 */
.hero {
    background-color: var(--background-cream);
    padding: 2rem;
}

.hero__content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 左侧游戏区域 */
.hero__game-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero__title {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    text-align: center;
}

.hero__game-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.1);
}

.hero__game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 右侧游戏导航区域 */
.hero__nav-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.hero__game-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.hero__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(245, 169, 184, 0.2);
}

.hero__game-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.hero__game-card-title {
    display: block;
    padding: 0.8rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
}

/* 底部游戏导航区域 */
.hero__bottom-nav {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.1);
}

.hero__bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.hero__bottom-game-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.hero__bottom-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(245, 169, 184, 0.2);
}

.hero__bottom-game-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.hero__bottom-game-title {
    display: block;
    padding: 0.8rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero__layout {
        grid-template-columns: 1fr;
    }

    .hero__game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero__bottom-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .hero__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__bottom-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__game-container {
        padding-bottom: 150%; /* 在移动端将高度增加为原来的两倍 */
    }
}

@media (max-width: 480px) {
    .hero__game-grid {
        grid-template-columns: 1fr;
    }

    .hero__bottom-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* 视频区域样式 */
.trailer {
    padding: 4rem 2rem;
    background-color: white;
}

.trailer__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 3rem;
}

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

.trailer__video {
    width: 100%;
}

/* 视频容器样式 - 保持16:9比例 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

    .trailer__grid {
        grid-template-columns: 1fr; /* 手机端单列显示 */
        gap: 1.5rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .trailer__grid {
        max-width: 90%;
        gap: 1.5rem;
    }
}

.features {
    padding: 4rem 2rem;
    background-color: var(--background-cream);
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 3rem;
}

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

.feature-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.1);
}

.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-card__image {
    flex: 0 0 40%;
}

.feature-card__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.feature-card__content {
    flex: 1;
}

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

.feature-card__content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.features__description {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem;
}

.features__description h3 {
    color: var(--primary-pink);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-card,
    .feature-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .feature-card__image {
        flex: 0 0 100%;
    }

    .features__title {
        font-size: 2rem;
    }

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

.about {
    padding: 4rem 2rem;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.about__title {
    text-align: center;
    color: var(--primary-pink);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about__section {
    margin-bottom: 4rem;
}

.about__section h2 {
    color: var(--primary-pink);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about__section h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.about__section h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.about__section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about__section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about__section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq__item {
    margin-bottom: 2rem;
}

.faq__item h4 {
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

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

    .about__title {
        font-size: 2rem;
    }

    .about__section h2 {
        font-size: 1.75rem;
    }

    .about__section h3 {
        font-size: 1.3rem;
    }

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

.floating-banner {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.floating-banner__link {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: 100px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-banner__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

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

.floating-banner__arrow {
    font-size: 24px;
    margin-left: 10px;
    color: #666;
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    margin-right: 1rem;
}

.language-switcher__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--primary-pink);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    color: var(--primary-pink);
    font-weight: 500;
}

.arrow-down {
    font-size: 0.8rem;
}

.language-switcher__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 120px;
    display: none;
    z-index: 100;
}

.language-switcher:hover .language-switcher__dropdown {
    display: block;
}

.language-option {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: var(--background-cream);
    color: var(--primary-pink);
}

.language-option.active {
    color: var(--primary-pink);
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .language-switcher__btn {
        padding: 0.4rem 0.8rem;
    }
}

