/* ═══════════════════════════════════════════════════════
   智联未来科技 · 官网样式
   Premium Design System
═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Light Theme */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --nav-bg: rgba(255,255,255,0.85);
  --nav-border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.12);
  --input-bg: #f8fafc;
  --input-border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
}

[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #111116;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #475569;
  --nav-bg: rgba(9,9,11,0.85);
  --nav-border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.6);
  --input-bg: #27272a;
  --input-border: rgba(255,255,255,0.1);
  --footer-bg: #000000;
  --footer-text: #52525b;
}

/* Brand Colors */
:root {
  --purple: #6366f1;
  --purple-light: #818cf8;
  --purple-dark: #4f46e5;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --green: #10b981;
  --green-light: #34d399;
  --amber: #f59e0b;
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #6366f1 20%, #06b6d4 80%);
  --grad-purple: linear-gradient(135deg, #6366f1, #8b5cf6);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #0ea5e9);
  --grad-green: linear-gradient(135deg, #10b981, #059669);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.bg-subtle { background: var(--bg-subtle); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* Magnetic effect */
.magnetic {
  position: relative;
  overflow: hidden;
}
.magnetic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.magnetic:hover::after { transform: translateX(200%) skewX(-15deg); }

/* ─── Nav ─── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}
.nav-links a.active {
  color: var(--purple);
  font-weight: 600;
}

/* ─── Nav Dropdown ─── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.nav-dropdown-trigger svg {
  transition: transform 0.25s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}
.nav-dropdown-menu a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--purple);
  opacity: 0.5;
  transition: opacity 0.15s;
}
.nav-dropdown-menu a:hover::before {
  opacity: 1;
}

/* ─── Mobile Dropdown ─── */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-2);
  cursor: pointer;
}
.mobile-dropdown-trigger svg {
  transition: transform 0.25s;
}
.mobile-dropdown.open .mobile-dropdown-trigger svg {
  transform: rotate(180deg);
  color: var(--purple);
}
.mobile-dropdown.open .mobile-dropdown-trigger {
  color: var(--purple);
  font-weight: 600;
}
.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 16px;
}
.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 200px;
}
.mobile-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-3);
  border-radius: 6px;
}
.mobile-dropdown-menu a:hover {
  color: var(--purple);
  background: rgba(99,102,241,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1.5px solid var(--border);
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.mobile-menu a:hover { color: var(--text); background: var(--bg-card); }
.mobile-menu .btn { margin-top: 8px; text-align: center; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: glowFloat 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  bottom: -50px; right: 0;
  animation: glowFloat 10s ease-in-out infinite reverse;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation: glowFloat 7s ease-in-out infinite 2s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50% { box-shadow: 0 0 12px var(--green); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 40px;
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0 40px;
}
.stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
}
.stat-item p {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--text-3);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(99,102,241,0.1);
  color: var(--purple);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-purple { background: rgba(99,102,241,0.1); color: var(--purple); }
.tag-cyan { background: rgba(6,182,212,0.1); color: var(--cyan); }
.tag-green { background: rgba(16,185,129,0.1); color: var(--green); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Services Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}
.service-card--featured {
  border-color: rgba(6,182,212,0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(6,182,212,0.04) 100%);
}

.card-accent {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 60%;
  border-radius: 0 0 4px 0;
}
.accent-purple { background: var(--grad-purple); }
.accent-cyan { background: var(--grad-cyan); }
.accent-green { background: var(--grad-green); }

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 3px 10px;
  background: var(--grad-cyan);
  color: #fff;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-purple { background: rgba(99,102,241,0.12); color: var(--purple); }
.icon-cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }
.icon-green { background: rgba(16,185,129,0.12); color: var(--green); }

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list { margin-bottom: 24px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 4px 0;
}
.check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }
.card-link span { transition: transform 0.2s; }
.card-link:hover span { transform: translateX(4px); }

