/* ========== 产品中心页面样式 ========== */

/* ========== 内页 Banner ========== */
.ny-banner {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('../images/banner_about.jpg') no-repeat center center;
  background-size: cover;
}
.ny-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.ny-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  text-align: center;
  color: #fff;
}
.ny-banner-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.ny-banner-text p {
  font-size: 16px;
  opacity: .85;
  letter-spacing: 2px;
}

/* ========== 内容区域 ========== */
.product-main {
  padding: 60px 0 80px;
  background: #f7f8fa;
}
.product-layout {
  display: flex;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 左侧菜单 ========== */
.product-sidebar {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  align-self: flex-start;
  position: sticky;
  top: 120px;
}
.sidebar-title {
  background: #003B90;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 24px 20px;
  letter-spacing: 3px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 28px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: all .3s ease;
  position: relative;
  cursor: pointer;
}
.sidebar-nav a::before {
  content: '';
  width: 4px;
  height: 0;
  background: #003B90;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: height .3s ease;
}
.sidebar-nav a:hover {
  color: #003B90;
  background: #f5f7fb;
}
.sidebar-nav a.active {
  color: #fff;
  background: #003B90;
  font-weight: 600;
}
.sidebar-nav a.active::before {
  height: 100%;
}
.sidebar-nav a .count {
  margin-left: auto;
  font-size: 12px;
  opacity: .7;
}

/* ========== 右侧内容 ========== */
.product-content {
  flex: 1;
  min-width: 0;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .4s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,59,144,.15);
}
.product-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f0f2f5;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}
.product-card-info {
  padding: 20px;
  text-align: center;
}
.product-card-info h4 {
  font-size: 17px;
  color: #222;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color .3s ease;
}
.product-card:hover .product-card-info h4 {
  color: #003B90;
}
.product-card-info .product-tag {
  display: inline-block;
  font-size: 12px;
  color: #999;
  background: #f0f2f5;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ========== 分页 ========== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 4px;
}
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
}
.pagination-wrap a:hover {
  color: #003B90;
  border-color: #003B90;
}
.pagination-wrap .active {
  background: #003B90;
  color: #fff;
  border-color: #003B90;
  cursor: default;
}
.pagination-wrap .disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-wrap .pagination-info {
  font-size: 13px;
  color: #999;
  margin-left: 16px;
}

/* 面包屑 */
.breadcrumb-bar {
  padding: 10px 0;
  font-size: 13px;
  color: #999;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 15px;
}
.breadcrumb-bar a {
  color: #999;
  transition: color .2s;
}
.breadcrumb-bar a:hover {
  color: #003B90;
}
.breadcrumb-bar span.sep {
  margin: 0 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .ny-banner {
    height: 260px;
  }
  .ny-banner-text h2 {
    font-size: 28px;
  }
  .product-layout {
    flex-direction: column;
    gap: 20px;
  }
  .product-sidebar {
    flex: 0 0 auto;
    position: static;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .sidebar-nav a {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
    text-align: center;
  }
  .sidebar-nav a::before {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .ny-banner {
    height: 200px;
  }
  .ny-banner-text h2 {
    font-size: 24px;
  }
  .sidebar-nav a {
    min-width: 50%;
    flex: 1 1 50%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-img {
    height: 160px;
  }
  .product-card-info {
    padding: 14px;
  }
  .product-card-info h4 {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-card-img {
    height: 130px;
  }
}
