/* 产品页面 Banner */
.product-banner {
  height: 500px;
  background: url("/images/product.png");
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.product-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.banner-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.banner-content {
  color: white;
  text-align: left;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

/* 产品导航栏 */
.product-navigation {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  border-radius: 0;
}

.nav-container {
  display: flex;
  overflow-x: auto;
  border-bottom: 3px solid #007848;
}

.nav-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item a {
  display: block;
  padding: 20px 25px;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-item:hover a {
  color: #007848;
  background: #f8f9fc;
}

.nav-item.active a {
  color: #007848;
  background: #f8f9fc;
  border-bottom-color: #007848;
}

.products-section {
  padding: 0;
  background: #f8f9fc;
}

/* 确保内容紧贴导航栏 */
.navbar+.product-banner {
  margin-top: 60px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 max(15px, 5vw);
}

/* 产品详细介绍区域 */
.product-detail-section {
  background: white;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.detail-container {
  padding: 40px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.detail-text h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.detail-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #007848;
  border-radius: 2px;
}

.product-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-tech-info {
  background: #f8f9fc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #007848;
}

.product-tech-info p {
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #007848;
  box-shadow: 0 2px 8px rgba(0, 120, 72, 0.1);
}

.feature-icon {
  color: #007848;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item span {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.detail-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
}

.detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 图片加载失败时的占位样式 */
.detail-image::before {
  content: '';
  display: block;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e0e6f0 100%);
  border-radius: 8px;
  position: relative;
}

.detail-image img:not([src]),
.detail-image img[src=""] {
  display: none;
}

.detail-image:empty::after {
  content: '产品结构图';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 1.1rem;
  font-weight: 500;
}

/* 子分类选择区域 */
.subcategory-section {
  border-top: 1px solid #e0e6f0;
  padding-top: 30px;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.subcategory-card {
  background: #f8f9fc;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 25px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.subcategory-card:hover {
  border-color: #007848;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 120, 72, 0.1);
  transform: translateY(-2px);
}

.subcategory-card.active {
  border-color: #007848;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 120, 72, 0.15);
}

.subcategory-card h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subcategory-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* 应用领域区域 */
.application-areas {
  background: white;
  margin: 30px 0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.application-areas h3 {
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.application-areas h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #007848;
  border-radius: 2px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.application-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px 15px;
  background: #f8f9fc;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.application-item:hover {
  border-color: #007848;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 120, 72, 0.1);
  transform: translateY(-3px);
}

.app-icon {
  width: 60px;
  height: 60px;
  background: #007848;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.application-item:hover .app-icon {
  background: #005a36;
  transform: scale(1.1);
}

.application-item span {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
}

/* 隐藏旧的产品简介样式 */
.product-intro {
  display: none;
}

/* 隐藏旧的产品菜单样式 */
.product-menu {
  display: none;
}

/* 隐藏旧的产品类别介绍样式 */
.product-category-intro {
  display: none;
}

/* 产品表格区域样式 */
.product-table-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: #007848;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.download-btn:hover {
  background: #007848;
}

/* 表格容器 */
.table-container {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  contain: content;
}

/* 产品表格样式 - 优化字体大小和自适应 */
.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
  /* 减少最小宽度 */
  transform: translateZ(0);
  contain: layout;
}

.product-table th,
.product-table td {
  padding: 12px 8px;
  /* 增加内边距 */
  text-align: center;
  border: 1px solid #eee;
  font-size: 0.875rem;
  /* 14px，适中的字体大小 */
  line-height: 1.4;
  vertical-align: middle;
}

.product-table th {
  background: #f8f9fc;
  color: #333;
  font-weight: 600;
  font-size: 0.8125rem;
  /* 13px，表头稍小 */
  line-height: 1.3;
  white-space: normal;
  vertical-align: middle;
  min-width: 120px;
  max-width: 180px;
  height: auto;
  word-wrap: break-word;
  word-break: break-word;
  position: relative;
  padding: 15px 10px 45px;
  /* 调整内边距 */
}


.product-table td {
  color: #555;
  font-size: 0.875rem;
  /* 14px */
}

.product-table tbody tr {
  transition: background-color 0.2s ease;
}

.product-table tbody tr:hover {
  background: #f8f9fc;
}

.product-table tbody tr:nth-child(even) {
  background: rgba(248, 249, 252, 0.3);
}

.product-table tbody tr:nth-child(even):hover {
  background: #f0f4f8;
}

/* 数字和特殊字段的样式 */
.product-table td:not(:first-child):not(:last-child) {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .product-table {
    min-width: 1000px;
    font-size: 0.8125rem;
    /* 13px */
  }

  .product-table th,
  .product-table td {
    padding: 10px 6px;
    font-size: 0.8125rem;
    /* 13px */
  }

  .product-table th {
    font-size: 0.75rem;
    /* 12px */
    padding: 12px 8px 40px;
  }

  .product-table th:nth-child(-n+2),
  .product-table td:nth-child(-n+2) {
    font-size: 0.875rem;
    /* 14px */
  }
}

@media (max-width: 768px) {
  .table-header {
    flex-direction: column;
    gap: 15px;
  }

  .table-header h3 {
    font-size: 1.25rem;
  }

  .download-btn {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
  }

  .product-table {
    min-width: 900px;
    /* 移动端减少最小宽度 */
  }

  .product-table th,
  .product-table td {
    padding: 8px 5px;
    font-size: 0.75rem;
    /* 12px */
  }

  .product-table th {
    font-size: 0.6875rem;
    /* 11px */
    padding: 10px 6px 35px;
  }

  .product-table th:nth-child(-n+2),
  .product-table td:nth-child(-n+2) {
    font-size: 0.8125rem;
    /* 13px */
  }
}

@media (max-width: 480px) {
  .product-table {
    min-width: 800px;
  }

  .product-table th,
  .product-table td {
    padding: 6px 4px;
    font-size: 0.6875rem;
    /* 11px */
  }

  .product-table th {
    font-size: 0.625rem;
    /* 10px */
    padding: 8px 4px 32px;
  }

  .product-table th:nth-child(-n+2),
  .product-table td:nth-child(-n+2) {
    font-size: 0.75rem;
    /* 12px */
  }
}

/* 产品菜单样式 */
.product-menu {
  margin-bottom: 30px;
  background: #f8f9fc;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.product-menu>ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  border-bottom: 1px solid #e0ede7;
}

.product-menu>ul>li {
  position: relative;
}

.product-menu>ul>li>a {
  display: block;
  padding: 20px 30px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 700;
  font-size: 1.125rem;
}

.product-menu>ul>li.active>a,
.product-menu>ul>li:hover>a {
  color: #f8f9fc;
  background: #007848;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  display: none;
  z-index: 100;
}

.product-menu>ul>li:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 8px 20px;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.submenu li a:hover {
  color: #007848;
  background: #f8f9fc;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination a,
.pagination span {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.page-numbers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 4px;
}

.page-numbers .active {
  background: #007848;
  color: #fff;
}

.page-numbers a:hover:not(.active) {
  color: #007848;
  background: rgba(0, 120, 72, 0.1);
}

.page-btn {
  color: #999;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.page-btn:hover {
  color: #007848;
  background: rgba(0, 120, 72, 0.1);
}

.pagination span {
  color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .page-numbers {
    gap: 3px;
  }

  .page-numbers a {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .page-btn {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 6px 8px;
  }
}

/* 产品大类介绍样式 */
.product-category-intro {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.product-category-intro h3 {
  color: #333;
  font-size: 1.5rem;
  margin: 0 0 15px;
}

.product-category-intro p {
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px;
  font-size: 1rem;
}

.subcategory-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 30px;
  overflow-x: auto;
}

.subcategory-item {
  text-align: center;
  padding: 15px 20px;
  background: #f8f9fc;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subcategory-item:hover {
  background: #007848;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 72, 0.2);
}

.subcategory-item.active {
  background: #007848;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 120, 72, 0.2);
}



/* 响应式调整 */
@media (max-width: 992px) {
  .subcategory-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-category-intro h3 {
    font-size: 1.375rem;
  }

  .product-category-intro p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 768px) {
  .subcategory-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .subcategory-item {
    padding: 12px 16px;
    min-width: 160px;
  }

  .subcategory-item h4 {
    font-size: 0.9375rem;
  }

  .product-category-intro h3 {
    font-size: 1.25rem;
  }

  .product-category-intro p {
    font-size: 0.875rem;
  }
}

/* 底部图标样式 */
.contact-item .icon {
  display: inline-block;
  width: 20px;
  margin-right: 10px;
  color: #999;
  font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .category-features {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .feature {
    flex-direction: row;
    gap: 10px;
  }

  .subcategory-list {
    overflow-x: auto;
  }
}

.download-btn-small {
  display: inline-block;
  text-align: center;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.download-btn-small img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.download-btn img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
}

/* 移除字体图标 */
.download-btn-small::before {
  display: none;
}

/* 统一表头高度 */
.product-table th {
  padding: 12px 8px;
}


.product-table th[data-key="datasheet"] {
  min-width: 70px;
}

/* 长字段名称的换行处理 */
.product-table th {
  word-break: break-word;
  hyphens: auto;
}

/* 新布局响应式样式 */
@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-image {
    order: -1;
    min-height: 250px;
  }

  .application-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }

  .app-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-banner {
    height: 300px;
  }

  .banner-title {
    font-size: 2.2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-item {
    min-width: calc(50% - 1px);
  }

  .detail-container {
    padding: 25px 20px;
  }

  .detail-text h2 {
    font-size: 1.6rem;
  }

  .product-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subcategory-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .application-areas {
    padding: 30px 20px;
  }

  .application-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .application-areas h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-banner {
    height: 250px;
  }

  .banner-title {
    font-size: 1.8rem;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  .nav-item {
    min-width: 100%;
  }

  .nav-item a {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  .detail-container {
    padding: 20px 15px;
  }

  .detail-text h2 {
    font-size: 1.4rem;
  }

  .product-description {
    font-size: 1rem;
  }

  .subcategory-card {
    padding: 20px 15px;
  }

  .application-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .application-item {
    padding: 20px 10px;
  }

  .app-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .application-item span {
    font-size: 0.8rem;
  }

  /* 原有的筛选器样式 */
  .filter-input-group input,
  .filter-input-group select {
    font-size: 0.6875rem;
    /* 11px */
    padding: 4px 6px;
  }

  .filter-input-group input::placeholder {
    font-size: 0.625rem;
    /* 10px */
  }
}

/* 新的div布局样式 */
.product-list-container {
  margin-top: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* 产品表头样式 */
.product-header {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.header-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.header-cell {
  padding: 15px 10px;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  background: #f5f5f5;
}

.header-cell:last-child {
  border-right: none;
}

.header-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* 产品列表容器 - 支持水平滚动 */
.product-list-container {
  margin-top: 20px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* 筛选器样式 - 固定表格布局 */
.product-filters {
  background: #fff;
  border-top: 3px solid #007848;
  padding: 0;
  display: table;
  width: 100%;
  min-width: 1400px;
  /* 设置最小宽度确保不换行 */
  table-layout: fixed;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-wrapper {
  display: table-cell;
  border-right: 1px solid #dee2e6;
  background: #fff;
  vertical-align: top;
  width: 8.33%;
  /* 12列布局，每列约8.33% */
}

.filter-wrapper:last-child {
  border-right: none;
}

/* 特定列宽度调整 */
.filter-wrapper:nth-child(1) {
  width: 10%;
}

/* ProductName */
.filter-wrapper:nth-child(2) {
  width: 6%;
}

/* Polarity */
.filter-wrapper:nth-child(3) {
  width: 8%;
}

/* BVDSS[V] */
.filter-wrapper:nth-child(4) {
  width: 7%;
}

/* ID(A) */
.filter-wrapper:nth-child(5) {
  width: 7%;
}

/* VGS(V) */
.filter-wrapper:nth-child(6) {
  width: 7%;
}

/* Vth(V) */
.filter-wrapper:nth-child(7) {
  width: 12%;
}

/* RDS(on)@VGS=2.5V */
.filter-wrapper:nth-child(8) {
  width: 12%;
}

/* RDS(on)@VGS=4.5V */
.filter-wrapper:nth-child(9) {
  width: 12%;
}

/* RDS(on)@VGS=10V */
.filter-wrapper:nth-child(10) {
  width: 8%;
}

/* Package */
.filter-wrapper:nth-child(11) {
  width: 9%;
}

/* Datasheet */

.filter-key {
  padding: 12px 8px;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  font-size: 13px;
  text-align: center;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #dee2e6;
}

.filter-value {
  padding: 15px 8px;
  min-height: 120px;
  background: #fff;
}

/* 复选框筛选样式 */
.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
}

/* 美化滚动条 */
.filter-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.filter-checkbox-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.filter-checkbox-item {
  margin: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  color: #555;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 4px;
  width: 12px;
  height: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label:hover {
  color: #007848;
}

/* 搜索输入框样式 */
.filter-search {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 6px 25px 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: #007848;
  box-shadow: 0 0 0 2px rgba(0, 120, 72, 0.1);
}

.search-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>') no-repeat center;
  background-size: contain;
}

/* 无筛选功能的列样式 */
.filter-none {
  /* 空白区域，保持布局一致 */
  min-height: 20px;
}

/* 产品列表样式 - 表格布局 */
.product-list {
  background: #fff;
  border-top: 2px solid #dee2e6;
  display: table;
  width: 100%;
  min-width: 1400px;
  /* 与筛选器保持一致 */
  table-layout: fixed;
}

.product-row {
  display: table-row;

  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s ease;
}



.product-row:last-child {
  border-bottom: none;
}

.product-cell {
  display: table-cell;
  padding: 12px 8px;
  border-right: 1px solid #dee2e6;
  text-align: center;
  font-size: 13px;
  color: #555;
  vertical-align: middle;
  min-height: 50px;
}

.product-row:hover {
  background-color: #ddd;
}


.product-cell:last-child {
  border-right: none;
}


/* 产品数据列宽度与筛选器保持一致 */
.product-cell:nth-child(1) {
  width: 10%;
}

/* ProductName */
.product-cell:nth-child(2) {
  width: 6%;
}

/* Polarity */
.product-cell:nth-child(3) {
  width: 8%;
}

/* BVDSS[V] */
.product-cell:nth-child(4) {
  width: 7%;
}

/* ID(A) */
.product-cell:nth-child(5) {
  width: 7%;
}

/* VGS(V) */
.product-cell:nth-child(6) {
  width: 7%;
}

/* Vth(V) */
.product-cell:nth-child(7) {
  width: 12%;
}

/* RDS(on)@VGS=2.5V */
.product-cell:nth-child(8) {
  width: 12%;
}

/* RDS(on)@VGS=4.5V */
.product-cell:nth-child(9) {
  width: 12%;
}

/* RDS(on)@VGS=10V */
.product-cell:nth-child(10) {
  width: 8%;
}

/* Package */
.product-cell:nth-child(11) {
  width: 9%;
}

/* Datasheet */

.cell-content {
  line-height: 1.4;
  word-break: break-word;
}

/* NEW 标签样式 */
.product-row .new-badge {
  background: #ff4757;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-left: 5px;
}

/* 数据表下载按钮样式 */
.product-cell .datasheet-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #007848;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 11px;
  transition: background-color 0.2s ease;
}

.product-cell .datasheet-link:hover {
  background: #005a36;
}

.product-cell .datasheet-link i {
  margin-left: 4px;
  font-size: 10px;
}

/* 小屏幕滚动提示 */
@media (max-width: 1400px) {
  .product-list-container::before {
    content: "← 左右滑动查看更多列 →";
    display: block;
    background: #007848;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
  }
}

/* 保持表格固定布局，不进行响应式调整 */

/* 移动端优化 */
@media (max-width: 768px) {
  .product-list-container::before {
    font-size: 11px;
    padding: 6px;
  }

  .filter-key {
    font-size: 11px;
    padding: 8px 4px;
  }

  .filter-value {
    padding: 8px 4px;
  }

  .checkbox-label {
    font-size: 10px;
  }

  .search-input {
    font-size: 10px;
    padding: 4px 20px 4px 6px;
  }
}

@media (max-width: 480px) {
  .product-list-container::before {
    font-size: 10px;
    padding: 5px;
  }

  .filter-key {
    font-size: 10px;
    padding: 6px 2px;
  }

  .filter-value {
    padding: 6px 2px;
  }

  .checkbox-label {
    font-size: 9px;
  }

  .search-input {
    font-size: 9px;
    padding: 3px 15px 3px 4px;
  }
}

/* 动画效果相关样式 */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 为动画添加延迟效果 */
.animate-item:nth-child(1) {
  transition-delay: 0.1s;
}

.animate-item:nth-child(2) {
  transition-delay: 0.2s;
}

.animate-item:nth-child(3) {
  transition-delay: 0.3s;
}

.animate-item:nth-child(4) {
  transition-delay: 0.4s;
}

.animate-item:nth-child(5) {
  transition-delay: 0.5s;
}

.animate-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* 标题特殊动画效果 */
.section-title.animate-item {
  transition-delay: 0s;
  transition-duration: 0.8s;
}

.section-title.animate-item.animate-in {
  animation: titleSlideIn 0.8s ease-out;
}

@keyframes titleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}