/* 分类页面样式 */
.header {
  background: #000;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
  color: #ff6b35;
}

.main {
  background: #f5f5f5;
  min-height: calc(100vh - 60px);
  padding: 30px 0;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 32px;
  color: #333;
  margin: 0;
  font-weight: bold;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.video-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-poster {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-item:hover .play-overlay {
  opacity: 1;
}

.video-title {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
}

.video-info {
  padding: 0 15px 15px;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 12px 30px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.load-more-btn:hover {
  background: #e55a2b;
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 隐藏被筛选掉的视频 */
.video-item.hidden {
  display: none;
}

/* 无结果提示 */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .profile-actions {
    flex-direction: row;
    justify-content: center;
  }

  .membership-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 20px;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .logo span {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机端显示2列 */
    }
    
    .video-poster {
        height: 180px; /* 调整手机端海报高度 */
    }
    
    .video-item {
        height: 260px; /* 调整手机端视频项总高度 */
    }
}

@media (max-width: 480px) {
    .video-poster {
        height: 150px; /* 更小屏幕的海报高度 */
    }
    
    .video-item {
        height: 230px; /* 更小屏幕的视频项总高度 */
    }
    
    .video-title {
        font-size: 14px; /* 调整标题字体大小 */
        padding: 10px;
    }
    
    .video-info {
        font-size: 12px; /* 调整信息字体大小 */
        padding: 0 10px 10px;
    }
}

/* 页脚样式 */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #ff6b35;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

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

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ff6b35;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
  color: #95a5a6;
  font-size: 12px;
}

/* 用户信息样式 */
.user-section {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.logout-btn {
  padding: 4px 12px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background: #e55a2b;
}
