/*
 * 产业白皮书 / 政策服务包 — 内容详情页专用样式
 * 配合：whitepaper-content-stl.html
 * 依赖：stl-pages.css（.wrap 等基础布局）
 */

.wp-detail-page {
  min-height: 100vh;
  background: #f9fafb;
}

.wp-detail-hero {
  color: #fff;
  padding: 48px 0 40px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
}

.wp-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.wp-detail-back:hover {
  color: #fff;
  text-decoration: none;
}

.wp-detail-hero__channel {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
}

.wp-detail-hero__title {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.wp-detail-sec {
  padding: 40px 0 56px;
}

.wp-detail-wrap {
  max-width: 960px;
}

.wp-detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px;
}

.wp-detail-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
}

.wp-detail-head__title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.wp-detail-head__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #6b7280;
}

.wp-detail-head__meta svg {
  flex-shrink: 0;
}

.wp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.wp-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wp-detail-btn:hover {
  background: #f9fafb;
  text-decoration: none;
}

.wp-detail-btn--preview::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-detail-btn--download {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.wp-detail-btn--download::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-detail-btn--download:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.wp-detail-body {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.9;
}

.wp-detail-body h3,
.wp-detail-body h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.wp-detail-body p {
  margin: 0 0 1.25rem;
}

.wp-detail-body ul,
.wp-detail-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.wp-detail-body img {
  max-width: 100%;
  height: auto;
}

.wp-detail-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}

.wp-detail-foot__btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  color: #374151;
  background: #f3f4f6;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.wp-detail-foot__btn:hover {
  background: #e5e7eb;
  text-decoration: none;
}

@media (max-width: 640px) {
  .wp-detail-card {
    padding: 24px 20px;
  }
}
