/* ============================================
   上海微智信通科技 - 主样式表
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --container-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-lg { padding: 14px 36px; font-size: 16px; }

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title strong {
  color: var(--primary);
  font-weight: 700;
}
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto 16px;
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 10px 0;
}
.navbar.scrolled .logo-text,
.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(37,99,235,0.3));
  transition: var(--transition);
}
.logo:hover .logo-img {
  transform: scale(1.05) rotate(-3deg);
  filter: drop-shadow(0 4px 12px rgba(37,99,235,0.5));
}
.logo-text { color: #fff; transition: var(--transition); }
.logo-dot { color: var(--accent); font-size: 24px; line-height: 1; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff !important;
}

/* Search in nav */
.nav-search { position: relative; }
.search-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-toggle:hover { background: rgba(255,255,255,0.15); }
.navbar.scrolled .search-toggle { color: var(--text); }
.navbar.scrolled .search-toggle:hover { background: var(--bg-alt); }

.search-box {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.search-box.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--primary); }

.search-results {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-alt); }
.search-result-item .res-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
}
.search-result-item .res-title { font-weight: 600; font-size: 14px; }
.search-result-item .res-excerpt { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.search-empty { text-align: center; padding: 20px; color: var(--text-secondary); font-size: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ============================================
   Banner / Hero - 全新设计
   ============================================ */
.banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 120px 24px 100px;
  overflow: hidden;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,12,28,0.92) 0%, rgba(8,12,28,0.75) 55%, rgba(15,30,60,0.65) 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.banner-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
}

