/* =============================================
   晨鑫项目库 - 超现代化样式
   ============================================= */

/* CSS变量定义 */
:root {
  /* 颜色系统 - 活力乐观的配色 */
  --primary-color: #4facfe;
  --primary-light: #74b9ff;
  --primary-dark: #0984e3;
  --secondary-color: #fd79a8;
  --accent-color: #fdcb6e;
  --success-color: #00b894;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --info-color: #3742fa;
  
  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* 玻璃拟态效果 */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  
  /* 背景色 */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--gray-900);
  
  /* 文字颜色 */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --text-white: var(--white);
  
  /* 阴影系统 - 更丰富的阴影效果 */
  --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 -1px rgba(0, 0, 0, 0.06);
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-neon: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
  
  /* 边框半径 */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* 过渡效果 - 更流畅的动画 */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* 字体 */
  --font-family-base: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 性能优化 */
* {
  will-change: auto;
}

.app-item,
.category,
.btn,
.back-to-top,
.bubble,
.cursor-glow {
  will-change: transform;
}

/* 防止文本选择影响用户体验 */
.app-item,
.btn,
.back-to-top,
.modal-close {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #ff9a9e 50%, #fecfef 75%, #ffecd2 100%);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* 动态背景渐变动画 - 活力四射 */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* 粒子背景效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 220px 220px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* 动态气泡背景效果 */
.bubble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.12) 0%, rgba(253, 121, 168, 0.08) 30%, rgba(253, 203, 110, 0.06) 60%, transparent 100%);
  border-radius: 50%;
  animation: bubbleFloat 15s infinite linear;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 20s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 20%;
  animation-duration: 25s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 40%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 100px;
  height: 100px;
  left: 60%;
  animation-duration: 22s;
  animation-delay: 1s;
}

.bubble:nth-child(5) {
  width: 140px;
  height: 140px;
  left: 75%;
  animation-duration: 28s;
  animation-delay: 3s;
}

.bubble:nth-child(6) {
  width: 70px;
  height: 70px;
  left: 85%;
  animation-duration: 16s;
  animation-delay: 5s;
}

.bubble:nth-child(7) {
  width: 90px;
  height: 90px;
  left: 30%;
  animation-duration: 24s;
  animation-delay: 6s;
}

.bubble:nth-child(8) {
  width: 110px;
  height: 110px;
  left: 50%;
  animation-duration: 26s;
  animation-delay: 2.5s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* 鼠标跟随光晕效果 */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, rgba(253, 121, 168, 0.1) 50%, rgba(253, 203, 110, 0.05) 70%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* 点击波纹效果 */
.click-ripples {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.6) 0%, rgba(253, 121, 168, 0.4) 30%, rgba(253, 203, 110, 0.2) 50%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* 页面加载动画 - 增强效果 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity var(--transition-normal);
}

.loader-content {
  text-align: center;
  color: var(--text-white);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
  margin: 0 auto var(--spacing-lg);
  box-shadow: var(--shadow-glow);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 主要布局 - 玻璃拟态效果 */
.main-header {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.site-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-bounce);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.site-logo:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-glow), var(--shadow-2xl);
  border-color: rgba(255, 255, 255, 0.6);
}

.site-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color), 
    var(--secondary-color), 
    var(--accent-color),
    var(--success-color),
    var(--primary-color)
  );
  background-size: 400% 100%;
  animation: gradient-flow 8s ease-in-out infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-md);
}

/* 分类区域 - 温和的玻璃拟态效果 */
.category {
  margin-bottom: var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease-in-out;
}

.category:hover::before {
  left: 100%;
}

.category:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.title-icon {
  font-size: var(--font-size-3xl);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

/* 应用列表 - 增强网格布局 */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 8px 32px rgba(79, 172, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.98);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  min-height: 160px;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.app-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(79, 172, 254, 0.15), 
    rgba(253, 121, 168, 0.1),
    rgba(253, 203, 110, 0.12)
  );
  opacity: 0.6;
  transition: all var(--transition-normal);
  z-index: 0;
}

.app-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 1;
}

.app-item:hover::before {
  opacity: 0.8;
  background: linear-gradient(135deg, 
    rgba(79, 172, 254, 0.25), 
    rgba(253, 121, 168, 0.2),
    rgba(253, 203, 110, 0.22)
  );
}