/* ─── Detail Section ─── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail-layout--reverse { direction: rtl; }
.detail-layout--reverse > * { direction: ltr; }

.detail-text .section-title { text-align: left; }
.detail-text .section-desc { text-align: left; margin: 0 0 40px; }

.detail-steps { display: flex; flex-direction: column; gap: 24px; }
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-purple);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.step-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* GEO Demo */
.geo-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.demo-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }
.demo-title { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }
.demo-body { padding: 24px; }
.demo-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.q-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.q-text {
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text);
}
.demo-answer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.a-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.a-text {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.highlight-brand {
  color: var(--purple);
  font-weight: 600;
}
.typing-cursor {
  display: inline;
  color: var(--purple);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-tags { display: flex; gap: 8px; }
.demo-tags .tag {
  padding: 4px 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  color: var(--purple);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Training Cards */
.training-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.t-card-1 { border-top: 2px solid var(--purple); }
.t-card-2 { border-top: 2px solid var(--cyan); }
.t-card-3 { border-top: 2px solid var(--green); }
.t-card-4 { border-top: 2px solid var(--amber); }
.t-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.t-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.t-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.t-card-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 2px 8px;
  background: var(--grad-purple);
  color: #fff;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
}
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px 0 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-cyan);
  border-radius: 2px;
  transition: width 1.5s ease;
}
.progress-label { font-size: 0.72rem; color: var(--text-3); }

.training-highlights { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s;
}
.highlight-item:hover { border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.04); }
.h-icon { font-size: 1.3rem; flex-shrink: 0; }
.h-body { display: flex; flex-direction: column; gap: 2px; }
.h-body strong { font-size: 0.9rem; }
.h-body span { font-size: 0.8rem; color: var(--text-2); }

/* IoT Diagram */
.iot-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.iot-diagram > .iot-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* IoT Tech Stack */
.iot-tech-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.tech-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tech-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  width: 50px;
  flex-shrink: 0;
  padding-top: 4px;
  text-align: right;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all 0.2s;
}
.tech-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(16,185,129,0.06);
}

/* IoT Arch Diagram */
.iot-arch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.iot-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.node-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iot-device .node-icon { background: rgba(99,102,241,0.12); color: var(--purple); }
.iot-cloud .node-icon { background: rgba(6,182,212,0.12); color: var(--cyan); }
.iot-app .node-icon { background: rgba(16,185,129,0.12); color: var(--green); }
.iot-node span { font-size: 0.78rem; color: var(--text-2); font-weight: 500; }

.iot-arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}
.arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 1px;
  position: relative;
}
.arrow-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0; height: 0;
  border-left: 8px solid var(--cyan);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.arrow-label { font-size: 0.68rem; color: var(--text-3); }

