/* common.css - 公共样式（header + footer） */

/* 全局样式重置（公共基础，所有页面需引入） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: none;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}

/* 头部导航公共样式 */
/* 头部导航公共样式（保留原有PC端样式） */
.header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  width: 100%;
  z-index: 10;
}
.header .container {
  margin: 0 auto;
  display: flex;
  padding: 0;
  align-items: center; /* 子元素垂直居中 */
  justify-content: space-between; /* Logo、按钮、导航左右分布 */
}
.header .logo {
  display: flex;
  align-items: center;
  padding: 15px 0; /* 移动端增加上下内边距 */
  position: relative;
  z-index: 100;
}
.header .logo img {
  width: 180px; /* 移动端缩小Logo尺寸 */
  height: auto; /* 保持比例 */
}
.header .nav ul {
  list-style: none;
  margin-bottom: 0;
}
.header .nav ul li {
  display: inline-block;
  margin-left: 20px;
  height: 80px;
  line-height: 80px;
  background-color: transparent;
  padding: 0 15px;
}
.header .nav ul li.active {
  background-color: rgba(205, 167, 107, 1);
}
.header .nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.header .nav ul li:hover{
    background-color: rgba(205, 167, 107, 1);
}

/* 移动端汉堡菜单按钮样式 */
.mobile-menu-btn {
  display: none; /* PC端隐藏 */
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(205, 167, 107, 1);
  border-radius: 2px;
  transition: all 0.3s ease;
}



/* 底部公共样式 */
.footer {
  background-color: #000;
  color: #fff;
  padding: 0;
}
.footer .top-box {
  align-items: flex-start !important;
}
.top-footer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.5);
}
.contact-item:last-child {
  flex: 2;
  align-items: flex-start;
}
.contact-item .icon {
  width: 24px;
  height: 24px;
}
.bottom-footer {
  padding: 40px 0 0;
  
}
.bottom-footer .container{
  display: block; 
}
.bottom-footer h4 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links li a:hover {
  color: #cda76b;
}
.social-icons {
  margin-top: 20px;
}
.social-icons a {
  margin-right: 40px;
}
.social-icons img {
  width: 24px;
  height: 24px;
}
.copyright {
  text-align: center;
  margin-top: 40px;
  color: rgba(255, 255, 255, 1);
  font-size: 15px;
  height: 50px;
  font-weight: 500;
  line-height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

/* 公共按钮样式（如MORE+按钮，多个页面可能用到） */
.more-btn {
  width: 160px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  background-color: rgba(205, 167, 107, 1);
  text-align: center;
  border-radius: 40px;
  cursor: pointer;
}
.more-btn span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 22px;
  color: rgba(255, 255, 255, 1);
}
.more-btn i {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 36px;
  background-color: #fff;
  color: rgba(205, 167, 107, 1);
  float: right;
  margin-top: 2px;
  margin-right: 2px;
}

.bannerBg img{
    width: 100%;
    height: 540px;
}

.product-title {
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 20px;
}
.title-line{
    width: 50px;
    height: 2px;
    background-color: rgba(205, 167, 107, 1);
    margin: 10px auto 50px;
}

.swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 1);
  margin: 0 6px !important;
}
.swiper-pagination-bullet-active {
  background-color: rgba(205, 167, 107, 1);
  width: 14px;
  height: 14px;
  border: 0.5px solid rgba(205, 167, 107, 1);
}

.pagination{
    justify-content: center;
    border-top: 0.5px solid rgba(0, 0, 0, 0.3);
    gap: 20px;
}
.pagination li{
    width: 36px;
    text-align: center;
    padding: 10px 0;
    color: rgba(0, 0, 0, 0.5);
    border-top: 3px solid transparent;
    margin-top: -2px;
}
.pagination li.active{
    color: rgba(0, 0, 0, 0.8);
    border-color: rgba(205, 167, 107, 1);
}

