/* ==========================================================================
   秦岭热线 · 焦点模块（focus-live）版块头美化补丁
   文件：/assets/fl-headline-beautify.css
   作用域：仅 .focus-live .fl-headline（焦点/商务合作板块的「大标题 + 标签行」）
   设计：金线 kicker → 主标题 → 胶囊标签 → 渐变收尾细线
   说明：编译产物 Home-*.css 带 data-v 作用域与 !important，这里用 .hp .focus-live
        前缀提升特异性覆盖，不改动编译包。
   ========================================================================== */

/* ---------- 1. 版块头容器：去生硬底线，重排上下留白 ---------- */
.hp .focus-live .fl-headline {
  position: relative !important;
  padding: 16px 0 24px !important;
  margin-bottom: 26px !important;
  border-bottom: 0 !important;
  text-align: center;
}

/* 顶部金色 kicker 短条（替代原先孤悬底部的蓝色横条） */
.hp .focus-live .fl-headline::before {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C8962E 0%, #E5B94E 55%, #C8962E 100%);
  box-shadow: 0 0 0 4px rgba(200, 150, 46, .07);
}

/* 底部收尾：中轴金色 → 两端淡出的极细渐变线（替代 80px 蓝色粗条 + 全宽灰底线） */
.hp .focus-live .fl-headline::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    rgba(0, 58, 112, 0) 0%,
    rgba(0, 58, 112, .20) 16%,
    rgba(200, 150, 46, .62) 50%,
    rgba(0, 58, 112, .20) 84%,
    rgba(0, 58, 112, 0) 100%
  ) !important;
}

/* ---------- 2. 主标题：加大字号层级、正字距、柔和过渡 ---------- */
.hp .focus-live .fl-big-title {
  max-width: 1180px !important;
  margin: 0 auto !important;
  font-size: 30px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  letter-spacing: .6px !important;
  color: #002040 !important;
  transition: color .25s ease !important;
}

.hp .focus-live .fl-big-title:hover {
  color: #0B4F8A !important;
}

/* ---------- 3. 标签行：方括号行 → 胶囊 chip ---------- */
.hp .focus-live .fl-subline {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px !important;
  line-height: 1.6 !important;
  font-size: 13px !important;
}

.hp .focus-live .fl-sub-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 15px 6px 12px !important;
  border-radius: 999px;
  background: #F5F8FC;
  border: 1px solid #E2EAF6;
  color: #4A5568 !important;
  font-size: 12.5px !important;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease,
              transform .22s ease, box-shadow .22s ease;
}

/* 胶囊左侧金色小圆点 */
.hp .focus-live .fl-sub-link::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8962E 0%, #E5B94E 100%);
}

.hp .focus-live .fl-sub-link:hover {
  background: #FFFFFF;
  border-color: rgba(0, 58, 112, .32);
  color: #003A70 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 58, 112, .10);
}

/* 隐藏旧的 [ ] 括号与 | 分隔符 */
.hp .focus-live .fl-sub-bracket,
.hp .focus-live .fl-sub-sep {
  display: none !important;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .hp .focus-live .fl-big-title { font-size: 27px !important; }
}

@media (max-width: 768px) {
  .hp .focus-live .fl-headline {
    padding: 14px 0 18px !important;
    margin-bottom: 16px !important;
  }
  .hp .focus-live .fl-headline::before {
    width: 36px;
    height: 2.5px;
  }
  .hp .focus-live .fl-big-title {
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
    letter-spacing: .3px !important;
  }
  .hp .focus-live .fl-subline {
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 7px !important;
    margin-top: 12px !important;
  }
  /* 移动端空间有限：胶囊退化为「金点 + 左对齐文字」的紧凑列表，三行等宽成块更齐 */
  .hp .focus-live .fl-sub-link {
    display: flex !important;
    padding: 0 0 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    color: #5A6472 !important;
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
    transform: none !important;
  }
  .hp .focus-live .fl-sub-link::before {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 480px) {
  .hp .focus-live .fl-big-title { font-size: 18px !important; }
  .hp .focus-live .fl-sub-link {
    padding: 0 0 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 11.5px !important;
  }
}

/* 尊重系统「减弱动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .hp .focus-live .fl-sub-link,
  .hp .focus-live .fl-big-title {
    transition: none !important;
  }
  .hp .focus-live .fl-sub-link:hover {
    transform: none !important;
  }
}
