/* ============================================================
   CHTV健康100 · 头条风全站主题 v447
   变更：1) 导航回归品牌蓝 #1E5BB5（顶条/logo竖条/active/hover）
        2) 排版头条化：区块标题左对齐+蓝色竖条、小圆角、
           扁平卡片、去大阴影与上浮、按钮改直角圆角
   内容强调色仍保留头条红 #F04142（标签/选中/滚动条）。
   本文件在 css/h5.css 之后注入，同名规则以后加载者为准。
   v447  2026-11-27
   ============================================================ */
:root {
  --tt-red: #F04142;
  --tt-red-dark: #D93A3B;
  --tt-red-50: #FEF1F1;
  --tt-red-100: #F8D7D7;
  --tt-blue: #1E5BB5;
  --tt-blue-dark: #174A8F;
  --tt-blue-50: #F0F5FF;
  --tt-blue-100: #D6E4FF;
  --tt-line: #E8ECF0;
}

/* ============================================================
   A. 导航（蓝色系）
   ============================================================ */

/* ---------- A1) 顶部蓝色顶条 ---------- */
.navbar { border-top: 3px solid var(--tt-blue) !important; }

/* ---------- A2) logo 左侧蓝色竖条 ---------- */
.nav-logo { position: relative; padding-left: 12px !important; }
.nav-logo::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 26px; border-radius: 2px;
  background: var(--tt-blue);
}

/* ---------- A3) 桌面导航：active / hover 蓝 ---------- */
.navbar .nav-link { transition: color .15s, background .15s; }
.navbar .nav-link:hover {
  color: var(--tt-blue) !important;
  background: var(--tt-blue-50) !important;
}
.navbar .nav-link.active {
  color: var(--tt-blue) !important;
  background: var(--tt-blue-50) !important;
  font-weight: 700 !important;
}

/* ---------- A4) 移动端抽屉 active 同步蓝 ---------- */
html.nav-open .navbar .nav-links .nav-link.active {
  color: var(--tt-blue) !important;
  background: var(--tt-blue-50) !important;
}
html.nav-open .navbar .nav-links.sub .nav-link.active,
html.nav-open .navbar .nav-links.sub .nav-sub-link.active {
  color: #fff !important;
  background: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
}

/* ============================================================
   B. 排版头条化 · 区块标题
   头条式：左对齐 + 标题前蓝色竖条，去居中、去装饰下划线
   ============================================================ */
.sec-hd { text-align: left !important; margin-bottom: 20px !important; }
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px !important; font-weight: 700 !important;
  letter-spacing: -.3px !important; line-height: 1.3 !important;
}
.sec-title::before {
  content: ''; flex: 0 0 4px; width: 4px; height: 20px;
  border-radius: 2px; background: var(--tt-blue);
}
/* 去掉旧的居中渐变下划线 */
.sec-title::after { display: none !important; }
.sec-desc { text-align: left !important; margin-top: 8px !important; }
.sec-tag { display: none !important; }

/* ============================================================
   C. 排版头条化 · 扁平卡片与紧凑密度
   ============================================================ */

/* ---------- C1) 通用卡片：小圆角 + 细边 + 轻悬停 ---------- */
.card, .module-card, .platform-card, .report-card, .book-card {
  border-radius: 8px !important;
  border-color: var(--tt-line) !important;
}
.card:hover, .module-card:hover, .report-card:hover, .book-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}
.platform-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}
.platform-card { border-top-width: 2px !important; }

/* ---------- C2) 首页：产品目录六卡（cap-card）压平 ---------- */
#plates .cap-card {
  border-radius: 10px !important;
  border-color: var(--tt-line) !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
#plates .cap-card:hover {
  transform: none !important;
  border-color: var(--tt-blue-100) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .07) !important;
}
#plates .cap-card::before { display: none !important; }
#plates .cap-icon {
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: none !important;
}
#plates .cap-card:hover .cap-icon { transform: none !important; }
#plates .cap-btn {
  border-radius: 6px !important;
  background: var(--tt-blue) !important;
  box-shadow: none !important;
}
#plates .cap-card:hover .cap-btn { box-shadow: none !important; }
#plates .cap-name { letter-spacing: -.2px; }
#plates .cap-tags span { border-radius: 4px !important; }

