
/* 全局变量设置，方便统一管理色彩 */
:root {
  --primary-color: #0d47a1; /* 主色调深蓝 */
  --secondary-color: #6a1b9a; /* 辅助色紫色 */
  --accent-color1: #00e676; /* 点缀色霓虹绿 */
  --accent-color2: #ff9100; /* 点缀色橙色 */
  --background-color: #1e1e1e; /* 页面背景深色 */
  --text-color: #ffffff; /* 文字白色 */
  --section-padding: 60px; /* 各视觉区块内边距 */
}

/* 重置部分默认样式，确保一致性 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 设置全局字体和背景 */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden; /* 防止横向滚动条 */
}

/* 头部样式，包含固定导航栏 */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 20px;
  text-align: center;
  z-index: 1000;
}

.header h1 {
  font-size: 24px;
  color: var(--text-color);
}

/* 提示信息样式，位于显著位置 */
.notice {
  margin-top: 80px; /* 避免被固定头部覆盖 */
  padding: 20px;
  text-align: center;
  background-color: rgba(255, 152, 0, 0.8); /* 橙色半透明背景 */
  border-radius: 8px;
  font-size: 18px;
  color: #000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 主内容容器，使用不对称布局 */
.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 40px;
  padding: var(--section-padding);
  margin: 0 auto;
  max-width: 1200px;
}

/* 数据可视化模块样式 */
.data-visualization {
  background-color: #263238;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
}

.data-visualization img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flowing-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color1), transparent);
  animation: moveLine 3s linear infinite;
}

@keyframes moveLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* 内容区块样式 */
.content-section {
  background-color: #37474f;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.content-section img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 文章内代码块样式，与正文区分 */
.article code {
  display: block;
  background-color: #263238;
  color: #00e676;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  margin: 20px 0;
}

/* 标题样式 */
h2, h3 {
  font-family: 'Roboto Bold', sans-serif;
  color: var(--accent-color2);
  margin-bottom: 15px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

/* 段落样式 */
p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* 导航系统样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 10px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-color1);
}

/* 侧边菜单样式 */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 250px;
  height: 100%;
  background-color: var(--secondary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 16px;
}

.sidebar a:hover {
  color: var(--accent-color1);
}

/* 面包屑导航样式 */
.breadcrumb {
  padding: 10px 20px;
  background-color: #263238;
  color: var(--text-color);
  margin-top: 20px;
  border-radius: 4px;
}

.breadcrumb a {
  color: var(--accent-color1);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 仪表盘样式 */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-widget {
  flex: 1 1 300px;
  background-color: #37474f;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.dashboard-widget:hover {
  transform: translateY(-5px);
}

.dashboard-widget h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--accent-color2);
}

.dashboard-widget p {
  font-size: 16px;
}

/* 社区讨论区样式 */
.community {
  background-color: #263238;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.community-post {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #37474f;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.community-post:hover {
  background-color: #455a64;
}

.community-post p {
  font-size: 16px;
}

/* 脚注样式 */
.footer {
  padding: 20px;
  text-align: center;
  background-color: #263238;
  color: var(--text-color);
  margin-top: 40px;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    width: 200px;
  }

  .dashboard {
    flex-direction: column;
  }

  .breadcrumb {
    font-size: 14px;
  }
}

/* 滚动动画 */
@keyframes drawLine {
  0% {
    stroke-dasharray: 0, 1000;
  }
  100% {
    stroke-dasharray: 1000, 0;
  }
}

/* 导航按钮样式 */
.menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
}


