* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== 响应式布局优化 - CSS 变量方案 ========== */
:root {
  /* 基准字体大小：通过媒体查询动态调整 */
  --base-font-size: 10px;
}

/* 小屏幕：≤ 1582px (对应 1366-1599px 屏幕) - 缩小到 85% 
           注意：减去约 17px 滚动条宽度，确保实际浏览器宽度正确匹配 */
@media screen and (max-width: 1582px) {
  :root {
    --base-font-size: 8.5px;
  }
}

/* 中等屏幕：1583px - 1782px (对应 1600-1799px 屏幕) - 缩小到 90% */
@media screen and (min-width: 1583px) and (max-width: 1782px) {
  :root {
    --base-font-size: 9px;
  }
}

/* 标准屏幕：1783px - 2542px (对应 1800-2559px 屏幕，1080p 基准)
           注意：1920×1080 屏幕的浏览器可用宽度约 1903px，落在本区间 */
@media screen and (min-width: 1783px) and (max-width: 2542px) {
  :root {
    --base-font-size: 10px;
  }
}

/* 2K：2543px - 3422px (对应 2560-3439px 屏幕) - 放大到 133% */
@media screen and (min-width: 2543px) and (max-width: 3422px) {
  :root {
    --base-font-size: 13.3333px;
  }
}

/* 准4K：3423px - 3822px (对应 3440-3839px 屏幕) - 放大到 180% */
@media screen and (min-width: 3423px) and (max-width: 3822px) {
  :root {
    --base-font-size: 18px;
  }
}

/* 4K：3823px+ (对应 3840px+ 屏幕) - 放大到 200% */
@media screen and (min-width: 3823px) {
  :root {
    --base-font-size: 20px;
  }
}

/* 应用基准字体大小 */
html {
  font-size: var(--base-font-size);
}

/* ========== 自定义字体定义 ========== */
@font-face {
  font-family: 'CJCMFont';
  src: url('./cjcm.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 标题类字体应用 */
.logo,
.sidebar-item,
.sidebar-subitem,
.top_img-title,
.top_img-desc,
.tab-item,
.notice-title,
.price-card-title,
.price-title {
  font-family: 'CJCMFont', sans-serif;
}

/* ========================================
   📜 全局滚动条样式统一管理
   修改这里的变量即可调整所有滚动条样式
   ======================================== */

/* === 滚动条颜色配置 === */
:root {
  /* 滚动条滑块颜色（默认） */
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);

  /* 滚动条轨道颜色 */
  --scrollbar-track: rgba(255, 255, 255, 0.03);

  /* 滚动条悬停颜色 */
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.15);

  /* 滚动条激活（点击）颜色 */
  --scrollbar-thumb-active: rgba(255, 255, 255, 0.2);
}

/* .price-list::-webkit-scrollbar {
  height: 6px;
}

.price-list::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
  margin: 0 0.5rem;
}

.price-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.price-list::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  height: 8px;
}

.price-list::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
} */

/* .price-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
} */

/* .sidebar-column::-webkit-scrollbar,
.sidebar-column_b::-webkit-scrollbar {
  width: 5px;
}

.sidebar-column::-webkit-scrollbar-track,
.sidebar-column_b::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 3px;
}

.sidebar-column::-webkit-scrollbar-thumb,
.sidebar-column_b::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.sidebar-column::-webkit-scrollbar-thumb:hover,
.sidebar-column_b::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
} */

/* .sidebar-column,
.sidebar-column_b {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
} */

/* .modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.modal-content::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
} */

/* .modal-content {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
} */

/* === 全局隐藏滚动条（可选）=== */
/* 如果需要完全隐藏所有滚动条但保留滚动功能，取消下面的注释 */

*::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* === 滚动条样式管理 === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  background-color: #0a0a1a;
  color: #fff;
  font-family: sans-serif;
  width: 100%;
  /* 设置最小高度为100vh，确保内容区域至少占满整个视口高度 */
  min-height: 100vh;
}

#app {
  width: 100%;
  /* 设置最小高度为100vh，确保内容区域至少占满整个视口高度 */
  min-height: 100vh;
}

/* 顶部头部 */
.header {
  display: flex;
  align-items: center;
  height: 7rem;
}

