/**
 * 🎨 AI艺术二维码 - 高级黑主题设计
 * 世界顶级UI设计 - 专为AI产品打造
 * Design by: World-Class UI Designer
 */

/* ===== 🌈 AI高级黑色彩系统 ===== */
:root {
  /* 🖤 主色调 - 高级黑色系 */
  --ai-black-primary: #0D0D0D;          /* 主黑 - 深邃碳黑 */
  --ai-black-secondary: #1A1A1A;        /* 辅黑 - 柔和石墨 */
  --ai-black-tertiary: #2A2A2A;         /* 三级黑 - 暖炭灰 */
  --ai-black-surface: #151515;          /* 表面黑 - 卡片背景 */
  
  /* 🔵 AI科技色彩 */
  --ai-blue-neon: #00D4FF;              /* 霓虹蓝 - 主要强调色 */
  --ai-blue-electric: #0099CC;          /* 电光蓝 - 次要强调色 */
  --ai-blue-glow: rgba(0, 212, 255, 0.15); /* 蓝色辉光 */
  
  /* 🟣 AI渐变紫 */
  --ai-purple-start: #6366F1;           /* 渐变起始紫 */
  --ai-purple-end: #8B5CF6;             /* 渐变结束紫 */
  --ai-purple-glow: rgba(99, 102, 241, 0.2); /* 紫色辉光 */
  
  /* ⚪ 高对比色彩 */
  --ai-white-pure: #FFFFFF;             /* 纯白 - 文字标题 */
  --ai-white-soft: #F5F5F5;             /* 柔白 - 次要文字 */
  --ai-gray-light: #A0A0A0;             /* 浅灰 - 描述文字 */
  --ai-gray-border: #333333;            /* 边框灰 */
  
  /* 🎯 状态色彩 */
  --ai-success: #00FF88;                /* AI成功绿 */
  --ai-warning: #FFB800;                /* AI警告橙 */
  --ai-danger: #FF4757;                 /* AI错误红 */
  --ai-info: #00D4FF;                   /* AI信息蓝 */
  
  /* 🔮 AI特效色彩 */
  --ai-gradient-primary: linear-gradient(135deg, var(--ai-blue-neon) 0%, var(--ai-purple-end) 100%);
  --ai-gradient-surface: linear-gradient(145deg, var(--ai-black-secondary) 0%, var(--ai-black-tertiary) 100%);
  --ai-gradient-card: linear-gradient(135deg, var(--ai-black-surface) 0%, var(--ai-black-secondary) 100%);
  
  /* 🎪 阴影系统 */
  --ai-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
  --ai-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.4);
  --ai-shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.5);
  --ai-shadow-glow: 0 0 24px var(--ai-blue-glow);
  --ai-shadow-purple: 0 8px 32px var(--ai-purple-glow);
  
  /* 📏 尺寸系统 */
  --ai-radius-small: 8px;
  --ai-radius-medium: 12px;
  --ai-radius-large: 16px;
  --ai-radius-xl: 24px;
  
  /* ⚡ 动画系统 */
  --ai-transition-fast: all 0.2s ease;
  --ai-transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ai-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 🌍 全局基础样式 ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ai-black-primary);
  color: var(--ai-white-soft);
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== 🎯 AI科技背景效果 ===== */
.ai-bg-primary {
  background: var(--ai-black-primary);
  position: relative;
}

.ai-bg-primary::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, var(--ai-blue-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--ai-purple-glow) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ===== 📝 AI文字系统 ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ai-white-pure);
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--ai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  color: var(--ai-gray-light);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

