/* ===== 基础重置 + CSS变量 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --accent-soft: #fbbf24;
  --gradient-main: linear-gradient(135deg, #2563eb, #7c3aed);
  --gradient-warm: linear-gradient(135deg, #7c3aed, #f59e0b);
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 40%, #fffbeb 100%);
  --dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 (毛玻璃+底部光晕) ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  z-index: 100;
}
.navbar::after {
  content: '';
  position: absolute; bottom: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  opacity: 0.3;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.logo span {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all 0.2s; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gradient-main);
  transform: scaleX(0); transition: transform 0.2s; border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: -20%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; right: -15%; width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
  color: var(--primary);
  font-size: 13px; font-weight: 600;
  padding: 6px 18px 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(37,99,235,0.12);
}
h1 {
  font-size: 42px; font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-outline {
  display: inline-block; padding: 14px 32px;
  border-radius: 50px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer; border: none; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #2563eb, #7c3aed);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  animation: gradient-shift 3s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}
.btn-primary:active {
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, #6366f1, #7c3aed, #f59e0b) border-box;
  color: var(--primary);
  transition: all 0.3s;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transform: translateY(-3px);
}
.btn-full { width: 100%; text-align: center; }

/* ===== 数据指标（彩色图标背景） ===== */
.stats {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 8px; }
.stat-num {
  font-size: 34px; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-num span { font-size: 16px; -webkit-text-fill-color: var(--secondary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; letter-spacing: 0.5px; }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  border: 1px solid rgba(37,99,235,0.12);
}
.section-header h2 {
  font-size: 30px; font-weight: 800;
  color: var(--dark); margin-bottom: 10px;
}
.section-header h2::after {
  content: '';
  display: block; width: 48px; height: 3px;
  background: var(--gradient-main);
  margin: 12px auto 0;
  border-radius: 3px;
}
.section-header p {
  font-size: 15px; color: var(--text-muted);
  max-width: 500px; margin: 10px auto 0;
}

/* ===== 服务卡片 (渐变色卡+图标背景) ===== */
.services-section {
  background: var(--bg-alt);
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  opacity: 0.15;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
/* 每张卡片不同的顶部颜色 */
.service-card:nth-child(1)::before { background: var(--gradient-main); }
.service-card:nth-child(2)::before { background: linear-gradient(135deg, #059669, #10b981); }
.service-card:nth-child(3)::before { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.service-card:nth-child(4)::before { background: linear-gradient(135deg, #be185d, #ec4899); }
.service-card:nth-child(5)::before { background: linear-gradient(135deg, #ea580c, #f97316); }
.service-card:nth-child(6)::before { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.service-icon {
  font-size: 32px; margin-bottom: 14px;
  display: inline-block;
  background: var(--bg-alt);
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--gradient-main);
  transform: scale(1.05);
}
.service-card:nth-child(2):hover .service-icon { background: linear-gradient(135deg, #059669, #10b981); }
.service-card:nth-child(3):hover .service-icon { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.service-card:nth-child(4):hover .service-icon { background: linear-gradient(135deg, #be185d, #ec4899); }
.service-card:nth-child(5):hover .service-icon { background: linear-gradient(135deg, #ea580c, #f97316); }
.service-card:nth-child(6):hover .service-icon { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== 平台覆盖 (彩色标签 + LOGO) ===== */
.platforms-section { background: var(--bg); }
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.platform-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.platform-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(124,58,237,0.04));
  pointer-events: none;
}
.platform-logo {
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.3s;
}
.platform-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.platform-item:hover .platform-logo {
  transform: scale(1.15);
}
/* 每个平台不同色 - hover背景 */
.platform-item:nth-child(1):hover { background: #eef2ff; border-color: #c7d2fe; }
.platform-item:nth-child(2):hover { background: #fef2f2; border-color: #fecaca; }
.platform-item:nth-child(3):hover { background: #fffbeb; border-color: #fde68a; }
.platform-item:nth-child(4):hover { background: #dbeafe; border-color: #93c5fd; }
.platform-item:nth-child(5):hover { background: #e0f2fe; border-color: #7dd3fc; }
.platform-item:nth-child(6):hover { background: #ecfdf5; border-color: #a7f3d0; }
.platform-item:nth-child(7):hover { background: #fff1f2; border-color: #fecdd3; }
.platform-item:nth-child(8):hover { background: #f5f3ff; border-color: #c4b5fd; }

/* ===== 关于 ===== */
.about-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
}
.about-content {
  max-width: 700px; margin: 0 auto;
  position: relative;
}
.about-content::before {
  content: '"';
  position: absolute; top: -30px; left: -20px;
  font-size: 80px; line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  font-family: Georgia, serif;
}
.about-text p {
  font-size: 15px; color: var(--text);
  margin-bottom: 16px; line-height: 1.9;
  padding-left: 20px;
  border-left: 3px solid;
  border-image: var(--gradient-main) 1;
}

/* ===== 联系区 ===== */
.contact-section {
  background: var(--bg-alt);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.contact-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.contact-emoji { font-size: 28px; line-height: 1; }
.contact-label { font-size: 12px; color: var(--text-light); font-weight: 600; margin-bottom: 2px; letter-spacing: 1px; }
.contact-value { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; }
.contact-value:hover { color: var(--primary); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.contact-form h3::before { content: '✉ '; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: all 0.2s;
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}
.contact-form .btn-full {
  margin-top: 4px;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
  border-radius: 50px;
}
.contact-form .btn-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  opacity: 0.3;
}
.footer p { opacity: 0.8; }

/* ===== Toast 通知 ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #065f46; color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
}
.toast.show { opacity: 1; visibility: visible; }
.toast.error { background: #991b1b; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 24px; }
}