/* 左侧内容区 */
.banner-left {
  animation: fadeUp 0.8s ease forwards;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.banner-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.title-line {
  display: block;
}
.banner-title strong {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-subtitle {
  font-size: 18px;
  color: rgba(200,220,255,0.8);
  margin-bottom: 28px;
  line-height: 1.8;
  max-width: 520px;
}
.banner-subtitle strong {
  color: #a5f3fc;
  font-weight: 600;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero-chip:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.4);
  color: #7dd3fc;
  transition: all 0.3s ease;
}
.banner-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
.btn-primary.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4), 0 0 40px rgba(37,99,235,0.1);
  border-radius: 10px;
}
.btn-primary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,99,235,0.5), 0 0 60px rgba(37,99,235,0.15);
}
.btn-outline.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
}
.btn-outline.btn-lg:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-item strong {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.trust-item span {
  font-size: 13px;
  color: rgba(200,220,255,0.6);
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}

/* 右侧AI视觉区 */
.banner-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.3s both;
}
.ai-visual {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(80,180,255,0.15);
}
.ai-ring-1 {
  width: 200px;
  height: 200px;
  animation: ai-ring-spin 20s linear infinite;
}
.ai-ring-1::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
}
.ai-ring-2 {
  width: 280px;
  height: 280px;
  border-style: dashed;
  animation: ai-ring-spin 30s linear infinite reverse;
}
.ai-ring-3 {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(80,180,255,0.08);
  animation: ai-ring-spin 40s linear infinite;
}
@keyframes ai-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ai-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(14,165,233,0.2));
  border: 1px solid rgba(80,180,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
  box-shadow: 0 0 40px rgba(37,99,235,0.2), inset 0 0 20px rgba(37,99,235,0.1);
  animation: ai-core-pulse 3s ease infinite;
  z-index: 2;
}
@keyframes ai-core-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(37,99,235,0.2), inset 0 0 20px rgba(37,99,235,0.1); }
  50% { box-shadow: 0 0 60px rgba(37,99,235,0.35), inset 0 0 30px rgba(37,99,235,0.15); }
}
.ai-nodes {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ai-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(80,180,255,0.6);
  border-radius: 50%;
  margin: -5px 0 0 -5px;
  transform: translate(var(--x), var(--y));
  box-shadow: 0 0 12px rgba(80,180,255,0.5);
  animation: ai-node-glow 2s ease var(--delay) infinite;
}
@keyframes ai-node-glow {
  0%, 100% { opacity: 0.6; transform: translate(var(--x), var(--y)) scale(1); }
  50% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.4); }
}
.ai-connections {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.ai-conn-svg {
  width: 380px;
  height: 380px;
}
.ai-data-stream {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.data-packet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  opacity: 0;
}
.data-packet:nth-child(1) { animation: data-flow1 3s ease var(--delay) infinite; }
.data-packet:nth-child(2) { animation: data-flow2 3s ease var(--delay) infinite; }
.data-packet:nth-child(3) { animation: data-flow3 3s ease var(--delay) infinite; }
.data-packet:nth-child(4) { animation: data-flow4 3s ease var(--delay) infinite; }
@keyframes data-flow1 {
  0% { opacity: 0; transform: translate(-50%,-50%) translate(0,0) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translate(-50%,-50%) translate(-90px,-70px) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(-90px,-70px) scale(0.5); }
}
@keyframes data-flow2 {
  0% { opacity: 0; transform: translate(-50%,-50%) translate(0,0) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translate(-50%,-50%) translate(90px,-50px) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(90px,-50px) scale(0.5); }
}
@keyframes data-flow3 {
  0% { opacity: 0; transform: translate(-50%,-50%) translate(0,0) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translate(-50%,-50%) translate(-70px,80px) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(-70px,80px) scale(0.5); }
}
@keyframes data-flow4 {
  0% { opacity: 0; transform: translate(-50%,-50%) translate(0,0) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translate(-50%,-50%) translate(0,-110px) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(0,-110px) scale(0.5); }
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 48px 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 8px; }
.stat-number {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 15px;
  opacity: 0.9;
}

/* ============================================
   Product Section
   ============================================ */
.product-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
}
.product-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.product-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 17px;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 24px;
}
.service-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-cta {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.service-cta:hover { color: var(--primary-dark); }

/* Icon font mapping */
.icon-cube::before { content: "\f1b2"; font-family: "FontAwesome"; }
.icon-rocket::before { content: "\f135"; font-family: "FontAwesome"; }
.icon-cogs::before { content: "\f085"; font-family: "FontAwesome"; }
.icon-magic::before { content: "\f0d0"; font-family: "FontAwesome"; }
.icon-comments::before { content: "\f086"; font-family: "FontAwesome"; }
.icon-search::before { content: "\f002"; font-family: "FontAwesome"; }
.icon-graduation-cap::before { content: "\f19d"; font-family: "FontAwesome"; }
.icon-shield::before { content: "\f132"; font-family: "FontAwesome"; }
.icon-lightbulb::before { content: "\f0eb"; font-family: "FontAwesome"; }
.icon-trophy::before { content: "\f091"; font-family: "FontAwesome"; }

/* ============================================
   Works Section
   ============================================ */
.works-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.works-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card.hidden { display: none; }
.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-image img { transform: scale(1.08); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-cta {
  padding: 10px 24px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.work-cta:hover { background: var(--primary); color: #fff; }
.work-info { padding: 16px; }
.work-info h4 { font-size: 16px; margin-bottom: 6px; }
.work-tag {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ============================================
   About Section
   ============================================ */
.about-section { padding: 80px 0; }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-block {
  margin-bottom: 28px;
}
.about-block:last-child { margin-bottom: 0; }
.about-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 18px;
  margin-bottom: 10px;
}
.about-block h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.about-block p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info h3 { font-size: 18px; margin-bottom: 4px; }
.team-role {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
}
.team-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section { padding: 80px 0; }
.testimonials-slider {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 0 12px;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  font-size: 15px;
  color: var(--text-secondary);
}
.testimonial-author strong { color: var(--text); }
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.contact-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius);
  color: #92400e;
  font-weight: 600;
  font-size: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.promo-badge { color: #f59e0b; font-size: 20px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-item p {
  font-size: 15px;
  color: var(--text-secondary);
  padding-top: 10px;
}
.contact-item a { color: var(--primary); text-decoration: none; }
.contact-wechat {
  margin-top: 24px;
  text-align: center;
}
.contact-wechat img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.contact-wechat p { font-size: 13px; color: var(--text-secondary); }

.contact-form-wrapper {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrapper h3 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 12px;
}
.form-captcha {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.form-captcha input { flex: 1; }
.form-captcha img {
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
}
.btn-submit { width: 100%; justify-content: center; }
.form-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-message.success { background: #dcfce7; color: #166534; display: block; }
.form-message.error { background: #fef2f2; color: #dc2626; display: block; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; max-width: 360px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.floating-cta.visible { opacity: 1; transform: translateY(0); }
.floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  transition: var(--transition);
}
.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.5);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
}
.modal-form input:focus,
.modal-form textarea:focus { border-color: var(--primary); }
.modal-form textarea { min-height: 80px; resize: vertical; }
.modal-form .btn-primary { width: 100%; margin-top: 4px; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero Carousel
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 25, 50, 0.6);
  border: 1px solid rgba(80, 160, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(37, 99, 235, 0.1);
}
.carousel-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.carousel-track {
  position: relative;
  height: 340px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
  display: flex;
  flex-direction: column;
}
.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}
.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(80, 160, 255, 0.1);
}
.carousel-info {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.carousel-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.carousel-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.carousel-info p {
  font-size: 13px;
  color: rgba(200, 220, 255, 0.7);
  line-height: 1.6;
  flex: 1;
}
.carousel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  transition: var(--transition);
}
.carousel-link:hover {
  color: #7dd3fc;
  gap: 8px;
}
.carousel-arrow {
  position: absolute;
  top: 110px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(80, 160, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.carousel-arrow:hover {
  background: rgba(37, 99, 235, 0.8);
  border-color: rgba(80, 160, 255, 0.5);
  color: #fff;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dots .dot.active {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  width: 24px;
  border-radius: 4px;
}
.carousel-dots .dot:hover {
  background: rgba(56, 189, 248, 0.6);
}

/* ============================================
   Hero Services Quick Cards
   ============================================ */
.hero-services {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding-bottom: 24px;
}
.hero-services-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hero-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(15, 25, 50, 0.5);
  border: 1px solid rgba(80, 160, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: var(--transition);
}
.hero-service-card:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(80, 160, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}
.hero-service-card .service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(14, 165, 233, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
  flex-shrink: 0;
}
.hero-service-card .service-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.hero-service-card .service-info p {
  font-size: 12px;
  color: rgba(200, 220, 255, 0.6);
  line-height: 1.4;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .banner-wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .banner-left { order: 1; }
  .banner-right { order: 0; }
  .banner-subtitle { margin-left: auto; margin-right: auto; }
  .banner-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-carousel { max-width: 480px; margin: 0 auto; }
  .carousel-track { height: 300px; }
  .carousel-slide img { height: 180px; }
  .hero-services-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { color: var(--text) !important; padding: 12px; }
  .nav-toggle { display: flex; }
  .nav-cta { text-align: center; }

  .banner { padding: 100px 20px 80px; }
  .banner-title { font-size: 34px; }
  .banner-subtitle { font-size: 15px; }
  .banner-actions { flex-direction: column; align-items: center; }
  .btn-primary.btn-lg, .btn-outline.btn-lg { width: 100%; max-width: 280px; justify-content: center; }
  .hero-trust { flex-wrap: wrap; gap: 12px; }
  .trust-divider { display: none; }
  .trust-item strong { font-size: 20px; }
  .hero-carousel { max-width: 100%; }
  .carousel-track { height: 260px; }
  .carousel-slide img { height: 150px; }
  .carousel-arrow { top: 75px; }
  .hero-services { position: relative; padding-bottom: 0; margin-top: 20px; }
  .hero-services-inner { grid-template-columns: 1fr 1fr; gap: 10px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }

  .section-title { font-size: 28px; }

  .services-grid,
  .works-grid,
  .team-grid { grid-template-columns: 1fr; }

  .about-content { grid-template-columns: 1fr; }
  .about-image { order: -1; }

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

  .search-box { width: calc(100vw - 48px); right: -60px; }

  .floating-cta { bottom: 20px; right: 20px; }
  .floating-btn span { display: none; }

  .footer-content { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .banner-title { font-size: 28px; }
  .hero-tag { font-size: 12px; padding: 6px 14px; }
  .hero-chip { font-size: 12px; padding: 5px 12px; }
  .carousel-track { height: 240px; }
  .carousel-info { padding: 14px 16px; }
  .carousel-info h3 { font-size: 15px; }
  .hero-services-inner { grid-template-columns: 1fr; }
  .hero-service-card { padding: 12px 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-form-wrapper { padding: 20px; }
}
