:root {
  --primary: #0a58ca;
  --primary-dark: #062e6f;
  --accent: #4cc9f0;
  --bg-dark: #031633;
  --bg-gradient: linear-gradient(135deg, rgba(5, 36, 102, 0.95), rgba(10, 88, 202, 0.85));
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --card-shadow: 0 20px 45px rgba(8, 66, 152, 0.18);
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background-color: #f5f7fb;
  scroll-behavior: smooth;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(12px);
  background: rgba(3, 22, 51, 0.85);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
  transform: translateY(-2px);
}

.navbar .btn-primary {
  background: var(--accent);
  border: none;
  color: #031633;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(76, 201, 240, 0.35);
}

.logo {
  width: 70px;
  height: auto;
}

.hero-section,
.page-hero,
.cta-section {
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
}

.hero-section::before,
.page-hero::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(76, 201, 240, 0.35), transparent 55%),
              radial-gradient(circle at bottom left, rgba(9, 132, 227, 0.35), transparent 50%);
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 22, 51, 0.6), rgba(10, 88, 202, 0.4));
  z-index: 0;
}

.hero-section > *,
.page-hero > *,
.cta-section > * {
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-title.text-white {
  color: #fff;
}

.text-muted {
  color: var(--text-muted) !important;
}

.feature-card,
.product-card,
.solution-card,
.process-card,
.blueprint-card,
.info-card,
.team-card,
.contact-card,
.office-card,
.case-card,
.partners-card,
.stats-card {
  background: #fff;
  border: none;
  border-radius: 1.3rem;
  box-shadow: var(--card-shadow);
}

.feature-card .card-body,
.product-card .card-body {
  padding: 2rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(76, 201, 240, 0.15);
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-list li,
.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.feature-list i,
.info-list i {
  color: var(--accent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-left: 2px solid rgba(10, 88, 202, 0.2);
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}

.timeline-number {
  position: absolute;
  left: -1.75rem;
  top: -0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(10, 88, 202, 0.25);
}

.case-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 88, 202, 0.1);
}

.partners-card {
  background: rgba(3, 22, 51, 0.92);
  color: #fff;
}

.partner-logo {
  filter: grayscale(25%);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(3, 22, 51, 0.2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 88, 202, 0.12);
  color: var(--primary);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

.office-card {
  border: 1px solid rgba(10, 88, 202, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.office-card:hover,
.feature-card:hover,
.product-card:hover,
.solution-card:hover,
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(8, 66, 152, 0.25);
}

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(76, 201, 240, 0.2);
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-card form .form-control,
.contact-card form .form-select {
  border-radius: 0.85rem;
  border: 1px solid rgba(10, 88, 202, 0.2);
  padding: 0.75rem 1rem;
}

.contact-card form .form-control:focus,
.contact-card form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(76, 201, 240, 0.25);
}

.btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 0.85rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(10, 88, 202, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

@media (max-width: 991px) {
  .navbar .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .page-hero {
    text-align: center;
  }

  .feature-card,
  .product-card,
  .solution-card {
    padding: 0;
  }
}

/* 现代化解决方案样式 */
.solution-item {
  padding: 3rem 0;
  position: relative;
}

.solution-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 88, 202, 0.2), transparent);
}

.solution-item:last-child::after {
  display: none;
}

.solution-item .col-lg-6 {
  position: relative;
}

.solution-item .row:not(.flex-row-reverse) > .col-lg-6:first-child {
  padding-right: 2rem;
}

.solution-item .row.flex-row-reverse > .col-lg-6:first-child {
  padding-left: 2rem;
}

.solution-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 88, 202, 0.1), rgba(76, 201, 240, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.solution-visual {
  position: relative;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  margin-left: 1rem;
}

.gradient-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 88, 202, 0.1) 0%, rgba(76, 201, 240, 0.15) 50%, rgba(10, 88, 202, 0.08) 100%);
  border-radius: 24px;
  position: relative;
}

.gradient-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.2) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.gradient-box-alt {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.12) 0%, rgba(10, 88, 202, 0.1) 50%, rgba(76, 201, 240, 0.08) 100%);
}

.gradient-box-alt-2 {
  background: linear-gradient(135deg, rgba(10, 88, 202, 0.15) 0%, rgba(76, 201, 240, 0.12) 50%, rgba(10, 88, 202, 0.1) 100%);
}

.gradient-box-alt-3 {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1) 0%, rgba(10, 88, 202, 0.12) 50%, rgba(76, 201, 240, 0.15) 100%);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.feature-list-modern {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-right: 2rem;
  margin-right: 1rem;
}

.feature-list-modern li {
  margin: 0;
  flex-shrink: 0;
}

.feature-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(10, 88, 202, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(10, 88, 202, 0.15);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(10, 88, 202, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 88, 202, 0.2);
}

@media (max-width: 991px) {
  .solution-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .solution-visual {
    height: 200px;
    margin-top: 2rem;
  }

  .flex-row-reverse {
    flex-direction: column !important;
  }
}

/* 现代化架构蓝图样式 */
.blueprint-modern {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.blueprint-modern:hover {
  transform: translateY(-8px);
}

.blueprint-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 88, 202, 0.1), rgba(76, 201, 240, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid rgba(10, 88, 202, 0.2);
}

.architecture-diagram-modern {
  max-width: 800px;
  margin: 0 auto;
}

.architecture-diagram-modern img {
  box-shadow: 0 20px 60px rgba(10, 88, 202, 0.15);
  transition: transform 0.3s ease;
}

.architecture-diagram-modern img:hover {
  transform: scale(1.02);
}

@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;
  }

  .gradient-box::before {
    animation: none;
  }
}
