.header-wrapper {
  position: sticky; /* 吸顶 */
  top: 0;
  z-index: 999;
}

/* 限制最大宽度并居中 */
.header {
  box-sizing: border-box;
  max-width: 750px;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  margin: 0 auto;
  font-size: 0.25rem;
  color: #fff;
  background: var(--hbg-color);
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.16rem;
  margin-bottom: 0.16rem;
}
.logo {
  width: 2.91rem;
}
.h-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.03rem;
  height: 0.48rem;
  border-top: 1px solid var(--bor-color);
  border-bottom: 1px solid var(--bor-color);
  border-radius: 0.06rem;
}
.h-tabs-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.04rem;
  height: 0.48rem;
  color: var(--text-color);
  border-left: 1px solid var(--bor-color);
  border-right: 1px solid var(--bor-color);
  border-radius: 0.06rem;
  gap: 0.07rem;
}
.width-134 {
  width: 1.34rem;
}
.h-tabs-item-active {
  background: var(--hbtn-color);
}
.yjwz {
  position: relative; /* 父元素必须相对定位 */
}
.yjwz::after {
  content: ''; /* 必须有 content 属性 */
  position: absolute; /* 绝对定位 */
  border-radius: 50%;
  top: 0;
  right: 0;
  width: 0.1rem;
  height: 0.1rem;
  background: #df0000;
}
.tab-container-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto;
}
/* 容器 */
.tab-container {
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  background: #FFFFFF;
  scrollbar-width: none; /* 隐藏滚动条（火狐） */
}
.tab-container::-webkit-scrollbar {
  display: none; /* 隐藏滚动条（Chrome） */
}

/* 单个标签 */
.tab-item {
  display: inline-block;
  padding: 0 0.11rem;
  height: 0.6rem;
  line-height: 0.6rem;
  font-size: 0.22rem;
  color: #282828;
  cursor: pointer;
  position: relative;
}

/* 高亮 */
.tab-item.active {
  color: var(--hbtn-color);
}
.jiantou {
  width: 0.2rem;
  height: 0.2rem;
}
.container {
  width: 7.5rem;
  /* 750px */
  margin: 0 auto;
  margin-top: 0.1rem;

  /* 20px */
  background: #F3F5F8;
}

/* 顶部头部 */
.header-notice {
  display: flex;
  align-items: center;
  padding: 0rem 0.14rem;
  /* 10px */
  padding-right: 0;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  height: 0.48rem;
  background: #E3EEFE;
  border-radius: 0.06rem;
}

.notice-icon {
  width: 0.23rem;
  /* 40px */
  height: 0.2rem;
  /* 40px */
  margin-right: 0.14rem;
  /* 20px */
  flex-shrink: 0;
}

.notice-text-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.notice-text {
  color: #04468C;
  font-size: 0.22rem;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(50%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* 游戏推荐区域 */
.game-section {
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 移动端改为3列 */
  gap: 0.1rem;
  /* 30px */
  margin-bottom: 0.2rem;
  /* 40px */
}

.game-item {
  text-align: center;
}

.game-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  background-color: #fff;
  border-radius: 0.1rem;
  margin-bottom: 0.1rem;
  /* 16px */
  cursor: pointer;
  transition: transform 0.2s;
}

.game-thumbnail:hover {
  transform: scale(1.05);
}

.game-label {
  color: var(--text-color);
  font-size: 0.2rem;
  cursor: pointer;
}

.game-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 移动端改为3列 */
  gap: 0.1rem;
  /* 20px */
  margin-top: 0.2rem;
}

.game-button {
  padding: 0.1rem 0;
  border: 0.01rem solid #4DAFFA;
  background: #E3EEFE;
  color: #C13700;
  border-radius: 0.06rem;
  cursor: pointer;
  font-size: 0.2rem;
  /* 28px */
  transition: all 0.3s;
}

.game-button:nth-child(even) {
  color: #4DAFFA;
}

.game-button:hover {
  background-color: var(--game-border);
  color: var(--hbg-color);
}