/* ---------- C3) 首页：最新发布（latest-item）头条资讯条 ---------- */
#latest .latest-item {
  border-radius: 8px !important;
  border-color: var(--tt-line) !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease !important;
}
#latest .latest-item:hover {
  transform: none !important;
  background: #F7F8FA !important;
  border-color: #D9DFE7 !important;
  box-shadow: none !important;
}
#latest .latest-item::before { display: none !important; }
#latest .l-tag {
  border-radius: 4px !important;
  padding: 2px 8px !important;
}
#latest .l-title { font-weight: 700 !important; }

/* ---------- C4) 首页：六大产品说明区收紧 ---------- */
#products .prod-no {
  border-radius: 4px !important;
  background: var(--tt-blue-50) !important;
  border-color: var(--tt-blue-100) !important;
}
#products .prod-no::before { box-shadow: none !important; }
#products .prod-name { font-size: 21px !important; letter-spacing: -.4px; }
#products .prod-index a {
  border-radius: 6px !important;
  box-shadow: none !important;
}
#products .prod-index a:hover {
  transform: none !important;
  box-shadow: none !important;
}
#products .prod-side {
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #F9FBFD !important;
}
#products .prod-act .cta-btn { border-radius: 8px !important; box-shadow: none !important; }
#products .prod-act .cta-btn:hover { transform: none !important; box-shadow: none !important; }

/* ---------- C5) 首页：Hero 收紧 ---------- */
#hero { padding-bottom: 52px !important; }
#hero .hero-title { font-size: 44px !important; letter-spacing: -1px !important; }
#hero .hero-title .accent-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--tt-red) !important;
}
#hero .hp-search {
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06) !important;
}
#hero .hp-search button {
  border-radius: 6px !important;
  background: var(--tt-blue) !important;
  box-shadow: none !important;
}
#hero .hp-search button:hover { background: var(--tt-blue-dark) !important; box-shadow: none !important; }
#hero .hp-hot a { border-radius: 4px !important; }
#hero .hp-hot a:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--tt-blue) !important;
}
#hero .hero-cta .cta-btn {
  border-radius: 8px !important;
  box-shadow: none !important;
}
#hero .hero-cta .cta-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}
#hero .hero-stat {
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: none !important;
}
#hero .hero-stat:hover { transform: none !important; box-shadow: none !important; }
#hero .hero-stat b {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--tt-blue) !important;
  letter-spacing: -.5px;
}
#hero .hero-kicker { border-radius: 6px !important; box-shadow: none !important; }

/* ---------- C6) 首页：加入我们横幅收紧 ---------- */
#join .join-box { border-radius: 12px !important; box-shadow: none !important; }
#join .join-btn { border-radius: 8px !important; }
#join .join-btn.white { box-shadow: none !important; }
#join .join-btn:hover { transform: none !important; }

/* ---------- C7) 全站按钮：去胶囊化（头条式直角圆角） ---------- */
.cta-btn, .join-btn, .module-enter { border-radius: 8px !important; }
.cta-btn:hover { transform: none !important; }

/* ============================================================
   D. 内容强调色（保留头条红）
   ============================================================ */

/* ---------- D1) 文章页标签徽章 ---------- */
.art-tag {
  color: var(--tt-red) !important;
  background: var(--tt-red-50) !important;
  border-color: var(--tt-red-100) !important;
}

/* ---------- D2) 列表标题 hover ---------- */
.rpt-item:hover .rpt-title { color: var(--tt-red) !important; }

/* ---------- D3) 页脚顶条 ---------- */
footer.site-foot, .footer.site-footer { border-top: 2px solid var(--tt-line); }

