:root {
  --primary-bg: #0d0d0d;
  --secondary-bg: #1f1f1f;
  --text-color: #f5f5f5;
  --accent-color: #ff8a00;
  --accent-blue: #00e5ff;
  --accent-red: #ff4d6d;
  --border-color: rgba(255,255,255,0.1);

  --font-heading: 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --fs-xl: 3.2rem;
  --fs-lg: 2.2rem;
  --fs-md: 1.25rem;
  --fs-sm: 1rem;
  --fs-reg-lg: 1.5rem;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* ==================================================================== */
/* ========== 通用按钮样式 ========== */
/* ==================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 0.8rem 2rem;
  border-radius: 99px;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-red));
  color: var(--text-color);
  border: none;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 138, 0, 0.4);
  background: linear-gradient(45deg, var(--accent-red), var(--accent-blue));
  color: #fff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.6px;
  color: var(--text-color);
  background-color: var(--primary-bg);
  margin: 0;
  padding: 0;
}

h1, .hero-title, .page-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
}

h2, h3, .section-title {
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: 1.2px;
  margin-bottom: var(--spacing-md);
  margin-top: 0;
}

p {
  font-size: var(--fs-sm); 
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  font-weight: 300;
  margin-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ==================================================================== */
/* ========== 顶部导航栏 ========== */
/* ==================================================================== */
.header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header.scrolled {
  background-color: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  transition: padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header.scrolled .container {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.logo img {
  height: 45px;
  transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header.scrolled .logo img {
  height: 40px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin-left: var(--spacing-sm);
}

.nav-menu ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
  overflow: hidden;
  text-shadow: none;
}

.nav-menu ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 99px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--primary-bg);
}

.nav-menu ul li a:hover::before,
.nav-menu ul li a.active::before {
  transform: scaleX(1);
}


/* ==================================================================== */
/* ========== 首页主视觉区域 (轮播) ========== */
/* ==================================================================== */
.hero-section {
  margin-top: 0;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(50px);
}

.carousel-slide.prev-slide {
  transform: translateX(-50px);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.slide-text {
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
}

.slide-text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-slide.active .slide-text > * {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide.active .hero-title { transition-delay: 0.4s; }
.carousel-slide.active .hero-subtitle { transition-delay: 0.6s; }
.carousel-slide.active .btn { transition-delay: 0.8s; }

.hero-title {
  font-size: 48px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: var(--fs-reg-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 var(--spacing-md);
  z-index: 3;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 138, 0, 0.8);
  border-color: transparent;
  transform: scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  height: 4px;
  width: 25px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.indicator.active {
  width: 50px;
  background-color: var(--accent-color);
}

/* ==================================================================== */
/* ========== 产品中心页面专用样式 ========== */
/* ==================================================================== */

/* --- 页面标题 --- */
.page-header {
  margin-top: 120px;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.8) 0%, rgba(26, 26, 26, 1) 100%), url('../images/banners/banner-bg.jpg') center center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(245, 245, 245, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- 产品展示区域 --- */
.products-section {
    padding: var(--spacing-xl) 0;
}

.products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.product-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  aspect-ratio: 1; /* 保持卡片为正方形 */
  
  /* 入场动画的初始状态 */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

/* 当卡片可见时，触发入场动画 */
.products-section .product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-color));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 229, 255, 0.4);
}

/* --- 卡片内部元素样式 --- */
.product-card .product-image {
  flex: 1;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,138,0,0.2), rgba(0,229,255,0.1));
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.15);
  filter: blur(4px);
}

/* --- 覆盖在图片上的初始标题 --- */
.product-name {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  font-size: 22px;
  font-weight: bold;
  z-index: 2;
  margin: 0;
  padding: 1rem;
  text-align: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-name {
  opacity: 0;
}

/* --- 悬停时出现的描述层 --- */
.product-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--spacing-lg);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.2) 0%, rgba(13, 13, 13, 0.85) 70%, #0d0d0d 100%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-description .description-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.product-description .description-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.product-description p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: rgba(245, 245, 245, 0.85);
}

/* --- 重置卡片链接的默认样式 --- */
.product-card-link {
  text-decoration: none;
  color: inherit;
}

/* --- 响应式布局 --- */
@media (max-width: 1024px) {
  .products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-section .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================================== */
/* ========== 【联系我们页面】专用样式 ========== */
/* ==================================================================== */
.contact-info {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-bg);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.contact-item {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  gap: var(--spacing-sm);
  background: var(--primary-bg);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.contact-text h3 {
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--text-color);
  font-size: 1.2rem;
}

.contact-text p {
  margin: 0;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
}

.contact-form-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--primary-bg);
}

.contact-form-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.form-container, .map-container {
  background-color: var(--secondary-bg);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--accent-color);
  font-weight: 500;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.required {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.2);
}

.map-wrapper {
  flex-grow: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

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

@media (max-width: 768px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-form-section .container {
      grid-template-columns: 1fr;
  }
}

/* ==================================================================== */
/* ========== 社交媒体链接 ========== */
/* ==================================================================== */

.social-links {
  padding: var(--spacing-xl) 0;
  background-color: var(--primary-bg);
  border-top: 1px solid var(--border-color);
}

.social-links .container {
  text-align: center;
}

.social-links h3 {
  font-family: var(--font-heading);
  color: var(--text-color);
  font-size: var(--fs-lg);
  margin-bottom: var(--spacing-lg);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--accent-color);
  box-shadow: 0 0 25px rgba(255, 138, 0, 0.5);
}

.social-icon[title="微信公众号"]:hover {
  border-color: #28c425;
  box-shadow: 0 0 25px rgba(40, 196, 37, 0.6);
}
.social-icon[title="抖音"]:hover {
  border-color: #fe2c55;
  box-shadow: 0 0 25px rgba(254, 44, 85, 0.6);
}
.social-icon[title="哔哩哔哩"]:hover {
  border-color: #fb7299;
  box-shadow: 0 0 25px rgba(251, 114, 153, 0.6);
}

.social-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* ==================================================================== */
/* ========== 底部区域 ========== */
/* ==================================================================== */
.footer {
  background-color: var(--secondary-bg);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.company-info {
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.copyright {
  color: var(--accent-color);
  font-size: 14px;
  margin-bottom: 0;
}