:root {
    --base-font-size: 16px;
    font-size: var(--base-font-size);
}

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600&family=Oppo+Sans:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oppo Sans', sans-serif;
}

/* ===== 导航栏样式 ===== */
.site-navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 120rem;
    width: 90%;
    height: 3.75rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 240ms ease, transform 240ms ease;
}

.site-navbar.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.625rem);
    pointer-events: none;
}

.site-navbar-inner {
    width: 100%;
    padding: 0.625rem 1.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 1.75rem;
    display: block;
}

.nav-links {
    margin-left: 9.375rem;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 5.625rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    opacity: 0.95;
}

.nav-links a:first-child {
    margin-left: 0;
}

/* ===== 语言切换器样式 ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 5rem;
    gap: 0;
    white-space: nowrap;
}

.lang-toggle .lang {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.25rem;
    padding: 0;
    margin: 0 0.44rem;
    line-height: 1;
}

.lang-toggle .lang.current,
.lang-toggle .lang.active {
    color: #FFF;
    font-weight: 600;
}

.lang-toggle .lang:not(.current) {
    color: rgba(255, 255, 255, 0.45);
}

.lang-toggle .lang-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin: 0;
}

/* 平板端导航栏样式 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    :root {
        --base-font-size: 14px;
    }

    .site-navbar {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        height: 3.75rem;
    }

    .site-navbar-inner {
        padding: 0 1rem;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-links a {
        margin-left: 1.5rem;
        font-size: 1rem;
    }

    .nav-logo {
        height: 1.5rem;
    }

    .lang-toggle .lang,
    .lang-toggle .lang.current {
        font-size: 1rem;
    }

}

/* 手机端导航栏样式 */
@media (max-width: 768px) {
    :root {
        --base-font-size: 12px;
    }

    .site-navbar {
        width: 100vw;
        min-width: 0;
        left: 0;
        transform: none;
        top: 0;
        border-radius: 0;
        height: 3.75rem;
        padding: 0;
    }

    .site-navbar-inner {
        padding: 0 8px;
    }

    .nav-logo {
        height: 2rem;
        display: block;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-links a,
    .lang-toggle {
        margin-left: 1.5rem;
        font-size: 1.5rem;
    }

    .lang-toggle .lang,
    .lang-toggle .lang.current {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --base-font-size: 12px;
    }

    .site-navbar {
        width: 100vw;
        min-width: 0;
        left: 0;
        transform: none;
        top: 0;
        border-radius: 0;
        height: 3.25rem;
        padding: 0;
    }

    .site-navbar-inner {
        padding: 0 8px;
    }

    .nav-logo {
        height: 1.5rem;
        display: block;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-links a,
    .lang-toggle {
        margin-left: 1.2rem;
        font-size: 1.2rem;
    }

    .lang-toggle .lang,
    .lang-toggle .lang.current {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    :root {
        --base-font-size: 10px;
    }

    .site-navbar {
        width: 100vw;
        min-width: 0;
        left: 0;
        transform: none;
        top: 0;
        border-radius: 0;
        height: 3rem;
        padding: 0;
    }

    .site-navbar-inner {
        padding: 0 8px;
    }

    .nav-logo {
        height: 1.3rem;
        display: block;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-links a,
    .lang-toggle {
        margin-left: 1.1rem;
        font-size: 1.1rem;
    }

    .lang-toggle .lang,
    .lang-toggle .lang.current {
        font-size: 1.1rem;
    }
}

/* ===== 视频区域样式 ===== */
.video-section {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

#custom_video_player {
    width: 100%;
    height: 100%;
    position: relative;
}

#videoElement {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 手机端视频区域样式 */
@media (max-width: 768px) {
    .video-section {
        width: 100vw;
        aspect-ratio: 16/9;
        min-height: unset;
    }

    #custom_video_player {
        width: 100%;
        height: 100%;
    }

    #videoElement {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }
}

/* ===== 游戏视频模块统一样式 ===== */
.gamevideo1,
.gamevideo2,
.gamevideo3,
.gamevideo4,
.gamevideo5,
.gamevideo6 {
    width: 100%;
    min-height: 1124px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 0;
    background: #fff;
}

.gamevideo1-container,
.gamevideo2-container,
.gamevideo3-container,
.gamevideo4-container,
.gamevideo5-container,
.gamevideo6-container {
    width: 100%;
    max-width: 120rem;
    padding: 0 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.mode-video {
    width: 100%;
    max-width: 84.875rem;
    height: auto;
    display: block;
    border-radius: 1.25rem;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.12);
}

.gamevideo1-content,
.gamevideo2-content,
.gamevideo3-content,
.gamevideo4-content,
.gamevideo5-content,
.gamevideo6-content {
    width: 100%;
    max-width: 84.875rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.video-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 4rem;
    color: rgba(0, 0, 0, 1);
    flex: 1 1 50%;
    text-align: left;
}

.video-description {
    font-family: 'Oppo Sans', sans-serif;
    font-weight: 400;
    font-size: 2.25rem;
    color: rgba(0, 0, 0, 0.6);
    flex: 1 1 50%;
    line-height: 1.4;
    text-align: left;
}

/* 1440px以下游戏视频样式 */
@media screen and (max-width: 1440px) {
    .video-title {
        font-size: 3.5rem;
    }

    .video-description {
        font-size: 2rem;
    }
}

/* 1024px以下游戏视频样式 */
@media screen and (max-width: 1024px) {

    .gamevideo1-content,
    .gamevideo2-content,
    .gamevideo3-content,
    .gamevideo4-content,
    .gamevideo5-content,
    .gamevideo6-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-title,
    .video-description {
        flex: 1 1 100%;
    }
}

/* 768px以下游戏视频样式 */
@media screen and (max-width: 768px) {

    .gamevideo1,
    .gamevideo2,
    .gamevideo3,
    .gamevideo4,
    .gamevideo5,
    .gamevideo6 {
        min-height: unset;
        padding: 24px 0 32px 0;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .gamevideo1-container,
    .gamevideo2-container,
    .gamevideo3-container,
    .gamevideo4-container,
    .gamevideo5-container,
    .gamevideo6-container {
        width: 100vw;
        max-width: 100vw;
        padding: 0 8px;
        gap: 16px;
    }

    .mode-video {
        width: calc(100% - 40px);
        max-width: 100vw;
        height: auto;
        border-radius: 10px;
        box-shadow: none;
    }

    .gamevideo1-content,
    .gamevideo2-content,
    .gamevideo3-content,
    .gamevideo4-content,
    .gamevideo5-content,
    .gamevideo6-content {
        width: calc(100% - 40px);
        flex-direction: column;
        gap: 8px;
        padding: 0 8px;
    }

    .video-title {
        font-size: 20px;
        text-align: left;
        margin-bottom: 4px;
    }

    .video-description {
        font-size: 14px;
        text-align: left;
        line-height: 1.4;
    }
}

/* 480px以下游戏视频样式 */
@media screen and (max-width: 480px) {
    .video-title {
        font-size: 1.5rem;
    }

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

/* ===== 返回顶部按钮样式 ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 50px;
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top img {
    width: 24px;
    height: 24px;
}

/* 手机端返回顶部按钮样式 */
@media (max-width: 768px) {
    .back-to-top {
        right: 12px;
        bottom: 32px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .back-to-top img {
        width: 18px;
        height: 18px;
    }
}

/* ===== 视频弹窗样式 ===== */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.video-modal {
    width: 90vw;
    max-width: 1600px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.video-modal video {
    width: 100%;
    height: auto;
    display: block;
}

.video-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}