/* ========================================
   四川炽松科技有限公司官网 - 样式表
   主题：纯白极简 + 马尔斯绿
   特性：深色模式、粒子背景、视差滚动、3D卡片
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主题色 - 马尔斯绿色阶 */
  --mars-50: #e6f5f2;
  --mars-100: #b3e0d6;
  --mars-200: #80cbb9;
  --mars-300: #4db69d;
  --mars-400: #289f87;
  --mars-500: #008c72;
  --mars-600: #007a63;
  --mars-700: #006854;
  --mars-800: #005646;
  --mars-900: #004437;

  /* 强调色 */
  --accent-dark: #006854;
  --accent-darker: #005646;

  /* 动画 */
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* 布局 */
  --max-width: 1200px;
  --header-height: 72px;

  /* 新增布局变量 */
  --section-padding-desktop: 96px;
  --section-padding-tablet: 72px;
  --section-padding-mobile: 48px;
  --grid-gap: 24px;
  --card-radius: 16px;
  --card-padding: 32px;
  --card-padding-mobile: 24px;
}

/* 浅色模式（默认） */
[data-theme="light"] {
  --bg-deep: #ffffff;
  --bg-primary: #f5f5f7;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-muted: #a1a1a6;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 140, 114, 0.4);
  --shadow-mars: 0 4px 24px rgba(0, 140, 114, 0.12);
  --shadow-mars-lg: 0 8px 40px rgba(0, 140, 114, 0.18);
  --shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(255, 255, 255, 0.92);
}

/* 深色模式 */
[data-theme="dark"] {
  --bg-deep: #0a0a0a;
  --bg-primary: #141414;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(0, 140, 114, 0.6);
  --shadow-mars: 0 4px 24px rgba(0, 140, 114, 0.25);
  --shadow-mars-lg: 0 8px 40px rgba(0, 140, 114, 0.35);
  --shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.3);
  --overlay-bg: rgba(10, 10, 10, 0.92);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration-normal) var(--ease-hover),
              color var(--duration-normal) var(--ease-hover);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mars-400), var(--mars-600));
  transition: width 0.1s linear;
}

/* ---------- 鼠标跟随光效 ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 114, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--duration-normal) ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ---------- 滚动触发动画 ---------- */
.fade-in {
  opacity: 1;
  transform: translateY(20px) scale(0.98);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- 导航栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 48px;
  background: transparent;
  backdrop-filter: none;
  transition: background var(--duration-normal) var(--ease-hover),
              backdrop-filter var(--duration-normal) var(--ease-hover),
              box-shadow var(--duration-normal) var(--ease-hover);
}

.site-header.scrolled {
  background: var(--overlay-bg);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mars-500);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mars-500);
  transition: width var(--duration-normal) var(--ease-hover);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-hover);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--mars-500);
  color: var(--mars-500);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--duration-fast) var(--ease-hover),
              transform var(--duration-fast) var(--ease-hover),
              box-shadow var(--duration-fast) var(--ease-hover);
}

.header-cta:hover {
  background: var(--accent-darker);
  transform: translateY(-1px);
  box-shadow: var(--shadow-dark);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) ease,
              opacity var(--duration-normal) ease;
}

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  border: none;
}

.button.primary {
  background: var(--mars-700);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--mars-500);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-mars);
}

.button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  border-color: var(--mars-500);
  color: var(--mars-500);
  transform: translateY(-2px);
}

.button.cta {
  background: var(--mars-600);
  color: #ffffff;
  width: 100%;
}

.button.cta:hover {
  background: var(--mars-700);
  box-shadow: var(--shadow-mars);
}

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: auto;
  padding: calc(var(--header-height) + 48px) 48px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 140, 114, 0.1) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--mars-50);
  color: var(--mars-500);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--mars-800) 0%, var(--mars-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-reveal 0.6s var(--ease-out) forwards;
  background: linear-gradient(135deg, var(--mars-800) 0%, var(--mars-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes char-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-summary {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-out) 0.6s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-out) 0.9s forwards;
}

/* Hero 统计数字 */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-out) 1.2s forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--mars-500);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero 视觉区 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  z-index: 1;
}

