/* ===== 设计系统 - 统一规范 ===== */
:root {
  /* 背景动画效果 */
  --bg-animation-duration: 15s;
  --bg-animation-timing: ease-in-out;
  --bg-pattern-opacity: 0.05;
  --bg-gradient-start: rgba(255, 255, 255, 0.01);
  --bg-gradient-end: rgba(79, 70, 229, 0.05);
  /* 字体大小层级 */
  --text-xs: 0.75rem;
  /* 12px - 辅助信息 */
  --text-sm: 0.875rem;
  /* 14px - 正文小字 */
  --text-base: 1rem;
  /* 16px - 正文 */
  --text-lg: 1.125rem;
  /* 18px - 重要正文 */
  --text-xl: 1.25rem;
  /* 20px - 小标题 */
  --text-2xl: 1.5rem;
  /* 24px - 中标题 */
  --text-3xl: 1.875rem;
  /* 30px - 大标题 */
  --text-4xl: 2.25rem;
  /* 36px - 主标题 */
  --text-5xl: 3rem;
  /* 48px - 超大标题 */

  /* 行高系统 */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* 间距系统 */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 0.75rem;
  /* 12px */
  --space-base: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 2.5rem;
  /* 48px */
  --space-3xl: 3.5rem;
  /* 64px */
  --space-4xl: 4rem;
  /* 96px */

  /* 颜色系统 */
  --color-primary: #4f46e5;
  /* indigo-600 */
  --color-primary-light: #6366f1;
  /* indigo-500 */
  --color-primary-dark: #3730a3;
  /* indigo-700 */
  --color-secondary: #8b5cf6;
  /* purple-500 */
  --color-accent: #06b6d4;
  /* cyan-500 */

  --color-text-primary: #0f172a;
  /* slate-900 */
  --color-text-secondary: #334155;
  /* slate-700 */
  --color-text-muted: #64748b;
  /* slate-500 */
  --color-text-light: #94a3b8;
  /* slate-400 */

  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  /* slate-50 */
  --color-bg-muted: #f1f5f9;
  /* slate-100 */

  /* 圆角系统 */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-base: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */

  /* 阴影系统 - 轻量化版本 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -1px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 6px 12px -2px rgb(0 0 0 / 0.08), 0 3px 6px -1px rgb(0 0 0 / 0.04);
  --shadow-2xl: 0 12px 24px -4px rgb(0 0 0 / 0.12), 0 6px 12px -2px rgb(0 0 0 / 0.06);
  --shadow-colored: 0 6px 12px -2px rgb(79 70 229 / 0.06), 0 3px 6px -1px rgb(79 70 229 / 0.04);
  --shadow-glow: 0 0 0 1px rgb(79 70 229 / 0.03), 0 2px 4px 0 rgb(79 70 229 / 0.06), 0 4px 8px -1px rgb(79 70 229 / 0.08);
}

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

/* ===== 背景图案和动画效果 ===== */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* 脉冲动画 */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes pulse-slow-delay {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.animate-pulse-slow {
  animation: pulse-slow 8s var(--bg-animation-timing) infinite;
}

.animate-pulse-slow-delay {
  animation: pulse-slow 10s var(--bg-animation-timing) infinite;
  animation-delay: 2s;
}

/* 浮动动画 */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-15px) rotate(15deg); }
}

