/* ============================================
   SwiftAI - 全局样式
   ============================================ */

:root {
  /* 主色调 */
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --secondary: #7b2ff7;
  --accent: #ff6b6b;
  
  /* 暗色主题 */
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-surface: #0f1520;
  --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0d1117 100%);
  
  /* 文字 */
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* 边框 */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.3);
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 47, 247, 0.1) 100%);
  --gradient-text: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 50%, #ff6b6b 100%);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  
  /* 间距 */
  --section-padding: 120px;
  --container-max: 1280px;
  
  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 字体 */
  --font-main: 'Inter', 'Noto Sans SC', 'Noto Sans AR', system-ui, -apple-system, sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL支持 */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtext {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  line-height: 1.2;
}

.logo-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--primary);
}

/* 语言选择器 */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.lang-icon {
  width: 16px;
  height: 16px;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.lang-selector.open .arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all var(--transition);
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 80px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(123, 47, 247, 0.08) 40%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 40px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: left;
  margin: 0 auto 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-brand-logo {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-brand-text {
  max-width: 760px;
}

.hero-brand-cn {
  font-family: 'Noto Sans SC', var(--font-main);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.hero-brand-en {
  margin-top: 6px;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Hero扫描动画 */
.hero-visual {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.scan-animation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scan-frame {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--primary);
}

.scan-corner.tl {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
  border-radius: 6px 0 0 0;
}

.scan-corner.tr {
  top: 0; right: 0;
  border-left: none; border-bottom: none;
  border-radius: 0 6px 0 0;
}

.scan-corner.bl {
  bottom: 0; left: 0;
  border-right: none; border-top: none;
  border-radius: 0 0 0 6px;
}

.scan-corner.br {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
  border-radius: 0 0 6px 0;
}

.scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { top: 10%; }
  50% { top: 85%; }
}

.scan-content {
  position: relative;
  z-index: 1;
}

.qr-icon {
  width: 120px;
  height: 120px;
  color: rgba(0, 212, 255, 0.4);
}

.scan-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  animation: fadeInResult 2.5s ease-in-out infinite;
}

@keyframes fadeInResult {
  0%, 40% { opacity: 0; transform: translateY(5px); }
  50%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

.result-icon {
  color: #4ade80;
  font-weight: bold;
}

/* 统计数据 */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 40px 0;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 26, 0.8));
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.stat-value-text {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============ Section 通用 ============ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 关于我们 ============ */
.about {
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
}


.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 神经网络动画 */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.neural-network {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nn-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.nn-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  animation: nodeGlow 3s ease-in-out infinite;
}

.nn-node:nth-child(odd) {
  animation-delay: 0.5s;
}

.nn-node:nth-child(even) {
  animation-delay: 1.5s;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); transform: scale(1.2); }
}

#nnCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============ 产品 ============ */
.products {
  background: var(--bg-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition-slow);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.featured {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 47, 247, 0.05) 100%);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 6px;
  z-index: 2;
}

[dir="rtl"] .product-badge {
  right: auto;
  left: 20px;
}

.product-icon-wrap {
  position: relative;
  margin-bottom: 28px;
  z-index: 1;
}

.product-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
}

.product-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.product-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.product-more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  z-index: 1;
}
.product-more-link:hover {
  color: var(--secondary);
}

