/* 基础样式优化 */
:root {
  /* 颜色系统 */
  --primary-color: #0a1a35;
  --secondary-color: #093483;
  --accent-color: #e0e0e0;
  --text-color: #333;
  --text-light: #6b7280;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-light: #e2e8f0;
  --gray-dark: #374151;
  --success-color: #38a169;
  --warning-color: #d69e2e;
  --error-color: #e53e3e;

  /* 间距系统 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* 字体大小 */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  /* 过渡效果 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 8px -1px rgba(0, 0, 0, 0.1),
    0 3px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* 圆角 */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-50: 50px;

  /* 层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* 重置与基础样式 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", "Source Han Sans", "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* 列表重置 */
ul,
ol {
  list-style: none;
}

/* 容器系统 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container-sm {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.container-lg {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.container-full {
  width: 96%;
  margin: 0 auto;
}

/* ========== 全局按钮系统优化 ========== */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-sm) var(--space-xl);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: 50px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(0, 50, 160, 0.25);
  background: linear-gradient(145deg, #243b77, #6b8dff);
  color: #fff;
}

/* 金属光带 */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: all 0.6s ease;
}

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

/* 悬浮磁力效果 */
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(80, 130, 255, 0.4);
}

/* 点击回弹 */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* 聚焦边框 */
.btn:focus-visible {
  outline: 2px solid rgba(100, 160, 255, 0.6);
  outline-offset: 2px;
}

/* 禁用状态 */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== 尺寸变体 ===== */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
}

/* ===== 按钮类型 ===== */

/* 1️⃣ 主要按钮（蓝色渐变） */
.btn-primary {
  background: linear-gradient(145deg, #2445a0, #6f95ff);
}

/* 2️⃣ 次要按钮（银灰金属风） */
.btn-secondary {
  background: linear-gradient(145deg, #5f6675, #9ea6b8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 120, 150, 0.4);
}
.btn-secondary:hover {
  background: linear-gradient(145deg, #7c8598, #b7bfd3);
}

/* 3️⃣ 边框按钮（磁性描边） */
.btn-outline {
  background: transparent;
  border: 2px solid #6b8dff;
  color: #6b8dff;
  box-shadow: none;
}
.btn-outline:hover {
  background: linear-gradient(145deg, #2445a0, #6f95ff);
  color: #fff;
  border-color: transparent;
}

/* 4️⃣ 透明幽灵按钮 */
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #cfd7ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
.btn-ghost:hover {
  background: rgba(100, 130, 255, 0.15);
  color: #fff;
}

/* 5️⃣ 成功 / 警告 / 错误 */
.btn-success {
  background: linear-gradient(145deg, #2f855a, #48bb78);
  box-shadow: 0 4px 15px rgba(40, 150, 90, 0.4);
}
.btn-success:hover {
  background: linear-gradient(145deg, #38a169, #68d391);
}

.btn-warning {
  background: linear-gradient(145deg, #b7791f, #f6ad55);
  box-shadow: 0 4px 15px rgba(200, 140, 20, 0.4);
}
.btn-warning:hover {
  background: linear-gradient(145deg, #d69e2e, #fbd38d);
}

.btn-error {
  background: linear-gradient(145deg, #c53030, #fc8181);
  box-shadow: 0 4px 15px rgba(200, 40, 40, 0.4);
}
.btn-error:hover {
  background: linear-gradient(145deg, #e53e3e, #feb2b2);
}

/* ===== 图标支持 ===== */
.btn i {
  margin-right: 8px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: rotate(-8deg) scale(1.1);
}

/* ===== 发光磁波动画（适用于重要按钮） ===== */
@keyframes magneticPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 160, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(100, 160, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(100, 160, 255, 0);
  }
}

.btn-primary:hover {
  animation: magneticPulse 1.8s infinite;
}


/* 间距工具类 */
.section-padding {
  padding: var(--space-2xl) 0;
}

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

.section-padding-lg {
  padding: var(--space-2xl) 0;
}

/* 文本工具类 */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}

.text-light {
  color: var(--text-light);
}
.text-white {
  color: var(--white);
}

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

/* 减少动画（无障碍支持） */
@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;
  }

  .btn::before {
    display: none;
  }
}

.right{
  float: right;
}

.left{
  float: left;
}