/**
 * 低代码平台学习中心 - 统一样式表
 * 适用于 CN 目录下所有平台学习中心页面
 * 颜色规范: MIC品牌色纯色系统（嫩绿#10B981 + 深蓝#0a0e27 + 白灰）
 * 版本: 3.0 - 全面优化版
 * 更新时间: 2026-01-10
 */

/* ==================== 基础样式 ==================== */
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 全局背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== 卡片样式 ==================== */
.jdy-card, .tech-card, .card-tech {
  background: linear-gradient(to bottom right, #FFFFFF 0%, #F9FAFB 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.jdy-card::before, .tech-card::before, .card-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  pointer-events: none;
}

.jdy-card:hover, .tech-card:hover, .card-tech:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}

.jdy-card:hover::before, .tech-card:hover::before, .card-tech:hover::before {
  opacity: 1;
}

/* ==================== 标题样式 ==================== */
.section-title {
  color: #10B981;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== 动画效果 ==================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); }
}

.icon-box {
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: scale(1.08);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Hero区背景动效 */
@keyframes gradient-shift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: gradient-shift 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-bg-orb-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  animation-delay: 0s;
}

.hero-bg-orb-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  animation-delay: 4s;
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
  background: #10B981;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #10B981;
  border: 2px solid rgba(16, 185, 129, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.6);
}

/* ==================== 导航样式 ==================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* ==================== 容器样式 ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==================== 标签样式 ==================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-primary {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ==================== 链接样式 ==================== */
a {
  transition: all 0.3s ease;
}

.text-link {
  color: #10B981;
  text-decoration: none;
}

.text-link:hover {
  color: #059669;
  text-decoration: underline;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: #10B981;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
  .jdy-card, .tech-card, .card-tech {
    margin-bottom: 1rem;
  }
  
  .hero-bg-orb-1, .hero-bg-orb-2 {
    width: 300px;
    height: 300px;
  }
}
