
/* 整体页面的基本样式设置，融合未来感与高级质感 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #ffffff;
  line-height: 1.6;
}

/* 导航栏样式，固定在顶部，保证可见性 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 60, 114, 0.9);
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.navbar a:hover {
  color: #ff9800;
}

/* 模块化布局，每个模块独立为一个块，最小宽度不低于500px */
.section {
  padding: 100px 20px;
  min-width: 500px;
}

.module {
  margin: 20px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 1200px;
}

.module h2, .module h3, .module h4 {
  margin-bottom: 20px;
  color: #ffffff;
}

.module p {
  font-size: 16px;
  color: #dddddd;
}

/* 按钮样式，包含悬停时的变换效果 */
.btn {
  background-color: #ff9800;
  border: none;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background-color: #e68900;
}

/* 图片样式，增加圆角、阴影和悬浮效果 */
.module img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.module img:hover {
  transform: scale(1.05);
}

/* 关键帧动画，实现淡入效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.module {
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: var(--delay, 0s);
}

/* 回到顶部按钮的样式，固定在页面右下角 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #4caf50;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* 折叠区域样式，隐藏与显示部分内容 */
.collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.collapse.open {
  max-height: 1000px;
}

/* 表格样式，增强可读性 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ffffff;
  padding: 10px;
  text-align: left;
}

th {
  background-color: rgba(255, 152, 0, 0.8);
}

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 代码块样式，区分正文内容 */
pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

code {
  color: #ff9800;
  font-family: 'Courier New', Courier, monospace;
}

/* 多语言切换器样式 */
.language-switcher {
  display: flex;
  justify-content: flex-end;
  margin: 20px;
}

.language-switcher select {
  padding: 8px;
  border-radius: 4px;
  border: none;
  background-color: #2a5298;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.language-switcher select:hover {
  background-color: #1e3c72;
}

/* 社交分享按钮样式 */
.social-share {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.social-share .icon {
  margin: 0 10px;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.social-share .icon:hover {
  color: #ff9800;
}

/* 响应式设计，适配不同屏幕宽度 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .module {
    padding: 20px;
  }
  
  .section {
    padding: 80px 10px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

