.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* CSS for section section:Header */

.search-bar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  position: relative;
}
.toggle-switch {
  display: flex;
  background: linear-gradient(90deg, #3c363b 0%, #785e67 100%);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}
.toggle-option {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #fedae7;
}

.toggle-option a {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #fedae7;
}

.toggle-option.active {
  background: #fff;
  color: #27244B;
  box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.25);
}
.search-icon-wrapper {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 5px;
  right: 10px;
}

/* CSS for section section:Hero */
#section-hero {
  padding: 10px;
  background-color: #fedae7;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  backdrop-filter: blur(1px);
  overflow: hidden;
  /*border-radius: 10px;
  padding-bottom: 10px;*/
}
.notification-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  margin: 0 10px;
  margin-top: 10px;
}
.bell-icon {
  width: 14px;
  height: 14px;
}
.notif-text {
  font-size: 12px;
  color: #fb879a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  /*background: radial-gradient(circle, #ff1346 0%, #9f1014 100%);*/
}

.banner-container img {
  width: 100%;
  height: 100%;
  /* 核心：保持比例缩放并填充，类似背景图的 background-size: cover */
  object-fit: cover; 
  /* 确保图片居中对齐 */
  object-position: center; 
  display: block;
}

.banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.banner-text-group {
  position: absolute;
  left: 20px;
  top: 40px;
  z-index: 2;
}
.banner-tag {
  background-color: #8a0a0e;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.banner-logo-overlay {
  width: 85px;
  height: 41px;
  object-fit: contain;
}
.banner-girl-mask {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 1;
}
.banner-girl {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.banner-vector-top, .banner-vector-bottom {
  position: absolute;
  width: 100%;
  left: 0;
}
.banner-vector-top { top: 0; }
.banner-vector-bottom { bottom: 0; }
.pagination-dots {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  gap: 5px;
}
.pagination-dots .point{
  width: 5px;
  height: 5px;
  background-color: #F66986;
  border-radius: 10px;
}
.pagination-dots .point.focus{
  width: 30px;
}

/* CSS for section section:Navigation */
#section-nav {
  display: flex;
  flex-direction: column;
}
.nav-categories {
  display: flex;
  background-color: #451F2A;
  padding: 0 20px;
  height: 54px;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.nav-item {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
}

.nav-item a{
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}
.nav-filters {
  background-color: #451F2A;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
}
.nav-box{
  background-color: #1F0F0F;
  display: flex;
  width: 100%;
  border: 1px solid #785e67;
  border-radius: 20px;
}

.filter-btn {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  background-color: #1f0f0f;
  flex:1;
  text-align: center;
}
.filter-btn.active {
  background-color: #fedade;
  color: #27244b;
  border: none;
}

/* CSS for section section:NewArrivals */
.content-section {
  padding: 20px 20px 0 20px;
  background-color: #1F0F0F;
}
.section-header {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  padding: 17px;
  margin-bottom: 10px;
  background: no-repeat center;
  background-size: cover;
  border-radius: 4px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.show-more {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #fff;
}



.horizontal-list {
  /* 1. 改为 Grid 布局 */
  display: grid;
  
  /* 2. 强制分为 3 列，每列等宽 */
  grid-template-columns: repeat(3, 1fr);
  
  /* 3. 设置上下左右的间距一致 (这里设为 10px) */
  gap: 10px;
  
  /* 4. 移除原本的横向滚动相关属性 */
  overflow-x: visible; 
  padding-right: 0;
  margin-bottom: 10px;
  width: 100%;
}
/*.horizontal-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-right: 20px;
  margin-bottom: 10px;
}
.comic-card {
  width: 100px;
  flex-shrink: 0;
}

.card-image-wrapper {
  position: relative;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
}
*/

.comic-card {
  /* 5. 移除固定宽度，让它随 Grid 列宽自适应 */
  width: 100%; 
  flex-shrink: 1;
}
.comic-card a{
    color: #fff;
}

.card-image-wrapper {
  position: relative;
  /* 建议：如果宽度自适应了，高度可以设为 auto 并配合 aspect-ratio 保持比例 */
  height: 150px; 
  border-radius: 4px;
  overflow: hidden;
}

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 5px;
  box-sizing: border-box;
}
.card-tag {
  font-size: 10px;
  margin-bottom: 2px;
}
.card-stats-overlay {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}
.card-stats-overlay img {
  width: 10px;
  height: 10px;
}

/* CSS for section section:Updates */
/* Styles inherited from NewArrivals section via class names */

/* CSS for section section:KoreanSelection */
/* Styles inherited from NewArrivals section via class names */

/* CSS for section section:Footer */

.download-app{
  position: fixed;
  bottom: 80px;
  left: 10px;
  right: 10px;
  margin: auto;
  border-radius: 50px;
  padding: 5px 20px;
  box-sizing: border-box;
  background: linear-gradient(to left, #5c4cff 0%, #f35959 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-word{
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: bold;
}
.download-close{
  color: #fff;
  font-size: 14px;
}