/* ============================================================
   前台二级导航（主导航下方细条） 2026-10-22
   与主导航同色系：白底 / --line 细线 / 主色 #1b79d8
   ============================================================ */
.subnav {
  background: #fff;
  border-bottom: 1px solid var(--line, #e8eaed);
}
.subnav-in {
  width: 1200px;
  margin: 0 auto;
}
.subnav ul {
  padding-left: 18px !important;   /* 对齐主导航首项文字（17 项均分，首项文字起点 ≈18px）；!important 防 swiper 全局重置 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 40px;
}
.subnav li {
  position: relative;
  padding: 0 17px;
}
.subnav li:first-child {
  padding-left: 0;
}
.subnav li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: #eef0f3;
}
.subnav li:last-child::after {
  display: none;
}
.subnav a {
  display: block;
  padding: 10px 0 9px;
  font-size: 14px;
  color: var(--gray, #6b7280);
  letter-spacing: .3px;
  transition: color .2s;
}
.subnav a:hover {
  color: var(--red, #1b79d8);
}
.subnav li.hot a {
  color: var(--red, #1b79d8);
  font-weight: 600;
}
/* hover 时底部极细指示线，呼应主导航 */
.subnav a::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  margin-top: 3px;
  width: 0;
  background: var(--red, #1b79d8);
  transition: width .25s cubic-bezier(.2, .8, .3, 1);
}
.subnav a:hover::after,
.subnav li.hot a::after {
  width: 100%;
}

@media (max-width: 1240px) {
  .subnav-in { width: auto; padding: 0 20px; }
}
@media (max-width: 768px) {
  .subnav ul { min-height: 34px; }
  .subnav li { padding: 0 11px; }
  .subnav a { font-size: 13px; padding: 8px 0 7px; }
  .subnav li::after { display: none; }
}
