html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  font-family: "PingFang SC", "Microsoft YaHei", "SimHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 通用重置样式 */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: #000;
}
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
/* 通用容器（固定宽度） */
.container {
  width: 1200px;
  margin: 0 auto;
}
.container::after {
  content: "";
  display: block;
  clear: both;
}

.main {
  width: 100%;
  background: url(../images/main_bg.jpg) no-repeat center top;
  background-size: cover;
}

/* ===================== 顶部导航区 ===================== */
.header {
  width: 100%;
  height: 240px;
  background-color: #713500;
  background-image: url(../images/header_bg.png);
  background-repeat: no-repeat;
  background-size: 647px 162px;
  background-position: 52vw 50px;
}
.header .header-wrapper {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 44px;
}
.header .logo {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 32px;
}
.header .logo img {
  height: 94px;
}
.header .logo .separator-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
.header .logo .site-name {
  color: #fff;
  height: 30px;
  line-height: 1;
  font-size: 30px;
  font-weight: bold;
}
.header .nav {
  width: 100%;
}

.header .nav .nav-list {
    width: 100%;
    height: 34px;
    /* margin-top: 27px; */
    display: flex;
    justify-content: flex-start;
    align-items: top;
    gap: 70px;

}

.header .nav .nav-list>li {
    list-style: none;
    position: relative;
}
.header .header-wrapper .nav .nav-list>li a {
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    line-height: 22px;
    text-align: left;
    font-style: normal;
}
/* 下拉菜单结构 */
/* 菜单列表区域 */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
background: linear-gradient(0deg, #FBCA9F, #FFFFFF);
box-shadow: 0px 4px 6px 0px rgba(40,19,0,0.5);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    overflow: hidden;
}

.submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #492200;
}

.submenu li {
    text-align: center;
    padding: 0 15px;
    cursor: pointer;
}

.submenu li a {
    color: #000 !important;
    font-size: 15px;
    display: block;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.6px;
    white-space: nowrap;
    padding: 14px 3px;
    text-align: center !important;
}

/* 顶部小三角形箭头 - 在菜单框外面 */
.has-submenu {
    position: relative;
}

.has-submenu::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 28px;
    transform: translateX(-50%) translateY(-10px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #492200;;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.05s ease-out 0.01s, transform 0.05s ease-out 0.01s, visibility 0.05s ease-out 0.01s;
}

.has-submenu:hover::before,
.has-submenu:hover .submenu::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li:hover {
    background: rgba(240, 170, 107, 1)
}

.submenu li:hover a {
    /* color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); */
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* //导航结束 */
/* ===================== 尾部 ===================== */
.footer {
  height: 586px;
  background: url(../images/footer_bg.png) no-repeat center top;
  background-size: cover;
  padding-top: 197px;
  box-sizing: border-box;
}
.footer .logo {
  width: 425px;
  height: 99px;
  margin-left: 366px;
  margin-bottom: 36px;
  background: url(../images/logo.png) no-repeat;
  background-size: 100% auto;
}
.footer .footer-links {
  width: 1200px;
  display: flex;
  gap: 37px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.footer .footer-links .action {
  background: rgba(255, 212, 174, 0.5);
  color: #fff;
  text-align: center;
}
.footer .footer-links .link-group {
  width: 213px;
  height: 39px;
  line-height: 39px;
  font-size: 16px;
  /* padding-left: 15px; */
}
.footer .footer-links .link-group select {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 0 10px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  appearance: none;
}
.footer .footer-links .link-group select:focus {
  outline: none;
  border-color: rgba(255, 212, 174, 0.5);
}
.footer .address {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  font-size: 14px;
  color: #fff;
}
.footer .address .address-col p {
  margin: 0 0 8px 0;
  line-height: 1.8;
}
.footer .address .first-address {
  padding-left: 3em;
}
.footer .address .first-address p:first-child {
  position: relative;
  left: -3em;
}

/* ===================== 自定义下拉菜单 ===================== */
.custom-select {
  position: relative;
  width: 212px;
  height: 39px;
}
.custom-select .select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 39px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.9);
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  /* border-radius: 4px; */
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.custom-select .select-header .select-title {
  font-size: 16px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select .select-header .select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.custom-select .select-header:hover {
  border-color: rgba(255, 255, 255, 0.6);
}
.custom-select .select-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 220px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  z-index: 100;
  margin-bottom: 8px;
}
.custom-select .select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.custom-select .select-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.custom-select .select-dropdown li {
  border-bottom: 1px solid #f0f0f0;
}
.custom-select .select-dropdown li:last-child {
  border-bottom: none;
}
.custom-select .select-dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}
.custom-select .select-dropdown li a:hover {
  background: #f5f5f5;
  color: #0056b3;
  padding-left: 18px;
}
.custom-select.active .select-header {
  border-color: rgba(255, 255, 255, 0.8);
}
.custom-select.active .select-header .select-arrow {
  transform: rotate(180deg);
}
.custom-select.active .select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select.clicked-outside .select-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