.glow-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mars-400), var(--mars-600));
  box-shadow: 0 0 40px rgba(0, 140, 114, 0.25),
              0 0 80px rgba(0, 140, 114, 0.12),
              inset 0 0 40px rgba(255, 255, 255, 0.15);
  animation: lamp-glow 6s ease-in-out infinite;
}

.glow-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid var(--mars-200);
  animation: pulse-ring 4s ease-in-out infinite;
}

.glow-ring.delay {
  width: 360px;
  height: 360px;
  animation-delay: 1s;
  opacity: 0.5;
}

/* 向下滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--mars-500);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

/* ---------- 统一卡片系统 ---------- */
.card {
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-hover);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-mars);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--mars-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--mars-500);
}

.card-dark h3 {
  color: #ffffff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

/* ---------- 通用板块 ---------- */
.section {
  padding: var(--section-padding-desktop) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 16px 0 16px;
  line-height: 1.15;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* 全宽出血区域 */
.full-bleed {
  max-width: 100%;
  padding: var(--section-padding-desktop) 48px;
  position: relative;
}

.full-bleed-dark {
  max-width: 100%;
  padding: var(--section-padding-desktop) 48px;
  background: linear-gradient(135deg, var(--mars-800) 0%, var(--mars-900) 100%);
  position: relative;
}

.full-bleed-dark .section-heading h2,
.full-bleed-dark .section-heading p {
  color: #ffffff;
}

.full-bleed-dark .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--mars-200);
}

/* 波浪分隔符 - 深色服务到浅色联系的过渡 */
.section-wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px; /* 消除与上方 section 的间隙 */
  --wave-color: #004437; /* 匹配 services 底部渐变色 mars-900 */
}

.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 联系我们 - 浅色背景（与深色服务形成强对比） */
.contact-section {
  background: var(--bg-deep);
}

/* ---------- 关于炽松 ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  background: var(--bg-primary);
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  z-index: 0;
}

.about h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content strong {
  color: var(--mars-500);
}

.about-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-item strong {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-item span,
.meta-item time {
  font-size: 16px;
  color: var(--text-primary);
}

/* ---------- 产品展示 ---------- */
.product-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -20%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 140, 114, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.product-card {
  /* 复用 .card 基础样式 */
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 140, 114, 0.03), transparent);
  transition: left 0.6s var(--ease-out);
}

.product-card:hover::after {
  left: 100%;
}

.product-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--mars-500);
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec-tag {
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--mars-50);
  color: var(--mars-600);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 核心功能 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.feature-card {
  /* 复用 .card .card-dark */
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  transition: transform var(--duration-fast) var(--ease-hover);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

/* ---------- 业务服务 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.service-card {
  /* 复用 .card .card-dark */
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  transition: transform var(--duration-fast) var(--ease-hover);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

/* ---------- 场景体验 ---------- */
.scenes-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-deep) 100%);
  position: relative;
}

.scenes-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 140, 114, 0.06) 50%, rgba(0, 140, 114, 0.1) 100%);
  pointer-events: none;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  position: relative;
  z-index: 1;
}

.scene-card {
  /* 复用 .card */
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.scene-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-mars);
}

.scene-card:hover .scene-color {
  width: 8px;
}

.scene-color {
  width: 6px;
  flex-shrink: 0;
  transition: width var(--duration-fast) var(--ease-hover);
}

.scene-info {
  padding: 28px 24px;
}

.scene-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scene-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- 小程序预览 ---------- */
.miniprogram-section {
  background: var(--bg-primary);
}

.miniprogram-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

