/* 自定义样式 */

/* 字体设置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

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

/* 导航栏样式 */
.nav-active {
  color: #2563eb;
  font-weight: 600;
}

nav a {
  transition: color 0.3s ease;
}

nav a:hover {
  color: #2563eb;
}

/* 语言切换按钮 */
[data-lang] {
  transition: all 0.3s ease;
}

[data-lang].active {
  background-color: #2563eb;
  color: white;
}

/* 按钮悬停效果 */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 渐入动画 */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 区域渐变背景 */
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%);
}

/* 产品卡片 */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.product-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* 优势卡片图标 */
.advantage-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #e5e7eb;
}

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

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

/* 表单样式 */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  ring: 2px;
  ring-color: rgba(37, 99, 235, 0.2);
}

/* 移动端菜单动画 */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* 加载动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* 页脚样式 */
footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* 返回顶部按钮 */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* 打印样式 */
@media print {
  nav,
  footer,
  #back-to-top,
  .no-print {
    display: none;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 高亮效果 */
.highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(37, 99, 235, 0.2) 60%);
}

/* 链接悬停下划线效果 */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

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

