
/* 基本样式设置，包括字体、背景、颜色等 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0D47A1, #6A1B9A); /* 渐变背景模拟夜空与极光 */
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #00F260;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
}

.navbar .nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #00F260;
}

.navbar .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar .hamburger div {
  width: 25px;
  height: 3px;
  background: #FFFFFF;
  margin: 4px;
  transition: all 0.3s;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(13, 71, 161, 0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .navbar .hamburger {
    display: flex;
  }
}

/* 动态极光效果的样式 */
@keyframes aurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.aurora {
  height: 300px;
  background: linear-gradient(-45deg, #00F260, #0575E6, #00F260, #0575E6);
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}

/* 矩阵容器的布局 */
.matrix-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 50px;
}

.matrix-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.matrix-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

/* 数据可视化图表样式 */
.chart {
  display: flex;
  align-items: flex-end;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
}

.bar {
  width: 30px;
  margin: 0 10px;
  background: linear-gradient(to top, #00F260, #0575E6);
  border-radius: 5px 5px 0 0;
  transition: height 0.3s;
}

.bar:hover {
  height: 180px;
}

/* 按钮样式 */
.button {
  background: linear-gradient(45deg, #00F260, #0575E6);
  border: none;
  padding: 15px 30px;
  color: #FFFFFF;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.button:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #0575E6, #00F260);
}

/* 章节导航系统样式 */
.chapter-nav {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(13, 71, 161, 0.8);
  padding: 20px;
  border-radius: 10px;
  max-width: 200px;
}

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

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

.chapter-nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s;
}

.chapter-nav ul li a:hover {
  color: #00F260;
}

/* 内容区域样式 */
.content {
  padding: 400px 50px 50px 50px;
}

.content h2, .content h3, .content h4 {
  color: #00F260;
}

.content pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
}

.content code {
  color: #00F260;
}

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

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

/* 折叠区域样式 */
.collapsible {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  transition: background 0.3s;
  border-radius: 5px;
  margin: 10px 0;
}

.collapsible:hover {
  background: rgba(255, 255, 255, 0.2);
}

.active, .collapsible:hover {
  background: rgba(255, 255, 255, 0.2);
}

.content .content-section {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.content .content-section p {
  margin: 15px 0;
}

/* 页面底部样式 */
.footer {
  background: rgba(13, 71, 161, 0.9);
  padding: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}

.footer-section h3 {
  color: #00F260;
  margin-bottom: 20px;
}

.footer-section p {
  color: #FFFFFF;
  line-height: 1.6;
}

/* 提示信息样式 */
.notice {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 18px;
  color: #FFFFFF;
  z-index: 999;
  animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

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

.code-block code {
  color: #00F260;
  font-family: 'Courier New', Courier, monospace;
}

/* 链接样式 */
a {
  color: #00F260;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0575E6;
}