@keyframes float-slow-delay {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float-slow {
  animation: float-slow 12s var(--bg-animation-timing) infinite;
}

.animate-float-slow-delay {
  animation: float-slow-delay 15s var(--bg-animation-timing) infinite;
  animation-delay: 3s;
}

/* 粒子容器 */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 视差效果 */
.parallax-layer {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 背景光效 */
@keyframes glow {
  0%, 100% { opacity: 0.6; filter: blur(60px); }
  50% { opacity: 0.8; filter: blur(80px); }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
  animation: glow 10s infinite;
  will-change: opacity, filter;
}

/* 流动背景效果 */
@keyframes flowBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-flow {
  background: linear-gradient(-45deg, 
    rgba(79, 70, 229, 0.05) 0%, 
    rgba(99, 102, 241, 0.05) 25%, 
    rgba(129, 140, 248, 0.05) 50%, 
    rgba(165, 180, 252, 0.05) 75%, 
    rgba(224, 231, 255, 0.05) 100%);
  background-size: 400% 400%;
  animation: flowBackground 15s ease infinite;
  will-change: background-position;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
}

/* ===== Hero区域专门样式 ===== */
.hero-section {
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.75rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero文字特效 */
.hero-title span {
  display: inline-block;
  transition: all 0.3s ease;
}

.hero-title span:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 渐变文字效果 */
.text-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 浮动动画效果 */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 淡入动画效果 */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInScale {
  animation: fadeInScale 0.7s ease-out forwards;
}

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

.float-animation-delay-1 {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

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

/* Hero区域内容间距优化 */
.hero-section .max-w-6xl {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

/* 产品卡片样式优化 */
.product-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card .w-full {
  border-radius: 0.75rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-card:hover .w-full {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 产品分类导航区域样式 */
.category-nav-section {
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.category-nav-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
}

/* 光效动画 */
.category-nav-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  z-index: -1;
  animation: lightEffect 15s ease-in-out infinite alternate;
}

@keyframes lightEffect {
  0% {
    opacity: 0;
    transform: translate(30%, 30%) rotate(0deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(-30%, -30%) rotate(180deg);
  }
}

/* 产品分类按钮样式 */
.category-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  margin: 0.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.category-btn:hover {
  color: #4f46e5;
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn.active {
  color: white;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.category-btn span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.category-btn:hover span {
  transform: scale(1.2);
  box-shadow: 0 0 8px currentColor;
}

.category-btn.active span {
  background-color: white !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

.hero-section .grid > div:first-child {
  padding-right: 1rem;
  overflow: visible;
  box-sizing: border-box;
}

.hero-section .grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
}

.hero-section p {
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 右侧数据展示区域优化 */
.hero-section .grid > div:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .grid > div:last-child .grid {
  width: 100%;
  max-width: 400px;
}

/* Hero响应式调整 */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-section .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-section .grid > div:first-child {
    padding-right: 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }
  
  .hero-section p {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  /* 移动端按钮优化 */
  .hero-section .flex {
    justify-content: center;
  }
  
  .hero-section a {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 12px;
    min-width: 200px;
    text-align: center;
  }
  
  /* 移动端田字格布局间距统一 */
  .hero-section .grid.grid-cols-2 {
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 0;
  }
  
  .hero-section .grid > div:first-child {
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .hero-section p {
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  /* 小屏移动端按钮优化 */
  .hero-section .flex {
    justify-content: center;
  }
  
  .hero-section a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
    min-width: 180px;
    text-align: center;
  }
  
  /* 小屏移动端田字格布局间距统一 */
  .hero-section .grid.grid-cols-2 {
    gap: 0.75rem !important;
  }
}

/* ===== 全局优化 ===== */
* {
  box-sizing: border-box;
}

*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* 选择文本的颜色 */
::selection {
  background-color: rgba(79, 70, 229, 0.2);
  color: var(--color-text-primary);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-muted);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ===== 字体层级统一 ===== */
h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-base);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-base);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.text-light {
  color: var(--color-text-light);
  font-size: var(--text-xs);
}

/* ===== 模块间距统一 ===== */
section {
  padding: var(--space-4xl) 0;
}
.section-padding {
  padding: var(--space-4xl) 0;
}

.section-padding-sm {
  padding: var(--space-base) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-base);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.blog-articles-container{
  padding-top: 1rem;
}

/* ===== 卡片组件统一 ===== */
.card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--color-bg-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.02), rgba(139, 92, 246, 0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.08);
}

.card:hover::before {
  opacity: 1;
}

/* ===== 特殊CTA卡片样式 ===== */
.card.cta-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card.cta-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card.cta-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-colored);
}

.card.cta-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(2deg);
  box-shadow: var(--shadow-base);
}

.card:hover .card-icon::before {
  opacity: 1;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-base);
}

.card-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

/* ===== 按钮组件统一 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-bg-primary);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-base);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-base);
}

/* ===== 移动端响应式设计 ===== */
@media (max-width: 768px) {
  :root {
    /* 移动端字体大小调整 */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 0.875rem;
    /* 14px - 移动端正文稍小 */
    --text-lg: 1rem;
    /* 16px */
    --text-xl: 1.125rem;
    /* 18px */
    --text-2xl: 1.25rem;
    /* 20px */
    --text-3xl: 1.5rem;
    /* 24px */
    --text-4xl: 1.875rem;
    /* 30px */
    --text-5xl: 2.25rem;
    /* 36px */

    /* 移动端间距调整 */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 0.75rem;
    /* 12px */
    --space-base: 1rem;
    /* 16px */
    --space-lg: 1.25rem;
    /* 20px */
    --space-xl: 1.5rem;
    /* 24px */
    --space-2xl: 2rem;
    /* 32px */
    --space-3xl: 2.5rem;
    /* 40px */
    --space-4xl: 3rem;
    /* 48px */
  }

  /* 防止移动端出现横向滚动条 */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* 所有容器都不能超出屏幕宽度 */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* 容器宽度限制 */
  .max-w-6xl {
    max-width: 100% !important;
    padding-left: var(--space-base);
    padding-right: var(--space-base);
    width: 100% !important;
  }

  /* 移动端模块间距 */
  section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* 移动端网格布局 */
  .grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* 移动端卡片优化 */
  .card {
    padding: var(--space-lg);
  }

  .card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-base);
  }

  /* 移动端按钮优化 */
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    width: 100%;
    justify-content: center;
  }

  /* 统计数据网格 - 2列布局 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
  }

  /* 移动端footer优化 */
  footer {
    padding: var(--space-2xl) 0;
  }

  footer .grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  footer h3,
  footer h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  footer p,
  footer a {
    font-size: 0.8rem;
  }

  footer .space-y-2>*+* {
    margin-top: 0.5rem;
  }

  /* 移动端快速链接横向排列 */
  footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  footer ul li {
    margin: 0 !important;
    padding: 0;
  }

  footer ul li a {
    font-size: 0.75rem;
    display: block;
    padding: 0.25rem 0;
  }

  /* 确保移动端菜单宽度不超出屏幕 */
  #mobile-menu {
    width: 75vw !important;
    max-width: 280px !important;
    min-width: 250px !important;
  }

  /* 数字统计区域优化 */
  .counter {
    font-size: 2rem !important;
  }

  /* 个人介绍卡片优化 */
  .w-24.h-24 {
    width: 4rem;
    height: 4rem;
  }

  /* 时间线优化 */
  .w-12.h-12 {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* 图标尺寸调整 */
  .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
  }

  .w-8.h-8 {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  /* 确保所有图标容器不超出屏幕 */
  .w-16,
  .w-12,
  .w-10,
  .w-8,
  .w-6 {
    max-width: 15vw !important;
  }

  /* 服务卡片图标容器优化 */
  .service-grid .w-16.h-16 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    flex-shrink: 0;
  }

  /* 确保flex容器不会溢出 */
  .flex {
    flex-wrap: wrap;
  }
}

/* 服务网格布局 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 移动端菜单样式 - 简化版本 */
#mobile-menu {
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  max-width: 100vw;
  overflow-x: hidden;
  display: none;
}

/* 显示菜单 */
#mobile-menu.show {
  display: block !important;
}

/* 全局防止横向滚动 */
* {
  box-sizing: border-box;
}

/* 确保所有容器不超出视口 */
.container,
.max-w-6xl,
.max-w-4xl,
.max-w-2xl {
  max-width: 100%;
  overflow-x: hidden;
}

/* 移动端菜单背景遮罩 */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 可访问性样式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus 状态优化 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .text-slate-600 {
    color: #000000;
  }

  .text-slate-500 {
    color: #333333;
  }

  .bg-gradient-to-r {
    background: #000000;
    color: #ffffff;
  }
}

/* 减少动画偏好 */
@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;
  }
}