/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 隐藏滚动条但保持滚动功能 */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html,
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    scroll-snap-type: y mandatory;
}

/* 顶部导航 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.nav-container {
    width: 100%;
    padding: 4.17vw 2.08vw 2.08vw 2.08vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo居中 */
.nav-logo {
    position: absolute;
    left: 50%;
    top: 2.08vw;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    height: 4.58vw;
    width: auto;
    max-height: 4.58vw;
    object-fit: contain;
}

.logo-icon-cn {
    /* logo-cn.svg viewBox is 186x84, aspect ratio ~2.214 */
    /* If height is 4.58vw, width should be ~10.14vw */
    max-width: 10.14vw;
}

.logo-icon-en {
    /* logo-en.svg viewBox is 1012x89, aspect ratio ~11.37 */
    /* If height is 4.58vw, width should be ~52.07vw */
    /* 保持原始宽高比，不限制宽度 */
    max-width: 20vw;
}

/* 导航链接在左边 */
.nav-links {
    display: flex;
    gap: 2vw;
    position: absolute;
    left: 4.17vw;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1.04vw;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.64);
}

.nav-link.active {
    color: #ffffff;
    text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.64);
}

/* 社区下拉框容器 */
.community-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* 社区链接 */
.community-link {
    cursor: pointer;
}

/* 社区下拉菜单 */
.community-menu {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    background: transparent;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: visible;
}

/* 社区下拉菜单 - 背景图案 */
.community-menu::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(270deg);
    width: 205px;
    height: 141px;
    background-image: url('../assets/images/socialmedia-bg.png');
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Hover时显示下拉菜单 */
.community-dropdown:hover .community-menu {
    opacity: 1;
    visibility: visible;
}

.community-dropdown:hover .community-link {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.64);
}

/* 社区菜单项 */
.community-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    font-size: 1.04vw;
    color: rgba(255, 255, 255, 0.64);
    text-decoration: none;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    transition: color 0.3s ease;
    z-index: 1;
}

.community-menu-item:hover {
    color: rgba(255, 255, 255, 1);
}

/* Section容器 */
.sections-container {
    width: 100%;
}

/* 单个Section样式 */
.page-section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* 为每个section添加不同的背景色,便于区分 */
#main {
    position: relative;
    overflow: hidden;
}

/* 首页视频背景 */
.main-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 首页底部遮罩 */
.main-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ========== 新闻页面 ========== */
#news {
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* 新闻背景 */
.news-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/news-bg.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(16.95px);
    z-index: 0;
}

/* 左侧导航栏 */
.news-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 448px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
    padding: 240px 0 64px 48px;
    z-index: 10;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 400px;
}

/* 新闻列表项样式 */
.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 80px;
    padding-left: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 新闻列表项 - 选中状态 */
.news-list-item.selected {
    min-height: 80px;
}

/* 新闻列表项 - 未选中状态 */
.news-list-item:not(.selected) {
    min-height: 64px;
    align-items: center;
}

/* 新闻图标 */
.news-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.news-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* 选中状态 - 完全不透明 */
.news-list-item.selected .news-item-icon img {
    opacity: 1;
}

/* 未选中状态 - 默认使用空状态的40%不透明度 */
.news-list-item:not(.selected) .news-item-icon img {
    opacity: 0.4;
}

/* 未选中状态 hover - 变为80%不透明度 */
.news-list-item:not(.selected):hover .news-item-icon img {
    opacity: 0.8;
}

/* 未选中状态 icon 不需要 margin-top */
.news-list-item:not(.selected) .news-item-icon {
    margin-top: 0;
}

/* 新闻文本信息 */
.news-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    color: white;
}

.news-item-time {
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
}

.news-item-title {
    font-size: 20px;
    line-height: 1.5;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    overflow: hidden;
    word-break: break-word;
    max-width: 200px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 选中状态显示时间和标题 */
.news-list-item.selected .news-item-text {
    display: flex;
}

.news-list-item.selected .news-item-time {
    display: block;
}

.news-list-item.selected .news-item-title {
    font-size: 20px;
}

/* 未选中状态 - 默认隐藏文本 */
.news-list-item:not(.selected) .news-item-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
}

