/* 产品页面专用样式 - Product Page Styles */

/* ===== 基础样式重置 ===== */
.nk-product-header,
.nk-product-details {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== 产品页面头部 ===== */
.nk-product-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.nk-product-header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.nk-breadcrumb {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.breadcrumb {
  font-size: 14px;
  font-weight: 500;
}

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

.breadcrumb-item a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
  margin: 0 8px;
}

/* ===== 产品详情主体 ===== */
.nk-product-details {
  padding: 80px 0;
  background: #f8fafc;
  position: relative;
}

.nk-product-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.nk-product-main {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* ===== 产品图片展示 ===== */
.nk-product-gallery {
  margin-bottom: 40px;
  position: relative;
}

.nk-main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(45deg, #ffffff, #ffffff);
  padding: 30px;
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nk-main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.nk-main-image:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.15));
}

.nk-image-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(102, 126, 234, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nk-image-zoom:hover {
  background: rgba(102, 126, 234, 1);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===== 产品基本信息 ===== */
.nk-product-info {
  margin-bottom: 40px;
}

.nk-product-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.nk-category-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nk-views {
  color: #64748b;
  font-size: 14px;
  background: rgba(100, 116, 139, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.nk-product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nk-product-summary {
  margin-bottom: 30px;
}

.nk-product-summary p {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  background: rgba(102, 126, 234, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

/* ===== 产品特性 ===== */
.nk-product-features {
  margin-bottom: 40px;
}

.nk-features-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.nk-features-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.nk-feature-item {
  background: white;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.nk-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.nk-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nk-feature-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.nk-feature-content p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 联系咨询 ===== */
.nk-product-contact {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.1);
 
}

.nk-contact-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

.nk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.nk-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nk-btn:hover::before {
  left: 100%;
}

.nk-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nk-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  color: white;
}

.nk-btn-outline {
  background: transparent;
  color: #667eea;
  border-color: #667eea;
}

.nk-btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nk-contact-info {
  text-align: left;
}

.nk-phone {
  color: #475569;
  margin: 0;
  font-size: 16px;
}

.nk-phone strong {
  color: #667eea;
  font-weight: 600;
}

/* ===== 产品标签页 ===== */
.nk-product-tabs {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.nk-tabs {
  background: #f8fafc;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  margin: 0;
  padding: 0 30px;
}

.nk-tabs .nav-item {
  margin-bottom: 0;
}

.nk-tabs .nav-link {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 20px 25px;
  font-weight: 600;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nk-tabs .nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.nk-tabs .nav-link.active {
  color: #667eea;
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.nk-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.nk-tab-content {
  padding: 40px;
}

.nk-tab-inner h4 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.nk-tab-inner img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  margin: 10px 0;
}

/* ===== 技术规格表格 ===== */
.nk-specs-table .table {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nk-specs-table .table th,
.nk-specs-table .table td {
  padding: 15px 20px;
  border: none;
  vertical-align: middle;
}

.nk-specs-table .table-striped tbody tr:nth-of-type(odd) {
  background: rgba(102, 126, 234, 0.03);
}

.nk-specs-table .table td:first-child {
  background: rgba(102, 126, 234, 0.05);
  font-weight: 600;
  color: #1e293b;
  width: 40%;
}

/* ===== 应用领域 ===== */
.nk-application-item {
  background: white;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.nk-application-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.nk-application-item i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 15px;
  display: block;
}

.nk-application-item h5 {
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.nk-application-item p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 侧边栏 ===== */
.nk-product-sidebar {
  position: sticky;
  top: 30px;
}

.nk-sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.nk-sidebar-widget:hover {
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.12);
  transform: translateY(-2px);
}

.nk-widget-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.nk-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* ===== 分类导航 ===== */
.nk-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nk-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nk-category-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

.nk-category-name {
  font-weight: 500;
}

.nk-category-item i {
  font-size: 12px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.nk-category-item:hover i {
  opacity: 1;
  transform: translateX(3px);
}

/* 当前栏目高亮样式 */
.nk-category-item.current,
.nk-category-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transform: translateX(5px);
}

.nk-category-item.current .nk-category-name,
.nk-category-item.active .nk-category-name {
  font-weight: 600;
  color: white;
}

.nk-category-item.current i,
.nk-category-item.active i {
  color: white;
  opacity: 1;
  transform: translateX(3px);
}

/* ===== 联系卡片 ===== */
.nk-contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nk-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nk-contact-item:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
}

.nk-contact-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.nk-contact-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}

.nk-contact-info p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.nk-contact-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.nk-contact-info a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===== 下载资料 ===== */
.nk-download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nk-download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nk-download-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.nk-download-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.nk-download-info {
  flex: 1;
}

.nk-download-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: inherit;
}

.nk-download-info span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.nk-download-action {
  width: 35px;
  height: 35px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nk-download-item:hover .nk-download-action {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1199px) {
  .nk-product-main {
    padding: 30px;
  }
  
  .nk-product-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .nk-product-details {
    padding: 60px 0;
  }
  
  .nk-product-main {
    padding: 25px;
    margin-bottom: 40px;
  }
  
  .nk-product-title {
    font-size: 2rem;
  }
  
  .nk-contact-buttons {
    justify-content: center;
  }
  
  .nk-product-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .nk-product-header {
    padding: 40px 0 30px;
  }
  
  .nk-product-main {
    padding: 20px;
  }
  
  .nk-product-title {
    font-size: 1.8rem;
  }
  
  .nk-contact-buttons {
    flex-direction: column;
  }
  
  .nk-btn {
    justify-content: center;
  }
  
  .nk-tab-content {
    padding: 25px;
  }
  
  .nk-sidebar-widget {
    padding: 20px;
  }
  
  .breadcrumb {
    padding: 10px 20px;
  }
  
  .nk-product-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 575px) {
  .nk-product-details {
    padding: 40px 0;
  }
  
  .nk-product-main {
    padding: 15px;
  }
  
  .nk-product-title {
    font-size: 1.6rem;
  }
  
  .nk-feature-item {
    padding: 20px;
  }
  
  .nk-tab-content {
    padding: 20px;
  }
  
  .nk-sidebar-widget {
    padding: 15px;
  }
}

/* ===== 产品列表页面样式 ===== */

/* 页面标题区域 */
.nk-page-title {
  text-align: center;
  margin-top: 30px;
  color: white;
}

.nk-page-title .nk-product-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nk-page-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* 产品列表主体 */
.nk-product-list-section {
  padding: 80px 0;
  background: #f8fafc;
}

.nk-product-list-main {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* 搜索表单 */
.nk-search-form {
  margin-top: 20px;
}

.nk-search-input-group {
  position: relative;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nk-search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: #ffffff;
  font-size: 14px;
  color: #475569;
  outline: none;
}

.nk-search-input::placeholder {
  color: #94a3b8;
}

.nk-search-btn {
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nk-search-btn:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: scale(1.05);
}

/* 列表头部 */
.nk-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 20px;
}

.nk-list-count {
  font-size: 16px;
  color: #475569;
  font-weight: 500;
}

.nk-sort-select {
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.nk-sort-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 产品网格 - 固定三列布局 */
.nk-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px;
}

/* 产品卡片悬停效果 */
.nk-product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  position: relative;
}

.nk-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

/* 移除冲突的样式 */
.nk-product-card.nk-card-hover {
  /* 删除这个规则或确保它不会影响卡片布局 */
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

/* 产品图片 */
.nk-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f8fafc;
}

.nk-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

/* 产品覆盖层 - 优化悬停稳定性 */
.nk-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden; /* 添加visibility控制 */
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2; /* 确保层级正确 */
}

.nk-product-card:hover .nk-product-overlay,
.nk-product-overlay:hover {
  opacity: 1;
  visibility: visible; /* 显示时设置可见 */
  pointer-events: auto;
}

/* 产品操作按钮 */
.nk-product-actions {
  display: flex;
  gap: 15px;
  pointer-events: auto;
  z-index: 3; /* 确保按钮在最上层 */
}

.nk-action-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  z-index: 4; /* 确保按钮可点击 */
}

.nk-action-btn:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

/* 产品徽章 */
.nk-product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.nk-badge-hot {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 产品信息 */
.nk-product-info {
  padding: 25px;
}

.nk-product-category {
  margin-bottom: 12px;
}

.nk-category-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nk-product-name {
  margin-bottom: 15px;
}

.nk-product-name a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.nk-product-name a:hover {
  color: #667eea;
}

.nk-product-summary {
  margin-bottom: 20px;
}

.nk-product-summary p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 产品元信息 */
.nk-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.nk-product-date,
.nk-product-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
}

.nk-product-date i,
.nk-product-views i {
  font-size: 12px;
  color: #667eea;
}

/* 产品底部 */
.nk-product-footer {
  margin-top: auto;
}

.nk-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.nk-btn-detail:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

.nk-btn-detail i {
  transition: transform 0.3s ease;
}

.nk-btn-detail:hover i {
  transform: translateX(3px);
}

/* 分页样式 */
.nk-pagination-wrapper {
  padding: 30px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.nk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nk-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nk-page-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
}

.nk-page-info {
  padding: 10px 16px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* 空状态 */
.nk-empty-state {
  text-align: center;
  padding: 80px 30px;
  color: #64748b;
}

.nk-empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #94a3b8;
}

.nk-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.nk-empty-state p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .nk-product-grid {
    grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示两列 */
    gap: 25px;
    padding: 25px;
  }
}

@media (max-width: 991px) {
  .nk-product-list-section {
    padding: 60px 0;
  }
  
  .nk-page-title .nk-product-title {
    font-size: 2rem;
  }
  
  .nk-list-header {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nk-page-title .nk-product-title {
    font-size: 1.75rem;
  }
  
  .nk-product-grid {
    grid-template-columns: 1fr; /* 小屏幕显示一列 */
    gap: 20px;
    padding: 20px;
  }
  
  .nk-list-header,
  .nk-pagination-wrapper {
    padding: 20px;
  }
  
  .nk-product-info {
    padding: 20px;
  }
  
  .nk-pagination {
    gap: 8px;
  }
  
  .nk-page-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nk-page-description {
    font-size: 1rem;
  }
  
  .nk-search-input,
  .nk-search-btn {
    padding: 12px 15px;
  }
  
  .nk-product-actions {
    gap: 10px;
  }
  
  .nk-action-btn {
    width: 45px;
    height: 45px;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nk-product-main {
  animation: fadeInUp 0.6s ease-out;
}

.nk-sidebar-widget {
  animation: slideInRight 0.6s ease-out;
}

.nk-sidebar-widget:nth-child(2) {
  animation-delay: 0.1s;
}

.nk-sidebar-widget:nth-child(3) {
  animation-delay: 0.2s;
}

/* ===== 滚动条样式 ===== */
.nk-tab-content::-webkit-scrollbar {
  width: 6px;
}

.nk-tab-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.nk-tab-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.nk-tab-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== 打印样式 ===== */
@media print {
  .nk-product-header,
  .nk-product-sidebar,
  .nk-contact-buttons {
    display: none;
  }
  
  .nk-product-main {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .nk-product-details {
    padding: 20px 0;
  }
}

/* 产品页面头部 */
.nk-product-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.nk-product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
}

.nk-product-header .container {
    position: relative;
    z-index: 2;
}

/* 面包屑导航 */
.product-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product-breadcrumb li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.product-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

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

.product-breadcrumb a:hover {
    color: #ffffff;
}

.product-breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

/* 产品详情主体 */
.product-details {
    padding: 60px 0;
    background: #f8fafc;
}

.product-main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 产品画廊 */
.product-gallery {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.product-image-main {
    text-align: center;
    margin-bottom: 20px;
}

.product-image-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: #3b82f6;
    transform: scale(1.05);
}

/* 产品基本信息 */
.product-info {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-category,
.product-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
}

.product-category i,
.product-views i {
    color: #3b82f6;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-summary {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 产品特性 */
.product-features {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.product-features h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features h3 i {
    color: #10b981;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
}

.features-list li i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

/* 联系按钮组 */
.product-contact {
    padding: 30px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 产品标签页 */
.product-tabs {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-nav li {
    flex: 1;
}

.tab-nav a {
    display: block;
    padding: 20px;
    text-align: center;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-nav a:hover,
.tab-nav a.active {
    color: #3b82f6;
    background: #ffffff;
    border-bottom-color: #3b82f6;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 规格表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    width: 30%;
}

.specs-table td {
    color: #6b7280;
}

.specs-table tr:hover {
    background: #f9fafb;
}

/* 应用场景 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.application-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: #e0f2fe;
    transform: translateY(-5px);
}

.application-item i {
    font-size: 32px;
    color: #3b82f6;
    margin-bottom: 10px;
}

.application-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.application-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 侧边栏 */
.product-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #3b82f6;
}

.widget-content {
    padding: 20px;
}

/* 联系信息卡片 */
.contact-info {
    text-align: center;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.contact-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.contact-details {
    text-align: left;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
}

.contact-item i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
}

/* 下载列表 */
.download-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover {
    background: #f8fafc;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.download-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.download-size {
    font-size: 12px;
    color: #64748b;
}

.download-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.download-link:hover {
    color: #1d4ed8;
}

/* 产品分类 */
.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-item {
    border-bottom: 1px solid #f1f5f9;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #3b82f6;
    background: #f8fafc;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.category-link.active {
    color: #3b82f6;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nk-product-header {
        padding: 60px 0 30px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .btn-contact {
        justify-content: center;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .specs-table {
        font-size: 14px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
  .product-gallery,
  .product-info,
  .product-features,
  .product-contact,
  .tab-content,
  .widget-content {
    padding: 20px;
  }
  
  .product-thumbnails {
    gap: 5px;
  }
  
  .product-thumbnails img {
    width: 60px;
    height: 60px;
  }
  
  .applications-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 图片模态框样式 ===== */
.nk-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.nk-image-modal.active {
  display: flex;
}

.nk-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: modalZoomIn 0.3s ease-out;
}

.nk-modal-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nk-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #1e293b;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nk-modal-close:hover {
  background: #ffffff;
  transform: scale(1.1);
  color: #dc2626;
}

.nk-modal-close:active {
  transform: scale(0.95);
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nk-modal-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .nk-modal-close {
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}