/* ========================================
   晶音微 JINGYIN MICRO - Design System
   狂拽酷炫 · 暗黑科技 · 霓虹音频
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-base: #06060f;
  --bg-deep: #030308;
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-surface-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(10, 10, 25, 0.6);

  /* Accents */
  --neon-cyan: #00e5ff;
  --neon-blue: #2d7fff;
  --neon-purple: #a855f7;
  --neon-magenta: #ec4899;
  --neon-green: #00ff9d;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00e5ff 0%, #2d7fff 50%, #a855f7 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00e5ff, #2d7fff);
  --grad-purple-magenta: linear-gradient(135deg, #a855f7, #ec4899);
  --grad-text: linear-gradient(135deg, #00e5ff 0%, #a855f7 100%);
  --grad-mesh: radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.12), transparent 50%),
               radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.1), transparent 50%),
               radial-gradient(ellipse at 40% 100%, rgba(45, 127, 255, 0.08), transparent 50%);

  /* Text */
  --text-primary: #e8e8f5;
  --text-secondary: #8888a8;
  --text-muted: #555570;

  /* Borders */
  --border-glow: rgba(0, 229, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.3);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--neon-cyan);
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 60px;
}

/* ---------- Background Effects ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .cn {
  font-size: 0.95rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .en {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-cyan-blue);
  transition: width 0.3s var(--ease-out);
  border-radius: 1px;
}

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

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

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--grad-cyan-blue);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Nav Overlay (mobile) ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
}

@media (max-width: 968px) {
  .nav-overlay {
    display: block;
  }
  .nav-overlay:not(.active) {
    pointer-events: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #000;
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0, 229, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 229, 255, 0.1);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#wave-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  animation: rise 1s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(100%);
}

.hero h1 .line:nth-child(1) span { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.4s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.6s; }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  animation: fadeIn 1s 0.8s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeIn 1s 1s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  animation: fadeIn 1s 1.2s both;
}

.hero-stat {
  position: relative;
}

.hero-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border-subtle);
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-glow);
}

.feature-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--neon-cyan);
}

.feature-card:nth-child(2) .icon svg { stroke: var(--neon-purple); }
.feature-card:nth-child(3) .icon svg { stroke: var(--neon-magenta); }
.feature-card:nth-child(4) .icon svg { stroke: var(--neon-green); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

.feature-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
  transform: translateY(-4px);
}

/* ---------- Stats Section ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08), transparent 60%);
  pointer-events: none;
}

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

.stat-item .value {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-item .unit {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.stat-item .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.03em;
}

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  position: relative;
}

.product-card .visual {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08), transparent 70%);
}

.product-card .visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-base) 100%);
}

.product-card .chip-glow {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: var(--grad-primary);
  opacity: 0.15;
  filter: blur(30px);
  position: absolute;
  animation: pulse-glow 3s ease-in-out infinite;
}

.product-card .chip-icon {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
}

.product-card .body {
  padding: 32px;
  position: relative;
  z-index: 2;
}

.product-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-card .tag.flagship {
  background: rgba(0, 229, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.product-card .tag.pro {
  background: rgba(168, 85, 247, 0.12);
  color: var(--neon-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.product-card .tag.low-power {
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-card .model {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.product-card .desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.product-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-card .spec-chip {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-surface-hover);
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.product-card .spec-chip strong {
  color: var(--text-primary);
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 229, 255, 0.08);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 0 0 60px 40px;
  text-align: left;
}

.timeline-item .dot {
  position: absolute;
  right: -8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  z-index: 2;
}

.timeline-item:nth-child(even) .dot {
  right: auto;
  left: -8px;
}

.timeline-item .year {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.timeline-item .event {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Tech Specs Table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.spec-table th,
.spec-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--bg-surface-hover);
}

.spec-table th:first-child {
  color: var(--neon-cyan);
}

.spec-table td {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.spec-table td:not(:first-child) {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: var(--bg-surface-hover);
}

/* ---------- Application Scenarios ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.scenario-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-surface-hover);
}

.scenario-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--neon-cyan);
}

.scenario-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.scenario-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scenario-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 100px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

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

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

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

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--neon-cyan);
}

.info-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.info-item .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}

.page-hero .desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ---------- Animations ---------- */
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wave-bar {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Safe Area (notched devices) ---------- */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-height) + env(safe-area-inset-top));
  }
  .nav-links {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .footer-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .hero {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
  }
  .page-hero {
    padding-top: calc(160px + env(safe-area-inset-top));
  }
}

