/* 下载中心样式 */

/* 主容器 */
.about-wrapper,
.download-container {
  max-width: 1400px;
  min-height: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}
.about-wrapper p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 10px;
}
/* 页面标题 */
.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-title i {
  font-size: 36px;
  color: var(--primary-color);
}

/* 分类选项卡 */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-button {
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button i {
  font-size: 20px;
}

.tab-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(21, 117, 64, 0.05);
}

.tab-button.active {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 下载列表容器 */
.download-list {
  min-height: 400px;
}

.list-section {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.empty-state i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 18px;
  margin: 0;
}

/* ========== 文件下载列表样式 ========== */
.download-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.download-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* 文件图标 */
.item-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.item-icon i {
  font-size: 32px;
}

.item-icon .ri-file-pdf-line {
  color: #e74c3c;
}

.item-icon .ri-file-word-line {
  color: #2980b9;
}

.item-icon .ri-file-excel-line {
  color: #27ae60;
}

.item-icon .ri-file-zip-line {
  color: #f39c12;
}

.item-icon .ri-file-text-line {
  color: #95a5a6;
}

/* 文件内容 */
.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-item i {
  font-size: 14px;
}

.download-count {
  color: var(--primary-color);
  font-weight: 500;
}

/* 下载按钮 */
.item-action {
  flex-shrink: 0;
}

.download-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.download-btn:hover {
  background-color: #0f5d34;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 117, 64, 0.3);
}

.download-btn i {
  font-size: 16px;
}

/* ========== 视频下载列表样式 ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
}

.video-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

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

/* 视频缩略图 */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

/* 视频播放图标覆盖层 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.video-item:hover .video-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.video-overlay i {
  font-size: 60px;
  color: #fff;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-item:hover .video-overlay i {
  opacity: 1;
  transform: scale(1.1);
}

/* 视频时长标签 */
.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

/* 视频内容 */
.video-content {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 50px;
}

.video-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.video-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.video-download-btn {
  width: 100%;
  justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .download-container {
    padding: 30px 15px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-title i {
    font-size: 28px;
  }

  .category-tabs {
    gap: 10px;
  }

  .tab-button {
    padding: 10px 24px;
    font-size: 14px;
  }

  .tab-button i {
    font-size: 18px;
  }

  /* 文件列表移动端优化 */
  .download-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .item-icon {
    width: 50px;
    height: 50px;
  }

  .item-icon i {
    font-size: 28px;
  }

  .item-title {
    font-size: 16px;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }

  .item-description {
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }

  .item-meta {
    gap: 12px;
  }

  .meta-item {
    font-size: 12px;
  }

  .item-action {
    width: 100%;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  /* 视频列表移动端优化 */
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-thumbnail {
    height: 200px;
  }

  .video-content {
    padding: 15px;
  }

  .video-title {
    font-size: 16px;
    min-height: 44px;
  }

  .video-description {
    font-size: 13px;
    min-height: 38px;
  }

  .video-meta {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    flex-direction: column;
    gap: 12px;
  }

  .tab-button {
    width: 100%;
    justify-content: center;
  }

  .video-thumbnail {
    height: 180px;
  }
}

/* ========== 视频播放弹窗样式 ========== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.video-modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 弹窗头部 */
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafafa;
}

.video-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 20px;
}

.video-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.video-modal-close:hover {
  background-color: #f5f5f5;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.video-modal-close i {
  font-size: 20px;
}

/* 弹窗主体 */
.video-modal-body {
  flex: 1;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  outline: none;
}

/* 弹窗底部 */
.video-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.video-modal-description {
  flex: 1;
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.video-modal-footer .download-btn {
  flex-shrink: 0;
}

/* 响应式 - 视频弹窗 */
@media (max-width: 768px) {
  .video-modal {
    padding: 10px;
  }

  .video-modal-content {
    max-height: 95vh;
  }

  .video-modal-header {
    padding: 15px 20px;
  }

  .video-modal-title {
    font-size: 16px;
  }

  .video-modal-close {
    width: 32px;
    height: 32px;
  }

  .video-modal-close i {
    font-size: 18px;
  }

  .video-player {
    max-height: 60vh;
  }

  .video-modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 20px;
  }

  .video-modal-description {
    font-size: 13px;
  }

  .video-modal-footer .download-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .video-modal-header {
    padding: 12px 15px;
  }

  .video-modal-title {
    font-size: 14px;
  }

  .video-player {
    max-height: 50vh;
  }

  .video-modal-footer {
    padding: 12px 15px;
  }
}