/* 手机 mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: var(--mars-800);
  border: 8px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  animation: float-mockup 4s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.screen-content {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen-content.active {
  opacity: 1;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.mock-bluetooth {
  color: var(--mars-500);
}

.mock-map {
  height: 200px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.mock-room {
  width: 160px;
  height: 120px;
  border: 2px solid var(--border);
  border-radius: 8px;
  position: relative;
}

.mock-lamp {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
}

.mock-lamp.on {
  background: var(--mars-500);
  box-shadow: 0 0 10px rgba(0, 140, 114, 0.5);
}

.mock-lamp:nth-child(1) { top: 20px; left: 30px; }
.mock-lamp:nth-child(2) { top: 60px; right: 40px; }
.mock-lamp:nth-child(3) { bottom: 20px; left: 50px; }

.mock-scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mock-scene {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 20px;
}

.mock-control {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-slider span {
  font-size: 13px;
  color: var(--text-secondary);
}

.mock-track {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.mock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mars-600), var(--mars-400));
  border-radius: 3px;
}

.mock-scene-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-scene-item {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 14px;
  transition: all var(--duration-fast) ease;
}

.mock-scene-item.active {
  background: var(--mars-100);
  color: var(--mars-600);
}

/* 步骤 */
.miniprogram-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--mars-500);
  opacity: 0.5;
  line-height: 1;
  transition: opacity var(--duration-normal) var(--ease-hover);
}

.step.visible .step-num {
  opacity: 0.8;
}

.step h4 {
  font-size: 20px;
  font-weight: 700;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 二维码占位 */
.qr-placeholder {
  text-align: center;
}

.qr-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.qr-placeholder p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- 联系我们 ---------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: var(--section-padding-desktop) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 140, 114, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin: 16px 0 16px;
  color: var(--text-primary);
}

.contact-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item strong {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.info-item span,
.info-item a {
  font-size: 16px;
  color: var(--text-primary);
}

.contact-tel {
  font-size: 20px;
  font-weight: 700;
  color: var(--mars-400);
  transition: opacity var(--duration-fast) ease;
}

.contact-tel:hover {
  opacity: 0.8;
}

/* 联系CTA */
.contact-cta {
  position: relative;
  z-index: 1;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.cta-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

.cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 12px;
  background: var(--mars-500);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
  transition: all var(--duration-fast) ease;
}

.cta-large:hover {
  background: var(--mars-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-mars);
}

.cta-large svg {
  flex-shrink: 0;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-hover);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--mars-500);
  color: var(--mars-500);
  transform: translateY(-2px);
}

/* ---------- 关键帧动画 ---------- */
@keyframes lamp-glow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(0, 140, 114, 0.25),
                0 0 80px rgba(0, 140, 114, 0.12);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 140, 114, 0.4),
                0 0 120px rgba(0, 140, 114, 0.2);
  }
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll-dot {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(8px);
  }
}

/* 呼吸灯类 */
.lamp-glow {
  animation: lamp-glow 3s ease-in-out infinite;
}

.lamp-glow.delay {
  animation-delay: 1s;
}

.lamp-glow.delay-2 {
  animation-delay: 2s;
}

/* ---------- 3D 卡片倾斜效果 ---------- */
.tilt-card {
  transition: transform var(--duration-fast) var(--ease-hover);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    height: 350px;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section,
  .full-bleed,
  .full-bleed-dark,
  .contact-section {
    padding: var(--section-padding-tablet) 48px;
  }

  .product-grid,
  .features-grid,
  .scenes-grid,
  .services-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .miniprogram-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .phone-mockup {
    margin: 0 auto;
  }

  .miniprogram-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .step {
    flex: 1;
    min-width: 200px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-content {
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .brand-text small {
    display: none;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .site-nav {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    overflow-y: auto;
  }

  .site-header.nav-open .site-nav a {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
  }

  .site-header.nav-open .site-nav a::after {
    display: none;
  }

  .site-header.nav-open .header-actions {
    display: flex;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 16px;
  }

  /* 汉堡菜单动画 */
  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: calc(var(--header-height) + 40px) 20px 60px;
    min-height: auto;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    right: 10%;
  }

  .glow-orb {
    width: 150px;
    height: 150px;
  }

  .glow-ring {
    width: 240px;
    height: 240px;
  }

  .glow-ring.delay {
    width: 320px;
    height: 320px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 28px;
  }

  .section,
  .full-bleed,
  .full-bleed-dark,
  .contact-section {
    padding: var(--section-padding-mobile) 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .product-grid,
  .features-grid,
  .scenes-grid,
  .services-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--card-padding-mobile);
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .about-meta {
    flex-direction: column;
    gap: 20px;
  }

  .miniprogram-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    min-width: auto;
    width: 100%;
  }

  .contact-section {
    margin: 0 20px;
    border-radius: 16px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 12px;
  }

  .site-footer .footer-records a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-summary,
  .hero-actions,
  .hero-stats {
    opacity: 1;
    transform: none;
  }

  .hero-copy h1 .char {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

/* ---------- 页面加载动画 ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--mars-500);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-mark {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 140, 114, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 140, 114, 0);
  }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mars-400), var(--mars-600));
  border-radius: 3px;
  animation: loader-progress 2s ease-in-out forwards;
}

@keyframes loader-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.loader-text {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 2px;
  animation: loader-text 1.5s ease-in-out infinite;
}

@keyframes loader-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- 磁性按钮效果 ---------- */
.magnetic {
  transition: transform 0.3s var(--ease-hover);
}

/* ---------- 文字闪烁效果 ---------- */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--mars-500) 0%,
    var(--mars-300) 25%,
    var(--mars-500) 50%,
    var(--mars-300) 75%,
    var(--mars-500) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ---------- 打字机效果 ---------- */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--mars-500);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  max-width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--mars-500); }
}

