/* ============================================
   Header & Footer 样式文件
   用于 header.htm 和 footer.htm 的样式
   ============================================ */

/* ========== Header 样式 ========== */

/* Header 网格布局 */
#header-grid .grid-box::after {
  content: "";
  clear: left;
  display: block;
}
#header-grid > div > .grid-box {
  width: 100%;
  overflow: hidden;
  position: static;
}
#header-grid > div > .grid-cell {
  float: left;
  position: static;
}
#header-grid > .grid-box.signal {
  min-height: inherit;
}
#header-grid > .grid-box.signal > .grid-cell {
  min-height: inherit !important;
}
#header-grid {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media screen and (max-width: 768px) {
  #header-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}
@media screen and (min-width: 769px) {
  #header-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}
@media screen and (max-width: 1024px) and (min-width: 769px) {
  #header-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}

/* Header 导航容器 */
#header-navigation {
  min-height: 0px;
  width: 100%;
  left: 0;
  top: 0;
  position: fixed;
  z-index: 999;
}
.saf-make #header-navigation {
  position: relative;
}

/* Header 主体样式 */
.header .p_iconBox {
  padding: 20px 0 20px 20px;
  height: 80px;
  line-height: 40px;
  display: none;
}
.header .p_iconBox svg {
  width: 30px;
  height: 30px;
}
.header .p_iconBox svg.p_closeIcon {
  display: none;
}
.header {
  width: 100%;
  display: flex;
  padding: 0 3rem;
  transition: all 0.5s;
  border-bottom: 1px rgba(255, 255, 255, 0.2) solid;
}
.header.on {
  padding: 0 2rem;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.header .logorim {
  padding: 15px 0;
  transition: all 0.5s;
}
.header .logorim a {
  display: block;
}
.header .logorim a svg {
  height: 50px;
  width: auto;
  transition: all 0.5s;
}
.header.de .logorim a svg path {
  fill: #fff;
}
.header.on .logorim {
  padding: 15px 0;
}
.header.on .logorim a svg {
  height: 50px;
}
.header .logorim a img {
  height: 50px;
}
/* Logo 图片切换 - 默认显示 web_attr_21，滚动后显示 web_logo */
.header .logorim a {
  position: relative;
  display: block;
}
.header .logorim a .logo-default,
.header .logorim a .logo-scrolled {
  height: 50px;
  width: auto;
  transition: opacity 0.3s ease;
}
/* 默认状态：显示 logo-default (web_attr_21)，隐藏 logo-scrolled (web_logo) */
.header.de .logorim a .logo-default {
  display: block;
  opacity: 1;
}
.header.de .logorim a .logo-scrolled {
  display: none;
  opacity: 0;
}
/* 滚动后状态：隐藏 logo-default，显示 logo-scrolled (web_logo) */
.header.on .logorim a .logo-default {
  display: none;
  opacity: 0;
}
.header.on .logorim a .logo-scrolled {
  display: block;
  opacity: 1;
}

/* Header 右侧导航 */
.header .saf-cnNav-right {
  padding-left: 20px;
}
.header .saf-cnNav-right ul {
  display: flex;
  height: 100%;
}
.header .saf-cnNav-right ul li {
  padding: 10px;
  position: relative;
}
.header .saf-cnNav-right ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
}
.header .saf-cnNav-right ul li a svg {
  width: auto;
  height: 20px;
  fill: #fff;
}
/* 搜索图标放大 - 针对 Font Awesome 图标 */
.header .saf-cnNav-right ul li.search a i {
  font-size: 20px !important;
  color: #fff;
  transition: color 0.3s ease;
}
/* 页面下滑后搜索图标颜色改为 #666 */
.header.on .saf-cnNav-right ul li.search a i {
  color: #666 !important;
}
.header.on .saf-cnNav-right ul li a svg {
  fill: #666;
}
.header .saf-cnNav-right ul li.city {
  display: none; /* 隐藏城市分站链接（从 footer.htm 内联样式提取） */
  align-items: center;
}
.header .saf-cnNav-right ul li.city a {
  background: var(--c);
  color: #fff;
  border-radius: 30px;
  padding: 10px 15px;
  height: auto;
  line-height: 30px;
}
.header .saf-cnNav-right ul li.city a svg {
  fill: #fff;
  margin-right: 10px;
  width: 22px;
  height: 22px;
}

