/* =====================================================
   奎午科技官网样式表 | Kuiwu Technology Website Styles
   版本: 1.0.0 | 2026-05-15
   技术栈: 纯 CSS3 + Vanilla JS
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* 品牌色 */
  --primary: #0f172a;           /* slate-900 - 科技深蓝 */
  --primary-light: #1e293b;     /* slate-800 - 卡片背景 */
  --secondary: #3b82f6;         /* blue-500 - 科技蓝 */
  --accent: #d97706;            /* amber-600 - 沉稳琥珀 */
  --accent-hover: #b45309;      /* amber-700 - hover */

  /* 文字色 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #f8fafc;

  /* 背景色 */
  --bg-white: #ffffff;
  --bg-light: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;

  /* 边框与阴影 */
  --border-light: rgba(59, 130, 246, 0.1);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* 间距系统 (8px base) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  --space-8: 8rem;     /* 128px */

  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  
  /* 按钮与交互 */
  --btn-primary-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  --btn-primary-shadow-hover: 0 6px 20px rgba(217, 119, 6, 0.4);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding: var(--space-7) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: var(--space-1);
  letter-spacing: 0.1em;
}

.section-title {
  margin-bottom: var(--space-2);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.grid {
  display: grid;
  gap: var(--space-3);
}

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

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

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

.btn-outline:hover {
  background-color: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

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

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.card-dark:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-glow);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-2) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-cta {
  margin-left: var(--space-2);
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  padding: 0.6rem 1.4rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  transition: all var(--transition-base) !important;
  border: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-light);
    flex-direction: column;
    padding: var(--space-5) var(--space-3);
    transition: right var(--transition-base);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    align-items: flex-start;
  }

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

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-2);
    width: 100%;
    text-align: center;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: radial-gradient(circle, var(--secondary) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  top: -10%;
  right: -5%;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -10%;
  left: -5%;
  opacity: 0.1;
}

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

.hero-label {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--secondary);
}

.hero-title {
  color: var(--text-white);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.hero-desc {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-stats {
  display: flex;
  gap: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
}

/* 装饰性代码块 */
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot-red { background: #FF5F56; }
.code-dot-yellow { background: #FFBD2E; }
.code-dot-green { background: #27C93F; }

.code-body {
  padding: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-light);
}

.code-body .keyword { color: #C792EA; }
.code-body .string { color: #C3E88D; }
.code-body .func { color: #82AAFF; }
.code-body .comment { color: var(--text-muted); }
.code-body .number { color: #F78C6C; }

@media (max-width: 992px) {
  .hero .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

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

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.25; }
}

.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeInUp 0.8s ease forwards;
}

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

.hero-glow-1,
.hero-glow-2 {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ---------- Features / Value Props ---------- */
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  font-size: 1.5rem;
}

.value-icon-primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
}

.value-icon-accent {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

.value-card h3 {
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

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

/* ---------- Services ---------- */
.service-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--secondary);
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: var(--space-1);
}

.service-features {
  margin-top: var(--space-2);
}

.service-features li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- Architecture Diagram ---------- */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4);
}

.arch-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  transition: all var(--transition-base);
}

.arch-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
}

.arch-box h4 {
  color: var(--secondary);
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.arch-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.arch-arrow {
  color: var(--secondary);
  font-size: 1.5rem;
  opacity: 0.6;
}

.arch-center {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
  margin: var(--space-2) 0;
}

@media (max-width: 768px) {
  .arch-diagram {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Cases ---------- */
.case-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

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

.case-header {
  padding: var(--space-3) var(--space-3) 0;
}

.case-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.case-body {
  padding: 0 var(--space-3) var(--space-3);
}

.case-body h3 {
  margin-bottom: var(--space-1);
  font-size: 1.2rem;
}

.case-body p {
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.case-result {
  text-align: center;
}

.case-result-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.case-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-3);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 20%;
}

.comparison-table .highlight-col {
  background: rgba(59, 130, 246, 0.03);
  border-left: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
}

.comparison-table tr:last-child td.highlight-col {
  border-bottom: 2px solid var(--secondary);
}

.comparison-table tr:first-child th.highlight-col {
  border-top: 2px solid var(--secondary);
  border-left: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
  background: rgba(59, 130, 246, 0.08);
  color: var(--secondary);
}

.comparison-table .check {
  color: var(--secondary);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
}

.comparison-table .warn {
  color: var(--accent);
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.5rem;
  }
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.cta-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-info h3 {
  margin-bottom: var(--space-2);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: var(--space-2);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-6) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-1);
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Timeline / Story ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--bg-dark);
}

