
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 主要导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .logo {
  font-size: 1.5em;
  font-family: 'Exo', sans-serif;
  color: #ffffff;
}

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

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

/* 侧边导航栏样式 */
.sidebar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 250px;
  height: calc(100% - 80px);
  background: rgba(0, 0, 0, 0.7);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
}

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

.sidebar a {
  display: block;
  color: #e0e0e0;
  margin: 20px 0;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar a:hover {
  color: #ff4500;
}

/* 主内容区样式 */
.main-content {
  margin: 100px 40px 40px 300px;
  max-width: 1200px;
}

/* 模块化布局 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  padding: 40px 0;
}

/* 文章样式 */
article {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

article h2, article h3 {
  font-family: 'Exo', sans-serif;
  color: #ffffff;
}

article p {
  font-family: 'Roboto', sans-serif;
  color: #e0e0e0;
  font-size: 17px;
}

article a {
  color: #00ff7f;
  text-decoration: none;
  transition: color 0.3s;
}

article a:hover {
  color: #ff4500;
}

article pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

article code {
  font-family: 'Courier New', Courier, monospace;
  color: #00ff7f;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

article table, article th, article td {
  border: 1px solid #ffffff;
}

article th, article td {
  padding: 10px;
  text-align: left;
}

.article-highlight {
  color: #ff4500;
}

/* 按钮样式 */
.button-highlight {
  background: linear-gradient(45deg, #00ff7f, #ff4500);
  border: none;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

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

/* 装饰性图片样式 */
.decorative-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 反馈按钮样式 */
.feedback {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2575fc;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.feedback:hover {
  transform: scale(1.1);
  background: #6a11cb;
}

/* 突出显示区域 */
.highlight-box {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

/* 代码块样式 */
.language-css {
  color: #00ff7f;
}

/* 提示文本样式 */
.reference-note {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-left: 5px solid #ff4500;
  margin: 20px 0;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    margin: 100px 20px 20px 20px;
  }

  .sidebar {
    width: 200px;
  }

  .navbar {
    padding: 15px 20px;
  }
}

