/* ============================================================
   GrowthLab 增长实验室 — 主样式表
   活力多彩 · 增长黑客杂志风格 · 小程序运营/增长服务
   设计系统：白 + 多彩(紫/粉/蓝/橙) + 深灰
   ============================================================ */

/* Google Fonts — Inter (现代SaaS首选) + 中文字体 */


/* ===== CSS 变量 ===== */
:root {
  /* 主色调 — 多彩活力系统 */
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #6D28D9;
  --purple-bg: #F5F3FF;

  --pink: #EC4899;
  --pink-light: #F472B6;
  --pink-dark: #DB2777;
  --pink-bg: #FDF2F8;

  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --blue-dark: #2563EB;
  --blue-bg: #EFF6FF;

  --orange: #F97316;
  --orange-light: #FB923C;
  --orange-dark: #EA580C;
  --orange-bg: #FFF7ED;

  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --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;

  /* 语义色 */
  --text: var(--gray-800);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);
  --border-light: #E8ECF0;
  --bg: var(--white);
  --bg-secondary: var(--gray-50);

  /* 渐变色 */
  --gradient-purple-pink: linear-gradient(135deg, #7C3AED, #EC4899);
  --gradient-blue-purple: linear-gradient(135deg, #3B82F6, #7C3AED);
  --gradient-orange-pink: linear-gradient(135deg, #F97316, #EC4899);
  --gradient-cool: linear-gradient(135deg, #7C3AED, #3B82F6);
  --gradient-warm: linear-gradient(135deg, #EC4899, #F97316);
  --gradient-rainbow: linear-gradient(135deg, #7C3AED 0%, #EC4899 33%, #F97316 66%, #3B82F6 100%);
  --gradient-hero: linear-gradient(160deg, #0F172A 0%, #1E1B4B 40%, #4C1D95 100%);

  /* 排版 — Inter (现代SaaS首选) + 系统中文回退 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* 圆角 — 大圆角年轻感 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-color: 0 10px 25px -5px rgba(124, 58, 237, 0.15);

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* 布局 */
  --container-max: 1200px;
  --header-height: 72px;

  /* z-index 层级 (13.3) */
  --z-dropdown: 60;
  --z-sticky: 40;
  --z-header: 50;
  --z-overlay: 70;
  --z-modal: 100;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section ===== */
.section {
  padding: var(--space-4xl) 0;
}
.section--gray {
  background: var(--gray-50);
}
.section--purple {
  background: var(--purple-bg);
}
.section--dark {
  background: var(--gray-900);
  color: var(--white);
}
.section--tight {
  padding: var(--space-3xl) 0;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient-purple-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}
.section-tag--light {
  background: rgba(255,255,255,0.25);
  -webkit-text-fill-color: var(--white);
  -webkit-background-clip: unset;
  background-clip: unset;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}
.section-subtitle--light { color: rgba(255,255,255,0.65); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--gradient-purple-pink);
  color: var(--white);
}
.btn--primary:hover {
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.btn--white {
  background: var(--white);
  color: var(--purple-dark);
}
.btn--white:hover {
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-bg);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 8px 20px;
}
.btn--ghost:hover {
  color: var(--purple);
  background: var(--purple-bg);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

/* 脉冲动画 CTA 按钮 */
.pulse {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* ===== HEADER (13.3 + 13.4 + 13.11) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
  height: var(--header-height);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.header__logo:hover { transform: scale(1.03); }
.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-purple-pink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.header__logo-text {
  display: flex;
  flex-direction: column;
}
.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.header__logo-sub {
  font-size: 0.65rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link.active {
  color: var(--purple);
  background: var(--purple-bg);
}

/* 下拉菜单 (13.3: z-index) */
.header__nav-item {
  position: relative;
}
.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: var(--z-dropdown);
}
.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.header__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.header__dropdown a:hover {
  background: var(--purple-bg);
  color: var(--purple);
}

/* CTA Button in Header */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--gradient-purple-pink);
  color: #fff;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* Hamburger — header 直接子元素, 绝对定位在右侧 (13.4) */
.hamburger {
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: calc(var(--z-header) + 5);
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: var(--z-overlay);
  padding: 24px;
  transition: right var(--transition-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-nav.active { right: 0; }
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-nav__overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.mobile-nav__link:hover { background: var(--purple-bg); color: var(--purple); }
.mobile-nav__sub {
  padding-left: 16px;
  margin-bottom: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: var(--text-sm);
  color: var(--gray-500);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.mobile-nav__sub a:hover { color: var(--purple); }

/* ===== HERO BANNER (模块1) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 24px 80px;
}

/* 装饰图形 */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(60px);
}
.hero__shape--1 { width: 600px; height: 600px; background: var(--purple); top: -200px; right: -100px; animation: float-slow 20s ease-in-out infinite; }
.hero__shape--2 { width: 400px; height: 400px; background: var(--pink); bottom: -100px; left: -100px; animation: float-slow 15s ease-in-out infinite reverse; }
.hero__shape--3 { width: 300px; height: 300px; background: var(--blue); top: 50%; left: 30%; animation: float-slow 18s ease-in-out infinite; }
.hero__shape--4 { width: 200px; height: 200px; background: var(--orange); bottom: 20%; right: 20%; animation: float-slow 12s ease-in-out infinite reverse; }

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero__title span {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align: center;
  flex-wrap: wrap;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  z-index: 2;
  animation: scroll-fade 2s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS SECTION (模块2) ===== */
.stats-section {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

.stat-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.stat-card:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
}
.stat-card__icon--purple { background: var(--purple-bg); color: var(--purple); }
.stat-card__icon--pink { background: var(--pink-bg); color: var(--pink); }
.stat-card__icon--blue { background: var(--blue-bg); color: var(--blue); }
.stat-card__icon--orange { background: var(--orange-bg); color: var(--orange); }

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-card__suffix {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--purple);
}
.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

/* 数字滚动动画 */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ===== SERVICES GRID (模块3) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rainbow);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--purple-bg);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: all var(--transition);
}
.service-card:nth-child(2) .service-card__icon { background: var(--pink-bg); color: var(--pink); }
.service-card:nth-child(3) .service-card__icon { background: var(--blue-bg); color: var(--blue); }
.service-card:nth-child(4) .service-card__icon { background: var(--orange-bg); color: var(--orange); }
.service-card:nth-child(5) .service-card__icon { background: var(--purple-bg); color: var(--purple-dark); }

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CASES GRID (模块4) ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.case-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}
.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.case-card:hover .case-card__image img {
  transform: scale(1.08);
}
.case-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient-purple-pink);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}
.case-card__body {
  padding: 24px;
}
.case-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-card__result {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.case-card__metric-value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--purple);
}
.case-card__metric:nth-child(2) .case-card__metric-value { color: var(--pink); }
.case-card__metric:nth-child(3) .case-card__metric-value { color: var(--blue); }
.case-card__metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== DASHBOARD CARDS (模块5) ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashboard-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition);
  cursor: default;
}
.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.dashboard-card__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.dashboard-card__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.dashboard-card__value--purple { color: var(--purple); }
.dashboard-card__value--pink { color: var(--pink); }
.dashboard-card__value--blue { color: var(--blue); }
.dashboard-card__value--orange { color: var(--orange); }
.dashboard-card__change {
  font-size: var(--text-sm);
  font-weight: 600;
}
.dashboard-card__change--up { color: #10B981; }
.dashboard-card__change--down { color: #EF4444; }

/* Dashboard Chart */
.dashboard-chart {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
}

/* ===== GROWTH FLYWHEEL (模块6) ===== */
.flywheel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.flywheel::before {
  content: '';
  position: absolute;
  top: 64px;
  left: calc(12.5% + 32px);
  right: calc(12.5% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--pink-light), var(--blue-light), var(--orange-light));
  border-radius: 1px;
  z-index: 0;
  opacity: 0.3;
}
.flywheel__step {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.flywheel__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.flywheel__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
  color: #fff;
}
.flywheel__step:nth-child(1) .flywheel__icon { background: var(--gradient-blue-purple); }
.flywheel__step:nth-child(2) .flywheel__icon { background: var(--gradient-purple-pink); }
.flywheel__step:nth-child(3) .flywheel__icon { background: var(--gradient-orange-pink); }
.flywheel__step:nth-child(4) .flywheel__icon { background: var(--gradient-cool); }

.flywheel__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.flywheel__step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== TESTIMONIALS (模块7) ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lg);
}
.testimonial-card__text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}
.testimonial-card__text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 2.5rem;
  font-family: Georgia, serif;
  color: var(--purple-light);
  line-height: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--text-sm);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== KNOWLEDGE LIST (模块8) ===== */
.knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.knowledge-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
}
.knowledge-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-light);
}
.knowledge-item__image {
  width: 180px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.knowledge-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.knowledge-item:hover .knowledge-item__image img { transform: scale(1.08); }
.knowledge-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.knowledge-item__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 8px;
}
.knowledge-item__tag--purple { background: var(--purple-bg); color: var(--purple); }
.knowledge-item__tag--pink { background: var(--pink-bg); color: var(--pink); }
.knowledge-item__tag--blue { background: var(--blue-bg); color: var(--blue); }
.knowledge-item__tag--orange { background: var(--orange-bg); color: var(--orange); }

.knowledge-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
}
.knowledge-item__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.knowledge-item__meta {
  display: flex;
  gap: 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 12px;
}
.knowledge-item__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== CTA SECTION (模块9) ===== */
.cta-section {
  padding: var(--space-4xl) 24px;
  text-align: center;
  background: var(--gradient-purple-pink);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-section__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.cta-section__tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cta-section__tag {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ===== GENERIC LIST GRID ===== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.list-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__image img { transform: scale(1.06); }
.card__body { padding: 20px; }
.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.45;
}
.card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.card__meta {
  display: flex;
  gap: 14px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== INNER BANNER ===== */
.inner-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}
.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-900);
}
.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(76,29,149,0.7));
}
.inner-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.inner-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.inner-banner__subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb i { font-size: 0.55rem; color: var(--gray-300); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-bar a {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.filter-bar a:hover,
.filter-bar a.active {
  color: var(--purple);
  background: var(--purple-bg);
  border-color: var(--purple-light);
}

/* ===== DETAIL PAGE ===== */
.detail { max-width: 860px; margin: 0 auto; }
.detail__header { margin-bottom: 32px; }
.detail__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 12px;
}
.detail__meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.detail__meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.detail__param {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.detail__param-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.detail__param-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.detail__body {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.85;
}
.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--gray-900);
}
.detail__body h2 { font-size: var(--text-2xl); }
.detail__body h3 { font-size: var(--text-xl); }
.detail__body p { margin-bottom: 14px; }
.detail__body ul, .detail__body ol { padding-left: 24px; margin-bottom: 14px; }
.detail__body li { margin-bottom: 6px; }
.detail__body img {
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.detail__pager span { flex: 1; min-width: 120px; }
.detail__pager a {
  color: var(--purple);
  font-weight: 600;
  white-space: nowrap;
}

/* Related */
.related-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 48px 0 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--gray-50);
  padding: 5px;
  border-radius: var(--radius-full);
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn.active {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) {
  color: var(--gray-600);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.3s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--purple-bg);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-info__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
}

