/* ==================================================
   唐人日报 · 专题聚焦最终版 v36
   固定结构：左侧小头像/Logo，右侧只显示必要信息
================================================== */

.topic-focus-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* 每一张专题卡 */
.topic-focus-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;

  position: relative !important;
  width: 100% !important;
  min-height: 138px !important;
  height: auto !important;
  padding: 16px !important;
  box-sizing: border-box !important;

  border: 1px solid transparent;
  border-radius: 18px;
  overflow: hidden;

  color: #111827;
  text-decoration: none;
}

/* 左侧小头像、小Logo：固定居中，不再往下掉 */
.topic-focus-icon {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  float: none !important;

  display: block !important;
  align-self: center !important;

  width: 64px !important;
  height: 76px !important;
  max-width: 64px !important;
  max-height: 76px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px;
}

/* 右侧文字区域 */
.topic-focus-copy {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 专题名称 */
.topic-focus-copy h3 {
  margin: 0 0 4px !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;

  overflow-wrap: anywhere;
}

/* 专题说明 */
.topic-focus-copy > p {
  margin: 0 0 7px !important;

  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* 实时追踪、自动更新标签 */
.topic-status {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  gap: 5px !important;

  min-height: 22px;
  padding: 2px 8px !important;

  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);

  color: #475569;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1;
}

.topic-status i {
  display: block;
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #ef233c;
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.12);
}

/* 只显示最新一条动态标题 */
.topic-latest {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  min-width: 0;
  margin: 8px 0 0 !important;
  padding: 0 !important;

  border: 0 !important;
  color: #1f2937;
}

/* 清除旧版内部白色小卡 */
.topic-update,
.topic-latest .topic-card,
.topic-latest .ice-card,
.topic-latest .ice-text-card {
  display: block !important;

  width: auto !important;
  min-height: 0 !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 最新动态标题 */
.topic-update strong,
.topic-latest h3 {
  display: -webkit-box !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* 强制删除不需要的摘要、时间、来源、重复图片 */
.topic-update p,
.topic-time,
.topic-source,
.topic-latest img,
.topic-latest small,
.ice-update img,
.topic-latest .ice-card p,
.topic-latest .ice-text-card p {
  display: none !important;
}

/* 特朗普 */
.topic-trump {
  border-color: #ffc8cf;
  background: linear-gradient(135deg, #fff8f8 0%, #ffecef 100%);
}

.topic-trump .topic-focus-copy h3,
.topic-trump .topic-update strong {
  color: #c8141e;
}

/* ICE */
.topic-ice {
  border-color: #badcff;
  background: linear-gradient(135deg, #f5faff 0%, #e7f3ff 100%);
}

.topic-ice .topic-focus-copy h3,
.topic-ice .topic-update strong {
  color: #07549b;
}

/* 中期选举 */
.topic-election {
  border-color: #b8eadc;
  background: linear-gradient(135deg, #f4fffb 0%, #e8faf4 100%);
}

.topic-election .topic-focus-copy h3,
.topic-election .topic-update strong {
  color: #007d62;
}

.topic-election .topic-status i {
  background: #0bb78b;
  box-shadow: 0 0 0 3px rgba(11, 183, 139, 0.12);
}

/* ==================================================
   手机端
================================================== */

@media (max-width: 767px) {
  .topic-focus-list {
    gap: 14px;
  }

  .topic-focus-card {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 16px !important;

    min-height: 150px !important;
    padding: 18px !important;
    border-radius: 20px;
  }

  .topic-focus-icon {
    width: 72px !important;
    height: 86px !important;
    max-width: 72px !important;
    max-height: 86px !important;
  }

  .topic-focus-copy h3 {
    font-size: 20px !important;
  }

  .topic-focus-copy > p {
    font-size: 13px !important;
  }

  .topic-status {
    min-height: 24px;
    padding: 3px 9px !important;
    font-size: 11px !important;
  }

  .topic-update strong,
  .topic-latest h3 {
    font-size: 14px !important;
  }
}

/* 极窄手机 */
@media (max-width: 390px) {
  .topic-focus-card {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 13px !important;

    min-height: 136px !important;
    padding: 15px !important;
  }

  .topic-focus-icon {
    width: 62px !important;
    height: 74px !important;
    max-width: 62px !important;
    max-height: 74px !important;
  }

  .topic-focus-copy h3 {
    font-size: 18px !important;
  }

  .topic-focus-copy > p {
    font-size: 12px !important;
  }

  .topic-update strong,
  .topic-latest h3 {
    font-size: 13px !important;
  }
}