/* ============ 技术 ============ */
.tech {
  background: var(--bg-surface);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tech-card {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
  overflow: hidden;
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tech-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

[dir="rtl"] .tech-number {
  right: auto;
  left: 28px;
}

.tech-icon-circle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  margin-bottom: 24px;
}

.tech-icon-circle svg {
  width: 28px;
  height: 28px;
}

.tech-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ 解决方案 ============ */
.solutions {
  background: var(--bg-dark);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition);
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.solution-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ 联系我们 ============ */
.contact {
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group label {
  display: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all var(--transition);
}

.info-card:hover {
  border-color: var(--border-hover);
}

.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-map {
  margin-top: 8px;
  height: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-nav-wrap {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
}

.map-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.map-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.map-nav-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.map-nav-menu.show {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.map-nav-menu a {
  display: block;
  padding: 10px 18px;
  color: #e2e8f0;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.map-nav-menu a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
}

/* ============ Footer ============ */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* 微信二维码悬浮弹出 */
.wechat-wrap {
  position: relative;
  cursor: pointer;
}

.wechat-qr-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 100;
  width: 180px;
  animation: wechatPopup 0.25s ease;
}

.wechat-qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.wechat-qr-popup img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.wechat-qr-popup span {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #333;
  white-space: nowrap;
}

.wechat-wrap:hover .wechat-qr-popup {
  display: block;
}

@keyframes wechatPopup {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal .admin-entry {
  opacity: 0.4;
  transition: opacity 0.3s;
}

.footer-legal .admin-entry:hover {
  opacity: 1;
}

/* ============ 动画 ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */

/* 大屏幕适配 */
@media (min-width: 1600px) {
  :root {
    --container-max: 1440px;
    --section-padding: 140px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .stat-value {
    font-size: 3rem;
  }
}

/* ============ 平板竖屏及以下 (≤1024px) ============ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .neural-network {
    max-width: 320px;
    height: 300px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .products-grid .product-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .tech-grid {
    gap: 24px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ============ 手机端 (≤768px) ============ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .container {
    padding: 0 16px;
  }

  /* — 导航栏 — */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
    padding: 80px 24px 40px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 212, 255, 0.08);
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .lang-selector {
    z-index: 1001;
  }

  .lang-btn .current-lang {
    display: none;
  }

  .lang-btn {
    padding: 8px 10px;
  }

  /* — Hero — */
  .hero {
    padding-top: 64px;
    min-height: auto;
  }

  .hero-content {
    padding: 0 16px 24px;
  }

  .hero-brand {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .hero-brand-logo {
    width: 100px;
  }

  .hero-brand-text {
    text-align: center;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .scan-frame {
    width: 160px;
    height: 160px;
  }

  .qr-icon {
    width: 90px;
    height: 90px;
  }

  .scan-result {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  /* — 统计 — */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-item {
    padding: 16px 12px;
  }

  .stat-value-text {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* — 各Section — */
  .section-header {
    margin-bottom: 40px;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .about-desc {
    font-size: 0.95rem;
  }

  .about-features {
    gap: 20px;
  }

  .neural-network {
    max-width: 260px;
    height: 250px;
  }

  .nn-layer {
    gap: 16px;
  }

  .nn-node {
    width: 12px;
    height: 12px;
  }

  /* — 产品 — */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid .product-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .product-card {
    padding: 28px 22px;
  }

  /* — 技术 — */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tech-card {
    padding: 28px 22px;
  }

  /* — 解决方案 — */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution-card {
    padding: 28px 20px;
  }

  /* — 联系我们 — */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-map {
    height: 220px;
  }

  /* — Footer — */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* — 微信弹窗 — */
  .wechat-qr-popup {
    left: auto;
    right: -10px;
    transform: none;
  }

  .wechat-qr-popup::after {
    left: auto;
    right: 20px;
    transform: none;
  }
}

/* ============ 小屏手机 (≤480px) ============ */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-subtext {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .hero-brand-cn {
    font-size: 1.2rem;
  }

  .hero-brand-en {
    font-size: 0.85rem;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-item {
    padding: 12px 8px;
    border-radius: 12px;
  }

  .stat-value-text {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .about-feature {
    flex-direction: column;
    gap: 10px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .product-title {
    font-size: 1.15rem;
  }

  .product-desc {
    font-size: 0.88rem;
  }

  .product-features li {
    font-size: 0.82rem;
  }

  .info-card {
    padding: 16px;
  }

  .info-map {
    height: 200px;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* 中等屏幕 */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 平板 */
@media (max-width: 992px) {
  :root {
    --section-padding: 80px;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .logo-subtext {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .neural-network {
    height: 300px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero-content {
    padding: 0 16px 20px;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .stat-value-text {
    font-size: 1.5rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-card {
    padding: 28px 24px;
  }

  .hero-brand {
    flex-direction: column;
    text-align: center;
  }

  .hero-brand-text {
    min-width: 0;
  }

  .hero-brand-logo {
    width: clamp(150px, 42vw, 220px);
  }

  
  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .hero-visual {
    margin-top: 40px;
  }
  
  .scan-frame {
    width: 160px;
    height: 160px;
  }
  
  .qr-icon {
    width: 90px;
    height: 90px;
  }
}

/* 小手机 */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .stat-item {
    padding: 16px;
  }
  
  .lang-btn .current-lang {
    display: none;
  }
}

/* ============ 成功消息 ============ */
.success-message {
  padding: 16px 24px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 12px;
  color: #4ade80;
  text-align: center;
  font-weight: 500;
  animation: fadeInUp 0.5s ease-out;
}
