/* ============================================================
   智聚未来科技 - 企业官网样式
   版本: 1.0.0
   ============================================================ */

/* ─── CSS 变量 ─── */
:root {
  --color-primary: #7c6dd8;
  --color-primary-dark: #6d5bd8;
  --color-secondary: #a29bfe;
  --color-accent: #60a5fa;
  --color-cyan: #22d3ee;
  --color-purple: #c4b5fd;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --color-dark: #141744;
  --color-dark-2: #1a1d54;
  --color-dark-3: #22267a;
  --color-gray: #64748b;
  --color-light: #f8fafc;
  --color-white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(124,109,216,0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --navbar-h: 58px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: #fff;
  color: #1e2937;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── 导航栏 ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(20, 23, 68, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,109,216,0.12);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(20, 23, 68, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3), 0 0 40px rgba(124,109,216,0.06);
  border-bottom: 1px solid rgba(124,109,216,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c6dd8, #a29bfe);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Font Awesome Logo 样式 */
.nav-logo-img { height: 56px; width: auto; object-fit: contain; }
.footer-logo-img { height: 42px; width: auto; object-fit: contain; }
.logo-fa-icon { font-size: 20px; color: var(--color-primary); }
.nav-logo { display:flex; align-items:center; gap:8px; }
.nav-logo img { height:56px; width:auto; object-fit:contain; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(124,109,216,0.15);
}

.nav-cta {
  background: linear-gradient(135deg, #7c6dd8, #a29bfe) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #6d5bd8, #7c6dd8) !important;
  transform: translateY(-1px);
}

/* 下拉菜单 */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1a1d54;
  border: 1px solid rgba(124,109,216,0.15);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 30px rgba(124,109,216,0.08);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown li a:hover {
  color: #ffffff;
  background: rgba(124,109,216,0.15);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  color: #ffffff;
  font-size: 22px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero 区域 ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #141744 0%, #191d52 30%, #1a1f5c 55%, #1e2168 80%, #181d50 100%);
  padding-top: var(--navbar-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,109,216,0.15);
  border: 1px solid rgba(124,109,216,0.25);
  color: #c4b5fd;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #7c6dd8, #a29bfe, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat {
  text-align: center;
  color: #ffffff;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c6dd8, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  animation: fadeIn 1s ease 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ─── 通用 Section ─── */
.section { padding: 80px 0; }
.bg-dark { background: #191d52; }
.bg-light { background: #faf9fc; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.light .section-title { color: #ffffff; }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.65); }

.section-tag {
  display: inline-block;
  background: rgba(124,109,216,0.1);
  color: var(--color-primary);
  border: 1px solid rgba(124,109,216,0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.text-white { color: white !important; }
.text-muted { color: rgba(255,255,255,0.5) !important; }

.section-subtitle {
  font-size: 16px;
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── 按钮系统 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7c6dd8, #a29bfe);
  color: white;
  box-shadow: 0 4px 20px rgba(124,109,216,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,109,216,0.45);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.1);
}

.btn-ghost {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.btn-white {
  background: white;
  color: var(--color-dark);
  font-weight: 700;
}

.btn-white:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── 四大分类卡片 ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--cat-color);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon-wrap {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--cat-color) 15%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.category-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 20px;
}

.category-services { margin-bottom: 20px; }

.category-services li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-color);
  flex-shrink: 0;
}

.category-link {
  color: var(--cat-color);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.category-link:hover { gap: 8px; }

/* ─── 产品展示区 ─── */
.section-products { padding: 100px 0; }

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.product-showcase:last-child { margin-bottom: 0; }

.product-right { direction: rtl; }
.product-right > * { direction: ltr; }

/* 聊天界面 */
.product-screen {
  background: #1a1d54;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,109,216,0.15);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 40px rgba(124,109,216,0.08);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #151945;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.screen-title {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-left: 8px;
}

.screen-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 200px; }

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.ai .chat-bubble {
  background: #25296e;
  color: #c4b5fd;
  border-radius: 4px 12px 12px 12px;
}

.chat-msg.user .chat-bubble {
  background: var(--color-primary);
  color: white;
  border-radius: 12px 4px 12px 12px;
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7c6dd8;
  border-radius: 50%;
  animation: typingPulse 1.4s infinite;
  margin: 0 2px;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* 服务器视觉 */
.server-visual {
  background: #1a1d54;
  border: 1px solid rgba(124,109,216,0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 30px rgba(124,109,216,0.06);
}

.server-rack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.server-unit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #151945;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid rgba(124,109,216,0.10);
  animation: serverPulse 3s infinite;
}

.server-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-led.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.server-led.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.server-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.server-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #7c6dd8, #60a5fa);
  border-radius: 2px;
  animation: barFill 2s infinite alternate;
}

.server-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  width: 120px;
}

.server-usage {
  font-size: 11px;
  color: #a29bfe;
  white-space: nowrap;
}

.server-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(124,109,216,0.12);
  padding-top: 16px;
}

.s-stat {
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

.s-stat span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #a29bfe;
}

/* 产品信息 */
.product-visual { position: relative; }

.product-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-blue { background: rgba(96,165,250,0.2); color: #93c5fd; border: 1px solid rgba(96,165,250,0.3); }
.badge-green { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-purple { background: rgba(124,109,216,0.2); color: #c4b5fd; border: 1px solid rgba(124,109,216,0.3); }
.badge-teal { background: rgba(6,182,212,0.2); color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }

.product-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-info h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #141744;
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-info p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  color: #374151;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e0f0;
}

/* .bg-dark 中的产品信息 — 浅色文字 */
.bg-dark .product-info h3 { color: #fff; }
.bg-dark .product-info p { color: rgba(255,255,255,0.75); }
.bg-dark .product-features li { color: rgba(255,255,255,0.82); border-bottom-color: rgba(255,255,255,0.08); }

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 机器人卡片 */
.robot-card {
  background: linear-gradient(135deg, #1a1d54, #151945);
  border: 1px solid rgba(124,109,216,0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.robot-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.spec-item {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(124,109,216,0.10);
}

/* ─── 优势区 ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.why-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.why-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* ─── 案例卡片 ─── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-image {
  position: relative;
  height: 160px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: white;
  font-weight: 600;
}

.case-body { padding: 20px; }
.case-client { font-size: 12px; color: var(--color-gray); margin-bottom: 8px; }
.case-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--color-dark); }
.case-body p { font-size: 13px; color: #6b7280; margin-bottom: 12px; line-height: 1.5; }

.case-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf4;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #166534;
  margin-bottom: 12px;
}

.result-icon { flex-shrink: 0; }

.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ─── 合作伙伴滚动 ─── */
.section-partners { padding: 40px 0; background: #f8fafc; }

.partners-title {
  text-align: center;
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.partners-scroll {
  overflow: hidden;
  position: relative;
}

.partners-scroll::before,
.partners-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.partners-scroll::before { left: 0; background: linear-gradient(to right, #f8fafc, transparent); }
.partners-scroll::after { right: 0; background: linear-gradient(to left, #f8fafc, transparent); }

.partners-track {
  display: flex;
  gap: 32px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.partner-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── 新闻区 ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.news-image {
  position: relative;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

.news-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--color-gray); margin-bottom: 8px; }
.news-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-body h4 a { color: var(--color-dark); }
.news-body h4 a:hover { color: var(--color-primary); }
.news-body p { font-size: 13px; color: var(--color-gray); line-height: 1.6; margin-bottom: 12px; }
.read-more { font-size: 13px; color: var(--color-primary); font-weight: 600; }

/* ─── CTA 横幅 ─── */
.section-cta-banner {
  background: linear-gradient(135deg, #141744, #1a1d54, #231960);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="1" cy="1" r="1" fill="%239e66bf22"/></svg>');
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── 页面 Hero ─── */
.page-hero {
  padding: calc(var(--navbar-h) + 48px) 0 64px;
  color: #ffffff;
  background: linear-gradient(160deg, #141744 0%, #191d52 30%, #1a1f5c 55%, #1e2168 80%, #181d50 100%);
}

.page-hero-sm {
  padding: calc(var(--navbar-h) + 24px) 0 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}

/* ─── 服务页面 ─── */
.service-nav {
  position: sticky;
  top: var(--navbar-h);
  z-index: 100;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.service-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
}

.service-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-tab:hover { color: var(--color-dark); background: #f1f5f9; }

.service-tab.active {
  background: var(--tab-color, var(--color-primary));
  color: white;
  border-color: var(--tab-color, var(--color-primary));
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 32px;
}

.service-detail-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--sc);
}

.sdc-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.sdc-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.sdc-icon img { width: 100%; height: 100%; object-fit: contain; }
.sdc-header h3 { font-size: 20px; font-weight: 700; color: var(--color-dark); }
.sdc-sub { font-size: 13px; color: var(--color-gray); margin-top: 4px; }
.sdc-desc { color: #374151; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.sdc-features h5 { font-size: 13px; color: var(--color-gray); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.features-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.feature-pill {
  background: #f1f5f9;
  color: #374151;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid #e5e7eb;
}

.sdc-footer { display: flex; gap: 12px; }

/* 服务分类展示 */
.services-section { margin-bottom: 60px; }

.services-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--sh-color);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.section-cat-icon { font-size: 24px; }
.services-section-header h2 { font-size: 20px; font-weight: 700; flex: 1; }

.services-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card-compact {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.service-card-compact:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sc);
  transform: translateY(-2px);
}

.scc-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: #f1f5f9;
}

.scc-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card-compact h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card-compact p { font-size: 13px; color: var(--color-gray); line-height: 1.5; margin-bottom: 16px; }
.scc-link { color: var(--sc); font-size: 13px; font-weight: 600; }

/* 服务详情页 */
.service-hero-content {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.service-hero-img { flex-shrink: 0; }

.service-hero-icon {
  width: 180px; height: 180px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  transition: transform 0.3s ease;
}
.service-hero-icon:hover { transform: scale(1.05); }

.service-hero-text { flex: 1; min-width: 280px; }

.service-cat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-hero-text h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.service-hero-text .subtitle { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.content-block { margin-bottom: 48px; }
.content-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; }
.content-block .lead { font-size: 16px; line-height: 1.8; color: #374151; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.feature-num {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-text { font-size: 14px; color: #374151; font-weight: 500; }

.mini-cases { display: flex; flex-direction: column; gap: 20px; }

.mini-case {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 20px;
}

.mc-client { font-size: 12px; color: var(--color-gray); margin-bottom: 8px; }
.mini-case h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mini-case p { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.mc-result { font-size: 13px; color: #166534; background: #f0fdf4; padding: 8px 12px; border-radius: 6px; }

/* 侧边栏 */
.service-sidebar { position: sticky; top: calc(var(--navbar-h) + 16px); }

.sidebar-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.contact-card { background: linear-gradient(135deg, #141744, #1a1d54); color: white; border-color: transparent; }
.contact-card h4 { color: white; }
.contact-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; }

.sidebar-contact-info { margin-top: 16px; }
.sidebar-contact-info p { font-size: 13px; color: rgba(255,255,255,0.85); padding: 4px 0; }

.related-service-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
}

.related-service-link:hover { color: var(--color-primary); padding-left: 4px; }

/* ─── 案例页面 ─── */
.cases-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.case-full-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.case-full-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.cfc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.cfc-cat { font-size: 12px; font-weight: 600; }
.cfc-client { font-size: 12px; color: var(--color-gray); }
.cfc-body { padding: 20px; padding-bottom: 0; }
.cfc-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cfc-body p { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

.cfc-result {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f0fdf4;
  padding: 10px 20px;
  font-size: 13px;
  color: #166534;
}

/* ─── 关于页面 ─── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.about-text .section-tag { margin-bottom: 12px; }
.about-text h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 20px; color: var(--color-dark); }
.about-text .lead { font-size: 16px; line-height: 1.8; color: #374151; margin-bottom: 16px; }
.about-text p { color: #6b7280; line-height: 1.7; margin-bottom: 24px; }

.about-values { display: flex; flex-direction: column; gap: 16px; }

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon { font-size: 24px; flex-shrink: 0; }
.value-item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: 13px; color: var(--color-gray); margin: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-stat-item {
  text-align: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.big-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c6dd8, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-item span:last-child { font-size: 14px; color: var(--color-gray); }

/* 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.team-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: #f1f5f9;
  border: 3px solid #e5e7eb;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.team-position { font-size: 13px; color: var(--color-primary); margin-bottom: 12px; }
.team-card p { font-size: 13px; color: var(--color-gray); line-height: 1.6; }

/* 时间线 */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.timeline-item {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  position: relative;
}

.timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  width: 60px;
  flex-shrink: 0;
  text-align: right;
}

.timeline-content {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--color-gray); }

/* ─── 新闻列表 ─── */
.news-list { display: flex; flex-direction: column; gap: 24px; }

.news-list-item {
  display: flex;
  gap: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.news-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.nli-image {
  width: 180px;
  flex-shrink: 0;
  background: #f1f5f9;
  overflow: hidden;
}

.nli-image img { width: 100%; height: 100%; object-fit: cover; }

.nli-body { padding: 24px; flex: 1; }
.nli-meta { display: flex; gap: 12px; margin-bottom: 10px; align-items: center; }
.nli-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.nli-body h3 a { color: var(--color-dark); }
.nli-body h3 a:hover { color: var(--color-primary); }
.nli-body p { font-size: 14px; color: var(--color-gray); line-height: 1.6; margin-bottom: 12px; }
.news-date { font-size: 12px; color: var(--color-gray); }

/* ─── 文章详情 ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin: 12px 0; line-height: 1.3; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--color-gray); margin-top: 12px; }
.article-cover { margin-bottom: 32px; border-radius: var(--radius-md); overflow: hidden; background: #f1f5f9; height: 280px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: 16px; line-height: 1.8; color: #374151; }
.article-content p { margin-bottom: 16px; }
.article-footer { display: flex; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb; }

.related-news-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.related-news-item span { font-size: 12px; color: var(--color-gray); flex-shrink: 0; margin-top: 2px; }
.related-news-item a { font-size: 13px; color: #374151; line-height: 1.4; }
.related-news-item a:hover { color: var(--color-primary); }

/* ─── 联系页面 ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-subtitle { color: var(--color-gray); font-size: 14px; margin-bottom: 28px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.required { color: var(--color-danger); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  background: white;
  color: #1e2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,109,216,0.1);
}

.form-note { font-size: 12px; color: var(--color-gray); text-align: center; margin-top: 12px; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-info-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.contact-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ci-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: #374151; margin-bottom: 2px; }
.contact-item small { font-size: 12px; color: var(--color-gray); }

.contact-why-list li {
  font-size: 14px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.wechat-card { text-align: center; }
.wechat-card h3 { margin-bottom: 16px; }

.wechat-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.qr-box-lg {
  background: white;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.wechat-qr p { font-size: 13px; color: var(--color-gray); }

/* 页脚 QR */
.qr-placeholder { margin-top: 16px; }
.qr-box { width: 80px; height: 80px; background: white; padding: 6px; border: 1px solid #e5e7eb; border-radius: 6px; }
.qr-inner { width: 100%; height: 100%; background: #f1f5f9; border-radius: 3px; display: flex; align-items: center; justify-content: center; }

/* ─── 页脚 ─── */
.footer { background: #141744; color: white; }

.footer-top { padding: 64px 0 40px; border-top: 1px solid rgba(124,109,216,0.1); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.social-icon:hover { background: rgba(255,255,255,0.15); }

.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links ul li a:hover { color: white; }

.footer-contact h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ─── 动画 ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.9); } }
@keyframes bounce { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes typingPulse { 0%, 60%, 100% { opacity: 0.2; transform: scale(0.85); } 30% { opacity: 1; transform: scale(1); } }
@keyframes serverPulse { 0%, 100% { border-color: rgba(124,109,216,0.12); } 50% { border-color: rgba(124,109,216,0.25); } }
@keyframes barFill { from { width: 60%; } to { width: 90%; } }

/* 滚动进入动画 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Font Awesome 组件样式 ─── */

/* Hero 统计图标 */
.hero-stat { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-fa-icon { font-size: 22px; margin-bottom: 6px; color: var(--color-primary); opacity: 0.85; }

/* 分类卡片 */
.category-fa-icon { font-size: 36px; color: var(--cat-color); }
.category-icon-wrap { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cat-color) 15%, transparent); margin-bottom: 16px; }
.service-dot-icon { font-size: 6px; color: var(--cat-color); flex-shrink: 0; margin-top: 6px; }

/* 为什么选择我们 */
.text-success { color: var(--color-success) !important; }
.why-icon { font-size: 36px; color: var(--color-primary); margin-bottom: 16px; text-align: center; }
.why-card { text-align: center; }

/* 案例图片占位 */
.case-icon-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }

/* 新闻图片占位 */
.news-icon-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1d54, #151945); font-size: 40px; color: rgba(124,109,216,0.2); }

/* 机器人图标 */
.robot-icon-wrap { font-size: 120px; color: var(--color-primary); margin-bottom: 16px; text-align: center; opacity: 0.85; }
.robot-fa-icon { filter: drop-shadow(0 0 20px rgba(124,109,216,0.3)); }

/* 聊天头像 */
.chat-avatar { font-size: 18px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; }
.chat-msg.ai .chat-avatar { background: #25296e; color: #a29bfe; }
.chat-msg.user .chat-avatar { background: var(--color-primary); color: white; }

/* 团队头像 */
.team-avatar-circle { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #1a1d54, #151945); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 3px solid rgba(124,109,216,0.15); }

/* 合作伙伴 */
.partners-title i { margin-right: 6px; color: var(--color-primary); }

/* 页脚社交 */
.social-icon i { font-size: 16px; }

/* 服务详情页图标 */
.sdc-icon { display: flex; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 12px; }

/* 联系页面图标 */
.ci-icon { font-size: 20px; width: 44px; height: 44px; background: #f1f5f9; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary); }

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
  .product-showcase { grid-template-columns: 1fr; gap: 40px; }
  .product-right { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .about-intro { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ─── 汉堡菜单按钮 ─── */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .nav-toggle:hover { background: rgba(124,109,216,0.15); }
  
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ─── 移动端遮罩 ─── */
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* ─── 移动端菜单面板 ─── */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #141744;
    backdrop-filter: blur(24px);
    flex-direction: column;
    gap: 2px;
    padding: 88px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(124,109,216,0.12);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    width: 100%;
    transition: all 0.2s;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(124,109,216,0.15);
    color: #ffffff;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    background: linear-gradient(135deg, #7c6dd8, #a29bfe) !important;
    border-radius: 8px !important;
    color: white !important;
  }

  .nav-cta:hover {
    color: white !important;
  }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(124,109,216,0.06);
    border: 1px solid rgba(124,109,216,0.10);
    margin: 4px 0 4px 16px;
    border-radius: 8px;
    visibility: visible;
    opacity: 1;
    display: none;
    min-width: 0;
  }

  .has-dropdown.open .dropdown { display: block; }

  .hero-stats { gap: 24px; }
  .stat-number { font-size: 32px; }
  
  .hero-actions { flex-direction: column; align-items: center; }
  
  .category-grid { grid-template-columns: 1fr; }
  
  .cases-grid { grid-template-columns: 1fr; }
  .cases-full-grid { grid-template-columns: 1fr; }
  
  .news-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .nli-image { width: 100%; height: 160px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  
  .timeline::before { left: 0; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .timeline-year { width: auto; text-align: left; }
  
  .contact-form .form-row { grid-template-columns: 1fr; }
  
  .service-tabs { gap: 6px; padding: 8px 0; }
  .service-tab { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero-title { letter-spacing: -1px; }
  .product-features li { font-size: 13px; }
}

/* ─── 法律页面 ─── */
.legal-content { max-width: 800px; margin: 0 auto; line-height: 1.8; }
.legal-content h3 { font-size: 22px; color: var(--color-primary); margin: 32px 0 16px; }
.legal-content h4 { font-size: 17px; color: var(--color-heading); margin: 24px 0 10px; }
.legal-content p { font-size: 15px; color: var(--color-text); margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 10px 20px; }
.legal-content ul li { font-size: 15px; color: var(--color-text); margin-bottom: 6px; }

/* ─── 网站地图 ─── */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.sitemap-col h3 { font-size: 16px; color: var(--color-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sitemap-col h3 i { font-size: 14px; opacity: 0.7; }
.sitemap-col ul { list-style: none; padding: 0; }
.sitemap-col ul li { padding: 6px 0; }
.sitemap-col ul li a { color: var(--color-gray); font-size: 14px; text-decoration: none; transition: color .15s; }
.sitemap-col ul li a:hover { color: var(--color-primary); }

/* ─── 分页 ─── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px; font-size: 14px; text-decoration: none; transition: all .15s; }
.pagination a { background: #fff; color: var(--color-gray); border: 1px solid var(--color-border); }
.pagination a:hover { background: #f0edff; color: var(--color-primary); border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 600; }
.pagination .disabled { background: #f8fafc; color: #cbd5e1; border: 1px solid var(--color-border); cursor: not-allowed; opacity: 0.5; }
.pagination .info { min-width: auto; padding: 0 12px; color: #94a3b8; font-size: 13px; background: none; border: none; }
