:root {
  color: #263238;
  font-family: SimSun, '宋体', Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fff;
  color: #2e343b;
  font-size: 12px;
  line-height: 1.75;
}

body.home-page-canvas,
body.inner-page-canvas {
  background-color: transparent;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.home-shell,
.inner-shell {
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 180px, rgb(255 255 255 / 72%) 420px, #fff 620px, #fff 100%),
    linear-gradient(135deg, transparent 46%, rgb(160 34 38 / 4%) 47%, rgb(160 34 38 / 4%) 53%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgb(30 117 117 / 3%) 47%, rgb(30 117 117 / 3%) 53%, transparent 54%);
  background-position: 0 0, 0 0, 14px 14px;
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-repeat: no-repeat, repeat, repeat;
}

.site-header {
  position: relative;
  width: 100%;
  min-height: 222px;
  margin: 0 auto;
  border-top: 0;
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 24%, rgb(255 255 255 / 45%) 40%, rgb(255 255 255 / 84%) 58%, #fff 76%, #fff 100%),
    linear-gradient(135deg, transparent 46%, rgb(160 34 38 / 5%) 47%, rgb(160 34 38 / 5%) 53%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgb(30 117 117 / 4%) 47%, rgb(30 117 117 / 4%) 53%, transparent 54%);
  background-position: 0 0, 0 0, 14px 14px;
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-repeat: no-repeat, repeat, repeat;
  box-shadow: inset 0 -1px 0 rgb(116 45 35 / 16%);
}

.site-header::before {
  position: absolute;
  z-index: 0;
  top: calc(100% - 120px);
  right: max(32px, calc((100% - 1500px) / 2));
  bottom: 0;
  left: max(32px, calc((100% - 1500px) / 2));
  background: linear-gradient(to bottom, rgb(225 237 243 / 8%), rgb(181 211 226 / 21%));
  clip-path: polygon(0 79%, 7% 70%, 14% 67%, 21% 73%, 28% 77%, 35% 69%, 42% 57%, 49% 65%, 56% 75%, 63% 72%, 70% 62%, 77% 67%, 84% 75%, 91% 68%, 97% 71%, 100% 66%, 100% 100%, 0 100%);
  content: '';
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: rgb(255 255 255 / 60%);
  content: '';
  pointer-events: none;
}

.header-logo {
  position: absolute;
  top: 31px;
  left: max(32px, calc((100% - 1500px) / 2));
  width: 310px;
  height: auto;
}

.brand-wrap {
  width: min(950px, calc(100% - 430px));
  margin-left: max(390px, calc((100% - 1500px) / 2 + 380px));
  padding-top: 43px;
  text-align: center;
}

.brand-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.brand-line-wrap {
  max-width: 100%;
}

.brand-image {
  display: block;
  width: 88%;
  margin: 0 auto;
  height: auto;
}

.top-nav {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  background: #f08200;
  box-shadow: 0 1px 0 rgb(132 73 0 / 28%);
}

.top-nav-inner {
  width: 100%;
  margin: 0 auto;
}

.inner-nav-gradient {
  display: none;
}

/* 导航栏目均分铺满整行，并兼容平台站点导航组件渲染的 ul/li 结构 */
.nav-links {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.nav-links > ul {
  display: flex;
  flex: 1;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item,
.nav-links > ul > li {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link,
.nav-links > ul > li > a {
  display: block;
  flex: 1;
  min-height: 40px;
  border-right: 1px solid rgb(255 255 255 / 52%);
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.nav-item:first-child .nav-link,
.nav-links > ul > li:first-child > a {
  border-left: 0;
}

.nav-item:last-child .nav-link,
.nav-links > ul > li:last-child > a {
  border-right: 0;
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-links > ul > li:hover > a,
.nav-links > ul > li:focus-within > a {
  background: #fff;
  color: #f08200;
}

/* 平台站点导航组件输出为 table 结构：栏目行转弹性布局，栏目 td（b1/b2 系列）
   均分铺满整行，间隔空 td 压缩为 0，栏目数量自适应；悬停效果与本地导航一致。
   选择器不限定表格为直接子元素（兼容组件外再包一层容器），并排除下拉内层表格 */
@media (min-width: 761px) {
  /* 组件输出外若再包有容器层级，让直接子层撑满整行 */
  .nav-links > * {
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  .nav-links table:not(.tb1_0_) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .nav-links table:not(.tb1_0_) > tbody {
    display: block !important;
    width: 100% !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td {
    height: auto !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td[class*='b1_0_'],
  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td[class*='b2_0_'] {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 40px !important;
    text-align: center !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td:not([class*='b1_0_']):not([class*='b2_0_']) {
    flex: 0 0 0% !important;
    width: 0 !important;
    padding: 0 !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child span {
    line-height: 40px !important;
    color: #fff !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td[class*='b2_0_'],
  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td:hover {
    background: #fff !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td[class*='b2_0_'] span,
  .nav-links table:not(.tb1_0_) > tbody > tr:first-child > td:hover span {
    color: #f08200 !important;
  }

  /* 下拉二级菜单：橙底白字，宽度与一级栏目一致，悬停白底橙字（与一级悬停统一） */
  .nav-links .main_0_ table {
    width: 100% !important;
    background: #f08200 !important;
    border: 0 !important;
  }

  .nav-links td[class*='b3_0_'],
  .nav-links td[class*='b4_0_'] {
    background: #f08200 !important;
    border: 0 !important;
    border-top: 1px solid rgb(255 255 255 / 28%) !important;
    padding: 0 14px !important;
    text-align: center !important;
  }

  .nav-links td[class*='b3_0_'] span,
  .nav-links td[class*='b4_0_'] span {
    color: #fff !important;
    font-family: 'Microsoft YaHei', sans-serif !important;
    font-size: 15px !important;
    line-height: 40px !important;
  }

  .nav-links td[class*='b3_0_']:hover,
  .nav-links td[class*='b4_0_'] {
    background: #fff !important;
  }

  .nav-links td[class*='b3_0_']:hover span,
  .nav-links td[class*='b4_0_'] span {
    color: #f08200 !important;
  }

  /* 下拉二级菜单定位：组件把第 k 个栏目的下拉层放在第二行第 (2k-1) 格（奇数格），
     偶数格是空的分隔格。所以给第二行套上与第一行完全相同的弹性分栏——奇数格占一格、
     偶数格压成 0——下拉层所在单元格就始终落在对应一级栏目正下方，
     与栏目数量无关，增删栏目都不需要再改 CSS（旧写法按 10 栏目写死百分比，
     站群实际是 8 栏目，算出来的位置就偏了）。 */
  .nav-links table:not(.tb1_0_) > tbody > tr:nth-child(2) {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:nth-child(2) > td {
    height: auto !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:nth-child(2) > td:nth-child(odd) {
    position: relative !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  .nav-links table:not(.tb1_0_) > tbody > tr:nth-child(2) > td:nth-child(even) {
    flex: 0 0 0% !important;
    width: 0 !important;
    padding: 0 !important;
  }

  /* 下拉层：以所在单元格为定位基准，贴导航条下缘弹出，宽度与所属一级栏目一致。
     只作用于第二行的下拉层，不含三级菜单的飞出层（那层保留静态位置才对） */
  .nav-links table:not(.tb1_0_) > tbody > tr:nth-child(2) > td > .main_0_ {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }
}

.nav-link.router-link-active {
  background: transparent;
}

.nav-submenu {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  width: 100%;
  background: #f08200;
}

.nav-item:hover > .nav-submenu,
.nav-item:focus-within > .nav-submenu {
  display: block;
}

.nav-submenu-link {
  display: block;
  min-height: 40px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 40px;
  text-align: center;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
  background: #ff6000;
}

.nav-toggle {
  display: none;
}

.site-footer {
  margin-top: 20px;
  background: #c51807;
  color: #fff;
}

.footer-inner {
  width: min(1500px, calc(100% - 64px));
  padding: 0 0 10px;
  margin: 0 auto;
  font-family: 'Helvetica Neue', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  padding-top: 10px;
}

@media (min-width: 761px) {
  .site-header {
    min-height: 250px;
  }

  .brand-wrap {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
    padding-top: 120px;
  }

  .brand-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    transform: translate(-3%, 42px);
  }

  .brand-line-wrap {
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .brand-line-left-wrap {
    flex: none;
  }

  .brand-line-right-wrap {
    flex: none;
  }

  .brand-line-left-wrap .brand-image {
    width: 70.4%;
  }

  .brand-line-right-wrap .brand-image {
    width: 105.6%;
    max-width: none;
    transform: scaleX(0.9);
  }

  .nav-link {
    min-height: 50px;
    font-size: 16px;
    line-height: 50px;
  }
}

@media (min-width: 1440px) {
  .site-header {
    min-height: 320px;
  }

}

@media (min-width: 761px) and (max-width: 1199px) {
  .site-header {
    min-height: 250px;
  }

  .header-logo {
    top: 30px;
    left: 28px;
    width: 255px;
  }

  .brand-wrap {
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
    padding-top: 120px;
  }

  .brand-image {
    width: 100%;
  }

  .top-nav,
  .footer-inner {
    width: min(100% - 44px, 1500px);
  }

  .site-header::before {
    top: calc(100% - 58px);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 265px;
  }

  .header-logo {
    top: 18px;
    left: 18px;
    width: 210px;
  }

  .brand-wrap {
    width: calc(100% - 30px);
    margin: 0 auto;
    padding-top: 101px;
    text-align: center;
  }

  .brand-lines {
    gap: 3px;
  }

  .brand-line-wrap {
    width: 100%;
  }

  .site-header::before {
    top: calc(100% - 58px);
    right: 15px;
    left: 15px;
  }

  .top-nav {
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  .top-nav-inner {
    position: relative;
    min-height: 42px;
  }

  .nav-toggle {
    position: absolute;
    top: 7px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 28px;
    padding: 5px 3px;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    padding: 43px 0 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > ul {
    flex-direction: column;
  }

  .nav-item,
  .nav-links > ul > li {
    flex: none;
    width: 100%;
  }

  .nav-link,
  .nav-links > ul > li > a {
    min-height: 40px;
    padding-left: 55px;
    border: 0;
    font-size: 16px;
    line-height: 40px;
    text-align: left;
  }

  .nav-links ul {
    flex-direction: column;
  }

  .nav-links li {
    flex: none;
    width: 100%;
  }

  .nav-links a:not(.nav-submenu-link) {
    min-height: 40px;
    padding-left: 55px;
    border: 0;
    line-height: 40px;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
  }

  .nav-submenu-link {
    min-height: 42px;
    padding-left: 0;
    font-size: 15px;
    line-height: 42px;
    text-align: center;
  }

  .footer-inner {
    width: min(calc(100% - 28px), 620px);
    font-size: 12px;
  }
}
