
/* 
  页面整体样式设计
  采用 HTML5 和 CSS3 技术栈，结合现代视觉美学原理，确保页面在各类设备上均有出色表现。
*/

/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@400;700&display=swap');

/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 设置全局字体 */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0D2C54, #6F39C7);
  color: #FFFFFF;
  line-height: 1.6;
  font-size: 16px;
}

/* 容器样式 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* 导航栏样式 */
.navbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(13, 44, 84, 0.9);
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FF8C00;
}

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

.navbar ul li a {
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar ul li a:hover {
  color: #3EB489;
  text-shadow: 0 0 5px #3EB489;
}

/* 主要内容区块 */
.main-content {
  grid-column: 1 / -1;
  margin-top: 100px;
}

.section {
  margin-bottom: 60px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}
.section:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 标题样式 */
.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #FF8C00;
  margin-bottom: 15px;
}

.section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #3EB489;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* 文本内容样式 */
.section p {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

/* 图片样式 */
.section img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

/* 卡片样式 */
.card {
  background: #FFFFFF;
  color: #000000;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: #FF8C00;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}
.button:hover {
  background: #3EB489;
  transform: scale(1.05);
}

/* 代码块样式 */
code {
  display: block;
  background: #1E1E1E;
  color: #00FF00;
  padding: 15px;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  margin: 20px 0;
  overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background-color: rgba(13, 44, 84, 0.95);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    display: none;
  }
  .navbar ul.active {
    display: flex;
  }
  .container {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr;
  }
  .navbar ul {
    width: 100%;
  }
}

