/* ================================================================
   无锡万冷冷却科技有限公司 - 全局样式表
   如需自定义样式，请在此文件中添加或修改
   ================================================================ */

/* ---------- 基础重置与全局样式 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #374151;
  line-height: 1.6;
}

/* ---------- 面包屑导航样式 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.breadcrumb a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb .separator {
  color: #6b7280;
}

/* ---------- 页面顶部横幅样式（渐变遮罩） ---------- */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  padding: 5rem 1rem 4rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  pointer-events: none;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ---------- 筛选标签样式 ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
}

.filter-tab:hover,
.filter-tab.active {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
}

/* ---------- 案例卡片样式 ---------- */
.case-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.case-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.case-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .card-image img {
  transform: scale(1.08);
}

/* 悬浮遮罩层 */
.case-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .card-overlay {
  opacity: 1;
}

.case-card .card-overlay .overlay-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.case-card .card-overlay .overlay-location {
  color: #bfdbfe;
  font-size: 0.8rem;
}

.case-card .card-body {
  padding: 1rem 1.25rem;
}

.case-card .card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.case-card .card-body .location {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.case-card .card-body .description {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 企业文化价值卡片 ---------- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: #1e40af;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.1);
  transform: translateY(-4px);
}

.value-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------- 发展历程时间线样式 ---------- */
.timeline {
  position: relative;
  padding: 1rem 0;
}

/* 中间竖线 */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dbeafe;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
}

/* 奇数年份靠左 */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* 偶数年份靠右 */
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* 时间线节点圆点 */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: #1e40af;
  border: 3px solid #dbeafe;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}

.timeline-item:nth-child(even)::before {
  left: -7px;
}

.timeline-item .year {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.25rem;
}

.timeline-item .event {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* 响应式：小屏幕时间线改为单列 */
@media (max-width: 768px) {
  .timeline::before {
    left: 1rem;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem;
    padding-right: 1rem;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 0.5rem !important;
    right: auto !important;
  }
}

/* ---------- 图片灯箱模态框 ---------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-modal .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-modal .close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- 新闻卡片样式 ---------- */
.news-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
}

.news-card .thumbnail {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  background: #f3f4f6;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  overflow: hidden;
}

.news-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.news-card .news-meta .category {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card h3 a:hover {
  color: #1e40af;
}

.news-card .excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.news-card .read-more {
  font-size: 0.85rem;
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.news-card .read-more:hover {
  color: #1e3a8a;
}

/* 新闻卡片响应式 */
@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
  }

  .news-card .thumbnail {
    width: 100%;
    height: 180px;
  }
}

/* ---------- 联系页面样式 ---------- */
.contact-info-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.contact-info-item .icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
}

.contact-info-item .info-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.contact-info-item .info-value {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 500;
}

.contact-info-item .info-value a {
  color: #1e40af;
  text-decoration: none;
}

.contact-info-item .info-value a:hover {
  text-decoration: underline;
}

/* ---------- 表单样式 ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group .error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.form-group .error-msg.visible {
  display: block;
}

/* ---------- 分页样式 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: #1e40af;
  color: #1e40af;
}

.pagination .active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

/* ---------- 侧边栏样式 ---------- */
.sidebar-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.sidebar-card .sidebar-list {
  list-style: none;
}

.sidebar-card .sidebar-list li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.sidebar-card .sidebar-list li:last-child a {
  border-bottom: none;
}

.sidebar-card .sidebar-list li a:hover,
.sidebar-card .sidebar-list li a.active {
  color: #1e40af;
  background: #eff6ff;
}

/* ---------- 资质证书卡片 ---------- */
.cert-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  background: #ffffff;
}

.cert-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cert-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3f4f6;
}

.cert-card .cert-name {
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #374151;
  text-align: center;
  font-weight: 500;
}

/* ---------- CTA区域样式 ---------- */
.cta-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  padding: 4rem 1rem;
  text-align: center;
  color: #ffffff;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ---------- 团队成员卡片 ---------- */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.team-card .avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card .desc {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ---------- 服务卡片样式 ---------- */
.service-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #1e40af;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.08);
}

.service-card .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 50%;
  color: #1e40af;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ================================================================
   以下为补充样式 —— 首页及全站共用组件
   ================================================================ */

