
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
  background-color: #121212; /* 深色背景 */
  color: #EAEAEA; /* 主文字颜色 */
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1E1E1E;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.navbar a {
  color: #03A9F4; /* 亮色链接 */
  text-decoration: none;
  font-size: 16px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #8BC34A; /* 悬停颜色变化 */
}

/* 主要内容区域 */
.container {
  max-width: 1200px;
  margin: 100px auto 50px; /* 留出导航栏空间 */
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* 卡片样式 */
.card {
  background-color: #1E1E1E;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

/* 图片样式 */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* 标题样式 */
h1, h2, h3, h4 {
  color: #03A9F4;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* 代码块样式 */
pre {
  background-color: #1E1E1E;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

pre code {
  color: #8BC34A;
  font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.button-gradient {
  background: linear-gradient(45deg, #03A9F4, #8BC34A);
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.button-gradient:hover {
  transform: scale(1.05);
}

/* 折叠区域样式 */
.collapsible {
  background-color: #1E1E1E;
  color: #EAEAEA;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #03A9F4;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #2C2C2C;
}

/* 导航链接样式 */
.nav-links {
  display: flex;
  flex-wrap: wrap;
}

.nav-links a {
  margin: 5px 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .navbar a {
    margin: 10px 0;
  }
}

/* 主题切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #03A9F4;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  background-color: #8BC34A;
  transform: rotate(360deg);
}

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

/* 提示信息样式 */
.reference-note {
  background-color: #8BC34A;
  color: #121212;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2em;
}

