* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}*/
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/*
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}*/
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/*
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Serif CN";
  src: url("../fonts/SourceHanSerifCN-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}*/

html,
body {
  overflow-x: hidden;
}

body {
  background: #fff;
}

.space {
  height: 100vh;
}

/* ========== 顶部固定导航栏 ========== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #3e4e41;
  transition: background-color 0.4s ease;
}

/* 下拉展开激活态导航样式 */
.header-nav.active {
  background-color: #f6f1eb;
}

.header-nav.active .header-menu>a,
.header-nav.active .menu-item-brand>a {
  color: #38483c;
}

/* ========== 新增 active 状态切换绿色LOGO ========== */
.header-logo {
  position: relative;
  display: block;
}

.header-logo img {
  height: 90px;
  display: block;
  transition: opacity 0.3s ease;
}

.header-logo::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../img/logo/logo-green.png?v=1") no-repeat left center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header-nav.active .header-logo img {
  opacity: 0;
}

.header-nav.active .header-logo::after {
  opacity: 1;
}

/* ========================================== */

.header-nav-inner-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
}

.header-menu {
  display: flex;
  gap: 44px;
  position: relative;
}

/* ======== 新增：BRAND下拉大图菜单样式 ======== */
.menu-item-brand {
  position: relative;
}

/* 透明热区填补导航与下拉面板空隙，防止鼠标移动中断 */
.menu-item-brand::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  top: 100%;
}

.menu-item-brand>a {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s;
  display: block;
}

.menu-item-brand>a:hover {
  opacity: 0.65;
}

/* 大图下拉容器 */
.brand-mega-menu {
  position: fixed;
  top: 93px;
  left: 0;
  width: 100vw;
  padding: 40px 36px;
  background-color: #f6f1eb;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.2, 0.6, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

/* 使用class控制展开，移除原生hover触发 */
.brand-mega-menu.open {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
}

.brand-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.brand-card {
  position: relative;
  overflow: hidden;
}

.brand-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.brand-card:hover img {
  transform: scale(1.04);
}

.brand-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 39%;
  text-align: center;
}

.brand-card-text a {
  font-family: "Source Han Serif CN", SimSun, serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
}

/* =========================================== */

.header-menu>a {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.header-menu>a:hover {
  opacity: 0.65;
}

/* ========== 移动端汉堡菜单新增样式 ========== */
.menu-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: 0.3s ease;
}

.menu-hamburger span:nth-child(1) {
  top: 8px;
}

.menu-hamburger span:nth-child(2) {
  top: 15px;
}

.menu-hamburger span:nth-child(3) {
  top: 22px;
}

/* 激活态叉号 */
.menu-hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 15px;
}

.menu-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
}

/* 移动端 active 时汉堡线条改为深色 */
.header-nav.active .menu-hamburger span {
  background: #38483c;
}

/* 移动端侧边菜单遮罩 */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 右侧滑出菜单面板 */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: rgba(40, 52, 43, 0.96);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
  padding: 100px 40px;
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu>div {
  position: relative;
}

.mobile-menu a {
  color: #fff;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.mobile-menu a:hover {
  opacity: 0.65;
}

/* 移动端 BRAND 二级子菜单 */
.mobile-brand-sub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-brand-sub.open {
  max-height: 215px;
  margin-top: 19px;
}

.mobile-brand-sub a {
  font-size: 17px;
  opacity: 0.8;
}

/* 移动端简易适配 */
@media screen and (max-width:768px) {
  .header-nav-inner {
    padding: 16px 20px;
  }

  .header-logo img {
    height: 32px;
  }

  .header-menu {
    display: none !important;
  }

  .menu-hamburger {
    display: block;
  }

  /* 移动端隐藏大图下拉 */
  .brand-mega-menu {
    display: none !important;
  }

  /* ========= 新增：手机端第一个商品图片宽度140px ========= */
  .product-wrap:nth-of-type(1) .prod-img {
    width: 140px !important;
  }
}

/* ========== 新增页脚Footer样式 不改动其他代码 ========== */
.footer-wrap {
  background-color: #3e4e41;
  /* 匹配截图深墨绿色 */
  width: 100%;
  padding: 80px 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* 左右两端分布 */
  gap: 80px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-brand .imglogo{
  width:100px;
}

.footer-brand h2 {
  font-family: "Source Han Serif CN", SimSun, serif;
  font-size: 42px;
  color: #f8f8f8;
  font-weight: 400;
  line-height: 1;
}

.footer-col-group {
  display: flex;
  gap: 60px;
}

.footer-column {
  position: relative;
  padding-left: 60px;
}

/* 左侧竖分割线 */
.footer-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.footer-col-title {
  font-family: "Source Han Serif CN", SimSun, serif;
  font-size: 16px;
  color: #e4d7b5;
  /* 标题浅米金色 */
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: 1px;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 12px;
}

.footer-link-list a {
  font-family: "Source Han Serif CN", SimSun, serif;;
  font-size: 16px;
  color: #f0f0f0;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.3s;
}

.footer-link-list a:hover {
  opacity: 1;
}

/* 移动端适配 */
@media screen and (max-width:1024px) {
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-brand h2 {
    font-size: 46px;
  }

  .footer-col-group {
    flex-direction: column;
    gap: 30px;
  }

  .footer-column {
    padding-left: 32px;
  }

  .footer-col-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .footer-link-list a {
    font-size: 14px;
  }
}

@media screen and (max-width:640px) {
  .footer-wrap {
    padding: 40px 24px;
  }

  .footer-brand h2 {
    font-size: 36px;
  }
}

/* PC导航右侧图标组 */
.header-icon-group {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 44px;
}

.header-icon-group a {
  display: flex;
  color: #fff;
  transition: opacity 0.3s;
  text-decoration: none;
}

.header-icon-group a:hover {
  opacity: 0.65;
}

.header-nav.active .header-icon-group a {
  color: #38483c;
}

.header-icon-group svg {
  width: 22px;
  height: 22px;
}

/* 移动端隐藏图标 */
@media screen and (max-width:768px) {
  .header-icon-group {
    display: none;
  }
}