/* PDF下载展示区域样式 */
.download-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  min-height: 60vh;
}

.download-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 102, 218, 0.15);
}

.pdf-preview-link {
  display: block;
  text-decoration: none;
  margin-bottom: 20px;
}

.pdf-preview {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pdf-preview:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.pdf-thumbnail {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-preview:hover .pdf-thumbnail {
  transform: scale(1.05);
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 102, 218, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

.pdf-preview .pdf-thumbnail,
.pdf-preview .pdf-overlay {
  pointer-events: none;
}

.pdf-overlay i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.pdf-preview:hover .pdf-overlay {
  opacity: 1;
}

.pdf-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.btn-download {
  background: linear-gradient(135deg, #0066da, #4a90e2);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.btn-download:hover {
  background: linear-gradient(135deg, #0055b8, #3d7bc6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 218, 0.3);
  color: white;
}

.btn-download i {
  font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .pdf-preview {
    height: 250px;
  }

  .pdf-title {
    font-size: 1.25rem;
  }

  .download-card {
    padding: 20px;
  }
}

/* PDF加载占位符 */
.pdf-preview.loading {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.pdf-preview.loading::before {
  content: '\F1C1';
  font-family: 'bootstrap-icons';
  font-size: 5rem;
  color: #94a3b8;
  position: absolute;
  z-index: 1;
}

.pdf-preview.loading::after {
  content: '加载中...';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #64748b;
  font-size: 0.9rem;
  z-index: 1;
}