/* Header 下拉菜单 */
.header .saf-cnNav-right ul li.lugRim a span {
  padding-right: 10px;
  display: flex;
  align-items: center;
}
.header .saf-cnNav-right ul li.lugRim .dropMenu {
  width: max-content;
  min-width: 100%;
  position: absolute;
  right: 0;
  top: 120%;
  background: #fff;
  padding: 10px 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}
.header .saf-cnNav-right ul li.lugRim:hover .dropMenu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}
.header .saf-cnNav-right ul li.lugRim .dropMenu a {
  display: block;
  line-height: 40px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px #ddd solid;
  position: relative;
}
.header .saf-cnNav-right ul li.lugRim .dropMenu a:after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--c);
  position: absolute;
  left: 0;
  bottom: -1px;
  transition: all 0.5s;
}
.header .saf-cnNav-right ul li.lugRim .dropMenu a:hover {
  color: var(--c);
}
.header .saf-cnNav-right ul li.lugRim .dropMenu a:hover:after {
  width: 100%;
}

/* Header 移动端切换按钮 */
.header .toggleBtn {
  width: 40px;
  height: 80px;
  position: relative;
  cursor: pointer;
  display: none;
}
.header .toggleBtn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  right: 6px;
  top: 50%;
  margin-top: -1px;
  transition: all 0.5s;
}
.header .toggleBtn span:before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  bottom: 8px;
  transition: all 0.5s;
}
.header .toggleBtn span:after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  top: 8px;
  transition: all 0.5s;
}
.header .toggleBtn:hover span {
  width: 30px;
  background: var(--c);
}
.header .toggleBtn:hover span:before {
  width: 20px;
  background: var(--c);
}
.header .toggleBtn:hover span:after {
  width: 24px;
  background: var(--c);
}
.header.on .toggleBtn span {
  width: 30px;
  background: #666;
}
.header.on .toggleBtn span:before {
  width: 20px;
  background: #666;
}
.header.on .toggleBtn span:after {
  width: 24px;
  background: #666;
}
.header .toggleBtn.show span {
  width: 30px;
  background: none;
}
.header .toggleBtn.show span:before {
  width: 30px;
  background: #f00;
  transform: rotate(45deg);
  bottom: 0;
}
.header .toggleBtn.show span:after {
  width: 30px;
  background: #f00;
  transform: rotate(-45deg);
  top: 0;
}

/* Header 主导航菜单 */
.header ul.nav-menu {
  flex: 1;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}
.header ul.nav-menu li.nav-item {
  padding: 0 15px;
  position: relative;
}
.header ul.nav-menu li.nav-item:after {
  content: "/";
  font-size: 16px;
  color: #fff;
  position: absolute;
  right: -2.5px;
  top: 50%;
  transform: translate(0, -50%);
  opacity: 0.3;
}
.header ul.nav-menu li.nav-item:last-child:after {
  display: none;
}
.header ul.nav-menu li.nav-item > p.menu-link {
  padding: 0;
}
.header ul.nav-menu li.nav-item > p > a {
  padding: 0 20px;
  color: #fff;
  line-height: 80px;
  font-weight: bold;
  font-size: 16px;
  display: block;
}
.header.on ul.nav-menu li.nav-item > p > a {
  color: #666;
}
.header.on ul.nav-menu li.nav-item:after {
  color: #999;
}
.header ul.nav-menu li.nav-item:hover > p > a {
  color: #fff;
  background: var(--c);
}
.header ul.nav-menu li.nav-item .p_level2Box {
  position: absolute;
  width: max-content;
  min-width: 100%;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-wrap: wrap;
  overflow: hidden;
}
.header ul.nav-menu li.nav-item .p_level2Box li.p_level2Item {
  width: 100%;
  border-bottom: 1px #ddd solid;
}
.header ul.nav-menu li.nav-item .p_level2Box li.p_level2Item:last-child {
  border: none;
}
.header ul.nav-menu li.nav-item .p_level2Box li.p_level2Item a {
  display: block;
  line-height: 40px;
  padding: 0 20px;
  text-align: center;
}
.header ul.nav-menu li.nav-item .p_level2Box li.p_level2Item a:hover {
  background: var(--c);
  color: #fff;
}

/* 响应式工具类 */
.visible-xs {
  display: none;
}

