/* ============================================
   页面专用样式 & 关键帧动画
   ============================================ */

/* ===== 关键帧动画 ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 224, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 224, 255, 0.6); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 97% { transform: scaleY(0.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes dataFlow {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(400%); opacity: 0; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-r)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}

/* ===== 首页 Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(0, 224, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero h1 .typing-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Hero 视觉 ---- */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 1s ease 0.3s both;
}

.hero-orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,224,255,0.3), rgba(139,92,246,0.15) 60%, transparent);
  border: 1px solid var(--border-glow);
  position: relative;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(0, 224, 255, 0.2), inset 0 0 60px rgba(0, 224, 255, 0.1);
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(0, 224, 255, 0.2);
  border-radius: 50%;
  animation: rotateGlow 20s linear infinite;
}

.hero-orb::after {
  content: '';
  position: absolute;
  inset: -50px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  animation: rotateGlow 30s linear infinite reverse;
}

.hero-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  animation: rotateGlow 40s linear infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.hero-code-block {
  position: absolute;
  background: rgba(13, 18, 40, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: floatSlow 5s ease-in-out infinite;
}

.hero-code-block.top-right {
  top: 20px;
  right: 0;
  animation-delay: -1s;
}

.hero-code-block.bottom-left {
  bottom: 30px;
  left: -10px;
  animation-delay: -2.5s;
}

.code-line { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.code-key { color: var(--accent-purple); }
.code-val { color: var(--accent-green); }
.code-sym { color: var(--text-muted); }
.code-fn  { color: var(--accent-cyan); }

/* 浮动图标 */
.hero-icon-float {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-card);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: floatSlow 4s ease-in-out infinite;
  color: var(--accent-cyan);
}

.hero-icon-float svg { width: 24px; height: 24px; }
.hero-icon-float.i1 { top: 10%; left: 5%; animation-delay: 0s; }
.hero-icon-float.i2 { top: 15%; right: 8%; animation-delay: -1.5s; color: var(--accent-purple); }
.hero-icon-float.i3 { bottom: 15%; right: 5%; animation-delay: -3s; color: var(--accent-green); }

/* ===== 服务网格 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card .card-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 224, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
}

.service-card ul {
  margin-top: 16px;
}

.service-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== 产品展示 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.product-visual {
  height: 200px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(6,8,24,0.6));
}

.product-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(0,224,255,0.3));
  position: relative;
  z-index: 1;
  animation: floatSlow 4s ease-in-out infinite;
}

.product-info { padding: 28px; }

.product-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tag {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(148, 163, 196, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

/* ===== 案例展示 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.case-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.case-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
  transform: translateX(6px);
}

.case-visual {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.case-emoji { font-size: 4rem; position: relative; z-index: 1; }

.case-info { padding: 36px; }

.case-industry {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
}

.case-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.case-results {
  display: flex;
  gap: 28px;
  margin-bottom: 18px;
}

.case-result .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.case-result .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.case-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tech span {
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
}

/* ===== 解决方案 ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.solution-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,224,255,0.06), transparent);
  transition: all 0.5s;
}

.solution-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
}

.solution-card:hover::after {
  top: -20%;
  right: -20%;
  width: 300px;
  height: 300px;
}

.solution-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.6;
  margin-bottom: 10px;
}

.solution-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.solution-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.about-stat:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
}

.about-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.about-values {
  margin-top: 28px;
}

.value-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.value-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  transition: all 0.4s var(--ease-out);
}

.team-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--border-glow);
  border-radius: 50%;
  animation: rotateGlow 8s linear infinite;
  border-style: dashed;
}

.team-card h4 { font-size: 1.1rem; font-weight: 700; }
.team-role { color: var(--accent-cyan); font-size: 0.85rem; margin-bottom: 12px; }
.team-desc { color: var(--text-secondary); font-size: 0.88rem; }

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 0 0 40px 40px;
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
  right: auto;
}

.timeline-content {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.timeline-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== CTA 区块 ===== */
.cta-section {
  background: var(--grad-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,224,255,0.1), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ===== 流程步骤 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -30%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  z-index: 0;
}

.process-step:last-child::after { display: none; }

.process-num {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-card);
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out);
}

.process-step:hover .process-num {
  background: var(--grad-primary);
  color: #060818;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 224, 255, 0.4);
}

.process-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--text-secondary); font-size: 0.88rem; }

/* ===== 技术栈 ===== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.tech-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.tech-item .tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 160px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding: 0 0 30px 50px; }
  .timeline-item:nth-child(even) { left: 0; padding: 0 0 30px 50px; }
  .timeline-dot { left: 12px; right: auto; }
  .timeline-item:nth-child(even) .timeline-dot { left: 12px; }
  .cta-section { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .case-results { flex-wrap: wrap; gap: 16px; }
}
