/* ======================
 * 公共基础样式与变量定义
 * ====================== */
:root {
  /* 主色调 */
  --primary-color: #4a00ff;
  --primary-hover: #3a00cc;
  --primary-light: rgba(74, 0, 255, 0.1);
  --primary-lg-light: rgba(74, 0, 255, 0.05);
  --primary-shadow: rgba(74, 0, 255, 0.2);
  
  /* 状态色 */
  --danger-color: #ff4757;
  --danger-hover: #e63946;
  --success-color: #2ecc71;
  --success-hover: #27ae60;
  --warning-color: #ffa502;
  --warning-hover: #e67e22;
  
  /* 文本色 */
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --white-text: #fff;
  --light-blue-text: #0ea5e9;
  
  /* 效果 */
  --shadow: 0 2px 12px rgba(74, 0, 255, 0.05);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.03);
  --shadow-primary-md: 0 4px 12px rgba(74,0,255,0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  
  /* 背景相关 */
  --bg-overlay: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
  --bg-fade: 0.3s;
  --bg-spinner: 40px;
  --bg-blur: 12px;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-lg-color: rgba(74, 0, 255, 0.1);
  --light-bg: #f5f5f5;
  --lighter-bg: #fafafa;
  --white: #fff;
  --section-bg: rgba(255, 255, 255, 0.92);
  
  /* 布局 */
  --logo-container-height: 180px;
  --logo-container-height-no-logo: 120px;
  --sidebar-width: 420px;
  --auth-sidebar-width: 280px;
  --search-width: 520px;
  --logo-width: 380px;
  --radius-sm: 4px;
  --radius-smd: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 快捷导航相关 */  
  --icon-size: 75px;
  --text-height: 30px;
  --row-gap: 30px;
  --col-gap: 45px;
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow: hidden;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: Source Sans Pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-overlay);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-color var(--transition-normal);
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* 动画定义 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loadingShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes bg-spin {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@keyframes tab-active {
  from {
    transform: scaleX(0.5);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes confirm-fadein {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}