/* Header 移动端响应式 */
@media screen and (max-width: 768px) {
  .header,
  .header.on {
    padding: 0 15px;
  }
  .header .logorim {
    flex: 1;
    padding: 15px 0;
    position: relative;
    z-index: 4;
  }
  .header .logorim a svg {
    height: 50px;
  }
  .header .logorim a img {
    height: 50px;
  }
  .header .toggleBtn {
    display: block;
    position: relative;
    z-index: 4;
  }
  .header .saf-cnNav-right ul li.search {
    display: none;
  }
  .header ul.nav-menu {
    position: absolute;
    left: 100vw;
    top: 80px;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.5s;
    height: calc(100vh - 80px);
    overflow-y: auto;
    justify-content: flex-start;
    flex-direction: column;
  }
  .header ul.nav-menu.show {
    left: 0;
  }
  .header ul.nav-menu li.nav-item {
    width: 100%;
    padding: 0;
    background: #f5f5f5;
  }
  .header ul.nav-menu li.nav-item > p > a {
    line-height: 60px;
    border-bottom: 1px #ddd solid;
    color: #444;
    align-items: center;
    display: flex;
  }
  .header ul.nav-menu li.nav-item > p > a span {
    flex: 1;
  }
  .header ul.nav-menu li.nav-item > p > a svg {
    width: auto;
    height: 22px;
  }
  .header ul.nav-menu li.nav-item > p > a svg path {
    fill: #999;
  }
  .header ul.nav-menu li.nav-item:hover > p > a {
    color: #fff;
  }
  .header ul.nav-menu li.nav-item:hover > p > a svg path {
    fill: #fff;
  }
  .header ul.nav-menu li.nav-item .p_level2Box {
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-top: none;
    padding: 15px;
    background: #f5f5f5;
  }
  .header ul.nav-menu li.nav-item .p_level2Box > li {
    background: #fff;
    border: 1px #ddd solid;
  }
  .header ul li.nav-item .p_level2Box li.p_level2Item:last-child {
    border: 1px #ddd solid;
  }
  .hidden-xs {
    display: none;
  }
  .visible-xs {
    display: block;
  }
}

/* ========== Footer 样式 ========== */

/* Footer 模板背景色 */
.s_tmpl_footer {
  background-color: #efefef;
}

/* Footer 网格布局 */
#footer-grid .grid-box::after {
  content: "";
  clear: left;
  display: block;
}
#footer-grid > div > .grid-box {
  width: 100%;
  overflow: hidden;
  position: static;
}
#footer-grid > div > .grid-cell {
  float: left;
  position: static;
}
#footer-grid > .grid-box.signal {
  min-height: inherit;
}
#footer-grid > .grid-box.signal > .grid-cell {
  min-height: inherit !important;
}
#footer-grid {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media screen and (max-width: 768px) {
  #footer-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}
@media screen and (min-width: 769px) {
  #footer-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}
@media screen and (max-width: 1024px) and (min-width: 769px) {
  #footer-grid > .grid-box > .grid-cell:nth-child(1n + 1) {
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    clear: left;
  }
}

/* Footer 主容器 */
#footer-content {
  background: #f5f5f5;
  padding: 100px;
}
#footer-content .footer-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
}
#footer-content .footer-container > .item {
  flex: 1;
  max-width: 100%;
  max-height: 100%;
}
#footer-content .footer-container > .item.footer-logo {
  flex: 0 0 200px;
}
#footer-content .footer-container > .item.footer-copyright-box {
  flex: 0 0 380px;
}

/* Footer Logo */
#footer-content .footer-logo-text {
  line-height: normal;
}
#footer-content .footer-logo-text svg {
  width: 100px;
  height: auto;
}

/* Footer 底部导航 */
#footer-content .footer-nav .nav-menu {
  display: flex;
  flex-wrap: wrap;
}
#footer-content .footer-nav span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
#footer-content .footer-nav .nav-item {
  flex: 0 0 33.3333%;
  flex-grow: 1;
}
#footer-content .footer-nav .nav-item a {
  display: block;
  line-height: 40px;
}

/* Footer 版权信息 */
#footer-content .footer-copyright {
  line-height: 1.6;
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  padding-bottom: 5px;
  text-align: right;
}
#footer-content .footer-provider {
  line-height: 1.6;
  font-size: 14px;
  color: #666;
}
#footer-content .footer-credible {
  padding: 15px 0;
  text-align: right;
}
#footer-content .footer-credible img {
  width: 100px;
  height: auto;
  border-radius: 5px;
}
#footer-content .saf-licenseoprov {
  justify-content: flex-end;
}
#footer-content .saf-auto-licenseo a {
  color: #666 !important;
}

