:root {
  --theme-color: #0d318fff !important;
  --theme-back-color: #ffffff;
  --border-color: #ffffff;
  --header-line-color: #ffffff73;
  --header-main-text: #ffffff;
  --header-sub-text: #ffffffd9;
  --header-input-back: #ffffffe5;
}
* {
  outline: none;
  box-sizing: border-box;
}
body {
  font-size: 16px;
  font-family: PingFangSC, PingFang SC;
}
.container {
  margin: 0 auto;
  padding: 0;
}
a:focus {
  text-decoration: none;
  outline: none;
}

/* header */
.header {
  /* background-color: var(--theme-color); */
  position: relative;
  background: url(../../images/style6/header-back-blue.png) no-repeat center /
    100% 100%;
}
.header-line {
  position: absolute;
  top: 59px;
  height: 1px;
  width: 100%;
  background-color: var(--header-line-color);
}

.header-main {
  height: 340px;
  /* background-image: url(../../images/style6/header-back.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: 80%; */
  display: flex;
  flex-direction: column;
}

.hd-top {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hd-top-left {
  display: flex;
}
.hd-top-left .href-container {
  display: flex;
}
.hd-top-left-logo {
  height: 48px;
  width: 48px;
  cursor: pointer;
}
.hd-top-left-text {
  margin-left: 10px;
  color: var(--header-main-text);
}
.hd-top-left-text-top {
  display: flex;
  align-items: center;
}
.hd-top-left-text-top a {
  color: var(--header-main-text);
  font-size: 18px;
}
/* .hd-top-left-text-top a:hover {
  text-decoration: none;
} */
.hd-top-left .current-time {
  align-self: flex-end;
}
.hd-top-left .current-time span:first-of-type {
  color: #fff;
  margin: 0 15px;
}
.hd-top-left #CurrentTime {
  color: var(--header-sub-text);
}
a.hd-top-left-text-bottom {
  cursor: pointer;
  color: var(--header-sub-text);
}

.hd-top-right {
  font-size: 18px;
  color: var(--header-main-text);
}
.hd-top-right > span {
  margin-left: 20px;
}
.hd-top-right #logined #logout {
  margin-left: 20px;
}
.hd-top-right #logined {
  display: none;
}
.text-hover:hover {
  text-decoration: underline;
  cursor: pointer;
  color: var(--header-main-text);
}

.hd-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hd-center-title {
  /* display: flex; */
  font-weight: 800;
  font-size: 40px;
  color: var(--header-main-text);
  line-height: 52px;
}
/* .hd-center-title div {
  padding: 0 20px;
} */
.hd-search {
  margin-top: 24px;
  width: 600px;
  height: 58px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-input-back);
  border: 1px solid var(--border-color);
}
.hd-search-inp {
  border: none;
  background: transparent;
  height: 100%;
  margin-left: 20px;
  width: -webkit-fill-available;
  width: inherit;
}
.hd-search-inp::placeholder {
  font-size: 16px;
}
.hd-search-sub {
  font-size: 16px;
  background-color: transparent;
  color: var(--theme-color);
  width: 120px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  height: 100%;
}

.hd-search-dropdown {
  position: relative;
}
.hd-search-dropdown .dropdown-text {
  width: 110px;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
}
.hd-search-dropdown .dropdownMenuArrow {
  margin-left: 12px;
  display: inline-block;
}
.hd-search-dropdown .dropdown-menu {
  width: 110px;
  background: var(--header-input-back);
  text-align: center;
}
.hd-search-dropdown .dropdown-menu li {
  cursor: pointer;
  padding: 5px 0;
}
.hd-search-dropdown .dropdown-menu li:hover {
  background: var(--theme-back-color);
}

.header-nav {
  height: 60px;
  background-color: var(--theme-back-color);
  border-bottom: 3px solid var(--theme-color);
  box-sizing: content-box;
}
.header-nav > div {
  height: 100%;
}
.header-nav ul {
  height: 100%;
  display: flex;
  position: relative;
}
.header-nav ul li {
  height: 100%;
  flex: 1;
  text-align: center;
  line-height: 60px;
  position: static;
  overflow: hidden;
  border-bottom: 3px solid var(--theme-color);
  box-sizing: content-box;
}
.header-nav ul li:hover {
  background-color: var(--theme-color);
}
.header-nav ul li:hover > a {
  color: var(--header-main-text);
}
.header-nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--theme-color);
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-nav a:hover {
  text-decoration: none;
}
.header-nav dl {
  background-color: var(--theme-back-color);
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  -ms-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  -o-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  height: 60px;
  align-items: center;
}
.header-nav dd:not(:first-of-type) {
  border-left: 1px solid #000000d9;
}
.header-nav dd a {
  color: #000000d9;
  display: block;
  text-align: center;
  font-size: 16px;
  padding: 0 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.header-nav dd:hover a,
.header-nav dd.ok a {
  /* background-color: var(--theme-color);  */
  color: var(--theme-color);
}

/* 弹窗样式 */
.textarea-container {
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.textarea-container textarea {
  resize: none;
  border: none;
}
.dtxq button {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.85);
  height: 32px;
  padding: 0 16px;
}
.dtxq .upload-button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 10px;
}
.dtxq .upload-button-container span {
  font-size: 12px;
}
.layer-container .tips {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.32);
}
.dtxq .upload-button-container #file-name {
  margin-left: 10px;
}

