/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: OPPOSans;
}
a{
text-decoration: none;
    color: inherit;
}

body {
  font-family: OPPOSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #333;
  min-width: 1200px;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

/* 顶部导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-top {
  position: relative;
  height: 140px;
  /* background: #7c1419; */
  background: url("../images/header-bg.png") no-repeat center;
  overflow: hidden;
  z-index: 1;
  background-size: cover;
}

.header-bg-left,
.header-bg-right {
  position: absolute;
  top: 0;
  height: 140px;
  width: 485px;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.header-bg-left {
  left: 0;
  background-image: url("../images/header-left-bg.png");
  z-index: 10;
}

.header-bg-right {
  right: 0;
  background-image: url("../images/header-right-bg.png");
  z-index: 10;
}

.header-top .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  z-index: 1;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 238px;
  height: 98px;
  object-fit: contain;
}

.header-title {
  margin-left: 32px;
  color: #fff;
  /* width: 353px; */
  text-align: left;
}

.en-header-title{
  margin-left: 20px;
}

.header-title .main-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 33.6px;
  margin-bottom: 4px;
}

.header-title .en-main-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 33.6px;
  margin-bottom: 4px;
}

.header-title .sub-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.2px;
}

.header-top .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
img.search-trigger{
margin-right: 10px;
}

.PolyU img{
   transform: rotate(270deg);
}

.header-right {
  display: flex;
  align-items: center;
  height: 140px;
  gap: 20px;
  margin-left: auto;
}

.en-header-right{
  gap: 10px;
}

.header-right img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

/* 搜索框样式 */
.search-popup {
  position: absolute;
  top: 50%;
  /* right: calc(100% + 16px); */
  right: 76px;
  transform: translateY(-50%);
  display: none;
  z-index: 2000;
}

.search-container {
  width: 453px;
  height: 52px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  height: 100%;
  font-family: "OPPOSans";
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-left: 5px;
}

.search-input::placeholder {
  color: #999999;
}

.search-icon,
.close-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  padding: 4px;
  transition: all 0.3s ease;
}

.search-icon {
  margin-right: 28px;
}

.search-icon:hover,
.close-icon:hover {
  opacity: 0.7;
}

.language-select {
  display: flex;
  align-items: center;
  // gap: 8px;
  cursor: pointer;
}

.language-select:hover .language-select span{
  opacity: 0.5
}

.language-select span {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 24px;
}

.header-right img:hover {
  opacity: 0.8;
}


.header-right a:hover {
  opacity: 0.8;
}

/* 导航菜单 */
.nav {
  height: 40px;
  background: #fff;
  box-shadow: 0px 2px 6px 0px rgba(65, 0, 3, 0.2);
}

.nav .container {
  height: 100%;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
  height: 100%;
  /* padding: 0 16px; */
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #7c1419;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.nav-item:hover::after {
  transform: scaleX(1);
}

.nav-item:hover a, .breadcrumb a:hover{
  color: #7c1419 !important;
}

.wp_nav .nav-item a span.item-name{
     padding: 0;
}

.nav-item.active {
  position: relative;
}

.nav-item.active a {
  color: #7c1419;
}

.nav-item.active::after {
  transform: scaleX(1);
  background: #7c1419;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 20px 0;
  margin-top: 180px;
  background-color: #fff;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 16px;
  position: relative;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #7c1419;
}



/* 面包屑导航 */
.breadcrumb {
  height: 60px;
  background: #f2f3f5;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  font-family: OPPOSans;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../images/breadcrumb-icon.svg") center/contain no-repeat;
  margin: 0 16px;
}

.possplit {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../images/breadcrumb-icon.svg") center/contain no-repeat !important;
  margin: 0 16px;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #7c1419;
}

/* 页脚 */
.footer {
  background: #7c1419;
  padding: 48px 0;
  color: #fff;
}

.footer-info {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 24px;
}

.footer-info p {
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 16px;
  color: #ccc;
  line-height: 1.4;
  display: flex;
  gap: 48px;
}

.footer-copyright p {
  margin-bottom: 0;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* 为所有有 id 的锚点目标添加上边距 */
[id] {
  scroll-margin-top: 160px; /* 根据你的导航栏高度调整 */
}

.wp_nav .nav-item a{
display: flex;
    align-items: center;
height: 40px;
}

.wp_nav{
display: flex;
    justify-content: space-between;
}

.wp_nav:after{
display: none;
}

.wp_search input {
    width: 350px !important;
    height: 52px;
    border: none;
}
.wp_search .search{
display:none;
}
.wp_search input:focus {
  outline: none;
}