/* ---------- D4) 选中文本 / 滚动条 ---------- */
::selection { background: var(--tt-red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F7F8FA; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ---------- D5) 移动端返回悬浮钮 ---------- */
.h5-back-fab {
  background: var(--tt-blue) !important;
  border-color: var(--tt-blue) !important;
}

/* ============================================================
   F) 首页「最新发布」头条式资讯条（v448）
   本文件全站加载，首页亦在其中；article-interact.css 仅文章页加载
   ============================================================ */
#latest .latest-grid {
  display: block !important;
  border-top: 1px solid #E8ECF0 !important;
}
#latest .latest-item {
  display: flex !important; align-items: center !important; gap: 14px !important;
  padding: 14px 6px !important;
  border: none !important; border-bottom: 1px solid #EDEFF2 !important;
  border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important; overflow: visible !important;
}
#latest .latest-item:hover {
  transform: none !important; box-shadow: none !important;
  background: #F7F9FC !important; border-color: #E4E9F0 !important;
}
#latest .latest-item::before { display: none !important; }
#latest .l-tag {
  flex: 0 0 auto !important; order: 0;
  margin: 0 !important; font-size: 11.5px !important;
  color: #1E5BB5 !important; background: #F0F5FF !important;
  border-radius: 3px !important; padding: 3px 8px !important;
}
#latest .l-title {
  flex: 1 1 auto !important; order: 1; min-width: 0;
  margin: 0 !important; font-size: 16px !important; font-weight: 600 !important;
  line-height: 1.5 !important; color: #1F2329 !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#latest .latest-item:hover .l-title { color: #F04142 !important; }
#latest .l-date {
  flex: 0 0 auto !important; order: 2;
  font-size: 12px !important; color: #9AA6B6 !important;
}
@media (max-width: 768px) {
  #latest .latest-item { flex-wrap: wrap !important; gap: 8px 10px !important; }
  #latest .l-title { flex: 1 1 100% !important; order: 2; white-space: normal !important; font-size: 15px !important; }
  #latest .l-date { order: 1; }
}

/* ============================================================
   G) v452 视觉精修：去渐变光晕、收敛层级、紧凑留白
   ============================================================ */

/* ---------- G1) 首页 Hero：纯净底色 ---------- */
#hero { background: #FAFBFC !important; }
#hero .hero-inner { max-width: 860px !important; }

/* ---------- G1-b) v455 背景网格恢复 ----------
   用户反馈首页网格好看，恢复：上面 G1 已不再隐藏 #hero::before，
   首页沿用 index.html 内联的原始网格定义（0.05 / 54px / 径向淡出蒙版）。
   企业服务门户复用完全相同的参数，由 .hero--grid 挂载，视觉一致。 */
.hero--grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30,91,181,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,91,181,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 26%, #000 0%, rgba(0,0,0,0) 88%);
  mask-image: radial-gradient(ellipse 100% 92% at 50% 26%, #000 0%, rgba(0,0,0,0) 88%);
}
.hero--grid { position: relative !important; overflow: hidden !important; }
.hero--grid .hero-inner { position: relative; z-index: 1; }

/* ---------- G1-c) v456 一级栏目页 Hero：与首页同风格 ----------
   挂载到 7 个一级/门户页（.hero--grid）。用 :not(#hero) 提升特异性，
   压过 G3 段的通用 hero 规则，确保只影响这些页面，不波及其余栏目/文章页。
   保留 v454 的 padding-top 自适应（导航遮挡修复）不动。 */