.news-list-item:not(.selected) .news-item-time {
    display: none;
}

.news-list-item:not(.selected) .news-item-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* 未选中状态 hover - 文本从左滑出 */
.news-list-item:not(.selected):hover .news-item-text {
    max-width: 300px;
    opacity: 1;
}

/* 中间新闻预览区域 */
.news-preview {
    position: absolute;
    left: calc(50% + min(32px, 15vw));
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1080.889px, calc(100vw - min(448px, 30vw) - 100px));
    max-width: calc(100vw - min(448px, 30vw) - 100px);
    aspect-ratio: 16 / 9;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-preview:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.news-preview-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 新闻预览图片 */
.news-preview-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-image-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    border-radius: 8px;
}

/* 新闻预览文本 */
.news-preview-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 64px;
    overflow: hidden;
    box-sizing: border-box;
}

.news-preview-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1117.189px;
    height: 157px;
    background-image: url('../assets/images/news-preview-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}

.news-preview-title {
    position: relative;
    z-index: 1;
    font-size: 26px;
    color: white;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.news-preview-description {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 新闻弹框 ========== */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
}

.news-modal.show {
    display: block;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16.95px);
}

.news-modal-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1400px, 90vw);
    height: min(900px, 90vh);
    max-width: 90vw;
    max-height: 90vh;
    background-image: url('../assets/images/popwin.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2% 8% 2% 10%;
}

.news-modal-close {
    position: absolute;
    top: 5%;
    right: 3%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 0.6;
}

.news-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.news-modal-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========== 新闻弹框专用样式 ========== */
#newsModal .news-modal-header {
    padding-top: 60px;
    padding-bottom: 0;
    text-align: center;
    flex-shrink: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#newsModal .news-modal-title {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 500;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

#newsModal .news-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 隐藏新闻弹框的默认滚动条 */
#newsModal .news-modal-body::-webkit-scrollbar {
    display: none;
}

#newsModal .news-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========== 隐私政策弹框专用样式 ========== */
#privacyModal .news-modal-header {
    padding-top: 60px;
    padding-bottom: 0;
    text-align: center;
    flex-shrink: 0;
    border-bottom: none;
    margin-bottom: 40px;
}

#privacyModal .news-modal-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

#privacyModal .news-modal-body {
    flex: 1;
    padding: 0;
    gap: 0;
    overflow-y: hidden;
}

/* 隐藏隐私政策弹框的默认滚动条 */
#privacyModal .news-modal-body::-webkit-scrollbar {
    display: none;
}

#privacyModal .news-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 自定义滚动条容器 */
.news-modal-scrollbar {
    position: absolute;
    right: 3%;
    width: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10002;
}

.news-modal-scrollbar.show {
    opacity: 1;
}

/* 滚动条滑块 */
.news-modal-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.news-modal-scrollbar:hover .news-modal-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.6);
}

.news-modal-subtitle-wrapper {
    text-align: center;
}

.news-modal-subtitle {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.64);
    margin: 0;
}

.news-modal-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-modal-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border: none;
}

.news-modal-text {
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.64);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.news-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* 自定义新闻弹框内iframe的滚动条样式 */
.news-modal-iframe::-webkit-scrollbar {
    width: 8px;
}

.news-modal-iframe::-webkit-scrollbar-track {
    background: transparent;
}

.news-modal-iframe::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.news-modal-iframe::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========== 游戏介绍页面 ========== */
#intro {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* 游戏介绍背景视频 */
.intro-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #000;
    transition: opacity 0.5s ease-in-out;
}

.intro-bg-video-1 {
    z-index: 1;
}

.intro-bg-video-2 {
    z-index: 2;
}

