@import url('main.css');

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(120deg, #e3e6f3 60%, #fff 100%);
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  z-index: 1;
}
.page-header-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(30,40,90,0.08);
}
.page-header-subtitle {
  font-size: 1.2rem;
  color: #3949ab;
  margin-bottom: 32px;
  font-weight: 500;
}
.content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 40px 24px 80px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(30,40,90,0.06);
  opacity: 1;
  transform: none;
}
.content h2 {
  color: #232946;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.content p {
  font-size: 1.1rem;
  line-height: 2.2;
  color: #6c7a89;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px 24px;
  position: relative;
  z-index: 1;
}
.product-card {
  background: #f4f6fb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(35,41,70,0.10);
  transition: all 0.3s ease;
  position: relative;
  border: 1.5px solid #e5e9f2;
  opacity: 1;
  transform: none;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(35,41,70,0.18);
  border-color: #c9a063;
  z-index: 2;
}
.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #232946;
}
.product-image img {
  width: 100%;
  height: 100%; /* 修复高度，移除视差效果支持 */
  object-fit: cover;
  transition: transform 0.3s ease;
  border-bottom: 1.5px solid #e5e9f2;
  position: relative;
  z-index: 1;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(35,41,70,0.92) 0%, rgba(108,122,137,0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.product-details {
  text-align: center;
  color: #f4f6fb;
}
.product-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #c9a063;
}
.product-details p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.9;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features span {
  font-size: 0.85rem;
  opacity: 0.8;
}
.product-info {
  padding: 24px;
}
.product-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #232946;
  margin-bottom: 12px;
}
.product-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6c7a89;
  margin-bottom: 16px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: linear-gradient(135deg, #f4f6fb 0%, #e5e9f2 100%);
  color: #c9a063;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #c9a063;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-item {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f4f6fb 0%, #e5e9f2 100%);
  border-radius: 16px;
  border: 1.5px solid #e5e9f2;
  transition: all 0.3s ease;
  opacity: 1;
  transform: none;
}
.service-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(35,41,70,0.12);
  border-color: #c9a063;
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #c9a063;
}
.service-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #232946;
  margin-bottom: 12px;
}
.service-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6c7a89;
}
.cta-section {
  background: #fff;
  margin: 64px 0 0 0;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(30,40,90,0.06);
}
.cta-section::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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cta-section p {
  font-size: 1.1rem;
  color: #3949ab;
  margin-bottom: 32px;
  line-height: 1.6;
}
.cta-button {
  background: #ffd600;
  color: #1a237e;
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30,40,90,0.10);
}
.cta-button:hover {
  background: #fff176;
  color: #222;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(30,40,90,0.18);
}
@media (max-width: 900px) {
  .page-header { min-height: 180px; }
  .page-header-title { font-size: 1.5rem; }
  .content { padding: 24px 8px 40px 8px; }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 48px 16px;
  }
  .product-image {
    height: 240px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-section {
    padding: 48px 16px;
  }
  .cta-section h2 {
    font-size: 1.5rem;
  }
  .cta-section p {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .products-grid {
    padding: 0 12px 40px 12px;
  }
  .product-info {
    padding: 20px;
  }
  .product-info h3 {
    font-size: 1.2rem;
  }
  .service-item {
    padding: 24px 20px;
  }
  .cta-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
} 

/* 产品页面动效样式 */

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffd600, #fff176);
  transform-origin: left;
  z-index: 1000;
}

/* 产品卡片3D效果 */
.product-card {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(26,35,126,0.2);
}

.product-image {
  transform: translateZ(20px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
  transform: translateZ(30px) scale(1.05);
}

/* 产品图片悬停效果 */
.product-image img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.1);
}

/* 产品覆盖层动画 */
.product-overlay {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100%);
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

/* 产品标签动画 */
.product-tags .tag {
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.product-card:hover .product-tags .tag {
  transform: translateY(0);
  opacity: 1;
}

.product-tags .tag:nth-child(1) { transition-delay: 0.1s; }
.product-tags .tag:nth-child(2) { transition-delay: 0.2s; }
.product-tags .tag:nth-child(3) { transition-delay: 0.3s; }

/* 页面标题动画 */
.page-header {
  position: relative;
  overflow: hidden;
}

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

.page-header:hover::before {
  left: 100%;
}

/* 产品网格动画 */
.products-grid {
  perspective: 1000px;
}

.product-card {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: calc(var(--card-order) * 0.1s);
  animation-fill-mode: both;
}

.product-card:nth-child(1) { --card-order: 0; }
.product-card:nth-child(2) { --card-order: 1; }
.product-card:nth-child(3) { --card-order: 2; }
.product-card:nth-child(4) { --card-order: 3; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* 按钮动效 */
.cta {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.cta:hover::before {
  left: 100%;
}

/* 导航菜单动效 */
.navbar-menu a {
  position: relative;
  overflow: hidden;
}

.navbar-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffd600, #fff176);
  transition: left 0.3s ease;
}

.navbar-menu a:hover::before {
  left: 0;
}

/* 响应式动效调整 */
@media (max-width: 768px) {
  .product-card:hover {
    transform: translateY(-8px);
  }
  
  .product-card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 

/* 产品图片视差滚动效果 - 优化版本 */
.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #232946;
  z-index: 1;
}

.product-image img {
  width: 100%;
  height: 130%; /* 增加高度以支持视差效果 */
  object-fit: cover;
  transition: transform 0.3s ease;
  border-bottom: 1.5px solid #e5e9f2;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  will-change: transform;
}

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

/* 产品网格视差滚动效果 - 优化版本 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px 24px;
  position: relative;
  z-index: 1;
}

.product-card {
  background: #f4f6fb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(35,41,70,0.10);
  transition: all 0.3s ease;
  position: relative;
  border: 1.5px solid #e5e9f2;
  opacity: 1;
  transform: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(35,41,70,0.18);
  border-color: #c9a063;
  z-index: 2;
}

/* 页面头部视差效果 - 优化版本 */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(120deg, #e3e6f3 60%, #fff 100%);
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,35,126,0.1) 0%, rgba(57,73,171,0.1) 100%);
  z-index: -1;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.page-header:hover::before {
  transform: translateY(-10px);
} 