.hero:not(#hero).hero--grid {
  border-bottom: 1px solid #E9EFF8 !important;
}
.hero:not(#hero).hero--grid .hero-inner { max-width: 1100px !important; }
.hero:not(#hero).hero--grid .hero-title {
  font-size: 34px !important; font-weight: 800 !important;
  color: #101A2B !important; letter-spacing: -.8px !important;
  line-height: 1.3 !important; margin-bottom: 14px !important;
}
/* 标题里的彩色拼字统一为品牌蓝，去掉红/绿杂色，更克制 */
.hero:not(#hero).hero--grid .hero-title span,
.hero:not(#hero).hero--grid .hero-title .b,
.hero:not(#hero).hero--grid .hero-title .g,
.hero:not(#hero).hero--grid .hero-title .accent-text {
  color: var(--tt-blue) !important; background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.hero:not(#hero).hero--grid .hero-sub {
  font-size: 15px !important; line-height: 1.75 !important;
  color: #5F6C7B !important; max-width: 760px !important;
  margin-bottom: 24px !important;
}
/* kicker / 标签：统一为浅蓝小胶囊 */
.hero:not(#hero).hero--grid .hero-tag,
.hero:not(#hero).hero--grid .hero-kicker {
  display: inline-flex !important; align-items: center !important;
  background: var(--tt-blue-50) !important; color: var(--tt-blue) !important;
  border: none !important; border-radius: 6px !important;
  box-shadow: none !important; padding: 5px 12px !important;
  margin-bottom: 18px !important; font-size: 12px !important; font-weight: 600 !important;
}
/* 数据条：白底细边框、小圆角、去大阴影，数字品牌蓝 */
.hero:not(#hero).hero--grid .metrics-bar,
.hero:not(#hero).hero--grid .hero-stats {
  background: #FFFFFF !important; border: 1px solid var(--tt-line) !important;
  border-radius: 10px !important; box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
  overflow: hidden !important;
}
.hero:not(#hero).hero--grid .metric-item,
.hero:not(#hero).hero--grid .hero-stat {
  border-right: 1px solid var(--tt-line) !important;
}
.hero:not(#hero).hero--grid .metric-item:last-child,
.hero:not(#hero).hero--grid .hero-stat:last-child { border-right: none !important; }
.hero:not(#hero).hero--grid .metric-num,
.hero:not(#hero).hero--grid .hero-stat b {
  color: var(--tt-blue) !important; font-weight: 800 !important;
}
.hero:not(#hero).hero--grid .metric-label,
.hero:not(#hero).hero--grid .hero-stat span { color: #8F9AA8 !important; }
/* 主按钮：小圆角、去阴影 */
.hero:not(#hero).hero--grid .hero-btn,
.hero:not(#hero).hero--grid .cta-btn {
  border-radius: 6px !important; box-shadow: none !important;
}
/* 移动端：标题收敛，避免撑破 */
@media (max-width: 860px) {
  .hero:not(#hero).hero--grid .hero-title { font-size: 27px !important; }
  .hero:not(#hero).hero--grid .hero-sub { font-size: 14px !important; }
}

/* ---------- G1-d) v457 hero 内部对齐统一 ----------
   问题：标题已左对齐，但 .hero-sub / .metrics-bar 仍 margin:0 auto 居中，
        且 .hero-stats 用 justify-content:center，4 个数据项挤在宽卡片正中，
        与上方文字对不上（用户反馈「文字和图片位置不对」）。
   处理：统一左对齐；桌面端数据条 4 项等分铺满卡片，竖线分隔。
        移动端沿用各页原有的 flex-wrap 换行规则，不改。 */
.hero:not(#hero) .hero-sub,
.hero:not(#hero) .metrics-bar,
.hero:not(#hero) .hero-stats {
  margin-left: 0 !important; margin-right: 0 !important;
}
@media (min-width: 861px) {
  .hero:not(#hero) .metrics-bar { max-width: none !important; }
  .hero:not(#hero) .hero-stats {
    display: flex !important; gap: 0 !important;
    justify-content: flex-start !important;
    padding-top: 0 !important; border-top: none !important;
  }
  .hero:not(#hero) .hero-stat {
    flex: 1 1 0 !important; padding: 20px 10px !important;
    border-right: 1px solid var(--tt-line) !important;
  }
  .hero:not(#hero) .hero-stat:last-child { border-right: none !important; }
  /* 中文型数值（如「年度」）与数字项视觉拉齐，避免汉字显得过大 */
  .hero:not(#hero).hero--grid .hero-stat b {
    font-size: 24px !important; letter-spacing: 0 !important;
  }
}
/* 移动端：数据条改 2×2 等分，避免原来 3+1 换行让末项孤零零居中 */
@media (max-width: 860px) {
  .hero:not(#hero) .hero-stats {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 0 !important; padding-top: 0 !important; border-top: none !important;
  }
  .hero:not(#hero) .hero-stat {
    padding: 16px 8px !important;
    border-right: 1px solid var(--tt-line) !important;
  }
  .hero:not(#hero) .hero-stat:nth-child(2n) { border-right: none !important; }
  .hero:not(#hero) .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--tt-line) !important; }
  .hero:not(#hero).hero--grid .hero-stat b { font-size: 22px !important; letter-spacing: 0 !important; }
}
#hero .hero-title {
  font-size: 40px !important; letter-spacing: -1.2px !important;
  color: #101A2B !important;
}
/* 去掉红黑拼色，标题统一深色，更克制 */
#hero .hero-title .accent-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #101A2B !important;
}
#hero .hero-kicker {
  border: none !important; background: none !important; box-shadow: none !important;
  padding: 0 !important; margin-bottom: 16px !important;
  font-size: 12.5px !important; color: #8F9AA8 !important;
}
#hero .hero-sub { font-size: 15px !important; color: #5F6C7B !important; }
#hero .hp-search { box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important; border-color: #E2E8F0 !important; }
#hero .hero-stat { border-color: #EDF0F4 !important; }
#hero .hero-stat b { font-size: 30px !important; }
#hero .hero-stat sup, .hero-stat sup { font-size: 9px !important; color: #B7C0CC !important; margin-left: 2px; }

/* ---------- G2) 区块标题：更收敛的层级 ---------- */
.sec-title { font-size: 21px !important; }
.sec-title::before { width: 3px !important; flex-basis: 3px !important; height: 18px !important; }
.sec-desc { font-size: 13px !important; color: #8F9AA8 !important; }

/* ---------- G3) 栏目页 Hero：去黄橙渐变，改左对齐 ---------- */
/* v454：双层导航为 fixed 定位、不占文档流，实高随视口在 113 / 168px 之间
   跳变（861~960px 时子导航换行）。写死 padding 会把标题压到导航底下。
   桌面端改为「导航实测高度 + 22px」自适应，--nav-h 由 js/h5.js 写入；
   移动端导航仅 60px，原 96px 留白本就够用，保持不变。 */
.hero:not(#hero) {
  background: #FAFBFC !important; text-align: left !important;
  padding-top: 96px !important; padding-bottom: 38px !important;
}
@media (min-width: 861px) {
  .hero:not(#hero) { padding-top: calc(var(--nav-h, 113px) + 22px) !important; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .hero:not(#hero) { padding-top: calc(var(--nav-h, 168px) + 22px) !important; }
}
.hero:not(#hero) .hero-inner { max-width: 1100px !important; margin: 0 auto !important; }
.hero:not(#hero) .hero-title { font-size: 30px !important; }
.hero:not(#hero) .hero-sub {
  font-size: 14px !important; line-height: 1.7 !important; max-width: 760px !important;
}

/* ---------- G4) 栏目页文章卡：扁平、小圆角、去悬浮阴影 ---------- */
.section a.anim {
  border-radius: 8px !important; box-shadow: none !important;
  border-color: #E8ECF0 !important; padding: 20px 22px !important;
}
.section a.anim:hover {
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06) !important; border-color: #CFE1F7 !important;
}
.section a.anim img { border-radius: 6px !important; }
.section a.anim h3 { font-size: 18px !important; font-weight: 700 !important; }

/* ---------- G5) 页脚：更轻更紧凑 ---------- */
.site-foot .sf-wrap { padding-top: 34px !important; }
.sf-logo b, .sf-logo i { font-size: 18px !important; }
.site-foot .sf-desc { font-size: 12.5px !important; line-height: 1.7 !important; max-width: 320px !important; }
.site-foot .sf-col h2 { font-size: 12.5px !important; color: #1F2329 !important; }
.site-foot .sf-col a { font-size: 12.5px !important; line-height: 1.9 !important; }
.site-foot .sf-top { padding-bottom: 26px !important; gap: 40px !important; }

/* ---------- G6) 全站：按钮与小元素收敛 ---------- */
.cta-btn, .join-btn, .module-enter, .cap-btn, .hero-btn { box-shadow: none !important; }
sup { font-size: 9px !important; color: #A2ADBA !important; }

/* ---------- G7) CTA 横幅：去渐变与圆形光晕，收紧体量 ---------- */
#join .join-box {
  background: #1E5BB5 !important;
  padding: 36px 30px !important;
}
#join .join-box::before, #join .join-box::after { display: none !important; }
#join .join-box h3 { font-size: 23px !important; margin-bottom: 8px !important; }
#join .join-box p { font-size: 13.5px !important; margin-bottom: 20px !important; }

/* ---------- G8) 栏目卡片摘要限两行，卡片高度更齐 ---------- */
.section a.anim div > p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.7 !important;
  margin-top: 6px !important;
}

/* ---------- G9) 底部说明块更轻 ---------- */
.geo-summary .geo-lead { font-size: 13px !important; line-height: 1.8 !important; color: #5F6C7B !important; }

/* ============================================================
   H. v458 · 二级导航（频道条）优化  2026-11-27
   把散落的灰色小字收敛成有边界的频道带；桌面与移动抽屉两套形态。
   选择器仅命中 .navbar .nav-links.sub，不影响一级导航与无 sub 的页面。
   ============================================================ */

/* ---------- H1) 桌面：整条浅灰频道带，单行不换行 ---------- */
@media (min-width: 861px) {
  .navbar .nav-links.sub {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    background: #F7F9FC !important;
    border-top: 1px solid var(--tt-line) !important;
    border-bottom: 1px solid var(--tt-line) !important;
    border-radius: 0 !important;
  }
  .navbar .nav-links.sub::-webkit-scrollbar { display: none !important; }
  .navbar .nav-links.sub .nav-link {
    position: relative;
    flex: 0 0 auto !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #5F6C7B !important;
    font-weight: 400 !important;
    padding: 9px 16px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    transition: color .15s, background .15s;
  }
  .navbar .nav-links.sub .nav-link:hover {
    color: var(--tt-blue) !important;
    background: #EDF3FF !important;
  }
  .navbar .nav-links.sub .nav-link.active {
    color: var(--tt-blue) !important;
    background: #E8F0FE !important;
    font-weight: 700 !important;
  }
  .navbar .nav-links.sub .nav-link.active::after {
    content: '';
    position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 2px; border-radius: 2px 2px 0 0;
    background: var(--tt-blue);
  }
}

/* ---------- H2) 移动端抽屉：两列频道 chip + 分组标题 ---------- */
@media (max-width: 860px) {
  html.nav-open .navbar .nav-links.sub {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 12px !important;
    background: #F7F9FC !important;
    border: 1px solid var(--tt-line) !important;
    border-top: 1px solid var(--tt-line) !important;
    border-radius: 10px !important;
  }
  html.nav-open .navbar .nav-links.sub::before {
    content: '频道';
    grid-column: 1 / -1;
    font-size: 11px; line-height: 1;
    letter-spacing: .5px; color: #94A3B8;
    padding: 0 2px 2px;
  }
  html.nav-open .navbar .nav-links.sub .nav-link {
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 9px 8px !important;
    color: #475569 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: 6px !important;
  }
  html.nav-open .navbar .nav-links.sub .nav-link.active {
    color: #FFFFFF !important;
    background: var(--tt-blue) !important;
    border-color: var(--tt-blue) !important;
    font-weight: 600 !important;
  }
}

/* ---------- H3) 861~960px：主导航单行可横滚，搜索按钮不再孤立换行 ---------- */
@media (min-width: 861px) and (max-width: 960px) {
  .navbar .nav-links:not(.sub) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    margin-left: 12px !important;
  }
  .navbar .nav-links:not(.sub)::-webkit-scrollbar { display: none !important; }
  .navbar .nav-search-btn {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
  }
}
@media (min-width: 861px) and (max-width: 930px) {
  /* 主导航横滚时右侧渐隐，避免半截字 */
  .navbar .nav-links:not(.sub) {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
}