/* 顶部遮罩 */
.intro-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 左侧遮罩 */
.intro-left-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 849px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0));
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    display: none;
    transition: opacity 0.4s ease-in-out;
}

/* 右侧遮罩 */
.intro-right-mask {
    position: absolute;
    right: 0;
    top: 0;
    width: 849px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0));
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    display: none;
    transition: opacity 0.4s ease-in-out;
}

/* 左侧导航栏（只显示图标） */
.intro-sidebar {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.intro-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 游戏介绍列表项样式 */
.intro-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 选中状态 */
.intro-list-item.selected {
    height: 64px;
}

/* 未选中状态 */
.intro-list-item:not(.selected) {
    height: 48px;
}

/* 图标 */
.intro-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* 选中状态 - 100%不透明度 */
.intro-list-item.selected .intro-item-icon img {
    opacity: 1;
}

/* 未选中状态 - 默认40%不透明度 */
.intro-list-item:not(.selected) .intro-item-icon img {
    opacity: 0.4;
}

/* 未选中状态的hover效果 - 80%不透明度 */
.intro-list-item:not(.selected):hover .intro-item-icon img {
    opacity: 0.8;
}

/* 游戏介绍内容区域 - 默认左侧布局 */
.intro-content {
    position: absolute;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 40px 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* 左侧布局 */
.intro-content.left {
    left: 160px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row;
}

/* 右侧布局 */
.intro-content.right {
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

/* 小人图标 */
.intro-icon {
    width: 45px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 使用mix-blend-mode去除黑色背景，保留白色前景 */
    mix-blend-mode: screen;
    /* 增加滤镜提高对比度，使白色更明显 */
    filter: brightness(1.2) contrast(1.3);
}

/* 文本组 */
.intro-text-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 70vw;
}

/* 左侧布局的文本左对齐 */
.intro-content.left .intro-text-group {
    align-items: flex-start;
    text-align: left;
}

/* 右侧布局的文本右对齐 */
.intro-content.right .intro-text-group {
    align-items: flex-end;
    text-align: right;
}

/* 标题 */
.intro-title {
    font-size: 96px;
    color: white;
    text-shadow: 0px 6.824px 40.947px rgba(120, 136, 135, 0.4);
    line-height: 1.2;
    margin: 0;
    white-space: pre;
    overflow: visible;
    width: max-content;
    max-width: 100%;
    text-transform: uppercase;
}

/* 描述 */
.intro-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.48);
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    line-height: 1.5;
    white-space: pre;
    overflow: visible;
    width: max-content;
    max-width: 100%;
}

/* ========== 媒体下载页面 ========== */
#media {
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* 媒体背景 */
.media-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 0;
}

.media-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/media-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 顶部模糊遮罩 */
.media-top-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 2;
    pointer-events: none;
}

/* 左侧导航栏 */
.media-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: min(448px, 30vw);
    min-width: 300px;
    height: 100%;
    padding: 400px 0 64px 48px;
    z-index: 10;
}

.media-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 400px;
}

/* 媒体列表项样式 */
.media-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* 选中状态 */
.media-list-item.selected {
    height: 80px;
}

/* 未选中状态 */
.media-list-item:not(.selected) {
    height: 64px;
}

/* 媒体图标 */
.media-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* 选中状态 - 100%不透明度 */
.media-list-item.selected .media-item-icon img {
    opacity: 1;
}

/* 未选中状态 - 默认40%不透明度 */
.media-list-item:not(.selected) .media-item-icon img {
    opacity: 0.4;
}

/* 未选中状态的hover效果 - 80%不透明度 */
.media-list-item:not(.selected):hover .media-item-icon img {
    opacity: 0.8;
}

