/* ============================================
   来买8 产业互联网平台 - 全局样式体系
   深空蓝 | 科技银 | 渐变流光蓝 | 轻奢灰 | 金融金
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

:root {
  /* 核心配色 */
  --deep-space: #0a0e1a;
  --space-blue: #0d1526;
  --dark-blue: #111b33;
  --mid-blue: #162040;
  --tech-silver: #b8c4d8;
  --light-silver: #d4dce8;
  --flow-blue: #2563eb;
  --glow-blue: #3b82f6;
  --light-blue: #60a5fa;
  --accent-cyan: #06b6d4;
  --gold: #c9a84c;
  --gold-light: #e2c56e;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* 玻璃拟态 */
  --glass-bg: rgba(13, 21, 38, 0.6);
  --glass-border: rgba(184, 196, 216, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.03);

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e2c56e 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #111b33 50%, #0d1526 100%);
  --gradient-card: linear-gradient(145deg, rgba(22, 32, 64, 0.8) 0%, rgba(13, 21, 38, 0.9) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.2);
  --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.15);

  /* 过渡 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--deep-space);
  color: var(--tech-silver);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ============ Typography ============ */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glow-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 680px;
  line-height: 1.8;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-sm { padding: 4rem 0; }

/* ============ Glass Card ============ */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 196, 216, 0.12), transparent);
}

.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.glass-card-gold:hover {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: var(--shadow-gold);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--light-silver);
  border: 1px solid rgba(184, 196, 216, 0.2);
}

.btn-outline:hover {
  border-color: var(--glow-blue);
  color: #fff;
  background: rgba(37, 99, 235, 0.08);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--deep-space);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}

/* ============ Header / Navigation ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--gray-400);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-cta { margin-left: 1rem; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--light-silver);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.25rem;
  color: var(--light-silver);
  font-weight: 500;
}

.mobile-menu a:hover { color: #fff; }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
}

/* ============ Hero Section ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px; right: -100px;
  background: var(--flow-blue);
}

.hero-glow-2 {
  bottom: -200px; left: -100px;
  background: var(--accent-cyan);
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--light-blue);
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--glow-blue);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-400);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 650px;
  z-index: 1;
  opacity: 0.6;
}

/* ============ Particle Canvas ============ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============ Stats Row ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============ Grid Layouts ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

/* ============ Feature Card ============ */
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--glow-blue);
}

.feature-icon-gold {
  background: var(--gold-dim);
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

.feature-icon-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============ Divider / Separator ============ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0;
}

/* ============ Glow Line ============ */
.glow-line {
  width: 60px; height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.glow-line-gold {
  background: var(--gradient-gold);
}

/* ============ Flow / Timeline ============ */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 24px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--glow-blue), transparent);
}

.timeline-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--deep-space);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 0.3rem 0;
}

.footer-links a:hover { color: var(--light-blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ============ Page Hero (Sub Pages) ============ */
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.page-hero .hero-glow {
  width: 400px; height: 400px;
}

/* ============ Scroll Animations ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ============ Floating Animation ============ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-delay { animation: float 6s ease-in-out 2s infinite; }

/* ============ Glow Pulse ============ */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.3); }
}

.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ============ Grid Pattern BG ============ */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 196, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 196, 216, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============ Counter Animation ============ */
.counter { display: inline-block; }

/* ============ Tag / Badge ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--light-blue);
}

.tag-gold {
  background: var(--gold-dim);
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
}

/* ============ Horizontal Scroll Section ============ */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

/* ============ Icon Circle ============ */
.icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

/* ============ Number Badge ============ */
.number-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  color: #fff;
  margin-bottom: 1rem;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-space); }
::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ============ Selection ============ */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
}

/* ============ Flowing light border effect ============ */
.flow-border {
  position: relative;
}

.flow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
  0% { background: linear-gradient(0deg, rgba(37,99,235,0.4), transparent 40%, transparent 60%, rgba(6,182,212,0.4)); }
  25% { background: linear-gradient(90deg, rgba(37,99,235,0.4), transparent 40%, transparent 60%, rgba(6,182,212,0.4)); }
  50% { background: linear-gradient(180deg, rgba(37,99,235,0.4), transparent 40%, transparent 60%, rgba(6,182,212,0.4)); }
  75% { background: linear-gradient(270deg, rgba(37,99,235,0.4), transparent 40%, transparent 60%, rgba(6,182,212,0.4)); }
  100% { background: linear-gradient(360deg, rgba(37,99,235,0.4), transparent 40%, transparent 60%, rgba(6,182,212,0.4)); }
}

/* ============ Marquee ============ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
}

/* ============ Hexagon Grid ============ */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============ Orbit animation ============ */
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

.orbit-anim { animation: orbit 20s linear infinite; }
