/* 栏目页横幅：图片由头部 HTML 标签提供，并保留顶部公共区域。 */
.inner-hero {
  height: 440px;
  background: none;
}

.inner-hero .header-bar {
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}

.inner-hero .header-tools {
  position: absolute;
  z-index: 40;
  top: 10px;
  right: 60px;
  padding: 0;
}

.inner-banner-copy {
  position: absolute;
  top: 232px;
  left: 240px;
  color: #fff;
}

.inner-banner-copy h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 42px;
}

.breadcrumb {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 22px;
}

/* 二级导航：三个栏目入口与右侧装饰图均按设计稿定位。 */
.inner-subnav {
  height: 100px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.inner-subnav-inner {
  position: relative;
  width: 1440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.inner-subnav a {
  position: relative;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
}

/* 当前栏目始终激活，桌面端鼠标悬停的栏目同时显示相同的激活样式。 */
.inner-subnav a.active,
html.is-pc .inner-subnav a:hover {
  color: var(--blue);
  font-size: 24px;
}

.inner-subnav a.active::after,
html.is-pc .inner-subnav a:hover::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 6px;
  content: "";
  background: var(--blue);
}

.inner-subnav img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 210px;
  height: 78px;
}

/* 栏目页桌面导航：覆盖首页悬浮导航，使其与栏目横幅顶部对齐。 */
html.is-pc .inner-site-nav {
  top: 62px;
  right: 60px;
  bottom: auto;
  left: auto;
  width: 1120px;
  height: 57px;
  transform: none;
  color: #fff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

html.is-pc .inner-site-nav .nav-list {
  height: 57px;
  padding: 0;
  grid-template-columns: 40px 80px 80px 80px 100px 80px 100px 80px 80px 80px;
  justify-content: space-between;
  column-gap: 40px;
}

html.is-pc .inner-site-nav .nav-list a {
  height: 57px;
  align-items: flex-start;
  font-size: 20px;
  line-height: 28px;
}

html.is-pc .inner-site-nav .nav-list a::after {
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 5px;
  background: rgba(255, 255, 255, .5);
  transform: scaleX(0);
}

/* 内页导航横线与当前菜单项等宽，避免激活态和悬停态出现水平偏移。 */
html.is-pc .inner-site-nav .nav-list .active a::after,
html.is-pc .inner-site-nav .nav-list a:hover::after,
html.is-pc .inner-site-nav .nav-list a:focus-visible::after {
  transform: scaleX(1);
}

/* 栏目页悬停态：保持白色文字，并使用与当前栏目一致的半透明白色标记线。 */
html.is-pc .inner-site-nav .nav-list a:hover,
html.is-pc .inner-site-nav .nav-list a:focus-visible {
  color: #fff;
}

/* 栏目页全栏目浮层：从顶部栏下方展开，不影响横幅正文。 */
html.is-pc .inner-site-nav .mega-menu {
  top: 58px;
  color: var(--text);
}

/* 手机端栏目页：正文纵向阅读，二级栏目统一使用横向滚动导航。 */
html.is-mobile .inner-hero .hero-banner-image { object-position: center; }

/* 标题与横幅共用第二行网格，绝对定位不撑高图片，保持原图完整显示。 */
html.is-mobile body .hero .inner-banner-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  grid-area: 2 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 20px;
  background: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

html.is-mobile .inner-banner-copy h1 {
  font-size: 22px;
  line-height: 30px;
}

html.is-mobile .breadcrumb {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 18px;
}

html.is-mobile .inner-subnav {
  height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #e8eef3;
  box-shadow: 0 3px 12px rgba(22, 92, 145, .06);
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: thin;
  scrollbar-color: #c9d9e6 transparent;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile .inner-subnav::-webkit-scrollbar {
  height: 3px;
}

html.is-mobile .inner-subnav::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c9d9e6;
}

html.is-mobile .inner-subnav-inner {
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 10px 16px 12px;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
}

html.is-mobile .inner-subnav a {
  left: 0;
  width: auto;
  min-width: 104px;
  min-height: 44px;
  padding: 10px 20px;
  flex: 1 0 auto;
  border-radius: 10px;
  background: #f5f7f9;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color .2s ease, background-color .2s ease;
}

html.is-mobile .inner-subnav a.active {
  color: var(--blue);
  background: #eaf2f8;
  font-size: 16px;
  font-weight: 600;
}

html.is-mobile .inner-subnav a.active::after {
  right: calc(50% - 12px);
  bottom: 0;
  left: calc(50% - 12px);
  height: 3px;
  border-radius: 3px;
}

.inner-subnav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

html.is-mobile .inner-subnav img {
  display: none;
}

@media (hover: hover) {
  html.is-mobile .inner-subnav a:hover {
    color: var(--blue);
    background: #eaf2f8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-mobile .inner-subnav a { transition: none; }
}
