/* ============================================
   平江县汇强自动化设备制造有限公司 - 网站样式
   科技感风格，响应式设计
   ============================================ */

/* -------- 全局重置 -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066ff;
  --primary-light: #00d4ff;
  --primary-dark: #0044aa;
  --dark: #0a1628;
  --dark-2: #112240;
  --gray: #5a6a7a;
  --gray-light: #e8edf3;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 102, 255, 0.15);
  --shadow-hover: 0 20px 60px rgba(0, 102, 255, 0.25);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2332;
  background: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- 顶部导航 -------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: #b8c5d6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* -------- Hero 区域 -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

/* Hero 底部渐变过渡 */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent 0%, rgba(230, 240, 255, 0.3) 60%, #f5f8fd 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 102, 255, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 150, 255, 0.2) 0%, transparent 60%),
    linear-gradient(160deg, #061225 0%, #0d1e3a 40%, #15325e 100%);
}

/* 网格线背景 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 浮动光点 */
.hero-bg::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--primary-light),
    200px 150px 0 -1px rgba(0, 212, 255, 0.8),
    400px 50px 0 -1px rgba(0, 102, 255, 0.7),
    600px 200px 0 -1px rgba(0, 212, 255, 0.6),
    800px 100px 0 -1px rgba(0, 102, 255, 0.6),
    150px 300px 0 -1px rgba(0, 212, 255, 0.5),
    500px 350px 0 -1px rgba(0, 102, 255, 0.5);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 2px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--primary-light);
  margin-bottom: 12px;
  letter-spacing: 4px;
  font-weight: 500;
}

.hero-slogan {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  letter-spacing: 8px;
}

.hero-btn {
  display: inline-block;
  padding: 15px 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
  letter-spacing: 2px;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 102, 255, 0.55);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.hero-scroll span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  margin: 0 auto 10px;
  position: relative;
}

.hero-scroll span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 25px; }
}

/* -------- 通用区块样式 -------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  margin: 0 auto;
  border-radius: 2px;
}

/* -------- 关于我们 -------- */
.about {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(0, 150, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f5f8fd 0%, #ffffff 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 2;
  white-space: pre-line;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, #f0f7ff, #e8f0fa);
  border-radius: 16px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, #e6f2ff, #d5e6fb);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* -------- 产品展示（一个大卡片，点击展开全部） -------- */
.products {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf1fb 50%, #f0f6ff 100%);
}

.products-showcase {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  gap: 20px;
}

.showcase-header:hover {
  background: var(--bg-light);
}

.showcase-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.showcase-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  border-radius: 14px;
  font-size: 26px;
  flex-shrink: 0;
}

.showcase-title h3 {
  font-size: 22px;
  color: var(--dark);
  font-weight: 700;
  margin: 0;
}

.showcase-count {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  background: #e6f0ff;
  padding: 6px 14px;
  border-radius: 20px;
}

.showcase-toggle {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.showcase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.products-showcase.open .showcase-body {
  max-height: 3000px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px 36px 36px;
}

.showcase-item {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

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

.showcase-item-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.showcase-item:hover .showcase-item-image img {
  transform: scale(1.08);
}

.showcase-item-info {
  padding: 18px 20px;
}

.showcase-item-info h4 {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-item-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
}

/* -------- 支持定制 -------- */
.custom {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.custom-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.custom-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 40px;
}

.custom-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.custom-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-light);
  padding: 18px 22px;
  border-radius: 12px;
  transition: var(--transition);
}

.custom-feature-item:hover {
  background: #e6f0ff;
  transform: translateX(6px);
}

.custom-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.custom-feature-item span {
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
}

/* -------- 联系我们 -------- */
.contact {
  background:
    radial-gradient(ellipse at 50% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf1fb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(145deg, #f0f7ff, #ffffff);
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  text-decoration: none;
  color: inherit;
  display: block;
}

a.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

.contact-item h3 {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-item p {
  font-size: 17px;
  color: var(--dark);
  font-weight: 600;
  word-break: break-all;
}

/* -------- 页脚 -------- */
.footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 102, 255, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0d1e3a 0%, #061225 100%);
  padding: 30px 0;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* -------- 返回顶部按钮 -------- */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
  z-index: 999;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-5px);
}

/* -------- 响应式设计 -------- */
@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-features {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 20px 20px;
  }

  .showcase-header {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .showcase-title h3 {
    font-size: 18px;
  }

  .showcase-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 38px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav {
    gap: 15px;
  }

  .hero-slogan {
    letter-spacing: 4px;
  }
}