/* ===== CONSULT PAGE ===== */
.consult-hero {
  padding: calc(var(--header-height) + 80px) 24px 80px;
  background: var(--gradient-purple-pink);
  position: relative;
  overflow: hidden;
}
.consult-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 48px 48px;
}

.consult-form-card {
  max-width: 660px;
  margin: -50px auto 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-light);
}

/* ===== SEARCH PAGE ===== */
.search-hero {
  padding: calc(var(--header-height) + 60px) 24px 60px;
  background: var(--gray-50);
  text-align: center;
}
.search-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}
.search-input-wrap input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  font-size: var(--text-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: all var(--transition-fast);
  background: var(--white);
}
.search-input-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.search-result-item:hover {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.search-result-item__thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-item__title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.search-result-item__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.search-result-item__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.pagination a:hover,
.pagination a.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--gray-300);
}
.empty-state p {
  font-size: var(--text-base);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.55);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.footer__top-line {
  height: 4px;
  background: var(--gradient-rainbow);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 24px 40px;
  position: relative;
  z-index: 1;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.4);
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.footer__social a:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  transition: all var(--transition-fast);
}
.footer__links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.footer__contact-item i {
  color: var(--purple-light);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  position: relative;
  z-index: 1;
}
.footer__bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer__bottom-inner a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}
.footer__bottom-inner a:hover { color: rgba(255,255,255,0.7); }

/* 友情链接 */
.friend-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--container-max);
  margin: 0 auto;
}
.friend-links__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.friend-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-fast);
}
.friend-links a:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

/* ===== ONLINE SERVICE ===== */
.online-service {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-purple-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  z-index: 45;
  transition: all var(--transition);
  animation: float-bob 3s ease-in-out infinite;
}
.online-service:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.required { color: var(--pink); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--text);
}
.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== AOS Animation Overrides ===== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reduced Motion (Accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .online-service { animation: none; }
}

