@charset "UTF-8";
/*
 * ================================================
 * Rocky 主题的首页样式表
 * ================================================
 * 版本：2.0
 * 说明：全面优化页面视觉风格，增强层次感和交互体验
 * 时间：2026-01-16 14:00
 * 兼容性：支持现代浏览器（Chrome, Firefox, Safari, Edge）
 * ================================================
 */

/* ==========================================================================
   1. 基础样式
   ========================================================================== */

/**
 * 页面主体样式
 * - 使用系统字体栈，确保最佳显示效果
 * - 深色渐变背景，营造科技感氛围
 * - 顶部留出导航栏空间
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #0a0e13 0%, #0c1117 50%, #0f1419 100%);
  background-attachment: fixed;
  color: #f8f9fa;
  padding-top: 76px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通用容器样式 */
.container {
  max-width: 1200px;
}


/* ==========================================================================
   2. Hero 主区域
   ========================================================================== */

/**
 * Hero 区域背景
 * - 蓝色系渐变，从深到浅再到深
 * - 营造专业、科技的视觉效果
 */
.bg-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #0c1117 100%);
  position: relative;
  overflow: hidden;
}

/**
 * Hero 区域动态光晕效果
 * - 右上角的动态光圈
 * - 通过动画增强视觉吸引力
 */
.bg-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

/**
 * Hero 区域底部分隔线
 * - 渐变线条，增强区域划分
 */
.bg-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

/**
 * 光晕呼吸动画
 * - 缩放 + 轻微旋转
 * - 创造动态、活跃的视觉效果
 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.3;
  }
}


/* ==========================================================================
   3. CTA（行动号召）区域
   ========================================================================== */

/**
 * CTA 区域背景
 * - 深灰蓝色渐变
 * - 与 Hero 区域区分，但保持统一风格
 */
.bg-hero-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 -20px 40px rgba(59, 130, 246, 0.05);
}

/**
 * CTA 区域双色光点效果
 * - 左侧青色、右侧蓝色光点
 * - 通过动画增加视觉层次
 */
.bg-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

/**
 * 浮动动画
 * - 垂直移动 + 轻微缩放
 * - 营造轻盈、动态的感觉
 */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

/**
 * 确保 Hero 和 CTA 区域内容在装饰层之上
 */
.bg-hero > *, 
.bg-hero-cta > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   4. 卡片组件
   ========================================================================== */

/**
 * 卡片基础样式
 * - 渐变背景增强立体感
 * - 圆角、边框、阴影营造精致感
 * - hover 效果增强交互反馈
 */
.card {
  background: linear-gradient(145deg, #1a2332 0%, #15202e 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: #e4edf9;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/**
 * 卡片顶部装饰线
 * - 仅在 hover 时显示
 * - 增强卡片的活跃感
 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/**
 * 卡片 hover 效果
 * - 上浮 8px
 * - 边框高亮
 * - 阴影增强
 */
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 20px 40px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

.card:hover::before {
  opacity: 1;
}

/**
 * 卡片内次要文字颜色
 */
.card .text-secondary {
  color: rgba(228, 237, 249, 0.85) !important;
}


/* ==========================================================================
   5. 功能图标
   ========================================================================== */

/**
 * 功能图标容器
 * - 圆角方形容器
 * - 渐变背景 + 阴影营造浮起效果
 * - hover 时缩放增强交互
 */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(34, 211, 238, 0.15) 100%);
  color: #6ab7ff;
  font-size: 1.75rem;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

/**
 * 图标光泽效果
 * - hover 时显示
 * - 增强立体感
 */
.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/**
 * 图标 hover 效果
 * - 放大 1.1 倍
 * - 阴影增强
 * - 显示光泽
 */
.card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 
    0 8px 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card:hover .feature-icon::after {
  opacity: 1;
}


/* ==========================================================================
   6. 按钮组件
   ========================================================================== */

/**
 * 按钮基础样式
 * - 圆角 10px
 * - 涟漪动画效果
 * - 平滑过渡动画
 */
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

/**
 * 按钮涟漪效果
 * - hover 时从中心扩散
 * - 模拟水波纹效果
 */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/**
 * 主要按钮（蓝色）
 * - 渐变背景
 * - hover 时颜色加深并上浮
 */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

/**
 * 轮廓按钮（浅色）
 * - 透明背景 + 白色边框
 * - hover 时填充半透明背景
 */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff;
  transform: translateY(-2px);
}

/**
 * 信息按钮（青色）
 * - 渐变背景
 * - hover 时颜色加深并上浮
 */
.btn-info {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.4);
  color: #fff;
}

.btn-info:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

/**
 * 轮廓信息按钮
 * - 透明背景 + 青色边框
 * - hover 时填充半透明背景
 */
.btn-outline-info {
  border: 2px solid rgba(34, 211, 238, 0.4) !important;
  color: #22d3ee;
  background: transparent;
}

.btn-outline-info:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: #22d3ee !important;
  color: #22d3ee;
  transform: translateY(-2px);
}

/**
 * 浅色按钮
 * - 白色背景
 * - hover 时完全不透明并上浮
 */
.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}


/* ==========================================================================
   7. 导航栏
   ========================================================================== */

/**
 * 导航栏容器
 * - 毛玻璃效果（backdrop-filter）
 * - 固定在顶部
 * - 半透明背景 + 模糊效果
 */
