/* ========== CSS Variables ========== */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --secondary: #7b2cbf;
  --bg-dark: #0a0a14;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glow-primary: rgba(0, 212, 255, 0.3);
  --glow-secondary: rgba(123, 44, 191, 0.3);
  /* 背景渐变颜色 - 从上到下自然过渡 */
  --gradient-1: rgba(10, 10, 30, 0.85);
  --gradient-2: rgba(15, 15, 40, 0.82);
  --gradient-3: rgba(20, 25, 50, 0.80);
  --gradient-4: rgba(25, 20, 45, 0.78);
  --gradient-5: rgba(20, 15, 40, 0.80);
  --gradient-6: rgba(15, 12, 35, 0.85);
}

/* ========== Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== Background Effects ========== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.bg-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--primary);
}

.bg-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--secondary);
}

/* ========== Main Gradient Overlay ========== */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      var(--gradient-1) 0%,
      var(--gradient-2) 15%,
      var(--gradient-3) 35%,
      var(--gradient-4) 55%,
      var(--gradient-5) 75%,
      var(--gradient-6) 100%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  padding: 12px 0 0 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
}

.logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
  font-size: 2.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-company {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text-secondary);
  /* max-width: 600px; */
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* ========== Section Styles ========== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

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

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

.section-tag {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Product Section ========== */
#product {
  background: transparent;
}

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

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border-left: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  border-radius: 20px;
  opacity: 0.3;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.product-content .highlight-text {
  color: var(--primary);
}

.product-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ========== Stats Section ========== */
.stats {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 60px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-dark);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== Gallery Section ========== */
#gallery {
  background: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 24px 0;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--text-primary);
  font-weight: 500;
}

.model-3d-card {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  margin-top: 30px;
  padding: 60px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.model-3d-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.model-3d-card i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}

.model-3d-card h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.model-3d-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ========== Video Showcase ========== */
.video-showcase {
  margin-top: 48px;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.video-title i {
  color: var(--primary);
}

.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(10, 10, 20, 0.45);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bg-dark);
  box-shadow: 0 0 30px var(--glow-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 45px var(--glow-primary);
}

.video-overlay-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ========== Cases Section ========== */
#cases {
  background: transparent;
}

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

.case-card {
  background: var(--bg-card-hover);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.case-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.case-card-content {
  padding: 20px;
}

.case-card-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.case-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.more-cases {
  margin-top: 40px;
  text-align: center;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.more-cases:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.more-cases h4 {
  margin-bottom: 16px;
  color: var(--primary);
}

.more-cases p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== Contact Section ========== */
#contact {
  background: transparent;
}

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

.contact-info {
  padding: 40px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-item-content h5 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-item-content p {
  color: var(--text-primary);
  margin: 0;
}

.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 10px;
  color: var(--bg-dark);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.form-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-submit:disabled {
  pointer-events: none;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.form-feedback.success {
  background: rgba(40, 200, 100, 0.1);
  border: 1px solid rgba(40, 200, 100, 0.4);
  color: #28c864;
}

.form-feedback.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff5050;
}

/* ========== Footer ========== */
footer {
  background: transparent;
  padding: 60px 24px 30px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-image {
    order: -1;
  }

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

  .stat-item::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 24px 0;
  }

  .model-3d-card {
    grid-column: span 2;
  }

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

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

@media (max-width: 768px) {
  section {
    padding: 60px 16px;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .stats {
    padding: 40px 20px;
    margin-top: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 24px 0;
  }

  .model-3d-card {
    grid-column: span 1;
    padding: 40px 20px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  color: var(--bg-dark);
}