/* ======= 以下样式已由header-footer.css统一，注释避免影响全站头部和导航 ======= */
/*
.header-top {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-icons {
    display: flex;
    align-items: center;
}
.header-icons-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-logo {
    height: 60px;
}
.header-icon {
    height: 70px;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin: 0 100px;
}
.logo img {
    max-height: 60px;
}
*/
/*
.nav-item {
  border-bottom: 1px solid #eee;
}
*/
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
}
*/

/* 产品页面布局 */
.product-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

@media (min-width: 1600px) {
  .product-container {
    width: 85%;
  }
}

@media (min-width: 2000px) {
  .product-container {
    width: 80%;
    max-width: 2000px;
  }
}
.product-container .container{
  width: 80%;
  margin: 0 auto;
  display: flex;
  gap: 30px;
}
/* 左侧导航样式 */
.product-nav {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
}

@media (min-width: 1600px) {
  .product-nav {
    flex: 0 0 300px;
  }
}

@media (min-width: 2000px) {
  .product-nav {
    flex: 0 0 320px;
  }
}

.nav-header {
  background: #ff6633;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-header h2 {
  font-size: 18px;
  font-weight: 500;
}

.nav-list {
  list-style: none;
}

/*
.nav-item {
  border-bottom: 1px solid #eee;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-item.active .nav-link,
.nav-link:hover {
  color: #ff6633;
}
*/

.sub-nav {
  display: none;
  list-style: none;
  background: #ff6633;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.nav-item.active .sub-nav {
  display: block;
  max-height: 500px; /* 设置一个足够大的高�?*/
  padding: 10px 0;
}

.nav-link i {
  transition: transform 0.3s ease;
}

.nav-item.active .nav-link i {
  transform: rotate(180deg);
}

.sub-nav a {
  display: block;
  padding: 10px 20px 10px 40px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.sub-nav a:hover,
.sub-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  padding-left: 45px;
}

/* 右侧产品展示样式 */
.product-content {
  flex: 1;
  padding-bottom: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.pagination button {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: #ff6633;
  color: #fff;
  border-color: #ff6633;
}

.pagination button:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border-color: #ddd;
}

.page-info {
  font-size: 14px;
  color: #666;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  padding-top: 75%; /* 4:3 比例 */
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.more-btn {
  display: inline-block;
  padding: 8px 20px;
  color: #54cccc;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #54cccc;
}

.more-btn:hover {
  background-color: #54cccc;
color: #fff;
}

/* 响应式调�?*/
@media (max-width: 992px) {
  .product-container {
      flex-direction: column;
  }

  .product-nav {
      flex: none;
  }

  .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-container {
      padding: 10px;
  }

  .nav-header h2 {
      font-size: 16px;
  }

  .product-grid {
      gap: 15px;
  }

  .product-info {
      padding: 15px;
  }

  .product-info h3 {
      font-size: 14px;
  }
}

/* 产品分类菜单国际化美观样�?*/
#category-list {
  padding-left: 0;
}
#category-list .category-link {
  display: block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
#category-list .category-link.active,
#category-list .category-link:hover {
  background: #f5f5f5;
  color: #54cccc;
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 991px) {
  #category-list .category-link {
    font-size: 0.98rem;
    padding: 8px 8px;
  }
}
@media (max-width: 767px) {
  aside.col-md-3 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  #category-list .category-link {
    font-size: 1rem;
    padding: 12px 10px;
  }
}

#category-toggle-btn {
  font-size: 1.1rem;
  border: 1px solid #eee;
  background: #fff;
  color: #333;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-bottom: 8px;
  padding: 10px 12px;
}
#category-toggle-icon {
  font-size: 1.2rem;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 767px) {
  #category-list {
    transition: all 0.2s;
    margin-bottom: 0;
  }
}
