/**
 * BTCY 前端优化 - 模块色系主题
 * 定义四大业务模块的色彩系统：品牌/商城/新闻/元宇宙
 */

/* ==========================================
   CSS自定义属性（变量）
   ========================================== */

:root {
  /* 品牌基础色 */
  --btcy-brand-gold: #b4a078;
  --btcy-brand-gold-light: #d4a574;
  --btcy-brand-gold-dark: #8a7555;
  
  /* 商城模块 - 蓝紫渐变 */
  --btcy-mall-primary: #667eea;
  --btcy-mall-secondary: #764ba2;
  --btcy-mall-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btcy-mall-gradient-reverse: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --btcy-mall-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  --btcy-mall-shadow-hover: 0 8px 25px rgba(102, 126, 234, 0.6);
  --btcy-mall-glow: 0 0 15px rgba(102, 126, 234, 0.6);
  --btcy-mall-glow-hover: 0 0 25px rgba(102, 126, 234, 0.8);
  
  /* 新闻/企业模块 - 青蓝渐变 */
  --btcy-news-primary: #00c6fb;
  --btcy-news-secondary: #005bea;
  --btcy-news-gradient: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  --btcy-news-gradient-reverse: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
  --btcy-news-shadow: 0 4px 15px rgba(0, 198, 251, 0.4);
  --btcy-news-shadow-hover: 0 8px 25px rgba(0, 198, 251, 0.6);
  --btcy-news-glow: 0 0 15px rgba(0, 198, 251, 0.6);
  --btcy-news-glow-hover: 0 0 25px rgba(0, 198, 251, 0.8);
  
  /* 元宇宙/科技模块 - 深紫渐变 */
  --btcy-metaverse-primary: #2d1b69;
  --btcy-metaverse-secondary: #11001c;
  --btcy-metaverse-gradient: linear-gradient(135deg, #2d1b69 0%, #11001c 100%);
  --btcy-metaverse-gradient-reverse: linear-gradient(135deg, #11001c 0%, #2d1b69 100%);
  --btcy-metaverse-shadow: 0 4px 20px rgba(45, 27, 105, 0.6);
  --btcy-metaverse-shadow-hover: 0 8px 30px rgba(45, 27, 105, 0.8);
  --btcy-metaverse-glow: 0 0 20px rgba(45, 27, 105, 0.8);
  --btcy-metaverse-glow-hover: 0 0 30px rgba(45, 27, 105, 1);
  
  /* 品牌区域 - 金棕渐变 */
  --btcy-brand-gradient: linear-gradient(135deg, #b4a078 0%, #d4a574 100%);
  --btcy-brand-gradient-reverse: linear-gradient(135deg, #d4a574 0%, #b4a078 100%);
  --btcy-brand-shadow: 0 4px 15px rgba(180, 160, 120, 0.4);
  --btcy-brand-shadow-hover: 0 8px 25px rgba(180, 160, 120, 0.6);
  --btcy-brand-glow: 0 0 15px rgba(180, 160, 120, 0.6);
  --btcy-brand-glow-hover: 0 0 25px rgba(180, 160, 120, 0.8);
}

/* ==========================================
   商城模块样式
   ========================================== */

/* 商城页面头部 */
.btcy-mall-header {
  background: var(--btcy-mall-gradient);
  padding: 40px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btcy-mall-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.btcy-mall-header h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 商城商品卡片增强 */
.btcy-mall-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btcy-mall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btcy-mall-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.btcy-mall-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--btcy-mall-shadow);
}

.btcy-mall-card:hover::before {
  transform: scaleX(1);
}

/* 商城价格文字增强 */
.btcy-mall-price {
  font-size: 20px;
  font-weight: 700;
  background: var(--btcy-mall-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 商城标签 */
.btcy-mall-badge {
  background: var(--btcy-mall-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ==========================================
   新闻模块样式
   ========================================== */

/* 新闻页面头部 */
.btcy-news-header {
  background: var(--btcy-news-gradient);
  padding: 40px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btcy-news-header::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.btcy-news-header h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

/* 新闻列表项增强 */
.btcy-news-item {
  position: relative;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btcy-news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--btcy-news-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.btcy-news-item:hover {
  transform: translateX(4px);
  box-shadow: var(--btcy-news-shadow);
}

.btcy-news-item:hover::before {
  transform: scaleY(1);
}

/* 新闻标题 */
.btcy-news-title {
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

.btcy-news-item:hover .btcy-news-title {
  color: var(--btcy-news-primary);
}

/* 新闻元信息 */
.btcy-news-meta {
  color: #999;
  font-size: 13px;
}

.btcy-news-meta i {
  color: var(--btcy-news-primary);
  margin-right: 4px;
}

/* 新闻摘要 */
.btcy-news-excerpt {
  color: #666;
  line-height: 1.6;
}

/* 新闻阅读更多按钮 */
.btcy-news-read-more {
  color: var(--btcy-news-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btcy-news-read-more:hover {
  color: var(--btcy-news-secondary);
  text-shadow: 0 0 8px rgba(0, 198, 251, 0.4);
}

/* ==========================================
   元宇宙模块样式
   ========================================== */

/* 元宇宙页面背景 */
.btcy-metaverse-wrapper {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
  overflow: hidden;
}

.btcy-metaverse-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* 元宇宙内容区 */
.btcy-metaverse-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* 元宇宙卡片 */
.btcy-metaverse-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.btcy-metaverse-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: var(--btcy-metaverse-glow);
  transform: translateY(-4px);
}

/* 元宇宙标题 */
.btcy-metaverse-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #a18cd1 50%, #fbc2eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* 元宇宙按钮 */
.btcy-metaverse-btn {
  background: var(--btcy-metaverse-gradient);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btcy-metaverse-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btcy-metaverse-btn:hover::before {
  width: 300px;
  height: 300px;
}

.btcy-metaverse-btn:hover {
  box-shadow: var(--btcy-metaverse-glow-hover);
  transform: translateY(-2px);
}

/* 元宇宙链接 */
.btcy-metaverse-link {
  color: #a18cd1;
  transition: all 0.3s ease;
  position: relative;
}

.btcy-metaverse-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #a18cd1);
  transition: width 0.3s ease;
}

.btcy-metaverse-link:hover {
  color: #fbc2eb;
  text-shadow: 0 0 10px rgba(161, 140, 209, 0.6);
}

.btcy-metaverse-link:hover::after {
  width: 100%;
}

/* ==========================================
   品牌模块样式
   ========================================== */

/* 品牌导航栏增强 */
.btcy-brand-navbar {
  background: var(--btcy-brand-gradient);
  box-shadow: 0 2px 10px rgba(180, 160, 120, 0.3);
}

/* 品牌页脚增强 */
.btcy-brand-footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-top: 3px solid;
  border-image: var(--btcy-brand-gradient) 1;
  padding: 40px 0 20px;
  color: #ccc;
}

.btcy-brand-footer h3 {
  color: var(--btcy-brand-gold);
  font-weight: 600;
}

.btcy-brand-footer a {
  color: #ccc;
  transition: color 0.3s ease;
}

.btcy-brand-footer a:hover {
  color: var(--btcy-brand-gold);
}

/* 品牌CTA区域 */
.btcy-brand-cta {
  background: var(--btcy-brand-gradient);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--btcy-brand-shadow);
  transition: all 0.3s ease;
}

.btcy-brand-cta:hover {
  box-shadow: var(--btcy-brand-shadow-hover);
  transform: translateY(-4px);
}

.btcy-brand-cta h2 {
  font-weight: 700;
  margin-bottom: 16px;
}

/* ==========================================
   通用模块样式
   ========================================== */

/* 模块标签 */
.btcy-module-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.btcy-module-tag-mall {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: var(--btcy-mall-primary);
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.btcy-module-tag-news {
  background: linear-gradient(135deg, rgba(0, 198, 251, 0.1), rgba(0, 91, 234, 0.1));
  color: var(--btcy-news-primary);
  border: 1px solid rgba(0, 198, 251, 0.3);
}

.btcy-module-tag-metaverse {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(45, 27, 105, 0.1));
  color: #a18cd1;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.btcy-module-tag-brand {
  background: linear-gradient(135deg, rgba(180, 160, 120, 0.1), rgba(212, 165, 116, 0.1));
  color: var(--btcy-brand-gold);
  border: 1px solid rgba(180, 160, 120, 0.3);
}

/* 分割线增强 */
.btcy-divider {
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, transparent, rgba(180, 160, 120, 0.3), transparent);
  border: none;
}

.btcy-divider-mall {
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.btcy-divider-news {
  background: linear-gradient(90deg, transparent, rgba(0, 198, 251, 0.3), transparent);
}

.btcy-divider-metaverse {
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

/* ==========================================
   响应式适配
   ========================================== */

@media (max-width: 767px) {
  .btcy-mall-header,
  .btcy-news-header {
    padding: 24px 0;
  }
  
  .btcy-metaverse-title {
    font-size: 24px;
  }
  
  .btcy-brand-cta {
    padding: 24px;
  }
}
