﻿/* 维特软件 - 全局自定义样式 */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0066FF;
  border-radius: 3px;
}

/* 首屏渐变背景 */
.hero-gradient {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d2137 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 卡片悬浮效果 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.12);
}

/* 渐变文字 */
.text-gradient {
  background: linear-gradient(135deg, #0066FF, #00AAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 按钮渐变 */
.btn-primary {
  background: linear-gradient(135deg, #0066FF, #0052CC);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0052CC, #003D99);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

/* 分割线装饰 */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0066FF, #00AAFF);
  border-radius: 2px;
}

/* 导航下拉菜单 */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 移动端菜单 */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* 轮播 */
.carousel-slide {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  inset: 0;
}
.carousel-slide.active {
  opacity: 1;
  position: relative;
}

/* 数字计数动画 */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* 淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 回到顶部按钮 */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* 表单样式 */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  outline: none;
}

/* 标签页 */
.tab-btn.active {
  color: #0066FF;
  border-bottom: 2px solid #0066FF;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* 时间线 */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #0066FF;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #0066FF;
}

/* 合作伙伴 logo 灰度 */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* 页面加载动画 */
.page-loader {
  transition: opacity 0.4s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-gradient {
    min-height: auto;
  }
}
