﻿/* ============================
   CSS Variables & Theme
   ============================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --gradient-start: #2563eb;
  --gradient-end: #06b6d4;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --accent: #22d3ee;
  --accent-light: #67e8f9;
  --gradient-start: #3b82f6;
  --gradient-end: #22d3ee;
  --bg: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-header: rgba(11, 15, 26, 0.9);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #1e293b;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* ============================
   Header
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding-left: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: rgba(var(--primary-rgb), 0.08);
  transition: all var(--transition);
  white-space: nowrap;
}

.header-phone:hover {
  background: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   Hero Section
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a1628;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 背景图片�?—�?视差滚动 */
.hero-image {
  position: absolute;
  /* �?hero 高一些，给视差留空间 */
  top: -15%;
  left: 0;
  right: 0;
  bottom: -15%;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateY(0);
  transition: none;
}

/* 渐变遮罩�?—�?确保文字可读�?*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(10, 22, 40, 0.78) 0%,
      rgba(6, 78, 140, 0.65) 50%,
      rgba(6, 182, 212, 0.55) 100%);
}

/* 暗色模式遮罩更深 */
[data-theme="dark"] .hero-overlay {
  background:
    linear-gradient(135deg,
      rgba(5, 10, 20, 0.88) 0%,
      rgba(10, 40, 80, 0.75) 50%,
      rgba(6, 120, 160, 0.6) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.09) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 2px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
  background-size: 200px 200px, 300px 300px, 250px 250px, 150px 150px;
  animation: float-particles 20s linear infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

@keyframes float-particles {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, -60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-subtitle strong {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

.hero-scroll {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
  animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-primary {
  background: rgba(255,255,255,0.95);
  color: var(--gradient-start);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--gradient-start);
}
.btn-full { width: 100%; }
.btn-outline {
  background: transparent;
  color: var(--gradient-start);
  border: 2px solid var(--gradient-start);
}
.btn-outline:hover {
  background: var(--gradient-start);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================
   Stats Bar
   ============================ */
.stats {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  transition: background var(--transition);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================
   Section Common
   ============================ */
.section {
  padding: 100px 0;
  transition: background var(--transition);
}
.section:nth-child(even) { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
[data-theme="dark"] .section-tag {
  background: rgba(59, 130, 246, 0.15);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 56px 0 24px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

/* ============================
   Solutions
   ============================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.solution-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.solution-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}
.solution-card:hover::before {
  opacity: 1;
}
.solution-card:hover .solution-icon img {
  transform: scale(1.08);
}
.solution-card:hover .solution-link {
  letter-spacing: 2px;
  color: var(--primary-dark);
}

.solution-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.solution-icon img {
  width: 360px;
  height: 360px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  text-align: center;
}
.solution-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}
.solution-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.solution-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.solution-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.solution-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
  display: inline-block;
}
.solution-link:hover { color: var(--primary-dark); letter-spacing: 2px; }

/* ============================
   XinChuang (信创适配)
   ============================ */
.xinchuang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.xinchuang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.xinchuang-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.xinchuang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
[data-theme="dark"] .xinchuang-icon {
  background: rgba(59, 130, 246, 0.12);
}
.xinchuang-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.xinchuang-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.xinchuang-banner {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #fff;
}
.xinchuang-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.xinchuang-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.xinchuang-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.8;
}
.xinchuang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.badge {
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================
   Partners & Hardware
   ============================ */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.partner-logo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.partner-logo-item:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.hardware-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.hardware-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  margin-bottom: 16px;
}
[data-theme="dark"] .hardware-icon {
  background: rgba(59, 130, 246, 0.12);
}
.hardware-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.hardware-model {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.hardware-card p:last-child {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* ============================
   Contact
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  transition: background var(--transition);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer-brand .logo img {
  height: 30px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ============================
   Back to Top
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================
   Animations
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* Mobile nav open state */
.nav.open {
  display: flex;
}

/* ============================
   Cases Section (客户案例)
   ============================ */
.case-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.case-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.case-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.case-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: none;
  border-bottom: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.case-card.hidden {
  display: none;
}
.case-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-secondary);
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:hover .case-image img {
  transform: scale(1.06);
}
.case-info {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.case-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}
[data-theme="dark"] .case-tag {
  background: rgba(59, 130, 246, 0.15);
}

.cases-more {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ============================
   Certs Section (资质证书)
   ============================ */
.cert-highlight {
  margin-bottom: 56px;
}
.cert-highlight-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.cert-highlight-image {
  flex-shrink: 0;
  width: 400px;  height: 270px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-highlight-info {
  flex: 1;
}
.cert-badge {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.cert-highlight-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.cert-number {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.cert-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.cert-issuers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-issuers span {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.cert-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.cert-placeholder p {
  font-size: 0.88rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.cert-image {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 130%;
  overflow: hidden;
  background: var(--bg-secondary);
}
.cert-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cert-card:hover .cert-image img {
  transform: scale(1.04);
}
.cert-card p {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border);
}

.certs-more {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.certs-more strong {
  color: var(--primary);
  font-weight: 700;
}

.report-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.report-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.report-icon {
  flex-shrink: 0;
  color: var(--primary);
  width: 48px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-icon svg {
  stroke: var(--primary);
}
.report-info {
  flex: 1;
  min-width: 0;
}
.report-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.report-code {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.report-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

/* ============================
   Hardware Image (硬件图片)
   ============================ */
.hardware-image {
  position: relative;
  width: 100%;
  padding-top: 80%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--bg-secondary);
}
.hardware-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hardware-card:hover .hardware-image img {
  transform: scale(1.06);
}
.hardware-icon {
  display: none;
}

.hardware-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.showcase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.showcase-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.showcase-item .item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0 8px 8px;
  line-height: 1.4;
  opacity: 0.8;
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
  background: var(--bg-secondary);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-item:hover img {
  transform: scale(1.05);
}
.showcase-item p {
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ============================
   Lightbox
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Gallery Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-nav:active {
  background: rgba(255,255,255,0.4);
}
.lightbox-nav.hidden {
  opacity: 0;
  pointer-events: none;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

/* Gallery Dots */
.lightbox-dots {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.lightbox-dot.active {
  background: #fff;
  border-color: #fff;
}

/* Gallery Counter */
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0,0,0,0.4);
  padding: 4px 16px;
  border-radius: 999px;
  z-index: 10;
  letter-spacing: 0.05em;
}

.lightbox-caption {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  background: rgba(0,0,0,0.5);
  padding: 8px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================
   Solution Detail Pages
   ============================ */
.solution-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.solution-hero-icon {
  margin-bottom: 24px;
}

.solution-hero-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.solution-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.solution-hero .hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.solution-hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.solution-hero-tags span {
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Solution Content Sections */
.solution-section {
  padding: 80px 0;
}

.solution-section:nth-child(even) {
  background: var(--bg-secondary);
}

.solution-section .section-header {
  margin-bottom: 48px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: var(--radius);
}

.feature-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.tech-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Scenario Grid */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scenario-card .scenario-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.scenario-card h4 {
  font-weight: 700;
  margin-bottom: 6px;
}

.scenario-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Hardware Mini Grid */
.hardware-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hardware-mini-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.hardware-mini-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hardware-mini-item .item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0 12px 12px;
  line-height: 1.5;
  opacity: 0.8;
}

.hardware-mini-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 16px;
  background: var(--bg-secondary);
}

.hardware-mini-item p {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* CTA */
.solution-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.solution-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.solution-cta p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.solution-cta .btn {
  background: #fff;
  color: var(--primary);
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.solution-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* PDF Preview iframe */
.cert-image.pdf-preview {
  pointer-events: none;
}
.cert-image.pdf-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================
   Report Cards (检测报告卡片)
   ============================ */
.report-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.report-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.report-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-icon svg {
  stroke: var(--primary);
}
.report-info {
  flex: 1;
  min-width: 0;
}
.report-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.report-code {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.report-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
