/* CSS变量定义 */
:root {
  --primary: #0066ff;
  --primary-dark: #0052d4;
  --primary-light: #3385ff;
  --secondary: #00c9b7;
  --accent: #ff6b35;
  --success: #00c853;
  --warning: #ff9800;
  --dark: #1a237e;
  --light: #f8fdff;
  --gray: #64748b;
  --border: #e3f2fd;
  --navbar-height: 70px;
  --card-shadow: 0 8px 30px rgba(0, 102, 255, 0.08);
  --hover-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础全局样式 */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 通用容器 */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用工具类 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* 通用动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFloat1 {
  0%, 100% { transform: translateX(-50%) rotate(-10deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-10deg) translateY(-15px); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-15px); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-15px); }
}

@keyframes cardFloat4 {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-15px); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 统一的动画类 */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

.animate-spin {
  animation: spin 0.75s linear infinite;
}

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

/* 过渡效果 */
.transition-all {
  transition: var(--transition);
}

.transition-transform {
  transition: transform var(--transition);
}

.transition-opacity {
  transition: opacity var(--transition);
}

.transition-colors {
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

/* 通用加载动画 */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: #6c757d;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* 响应式通用样式 */
@media (max-width: 1200px) {
  .container-main {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  .container-main {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container-main {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .container-main {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .container-main {
    padding: 0 5px;
  }
}

/* 通用卡片样式 */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

/* 通用按钮样式 */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

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

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* 阴影工具 */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Flex布局工具 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* 网格布局 */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 间距工具 */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* 显示/隐藏工具 */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

/* 定位工具 */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 宽度/高度工具 */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }

.min-h-screen { min-height: 100vh; }

/* 文本工具 */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-white { color: white; }
.text-black { color: black; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.italic { font-style: italic; }

.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* 圆角工具 */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* 边框工具 */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

.border-solid { border-style: solid; }
.border-dashed { border-style: dashed; }
.border-dotted { border-style: dotted; }

.border-transparent { border-color: transparent; }
.border-current { border-color: currentColor; }

/* 背景颜色 */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-transparent { background-color: transparent; }

/* 光标工具 */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* 用户选择 */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* 不透明度 */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* 可见性 */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* 列表样式 */
.list-none { list-style-type: none; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* 表格布局 */
.table { display: table; }
.table-row { display: table-row; }
.table-cell { display: table-cell; }

/* 变换 */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.transform-none { transform: none; }
.translate-x-0 { --tw-translate-x: 0px; }
.translate-y-0 { --tw-translate-y: 0px; }
.translate-x-full { --tw-translate-x: 100%; }
.translate-y-full { --tw-translate-y: 100%; }

/* 滤镜 */
.filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
.filter-none { filter: none; }
.blur-none { --tw-blur: blur(0); }
.blur-sm { --tw-blur: blur(4px); }
.blur { --tw-blur: blur(8px); }
.blur-md { --tw-blur: blur(12px); }
.blur-lg { --tw-blur: blur(16px); }
.blur-xl { --tw-blur: blur(24px); }
.blur-2xl { --tw-blur: blur(40px); }

/* 悬停效果 */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:shadow-lg:hover { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); }
.hover\:shadow-xl:hover { box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2); }

/* 焦点效果 */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary); }
.focus\:ring-opacity-50:focus { --tw-ring-opacity: 0.5; }

/* 激活效果 */
.active\:scale-95:active { transform: scale(0.95); }

/* 禁用状态 */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* 响应式工具 */
@media (max-width: 640px) {
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
  .sm\:flex { display: flex; }
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-base { font-size: 1rem; }
}

@media (max-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-lg { font-size: 1.125rem; }
}

@media (max-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: hidden; }
  .lg\:flex { display: flex; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-xl { font-size: 1.25rem; }
}

/* ===== 通用导航栏样式 ===== */
.navbar-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-brand {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 201, 183, 0.1));
}

.navbar-brand:hover {
  color: var(--secondary);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 201, 183, 0.2));
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.navbar-brand .icon {
  color: var(--secondary);
  font-size: 1.8rem;
  transition: var(--transition);
}

.navbar-brand:hover .icon {
  color: var(--primary-light);
  transform: scale(1.1);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  overflow: visible;
  margin-left: auto;
  padding-left: 15px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: auto;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

.mobile-toggle-btn {
  display: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.3rem;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: var(--transition);
  border-radius: 8px;
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* 导航栏响应式 */
@media (min-width: 993px) {
  .nav-link .icon {
    display: none;
  }
  
  .nav-link {
    padding: 8px 12px;
  }
}

@media (max-width: 992px) {
  .mobile-toggle-btn {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    max-height: 70vh;
    overflow-y: auto;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    margin: 3px 0;
    padding: 12px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
  }
  
  .nav-link .icon {
    display: inline-block;
    width: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-brand .icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.1rem;
    padding: 6px 10px;
  }
  
  .navbar-brand .icon {
    font-size: 1.3rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 10px 10px;
  }
}

/* ===== 通用首页Hero样式 ===== */
.hero-section {
  background: linear-gradient(135deg, #f8fdff 0%, #e3f2fd 50%, #bbdefb 100%);
  color: var(--dark);
  padding: 100px 0 60px;
  margin-top: var(--navbar-height);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 201, 183, 0.05) 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.hero-title .site-name {
  color: var(--primary-dark);
  font-weight: 900;
  position: relative;
  display: inline;
}

.hero-title .site-name::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.3;
  border-radius: 3px;
  z-index: -1;
}

.hero-title .separator {
  color: var(--primary);
  margin: 0 10px;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: var(--dark);
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 35px;
  color: var(--dark);
  opacity: 0.8;
  max-width: 500px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.08);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.stat-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 60px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.cta-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.6s;
}

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

.cta-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.cta-btn.secondary {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.1);
}

