
/* 新增：底部版权栏样式 */
.footer {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

.footer-content p {
  margin: 5px 0;
}

/* 梦回游戏社区链接样式 */
.community-link {
  color: #4da6ff; /* 浅蓝色 */
  text-decoration: none; /* 去掉下划线 */
  transition: color 0.3s ease;
}

.community-link:hover {
color: #80b3ff; /* 鼠标悬停时颜色变亮 */
}

/* 响应式适配 */
@media (max-width: 576px) {
  .footer-content {
    font-size: 13px;
  }
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* 顶部导航栏样式 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* LOGO容器（圆形+发光效果） */
.logo-container {
  position: relative;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* 圆形LOGO */
  object-fit: cover;
  border: 2px solid #4767f5;
  /* 发光动画效果 */
  animation: glow 2s ease-in-out infinite alternate;
}

/* 发光动画 */
@keyframes glow {
  from {
    box-shadow: 0 0 10px #4767f5, 0 0 20px #4767f533;
  }
  to {
    box-shadow: 0 0 20px #4767f5, 0 0 30px #4767f566, 0 0 40px #4767f544;
  }
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
  background: #273449;
  border-radius: 30px;
  padding: 8px 15px;
  width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
}

#search-input::placeholder {
  color: #94a3b8;
}

#search-btn {
  background: transparent;
  border: none;
  color: #4767f5;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

#search-btn:hover {
  color: #647efd;
}

/* 主体内容布局 */
.main-container {
  display: flex;
  max-width: 1400px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 20px;
}

/* 左侧侧边栏 */
.sidebar {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  height: calc(100vh - 120px);
  position: sticky;
  top: 80px;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

/* 文档导航菜单 */
.docs-nav {
  list-style: none;
}

.nav-item {
  margin-bottom: 8px;
}

.nav-item > a {
  display: block;
  padding: 10px 15px;
  background: #f8fafc;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-item > a:hover, .nav-item > a.active {
  background: #4767f5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(71, 103, 245, 0.2);
}

.sub-nav {
  list-style: none;
  margin-left: 15px;
  margin-top: 5px;
}

.sub-nav-item > a {
  display: block;
  padding: 8px 10px;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 14px;
}

.sub-nav-item > a:hover, .sub-nav-item > a.active {
  background: #e0e7ff;
  color: #4767f5;
}

/* 右侧内容展示区 */
.content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  min-height: calc(100vh - 120px);
}

.content-placeholder {
  text-align: center;
  padding: 50px 0;
  color: #94a3b8;
}

.docs-content {
  display: none;
}

.docs-content h1 {
  font-size: 24px;
  color: #1e293b;
  margin: 20px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.docs-content h2 {
  font-size: 20px;
  color: #1e293b;
  margin: 18px 0 12px;
}

.docs-content p {
  margin: 10px 0;
  color: #475569;
  font-size: 15px;
}

.docs-content b {
  color: #1e293b;
}

.docs-content img {
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.docs-content a {
  color: #4767f5;
  text-decoration: none;
  transition: color 0.3s;
}

.docs-content a:hover {
  color: #3554e4;
  text-decoration: underline;
}

/* 搜索结果高亮样式 */
.highlight {
  background-color: #fff3cd;
  color: #d68910;
  padding: 0 2px;
  border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  
  .search-container {
    width: 300px;
  }
}

@media (max-width: 576px) {
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .search-container {
    width: 100%;
  }
  
  .content {
    padding: 20px;
  }
}