.toolbar {
  position: fixed;
  right: calc(((100% - 1280px) / 2) - 80px);
  top: 70%;
  z-index: 9;
}
.toolbar li {
  margin: 5px 0;
  /* overflow: hidden; */
  cursor: pointer;
  width: 80px;
  height: 80px;
  display: flex;
  /*background: #FFFFFF;
  box-shadow: 0px 0px 20px 0px rgba(13,49,143,0.1);
  border-radius: 50%;*/
}

.toolbar .myfancy3 {
  background: url(../../images/style6/go-top.png) no-repeat center/120%;
}
.toolbar .myfancy2 {
  background: url(../../images/style6/ai_icon.png) no-repeat center/120%;
}

/*@media (min-width: 1280px) {
  .container {
    width: 1280px;
  }
}*/
.hd-top-middle {
  display: none;
}

.container {
  width: 1280px;
}

/* 移动端适配 */
@media screen and (max-width: 992px) {
  * {
    outline: none;
    box-sizing: border-box;
  }
  .toolbar {
    right: 0;
  }
  .toolbar li {
    width: 60px;
    height: 60px;
  }
  .toolbar .myfancy2 {
    display: none;
  }

  /* 容器调整为响应式 */
  .container {
    width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 头部主体区域 */
  .header {
    background-size: cover;
    background-position-y: bottom;
  }
  .header-main {
    height: 180px;
    padding: 10px 0;
  }

  /* 顶部信息栏 */
  .hd-top {
    height: 50px;
    gap: 30px;
  }

  .header-line {
    display: none;
  }

  .hd-top-left {
    flex-direction: column;
  }

  .hd-top-left .href-container {
    align-items: center;
  }

  .hd-top-left-logo {
    height: 38px;
    width: 38px;
  }

  .hd-top-left-text {
    margin-left: 8px;
    text-align: center;
  }
  .hd-top-left-text a {
    font-size: 12px;
  }

  .hd-top-left-text-top a {
    font-size: 14px;
  }

  .hd-top-left .current-time {
    align-self: center;
    margin-top: 5px;
    font-size: 12px;
  }

  .hd-top-left .current-time span:first-of-type {
    margin: 0 8px;
  }

  .hd-top-right {
    font-size: 14px;
  }

  .hd-top-right > span {
    margin-left: 0;
    margin-top: 3px;
  }
  .hd-top-right #login {
    margin-left: 0px;
    min-width: 40px;
    text-align: right;
    display: inline-block;
  }

  .hd-top-right #logined #logout {
    margin-left: 0px;
    min-width: 40px;
    text-align: right;
    display: inline-block;
  }

  /* 移动端隐藏的导航项 */
  .myfancy,
  .myfancy1,
  #member-center,
  .current-time,
  .hd-center .hd-search {
    display: none;
  }
  .hd-top-middle {
    display: block;
    flex: 1;
    max-width: 400px;
  }

  /* 中间区域 */
  .hd-center {
    padding-top: 10px;
    align-items: center;
  }

  .hd-center-title {
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
  }

  /* 搜索框 */
  .hd-search {
    margin: 0;
    width: 100%;
    height: 30px;
    background: #ffffff;
    border-radius: 15px;
  }

  .hd-search-inp {
    margin-left: 10px;
    font-size: 14px;
  }

  .hd-search-inp::placeholder {
    font-size: 14px;
  }

  .hd-search-sub {
    width: 90px;
    font-size: 14px;
    border: none;
  }

  /* 导航区域 - 支持横向滚动 */
  .header-nav {
    height: 50px;
    border-bottom: none;
    box-sizing: content-box;
  }

  .header-nav > div {
    padding: 0;
    width: 100%;
  }

  .header-nav ul {
    height: 100%;
    display: flex;
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* 隐藏滚动条但保持滚动功能 */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .header-nav ul::-webkit-scrollbar {
    display: none;
  }

  .header-nav ul li {
    height: 100%;
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    text-align: center;
    line-height: 50px;
    position: static;
    overflow: visible;
    box-sizing: border-box;
    margin: 0 8px;
  }

  .header-nav ul li:last-child {
    border-right: none;
  }

  .header-nav ul li:hover {
    background-color: transparent;
  }

  .header-nav ul li:hover > a {
    color: #00000073;
  }

  .header-nav a {
    font-weight: 500;
    font-size: 14px;
    color: #00000073;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-nav ul li {
    border-bottom: none;
  }
  .header-nav ul .on {
    border-bottom: 2px solid var(--theme-color);
  }
  .header-nav .on a {
    color: var(--theme-color);
  }

  .header-nav a:hover {
    text-decoration: none;
  }

  /* 子栏目菜单 - 下方横向滚动 */
  .header-nav dl {
    background-color: var(--theme-back-color);
    box-shadow: none;
    overflow: visible;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    height: 45px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 10px;
    border-bottom: none;
    z-index: 10;
  }

  .header-nav dl::-webkit-scrollbar {
    display: none;
  }

  .header-nav dd {
    border: none;
    flex: 0 0 auto;
    padding: 0 12px;
    height: 100%;
  }

  .header-nav dd:not(:first-of-type) {
    border: none;
  }

  .header-nav dd a {
    color: #00000073;
    display: block;
    text-align: center;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    border-radius: 4px;
    height: 100%;
    line-height: 45px;
  }

  .header-nav dd:hover a,
  .header-nav dd.ok a {
    color: var(--theme-color);
    background-color: rgba(13, 49, 143, 0.05);
  }

  /* 激活状态显示子菜单 */
  .header-nav ul li:hover dl,
  .header-nav ul li.active dl {
    display: flex;
  }
}
