/* 极简风格CSS重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* 基础元素样式 */
ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 极简头部 - 粉红色主题 */
#header {
  width: 100%;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #ffe6f2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 100%;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.site-name {
  font-size: 18px;
  font-weight: 600;
  color: #e91e63;
  white-space: nowrap;
}

.site-name a:hover {
  color: #c2185b;
}

/* 粉红色搜索框 */
.search-box {
  width: 100%;
  max-width: 400px;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #f8bbd9;
  border-radius: 18px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.search-input:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e91e63;
  cursor: pointer;
  padding: 4px;
}

.search-button:hover {
  color: #c2185b;
}

/* 主要内容区域 */
#content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* 粉红色列表布局 */
.bd {
  width: 100%;
}

.content-header {
  margin-bottom: 20px;
}

.bd_title {
  font-size: 20px;
  font-weight: 600;
  color: #e91e63;
  margin-bottom: 16px;
  text-align: center;
}

/* 分类导航按钮样式 */
.clean-nav {
  margin-bottom: 20px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav-list li {
  list-style: none;
}

.nav-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #f8bbd9;
  border-radius: 20px;
  color: #e91e63;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #ffe6f2;
  border-color: #e91e63;
  transform: translateY(-1px);
}

.nav-list li.on .nav-btn {
  background: #e91e63;
  border-color: #e91e63;
  color: #fff;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

#list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

#list li {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ffe6f2;
  transition: all 0.3s ease;
}

#list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
  border-color: #e91e63;
}

/* 视频卡片 */
.video-card {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.video-poster {
  position: relative;
  width: 100%;
  padding-top: 140%;
  overflow: hidden;
  background: #f5f5f5;
}

.video-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-score {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(233, 30, 99, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.video-score i {
  font-size: 10px;
}

.video-status {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

.video-info {
  padding: 8px;
}

.video-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 36px;
}

/* 播放页面样式优化 */
.play-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.play-info {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ffe6f2;
}

.play-title {
  font-size: 18px;
  font-weight: 600;
  color: #e91e63;
  margin-bottom: 8px;
}

.play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #666;
}

.play-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.play-meta-item i {
  color: #e91e63;
}

/* 详情页样式 */
.detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ffe6f2;
}

.detail-poster {
  flex: 0 0 280px;
  position: relative;
}

.detail-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

.detail-score {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(233, 30, 99, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-info {
  flex: 1;
  min-width: 300px;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #e91e63;
  margin-bottom: 20px;
}

.detail-meta {
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
}

.meta-label {
  flex: 0 0 60px;
  color: #666;
}

.meta-value {
  flex: 1;
  color: #333;
}

.detail-desc {
  margin-bottom: 20px;
}

.detail-desc h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e91e63;
  margin-bottom: 10px;
}

.detail-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.detail-play {
  margin-top: 20px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* 粉红色播放页样式 */
.bf-h {
  width: 100%;
  background: #000;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.bf-h iframe,
.bf-h video {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.play-list-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ffe6f2;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e91e63;
  padding-left: 8px;
  border-left: 3px solid #e91e63;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.episode-item {
  background: #fff;
  border: 1px solid #f8bbd9;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.episode-item:hover {
  background: #ffe6f2;
  border-color: #e91e63;
  transform: translateY(-1px);
}

.episode-item.active {
  background: #e91e63;
  border-color: #e91e63;
  color: #fff;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.episode-link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: inherit;
}

.info-section {
  margin-bottom: 20px;
}

.content-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.related-section {
  margin-bottom: 20px;
}

/* 分类区块样式 */
.category-section {
  margin-bottom: 40px;
  padding: 20px 0;
  border-top: 1px solid #ffe6f2;
}

.category-section:first-of-type {
  border-top: none;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: #e91e63;
  margin: 0;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #f8bbd9;
  border-radius: 16px;
  color: #e91e63;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-more-btn:hover {
  background: #ffe6f2;
  border-color: #e91e63;
  transform: translateY(-1px);
}

.view-more-btn::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 11px;
}

/* 加载指示器样式 */
.scroll-loading, .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #e91e63;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #ffe6f2;
  border-top: 2px solid #e91e63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-more-content {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

/* 粉红色分页 */
.page {
  text-align: center;
  margin: 30px 0;
}

.page a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background: #fff;
  border: 1px solid #f8bbd9;
  border-radius: 20px;
  font-size: 13px;
  color: #e91e63;
  transition: all 0.3s ease;
}

.page a:hover {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
  transform: translateY(-1px);
}

/* 粉红色底部 */
#foot {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
  border-top: 1px solid #ffe6f2;
}

#foot a {
  color: #e91e63;
}

#foot a:hover {
  color: #c2185b;
}

/* 手机端优先的响应式设计 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  #header {
    height: 48px;
  }
  
  .header-container {
    padding: 0 12px;
    gap: 20px;
  }
  
  #header .logo {
    font-size: 16px;
  }
  
  .search-box {
    max-width: 180px;
  }
  
  .search-input {
    height: 32px;
    font-size: 14px;
  }
  
  #content {
    padding: 16px 12px;
  }
  
  #list, .category-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .video-title {
    font-size: 12px;
    height: 32px;
  }
  
  .bf-h iframe,
  .bf-h video {
    height: 200px;
  }
  
  .episode-list {
    gap: 6px;
  }
  
  .episode-link {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .category-section {
    margin-bottom: 30px;
    padding: 16px 0;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .category-title {
    font-size: 16px;
  }
  
  .view-more-btn {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  #list, .category-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .search-box {
    max-width: 140px;
  }
  
  #header .logo {
    font-size: 15px;
  }
  
  .nav-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .category-section {
    margin-bottom: 20px;
    padding: 12px 0;
  }
  
  .content-header {
    margin-bottom: 12px;
  }
  
  .category-title {
    font-size: 15px;
  }
  
  .detail-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .detail-poster {
    flex: 0 0 auto;
    align-self: center;
    max-width: 280px;
  }
  
  .detail-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .play-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 平板和桌面优化 */
@media (min-width: 769px) {
  #list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
  
  .bf-h iframe,
  .bf-h video {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  #list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .bf-h iframe,
  .bf-h video {
    height: 500px;
  }
}

/* 极简动画 - 仅保留必要的 */
@media (prefers-reduced-motion: no-preference) {
  #list li {
    transition: opacity 0.2s ease;
  }
  
  .episode-item {
    transition: opacity 0.2s ease;
  }
}