/* 广告栏 */
.ad-section {
  background-color: #FFFFFF;
  /*height: 1rem;*/
  text-align: center;
 
  /* 16px */
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.ad-text {
  font-size: 0.28rem;
  color: var(--text-color);
}

/* 内容分类 */
.category-section {
  margin-top: 0.2rem;
}

.category-row {
  display: flex;
  align-items: center;
  padding: 0.16rem 0;
  padding-left: 0.2rem;
}

.category-row:nth-child(odd) {
  background: #FFFFFF;
}

.category-header {
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.category-label {
  font-size: 0.26rem;
  margin-right: 0.1rem;
  /* 30px */
}

.category-separator {
  margin-right: 0.1rem;
  /* 30px */
  color: #282828;
}

.category-buttons {
  flex: 1;
  overflow: hidden;
  overflow-x: scroll;
  scrollbar-width: 0;
}

.category-buttons::-webkit-scrollbar {
  display: none;
}

.category-buttons .btn-wrap {
  display: flex;
  margin-left: 0.2rem;
}

.category-button {
  width:1.4rem;
  height: 0.48rem;
  /*padding: 0.09rem 0.26rem;*/
  /* 16px 32px */
  /*background-color: #FFFFFF;*/
  color: var(--text-color);
  border-radius: 0.06rem;
  border: 0.01rem solid #282828;
  cursor: pointer;
  font-size: 0.22rem;
  transition: all 0.3s;
  margin-right: 0.14rem;
  /* 20px */
  display: block;
  word-break: keep-all;
  white-space: nowrap;
 
}

.category-row:nth-child(odd) .category-button {
  background: #FFFFFF;
}
.category-row:nth-child(even) .category-button {
   background: #F3F5F8;
}

.category-button:hover {
  background-color: var(--game-bg);
}

.promotion-button:hover {
  transform: translateY(-2px);
}

.category-button.purple {
  background-color: #4DAFFA !important;
}

.category-button.pink {
  background-color: #F35159 !important;
}

.category-button.blue {
  background-color: #FF4A96 !important;
}

.category-button.orange {
  background-color: #9142FF !important;
}
.list .box-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.26rem;
  color: #282828;
  background: var(--box-more);
  padding: 0 0.2rem;
  height: 0.6rem;
}
.box-more-title {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.list .box-more .lit-tip {
  display: flex;
}

.list .box-more .lit-tip a {
  width: 1.4rem;
  height: 0.36rem;
  color: var(--z-color);
  border: 1px solid #4DAFFA;
  border-radius: 0.06rem;
  margin: 0 0.07rem;
  font-size: 0.2rem;
  flex: auto;
  background-color: #E3EEFE;
}

.list .box-more .more {
  display: flex;
  align-items: center;
  font-size: 0.22rem;
  color: #282828;
  white-space: nowrap;
}

.list .box-more .more img {
  width: 0.2rem;
  height: 0.2rem;
  margin-left: 0.2rem;
}

.list .box-sp {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 0.2rem;
}

.list .box-sp .item {
  width: 3.5rem;
  margin-bottom: 0.2rem;
}

.list .box-sp .item .poster {
  width: 100%;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /*overflow: hidden;*/
  border-radius: 0.06rem;
  background: #FFFFFF;
  color: var(--text-color);
}
.list .box-sp1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px; 
  padding: 0 0.2rem;
}
.list .box-sp1 .item {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 0.2rem;
}

.list .box-sp1 .item .poster {
  width: 100%;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /*overflow: hidden;*/
  border-radius: 0.06rem;
  background: #1B1922;
  color: var(--text-color);
}

.imgs {
    height: 60%;
}

.list .poster .img-ed {
  object-fit: cover;
    width: 100%;
    height: 100%;
}

.communityitem {
  display: flex;
  flex-direction: column;
  color:var(--text-color);
}
.communityitem *{
     width: 100% !important;
    overflow: hidden;
}
.list .item .name {
  /* overflow: hidden; */
  /* white-space: nowrap; */
  /* text-overflow: ellipsis; */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  letter-spacing: 2px;
  line-height: 1.4;
  font-size: 0.2rem;
  margin: 0.1rem 0;
  color: var(--text-color);
}

.list-item-jiazai {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-color);
  font-size: 0.24rem;
}
.box-list-xs {
  padding: 0 0.2rem;
}

.box-list-xs .list-item {
  background-color: #FFFFFF;
  margin-top: 0.1rem;
  height: 0.95rem;
}

.box-list-xs .list-item .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0.2rem;
}
.box-list-xs .list-item .info div {
  display: flex;
  color: #282828;
  font-size: 0.22rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  height: 0.6rem;
  color: var(--text-color);
  font-size: 0.22rem;
  margin-top: 0.6rem;
  background: #E3EEFE;
}
.footer-1 {
  display: flex;
  align-items: center;
  gap: 0.03rem;
}
.footer-img {
  width: 0.3rem;
  height: 0.3rem;
}
.notice {
  max-width: 750px;
  margin: 0 auto;
  padding: 0.2rem;
  color: #282828;
  font-size: 0.22rem;
  line-height: 1.6;
  background: var(--bottom-bgcolor);
}

.notice .warning {
  /*color: #fff;*/
}

.notice .highlight-red {
  color: var(--z-color);
}

.notice .highlight-green {
  color: #02bb30;
}

