/**
 * 资料下载页面样式
 * 遵循项目BEM命名规范
 */

/* ============================================
   Hero Banner
   ============================================ */
.download-hero {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.download-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
}

.download-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.download-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.download-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  background: #f5f5f5;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb__link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: #999;
}

.breadcrumb__current {
  color: var(--color-primary);
  font-weight: 500;
}

/* ============================================
   资料下载主体区域
   ============================================ */
.download-main {
  padding: 60px 0 80px;
  background: #f8f9fa;
  min-height: calc(100vh - 267px);
}

.download-main__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   栏目Tab切换
   ============================================ */
.download-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.download-tabs__item {
  position: relative;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  color: #666666;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-tabs__item i {
  font-size: 16px;
}

.download-tabs__item:hover {
  color: var(--color-primary);
  background-color: rgba(208, 2, 27, 0.05);
}

.download-tabs__item--active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  box-shadow: 0 4px 15px rgba(208, 2, 27, 0.3);
}

.download-tabs__item--active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
}

.download-tabs__item--active i {
  color: #ffffff;
}

/* ============================================
   资料列表区域
   ============================================ */
.download-content {
  position: relative;
  min-height: 400px;
}

.download-list {
  display: none;
}

.download-list--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.download-list__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 空白状态 */
.download-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  color: #9ca3af;
}

.download-list__empty i {
  font-size: 64px;
  margin-bottom: 24px;
  color: #e5e7eb;
}

.download-list__empty p {
  font-size: 16px;
  margin: 0;
  color: #9ca3af;
}

/* ============================================
   资料卡片
   ============================================ */
.download-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.download-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 文件图标 */
.download-item__icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-item__icon i {
  font-size: 28px;
  color: var(--color-primary);
}

/* 文件信息 */
.download-item__info {
  flex: 1;
  min-width: 0;
}

.download-item__title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.download-item__desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-item__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #9ca3af;
}

.download-item__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-item__meta i {
  font-size: 12px;
}

/* 下载按钮 */
.download-item__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(208, 2, 27, 0.25);
}

.download-item__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.35);
}

.download-item__btn i {
  font-size: 14px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
  .download-main__container {
    padding: 0 30px;
  }

  .download-tabs__item {
    padding: 14px 28px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .download-hero {
    height: 220px;
  }

  .download-hero__title {
    font-size: 32px;
  }

  .download-hero__subtitle {
    font-size: 16px;
  }

  .download-main {
    padding: 40px 0 60px;
  }

  .download-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .download-tabs__item {
    padding: 12px 20px;
    font-size: 13px;
  }

  .download-item {
    flex-wrap: wrap;
    padding: 20px;
    gap: 16px;
  }

  .download-item__icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
  }

  .download-item__icon i {
    font-size: 24px;
  }

  .download-item__info {
    flex: 1 1 calc(100% - 80px);
  }

  .download-item__btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
}

@media (max-width: 640px) {
  .download-hero {
    height: 180px;
    padding-top: 60px;
  }

  .download-hero__title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .download-hero__subtitle {
    font-size: 14px;
  }

  .breadcrumb__container {
    padding: 0 20px;
    font-size: 13px;
  }

  .download-main__container {
    padding: 0 16px;
  }

  .download-tabs {
    padding: 6px;
    margin-bottom: 30px;
  }

  .download-tabs__item {
    padding: 10px 14px;
    font-size: 12px;
    gap: 6px;
  }

  .download-tabs__item i {
    font-size: 14px;
  }

  .download-item {
    padding: 16px;
  }

  .download-item__title {
    font-size: 15px;
  }

  .download-item__desc {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .download-item__meta {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
}
