/* 公共基础样式 - 字体和根元素设置 */

@font-face {
  font-family: "AlimamaShuHeiTi-Bold";
  src: url("/assets/font/AlimamaShuHeiTi-Bold.woff2") format("woff2");
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("/assets/font/Source_Han_Sans_SC_Regular.woff2") format("opentype");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC";
  src: url("/assets/font/Source_Han_Sans_SC_Bold.woff2") format("opentype");
  font-weight: bold;
  font-display: swap;
}

/* 响应式根字体大小设置 */
html {
  font-size: 100px;
  font-family: "Source Han Sans SC", sans-serif;
}

a {
  text-decoration: none;
}

/* tech-center 页面的动态根字体大小由 JavaScript 控制 */
@media only screen and (max-width: 1540px) {
  html {
    font-size: 90px;
  }
}

@media only screen and (max-width: 1366px) {
  html {
    font-size: 80px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Han Sans SC", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: space-between;
}

.search-form-input {
  width: 7rem;
  height: 0.44rem;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #dcdcdc;
  font-size: 0.14rem;
  padding: 0.15rem;
}

.search-form-button {
  width: 1.4rem;
  height: 0.44rem;
  background: #d12f2d;
  border-radius: 4px;
  /* margin-left: 20px; */
  outline: none;
  font-weight: 500;
  font-size: 0.18rem;
  color: #ffffff;
  border: none;
}

.search-form-item {
  font-size: 0.18rem;
  color: #333333;
  font-weight: bold;
  /* margin-left: 26px; */
}

.search-form-select {
  width: 2rem;
  height: 0.44rem;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #dcdcdc;
  /* margin-left: 30px; */
  font-size: 0.16rem;
  color: #333333;
  padding: 0 0.15rem;
}

/* 自定义下拉菜单组件样式 */
.custom-select-container {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select {
  position: relative;
  width: 100%;
  font-family: "Source Han Sans SC", sans-serif;
}

.custom-select-selected {
  width: 100%;
  height: 0.44rem;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 0 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.16rem;
  color: #333333;
}

.custom-select-selected:hover {
  border-color: #d12f2d;
}

.custom-select-selected.placeholder .custom-select-text {
  color: #999999;
}

.custom-select.open .custom-select-selected {
  border-color: #d12f2d;
  box-shadow: 0 0 0 2px rgba(209, 47, 45, 0.1);
}

.custom-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Source Han Sans SC", sans-serif;
}

.custom-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select.open .custom-select-arrow path {
  stroke: #d12f2d;
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.1rem;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.1rem);
  transition: all 0.3s ease;
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-options {
  padding: 0.08rem 0;
}

.custom-select-option {
  padding: 0.1rem 0.15rem;
  cursor: pointer;
  font-size: 0.16rem;
  color: #333333;
  transition: all 0.2s ease;
  font-family: "Source Han Sans SC", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option:hover {
  background-color: #f5f5f5;
  color: #d12f2d;
}

.custom-select-option.selected {
  background-color: rgba(209, 47, 45, 0.1);
  color: #d12f2d;
  font-weight: 500;
}

/* 滚动条样式 */
.custom-select-dropdown::-webkit-scrollbar {
  width: 0.06rem;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.03rem;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #d12f2d;
  border-radius: 0.03rem;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #b02725;
}

.new-bg {
  width: 100%;
  vertical-align: bottom;
}

body {
  background-color: #fff;
}

.news-content {
  max-width: 83.3%;
  margin: 0 auto;
}

.news-tab {
  animation: fadeIn 0.3s ease;
  padding-bottom: 1rem;
}

.news-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.contact-sidebar-toggle {
  position: absolute;
  left: -20px; /* 或根据实际图片大小调整 */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.contact-item {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.contact-sidebar-toggle img {
  width: 20px;
}