.cta-btn.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.hero-visual {
  position: relative;
  height: 400px;
}

.hero-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-item {
  position: absolute;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.card-1 {
  top: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  background: linear-gradient(135deg, #667eea, #764ba2);
  animation: cardFloat1 4s ease-in-out infinite;
}

.card-2 {
  top: 80px;
  left: 30px;
  transform: rotate(5deg);
  background: linear-gradient(135deg, #f093fb, #f5576c);
  animation: cardFloat2 4s ease-in-out infinite 0.5s;
}

.card-3 {
  top: 150px;
  left: 60%;
  transform: rotate(8deg);
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  animation: cardFloat3 4s ease-in-out infinite 1s;
}

.card-4 {
  top: 220px;
  left: 40px;
  transform: rotate(-5deg);
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  animation: cardFloat4 4s ease-in-out infinite 1.5s;
}

.card-item .icon {
  font-size: 3rem;
  color: white;
  opacity: 0.9;
}

/* 首页响应式 */
@media (max-width: 1200px) {
  .hero-content {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .cta-btn {
    padding: 16px 50px;
    max-width: 250px;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-visual {
    height: 350px;
    order: -1;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .cta-btn {
    max-width: 220px;
    padding: 16px 40px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-item {
    padding: 10px;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    font-size: 1rem;
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* ===== 分类页面通用样式 ===== */
.category-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-top: 100px;
}

.container-category {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-header {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.category-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--dark);
}

.category-description {
  color: var(--gray);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 25px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--gray);
  font-size: 0.95rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

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

.article-body {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-badge {
  display: inline-block;
  margin-bottom: 15px;
}

.category-badge .badge {
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.article-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

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

.article-excerpt {
  color: var(--gray);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray);
}

.meta-item .icon {
  color: var(--primary);
}

.pagination-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 5px;
}

.page-item {
  margin: 0 2px;
}

.page-link {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 500;
}

.page-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-item.disabled .page-link {
  background: #f8f9fa;
  color: var(--gray);
  cursor: not-allowed;
}

.loading-indicator {
  text-align: center;
  margin: 30px 0;
  display: none;
}

.no-more-content {
  text-align: center;
  margin: 30px 0;
  display: none;
}

/* 分类页面响应式 */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .category-header {
    padding: 30px 20px;
  }
  .category-title {
    font-size: 2.2rem;
  }
  .category-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-header {
    padding: 25px 15px;
  }
  .category-title {
    font-size: 1.8rem;
  }
  .category-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-item {
    flex: 1 1 45%;
    min-width: 120px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .article-excerpt {
    display: none;
  }
  .article-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .article-card {
    padding: 20px;
  }
  .container-category {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .category-header {
    padding: 20px 10px;
  }
  .category-title {
    font-size: 1.5rem;
  }
  .article-body {
    padding: 0;
  }
  .article-card {
    padding: 15px;
  }
}

/* ===== 页脚通用样式 ===== */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 30px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 L1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100% 100px;
  background-position: bottom;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  grid-column: span 1;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-links a .icon {
  font-size: 0.8rem;
  color: var(--secondary);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-info .icon {
  color: var(--secondary);
  font-size: 1.1rem;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-bottom {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links-bottom a:hover {
  color: var(--secondary);
}

.icp-number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.icp-number a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.icp-number a:hover {
  color: var(--secondary);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--secondary), #00a395);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 201, 183, 0.3);
}

/* 页脚响应式 */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-logo {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 25px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-logo {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-links-bottom {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer-main {
    gap: 25px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .footer-links a,
  .contact-info li {
    font-size: 0.9rem;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* CSS图标基础样式补充 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.icon-sm { width: 0.75em; height: 0.75em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

.icon-white { color: white; }
.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-gray { color: var(--gray); }

/* 卡片图标样式 */
.card-item .icon {
  font-size: 3rem;
  color: white;
  opacity: 0.9;
}

/* 统计数据图标样式 */
.stat-icon .icon {
  color: white;
  font-size: 1.2rem;
}

/* 按钮图标样式 */
.cta-btn .icon {
  margin-right: 0.5em;
}

/* 元数据图标样式 */
.meta-item .icon {
  color: var(--primary);
  font-size: 0.9em;
}

/* 页脚图标样式 */
.footer-links a .icon {
  color: var(--secondary);
  font-size: 0.8rem;
}

.contact-info .icon {
  color: var(--secondary);
  font-size: 1.1rem;
}