/* ---------- Touch Optimization ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices */
  .glass-card:hover,
  .feature-card:hover,
  .product-card:hover,
  .scenario-card:hover {
    transform: none;
  }
  /* Larger tap targets */
  .nav-links a,
  .footer-col a,
  .btn {
    min-height: 44px;
  }
  .social-link {
    width: 52px;
    height: 52px;
  }
  .spec-chip {
    padding: 8px 16px;
  }
  /* Disable custom scrollbar touch behavior */
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* ---------- Responsive: Tablet (≤968px) ---------- */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border-subtle);
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 40px 50px;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
    padding: 0 0 40px 50px;
  }

  .timeline-item .dot {
    right: auto;
    left: 12px;
  }

  .timeline-item:nth-child(even) .dot {
    left: 12px;
  }

  /* Product grid: 1 col on tablet portrait */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* CTA section: reduce padding */
  .cta-section {
    padding: 70px 32px;
  }

  /* Contact form: reduce padding */
  .contact-form,
  .contact-info-card {
    padding: 32px;
  }
}

/* ---------- Responsive: Mobile (≤640px) ---------- */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Hero adjustments */
  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 48px;
  }

  .hero-stat {
    flex: 1 1 40%;
    min-width: 130px;
  }

  .hero-stat .num {
    font-size: 1.8rem;
  }

  .hero-stat:not(:last-child)::after {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* Wave canvas: shorter on mobile */
  #wave-canvas {
    height: 120px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  /* Feature grid: 1 column */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  /* Stats band: 1 column */
  .stats-band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px;
  }

  .stat-item .value {
    font-size: 2rem;
  }

  /* Product cards */
  .product-card .body {
    padding: 24px;
  }

  .product-card .visual {
    height: 180px;
  }

  .product-card .chip-icon {
    width: 80px;
    height: 80px;
  }

  .product-card h3 {
    font-size: 1.3rem;
  }

  /* Timeline: tighter spacing */
  .timeline-item {
    padding-bottom: 32px;
  }

  .timeline-item .year {
    font-size: 1.25rem;
  }

  .timeline-item .event {
    font-size: 0.9rem;
  }

  /* CTA section */
  .cta-section {
    padding: 56px 24px;
    border-radius: 20px;
  }

  .cta-section h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .cta-section p {
    font-size: 0.92rem;
  }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Page hero */
  .page-hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-hero .desc {
    font-size: 1rem;
  }

  /* Contact form */
  .contact-form,
  .contact-info-card {
    padding: 24px 20px;
  }

  .contact-form h3 {
    font-size: 1.2rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 16px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .form-group label {
    font-size: 0.8rem;
  }

  /* Info items */
  .info-item {
    gap: 14px;
    margin-bottom: 24px;
  }

  .info-item .icon {
    width: 40px;
    height: 40px;
  }

  .info-item .value {
    font-size: 0.92rem;
  }

  /* Social links */
  .social-row {
    gap: 12px;
  }

  /* Map section */
  .map-section {
    height: 240px;
    border-radius: 16px;
  }

  /* Nav logo: compact */
  .logo-text .cn {
    font-size: 0.85rem;
  }

  .logo-text .en {
    font-size: 0.55rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  /* Glass cards & feature cards: reduce padding */
  .glass-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* ---------- Responsive: Small Mobile (≤375px) ---------- */
@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .hero-stat {
    flex: 1 1 100%;
  }

  .hero-stat .num {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .feature-card {
    padding: 24px 18px;
  }

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

  .feature-card .icon {
    width: 48px;
    height: 48px;
  }

  .stats-band {
    padding: 32px 16px;
  }

  .product-card .specs {
    gap: 6px;
  }

  .product-card .spec-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

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

  .nav-toggle span {
    width: 20px;
  }

  .logo-text .en {
    display: none;
  }
}

/* ---------- Landscape Phone ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 40px;
  }

  .hero-stats {
    margin-top: 32px;
  }

  .scroll-indicator {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero h1 .line span {
    opacity: 1;
    transform: none;
  }

  .hero-desc,
  .hero-actions,
  .hero-stats {
    animation: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .navbar,
  .nav-toggle,
  .scroll-indicator,
  #particle-canvas,
  #wave-canvas,
  .bg-mesh,
  .bg-grid,
  .cta-section .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 24px 0;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