.app-item:hover::after {
  width: 120px;
  height: 120px;
}

.app-item:hover,
.app-item:focus {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 48px rgba(79, 172, 254, 0.25), 0 0 20px rgba(253, 121, 168, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

/* 移除过于强烈的发光动画 */

.item-icon {
  position: relative;
  z-index: 2;
  margin-bottom: var(--spacing-lg);
}

.item-icon img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3), 0 0 12px rgba(253, 121, 168, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.4);
  transition: all var(--transition-bounce);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.app-item:hover .item-icon img {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 12px 36px rgba(79, 172, 254, 0.4), 0 0 20px rgba(253, 121, 168, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
}

.item-title {
  position: relative;
  z-index: 2;
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--border-radius-full);
  color: var(--white);
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.item-badge:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.item-badge:not(.hot):not(.new):not(.free) {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.item-badge.hot {
  background: linear-gradient(135deg, #ff6b6b, #fd79a8);
  animation: badgePulse 3s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
}

.item-badge.new {
  background: linear-gradient(135deg, #00b894, #55efc4);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.item-badge.free {
  background: linear-gradient(135deg, var(--info-color), var(--primary-light));
  box-shadow: 0 4px 12px rgba(55, 66, 250, 0.4);
}

@keyframes badgePulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 6px 24px rgba(253, 121, 168, 0.7);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 模态框样式 - 增强玻璃拟态效果 */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.custom-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalSlideIn var(--transition-normal) ease-out;
  color: rgba(255, 255, 255, 0.95);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--gray-200);
  gap: var(--spacing-md);
}

.modal-header img {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
}

.modal-header h3 {
  flex: 1;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-body p {
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wechat-id {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: var(--spacing-lg) 0;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.wechat-id:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
}

.instruction-list {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
}

.instruction-list li {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qr-code {
  width: 220px;
  height: 220px;
  margin: var(--spacing-lg) auto;
  display: none;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl), 0 0 0 2px rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.qr-code:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow), var(--shadow-2xl), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 按钮样式 - 玻璃拟态效果 */
.btn {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 28px rgba(253, 121, 168, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 返回顶部按钮 - 玻璃拟态效果 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--glass-shadow), 0 0 20px rgba(99, 102, 241, 0.4);
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  transition: all var(--transition-bounce);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: rgba(99, 102, 241, 0.5);
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--glass-shadow), 0 0 30px rgba(99, 102, 241, 0.6), var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.4);
}

.back-to-top svg {
  width: 28px;
  height: 28px;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Toast提示 - 玻璃拟态效果 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--glass-shadow), var(--shadow-xl);
  padding: var(--spacing-lg);
  z-index: 10001;
  transform: translateX(400px);
  transition: all var(--transition-bounce);
  max-width: 380px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--success-color);
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.toast.show {
  transform: translateX(0);
}

.toast.success::before {
  background: linear-gradient(180deg, var(--success-color), rgba(16, 185, 129, 0.7));
  box-shadow: 0 0 10px var(--success-color);
}

.toast.error::before {
  background: linear-gradient(180deg, var(--error-color), rgba(239, 68, 68, 0.7));
  box-shadow: 0 0 10px var(--error-color);
}

.toast.warning::before {
  background: linear-gradient(180deg, var(--warning-color), rgba(245, 158, 11, 0.7));
  box-shadow: 0 0 10px var(--warning-color);
}

.toast.info::before {
  background: linear-gradient(180deg, var(--info-color), rgba(59, 130, 246, 0.7));
  box-shadow: 0 0 10px var(--info-color);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--success-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: bold;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: linear-gradient(135deg, var(--success-color), rgba(16, 185, 129, 0.8));
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.toast.error .toast-icon {
  background: linear-gradient(135deg, var(--error-color), rgba(239, 68, 68, 0.8));
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.toast.warning .toast-icon {
  background: linear-gradient(135deg, var(--warning-color), rgba(245, 158, 11, 0.8));
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.toast.info .toast-icon {
  background: linear-gradient(135deg, var(--info-color), rgba(59, 130, 246, 0.8));
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.toast-message {
  flex: 1;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 移动端触摸优化和性能优化 */
@media (hover: none) and (pointer: coarse) {
  /* 禁用所有非必要动画 */
  .app-item:hover,
  .app-item:focus {
    transform: none;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: none;
  }
  
  .app-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .cursor-glow {
    display: none;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .category:hover {
    transform: none;
  }
  
  .back-to-top:hover {
    transform: translateY(0) scale(1);
  }
  
  /* 禁用视差效果 */
  .main-header {
    transform: none !important;
  }
  
  .bubble {
    transform: none !important;
  }
  
  /* 减少动画复杂度 */
  .category::before {
    display: none;
  }
  
  .app-item::before,
  .app-item::after {
    display: none;
  }
  
  .title-icon {
    animation: none;
  }
  
  .item-badge.hot {
    animation: none;
  }
  
  /* 简化背景效果 */
  .bubble-bg {
    display: none;
  }
  
  body::before {
    display: none;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --spacing-2xl: 1.5rem;
  }
  
  /* 移动端背景简化 - 明亮活力配色 */
  body {
    background: linear-gradient(135deg, #74b9ff 0%, #fd79a8 50%, #fdcb6e 100%);
    background-attachment: fixed;
    animation: none;
  }
  
  .main-header {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.12);
  }
  
    .site-title {
    font-size: var(--font-size-2xl);
    flex-direction: column;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .site-logo {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .site-subtitle {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .main-content {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
    .category {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 6px 24px rgba(31, 38, 135, 0.15);
  }

  .category-title {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
  }
  
  .app-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
    .app-item {
    padding: var(--spacing-md);
    min-height: 120px;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-xl);
  }

  .app-item:hover {
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 8px 28px rgba(79, 172, 254, 0.25), 0 0 15px rgba(253, 121, 168, 0.15);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.65);
    transition: all 0.2s ease;
  }
  
  .item-icon {
    margin-bottom: var(--spacing-sm);
  }
  
    .item-icon img {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  }

  .item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  .item-badge {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e) !important;
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(253, 121, 168, 0.4);
  }
  
    .modal-content {
    max-width: 95%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
  }

  .modal-body p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 600;
  }

  .modal-header h3 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  .instruction-list li {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
  }
  
  .wechat-id {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.7);
    font-weight: 900;
  }
  
  .btn {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 800;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
  
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  .toast-message {
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 800;
  }
}

@media (max-width: 480px) {
  .app-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: var(--spacing-md);
  }
  
    .app-item {
    padding: 0.75rem;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius-xl);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  }

  .app-item:hover {
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.25), 0 0 12px rgba(253, 121, 168, 0.12);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
  }
  
  .item-icon {
    margin-bottom: 0.25rem;
  }
  
    .item-icon img {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .item-title {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .item-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: 3px;
    right: 3px;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e) !important;
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
  }
  
    .category {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
  }

  .category-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
  }
  
  .modal-footer {
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .main-content {
    padding: var(--spacing-sm);
  }
}

/* 更小屏幕优化 */
@media (max-width: 375px) {
  .main-content {
    padding: 0.5rem;
  }
  
  .app-list {
    gap: 0.4rem;
  }
  
    .app-item {
    padding: 0.6rem;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 3px 12px rgba(79, 172, 254, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-xl);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  }

  .app-item:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.25), 0 0 10px rgba(253, 121, 168, 0.1);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
  }
  
  .item-icon {
    margin-bottom: 0.2rem;
  }
  
    .item-icon img {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .item-title {
    font-size: 0.75rem;
    line-height: 1.1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .item-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #fd79a8, #fdcb6e) !important;
    color: var(--white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
  }
  
    .category {
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 3px 12px rgba(31, 38, 135, 0.15);
  }

  .category-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
  }
  
  .modal-footer {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-500);
  }
  
  .main-header,
  .category,
  .app-item,
  .modal-content {
    background: rgba(31, 41, 55, 0.95);
    color: var(--text-primary);
  }
  
  .toast {
    background: var(--gray-800);
    color: var(--text-primary);
  }
}

/* 打印样式 */
@media print {
  .page-loader,
  .back-to-top,
  .custom-modal,
  .toast {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .main-header,
  .category,
  .app-item {
    background: white !important;
    box-shadow: none !important;
  }
}

/* 无障碍性增强 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .app-item {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
  
  .btn-secondary {
    border: 2px solid var(--gray-600);
  }
}

/* 选择文本样式 */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--border-radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* 焦点样式 */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 加载状态 */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

 