/* ========================================
   详情页样式 —— 匹配整体浅色蓝调风格
   ======================================== */

/* ---- 面包屑区域（与列表页一致）---- */
.detail-breadcrumb {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 50%, #4f46e5 100%);
  padding: 50px 0 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.detail-breadcrumb::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.detail-breadcrumb::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.detail-breadcrumb .container {
  position: relative;
  z-index: 1;
}

.detail-breadcrumb h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.detail-breadcrumb .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  font-size: 14px;
  gap: 6px;
}

.detail-breadcrumb .breadcrumb li {
  color: rgba(255,255,255,0.7);
}

.detail-breadcrumb .breadcrumb li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-breadcrumb .breadcrumb li a:hover {
  color: #fff;
}

.detail-breadcrumb .breadcrumb li:not(:last-child)::after {
  content: '\f105';
  font-family: 'FontAwesome';
  margin-left: 6px;
  color: rgba(255,255,255,0.4);
}

.detail-breadcrumb .breadcrumb li.active {
  color: rgba(255,255,255,0.65);
}

/* ---- 主体区域 ---- */
.detail-main-area {
  padding: 50px 0 30px;
  background: #f8fafc;
}

.detail-content-col {
  flex: 0 0 68%;
  max-width: 68%;
  padding: 0 15px;
}

.detail-sidebar-col {
  flex: 0 0 32%;
  max-width: 32%;
  padding: 0 15px;
}

/* ---- 文章卡片 ---- */
.detail-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

/* 头图 */
.detail-hero-img {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #e2e8f0;
}

.detail-hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* 文章主体 */
.detail-body {
  padding: 32px 36px 36px;
}

/* 信息标签条 */
.detail-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-info-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
  padding: 7px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.detail-info-item i {
  color: #1a56db;
  font-size: 13px;
}

.detail-info-item--contact {
  background: #eff6ff;
  color: #1a56db;
  font-weight: 600;
}

.detail-info-item--contact i {
  color: #1a56db;
}

/* 文章标题 */
.detail-title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.4;
  margin: 0 0 28px;
}

/* 文章内容 */
.detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
  word-break: break-word;
}

.detail-content p {
  margin-bottom: 18px;
}

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
  font-family: 'Ubuntu', sans-serif;
  color: #1a202c;
  margin: 28px 0 14px;
}

.detail-content h2 { font-size: 24px; }
.detail-content h3 { font-size: 20px; }
.detail-content h4 { font-size: 17px; }

.detail-content ul,
.detail-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.detail-content ul li,
.detail-content ol li {
  margin-bottom: 8px;
}

.detail-content blockquote {
  border-left: 4px solid #1a56db;
  background: #f8fafc;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-style: italic;
}

.detail-content a {
  color: #1a56db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-content a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.detail-content table th,
.detail-content table td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left;
}

.detail-content table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1a202c;
}

.detail-content table tr:hover td {
  background: #f8fafc;
}

/* ---- 无头图的详情页 ---- */
.detail-card--no-img .detail-body {
  padding-top: 28px;
}

/* 顶部装饰线（无图时） */
.detail-card--no-img {
  border-top: 4px solid #1a56db;
}

/* ---- 侧边栏（与列表页一致）---- */
.detail-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sidebar-widget h4 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.sidebar-widget h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #1a56db;
  border-radius: 1px;
}

/* 热门信息条目 */
.sidebar-post-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.sidebar-post-item:first-child {
  padding-top: 0;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.sidebar-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-post-item:hover .sidebar-post-img img {
  transform: scale(1.1);
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-info h5 {
  color: #1a56db;
}

.sidebar-post-info .post-date {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-post-info .post-date i {
  font-size: 11px;
}

/* ---- 响应式 ---- */
@media (max-width: 991px) {
  .detail-content-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .detail-sidebar-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .detail-breadcrumb h2 {
    font-size: 28px;
  }
  .detail-hero-img img {
    height: 300px;
  }
  .detail-title {
    font-size: 24px;
  }
  .detail-body {
    padding: 24px 24px 28px;
  }
}

@media (max-width: 767px) {
  .detail-main-area {
    padding: 30px 0 10px;
  }
  .detail-breadcrumb {
    padding: 36px 0 32px;
  }
  .detail-breadcrumb h2 {
    font-size: 22px;
  }
  .detail-hero-img img {
    height: 220px;
  }
  .detail-title {
    font-size: 20px;
  }
  .detail-body {
    padding: 18px 16px 22px;
  }
  .detail-info-bar {
    gap: 8px 12px;
  }
  .detail-info-item {
    font-size: 12px;
    padding: 5px 10px;
  }
  .detail-content {
    font-size: 14px;
  }
}
