/* ==========================================================
   专题聚合页 /topic/{id}
   仅 topic_detail.php 加载；主题色由页面内联渐变覆盖
   ========================================================== */

/* ---------- 页头 ---------- */
.tp-hero {
  padding: 30px 0 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tp-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 66%);
  pointer-events: none;
}
.tp-crumb {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.tp-crumb a { color: rgba(255, 255, 255, .82); }
.tp-crumb a:hover { color: #fff; }
.tp-crumb span { margin: 0 7px; opacity: .55; }
.tp-crumb em { font-style: normal; color: #fff; }

.tp-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.tp-hero-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}
.tp-hero-text h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.tp-hero-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 12px;
}
.tp-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-hero-tags span {
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tp-hero-tags i { font-size: 11.5px; opacity: .85; }

/* ---------- 板块 ---------- */
.tp-sec { margin-bottom: 40px; }
.tp-sec:last-of-type { margin-bottom: 10px; }
.tp-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E9EFF7;
}
.tp-sec-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark, #14233A);
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.tp-sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--primary, #0053CC);
}
.tp-sec-more {
  font-size: 13px;
  color: #6B7C93;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.tp-sec-more:hover { color: var(--primary, #0053CC); }
.tp-sec-more i { font-size: 11px; margin-left: 3px; }

/* ---------- 资讯列表 ---------- */
.tp-newslist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tp-newsitem {
  display: flex;
  gap: 15px;
  background: #fff;
  border: 1px solid #E6EDF6;
  border-radius: 10px;
  padding: 15px 17px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tp-newsitem:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 36, 64, .09);
  border-color: #CFE0F5;
}
.tp-newsitem-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-size: 20px;
}
.tp-newsitem-body { min-width: 0; flex: 1; }
.tp-newsitem-body h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark, #14233A);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}
.tp-newsitem:hover h3 { color: var(--primary, #0053CC); }
.tp-newsitem-body p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #7C8CA3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-newsitem-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #93A2B7;
  flex-wrap: wrap;
}
.tp-newsitem-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tp-newsitem-meta .tag {
  background: #EEF4FE;
  color: #3B6DB5;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11.5px;
}

/* ---------- 其他专题 ---------- */
.tp-otherlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tp-otheritem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E6EDF6;
  border-left: 3px solid #4a6cf7;
  border-radius: 9px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.tp-otheritem:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 36, 64, .08);
}
.tp-otheritem .ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.tp-otheritem .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-otheritem .tx b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark, #14233A);
}
.tp-otheritem .tx em {
  font-style: normal;
  font-size: 11.5px;
  color: #8C9BB0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199.98px) {
  .tp-newslist { grid-template-columns: repeat(2, 1fr); }
  .tp-otherlist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .tp-hero { padding: 24px 0 26px; }
  .tp-hero-icon { width: 56px; height: 56px; border-radius: 15px; font-size: 23px; }
  .tp-hero-text h1 { font-size: 24px; }
  .tp-newslist { grid-template-columns: 1fr; }
  .tp-otherlist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .tp-hero-main { gap: 14px; align-items: flex-start; }
  .tp-hero-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 19px; }
  .tp-hero-text h1 { font-size: 20px; letter-spacing: 1px; }
  .tp-hero-text p { font-size: 12.5px; }
  .tp-hero-tags span { font-size: 11.5px; padding: 3px 9px; }
  .tp-sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tp-sec-head h2 { font-size: 17px; }
  .tp-otherlist { grid-template-columns: 1fr; }
  .tp-newsitem { padding: 12px 13px; gap: 12px; }
  .tp-newsitem-thumb { width: 46px; height: 46px; font-size: 17px; }
}
