/* 全局样式增强 */
body {
  min-height: 100vh;
  font-size: 16px;
}

/* 链接样式 */
a {
  transition: color 0.3s ease;
}

/* 卡片悬停效果 */
div[style*="box-shadow"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div[style*="box-shadow"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* 按钮样式 */
button, .button {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  background: #0066cc;
  color: #fff;
  font-size: 14px;
}

button:hover, .button:hover {
  background: #0052a3;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 16px !important;
  }
}

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#backToTop:hover {
  background: #0052a3;
  transform: translateY(-3px);
}

#backToTop.show {
  display: flex;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,102,204,.3);
  border-radius: 50%;
  border-top-color: #0066cc;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* UI风格变体 */
body.ui-style-0 { --primary-color: #0066cc; }
body.ui-style-1 { --primary-color: #cc6600; }
body.ui-style-2 { --primary-color: #00cc66; }
body.ui-style-3 { --primary-color: #cc0066; }
body.ui-style-4 { --primary-color: #6600cc; }
body.ui-style-5 { --primary-color: #00cccc; }
body.ui-style-6 { --primary-color: #cc6666; }
body.ui-style-7 { --primary-color: #66cc00; }
body.ui-style-8 { --primary-color: #0066ff; }
body.ui-style-9 { --primary-color: #ff6600; }
body.ui-style-10 { --primary-color: #00ff66; }
body.ui-style-11 { --primary-color: #ff0066; }
body.ui-style-12 { --primary-color: #6600ff; }
body.ui-style-13 { --primary-color: #00ffff; }
body.ui-style-14 { --primary-color: #ff6666; }
body.ui-style-15 { --primary-color: #66ff00; }

/* 列表项动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* 选中文本样式 */
::selection {
  background: #0066cc;
  color: #fff;
}

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

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

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

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