/* ========================================
   Officialwebsite - Responsive Header & Footer
   ======================================== */

/* --- Base --- */
body {
  overflow-x: hidden;
}

/* --- Header / Navbar --- */
.header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 11;
  height: 64px;
  background: #fff;
  box-shadow: inset 0px -1px 1px 0px rgba(229, 229, 229, 0.5);
}

.header .w {
  height: 100%;
  display: flex;
  align-items: center;
}

/* --- Logo --- */
.logo { flex-shrink: 0; }
.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 38px;
  font-size: 16px;
  color: #333;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}

/* --- Desktop Nav Tabs --- */
.tab { flex: 1; padding-left: 49px; }
.tab > ul { display: flex; }
.tab li {
  height: 64px;
  line-height: 64px;
  padding: 0 16px;
  position: relative;
}
.tab li > a {
  color: #666666;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.tab li:hover > a,
.tab li.tab_on > a {
  color: #333333;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}

/* --- Dropdown --- */
.tab_down {
  position: absolute;
  text-align: left;
  background: #fff;
  left: 0;
  top: 64px;
  height: 0;
  overflow: hidden;
  transition: all 0.3s;
  z-index: 1;
  border-radius: 0 0 4px 4px;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.tab_down a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 24px;
  font-size: 14px;
  position: relative;
  color: #333333;
  transition: all 0.2s;
  margin-top: 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}
.tab_down a em {
  display: block;
  height: 22px;
  line-height: 22px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}
.tab_down a span {
  display: block;
  height: 20px;
  line-height: 20px;
  color: #999999;
  margin-top: 4px;
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.tab_down a i {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 8px;
  background: url(../images/new/a1.png) no-repeat;
  background-size: 100% auto;
  display: none;
}
.tab_down a:hover i { display: block; }

/* Dropdown widths (desktop hover) */
.tab li:nth-child(1):hover .tab_down { width: 246px; height: 202px; }
.tab li:nth-child(2):hover .tab_down { width: 200px; height: 133px; }
.tab li:nth-child(3):hover .tab_down { width: 200px; height: 92px; }
.tab li:nth-child(4):hover .tab_down { width: 200px; height: 205px; }
.tab li:nth-child(5):hover .tab_down { width: 200px; height: 133px; }

/* --- Login Button --- */
.head_user { flex-shrink: 0; position: relative; }
.head_user .login {
  width: 76px;
  height: 38px;
  text-align: center;
  line-height: 38px;
  background: #FF9443;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
}
.head_user_down {
  position: absolute;
  width: 196px;
  height: 0;
  overflow: hidden;
  transition: all 0.3s;
  background: url(../images/new/a30.png) no-repeat;
  background-size: cover;
  right: -10px;
  top: 58px;
  padding: 5px 0 0 40px;
  display: flex;
  flex-flow: wrap;
  flex-direction: column;
}
.head_user_down a {
  width: 100%;
  height: 36px;
  line-height: 36px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #333333;
  padding-left: 46px;
  font-size: 14px;
  margin-top: 20px;
  position: relative;
}
.head_user_down a::before {
  content: "";
  width: 36px;
  height: 36px;
  position: absolute;
  left: 0;
  top: 0;
}
.head_user_down .head_user_n1::before { background: url(../images/new/a31.png) no-repeat; background-size: cover; }
.head_user_down .head_user_n2::before { background: url(../images/new/a32.png) no-repeat; background-size: cover; }
.head_user:hover .head_user_down { height: 152px; }

/* --- Hamburger Menu Button (mobile) --- */
.hamburger {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  z-index: 20;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #fff;
  z-index: 10;
  overflow-y: auto;
  padding: 0;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-overlay .mobile-nav-list { padding: 0; }
.mobile-nav-overlay .mobile-nav-list > li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-overlay .mobile-nav-list > li > a {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  position: relative;
}
.mobile-nav-overlay .mobile-nav-list > li > a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.3s;
}
/* Hide arrow for direct-link items (like 热门推荐) */
.mobile-nav-overlay .mobile-nav-list > li > a.no-arrow::after { display: none; }
.mobile-nav-overlay .mobile-nav-list > li.open > a::after {
  transform: translateY(-50%) rotate(45deg);
}
.mobile-nav-overlay .mobile-subnav {
  display: none;
  background: #fafafa;
  padding: 0;
}
.mobile-nav-overlay .mobile-nav-list > li.open .mobile-subnav { display: block; }
.mobile-nav-overlay .mobile-subnav a {
  display: block;
  padding: 14px 20px 14px 40px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  font-family: PingFangSC-Regular, PingFang SC;
}
.mobile-nav-overlay .mobile-subnav a em { font-style: normal; color: #333; display: block; }
.mobile-nav-overlay .mobile-subnav a span { font-size: 12px; color: #999; display: block; margin-top: 2px; }

/* --- To-top button (for sub pages) --- */
.content { padding-top: 64px; }

/* --- Footer --- */
.footer {
  width: 100%;
  background: #FF8E42 url(../images/bg_d.png) no-repeat;
  background-size: cover;
}
.footer .w { padding: 0 20px; }
.footer_top {
  width: 100%;
  padding-top: 60px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
}

.footer_info {
  width: 24%;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding-right: 20px;
}
.footer_info h5 {
  font-size: 16px;
  line-height: 24px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
}
.footer_info div {
  width: 100%;
  margin-top: 24px;
}
.footer_info div h5 {
  font-size: 14px;
  line-height: 22px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.footer_info div p {
  font-size: 16px;
  line-height: 24px;
  font-family: HelveticaNeue-Medium, HelveticaNeue;
  font-weight: bold;
}

.footer_list {
  display: flex;
  flex: 1;
  margin-left: 8%;
  flex-wrap: wrap;
}
.footer_list dl {
  width: 144px;
  text-align: left;
  color: #fff;
  margin-bottom: 20px;
}
.footer_list dt {
  display: block;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 6px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 700;
}
.footer_list dt a { color: #fff; }
.footer_list dd {
  display: block;
  width: 100%;
  line-height: 22px;
  margin-top: 16px;
}
.footer_list dd a {
  color: #fff;
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}
.footer_list dd a:hover { text-decoration: underline; }

.footer_imgcode {
  flex-shrink: 0;
  text-align: center;
}
.footer_imgcode .foot_name {
  font-size: 16px;
  color: #fff;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 700;
}
.footer_imgcode .foot_coimg img {
  width: 96px;
  height: 96px;
  margin-top: 16px;
}

.footer_bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px 0;
  color: #fff;
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  text-align: center;
}
.footer_bottom .foot_bom_lf { display: inline; }
.footer_bottom a { color: #fff; }

/* --- Toast --- */
.message {
  width: 300px;
  height: 46px;
  line-height: 46px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -150px;
  margin-top: -23px;
  border-radius: 5px;
  z-index: 33;
  display: none;
}

/* =========================================== */
/*              RESPONSIVE BREAKPOINTS          */
/* =========================================== */

/* --- Tablet: <= 1024px --- */
@media screen and (max-width: 1024px) {
  .tab { padding-left: 20px; }
  .tab li { padding: 0 10px; }
  .tab li > a { font-size: 13px; }
  .footer_info { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 20px; margin-bottom: 20px; }
  .footer_list { margin-left: 0; width: 100%; }
  .footer_imgcode { width: 100%; margin-top: 20px; }
  .footer_list dl { width: 33.33%; }
}

/* --- Mobile: <= 768px --- */
@media screen and (max-width: 768px) {
  /* Header mobile */
  .header { height: 56px; }
  .header .w { padding: 0 16px; }
  .logo a { width: 52px; height: 28px; font-size: 14px; }
  .tab { display: none; }
  .head_user { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav overlay */
  .mobile-nav-overlay { top: 56px; height: calc(100vh - 56px); }

  /* Content offset for mobile header */
  .content { padding-top: 56px !important; }

  /* Footer mobile */
  .footer_top { padding-top: 40px; flex-direction: column; }
  .footer_info { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 16px; margin-bottom: 16px; padding-right: 0; }
  .footer_list { margin-left: 0; width: 100%; }
  .footer_list dl { width: 50%; margin-bottom: 16px; }
  .footer_imgcode { width: 100%; margin-top: 16px; text-align: center; }
  .footer_bottom { font-size: 12px; padding: 16px 10px; line-height: 1.8; }
}
