/* ===== 主样式文件 - 导入所有CSS模块 ===== */

/* 基础样式和变量 */
@import url('style.css');

/* 页面特定样式 */
@import url('pages.css');

/* 代码高亮样式 */
@import url('code.css');

/* 组件样式 */
@import url('components.css');

/* ===== 全局覆盖和补充样式 ===== */

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

::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* Firefox 滚动条 */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.3) rgba(17, 24, 39, 0.3);
}

/* 选中文本样式 */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--primary-text-color);
}

::-moz-selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--primary-text-color);
}

/* 焦点样式 */
*:focus {
  outline: 2px solid rgba(0, 212, 255, 0.5);
  outline-offset: 2px;
}

/* 无障碍隐藏 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 打印样式 */
@media print {
  .aurora-background,
  .site-header,
  .site-footer,
  .mobile-nav-overlay {
    display: none !important;
  }
  
  .main-content {
    max-width: none;
    padding: 0;
  }
  
  .glass-container {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .post-content {
    color: black !important;
  }
  
  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6 {
    color: black !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --primary-text-color: #ffffff;
    --secondary-text-color: #cccccc;
    --accent-glow-color: #00ffff;
    --glass-border: rgba(255, 255, 255, 0.5);
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .aurora-layer {
    animation: none !important;
  }
}

/* 深色模式支持（未来扩展） */
@media (prefers-color-scheme: light) {
  /* 如果需要浅色模式，可以在这里添加样式 */
}