/**
 * 臻本科技官网样式
 * Zinben Technologies Co., Ltd. Official Website Styles
 */

/* ============================================
   CSS Variables - 设计令牌
   ============================================ */
:root {
  /* 主色调 - 深色科技风 */
  --color-primary: #0a0a0f;
  --color-secondary: #00d4ff;
  --color-accent: #00ff88;
  --color-accent-light: #7df9ff;

  /* 文字颜色 */
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0a0;
  --color-text-light: #707070;

  /* 背景颜色 - 深色主题 */
  --bg-light: #0d0d12;
  --bg-card: rgba(20, 20, 30, 0.8);
  --bg-footer: #050508;

  /* 渐变 - 深色科技感 */
  --gradient-hero: linear-gradient(
    180deg,
    #000000 0%,
    #0a1628 50%,
    #0d2137 100%
  );
  --gradient-accent: linear-gradient(135deg, #00d4ff, #00ff88);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* 动画 */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* 间距 */
  --spacing-section: 6rem;
  --max-width: 1200px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #050508;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--color-text-muted);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: rgba(0, 212, 255, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
  transition: filter var(--transition-fast);
}

.logo:hover img {
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-accent);
  color: #000 !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Language Toggle Button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 0.5rem;
}

.lang-toggle:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

/* 二进制数据动画背景容器 */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero-background canvas {
  width: 100%;
  height: 100%;
}

/* 渐变叠加层 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(0, 212, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 40%
    );
  z-index: 1;
  pointer-events: none;
}

/* 扫描线效果 */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 2;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--color-accent);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.5),
    0 10px 40px rgba(0, 255, 136, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid rgba(0, 212, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 212, 255, 0.5),
    transparent
  );
}

/* ============================================
   Services Section
   ============================================ */
.services {
  padding: var(--spacing-section) 0;
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 212, 255, 0.1);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.service-card:hover .card-border {
  opacity: 1;
}

.service-card:hover .service-icon svg {
  stroke: var(--color-accent);
  filter: drop-shadow(0 0 8px var(--color-accent));
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Card Border Animation */
.card-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(0, 255, 136, 0.1)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-secondary);
  transition: all var(--transition-base);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================
   Products Section
   ============================================ */
.products {
  padding: var(--spacing-section) 0;
  background: #08080c;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.1);
}

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

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  transition: transform var(--transition-base);
}

/* Product Image Overlay */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover::before {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.product-info p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-link:hover {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.product-link svg {
  transition: transform var(--transition-fast);
}

.product-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: var(--spacing-section) 0;
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.contact-info > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.contact-list {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all var(--transition-base);
}

.contact-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(0, 255, 136, 0.2)
  );
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-secondary);
}

.contact-item:hover .contact-icon svg {
  stroke: var(--color-accent);
  filter: drop-shadow(0 0 5px var(--color-accent));
}

.contact-text strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-text span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-map {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 255, 0.1);
  position: relative;
}

/* Static Map Styles */
.static-map .map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.95) 0%,
    rgba(5, 15, 30, 0.98) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.static-map .map-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.static-map .map-marker {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  color: var(--color-secondary);
  animation: markerPulse 2s ease-in-out infinite;
}

.static-map .map-marker svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

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

.static-map .map-label {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.static-map .map-coords {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.75rem;
  color: var(--color-secondary);
  opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  height: 28px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
  stroke: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.social-link:hover svg {
  fill: var(--color-secondary);
  stroke: var(--color-secondary);
}

/* WeChat QR code bubble */
.wx-qrcode-wrap {
  position: relative;
  display: inline-flex;
}

.wx-qrcode-bubble {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 8px;
  width: 140px;
  min-width: 140px;
  background: var(--bg-secondary, #131318);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  z-index: 100;
}

/* Only show bubble on click (avoids hover-induced layout issues on H5/touch) */
.wx-qrcode-wrap.visible .wx-qrcode-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wx-qrcode-bubble img {
  display: block;
  width: 124px;
  height: 124px;
  min-width: 124px;
  min-height: 124px;
  max-width: none;
  border-radius: 4px;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: white;
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) {
  animation-delay: 0.1s;
}
.animate-in:nth-child(2) {
  animation-delay: 0.2s;
}
.animate-in:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --spacing-section: 4rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 3rem;
  }

  .nav-container {
    height: 60px;
  }

  .logo img {
    height: 26px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    gap: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin: 1rem;
    justify-content: center;
  }

  .lang-toggle {
    margin: 0.5rem 1rem 1rem;
    width: 100%;
    height: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    background: #ffffff;
  }

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

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

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

  .hero {
    min-height: auto;
    padding: 6rem 1rem 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .stat-item {
    flex: 0 0 auto;
  }

  .stat-divider {
    display: none;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  /* Services */
  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.875rem;
  }

  /* Products */
  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 1.25rem;
  }

  .product-info h3 {
    font-size: 1.1rem;
  }

  .product-info p {
    font-size: 0.875rem;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-map {
    order: -1;
    aspect-ratio: 16/9;
  }

  .contact-info h2 {
    font-size: 1.5rem;
  }

  .contact-item {
    padding: 0.875rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-text strong {
    font-size: 0.9rem;
  }

  .contact-text span {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand .logo img {
    height: 24px;
  }

  .footer-brand p {
    font-size: 0.875rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
  :root {
    --spacing-section: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .services-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero {
    padding: 5.5rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 0.75rem;
  }

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

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .service-card {
    padding: 1.25rem 1rem;
  }

  .contact-info > p {
    font-size: 0.9rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

/* 超小屏幕 (360px 及以下) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.35rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

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

  .stat-label {
    font-size: 0.7rem;
  }
}

/* ========================================
   Legal Pages (Privacy Policy & Terms)
   ======================================== */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header h1 {
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.legal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.legal-section p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.legal-section li {
  color: var(--color-text);
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  line-height: 1.7;
}

.legal-section li::before {
  content: "•";
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.legal-section strong {
  color: #fff;
}

.legal-section .disclaimer {
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.update-date {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-secondary);
}

@media (max-width: 768px) {
  .legal-container {
    padding: 100px 15px 40px;
  }

  .legal-content {
    padding: 1.5rem;
  }
}