/* ---------- 导航栏下拉菜单（桌面端） ---------- */
/* 默认隐藏下拉菜单，鼠标悬停时显示 */
.nav-dropdown-trigger .nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.nav-dropdown-trigger:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 移动端全屏导航遮罩层 ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay nav a {
  font-size: 1.25rem;
  color: #374151;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav-overlay nav a:hover,
.mobile-nav-overlay nav a.font-semibold {
  color: #1e40af;
  background: #eff6ff;
}

/* ---------- 汉堡菜单按钮动画 ---------- */
.hamburger-btn,
#hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 首页 Hero 横幅 ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(15, 23, 42, 0.5) 50%,
    rgba(15, 23, 42, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ---------- 卡片悬浮效果 ---------- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* 产品图片悬浮缩放效果 */
.card-img-hover .aspect-\[4\/3\] img,
.card-img-hover [class*="aspect-"] img {
  transition: transform 0.5s ease;
}

.card-img-hover:hover .aspect-\[4\/3\] img,
.card-img-hover:hover [class*="aspect-"] img {
  transform: scale(1.08);
}

/* ---------- 行业卡片（带遮罩文字） ---------- */
.industry-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
}

.industry-card img {
  transition: transform 0.5s ease;
}

.industry-card:hover img {
  transform: scale(1.1);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background 0.3s ease;
}

.industry-card:hover .industry-overlay {
  background: linear-gradient(to top, rgba(30, 64, 175, 0.85) 0%, rgba(30, 64, 175, 0.3) 60%, transparent 100%);
}

/* ---------- 案例轮播/滚动区域 ---------- */
.cases-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.cases-carousel::-webkit-scrollbar {
  display: none;
}

.case-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-label {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  background: #ffffff;
}

/* ---------- 合作客户网格 ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.partner-item {
  background: #ffffff;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.partner-item:hover {
  background: #eff6ff;
  color: #1e40af;
}

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

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

/* ---------- 区块标题装饰线 ---------- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #1e40af;
  border-radius: 2px;
}

/* ---------- 滚动渐入动画 ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: #1e40af;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ---------- 移动端底部固定操作栏 ---------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  gap: 0.5rem;
}

.mobile-bottom-bar button,
.mobile-bottom-bar a {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 1023px) {
  .mobile-bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: 4rem;
  }

  .back-to-top {
    bottom: 5.5rem;
  }
}

/* ---------- 在线咨询弹窗 ---------- */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-overlay.active {
  display: flex;
}

.contact-modal {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ---------- 站内搜索下拉框 ---------- */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 60;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.search-dropdown a:last-child {
  border-bottom: none;
}

.search-dropdown a:hover {
  background: #eff6ff;
  color: #1e40af;
}

.search-dropdown .no-result {
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ---------- 导航栏滚动时样式变化 ---------- */
.site-navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ---------- 线裁工具类 ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   产品页面组件样式
   ================================================================ */

/* ---------- 产品参数表格 ---------- */
.param-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.875rem;
}

.param-table thead tr {
  background: #1e40af;
}

.param-table thead th {
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.param-table tbody tr {
  transition: background 0.15s ease;
}

.param-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.param-table tbody tr:hover {
  background: #eff6ff;
}

.param-table tbody td {
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.param-table tbody td.font-semibold {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

/* ---------- 产品图片画廊 ---------- */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-gallery figure {
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: box-shadow 0.3s ease;
}

.product-gallery figure:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-gallery figure img {
  transition: transform 0.4s ease;
}

.product-gallery figure:hover img {
  transform: scale(1.03);
}

.product-gallery figcaption {
  padding: 0.5rem 0.75rem;
}

/* ---------- 产品特性标签 ---------- */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.feature-badge:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
}

/* ---------- 相关产品推荐区 ---------- */
.related-products {
  padding: 2.5rem 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.related-products a {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  text-decoration: none;
}

.related-products a:hover {
  border-color: #1e40af;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}

/* ---------- CTA 按钮样式 ---------- */
.cta-button {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #1e40af;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  color: #ffffff;
}

.cta-button-accent {
  background: #f59e0b;
}

.cta-button-accent:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ---------- 产品图片响应式优化 ---------- */
@media (max-width: 640px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .param-table {
    font-size: 0.8rem;
  }

  .param-table thead th,
  .param-table tbody td {
    padding: 0.5rem 0.6rem;
  }
}
