/* 凡事多想想 官网自定义样式 */

/* 字体设置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Logo 图片处理 */
img {
  max-width: 100%;
  height: auto;
}

/* 导航栏动画 */
nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 卡片悬停效果 */
.grid > div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid > div:hover {
  transform: translateY(-2px);
}

/* 视角卡片特殊效果 */
section:nth-of-type(4) .grid > div:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 渐变背景动画 */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero 区域背景 */
section:first-of-type {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f5f0ff 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* 功能图标动画 */
.grid svg {
  transition: transform 0.3s ease;
}

.grid div:hover svg {
  transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  /* 移动端字体大小调整 */
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  /* 移动端卡片间距 */
  .grid {
    gap: 1rem;
  }
  
  /* 移动端内边距调整 */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* 加载动画 */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 页面加载时的淡入效果 */
section {
  animation: fade-in 0.6s ease-out;
}

section:nth-of-type(2) {
  animation-delay: 0.1s;
}

section:nth-of-type(3) {
  animation-delay: 0.2s;
}

section:nth-of-type(4) {
  animation-delay: 0.3s;
}

section:nth-of-type(5) {
  animation-delay: 0.4s;
}

/* 选中文字颜色 */
::selection {
  background-color: #0e5ece;
  color: white;
}

/* 链接样式 */
a {
  color: #0e5ece;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #50b4ff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

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