/* 全局样式文件 - 现代极简风格技术服务官网 */

/* 自定义 Tailwind 配置 - 防止样式冲突 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 全局变量定义 */
:root {
  --color-gray-light: #f5f5f7;
  --color-white: #ffffff;
  --color-lime-gradient-start: #a3e635;
  --color-lime-gradient-end: #84cc16;
  --color-gray-dark: #1f2937;
  --color-gray-medium: #6b7280;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  overflow-x: hidden;
}

/* 粒子动画容器 */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 全屏动态背景 */
.hero-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* 光纤粒子动画 */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-lime-gradient-start), var(--color-lime-gradient-end));
  border-radius: 50%;
  animation: float-particle 6s infinite ease-in-out;
}

/* 页面淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* CTA 按钮样式 */
.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  font-weight: 500;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(163, 230, 53, 0.3);
}

/* 导航链接悬停效果 */
.nav-link {
  position: relative;
  color: var(--color-gray-medium);
  text-decoration: none;
  transition: var(--transition-smooth);
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-lime-gradient-start), var(--color-lime-gradient-end));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-lime-gradient-start);
}

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

/* 价值主张卡片 */
.value-card {
  background: var(--color-gray-light);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 数据可视化容器 */
.chart-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

/* 代码片段滚动效果 */
@keyframes code-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.code-snippet {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 24px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: var(--color-lime-gradient-start);
}

.code-content {
  animation: code-scroll 20s linear infinite;
}

/* 服务卡片样式 */
.service-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  transition: var(--transition-smooth);
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  border-color: var(--color-lime-gradient-start);
  box-shadow: 0 12px 24px rgba(163, 230, 53, 0.2);
}

/* 时间轴样式 */
.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-lime-gradient-start), var(--color-lime-gradient-end));
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% + 16px);
  background: #e5e7eb;
}

.timeline-item:last-child::after {
  display: none;
}

/* 案例展示样式 */
.case-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.case-image:hover {
  transform: scale(1.02);
}

/* 博客卡片样式 */
.blog-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid #e5e7eb;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 筛选标签样式 */
.filter-tag {
  display: inline-block;
  padding: 8px 24px;
  background: var(--color-gray-light);
  color: var(--color-gray-medium);
  border-radius: 9999px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-tag:hover {
  background: var(--color-lime-gradient-start);
  color: var(--color-white);
}

/* 波纹效果 */
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(163, 230, 53, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 2s infinite;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .hero-background { height: 100vh; }
  .value-card { padding: 24px; }
  .service-card { padding: 24px; }
  .chart-container { height: 300px; }
  .code-snippet { height: 300px; }
  .case-image { height: 250px; }
  .timeline-item { padding-left: 32px; }
}

/* 页脚样式 */
footer {
  background: var(--color-gray-light);
  padding: 48px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(135deg, var(--color-lime-gradient-start), var(--color-lime-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 网格线背景 */
.grid-background {
  background-image: 
    linear-gradient(rgba(163, 230, 53, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* 隐藏滚动条但保持功能 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-lime-gradient-start);
}