/* =====================================================
   自定义样式 + 动画（暗黑科技风）
   深炭黑 #0F1118 / 卡片 #171A23 / 品牌蓝 #3B44F6 / 品牌紫 #9D22E0
   ===================================================== */

/* 平滑滚动 */
html { scroll-behavior: smooth; }

/* =====================================================
   0. 基础排版 + 12 列工程网格背景（透明度 3%）
   ===================================================== */
body {
  line-height: 1.7;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%, 100% 96px;
  background-attachment: fixed, fixed;
}

/* 大标题字体：Space Grotesk（几何科技感），正文 Inter */
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0F1118; }
::-webkit-scrollbar-thumb { background: #3B44F6; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #5A7DFF; }

/* =====================================================
   1. 基础动画（首屏入场）
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 68, 246, 0.3); }
  50%      { box-shadow: 0 0 25px rgba(59, 68, 246, 0.6); }
}

.animate-fade-in   { animation: fadeIn 0.8s ease-out both; }
.animate-fade-in-up{ animation: fadeInUp 1s ease-out 0.2s both; }

/* 滚动入场（js 加 .revealed--active 时触发） */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.revealed--active {
  opacity: 1;
  transform: translateY(0);
}

/* 微交互：按钮按下轻微下沉 */
button:active {
  transform: translateY(1px);
}

/* =====================================================
   2. 导航条（滚动后变实底色）
   ===================================================== */
#navbar { background-color: transparent; }
#navbar.scrolled {
  background-color: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #252A38;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.mobile-link {
  color: #B5B8C3;
  transition: color 0.2s;
}
.mobile-link:hover { color: #3B44F6; }

/* =====================================================
   3. 卡片（通用：碳灰卡片 + #252A38 边框 + 悬浮电光蓝）
   ===================================================== */
.service-card,
.project-card,
.testimonial-card,
.pricing-card {
  background-color: #171A23;
  border: 1px solid #252A38;
  border-radius: 0.5rem;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* 全站卡片悬停统一：蓝边 + 光晕 + 轻微放大（与价格卡方案一致） */
.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.process-step:hover,
.pricing-card:hover {
  transform: scale(1.02);
  border-color: #3B44F6;
  box-shadow: 0 0 30px rgba(59, 68, 246, 0.15);
}

/* =====================================================
   4. 技术栈徽章
   ===================================================== */
.tech-badge {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #171A23;
  border: 1px solid #252A38;
  border-radius: 0.375rem;
  color: #B5B8C3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.tech-badge:hover {
  border-color: #3B44F6;
  color: #3B44F6;
  transform: translateY(-2px);
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #3B44F6;
  background-color: rgba(59, 68, 246, 0.1);
  border-radius: 0.25rem;
}

/* =====================================================
   5. 数据指标卡片（荧光绿大数字 + 雾灰说明，左对齐）
   ===================================================== */
.metric-card {
  padding: 0.75rem;
  background-color: #0F1118;
  border: 1px solid #252A38;
  border-radius: 0.375rem;
}

/* =====================================================
   6. 流程步骤
   ===================================================== */
.process-step {
  padding: 1.5rem;
  background-color: #171A23;
  border: 1px solid #252A38;
  border-radius: 0.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* =====================================================
   7. 评价卡片（作者行沉底，三卡对齐；悬停走全站统一规则）
   ===================================================== */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card > div:last-child { margin-top: auto; }
/* 头像提亮环：纯品牌蓝，与流程区 01-04 数字同亮度 */
.testimonial-card img {
  box-shadow: 0 0 0 2px #3B44F6, 0 0 12px rgba(59, 68, 246, 0.45);
}

/* =====================================================
   8. 价格表（中间一张高亮）
   ===================================================== */
.pricing-card-featured {
  border-color: #3B44F6;
  box-shadow: 0 0 30px rgba(59, 68, 246, 0.15);
  transform: scale(1.02);
}
.pricing-card-featured:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(59, 68, 246, 0.3);
}
/* 三张卡悬停统一为高亮态（与中间 POPULAR 卡一致） */
.pricing-card:hover {
  border-color: #3B44F6;
  box-shadow: 0 0 30px rgba(59, 68, 246, 0.15);
  transform: scale(1.02);
}
/* 三卡等高：按钮统一沉底对齐 */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card > a { margin-top: auto; }
/* 幽灵按钮悬停 → 变成与 POPULAR 卡一致的蓝紫渐变按钮 */
.pricing-card > a:hover {
  background-image: linear-gradient(100deg, #3B44F6 0%, #7B3BEB 55%, #9D22E0 100%);
  background-size: 140% 140%;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(90, 125, 255, 0.45);
}

/* =====================================================
   9. 表单焦点效果
   ===================================================== */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(59, 68, 246, 0.15);
}

/* =====================================================
   10. 选中文字高亮
   ===================================================== */
::selection {
  background-color: #3B44F6;
  color: #FFFFFF;
}

/* =====================================================
   11. 减少动效偏好（无障碍）
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =====================================================
   12. 打印样式（如果客户要打印报价单）
   ===================================================== */
@media print {
  #navbar, #mobileMenuBtn, .fixed.bottom-6 { display: none; }
  body { background: white; color: black; }
}

/* =====================================================
   13. 品牌渐变（主按钮 #3B44F6 → #9D22E0，仅主按钮；Logo 渐变字）
   微光线条色：蓝 #5A7DFF / 紫 #B066FF（低透明度 10%-25%）
   ===================================================== */
.bg-primary {
  background-image: linear-gradient(100deg, #3B44F6 0%, #7B3BEB 55%, #9D22E0 100%);
  background-size: 140% 140%;
  transition: background-position 0.3s, box-shadow 0.3s;
}
a.bg-primary:hover,
button.bg-primary:hover {
  background-position: 90% 50%;
  box-shadow: 0 0 20px rgba(90, 125, 255, 0.45);
}
.logo-gradient {
  background-image: linear-gradient(90deg, #5A7DFF 0%, #3B44F6 40%, #9D22E0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================
   14. 信任跑马灯（案例名横向缓慢滚动，两端渐隐，悬停暂停）
   ===================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
  list-style: none;
}
.marquee-set li {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  white-space: nowrap;
  transition: color 0.2s;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