.iot-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin: 20px auto;
  position: relative;
}
.ai-pulse {
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
.iot-case-list { display: flex; flex-direction: column; gap: 10px; }
.case-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.case-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.case-purple { background: var(--purple); }
.case-cyan { background: var(--cyan); }
.case-green { background: var(--green); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-story h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.about-story p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
}
.value-icon { font-size: 1rem; }

.about-team { display: flex; flex-direction: column; gap: 20px; }
.team-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.team-card:hover { border-color: var(--border-strong); transform: translateX(4px); }
.team-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.avatar-1 { background: var(--grad-purple); }
.avatar-2 { background: var(--grad-cyan); }
.avatar-3 { background: var(--grad-green); }
.team-info h4 { font-size: 1rem; margin-bottom: 2px; }
.team-role { font-size: 0.78rem; color: var(--cyan); font-weight: 600; margin-bottom: 6px; }
.team-desc { font-size: 0.825rem; color: var(--text-2); line-height: 1.5; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.quote-icon {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.3;
  font-family: serif;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.76rem; color: var(--text-3); }

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-desc { text-align: left; margin: 0 0 40px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.contact-item span { font-size: 0.875rem; color: var(--text-2); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-group textarea { min-height: 100px; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.checkbox-item:hover { border-color: var(--purple); }
.checkbox-item input { display: none; }
.checkbox-item input:checked + span {
  color: var(--purple);
  font-weight: 600;
}
.checkbox-item:has(input:checked) {
  background: rgba(99,102,241,0.08);
  border-color: var(--purple);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 12px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: #fff;
  padding-top: 72px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--footer-text);
  line-height: 1.7;
  margin: 16px 0 24px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: all 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.14); color: #fff; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--footer-text);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--footer-text); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--footer-text); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(99,102,241,0.5); }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .detail-layout, .detail-layout--reverse { grid-template-columns: 1fr; direction: ltr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-stats { padding: 20px 16px; gap: 0; }
  .stat-item { padding: 0 20px; }
  .stat-item .stat-num { font-size: 1.8rem; }
  .hero-title { font-size: 2.2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .training-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .iot-arch { justify-content: center; }
  .arrow-right { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-nav .footer-col:last-child { grid-column: span 2; }
}

/* ─── Utility ─── */
.d-none-sm { display: initial; }
@media (max-width: 640px) { .d-none-sm { display: none; } }

/* ═══════════════════════════════════════════════════════
   Resource Pages (二级页面通用样式)
   ═══════════════════════════════════════════════════════ */

/* ─── Resource Page Hero ─── */
.resource-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.resource-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.resource-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.resource-hero .container {
  position: relative;
  z-index: 1;
}
.resource-hero .section-tag {
  margin-bottom: 16px;
}
.resource-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.resource-hero h1 .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.resource-hero p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}
.resource-hero .hero-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 20px;
}
.resource-hero .hero-breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.resource-hero .hero-breadcrumb a:hover {
  color: var(--purple);
}
.resource-hero .hero-breadcrumb .sep {
  margin: 0 8px;
}

/* ─── Resource List Grid ─── */
.resource-section {
  padding: 60px 0 80px;
  background: var(--bg);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.resource-card-cover {
  height: 180px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.resource-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card-cover .cover-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cover-icon.icon-purple { background: rgba(99,102,241,0.12); color: var(--purple); }
.cover-icon.icon-cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }
.cover-icon.icon-green { background: rgba(16,185,129,0.12); color: var(--green); }
.resource-card-body {
  padding: 20px;
}
.resource-card-body .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.card-tag.tag-purple { background: rgba(99,102,241,0.1); color: var(--purple); }
.card-tag.tag-cyan { background: rgba(6,182,212,0.1); color: var(--cyan); }
.card-tag.tag-green { background: rgba(16,185,129,0.1); color: var(--green); }
.resource-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.resource-card-body p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-3);
}
.resource-card-footer a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.resource-card-footer a:hover {
  color: var(--purple-light, #818cf8);
}

/* ─── Resource Empty State ─── */
.resource-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.resource-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.resource-empty h3 {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.resource-empty p {
  font-size: 0.88rem;
}

/* ─── Tool Card (免费工具特殊样式) ─── */
.tool-card {
  text-align: center;
  padding: 32px 24px;
}
.tool-card .tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s;
}
.tool-card:hover .tool-icon {
  transform: scale(1.1);
}
.tool-card h3 {
  text-align: center;
}
.tool-card p {
  text-align: center;
}
.tool-card .btn {
  margin-top: 16px;
}

/* ─── Resource Detail ─── */
.resource-detail {
  padding: 60px 0 80px;
}
.resource-detail .container {
  max-width: 800px;
}
.resource-detail .detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.resource-detail .detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
}
.resource-detail .detail-content h2 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 32px 0 16px;
  font-weight: 700;
}
.resource-detail .detail-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 24px 0 12px;
  font-weight: 600;
}
.resource-detail .detail-content p {
  margin-bottom: 16px;
}
.resource-detail .detail-content ul, .resource-detail .detail-content ol {
  margin: 0 0 16px 20px;
}
.resource-detail .detail-content li {
  margin-bottom: 6px;
}
.resource-detail .detail-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}
.resource-detail .detail-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(99,102,241,0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* ─── Resource Page Responsive ─── */
@media (max-width: 768px) {
  .resource-hero { padding: 120px 0 40px; }
  .resource-hero h1 { font-size: 1.8rem; }
  .resource-grid { grid-template-columns: 1fr; }
}