/* 媒体文本信息 */
.media-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.media-item-title {
    color: white;
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

/* 选中状态 - 100%不透明度 */
.media-list-item.selected .media-item-title {
    font-size: 32px;
    opacity: 1;
}

/* 未选中状态 - 默认40%不透明度 */
.media-list-item:not(.selected) .media-item-title {
    font-size: 16px;
    opacity: 0.4;
}

/* 未选中状态的hover效果 - 80%不透明度 */
.media-list-item:not(.selected):hover .media-item-title {
    opacity: 0.8;
}

/* 媒体预览容器 */
.media-preview-container {
    position: absolute;
    left: calc(50% + min(124px, 15vw));
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 16px;
    align-items: center;
    width: min(1352.889px, calc(100vw - min(448px, 30vw) - 100px));
    max-width: calc(100vw - min(448px, 30vw) - 100px);
    z-index: 15;
}

/* 左右箭头按钮 */
.media-arrow-btn {
    width: min(80px, 6vw);
    height: min(80px, 6vw);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
}

.media-arrow-btn img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.media-arrow-btn:hover img {
    opacity: 1;
}

/* 左箭头 */
.media-arrow-left {
    margin-right: 10px;
}

.media-arrow-left img {
    transform: scaleX(-1);
}

/* 右箭头 */
.media-arrow-right {
    margin-left: -5px;
}

/* 媒体预览区域 */
.media-preview {
    position: relative;
    width: 100%;
    max-width: 1080px;
    aspect-ratio: 16 / 9;
    flex: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: visible;
}

.media-preview:hover {
    transform: scale(1.02);
}

.media-preview-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.media-preview-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* 播放图标 - 居中显示 */
.media-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(80px, 8%);
    height: min(80px, 8%);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.media-preview.has-video .media-play-icon {
    display: flex;
}

.media-play-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

/* Tab Bar容器 */
.media-tab-bar {
    position: absolute;
    left: 50%;
    bottom: 120px;
    transform: translateX(calc(-50% + 98.22px));
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

/* Tab Bar单个项 */
.tab-bar-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 未选中状态 */
.tab-bar-item:not(.selected) {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.tab-bar-item:not(.selected):hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 选中状态 */
.tab-bar-item.selected {
    width: 80px;
    height: 9px;
}

.tab-bar-item.selected::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 9px;
    background-image: url('../assets/icons/tab_bar_selected.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* ========== 媒体弹框 ========== */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
}

.media-modal.show {
    display: block;
}

/* 全屏半透明背景遮罩 */
.media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

/* 弹框容器 */
.media-modal-container {
    position: absolute;
    left: 50%;
    top: calc(50% + 20px);
    transform: translate(-50%, -50%);
    width: 1536px;
    height: 864px;
    overflow: hidden;
}

/* 关闭按钮 */
.media-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 0.3s ease;
}

.media-modal-close:hover {
    opacity: 1;
}

.media-modal-close img {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.media-modal-close:hover img {
    opacity: 0.8;
}

/* 内容容器 */
.media-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片弹框内容 */
.media-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 视频弹框内容 */
.media-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YouTube iframe */
.media-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* 弹框内的播放按钮（仅用于暂停状态的视频） */
.media-modal-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.media-modal-play-btn.show {
    display: flex;
}

.media-modal-play-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.64;
}

.media-modal-play-btn:hover img {
    opacity: 1;
}

/* 心愿单面板 */
.wishlist-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001; /* 必须高于导航栏的1000 */
    padding: 2.08vw;
}

.wishlist-container {
    position: relative;
    transition: all 0.3s ease;
    min-height: 6.25vw; /* 确保容器高度足够 */
    width: 35.21vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 默认按钮状态 */
.wishlist-btn {
    width: 15.73vw;
    height: 5.36vw;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    z-index: 10; /* 确保在最上层 */
}

.wishlist-btn-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15.73vw;
    height: 5.36vw;
    background-image: url('../assets/icons/wishlist-btn-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    pointer-events: none; /* 不阻挡鼠标事件 */
    z-index: 1;
}

.wishlist-btn-text {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    transition: color 0.3s ease;
    pointer-events: none; /* 不阻挡鼠标事件 */
}

.wishlist-btn-text-cn {
    font-size: 1.67vw;
}

.wishlist-btn-text-en {
    font-size: 1.25vw;
    font-weight: 500;
}

.wishlist-btn:hover .wishlist-btn-text {
    color: rgba(255, 255, 255, 1);
}

/* Hover展开状态 - 默认隐藏 */
.wishlist-expanded {
    position: absolute;
    top: 0;
    right: 0; /* 改为靠右对齐，与 wishlist-btn 对齐 */
    opacity: 0;
    pointer-events: none;
    padding: calc(2.08vw * 0.8); /* 80% */
    display: flex;
    flex-direction: column;
    gap: calc(0.42vw * 0.8); /* 80% */
    align-items: center;
    width: calc(35.21vw * 0.8); /* 80% = 28.17vw */
    transition: opacity 0.3s ease;
    z-index: 20;
}

/* 首页时显示展开状态，隐藏按钮 */
.wishlist-container.expanded .wishlist-btn {
    visibility: hidden;
}

.wishlist-container.expanded .wishlist-expanded {
    opacity: 1;
    pointer-events: auto;
}

/* Hover时显示展开状态，隐藏按钮 */
.wishlist-btn:hover ~ .wishlist-expanded,
.wishlist-expanded:hover {
    opacity: 1;
    pointer-events: auto;
}

/* 当展开状态激活时，隐藏按钮 */
.wishlist-container:has(.wishlist-expanded:hover) .wishlist-btn,
.wishlist-container:has(.wishlist-btn:hover) .wishlist-btn {
    visibility: hidden;
}

/* 心愿单标题 */
.wishlist-header {
    position: relative;
    width: calc(31.98vw * 0.8); /* 80% = 25.58vw */
    height: calc(4.58vw * 0.8); /* 80% = 3.66vw */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(0.47vw * 0.8) calc(3.33vw * 0.8) calc(0.47vw * 0.8) calc(4.17vw * 0.8); /* 80% */
}

.wishlist-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(31.35vw * 0.8); /* 80% = 25.08vw */
    height: calc(4.48vw * 0.8); /* 80% = 3.58vw */
    background-image: url('../assets/icons/wishlist-bg.png');
    background-size: 100.67% 104.43%;
    background-position: 2.05% -4.98%;
    opacity: 0.4;
}

.wishlist-title {
    position: relative;
    z-index: 2;
    font-size: var(--font-size-wishlist-title); /* 使用 CSS 变量，已在 i18n-fonts.css 中定义 */
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0px calc(0.21vw * 0.8) calc(1.25vw * 0.8) rgba(120, 136, 135, 0.4); /* 80% */
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

/* 平台按钮 */
.wishlist-platforms {
    display: flex;
    gap: calc(0.83vw * 0.8); /* 80% */
    padding: calc(0.21vw * 0.8) 0; /* 80% */
    width: 100%;
    justify-content: center;
}

.platform-btn-small {
    width: calc(8.75vw * 0.8); /* 80% = 7vw */
    height: calc(3.75vw * 0.8); /* 80% = 3vw */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.platform-btn-small::before {
    content: '';
    position: absolute;
    inset: calc(1vw * 0.8);
    border-radius: calc(1vw * 0.8);
    background-color: #FFF;
    filter: blur(1vw);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.platform-btn-small:hover::before {
    opacity: 1;
}

.platform-btn-small img {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.platform-btn-small:hover img {
    transform: scale(1.2);
}

.ps5-btn-small img {
    width: calc(7.08vw * 0.8); /* 80% */
    height: calc(1.54vw * 0.8); /* 80% */
}

.steam-btn-small img {
    width: calc(6.67vw * 0.8); /* 80% */
    height: calc(2.01vw * 0.8); /* 80% */
}

.epic-btn-small img {
    width: calc(6.25vw * 0.8); /* 80% */
    height: calc(2.24vw * 0.8); /* 80% */
}

/* 分隔线 */
.wishlist-divider {
    width: calc(28vw * 0.8); /* 80% = 24.83vw */
    height: calc(0.68vw * 0.8); /* 80% */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(180deg) scaleY(-1);
}

.wishlist-divider img {
    width: 100%;
    height: 4px;
}

/* 发布日期 */
.wishlist-footer {
    width: calc(31.04vw * 0.8); /* 80% = 24.83vw */
    height: calc(2.92vw * 0.8); /* 80% = 2.34vw */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(0.63vw * 0.8) calc(2.5vw * 0.8); /* 80% */
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    white-space: nowrap;
}

.release-date-label {
    font-size: var(--font-size-wishlist-label); /* 使用 CSS 变量 */
    text-shadow: 0px calc(0.14vw * 0.8) calc(0.86vw * 0.8) rgba(120, 136, 135, 0.4); /* 80% */
    line-height: 1.5;
}

.release-date-value {
    font-size: var(--font-size-wishlist-footer); /* 使用 CSS 变量 */
    font-weight: 700;
    text-shadow: 0px calc(0.21vw * 0.8) calc(1.25vw * 0.8) rgba(120, 136, 135, 0.4); /* 80% */
    line-height: 1.5;
}

/* 语言选择器 */
.language-selector {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 448px;
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.048));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 200px 48px 64px;
    z-index: 10003;
    pointer-events: none;
}

.lang-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lang-content:hover {
    transform: translateY(-2px);
}

.lang-content:hover .lang-icon {
    opacity: 0.9;
}

.lang-icon {
    width: 48px;
    height: 48px;
    opacity: 0.64;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 语言选项菜单 */
.lang-options-menu {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 400px;
    overflow: visible; /* 改为 visible 以显示背景 */
}

/* 背景图片层 - 不受遮罩影响 */
.lang-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/lang-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* 文字内容层 - 应用遮罩实现渐隐 */
.lang-menu-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 40px 0; /* 添加上下内边距，与背景图留出边距 */
    z-index: 1;
    /* 使用 mask 实现文字渐隐效果 */
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 100px,
        black calc(100% - 100px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 30px,
        black 80px,
        black calc(100% - 100px),
        transparent 100%
    );
}

/* Webkit 浏览器滚动条样式 - 隐藏 */
.lang-menu-content::-webkit-scrollbar {
    display: none;
}

.lang-options-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    background: transparent;
    padding: 8px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.lang-option span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.lang-option:hover span {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

/* 滚动引导图标容器 */
.scroll-guide-container {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.scroll-arrow {
    width: 94.5px;
    height: 56px;
    position: relative;
    overflow: hidden;
    opacity: 0.64;
}

.scroll-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scroll-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.64);
    text-shadow: 0px 4px 24px rgba(120, 136, 135, 0.4);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .logo-icon {
        height: 32px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .section-content h1 {
        font-size: 32px;
    }

    .section-content p {
        font-size: 16px;
    }
}

/* ==================== 页脚样式 ==================== */
.site-footer {
    background: #000000;
    width: 100%;
    padding: 80px 0 120px;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 顶部区域 */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 280px;
}

/* 左侧链接 */
.footer-links {
    display: flex;
    align-items: center;
    gap: 48px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.footer-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* 右侧区域 */
.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* S-GAME Logo */
.footer-logo {
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 14.79px;
    width: auto;
    object-fit: contain;
}

/* 社交媒体图标 */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 底部版权信息 */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.copyright-line {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.24);
    text-align: center;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .site-footer {
        padding: 60px 0 80px;
    }

    .footer-top {
        gap: 100px;
    }

    .footer-links {
        gap: 32px;
        font-size: 18px;
    }

    .footer-right {
        gap: 20px;
    }

    .footer-social {
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .site-footer {
        padding: 40px 0 60px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .footer-links {
        gap: 24px;
        font-size: 16px;
    }

    .footer-right {
        flex-direction: column;
        gap: 16px;
    }

    .copyright-line {
        font-size: 12px;
    }
}
