
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
  background: linear-gradient(135deg, #0D47A1, #42A5F5); /* 主背景渐变 */
  color: #ffffff;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.8); /* 半透明背景 */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #FFD700; /* 点缀色金色 */
}

/* 侧边导航样式 */
.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 200px;
  background: rgba(13, 71, 161, 0.9);
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
  background: #76FF03; /* 荧光绿 */
  color: #000000;
  padding-left: 10px;
}

/* 主内容区样式 */
.main-content {
  margin-left: 220px;
  padding: 100px 30px 30px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 文章样式 */
article h2, article h3, article h4 {
  color: #FFD700; /* 金色标题 */
}

article p {
  font-size: 16px;
  margin-bottom: 20px;
}

article pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

article code {
  font-family: 'Courier New', Courier, monospace;
  color: #76FF03; /* 荧光绿代码 */
}

/* 图片样式 */
img.decorative {
  width: 100%;
  max-width: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin: 0;
    padding: 100px 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar a {
    margin: 5px 0;
  }
}

/* 按钮样式 */
.button {
  background-color: #76FF03; /* 荧光绿背景 */
  color: #000000;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background-color: #FFD700; /* 金色背景 */
  transform: scale(1.05);
}

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

.fade-in {
  animation: fadeInUp 1s ease forwards;
}

/* 代码示例块样式 */
.code-sample {
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

.code-sample code {
  color: #76FF03;
  font-family: 'Courier New', Courier, monospace;
}

/* 提示信息样式 */
.notice {
  background: rgba(255, 215, 0, 0.2); /* 半透明金色 */
  padding: 15px;
  border-left: 5px solid #FFD700;
  margin-bottom: 30px;
  border-radius: 5px;
}

/* 卡片式布局 */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

/* 按钮组样式 */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