/* ---------- 背景网格动画 ---------- */
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 140, 114, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 140, 114, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ---------- 波浪背景 ---------- */
.wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-bg svg {
  width: 100%;
  height: 100%;
  animation: wave-float 6s ease-in-out infinite;
}

@keyframes wave-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 复杂滚动进入动画 ---------- */
.slide-left {
  opacity: 1;
  transform: translateX(-30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.slide-right {
  opacity: 1;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.slide-up {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.scale-up {
  opacity: 1;
  transform: scale(0.95);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.slide-left.visible,
.slide-right.visible,
.slide-up.visible,
.scale-up.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* ---------- 点击粒子爆炸 ---------- */
.click-particles {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.click-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mars-500);
  pointer-events: none;
  animation: particle-explode 1s ease-out forwards;
}

@keyframes particle-explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ---------- 卡片悬浮光效 ---------- */
.product-card::before,
.feature-card::before,
.scene-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 140, 114, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover::before,
.feature-card:hover::before,
.scene-card:hover::before {
  opacity: 1;
}

/* ---------- 霓虹发光效果 ---------- */
.glow-orb {
  animation: lamp-glow 6s ease-in-out infinite, neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* ---------- 浮动动画 ---------- */
.phone-mockup {
  animation: float-mockup 4s ease-in-out infinite, gentle-rotate 8s ease-in-out infinite;
}

@keyframes gentle-rotate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(1deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* ---------- 响应式动画调整 ---------- */
@media (max-width: 768px) {
  .typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
  }
  
  .hero-grid-bg {
    background-size: 30px 30px;
  }
  
  .wave-bg {
    height: 100px;
  }
  
  .page-loader {
    display: none;
  }
}

/* ---------- 性能优化 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .hero-grid-bg,
  .wave-bg,
  .click-particles {
    display: none;
  }
  
  .shimmer {
    animation: none;
    background: var(--mars-500);
    -webkit-text-fill-color: var(--mars-500);
  }
  
  .typewriter {
    animation: none;
    border-right: none;
    white-space: normal;
  }
  
  .slide-left,
  .slide-right,
  .slide-up,
  .scale-up {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 故障文字效果 ---------- */
.glitch {
  position: relative;
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--mars-500);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--mars-300);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(30px, 9999px, 15px, 0);
    transform: skew(0.85deg);
  }
  5% {
    clip: rect(80px, 9999px, 70px, 0);
    transform: skew(0.15deg);
  }
  10% {
    clip: rect(10px, 9999px, 95px, 0);
    transform: skew(0.55deg);
  }
  15% {
    clip: rect(50px, 9999px, 25px, 0);
    transform: skew(0.25deg);
  }
  20% {
    clip: rect(20px, 9999px, 85px, 0);
    transform: skew(0.75deg);
  }
  25% {
    clip: rect(90px, 9999px, 10px, 0);
    transform: skew(0.05deg);
  }
  30% {
    clip: rect(40px, 9999px, 60px, 0);
    transform: skew(0.45deg);
  }
  35% {
    clip: rect(70px, 9999px, 35px, 0);
    transform: skew(0.65deg);
  }
  40% {
    clip: rect(15px, 9999px, 80px, 0);
    transform: skew(0.35deg);
  }
  45% {
    clip: rect(60px, 9999px, 45px, 0);
    transform: skew(0.95deg);
  }
  50% {
    clip: rect(25px, 9999px, 90px, 0);
    transform: skew(0.55deg);
  }
  55% {
    clip: rect(85px, 9999px, 20px, 0);
    transform: skew(0.15deg);
  }
  60% {
    clip: rect(45px, 9999px, 55px, 0);
    transform: skew(0.75deg);
  }
  65% {
    clip: rect(10px, 9999px, 75px, 0);
    transform: skew(0.35deg);
  }
  70% {
    clip: rect(75px, 9999px, 30px, 0);
    transform: skew(0.85deg);
  }
  75% {
    clip: rect(35px, 9999px, 65px, 0);
    transform: skew(0.25deg);
  }
  80% {
    clip: rect(55px, 9999px, 40px, 0);
    transform: skew(0.65deg);
  }
  85% {
    clip: rect(20px, 9999px, 85px, 0);
    transform: skew(0.45deg);
  }
  90% {
    clip: rect(65px, 9999px, 50px, 0);
    transform: skew(0.15deg);
  }
  95% {
    clip: rect(40px, 9999px, 70px, 0);
    transform: skew(0.95deg);
  }
  100% {
    clip: rect(80px, 9999px, 25px, 0);
    transform: skew(0.55deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
    transform: skew(0.45deg);
  }
  5% {
    clip: rect(20px, 9999px, 15px, 0);
    transform: skew(0.85deg);
  }
  10% {
    clip: rect(85px, 9999px, 40px, 0);
    transform: skew(0.25deg);
  }
  15% {
    clip: rect(35px, 9999px, 75px, 0);
    transform: skew(0.65deg);
  }
  20% {
    clip: rect(55px, 9999px, 20px, 0);
    transform: skew(0.15deg);
  }
  25% {
    clip: rect(15px, 9999px, 60px, 0);
    transform: skew(0.75deg);
  }
  30% {
    clip: rect(70px, 9999px, 45px, 0);
    transform: skew(0.35deg);
  }
  35% {
    clip: rect(40px, 9999px, 85px, 0);
    transform: skew(0.95deg);
  }
  40% {
    clip: rect(90px, 9999px, 30px, 0);
    transform: skew(0.55deg);
  }
  45% {
    clip: rect(25px, 9999px, 65px, 0);
    transform: skew(0.15deg);
  }
  50% {
    clip: rect(60px, 9999px, 50px, 0);
    transform: skew(0.85deg);
  }
  55% {
    clip: rect(45px, 9999px, 80px, 0);
    transform: skew(0.45deg);
  }
  60% {
    clip: rect(10px, 9999px, 35px, 0);
    transform: skew(0.25deg);
  }
  65% {
    clip: rect(75px, 9999px, 55px, 0);
    transform: skew(0.65deg);
  }
  70% {
    clip: rect(30px, 9999px, 90px, 0);
    transform: skew(0.15deg);
  }
  75% {
    clip: rect(50px, 9999px, 25px, 0);
    transform: skew(0.75deg);
  }
  80% {
    clip: rect(80px, 9999px, 70px, 0);
    transform: skew(0.35deg);
  }
  85% {
    clip: rect(20px, 9999px, 45px, 0);
    transform: skew(0.95deg);
  }
  90% {
    clip: rect(55px, 9999px, 60px, 0);
    transform: skew(0.55deg);
  }
  95% {
    clip: rect(40px, 9999px, 85px, 0);
    transform: skew(0.25deg);
  }
  100% {
    clip: rect(70px, 9999px, 15px, 0);
    transform: skew(0.65deg);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }
  10% {
    transform: skew(-2deg);
  }
  20% {
    transform: skew(2deg);
  }
  30% {
    transform: skew(0deg);
  }
  40% {
    transform: skew(1deg);
  }
  50% {
    transform: skew(-1deg);
  }
  60% {
    transform: skew(0deg);
  }
  70% {
    transform: skew(-2deg);
  }
  80% {
    transform: skew(2deg);
  }
  90% {
    transform: skew(0deg);
  }
  100% {
    transform: skew(0deg);
  }
}

/* ---------- 噪声纹理 ---------- */
.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---------- 扫描线效果 ---------- */
.hero-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* ---------- 霓虹灯边框效果 ---------- */
.neon-border {
  position: relative;
  border: 1px solid var(--mars-500);
  box-shadow: 
    0 0 5px var(--mars-500),
    0 0 10px var(--mars-500),
    0 0 20px var(--mars-500),
    inset 0 0 5px var(--mars-500);
  animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    box-shadow: 
      0 0 5px var(--mars-500),
      0 0 10px var(--mars-500),
      0 0 20px var(--mars-500),
      inset 0 0 5px var(--mars-500);
    border-color: var(--mars-500);
  }
  20%, 24%, 55% {
    box-shadow: none;
    border-color: var(--mars-700);
  }
}

/* ---------- 按钮涟漪效果 ---------- */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* ---------- 鼠标轨迹拖尾 ---------- */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mars-500);
  pointer-events: none;
  z-index: 9997;
  opacity: 0.5;
  filter: blur(8px);
  transition: opacity 0.5s ease;
}

