/* 非关键CSS - 异步加载 */

/* CSS变量 */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg-primary: #0f0f13;
  --bg-secondary: #1a1a24;
  --text-primary: rgba(255, 255, 255, 0.87);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a24;
}
::-webkit-scrollbar-thumb {
  background: #3d3d52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a4a66;
}

/* Font Awesome 字体 */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-regular-400.woff2) format("woff2");
}
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-solid-900.woff2) format("woff2");
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-brands-400.woff2) format("woff2");
}
.fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', system-ui, sans-serif;
  font-display: swap;
}

/* 交互效果 */
a:hover {
  color: #3b82f6;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
}
button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s;
}

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

/* 响应式图片容器 */
.responsive-img-container {
  position: relative;
  overflow: hidden;
}
.responsive-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 图片懒加载淡入效果 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
img[loading="lazy"].loaded {
  opacity: 1;
}