.ai-text-gradient {
  background: var(--ai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-text-glow {
  text-shadow: 0 0 20px var(--ai-blue-neon);
}

/* ===== 🎮 AI按钮系统 ===== */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--ai-radius-medium);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ai-transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

/* 🔵 主要AI按钮 */
.ai-btn-primary {
  background: var(--ai-gradient-primary);
  color: var(--ai-white-pure);
  box-shadow: var(--ai-shadow-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ai-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
  color: var(--ai-white-pure);
}

.ai-btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

/* 🖤 次要AI按钮 */
.ai-btn-secondary {
  background: var(--ai-black-surface);
  color: var(--ai-white-pure);
  border: 2px solid var(--ai-gray-border);
  box-shadow: var(--ai-shadow-soft);
}

.ai-btn-secondary:hover {
  background: var(--ai-black-tertiary);
  border-color: var(--ai-blue-neon);
  box-shadow: 0 0 20px var(--ai-blue-glow);
  color: var(--ai-white-pure);
}

/* 👻 透明AI按钮 */
.ai-btn-ghost {
  background: transparent;
  color: var(--ai-blue-neon);
  border: 2px solid var(--ai-blue-neon);
}

.ai-btn-ghost:hover {
  background: var(--ai-blue-neon);
  color: var(--ai-black-primary);
  box-shadow: var(--ai-shadow-glow);
}

/* 🎯 图标按钮 */
.ai-btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--ai-gradient-surface);
  border: 1px solid var(--ai-gray-border);
}

.ai-btn-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--ai-shadow-glow);
}

/* 📐 按钮尺寸 */
.ai-btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  min-height: 40px;
}

.ai-btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
  min-height: 56px;
}

.ai-btn-xl {
  padding: 22px 44px;
  font-size: 1.25rem;
  min-height: 64px;
}

/* ===== 🃏 AI卡片系统 ===== */
.ai-card {
  background: var(--ai-gradient-card);
  border: 1px solid var(--ai-gray-border);
  border-radius: var(--ai-radius-large);
  box-shadow: var(--ai-shadow-medium);
  padding: 24px;
  transition: var(--ai-transition-smooth);
  position: relative;
  overflow: hidden;
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ai-shadow-strong);
  border-color: var(--ai-blue-neon);
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ai-gradient-primary);
  opacity: 0;
  transition: var(--ai-transition-smooth);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card-glow {
  box-shadow: var(--ai-shadow-glow);
}

.ai-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ai-gray-border);
}

.ai-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ai-white-pure);
  margin: 0;
}

.ai-card-subtitle {
  font-size: 0.875rem;
  color: var(--ai-gray-light);
  margin: 4px 0 0 0;
}

/* ===== 📝 AI表单系统 ===== */
.ai-form-group {
  margin-bottom: 24px;
}

.ai-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ai-white-pure);
  margin-bottom: 8px;
}

.ai-form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--ai-black-surface);
  border: 2px solid var(--ai-gray-border);
  border-radius: var(--ai-radius-medium);
  color: var(--ai-white-pure);
  font-size: 1rem;
  transition: var(--ai-transition-smooth);
}

.ai-form-control:focus {
  outline: none;
  border-color: var(--ai-blue-neon);
  box-shadow: 0 0 0 3px var(--ai-blue-glow);
  background: var(--ai-black-secondary);
}

.ai-form-control::placeholder {
  color: var(--ai-gray-light);
}

/* 🔘 AI选择器 */
.ai-select {
  position: relative;
}

.ai-select::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ai-blue-neon);
  pointer-events: none;
}

/* 📊 AI进度条 */
.ai-progress {
  width: 100%;
  height: 8px;
  background: var(--ai-black-tertiary);
  border-radius: var(--ai-radius-small);
  overflow: hidden;
  position: relative;
}

.ai-progress-bar {
  height: 100%;
  background: var(--ai-gradient-primary);
  border-radius: var(--ai-radius-small);
  transition: width 0.3s ease;
  position: relative;
}

.ai-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: ai-progress-shimmer 2s infinite;
}

@keyframes ai-progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 🚨 AI警告和状态 ===== */
.ai-alert {
  padding: 16px 20px;
  border-radius: var(--ai-radius-medium);
  border-left: 4px solid;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.ai-alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--ai-success);
  color: var(--ai-success);
}

.ai-alert-warning {
  background: rgba(255, 184, 0, 0.1);
  border-color: var(--ai-warning);
  color: var(--ai-warning);
}

.ai-alert-danger {
  background: rgba(255, 71, 87, 0.1);
  border-color: var(--ai-danger);
  color: var(--ai-danger);
}

