
/* 全局样式设置，确保页面响应式布局和统一的视觉风格 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 设置全局字体和基础文字样式 */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #707070;
  background: linear-gradient(135deg, #032B44, #707070);
  padding: 20px;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(3, 43, 68, 0.9);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 导航链接样式 */
.navbar a {
  color: #FFFFFF;
  margin: 0 15px;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

/* 主内容容器，使用Flexbox实现不对称布局 */
.container {
  display: flex;
  flex-direction: row;
  margin-top: 80px; /* 为固定导航栏留出空间 */
}

/* 侧边栏样式 */
.sidebar {
  flex: 1;
  background-color: #032B44;
  padding: 20px;
  min-width: 500px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
  display: block;
  color: #FFFFFF;
  margin: 10px 0;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.3s ease;
}

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

/* 主内容区域样式 */
.main-content {
  flex: 3;
  padding: 20px;
  min-width: 500px;
}

/* 文章标题样式 */
.main-content h2, .main-content h3, .main-content h4 {
  color: #032B44;
  margin-bottom: 15px;
  font-weight: 700;
}

/* 文章段落样式 */
.main-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* 高亮代码块样式 */
main article pre {
  background: #f4f4f4;
  padding: 15px;
  border-left: 5px solid #FFA500;
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

/* 按钮样式 */
.button-cta {
  background-color: #FFA500;
  color: #FFFFFF;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 16px;
}

.button-cta:hover {
  background-color: #ff8c00;
  transform: scale(1.05);
}

/* 图片样式，添加圆角、阴影和悬浮效果 */
.decorative-image {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 20px 0;
}

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

/* 提示信息样式 */
.reference-note {
  background-color: rgba(255, 165, 0, 0.1);
  border-left: 5px solid #FFA500;
  padding: 15px;
  margin: 20px 0;
  font-size: 18px;
  color: #032B44;
  border-radius: 5px;
}

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

.main-content table th, .main-content table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.main-content table th {
  background-color: #032B44;
  color: #FFFFFF;
}

.main-content table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 折叠内容样式 */
.collapsible {
  background-color: #FFFFFF;
  color: #032B44;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #f1f1f1;
}

.content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
}

/* 关键帧动画：渐显向上 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 应用于需要动画效果的元素 */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* 数据流动画 */
.data-flow {
  width: 100%;
  height: 200px;
  background: linear-gradient(270deg, #032B44, #707070);
  animation: flow 10s linear infinite;
  border-radius: 5px;
  margin: 20px 0;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 星空背景 */
.background-star {
  background-image: url('starfield.png');
  background-size: cover;
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 服务模块Grid布局 */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* 响应式设计：移动设备样式调整 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    min-width: 100%;
    height: auto;
  }

  .main-content {
    min-width: 100%;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 10px 0;
  }
}