.timeline-year {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Quote / Testimonial ---------- */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
}

.quote-card::before {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
  top: var(--space-1);
  left: var(--space-2);
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
  padding-left: var(--space-3);
  position: relative;
  z-index: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-left: var(--space-3);
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.quote-info strong {
  color: var(--text-white);
  display: block;
}

.quote-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Utility ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), transparent);
  border-radius: 3px;
  margin: var(--space-2) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }

/* ---------- Mobile Menu Overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-white);
}

/* =====================================================
   移动端体验优化 | Mobile Responsive Enhancements
   版本: 1.1.0 | 所有规则包裹在@media中，PC端零影响
   ===================================================== */

/* ---------- 平板端优化 (768px - 991px) ---------- */
@media (max-width: 991px) {
  /* 减小section间距 */
  .section {
    padding: var(--space-6) 0;
  }
  
  /* 标题适当缩小 */
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }
  
  .section-desc {
    font-size: 1rem;
  }
  
  /* 卡片padding减小 */
  .card {
    padding: var(--space-3);
  }
}

/* ---------- 手机端优化 (<= 767px) ---------- */
@media (max-width: 767px) {
  /* 容器padding收紧 */
  .container {
    padding: 0 var(--space-2);
  }
  
  /* Section间距大幅减小，减少滑动疲劳 */
  .section {
    padding: var(--space-5) 0;
  }
  
  /* 区域标题间距收紧 */
  .section-header {
    margin-bottom: var(--space-3);
    padding: 0 var(--space-1);
  }
  
  /* Hero区优化 */
  .hero {
    padding-top: 70px;
    min-height: auto;
    padding-bottom: var(--space-4);
  }
  
  .hero-content {
    padding: var(--space-3) 0;
  }
  
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: var(--space-2);
  }
  
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-3);
  }
  
  /* 按钮移动端全宽/堆叠优化 */
  .hero-cta {
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  
  /* 统计数据改为横向滚动或紧凑布局 */
  .hero-stats {
    gap: var(--space-3);
    padding-top: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* 卡片触摸优化 */
  .card {
    padding: var(--space-3);
    margin-bottom: var(--space-2);
  }
  
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* 服务卡片图标缩小 */
  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  /* 按钮触摸区域增大 */
  .btn {
    min-height: 44px;
    padding: 0.8rem 1.5rem;
  }
  
  .btn-sm {
    padding: 0.6rem 1.2rem;
    min-height: 40px;
  }
  
  /* 导航栏更紧凑 */
  .navbar.scrolled {
    padding: 0.5rem 0;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  /* 移动端菜单优化 */
  .nav-links {
    padding: var(--space-4) var(--space-3);
    gap: var(--space-2);
  }
  
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav-cta {
    margin-top: var(--space-2);
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* 联系表单优化 */
  .contact-grid {
    gap: var(--space-3);
  }
  
  .contact-form {
    padding: var(--space-3);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 48px;
    font-size: 16px; /* 防止iOS缩放 */
    padding: 0.75rem 1rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  /* 对比表横向滚动提示 */
  .comparison-table {
    font-size: 0.75rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
  }
  
  /* 架构图间距收紧 */
  .arch-diagram {
    padding: var(--space-2);
    gap: var(--space-1);
  }
  
  .arch-box {
    padding: var(--space-2);
  }
  
  .arch-box h4 {
    font-size: 0.9rem;
  }
  
  .arch-box p {
    font-size: 0.75rem;
  }
  
  /* Footer优化 */
  .footer {
    padding: var(--space-5) 0 var(--space-3);
  }
  
  .footer-grid {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }
  
  .footer-links a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* 引用卡片优化 */
  .quote-card {
    padding: var(--space-3);
  }
  
  .quote-text {
    padding-left: var(--space-2);
    font-size: 0.95rem;
  }
  
  /* CTA区域优化 */
  .cta-content h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  /* 流程步骤卡片 */
  .grid-4 .card {
    padding: var(--space-3);
  }
  
  /* 时间线优化 */
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -1.9rem;
    width: 10px;
    height: 10px;
  }
  
  /* 标签云优化 */
  .service-features li,
  .value-card p,
  .case-body p {
    font-size: 0.9rem;
  }
  
  /* 确保图片不溢出 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* 横向滚动容器优化 */
  [style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  [style*="overflow-x: auto"]::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- 小屏手机优化 (<= 479px) ---------- */
@media (max-width: 479px) {
  /* 进一步收紧 */
  .section {
    padding: var(--space-4) 0;
  }
  
  .container {
    padding: 0 var(--space-1);
  }
  
  /* Hero标题更小 */
  .hero-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  /* 统计数字单列或两列 */
  .hero-stats {
    flex-direction: row;
    justify-content: space-around;
    gap: var(--space-2);
  }
  
  .stat-item {
    text-align: center;
    flex: 1;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  /* 按钮更紧凑 */
  .hero-cta .btn {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Footer单列更紧凑 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-1);
  }
  
  /* 对比表极小屏适配 */
  .comparison-table {
    font-size: 0.7rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.4rem 0.3rem;
  }
  
  /* 代码窗口字体更小 */
  .code-body {
    font-size: 0.7rem;
    padding: var(--space-1);
  }
  
  .code-header {
    padding: 0.5rem var(--space-1);
  }
  
  /* 表单全宽 */
  .form-group {
    margin-bottom: var(--space-1);
  }
  
  /* 联系信息项优化 */
  .contact-item {
    margin-bottom: var(--space-2);
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
}

/* ---------- 横屏手机优化 ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 var(--space-3);
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-visual {
    display: none;
  }
}

/* ---------- 触摸设备全局优化 ---------- */
@media (hover: none) and (pointer: coarse) {
  /* 触摸设备去掉hover效果，避免点击后残留 */
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.96);
    opacity: 0.9;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  /* 增大所有可点击元素 */
  a, button, input, select, textarea, [role="button"] {
    min-height: 44px;
  }
}

/* ---------- 减少动画（尊重用户偏好） ---------- */
@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;
  }
}


/** 菜单样式 */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-links a {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.nav-links a:not(.btn)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-links a:not(.btn):hover {
  color: var(--secondary);
  background: rgba(59, 130, 246, 0.08);
}

.nav-links a:not(.btn):hover::before {
  width: 80%;
}

.nav-links a.active {
  color: var(--secondary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-links a.active::before {
  width: 80%;
}

.nav-cta {
  margin-left: var(--space-2) !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: white !important;
  padding: 0.65rem 1.6rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  transition: all var(--transition-base) !important;
  border: none !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary-light);
    flex-direction: column;
    padding: calc(var(--space-5) + 2rem) var(--space-3) var(--space-3);
    transition: right var(--transition-base);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    align-items: stretch;
    gap: var(--space-1);
    overflow-y: auto;
  }

  .nav-links a {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:not(.btn):hover {
    background: rgba(59, 130, 246, 0.12);
    padding-left: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: var(--space-2) !important;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem !important;
  }
}