.ai-alert-info {
  background: var(--ai-blue-glow);
  border-color: var(--ai-info);
  color: var(--ai-info);
}

/* ===== 🔍 AI加载动画 ===== */
.ai-loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ai-gray-border);
  border-top: 3px solid var(--ai-blue-neon);
  border-radius: 50%;
  animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-pulse {
  animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ⚡ AI特效动画 ===== */
.ai-glow-effect {
  position: relative;
}

.ai-glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--ai-gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--ai-transition-smooth);
}

.ai-glow-effect:hover::before {
  opacity: 0.7;
  filter: blur(8px);
}

/* 🌊 波浪动画 */
.ai-wave {
  position: relative;
  overflow: hidden;
}

.ai-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.2),
    transparent
  );
  animation: ai-wave-slide 3s infinite;
}

@keyframes ai-wave-slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== 📱 响应式设计 ===== */
@media (max-width: 768px) {
  .ai-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .ai-card {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .ai-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  
  .ai-card {
    padding: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* ===== 🎭 AI品牌特色 ===== */
.ai-brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--ai-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ai-qr-frame {
  border: 2px solid var(--ai-blue-neon);
  border-radius: var(--ai-radius-medium);
  box-shadow: 
    0 0 20px var(--ai-blue-glow),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
  position: relative;
}

.ai-qr-frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--ai-gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
  filter: blur(4px);
}

/* ===== 🧭 AI导航系统 ===== */
.ai-nav-link {
  color: var(--ai-gray-light) !important;
  font-weight: 500;
  padding: 12px 16px !important;
  border-radius: var(--ai-radius-medium);
  transition: var(--ai-transition-smooth);
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.ai-nav-link:hover {
  color: var(--ai-blue-neon) !important;
  background: rgba(0, 212, 255, 0.1) !important;
  transform: translateY(-1px);
}

.ai-nav-link.active {
  color: var(--ai-blue-neon) !important;
  background: var(--ai-blue-glow) !important;
  box-shadow: 0 0 10px var(--ai-blue-glow);
}

.ai-nav-link.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--ai-gradient-primary);
  border-radius: 1px;
}

.ai-dropdown-item {
  color: var(--ai-white-soft) !important;
  padding: 12px 20px !important;
  transition: var(--ai-transition-smooth);
  border-radius: var(--ai-radius-small);
  margin: 4px 8px;
}

.ai-dropdown-item:hover {
  color: var(--ai-white-pure) !important;
  background: var(--ai-black-tertiary) !important;
  transform: translateX(4px);
}

.ai-user-menu {
  backdrop-filter: blur(10px);
}

.ai-credits-badge {
  animation: ai-pulse 3s infinite;
}

/* ===== 🔧 实用工具类 ===== */
.ai-text-center { text-align: center; }
.ai-text-left { text-align: left; }
.ai-text-right { text-align: right; }

.ai-d-flex { display: flex; }
.ai-flex-column { flex-direction: column; }
.ai-justify-center { justify-content: center; }
.ai-align-center { align-items: center; }
.ai-gap-1 { gap: 8px; }
.ai-gap-2 { gap: 16px; }
.ai-gap-3 { gap: 24px; }

.ai-mb-1 { margin-bottom: 8px; }
.ai-mb-2 { margin-bottom: 16px; }
.ai-mb-3 { margin-bottom: 24px; }
.ai-mb-4 { margin-bottom: 32px; }

.ai-mt-1 { margin-top: 8px; }
.ai-mt-2 { margin-top: 16px; }
.ai-mt-3 { margin-top: 24px; }
.ai-mt-4 { margin-top: 32px; }

.ai-p-1 { padding: 8px; }
.ai-p-2 { padding: 16px; }
.ai-p-3 { padding: 24px; }
.ai-p-4 { padding: 32px; }

.ai-w-full { width: 100%; }
.ai-h-full { height: 100%; }

.ai-hidden { display: none; }
.ai-visible { display: block; }

/* ===== 🎪 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ai-black-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--ai-gray-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ai-blue-neon);
}
