/*
 * ============================================================
 * 因博科技 - Frontend Design Ultimate 全站优化样式表
 * 基于 kesslerio-frontend-design-ultimate 技能设计哲学
 * 
 * 设计原则：
 * 1. Typography: Distinctive, not generic (Space Grotesk + Noto Sans SC)
 * 2. Color: 60-30-10 rule (dominant-secondary-accent)
 * 3. Backgrounds: Grain texture + Gradient mesh
 * 4. Motion: Orchestrated animations
 * 5. Components: Layered shadows, glassmorphism
 * 6. Mobile: Touch targets, responsive grids
 * 
 * 保护：所有 GEO 优化内容和 SEO 关键信息
 * ============================================================
 */

/* === TYPOGRAPHY SYSTEM === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Font Families */
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;
  
  /* === COLOR SYSTEM (60-30-10 Rule) === */
  --bg-primary: #ffffff;
  --bg-secondary: #f8faff;
  --bg-tertiary: #eff6ff;
  --bg-dark: #1a1a2e;
  --bg-dark-secondary: #16213e;
  
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --text-inverse: #ffffff;
  --text-inverse-secondary: rgba(255, 255, 255, 0.8);
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.1);
  --accent-medium: rgba(37, 99, 235, 0.2);
  
  --orange: #ea580c;
  --orange-hover: #c2410c;
  --orange-subtle: rgba(234, 88, 12, 0.1);
  
  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --error: #ef4444;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 16px rgba(37, 99, 235, 0.2);
  
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
  --gradient-orange: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-light: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: var(--text-xl); }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* === BACKGROUND ATMOSPHERE === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

.gradient-mesh {
  background: 
    radial-gradient(at 40% 20%, hsla(220, 100%, 74%, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(220, 100%, 93%, 0.12) 0px, transparent 50%);
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

/* Hero Enhancement */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(234, 88, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* === COMPONENT STYLING === */
.card, .feature-card, .brand-card, .product-card, .solution-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .feature-card:hover, .brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Buttons */
.btn, .submit-btn, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 48px;
}

.btn-primary, .submit-btn {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover, .submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-orange {
  background: var(--gradient-orange);
  color: var(--text-inverse);
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

/* Badges */
.badge, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  background: var(--accent-subtle);
  color: var(--accent);
}

/* FAQ Items */
.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* Stats Cards */
.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

/* Form Elements */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-link {
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

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

/* Footer */
footer {
  background: var(--gradient-dark);
  color: var(--text-inverse);
  padding: 80px 0 40px;
}

footer a {
  color: var(--text-inverse-secondary);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-inverse);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead {
  background: var(--gradient-primary);
  color: var(--text-inverse);
}

.comparison-table th {
  padding: 18px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.comparison-table tbody tr:hover {
  background: var(--accent-subtle);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  max-width: 640px;
  margin: 0 auto;
}

/* Stats Banner */
.stats-banner {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Credentials Bar */
.credentials-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

/* Source Citations */
.source-citations {
  background: var(--bg-secondary);
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.citation-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.citation-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* Updated Badge */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--accent-subtle);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 20px 0;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-fade-in { animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-scale-in { animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-lift {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

html {
  scroll-behavior: smooth;
}

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

/* === MOBILE RESPONSIVENESS === */
.btn, .nav-link, .icon-btn, .mobile-menu-btn {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (max-width: 1024px) {
  .container { max-width: 960px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .hero { padding: 100px 0 60px; }
  .hero-content { text-align: center; align-items: center; }
  .hero-visual { display: none; }
  
  section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  
  .products-grid, .solutions-grid, .hardware-grid, .features-grid, .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .stats-banner .container > div {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  
  .card, .feature-card, .brand-card { padding: 20px; }
  
  .form-row { flex-direction: column; }
  .form-group { width: 100%; }
  
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  
  footer { padding: 48px 0 24px; }
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  
  section { padding: 32px 0; }
  .section-header { margin-bottom: 24px; }
  
  .stats-banner .container > div {
    grid-template-columns: 1fr !important;
  }
  
  .btn { padding: 12px 20px; font-size: var(--text-sm); }
  .card, .feature-card, .brand-card { padding: 16px; }
}
