/* ==========================================================
   夺标标书 投标资讯详情页专属样式
   公共头部 / 公共底部 / 面包屑 / 基础重置 见 common.css
   ========================================================== */

/* 面包屑背景与正文区一致 */
.breadcrumb { background: #f7f7f8; }

/* ============ 详情正文区 ============ */
.detail-section {
  background: #f7f7f8;
  padding: 50px 0 60px;
}

.detail-card {
  background: #fff;
  padding: 40px 30px;
}

.detail-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 22px;
}

.detail-meta {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 36px;
}

.detail-meta .meta-sep {
  margin: 0 12px;
  color: var(--gray-light);
}

.detail-content {
  max-width: 100%;
  margin: 0 auto;
  font-size: 15px;
  color: #333;
  line-height: 1.95;
}

.detail-content p {
  margin: 18px 0;
}

.detail-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
}

.detail-content .sub-title {
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
}

/* ============ 上一篇 / 下一篇 ============ */
.prev-next {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.pn-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #eee;
  padding: 20px 22px;
  transition: border-color .2s;
}

.pn-label {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--gray);
}

.pn-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pn-item:hover {
  border-color: var(--red);
}

.pn-item:hover .pn-label,
.pn-item:hover .pn-title {
  color: var(--red);
}

/* 友情链接浅灰底 */
.friend-links { background: #F8F8F8; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1024px) {
  .detail-section { padding: 36px 0 44px; }
}

@media (max-width: 768px) {
  .detail-section { padding-top: 20px; }
  .detail-card { padding: 28px 20px; }

  .detail-title { font-size: 20px; margin-bottom: 16px; }
  .detail-meta { font-size: 12px; margin-bottom: 26px; }
  .detail-meta .meta-sep { margin: 0 8px; }

  .detail-content { font-size: 14px; line-height: 1.9; }
  .detail-content h3 { font-size: 16px; margin: 22px 0 10px; }

  .prev-next { flex-direction: column; }

  .pn-item {
    gap: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }

  /* WAP 端本页友情链接照常显示 */
  .friend-links .section-head,
  .friend-links .link-list { display: block; }
  .friend-links .link-list { margin-top: 18px; font-size: 12px; line-height: 2.2; }
  .friend-logo { margin-top: 22px; }
  .friend-logo img { width: 260px; }
}

@media (max-width: 480px) {
  .detail-title { font-size: 18px; }
  .pn-title { font-size: 14px; }
}

/* ============ 后台富文本正文适配 + 空上下篇 ============ */
.detail-content img,
.detail-content table,
.detail-content iframe,
.detail-content video {
  max-width: 100%;
  height: auto;
}

.detail-content table { border-collapse: collapse; }

.detail-content table td,
.detail-content table th {
  border: 1px solid #e6e6e6;
  padding: 8px 12px;
}

.detail-content a { color: var(--red); }

.pn-item.is-empty { cursor: default; }

.detail-content img {
  display: block;
  margin: 14px auto;
}