/* Footer 移动端响应式 */
@media screen and (max-width: 768px) {
  #footer-content {
    padding: 40px 0;
  }
  #footer-content .footer-copyright {
    text-align: center;
  }
  #footer-content .footer-logo-text svg {
    margin: 0 auto;
    display: block;
  }
  #footer-content .footer-container > .item {
    flex: 0 0 100% !important;
    padding: 15px;
  }
  #footer-content .footer-nav .nav-item a {
    text-align: center;
  }
  #footer-content .saf-licenseoprov {
    justify-content: center;
  }
  #c_static_001-16848233728500 .e_credible-8 {
    text-align: center;
  }
}
@media screen and (min-width: 769px) {
  /* 移动端箭头隐藏 */
  #c_static_001-16848233728500 .e_bottomNav-31 .p_jtIcon {
    display: none;
  }
}

/* ========== 在线客服样式 ========== */

/* 在线客服容器 */
#footer-online {
  position: relative;
  z-index: 99;
}
#footer-online .footer-online-loop .footer-page {
  text-align: center;
  display: none;
}

/* 在线客服变量 */
:root {
  --online: 50px;
  --oradius: 5px;
}

/* 在线客服主体 */
.saf-online {
  width: var(--online);
  position: fixed;
  right: 10px;
  bottom: 20%;
  z-index: 99;
}
.saf-online .p_list {
  width: 100%;
  height: auto;
}
.saf-online .saf-lineitem {
  display: block;
  width: var(--online);
  height: var(--online);
  position: relative;
  padding: 1px;
  position: relative;
}
.saf-online .saf-lineitem.backTop {
  cursor: pointer;
}
.saf-online .saf-lineitem saf-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--oradius);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.saf-online .saf-lineitem saf-icon a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saf-online .saf-lineitem saf-icon svg {
  width: 20px;
  height: 20px;
}
.saf-online .saf-lineitem saf-icon svg path {
  fill: #666;
}
.saf-online .saf-lineitem saf-icon img {
  width: 20px;
  height: 20px;
  display: block;
}
.saf-online .saf-lineitem > p {
  width: max-content;
  background: var(--c);
  color: #fff;
  font-size: 14px;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(-35px, -50%);
  border-radius: 5px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}
.saf-online .saf-lineitem > p.codeimg {
  padding: 5px;
}
.saf-online .saf-lineitem > p:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 5px solid var(--c);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(0, -50%);
}
.saf-online .saf-lineitem > p a {
  display: block;
  padding: 10px 15px;
}
.saf-online .saf-lineitem > p img {
  width: 130px;
  height: auto;
}
.saf-online .saf-lineitem:hover > p {
  transform: translate(-5px, -50%);
  opacity: 1;
  visibility: visible;
}
.saf-online .saf-lineitem:hover saf-icon svg path {
  fill: var(--c);
}
.saf-make .saf-online {
  width: 100%;
  position: relative;
  right: 0;
  bottom: auto;
}
.saf-make .saf-online .p_list {
  display: flex;
}

/* 在线客服移动端响应式 */
@media screen and (max-width: 768px) {
  #footer-online {
    height: var(--online);
  }
  .saf-online {
    width: 100%;
    right: 0;
    bottom: 0;
  }
  .saf-online .p_list {
    display: flex;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  }
  .saf-online .saf-lineitem {
    flex: 1 !important;
    padding: 0;
    border-right: 1px #ddd solid;
  }
  .saf-online .saf-lineitem saf-icon {
    box-shadow: none;
    border-radius: 0;
  }
  .saf-online .saf-lineitem > p {
    right: auto;
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -20px);
  }
  .saf-online .saf-lineitem > p:after {
    border: 5px solid transparent;
    border-top: 5px solid var(--c);
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
  }
  .saf-online .saf-lineitem:hover > p {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -5px);
  }
  .saf-online .saf-lineitem:nth-child(1) > P {
    left: 100%;
  }
  .saf-online .saf-lineitem:nth-child(1) > P:after {
    left: 20px;
    transform: translate(0, 0);
  }
  .saf-online .saf-lineitem:nth-child(2) > P {
    left: 100%;
  }
  .saf-online .saf-lineitem:nth-child(2) > P:after {
    left: 20px;
    transform: translate(0, 0);
  }
}

