/**
 * BTCY 前端优化 - 核心增强样式
 * 包含：渐变背景、发光边框、几何装饰、按钮增强、卡片效果
 */

/* ==========================================
   1. 渐变背景工具类
   ========================================== */

/* 商城蓝紫渐变 */
.btcy-gradient-mall {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
}

/* 新闻青蓝渐变 */
.btcy-gradient-news {
  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  background-size: 200% 200%;
}

/* 元宇宙深紫渐变 */
.btcy-gradient-metaverse {
  background: linear-gradient(135deg, #2d1b69 0%, #11001c 100%);
  background-size: 200% 200%;
}

/* 品牌金棕渐变 */
.btcy-gradient-brand {
  background: linear-gradient(135deg, #b4a078 0%, #d4a574 100%);
  background-size: 200% 200%;
}

/* ==========================================
   2. 文字渐变效果
   ========================================== */

.btcy-text-gradient-mall {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btcy-text-gradient-news {
  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btcy-text-gradient-metaverse {
  background: linear-gradient(135deg, #667eea 0%, #a18cd1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btcy-text-gradient-brand {
  background: linear-gradient(135deg, #b4a078 0%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   3. 发光边框系统
   ========================================== */

/* 商城发光边框 */
.btcy-glow-border-mall {
  position: relative;
  border: none !important;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.btcy-glow-border-mall::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btcy-glow-border-mall:hover {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.btcy-glow-border-mall:hover::before {
  opacity: 1;
}

/* 新闻发光边框 */
.btcy-glow-border-news {
  position: relative;
  border: none !important;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.btcy-glow-border-news::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btcy-glow-border-news:hover {
  box-shadow: 0 4px 20px rgba(0, 198, 251, 0.3);
  transform: translateY(-2px);
}

.btcy-glow-border-news:hover::before {
  opacity: 1;
}

/* 元宇宙发光边框 */
.btcy-glow-border-metaverse {
  position: relative;
  border: none !important;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btcy-glow-border-metaverse::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%, #2d1b69 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btcy-glow-border-metaverse:hover {
  box-shadow: 0 4px 25px rgba(45, 27, 105, 0.4);
  transform: translateY(-2px);
}

.btcy-glow-border-metaverse:hover::before {
  opacity: 1;
}

/* 品牌发光边框 */
.btcy-glow-border-brand {
  position: relative;
  border: none !important;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.btcy-glow-border-brand::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #b4a078 0%, #d4a574 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btcy-glow-border-brand:hover {
  box-shadow: 0 4px 20px rgba(180, 160, 120, 0.3);
  transform: translateY(-2px);
}

.btcy-glow-border-brand:hover::before {
  opacity: 1;
}

/* ==========================================
   4. 几何装饰线条
   ========================================== */

.btcy-geometric-line {
  position: relative;
  display: inline-block;
}

.btcy-geometric-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b4a078 0%, #d4a574 100%);
  transition: width 0.4s ease;
}

.btcy-geometric-line:hover::after {
  width: 100%;
}

.btcy-geometric-line-mall::after {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.btcy-geometric-line-news::after {
  background: linear-gradient(90deg, #00c6fb 0%, #005bea 100%);
}

.btcy-geometric-line-metaverse::after {
  background: linear-gradient(90deg, #667eea 0%, #2d1b69 100%);
}

/* ==========================================
   5. 按钮增强效果
   ========================================== */

.btcy-btn-gradient {
  position: relative;
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.btcy-btn-gradient::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;
}

.btcy-btn-gradient:hover::before {
  left: 100%;
}

.btcy-btn-mall {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btcy-btn-mall:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btcy-btn-news {
  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  box-shadow: 0 4px 15px rgba(0, 198, 251, 0.3);
}

.btcy-btn-news:hover {
  box-shadow: 0 6px 20px rgba(0, 198, 251, 0.5);
  transform: translateY(-2px);
}

.btcy-btn-metaverse {
  background: linear-gradient(135deg, #667eea 0%, #2d1b69 100%);
  box-shadow: 0 4px 15px rgba(45, 27, 105, 0.4);
}

.btcy-btn-metaverse:hover {
  box-shadow: 0 6px 20px rgba(45, 27, 105, 0.6);
  transform: translateY(-2px);
}

.btcy-btn-brand {
  background: linear-gradient(135deg, #b4a078 0%, #d4a574 100%);
  box-shadow: 0 4px 15px rgba(180, 160, 120, 0.3);
}

.btcy-btn-brand:hover {
  box-shadow: 0 6px 20px rgba(180, 160, 120, 0.5);
  transform: translateY(-2px);
}

/* ==========================================
   6. 卡片悬浮效果
   ========================================== */

.btcy-card-hover {
  transition: all 0.3s ease;
}

.btcy-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   7. 粒子背景容器
   ========================================== */

.btcy-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 静态渐变背景（移动端降级） */
.btcy-static-gradient-fallback {
  background: linear-gradient(135deg, rgba(180, 160, 120, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
}

.btcy-static-gradient-fallback-metaverse {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.3) 0%, rgba(17, 0, 28, 0.5) 100%);
}

/* ==========================================
   8. 页面头部增强
   ========================================== */

.btcy-page-header {
  position: relative;
  padding: 40px 0;
  margin-bottom: 30px;
  color: #fff;
  overflow: hidden;
}

.btcy-page-header h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btcy-page-header p {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   9. 装饰元素
   ========================================== */

/* 浮动装饰块 */
.btcy-float-decoration {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

/* 光晕效果 */
.btcy-glow-effect {
  position: relative;
}

.btcy-glow-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btcy-glow-effect:hover::after {
  opacity: 1;
}

/* ==========================================
   10. 加载动画
   ========================================== */

.btcy-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: btcy-shimmer 1.5s infinite;
}

@keyframes btcy-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================
   11. 响应式适配
   ========================================== */

@media (max-width: 767px) {
  .btcy-page-header {
    padding: 20px 0;
    margin-bottom: 20px;
  }
  
  .btcy-geometric-line::after {
    width: 40px;
    height: 2px;
  }
  
  .btcy-btn-gradient {
    padding: 8px 16px;
    font-size: 12px;
  }
}