/* PC端隐藏二级菜单相关元素（避免干扰） */
@media (min-width: 769px) {
  .header .nav ul li.has-submenu .submenu-icon,
  .header .nav ul .submenu {
    display: none !important;
  }
}


/* 移动端导航样式（屏幕宽度≤768px时生效） */
@media (max-width: 768px) {
  .bannerBg img{
    height: 140px;
  }
  /* 调整Logo尺寸 */
  .header {
    padding: 0 15px;
  }
  .header .logo img {
    width: 170px;
  }

  /* 显示汉堡菜单按钮，隐藏PC端导航 */
  .mobile-menu-btn {
    display: flex;
    justify-content: space-around;
  }
  .header{
    position: relative;
    background: rgba(0, 0, 0, 1);
  }
  .header .nav {
    position: fixed;
    top: -50vh;
    right: -100%; /* 初始隐藏在右侧 */
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    transition: top 0.3s ease;
    z-index: 99;
  }
  .header .nav.active {
    top: 50px; /* 激活时显示导航 */
    right: 0;
  }
  .header .nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .header .nav ul li {
    display: block; /* 垂直排列 */
    margin: 15px 0;
    height: auto;
    line-height: normal;
    padding: 0;
    width: 100%;
    border-left: 3px solid transparent;
    
  }
  .header .nav ul li a{
    font-weight: 500;
    padding: 0 23px;
  }
  .header .nav ul li.active{
    background-color: transparent;
    
  }
  .header .nav ul li.active>a{
    color: rgba(205, 167, 107, 1);
    border-left: 3px solid rgba(205, 167, 107, 1);
  }
  .header .nav ul li:hover{
      background-color: transparent;
      color: rgba(205, 167, 107, 1);
  }

  /* 父菜单样式调整：相对定位用于二级菜单绝对定位 */
  .header .nav ul li.has-submenu {
    position: relative;
    padding-right: 30px; /* 预留图标空间 */
  }

  /* 二级菜单触发按钮（文字+图标）样式 */
  .header .nav ul li .submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* 二级菜单图标样式 */
  .header .nav ul li .submenu-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease; /* 图标旋转动画 */
  }

  /* 二级菜单展开时：图标旋转180度 */
  .header .nav ul li.active .submenu-icon {
    transform: rotate(180deg);
    color: #cda76b; /* 激活态颜色匹配主题色 */
  }

  /* 二级菜单容器样式（默认隐藏） */
  .header .nav ul .submenu {
    display: none;
    margin-top: 8px;
  }
  

  /* 二级菜单展开时：显示菜单 */
  .header .nav ul li.active .submenu {
    display: block;
  }

  /* 二级菜单列表项样式 */
  .header .nav ul .submenu li {
    margin: 8px 0;
    height: auto;
    line-height: normal;
  }

  /* 二级菜单链接样式 */
  .header .nav ul .submenu li a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6); /* 未激活态颜色稍浅 */
  }

  /* 二级菜单当前项样式 */
  .header .nav ul .submenu li.active a {
    color: #cda76b; /* 激活态匹配主题色 */
    font-weight: 600;
  }

  /* 二级菜单 hover 效果 */
  .header .nav ul .submenu li a:hover {
    color: #cda76b;
  }

  /* 汉堡菜单激活时的动画（三条杠变叉） */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .product-title{
    font-size: 26px;
  }
  
  .footer .top-box{
    flex-direction: column;
    gap: 10px;
  }
  .top-footer{
    padding: 15px;
  }
  .bottom-footer .container{
    display: none;
  }
  .bottom-footer{
    padding: 0;
  }
  .copyright{
    margin-top: 0;
    height: auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    padding: 10px 30px;
  }
  
  .pagination{
    border-top: 0 none;
  }
  .pagination li{
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 36px;
    border: 0.5px solid rgba(219, 219, 219, 1);
    text-align: center;
    padding: 0;
    color: rgba(0, 0, 0, 0.5);
  }
  .pagination li.active{
    color: #fff;
    border-color: rgba(205, 167, 107, 1);
    background: rgba(205, 167, 107, 1);
  }
}

