
/* 
整体页面样式
采用深紫渐变蓝作为主色调，辅以灰色和白色，营造梦幻科技感
使用响应式设计，确保在不同设备上良好显示
*/

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* 容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* 模块样式 */
.module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.module:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(44, 62, 80, 0.8);
  transform: skew(-5deg);
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}

.navbar .menu {
  list-style: none;
  display: flex;
  gap: 15px;
}

.navbar .menu li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar .menu li a:hover {
  color: #4ca1af;
}

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

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

/* 代码块样式 */
pre {
  background: rgba(44, 62, 80, 0.9);
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
  position: relative;
  margin-top: 20px;
}

pre::before {
  content: "代码示例";
  position: absolute;
  top: -20px;
  left: 10px;
  background: #4ca1af;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #ffffff;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .menu {
    flex-direction: column;
    width: 100%;
  }

  .navbar .menu li {
    margin: 10px 0;
  }

  .container {
    padding: 20px;
  }

  .module {
    padding: 20px;
  }
}

/* 强调文本样式 */
.highlight {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: #4ca1af;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.button:hover {
  background: #2c3e50;
  transform: scale(1.05);
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

table th {
  background: #4ca1af;
}

table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* 强调模块 */
.prominent {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.2);
}

/* 提示文本样式 */
.prompt-text {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 滚动动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

