:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --text-color: #2C3E50;
    --light-gray: #ECF0F1;
    --dark-gray: #34495E;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* 全局字体设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

/* 产品页面布局 */
.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;
}

.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%;
  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: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.more-btn:hover {
  color: #ff6633;
}

/* 响应式调整 */
@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: #238cff;
  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;
  }
}

/* 页脚、返回顶部、社交链接等 */
.footer {
    background-color: #343a40;
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: #238cff;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #238cff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #1a75d1;
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
  .section-title h2,
  .section-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.8rem !important;
  }
  .product-container {
    padding: 6px !important;
  }
}

/* 顶部信息栏样式，保持与首页一致 */
.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
}
.top-bar .contact-item a {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 768px) {
  .top-bar .ms-auto {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
    font-size: 13px !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .top-bar .contact-item {
    font-size: 13px;
    gap: 0.4rem;
    margin-bottom: 2px;
  }
}