/* ---------- 3D 翻转卡片 ---------- */
.flip-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* ---------- 文字拆分揭示 ---------- */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotate(10deg);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.split-text.visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ---------- 动态渐变背景 ---------- */
.animated-gradient {
  background: linear-gradient(
    -45deg,
    var(--mars-900),
    var(--mars-700),
    var(--mars-500),
    var(--mars-300)
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- 浮动粒子背景 ---------- */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--mars-500);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ---------- 视差层叠 ---------- */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.parallax-layer-1 {
  z-index: 1;
  opacity: 0.1;
}

.parallax-layer-2 {
  z-index: 2;
  opacity: 0.2;
}

.parallax-layer-3 {
  z-index: 3;
  opacity: 0.3;
}

/* ---------- 高级滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--mars-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mars-600);
}

/* ---------- 文字遮罩揭示 ---------- */
.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  transform: translateX(0);
  transition: transform 1s var(--ease-out);
}

.text-reveal.visible::after {
  transform: translateX(100%);
}

/* ---------- 弹性磁性按钮 ---------- */
.magnetic-elastic {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---------- 发光球体 ---------- */
.glow-sphere {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mars-500) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.3;
  animation: sphere-float 10s ease-in-out infinite;
}

@keyframes sphere-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ---------- 涟漪动画 ---------- */
@keyframes ripple-expand {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20);
    opacity: 0;
  }
}

