/**
 * 又问集团官网 - 全局样式表
 * Youwen Group - Global Stylesheet
 * 
 * 包含：CSS变量、关键帧动画、工具类、组件样式
 */

/* ============================================
   1. CSS 变量 / CSS Variables
   ============================================ */

:root {
  /* 主色调 / Primary Colors */
  --color-primary: #FFD100;
  --color-primary-dark: #E5BC00;
  --color-primary-light: #FFE566;
  
  /* 中性色 / Neutral Colors */
  --color-black: #0A0A0A;
  --color-dark: #1A1A2E;
  --color-dark-800: #2D2D3A;
  --color-gray-600: #4A4A5A;
  --color-gray-400: #8A8A9A;
  --color-gray-200: #E5E5EA;
  --color-gray-100: #F5F5F7;
  --color-white: #FFFFFF;
  
  /* 功能色 / Functional Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* 渐变色 / Gradients */
  --gradient-primary: linear-gradient(135deg, #FFD100 0%, #FFA500 100%);
  --gradient-dark: linear-gradient(180deg, #1A1A2E 0%, #0A0A0A 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255, 209, 0, 0.15) 0%, transparent 70%);
  --gradient-text: linear-gradient(135deg, #FFD100 0%, #FFA500 50%, #FFD100 100%);
  
  /* 字体 / Typography */
  --font-primary: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  --font-display: "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* 字号 / Font Sizes */
  --text-hero: 3.5rem;      /* 56px */
  --text-h1: 3rem;          /* 48px */
  --text-h2: 2.5rem;        /* 40px */
  --text-h3: 2rem;          /* 32px */
  --text-h4: 1.5rem;        /* 24px */
  --text-h5: 1.25rem;       /* 20px */
  --text-body-lg: 1.125rem; /* 18px */
  --text-body: 1rem;        /* 16px */
  --text-body-sm: 0.875rem; /* 14px */
  --text-caption: 0.75rem;  /* 12px */
  
  /* 移动端字号 / Mobile Font Sizes */
  --text-hero-mobile: 2.25rem;   /* 36px */
  --text-h1-mobile: 2rem;        /* 32px */
  --text-h2-mobile: 1.75rem;     /* 28px */
  --text-h3-mobile: 1.5rem;      /* 24px */
  --text-h4-mobile: 1.25rem;     /* 20px */
  --text-h5-mobile: 1.125rem;    /* 18px */
  --text-body-mobile: 0.9375rem; /* 15px */
  --text-body-sm-mobile: 0.8125rem; /* 13px */
  
  /* 字重 / Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* 行高 / Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.4;
  --leading-relaxed: 1.5;
  --leading-loose: 1.7;
  
  /* 间距 / Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* 区块间距 / Section Spacing */
  --section-padding-y: 96px;
  --section-padding-x: 64px;
  --container-max-width: 1280px;
  --section-padding-y-tablet: 72px;
  --section-padding-x-tablet: 32px;
  --section-padding-y-mobile: 48px;
  --section-padding-x-mobile: 20px;
  
  /* 圆角 / Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* 阴影 / Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(255, 209, 0, 0.3);
  --shadow-glow-sm: 0 0 20px rgba(255, 209, 0, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(255, 209, 0, 0.4);
  
  /* 动画时长 / Animation Durations */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  --duration-slowest: 1.2s;
  
  /* 缓动函数 / Easing Functions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-tech: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* 响应式断点 / Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Z-Index 层级 */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 300;
  --z-modal: 400;
  --z-tooltip: 500;
  --z-toast: 600;
}

/* ============================================
   2. 基础样式重置 / Base Reset
   ============================================ */

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  line-height: var(--leading-loose);
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* 链接样式 */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

a:hover {
  color: var(--color-primary);
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 表单元素 */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 列表 */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   3. 关键帧动画 / Keyframe Animations
   ============================================ */

/* 淡入上滑 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 淡入缩放 */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 侧边滑入 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 右侧滑入 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 脉冲光晕 - 金色 */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 209, 0, 0.6);
  }
}

/* 悬浮动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 数字计数动画 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 粒子动画 */
@keyframes particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* 闪烁动画 */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 渐变位移 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 淡入 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 缩放入场 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 弹跳入场 */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 滚动指示器 */
@keyframes scrollIndicator {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   4. 动画工具类 / Animation Utility Classes
   ============================================ */

/* 基础动画状态 */
.animate-initial {
  opacity: 0;
}

.animate-visible {
  opacity: 1;
}

/* 淡入上滑 */
.animate-fadeInUp {
  animation: fadeInUp var(--duration-slower) var(--ease-tech) forwards;
}

.animate-fadeInUp-slow {
  animation: fadeInUp var(--duration-slowest) var(--ease-tech) forwards;
}

/* 淡入缩放 */
.animate-fadeInScale {
  animation: fadeInScale var(--duration-slow) var(--ease-out) forwards;
}

/* 侧边滑入 */
.animate-slideIn {
  animation: slideIn var(--duration-slow) var(--ease-out) forwards;
}

.animate-slideInRight {
  animation: slideInRight var(--duration-slow) var(--ease-out) forwards;
}

/* 脉冲光晕 */
.animate-pulseGlow {
  animation: pulseGlow 2s var(--ease-in-out) infinite;
}

/* 悬浮 */
.animate-float {
  animation: float 3s var(--ease-in-out) infinite;
}

.animate-float-slow {
  animation: float 4s var(--ease-in-out) infinite;
}

/* 数字计数 */
.animate-countUp {
  animation: countUp var(--duration-slower) var(--ease-out) forwards;
}

/* 粒子 */
.animate-particle {
  animation: particle 15s linear infinite;
}

/* 闪烁 */
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* 旋转 */
.animate-rotate {
  animation: rotate 20s linear infinite;
}

.animate-rotate-slow {
  animation: rotate 30s linear infinite;
}

/* 渐变位移 */
.animate-gradientShift {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* 淡入 */
.animate-fadeIn {
  animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

/* 缩放入场 */
.animate-scaleIn {
  animation: scaleIn var(--duration-slow) var(--ease-out) forwards;
}

/* 弹跳入场 */
.animate-bounceIn {
  animation: bounceIn var(--duration-slower) var(--ease-bounce) forwards;
}

/* 滚动指示器 */
.animate-scrollIndicator {
  animation: scrollIndicator 2s var(--ease-in-out) infinite;
}

/* 动画延迟 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }
.delay-1200 { animation-delay: 1.2s; }

/* 动画填充模式 */
.fill-forwards { animation-fill-mode: forwards; }
.fill-backwards { animation-fill-mode: backwards; }
.fill-both { animation-fill-mode: both; }

/* ============================================
   5. 金色光晕效果 / Golden Glow Effects
   ============================================ */

.glow-golden {
  box-shadow: var(--shadow-glow);
}

.glow-golden-sm {
  box-shadow: var(--shadow-glow-sm);
}

.glow-golden-lg {
  box-shadow: var(--shadow-glow-lg);
}

.glow-golden-text {
  text-shadow: 0 0 20px rgba(255, 209, 0, 0.5);
}

.glow-golden-border {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.2);
}

/* 悬停光晕 */
.hover-glow {
  transition: box-shadow var(--duration-normal) var(--ease-default);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ============================================
   6. 按钮样式 / Button Styles
   ============================================ */

/* 主按钮 Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--color-black);
  font-weight: var(--font-semibold);
  font-size: var(--text-body);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-default);
  box-shadow: 0 4px 14px rgba(255, 209, 0, 0.4);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 209, 0, 0.5);
  color: var(--color-black);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 次按钮 Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 30px;
  background: transparent;
  color: var(--color-black);
  font-weight: var(--font-semibold);
  font-size: var(--text-body);
  border: 2px solid var(--color-black);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-default);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* 幽灵按钮 Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  background: transparent;
  color: var(--color-white);
  font-weight: var(--font-semibold);
  font-size: var(--text-body);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-default);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 按钮尺寸变体 */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-body-sm);
}

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

/* ============================================
   7. 卡片样式 / Card Styles
   ============================================ */

/* 产品卡片 Product Card */
.card-product {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease-default);
}

.card-product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

/* 深色卡片 Dark Card */
.card-dark {
  background: linear-gradient(145deg, var(--color-dark-800) 0%, var(--color-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid rgba(255, 209, 0, 0.1);
}

/* 浅色卡片 Light Card */
.card-light {
  background: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* 卡片悬停效果 */
.card-hover {
  transition: all var(--duration-normal) var(--ease-default);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   8. 表单样式 / Form Styles
   ============================================ */

/* 输入框 Input */
.form-input {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: var(--text-body);
  transition: all var(--duration-fast) var(--ease-default);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.2);
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

/* 深色背景输入框 */
.form-input-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.form-input-dark:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-input-dark::placeholder {
  color: var(--color-gray-400);
}

/* 文本域 Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 标签 Label */
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-medium);
  font-size: var(--text-body-sm);
  color: var(--color-gray-600);
}

/* ============================================
   9. 布局工具类 / Layout Utilities
   ============================================ */

/* 容器 Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--section-padding-x-mobile);
  padding-right: var(--section-padding-x-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--section-padding-x-tablet);
    padding-right: var(--section-padding-x-tablet);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}

/* 区块 Section */
.section {
  padding-top: var(--section-padding-y-mobile);
  padding-bottom: var(--section-padding-y-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--section-padding-y-tablet);
    padding-bottom: var(--section-padding-y-tablet);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
  }
}

/* 网格布局 Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex 布局 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ============================================
   10. 文字工具类 / Typography Utilities
   ============================================ */

/* 渐变文字 Gradient Text */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 金色文字 */
.text-golden {
  color: var(--color-primary);
}

/* 文字颜色 */
.text-dark { color: var(--color-black); }
.text-gray { color: var(--color-gray-600); }
.text-light { color: var(--color-gray-400); }
.text-white { color: var(--color-white); }

/* 标题样式 Heading Styles */
.heading-hero {
  font-size: var(--text-hero-mobile);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

.heading-h1 {
  font-size: var(--text-h1-mobile);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

.heading-h2 {
  font-size: var(--text-h2-mobile);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.heading-h3 {
  font-size: var(--text-h3-mobile);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

@media (min-width: 1024px) {
  .heading-hero { font-size: var(--text-hero); }
  .heading-h1 { font-size: var(--text-h1); }
  .heading-h2 { font-size: var(--text-h2); }
  .heading-h3 { font-size: var(--text-h3); }
}

/* ============================================
   11. 背景样式 / Background Styles
   ============================================ */

/* 深色背景 */
.bg-dark {
  background: var(--gradient-dark);
}

.bg-dark-solid {
  background-color: var(--color-dark);
}

.bg-dark-gray {
  background-color: var(--color-dark);
}

.bg-dark-gray-95 {
  background-color: rgba(26, 26, 46, 0.95);
}

/* 金色渐变背景 */
.bg-golden {
  background: var(--gradient-primary);
}

/* 浅色背景 */
.bg-light {
  background-color: var(--color-gray-100);
}

/* 网格背景 */
.bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ============================================
   12. 滚动触发动画 / Scroll Animation
   ============================================ */

/* 初始隐藏状态 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-tech),
              transform var(--duration-slower) var(--ease-tech);
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 缩放入场 */
.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.scroll-animate-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* 侧边入场 */
.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.scroll-animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.scroll-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   13. 导航栏样式 / Navigation Styles
   ============================================ */

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--ease-default);
}

.navbar-transparent {
  background: transparent;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

/* 移动端导航栏 */
@media (max-width: 1023px) {
  .navbar {
    height: 64px;
  }
}

/* 导航链接 */
.nav-link {
  position: relative;
  font-size: var(--text-body);
  font-weight: var(--font-medium);
  color: var(--color-black);
  padding: var(--space-2) 0;
  transition: color var(--duration-normal) var(--ease-default);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-default);
}

.nav-link:hover {
  color: var(--color-primary);
}

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

.nav-link.active {
  color: var(--color-primary);
}

/* 深色导航链接 */
.nav-link-dark {
  color: var(--color-white);
}

.nav-link-dark:hover {
  color: var(--color-primary);
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-dark);
  z-index: var(--z-modal);
  transition: right var(--duration-slow) var(--ease-tech);
  padding: 80px var(--space-6) var(--space-6);
}

.mobile-menu.is-open {
  right: 0;
}

/* ============================================
   14. 页脚样式 / Footer Styles
   ============================================ */

.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-10);
}

.footer-link {
  color: var(--color-gray-400);
  transition: color var(--duration-normal) var(--ease-default);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* ============================================
   15. 其他工具类 / Miscellaneous Utilities
   ============================================ */

/* 隐藏元素 */
/* .hidden { display: none !important; } */

/* 屏幕阅读器 */
.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;
}

/* 禁用选择 */
.no-select {
  user-select: none;
}

/* 硬件加速 */
.gpu-accelerate {
  transform: translateZ(0);
  will-change: transform;
}

/* 溢出隐藏 */
.overflow-hidden { overflow: hidden; }

/* 圆角 */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* 响应式显示/隐藏 */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}
