/* ============ 子路由导航 template-1-subnav ============ */
.template-1-subnav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  box-sizing: border-box;
}

.template-1-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.template-1-subnav ul li {
  list-style: none;
}

.template-1-subnav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 121px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #0f4799;
  border-radius: 999px;
  color: #0f4799;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.template-1-subnav ul li a:hover {
  background: #0f4799;
  color: #ffffff;
}

.template-1-subnav ul li a.act {
  background: #0f4799;
  color: #ffffff;
}

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .template-1-subnav {
    padding: 16px 12px 0;
  }
  .template-1-subnav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .template-1-subnav ul li a {
    width: 100%;
    height: 32px;
    font-size: 12px;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============ 子路由导航 template-2-subnav ============ */
.template-2-subnav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: -25px;
}

.template-2-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  height: 52px;
  background: #ffffff;
  border-radius: 999px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.template-2-subnav ul li {
  list-style: none;
}

.template-2-subnav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 153px;
  height: 36px;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.template-2-subnav ul li a:hover {
  background: #d62828;
  color: #ffffff;
}

.template-2-subnav ul li a.act {
  background: #d62828;
  color: #ffffff;
}

/* ============ 响应式 template-2 ============ */
@media (max-width: 640px) {
  .template-2-subnav ul {
    gap: 4px;
    height: auto;
    padding: 8px;
  }
  .template-2-subnav ul li a {
    width: 110px;
    height: 32px;
    font-size: 13px;
  }
}