.logo {
  text-align: center;
  /* flex居中换行 */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 20rem;
  color: #fff;
  font-weight: bold;
  margin-right: 4rem;
  transform: skewX(-5deg);
  text-shadow: 0 0 1.2rem var(--shadow-color-4, #b86bff);
  /* 使用动态阴影颜色 */
}

.logo_name {
  width: 100%;
  font-size: 3.2rem;
  /* 字间距变大 */
  letter-spacing: 0.4rem;
  /* 文字倾斜 */
  transform: skewX(-5deg);
  text-shadow: 0 0 0.4rem var(--shadow-color-4, #b86bff);
  /* 使用动态阴影颜色 */
}

.logo_py {
  width: 100%;
  font-size: 2rem;
  letter-spacing: 0.2rem;
  display: block;
  text-align: center;
}

/* .search-box {
            flex: 1;
            max-width: 350px;
            height: 36px;
            background: #1a1a30;
            border-radius: 20px;
            display: flex;
            align-items: center;
            padding: 0 15px;
        } */

/* .search-box input {
            flex: 1;
            background: transparent;
            border: none;
            color: #ccc;
            outline: none;
            padding-left: 8px;
        } */

/* 主体容器 */
.container {
  display: flex;
  height: calc(100vh - 0.8rem);
}

/* 左侧侧边栏 */
.sidebar {
  border-radius: 0.8rem;
  width: 22rem;
  /* background-color: #0e0e25; */
  /* background-color: var(--bg-color2, #b86bff); */
  /* box-shadow: 0 0 10px var(--shadow-color, rgba(124, 77, 255, 0.3)); */
  /* 添加阴影，使用用户信息中的 shadow 值 */
  padding: 2rem 0;
  margin: 1rem;
}

.sidebar-column {
  height: 52.5rem;
  /* 支持纵向滚动 */
  overflow-x: hidden;
  overflow-y: auto;

  /* 为滚动条预留空间 */
  /* padding-right: 0.5rem; */
}

.sidebar-column_b {
  height: 23rem;
  width: 100%;
  /* 支持纵向滚动 */
  overflow-x: hidden;
  overflow-y: auto;
  /* background-color: var(--bg---shadow-color2-4, #b86bff); */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;

  /* 为滚动条预留空间 */
  /* padding-right: 0.5rem; */
}

.left-info {
  height: 30%;
  box-shadow: 0 0 8px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
}

/* 一级栏目样式 */
.sidebar-item {
  padding: 1.4rem 2rem;
  cursor: pointer;
  font-size: 3.2rem;
  transition: 0.2s;
  /* transform: skewX(-10deg); */
  /* text-transform: skewX(-5deg); */
  letter-spacing: 0.2rem;
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
}

.sidebar-item-text {
  /* transform: skewX(-10deg); */
}

.sidebar-item:hover {
  /* background-color: var(--theme-color, rgba(124, 77, 255, 0.3)); */
  background: linear-gradient(
    to right,
    var(--theme-color),
    var(--theme-color2) 80%
  );
}

.sidebar-item.active {
  background-color: var(--theme-color, #7c4dff);
  border-radius: 0.8rem;
  font-weight: bold;
}

/* 二级栏目样式 */
.sidebar-subitem {
  margin: 20px 0;
  border-radius: 6px;
  padding: 1rem 2rem 1rem 3rem;
  cursor: pointer;
  font-size: 2rem;
  transition: 0.2s;
  /* color: #aaa; */
  /* transform: skewX(-14deg); */
  letter-spacing: 0.1rem;
}

.sidebar-subitem:hover {
  background: 'linear-gradient(to right, var(--theme-color, rgba(124, 77, 255, 0.2)), var(--theme-color2, rgba(124, 77, 255, 0.2)) )';
  color: #fff;
}

.sidebar-subitem.active {
  /* background-color: var(--theme-color, #7c4dff); */
  color: #fff;
  font-weight: bold;
}

.activity-box {
  /* margin: 1rem 0.5rem; */
  /* background: #181835; */
  padding: 1rem;
  border-radius: 0.8rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 右侧主内容区 */
.main-content {
  width: 167rem;
  /* flex: 1; */
  padding: 0 1.5rem;
}

.main-content-inner {
  /* height: calc(100% - 380px); */
}

/* Banner区域 */
.top_img {
  width: 100%;
  height: 24rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  /* margin-top: 30px; */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top_img-text {
  text-align: center;
  z-index: 2;
}

.top_img-top {
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.top_img-title {
  font-size: 80px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 12px var(--shadow-color-4, #b86bff);
  /* 使用动态阴影颜色 */
}

.top_img-desc {
  font-size: 20px;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* 顶部导航标签 */
.nav {
  width: 100%;
  /* height: calc(100% - 330px); */
  /* height: 460px; */
  margin-bottom: 0.5rem;
}

.tab-nav {
  height: 7rem;
  padding: 1rem 0;
  display: flex;
  /* background-color: var(--bg-color2, #b86bff); */
  background: linear-gradient(
    to right,
    var(--bg-color-b, rgba(124, 77, 255, 0.2)),
    var(--bg-color-t, rgba(124, 77, 255, 0.2))
  );
  border-radius: 0.8rem;
  overflow: hidden;
  margin: 0.5rem 1rem 1rem 1rem;
  letter-spacing: 0.2rem;
  box-shadow: 0 0 8px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  /* 添加阴影，使用用户信息中的 shadow 值 */
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0;
  cursor: pointer;
  font-size: 2.8rem;
  transition: 0.2s;
  /* transform: skewX(-5deg); */
  position: relative;
}

.tab-item:hover {
  /* background-color: var(--theme-color, rgba(48, 32, 96, 0.5)); */
  text-shadow: 0 0 1.2rem var(--shadow-color-4, rgba(124, 77, 255, 0.3));
}

.tab-item.active {
  /* background-color: var(--theme-color, #302060); */
  text-shadow: 0 0 2rem var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  font-weight: bold;
}

/* 内容网格区域 */
.content-grid {
  /* height: calc(100% - 88px); */
  /* 两端对齐 */
  display: flex;
  justify-content: space-between;
}

.left-grid {
  width: 131.5rem;
  /* flex两端对齐 */
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  padding: 0.5rem;
}

.banner_box {
  width: 91rem;
}

.left-grid-right-card {
  width: 38rem;
}

.left-grid-right-card-item {
  width: 37rem;
  height: 11rem;
  border: 1px solid var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  border-radius: 8px;
  font-size: 1.5rem;
  /* flex居中 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-notice {
  width: 32rem;
  height: 24rem;
}

.banner-card {
  height: 23rem;
  background-color: #4141b8;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  /* 为绝对定位的子元素提供参考 */
  overflow: hidden;
  /* 防止内容溢出 */
}

.top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播图容器 */
.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 轮播图片 */
.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-image.active {
  opacity: 1;
}

/* 左右切换按钮 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2.4rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: background-color 0.3s;
  z-index: 10;
}

.banner-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.banner-prev {
  left: 1rem;
}

.banner-next {
  right: 1rem;
}

/* 指示器 */
.banner-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.indicator-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.indicator-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* 空状态 */
.banner-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
}

/* 右侧公告信息 */
.notice-card {
  height: 23rem;
  /* background-color: #181835; */
  /* background-color: var(--bg-color2, #b86bff); */
  box-shadow: 0 0 8px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem;
}

.shop-card {
  width: 31rem;
  height: 28rem;
  /* background-color: #181835; */
  /* background-color: var(--bg-color2, #b86bff); */
  box-shadow: 0 0 8px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem;
}

.notice-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  /* border-bottom: 1px solid #333; */
  /* transform: skewX(-5deg); */
  letter-spacing: 0.2rem;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 1.4rem;
  color: #ccc;
}

/* 价格表区域 */
.bottom-box {
  display: flex;
}

.price-section {
  box-shadow: 0 0 6px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  /* 添加阴影，使用用户信息中的 shadow 值 */
  border-radius: 0.8rem;
  padding: 1rem;
  width: 130rem;
  height: 28rem;
  /* margin-right: 2rem; */
  margin: 0.5rem 1.5rem 0.5rem 0.5rem;
}

.price-title {
  font-size: 2.4rem;
  margin-left: 1.2rem;
  /* transform: skewX(-10deg); */
  letter-spacing: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(204, 204, 204, 0.2);
}

.price-list {
  /* height: 100%; */
  height: calc(100% - 3.5rem);
  display: flex;
  /* 改为 flex 布局 */
  gap: 2rem;
  overflow-x: auto;
  /* 横向溢出时显示滚动条 */
  overflow-y: hidden;
  /* 隐藏纵向滚动条 */
  padding: 1rem 0.5rem 0 0.5rem; /* 为滚动条预留底部空间 */
  scroll-behavior: smooth;
  /* 平滑滚动 */
  -webkit-overflow-scrolling: touch;
  /* iOS 平滑滚动 */
}

.price-card {
  width: 26rem;
  /* 固定宽度 */
  /* height: 22rem; */
  /* 固定高度 */
  /* background-color: #4141b8; */
  /* background-color: var(--theme-color2, #b86bff); */
  /* border: 1px solid var(--shadow-color-4, #7c4dff); */
  box-shadow: 0 0 5px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 1rem 0.5rem 0.5rem;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--shadow-color-4, rgba(124, 77, 255, 0.4));
}

.price-card-media {
  width: 100%;
  /* 占满卡片宽度 */
  height: 12rem;
  /* 固定高度 */
  position: relative;
  overflow: hidden;
  background-color: #1a1a38;
  flex-shrink: 0;
  /* 防止被压缩 */
}

.price-card-media img {
  object-fit: cover;
  display: block;
  /* 消除 inline 元素的默认底部间距 */
}

.price-card-video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  display: block;
  /* 消除 inline 元素的默认底部间距 */
}

/* 视频播放按钮 */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(124, 77, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-play-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.price-card:hover .video-play-icon {
  background-color: rgba(124, 77, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.price-card-content {
  width: 100%;
  /* 占满卡片宽度 */
  height: 80px;
  /* 固定高度 (320 - 160 = 160) */
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  /* 防止内容溢出 */
  box-sizing: border-box;
  /* 确保 padding 包含在高度内 */
}

.price-card-title {
  /* font-size: 16px; */
  font-size: 1.6rem;
  /* font-weight: bold; */
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  /* 标题不被压缩 */
  line-height: 1.4;
  /* 控制行高 */
  /* transform: skewX(-5deg); */
  letter-spacing: 2px;
  text-align: center;
}

.price-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow: hidden;
  /* 标签超出时隐藏 */
  flex-shrink: 0;
  /* 标签区域不被压缩 */
  max-height: 80px;
  /* 限制标签区域最大高度 */
  align-content: flex-start;
  /* 多行时从顶部开始 */
}

.price-tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  /* color: white; */
  white-space: nowrap;
  letter-spacing: 2px;
  line-height: 1.5;
  /* 控制标签行高 */
}

.price-card-media {
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.price-card-media img,
.price-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.tab-indicator {
  width: 100px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  bottom: 4px;
  height: 3px;
  /* background-color: var(--theme-color2, #7c4dff); */
  background: linear-gradient(
    to right,
    var(--theme-color, rgba(124, 77, 255, 0.2)),
    var(--theme-color-2, rgba(124, 77, 255, 0.2))
  );
  box-shadow: 0 0 10px var(--shadow-color-4, rgba(124, 77, 255, 0.5));
  border-radius: 5px;
  transition:
    left 0.3s ease,
    width 0.3s ease;
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal-container {
  background: linear-gradient(135deg, #1a1a38 0%, #0e0e25 100%);
  border-radius: 16px;
  width: 90vw;
  max-width: 140rem;
  height: 85vh;
  max-height: 80rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 20px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
  border: 1px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
  flex-shrink: 0;
}

.modal-title {
  font-size: 2.8rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.2rem;
  text-shadow: 0 0 1rem var(--shadow-color-4, rgba(124, 77, 255, 0.5));
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 4rem;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--theme-color, rgba(124, 77, 255, 0.2));
  transform: rotate(90deg);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* ========== 瀑布流卡片布局 ========== */
.waterfall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.waterfall-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.waterfall-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 0 20px var(--shadow-color-4, rgba(124, 77, 255, 0.4));
  border-color: var(--theme-color, rgba(124, 77, 255, 0.3));
}

.waterfall-card-media {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1055 0%, #5a2088 100%);
}

.waterfall-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.waterfall-card:hover .waterfall-card-media img {
  transform: scale(1.05);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6rem;
  height: 6rem;
  background: rgba(124, 77, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.waterfall-card:hover .video-play-btn {
  background: rgba(124, 77, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.waterfall-card-info {
  padding: 1.5rem;
}

.waterfall-card-title {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: 0.1rem;
}

.waterfall-card-desc {
  font-size: 1.3rem;
  color: #aaa;
  margin-bottom: 1rem;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.waterfall-card-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.waterfall-tag {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  white-space: nowrap;
  letter-spacing: 0.1rem;
  transition: all 0.3s;
}

.waterfall-tag:hover {
  transform: scale(1.05);
}

/* 游戏卡片特殊样式 */
.game-card .waterfall-card-media {
  position: relative;
}

.game-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* otherMenu内容样式 */
.other-menu-content {
  padding: 2rem;
  line-height: 1.8;
  color: #fff;
}

.other-menu-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.other-menu-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ========== 图片保护相关样式 ========== */

/**
 * 禁用图片拖动和选择的通用类
 * 使用方法：给 img 标签添加 class="img-no-drag"
 */
.img-no-drag {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* 移动端长按菜单 */
  pointer-events: auto; /* 保留点击事件 */
}

/**
 * 允许右键菜单的图片类（例外情况）
 * 使用方法：给需要允许右键的图片添加 class="img-allow-context"
 * 注意：这个类会覆盖 img-no-drag 的右键禁用效果
 */
.img-allow-context {
  -webkit-touch-callout: default;
}

/**
 * 完全禁用的图片类（包括点击事件）
 * 使用方法：给 img 标签添加 class="img-disabled"
 * 适用于纯装饰性图片，不需要任何交互
 */
.img-disabled {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none; /* 禁用所有鼠标事件 */
}

/* ... existing code ... */

/* ========== Bingo游戏样式 ========== */
.bingo-modal .modal-container {
  max-width: 120rem;
  height: 90vh;
}

.bingo-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bingo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.room-control {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.difficulty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bingo-input {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  width: 12rem;
  text-align: center;
}

.bingo-input::placeholder {
  color: #aaa;
}

.bingo-select {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
}

.bingo-btn {
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s;
}

.bingo-btn:hover {
  background: var(--theme-color, rgba(124, 77, 255, 0.2));
  border-color: var(--theme-color, #7c4dff);
}

.bingo-btn-primary {
  background: var(--theme-color, #7c4dff);
  border-color: var(--theme-color, #7c4dff);
}

.bingo-btn-primary:hover {
  background: var(--theme-color-5, rgba(124, 77, 255, 0.8));
}

.bingo-status {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.status-item {
  font-size: 1.4rem;
  color: #ccc;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 0.5rem;
  flex: 1;
  min-height: 0; /* 允许网格收缩 */
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.bingo-cell {
  aspect-ratio: 1;
  border: 2px solid var(--shadow-color-3, rgba(124, 77, 255, 0.2));
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
}

.bingo-cell:hover {
  transform: scale(1.05);
  border-color: var(--theme-color, #7c4dff);
  box-shadow: 0 0 10px var(--shadow-color-4, rgba(124, 77, 255, 0.5));
}

.bingo-cell.selected {
  border-color: var(--theme-color, #7c4dff);
  background: var(--theme-color-2, rgba(124, 77, 255, 0.2));
  box-shadow: 0 0 15px var(--shadow-color-4, rgba(124, 77, 255, 0.6));
}

.bingo-cell.winning {
  border-color: #00ff00;
  background: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  }
}

.bingo-cell-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bingo-cell-weight {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: bold;
}

.bingo-start-prompt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1.6rem;
  text-align: center;
  padding: 2rem;
}

.bingo-win-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.win-content {
  background: linear-gradient(135deg, #1a1a38 0%, #0e0e25 100%);
  border: 2px solid #00ff00;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  max-width: 50rem;
}

.win-content h3 {
  color: #00ff00;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.win-content p {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
  .bingo-grid {
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .bingo-cell-weight {
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
  }
}

@media screen and (max-width: 768px) {
  .bingo-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .room-control {
    justify-content: center;
  }

  .bingo-grid {
    gap: 0.2rem;
    padding: 0.3rem;
  }

  .bingo-cell-weight {
    font-size: 0.7rem;
    padding: 0.1rem 0.2rem;
  }
}

/* ... existing code ... */

.activity-box {
  /* margin: 1rem 0.5rem; */
  /* background: #181835; */
  padding: 1rem;
  border-radius: 0.8rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 游戏按钮容器 */
.game-button-container {
  margin: 1.5rem auto;
  padding: 0 0.5rem;
}

.game-button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(
    45deg,
    var(--theme-color, #7c4dff),
    var(--theme-color2, #b86bff)
  );
  border: none;
  border-radius: 0.8rem;
  color: white;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 4px 15px var(--shadow-color-4, rgba(124, 77, 255, 0.3));
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-color-4, rgba(124, 77, 255, 0.5));
}

.game-button:active {
  transform: translateY(0);
}

.game-icon {
  font-size: 2rem;
}

.game-text {
  letter-spacing: 0.1rem;
}

/* ... existing code ... */
