:root {
  --bg-gradient-start: #f5f4ff;
  --bg-gradient-end: #e1dafe;
  --bg-main: #0f0c37;
  --bg-nav: #27244b;
  --bg-card: #000000;
  --bg-toggle-active: #ffffff;
  --bg-toggle-inactive: linear-gradient(180deg, #0f0c37 0%, #433f74 88%, #3d3a69 100%);
  --text-light: #ffffff;
  --text-dark: #3c363b;
  --text-nav-active: #ffffff;
  --text-nav-inactive: #918dbe;
  --text-accent: #c5a2e9;
  --text-button: #e1dafe;
  --border-light: #e1dafe;
  --border-dark: #3e3a69;
  --shadow-light: rgba(255, 255, 255, 0.25);
  --shadow-dark: rgba(0, 0, 0, 0.25);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #FFFCEB 0%, #FEF9DA 25%);
  color: var(--text-light);
}

.page-wrapper {
  max-width: 390px;
  margin: 0 auto;
  background-color: var(--bg-main);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, span {
  margin: 0;
  padding: 0;
}

/* CSS for section section:Categories */

  
  
.categories-nav {
  background-color: #ABA449;
  padding: 0 20px;
  height: 54px;
  /* 1. 关键：确保超出部分可以滚动 */
  overflow-x: auto; 
  /* 2. 隐藏滚动条（可选），让界面更整洁 */
  scrollbar-width: none; /* Firefox */
}

.categories-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.categories-nav ul {
  display: flex;
  /* 3. 修改：不要用 space-between，因为滚动时需要靠左排列 */
  justify-content: flex-start; 
  align-items: center;
  height: 100%;
  /* 4. 关键：禁止子元素换行，强制它们在同一行并排 */
  white-space: nowrap; 
}

.categories-nav li {
  /* 5. 关键：防止 Flex 项目在宽度不足时缩小变形 */
  flex-shrink: 0; 
}

.categories-nav a {
  display: inline-block; /* 确保 padding 生效 */
  font-size: 14px;
  color: var(--text-light);
  padding: 18.5px 10px;
}

.categories-nav a.active {
  border-bottom: 2px solid var(--text-light); /* 1px 有点细，建议 2px */
}
  
  
  
  
  

/* CSS for section section:LatestReleases */
.content-grid-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: #797435;
  }
  .grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .grid-title {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .grid-title h2 {
    font-size: 14px;
    font-weight: normal;
    color: #F0E546;
  }
  .show-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: #F1EEC9;
  }
  
.video-grid {
  display: flex;
  /* 1. 允许换行 */
  flex-wrap: wrap; 
  /* 2. 这里的 gap 是格子的间距 */
  gap: 10px;
  /* 3. 移除溢出滚动，改为默认展示 */
  overflow: visible; 
  margin: 0;
  padding: 10px 0;
}

.video-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-card);
  
  /* 4. 这里的计算是核心：
     一行三格，每个占 1/3，再减去间距的影响。
     使用 calc(33.33% - 间距) 是最稳妥的办法。 */
  flex: 0 0 calc((100% - 20px) / 3); 
  
  /* 或者如果你的 gap 是 10px，简写如下： */
  /* width: calc((100% - 20px) / 3); */
}
  
  
  
  .card-serial01{
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  background-color: #ff7d7d;
  padding: 1px 3px;
  border-radius: 4px;
}
.card-serial02{
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  background-color: #3c3d78;
  padding: 1px 3px;
  border-radius: 4px;
}
  .card-thumbnail {
    width: 100%;
    /* height: 100px; */
    object-fit: cover;
    display: block;
  }
  .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 7px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 30%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .card-overlay h3 {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-light);
  }
  .card-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-light);
  }
  .card-stats img {
    width: 12px;
    height: 12px;
  }
  .card-stats span {
    margin-right: 8px;
  }
  
  
  
  
  
  
  
/* CSS for section section:Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 10px;
    box-sizing: border-box;
  }
  .logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .logo-img {
    width: 65px;
    height: 31px;
  }
  .logo-text {
    font-size: 8px;
    line-height: 1;
    color: var(--text-dark);
  }
  .user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    color: var(--text-dark);
    flex-direction: column;
  }
  .nav-icon {
    width: 24px;
    height: 24px;
  }
  
  
  
  
  
  
  /* CSS for section section:Hero */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .media-toggle-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    position: relative;
  }
  .toggle-switch {
    display: flex;
    align-items: center;
    background: linear-gradient(-180deg, #797435 0%, #ABA449 100%);
    border-radius: 20px;
    border: 0.5px solid var(--border-light);
    box-shadow: 0px 0px 4px 0px var(--shadow-light);
    padding: 3px;
  }
  .search-icon-wrapper {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 10px;
  }
  .toggle-item {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #F1EEC9;
  }
  .toggle-item.active {
    background: var(--bg-toggle-active);
    color: var(--text-dark);
    box-shadow: 0px 1px 2px 0px var(--shadow-dark);
  }
  .search-icon {
    width: 20px;
    height: 20px;
  }
  .hero-banner-container {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px var(--shadow-dark);
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    gap: 8px;
  }
  .announcement-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #ABA449;
    font-size: 14px;
  }
  .announcement-icon {
    width: 14px;
    height: 14px;
  }
  .banner-container {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  .slider-container {
    position: relative;
    height: 140px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle, #e1dafe 5%, #918dbe 94%);
  }
  .slider-image-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .slider-bg {
    position: absolute;
    width: 125%;
    height: auto;
    top: -25%;
    left: 15%;
    opacity: 0.5;
  }
  .slider-fg {
    position: absolute;
    height: 200%;
    width: auto;
    top: -15%;
    right: -20%;
  }
  .slider-overlay-content {
    position: absolute;
    bottom: 40px;
    left: 12px;
    background-color: rgba(14, 28, 103, 0.4);
    padding: 6px 27px;
  }
  .slider-logo {
    position: absolute;
    width: 85px;
    height: 41px;
    top: -21px;
    left: 33px;
  }
  .slider-logo-text {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.2;
  }
  .pagination-dots {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  gap: 5px;
}
.pagination-dots .point{
  width: 5px;
  height: 5px;
  background-color: #ABA449;
  border-radius: 10px;
}
.pagination-dots .point.focus{
  width: 30px;
}