.notice .highlight-yellow {
  color: #02bb30;
}

.notice .email {
  color: #02bb30;
  font-weight: bold;
}
.search-box {
  max-width: 750px;
  margin: 0.2rem;
  padding-left: 0.2rem;
  display: flex;
  border: 1px solid #4DAFFA;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
}

/* 输入框 */
.search-box input {
  flex: 1;
  height: 0.64rem;
  font-size: 0.24rem;
  border: none;
  outline: none;
  background: #FFFFFF;
  color: #5B5B5B;
}

.search-box input::placeholder {
  color: #888;
}

/* 搜索按钮 */
.search-btn {
  width: 1.94rem;
  height: 0.64rem;
}

.search-btn:active {
  opacity: 0.9;
}

.search-btn .icon {
  font-size: 0.36rem;
}
.tag-container {
  max-width: 750px;
  margin: 0.2rem auto;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 一行 4 列 */
  gap: 0.1rem; /* 行列间距 */
  padding: 0.2rem;
}

.tag {
  border: 1px solid #282828;
  border-radius: 0.06rem;
  color: #282828;
  font-size: 0.22rem;
  background: #FFFFFF;
  text-align: center;
  height: 0.48rem;
  line-height: 0.48rem;
  margin-bottom: 0.1rem;
  white-space: nowrap; /* 防止文字换行 */
}
.v-title {
  width: 100%;
  box-sizing: border-box;
  padding: 0.2rem 0.2rem;
  padding-bottom: 0;
  color: var(--text-color);
  font-size: 0.26rem;
  text-align: center;
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 超出隐藏 */
  text-overflow: ellipsis; /* 超出显示省略号 */
}
.v-top-bar {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.2rem;
}

.top-bar {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: 0.22rem;
  height: 0.6rem;
  padding: 0 0.2rem;
  border-radius: 0.06rem;
}

.top-bar .left {
  color: #fff;
}

.top-bar .left span {
  /* margin-left: 4px; */
}

.top-bar .right {
  color: orange;
  cursor: pointer;
  white-space: nowrap;
}

.copy-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 750px;
  margin: 10px auto;
  height: 0.4rem;
  background: #fff;
  border-radius: 0.06rem;
  overflow: hidden;
  letter-spacing: 0rem;
}

.url-text {
  flex: 1;
  padding: 0 10px;
  font-size: 0.16rem;
  color: #282828;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  */
}

.copy-btn {
  width: 3rem;
  flex-shrink: 0;
  background: var(--z-color);
  color: #fff;
  font-size: 0.22rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0.06rem;
  height: 0.36rem;
  line-height: 0.36rem;
  margin-right: 0.02rem;
}
.tip-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF; /* 黑色背景 */
  border: 1px solid var(--z-color); /* 红色边框 */
  border-radius: 0.06rem;
  color: #282828;
  font-size: 0.24rem;
  width: 100%;
  height: 0.7rem;
  letter-spacing: 0rem;
}

.tip-box .highlight {
  color: #4DAFFA; /* 必选浏览器高亮 */
  font-weight: bold;
}

.tip-box .red {
  color: #4DAFFA; /* 红色文字 */
}
.tip-box .huang {
  color: var(--video-text-color); /* 红色文字 */
}
.tip-img {
  width: 1.01rem;
  height: 0.6rem;
  margin-left: 0.1rem;
}
.category-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #333;
  background: var(--detail-bg-color);
}

.category {
  display: grid;
  grid-template-columns: 70px 1fr;
  border-bottom: 1px solid #F3F5F8;
  padding: 10px 0;
  align-items: center;
}

.category-title {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #282828;
  text-align: left;
  padding-left: 0.2rem;
  font-size: 0.26rem;
}
.category-title span {
  margin-left: 0.2rem;
  margin-bottom: 0.1rem;
  color: #282828;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  padding-left: 10px;
  font-size: 0.22rem;
}

.category-item {
  color: #282828;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item.highlight {
  color: var(--hbtn-color);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 每行 3 个 */
  gap: 15px;
  padding: 15px;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumb {
  width: 100%;
  aspect-ratio: 16/9; /* 自动保持 16:9 比例 */
  background: #ccc;
  border-radius: 5px;
}

.title {
  color: #000;
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* width: 100%; */
}

.title.highlight {
  color: #ff3b30;
}
.noveltitle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 0.6rem;
  background-color: var(--detail-bg-color);
  color: var(--text-color);
  margin-top: 0.2rem;
  /* margin-bottom: 0.2rem; */
}
.novelitemtext {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-size: 0.24rem;
  color: #000000;
  line-height: 0.58rem;
  padding: 0.2rem;
}