/* ---------- 板块入场与过渡 ---------- */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out),
              transform 500ms var(--ease-out);
  transition-delay: calc(var(--stagger-index, 0) * 0.08s);
}

.section-reveal.visible .stagger-reveal,
.section-reveal.visible ~ .stagger-reveal,
.stagger-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 140, 114, 0.2) 50%, transparent 100%);
  border: none;
  margin: 0;
}

.card {
  transition: transform 250ms var(--ease-hover),
              box-shadow 250ms var(--ease-hover);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-mars);
}

/* ---------- 响应式高级动画 ---------- */
@media (max-width: 768px) {
  .glitch {
    animation: none;
  }
  
  .glitch::before,
  .glitch::after {
    display: none;
  }
  
  .hero-scanlines,
  .hero-noise {
    display: none;
  }
  
  .neon-border {
    animation: none;
    box-shadow: 0 0 10px var(--mars-500);
  }
  
  .cursor-trail {
    display: none;
  }
  
  .floating-particles {
    display: none;
  }
}

/* ---------- 性能优化 ---------- */
@media (prefers-reduced-motion: reduce) {
  .glitch,
  .glitch::before,
  .glitch::after {
    animation: none;
  }
  
  .hero-scanlines,
  .hero-noise,
  .cursor-trail,
  .floating-particles {
    display: none;
  }
  
  .neon-border {
    animation: none;
  }
  
  .animated-gradient {
    animation: none;
  }
  
  .glow-sphere {
    animation: none;
  }
  
  .split-text .char {
    opacity: 1;
    transform: none;
  }
  
  .text-reveal::after {
    display: none;
  }

  .section-reveal,
  .stagger-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
    box-shadow: none;
  }
}
