﻿/* 全局重置通配 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

/* body 双色系渐变背景 */
body {
  background: linear-gradient(90deg, #5f5fa1 0%, #975a99 100%);
  color: #e8e8f0;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ========== 电脑端 >=769px 字体与基础尺寸 ========== */
@media (min-width: 769px) {
  body {
    font-size: 16px;
  }
  [class*="-logo"] {
    font-size: 32px;
  }
  [class*="-nav-item"] a {
    font-size: 15px;
    padding: 7px 14px;
  }
  [class*="-search-input"] {
    font-size: 16px;
    width: 240px;
    flex: none;
  }
  [class*="-search-btn"] {
    font-size: 16px;
    flex: none;
  }
  [class*="-container-title"] {
    font-size: 22px;
  }
  [class*="-card-title"] {
    font-size: 15px;
  }
  [class*="-info"] {
    font-size: 13px;
  }
}

/* ========== 移动端 <=768px 自适应 ========== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  [class*="-logo"] {
    font-size: 24px;
  }
  [class*="-nav-item"] a {
    font-size: 13px;
    padding: 6px 10px;
  }
  [class*="-search-input"] {
    font-size: 14px;
    flex: 1;
    width: auto;
  }
  [class*="-search-btn"] {
    font-size: 14px;
    flex: 0 0 90px;
    width: auto;
  }
  [class*="-container-title"] {
    font-size: 16px;
  }
  [class*="-card-title"] {
    font-size: 13px;
  }
  [class*="-info"] {
    font-size: 11px;
  }

  /* 搜索栏强制同行布局 */
  [class*="-search-wrap"] {
    flex-direction: row;
    width: 100%;
  }
}

/* 超小屏 <=767px Logo单独缩小 */
@media (max-width: 767px) {
  [class*="-logo"] {
    font-size: 17px;
  }
}

/* ========== 头部毛玻璃容器 [任意前缀-header-xxx] ========== */
[class*="-header-wrap"] {
  background: rgba(10, 10, 24, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(80, 60, 140, 0.35);
  padding: 10px 10px;
  box-shadow: 0 4px 24px rgba(100, 50, 200, 0.18);
}
[class*="-header-inner"] {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 10px;
}
[class*="-header-top"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Logo通用渐变文字（所有带 -logo 后缀类） */
[class*="-logo"] {
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ========== 导航栏 [任意前缀-nav-xxx] ========== */
[class*="-nav-wrap"] {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 8px;
}
[class*="-nav-item"] a {
  border-radius: 0px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #fff;
}
[class*="-nav-item"] a:hover {
  filter: brightness(1.25) saturate(1.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ========== 搜索区域 [任意前缀-search-xxx] ========== */
[class*="-search-wrap"] {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
[class*="-search-input"] {
  padding: 10px 16px;
  border: 1px solid #443377;
  border-radius: 0px;
  background: rgb(255 255 255);
  color: #000000;
  outline: none;
  transition: all 0.3s ease;
}
[class*="-search-input"]:focus {
  border-color: #7b61ff;
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.3);
}
[class*="-search-btn"] {
  padding: 10px 20px;
  border: none;
  border-radius: 0px;
  background: linear-gradient(45deg, #7b61ff, #914dff);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
}
[class*="-search-btn"]:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 97, 255, 0.35);
}

/* 搜索锁定禁用状态 */
[class*="-search-lock"] [class*="-search-input"] {
  background: rgba(26, 26, 40, 0.65);
  border-color: #444455;
  color: #777788;
  cursor: not-allowed;
}
[class*="-search-lock"] [class*="-search-btn"] {
  background: #333344;
  color: #888899;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== 主内容通用容器 ========== */
main {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 10px;
}
[class*="-block-item"] {
  margin-bottom: 46px;
}
[class*="-container-title"] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #28204c;
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}
[class*="-container-title"] span {
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(#7b61ff, #ff4d94);
  border-radius: 3px;
}

/* ========== 播放器 & 下载容器 ========== */
[class*="-player-box"] {
  width: 100%;
  background: linear-gradient(145deg, rgba(11, 8, 29, 0.85), rgba(18, 13, 44, 0.85));
  border-radius: 0px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 36, 90, 0.35);
  box-shadow: 0 0 36px rgba(108, 43, 216, 0.15);
  color: #aaaacc;
}
[class*="-download-box"] {
  width: 100%;
  background: linear-gradient(145deg, rgba(11, 8, 29, 0.85), rgba(18, 13, 44, 0.85));
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(48, 36, 90, 0.35);
  color: #ccd0f0;
}

/* ========== 视频网格布局 ========== */
[class*="-grid"] {
  display: grid;
  gap: 22px;
}
@media (min-width: 1200px) {
  [class*="-grid"] {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  [class*="-grid"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  [class*="-grid"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 视频卡片通用样式 */
[class*="-card"] {
  background: linear-gradient(145deg, rgb(0 0 0), rgb(0 0 0));
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
}
[class*="-card"]:hover {
  transform: translateY(0px);
  border-color: rgba(139, 112, 255, 0);
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0);
}
[class*="-pic-wrap"] {
  width: 100%;
  position: relative;
  background: #191336;
  overflow: hidden;
}
/* 电脑端 16:9 */
@media (min-width:769px) {
  [class*="-pic-wrap"] {
    padding-top: 56.25%;
  }
}
/* 手机端 4:3 */
@media (max-width:768px) {
  [class*="-pic-wrap"] {
    padding-top: 75%;
  }
}
[class*="-pic-wrap"] a {
  position: absolute;
  inset: 0;
}
[class*="-pic-wrap"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
[class*="-card"]:hover [class*="-pic-wrap"] img {
  transform: scale(1.05);
}
[class*="-card-body"] {
  padding: 10px;
}
[class*="-card-title"] a {
  color: #ffffff;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
[class*="-card-title"] a:hover {
  color: #1fff97;
}
[class*="-info"] {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  white-space: nowrap;
}
[class*="-date"] {
  color: #b8b8b8;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}
[class*="-cate-tag"] a {
  color: #b8b8b8;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 手机端 部分元素设置 */
@media (max-width:768px) {
  [class*="-grid"] {
    gap: 10px;
  }
  [class*="-block-item"] {
    margin-bottom: 20px;
  }
  [class*="-cate-tag"] a {
    text-underline-offset: 1.9px;
  }
}