.navbar-glass {
  background: rgba(12, 17, 23, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/**
 * 品牌 Logo 样式
 * - 渐变文字效果
 * - hover 时轻微放大
 */
.navbar-brand {
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/**
 * Logo 图片样式
 * - 固定高度确保一致性
 * - 自动调整宽度保持比例
 */
.navbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/**
 * 导航链接样式
 * - 半透明文字
 * - hover 时显示下划线
 * - 平滑过渡动画
 */
.nav-link {
  color: rgba(248, 249, 250, 0.8) !important;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
}

/**
 * 导航链接下划线效果
 * - 从中心向两侧展开
 * - 渐变色下划线
 */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link:hover::after {
  width: 80%;
}


/* ==========================================================================
   8. 区域样式
   ========================================================================== */

/**
 * 深色区域背景
 * - 用于套餐介绍等区域
 * - 与主背景略有区分
 */
.section-dark {
  background: linear-gradient(180deg, #0f1419 0%, #111722 50%, #0f1419 100%);
  position: relative;
}

/**
 * 区域顶部分隔线
 */
.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}


/* ==========================================================================
   9. 文字样式
   ========================================================================== */

/**
 * 次要文字颜色
 * - 用于描述性文字
 * - 降低视觉权重
 */
.text-secondary {
  color: rgba(220, 229, 242, 0.8) !important;
}

/**
 * 信息强调文字
 * - 渐变色文字
 * - 用于标签、标题等
 */
.text-info {
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/**
 * 标题样式优化
 * - 统一字重
 * - 紧凑字距
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/**
 * 大标题文字阴影
 * - 增强层次感
 */
.display-4 {
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.3);
}


/* ==========================================================================
   10. 页脚
   ========================================================================== */

/**
 * 页脚容器
 * - 深色背景
 * - 顶部边框分隔
 */
footer {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  background: #0a0e13;
  position: relative;
}

/**
 * 页脚顶部装饰线
 * - 渐变效果
 */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/**
 * 页脚链接样式
 * - 平滑过渡
 * - hover 时变为蓝色
 */
.footer-link {
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #3b82f6 !important;
}


/* ==========================================================================
   11. 定价卡片特殊样式
   ========================================================================== */

/**
 * 热门套餐卡片
 * - 特殊的深蓝色背景
 * - 动态渐变边框效果
 */
.border-info {
  position: relative;
  background: linear-gradient(145deg, #1e3a5f 0%, #1a2d4d 100%);
}

/**
 * 动态渐变边框
 * - 使用伪元素 + mask 实现
 * - 色相旋转动画营造炫酷效果
 */
.border-info::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee, #3b82f6);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 3s linear infinite;
  pointer-events: none;
}

/**
 * 边框色相旋转动画
 */
@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}


/* ==========================================================================
   12. 图片样式
   ========================================================================== */

/**
 * 响应式图片
 * - hover 时轻微放大
 * - 平滑过渡动画
 */
.img-fluid {
  transition: transform 0.4s ease;
  max-width: 100%;
  height: auto;
}

.img-fluid:hover {
  transform: scale(1.05);
}


/* ==========================================================================
   13. 响应式设计 - 移动端优化
   ========================================================================== */

/**
 * 移动端样式调整
 * - 适配小屏幕设备
 * - 优化触摸交互
 * - 禁用部分动画提升性能
 */
@media (max-width: 768px) {
  /* 调整页面顶部间距 */
  body {
    padding-top: 68px;
  }
  
  /* Hero 区域移动端优化 */
  .bg-hero {
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 40%, #1e40af 70%, #0c1117 100%);
  }
  
  /* 优化动态效果 */
  .bg-hero::before {
    width: 100%;
    height: 150%;
    top: -25%;
    right: 0;
    left: 0;
    opacity: 0.4;
    animation: none; /* 移动端禁用动画，提升性能 */
  }
  
  /* 压缩内边距 */
  .bg-hero .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* 图片间距调整 */
  .bg-hero .col-lg-5 {
    margin-top: 2rem !important;
  }
  
  /* 限制图片高度 */
  .bg-hero .img-fluid {
    max-height: 280px;
    object-fit: cover;
    width: 100%;
  }
  
  /* 标题尺寸调整 */
  .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  /* 描述文字尺寸 */
  .lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* 按钮尺寸调整 */
  .btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* 功能图标尺寸 */
  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  /* 品牌 Logo 尺寸 */
  .navbar-brand {
    font-size: 1.15rem;
  }
  
  /* Logo 图片移动端尺寸 */
  .navbar-logo {
    height: 28px;
  }
  
  /* 导航链接尺寸 */
  .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.8rem !important;
  }
  
  /* 各级标题尺寸 */
  h2 {
    font-size: 1.65rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  h5 {
    font-size: 1.1rem;
  }
  
  /* 卡片内边距 */
  .card {
    padding: 1.25rem !important;
  }
  
  /* CTA 区域移动端优化 */
  .bg-hero-cta::before {
    animation: none; /* 禁用动画提升性能 */
  }
}


/* ==========================================================================
   14. 打印样式
   ========================================================================== */

/**
 * 打印时隐藏不必要的元素
 */
@media print {
  .navbar,
  footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    padding-top: 0;
  }
}

