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

/* 限制最大宽度并居中 */
.header1 {
  box-sizing: border-box;
  max-width: 6.9rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  margin: 0 auto;
  font-size: 0.25rem;
  color: #fff;
  background: rgba(26, 32, 44, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 0.1rem;
}
.header {
  height: 1.1rem;
  background: rgba(26, 32, 44, 0.8);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 clamp(16px, 4vw, 32px);
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  width: 7.3rem;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 15px;
  z-index: 150;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform-origin: top left;
  transition: border-radius 0.32s cubic-bezier(0.33, 1, 0.68, 1), padding 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.32s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.32s cubic-bezier(0.33, 1, 0.68, 1), top 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    left 0.32s cubic-bezier(0.33, 1, 0.68, 1), width 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.32s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform, width, top, left, padding, border-radius, box-shadow, background;
  box-shadow: 0 8px 24px #00000014;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: gap;
}
.header-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.24s ease, transform 0.24s ease;
  will-change: opacity, transform;
  width: auto;
  cursor: pointer;
}
.imgde-image {
  /* display: inline-block; */
  background-color: transparent;
}
.header-right {
  justify-content: flex-start;
  gap: 3px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
  transition: opacity 0.24s ease, transform 0.24s ease;
  will-change: opacity, transform;
}
[data-theme='dark'] .header-search {
  background: #334155a6;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: #94a3b81f;
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, width 0.2s ease;
  flex: 1 1 clamp(140px, 22vw, 240px);
  width: min(100%, clamp(160px, 24vw, 280px));
  max-width: clamp(200px, 28vw, 320px);
  min-width: clamp(120px, 18vw, 200px);
}
.header-search {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 4px 4px 4px 10px;
}
.header-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light, #64748b);
}
[data-theme='dark'] .header-search__input {
  color: #f8fafc;
}
.header-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #fff;
}
.header-search__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.header-search__submit {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.header-search__clear,
.header-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.theme-toggle,
.customer-service-toggle,
.history-toggle {
  flex-shrink: 0;
}
.history-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
}
.customer-service-toggle,
.history-toggle {
  background: none;
  border: none;
  color: #cbd5e0;
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  will-change: background, color, transform;

  font-size: 14px;
  line-height: 1;
}
.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: #000; */
  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.24rem;
  color: #646566;
  cursor: pointer;
  position: relative;
}

/* 高亮 */
.tab-item.active {
  color: #fff;
  font-weight: bold;
}
.tab-item.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: #ff3b3b;
  border-radius: 3px;
}
.jiantou {
  width: 0.2rem;
  height: 0.2rem;
}
.container {
  width: 7.5rem;
  /* 750px */
  margin: 0 auto;
  margin-top: 0.1rem;

  /* 20px */
  background: #1a202c;
}

/* 顶部头部 */
.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.7rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  border-radius: 0.7rem;
}

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

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

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

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

  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: #556173;
  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 #ffac00;
  background: rgba(68, 13, 13, 0.16);
  color: #02bb30;
  border-radius: 0.06rem;
  cursor: pointer;
  font-size: 0.2rem;
  /* 28px */
  transition: all 0.3s;
}

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

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

/* 广告栏 */
.ad-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* height: 1rem; */
  text-align: center;
  border-radius: 0.16rem;
  /* 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: var(--hbg-color);
}

.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: var(--separator-color);
}

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

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

.category-buttons .btn-wrap {
  display: flex;
}

.category-button {
  padding: 0.09rem 0.26rem;
  /* 16px 32px */
  background-color: var(--hbg-color);
  color: var(--text-color);
  border-radius: 0.06rem;
  border: 0.01rem solid #ffffff;
  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: #282828;
}

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

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

.category-button.purple {
  background-color: #8a2be2 !important;
}

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

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

.category-button.orange {
  background-color: #ffa500 !important;
}
.list .box-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.26rem;
  color: #ffffff;
  padding: 0 0.2rem;
  height: 0.6rem;
}
.box-more-title {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.28rem;
  font-weight: bold;
}
.list .box-more .lit-tip {
  display: flex;
}

.list .box-more .lit-tip a {
  width: 1.4rem;
  height: 0.36rem;
  color: #f35159;
  border: 1px solid #c64141;
  border-radius: 0.06rem;
  margin: 0 0.07rem;
  font-size: 0.2rem;
  flex: auto;
}

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

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

.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;
  background-color: #10182a;
  border-radius: 0.1rem;
  overflow: hidden;
}
.list .box-sp .items {
  width: 100%;
  background-color: #10182a;
  border-radius: 0.1rem;
  overflow: hidden;
}

.list .box-sp .item .poster {
  width: 100%;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #444e62;
  color: var(--text-color);
}
.list .box-sp .items .poster {
  width: 100%;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #444e62;
  color: var(--text-color);
}

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

.list .item .name {
  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;
  color: #fff;
}
.list .items .name {
  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;
  color: #fff;
}

.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: #000;
  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: #fff;
  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: #000;
}
.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: #fff;
  font-size: 0.22rem;
  line-height: 1.6;
  background: var(--bottom-bgcolor);
}

.notice .warning {
  color: #fff;
}

.notice .highlight-red {
  color: #f35159;
}

.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 #ff4d4f;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

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

.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;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 一行 4 列 */
  gap: 0.1rem; /* 行列间距 */
  padding: 0.2rem;
}

.tag {
  border: 1px solid #fff;
  border-radius: 0.06rem;
  color: #fff;
  font-size: 0.22rem;
  background: #000;
  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.3rem 0.2rem;
  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: #f35159;
  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: #000; /* 黑色背景 */
  border: 1px solid #f44; /* 红色边框 */
  border-radius: 0.06rem;
  color: #fff;
  font-size: 0.24rem;
  width: 100%;
  height: 0.7rem;
  letter-spacing: 0rem;
}

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

.tip-box .red {
  color: #f44; /* 红色文字 */
}
.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 #333;
  padding: 10px 0;
  align-items: center;
}

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

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

.category-item {
  color: #fff;
  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: 0.05rem;
}

.title {
  color: #fff;
  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: var(--text-color);
  line-height: 0.58rem;
  padding: 0.2rem;
}
.top-left {
  position: fixed;
  top: 0.2rem;
  left: 0.2rem;
  font-size: 0.24rem;
  color: #fff;
  width: 0.6rem;
  height: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #0000004d;
  box-shadow: 0 10px 24px #00000059;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dipiao {
  display: flex;
  width: 100%;
  height: 1.2rem;
  position: fixed;
  bottom: 0;
  left: 0;
   z-index: 99999999999999999;
}
.right-dipiao {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
  width: 1rem;
  position: fixed;
  right: 0.6rem;
  top: 20%;
  transform: translateX(50%);
}