/* ===== RESPONSIVE (768px断点) ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --space-4xl: 56px;
    --space-3xl: 44px;
    --space-2xl: 32px;
    --space-xl: 24px;
  }

  .container { padding: 0 18px; }

  /* Header */
  .header__inner { padding: 0 18px; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
  .header__logo-sub { display: none; }

  /* Hero */
  .hero { min-height: 80vh; padding: calc(var(--header-height) + 22px) 18px 32px; }
  .hero__badge { margin-bottom: 14px; }
  .hero__title { font-size: 1.8rem; margin-bottom: 14px; }
  .hero__desc { margin-bottom: 20px; }
  .hero__actions { margin-bottom: 26px; }
  .hero__stats { gap: 20px; }
  .hero__stat-value { font-size: var(--text-2xl); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
  .stat-card { padding: 10px 6px; }
  .stat-card__icon { width: 34px; height: 34px; margin: 0 auto 6px; font-size: 0.95rem; }
  .stat-card__number { font-size: var(--text-xl); }
  .stat-card__suffix { font-size: var(--text-base); }
  .stat-card__label { font-size: 0.72rem; margin-top: 2px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .service-card { padding: 12px 6px 10px; border-radius: var(--radius-lg); }
  .service-card__icon { width: 36px; height: 36px; border-radius: var(--radius-md); font-size: 0.95rem; margin-bottom: 6px; }
  .service-card__title { font-size: 0.8rem; margin-bottom: 4px; }
  .service-card__desc { font-size: 0.66rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; gap: 10px; }
  .case-card__image { aspect-ratio: auto; height: 160px; }
  .case-card__body { padding: 14px; }
  .case-card__title { font-size: 1rem; margin-bottom: 6px; }
  .case-card__desc { font-size: var(--text-sm); margin-bottom: 10px; }
  .case-card__result { gap: 14px; padding-top: 10px; }
  .case-card__metric-value { font-size: var(--text-base); }
  .case-card__metric-label { font-size: 0.68rem; }
  .case-card__tag { top: 10px; left: 10px; font-size: 0.68rem; padding: 4px 10px; }

  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-card { padding: 12px 16px; }
  .dashboard-card__label { font-size: var(--text-xs); margin-bottom: 4px; }
  .dashboard-card__value { font-size: var(--text-2xl); margin-bottom: 2px; }
  .dashboard-card__change { font-size: var(--text-xs); }

  /* Flywheel */
  .flywheel { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .flywheel::before { display: none; }
  .flywheel__step { padding: 10px 2px 8px; }
  .flywheel__icon { width: 34px; height: 34px; font-size: 0.9rem; margin: 0 auto 6px; }
  .flywheel__step-title { font-size: 0.7rem; margin-bottom: 4px; }
  .flywheel__step-desc { font-size: 0.56rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 10px; }
  .testimonial-card { padding: 14px 16px; }
  .testimonial-card__text { font-size: var(--text-sm); line-height: 1.65; margin-bottom: 12px; padding-left: 16px; }
  .testimonial-card__text::before { font-size: 2rem; top: -4px; }
  .testimonial-card__author { gap: 10px; }
  .testimonial-card__avatar { width: 34px; height: 34px; font-size: var(--text-base); }

  /* Knowledge */
  .knowledge-item { flex-direction: column; gap: 10px; padding: 12px 14px; }
  .knowledge-item__image { width: 100%; height: 120px; }
  .knowledge-item__tag { margin-bottom: 6px; }
  .knowledge-item__title { margin-bottom: 4px; }
  .knowledge-item__desc { font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .knowledge-item__meta { margin-top: 8px; }

  /* List grids */
  .list-grid, .list-grid--4 { grid-template-columns: 1fr; gap: 16px; }
  .related-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 18px 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* 快速链接：手机端排成一行（6 项均分，不换行、不撑破容器） */
  .footer__col-title { margin-bottom: 14px; }
  .footer__links {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    max-width: 460px; /* 平板竖屏下不至于把 6 个短链拉得过散 */
  }
  .footer__links a {
    flex: 0 1 auto;
    white-space: nowrap;
    /* 随屏宽收缩，320px 窄屏也能容下单行 6 项 */
    font-size: clamp(0.65rem, 3.1vw, 0.78rem);
  }
  .footer__links a:hover { transform: none; }

  /* Tabs */
  .tabs { padding: 4px; }
  .tab-btn { padding: 10px 16px; font-size: var(--text-xs); }

  /* Detail */
  .detail__params { grid-template-columns: repeat(2, 1fr); }

  /* Inner Banner */
  .inner-banner { height: 220px; }

  /* Consult */
  .consult-form-card { padding: 24px; margin: -30px 12px 0; }

  /* Search */
  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 140px; }

  /* Pagination */
  .pagination { flex-wrap: wrap; }
  .pagination a { min-width: 36px; height: 36px; font-size: var(--text-xs); }

  /* CTA */
  .cta-section { padding: 48px 18px; }

  /* Online service */
  .online-service { bottom: 20px; right: 16px; width: 48px; height: 48px; font-size: 1.2rem; }
  .back-top { bottom: 80px; right: 16px; }
}
