
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
  background: linear-gradient(135deg, #1e3c72, #2a5298); /* 背景渐变蓝紫色 */
  color: rgba(255, 255, 255, 0.9); /* 文字颜色为半透明白色 */
  line-height: 1.6;
}

/* 玻璃拟态效果的容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 顶部导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.navbar a:hover {
  color: #00ffcc; /* 点缀色悬停效果 */
}

/* 主内容区样式 */
.main-content {
  padding-top: 80px; /* 为固定导航栏预留空间 */
}

section {
  margin-bottom: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ff66cc; /* 点缀色用于标题 */
}

section h3 {
  font-size: 22px;
  margin-top: 30px;
  color: #00ffcc;
}

section p {
  font-size: 16px;
  margin-bottom: 15px;
}

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

.code-example code {
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}

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

img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 20px;
  background: linear-gradient(45deg, #00ffcc, #ff66cc);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #ff66cc, #00ffcc);
}

/* 章节导航系统样式 */
.chapter-nav {
  position: fixed;
  right: 20px;
  top: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 10px;
}

.chapter-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapter-nav li {
  margin-bottom: 10px;
}

.chapter-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.chapter-nav a:hover {
  color: #ff66cc;
}

/* 强调提示语样式 */
.prominent-note {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #ff66cc;
  margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .chapter-nav {
    display: none; /* 小屏幕隐藏章节导航 */
  }

  .container {
    padding: 15px;
  }

  section {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 10px 0;
    font-size: 14px;
  }

  section h2 {
    font-size: 24px;
  }

  section h3 {
    font-size: 20px;
  }

  .prominent-note {
    font-size: 16px;
  }
}

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

section {
  animation: fadeInUp 1s ease forwards;
}

/* 精美边框样式 */
.fancy-border {
  border: 2px dashed #00ffcc;
  padding: 10px;
  border-radius: 10px;
}

/* 按钮动画 */
.button-animated {
  position: relative;
  overflow: hidden;
}

.button-animated::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s;
}

.button-animated:hover::after {
  left: 0;
}

