
/* 
页面整体样式
定义基本字体、背景色以及全局的盒模型
*/
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #001F3F, #00AEEF);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* 
导航栏样式
使用固定定位，使导航栏在滚动时保持可见
并应用玻璃拟态效果增强科技感
*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 20px;
  position: relative;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #00AEEF;
  left: 50%;
  bottom: -5px;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar a:hover {
  color: #00AEEF;
}

.navbar a:hover::after {
  width: 100%;
  left: 0;
}

/* 
主内容区域样式
使用网格布局，确保响应式设计
每个板块的最小宽度为500px
*/
.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  padding: 100px 20px 40px 20px; /* 顶部留出导航栏空间 */
}

/* 
内容块样式
应用玻璃拟态效果，圆角和阴影增加层次感
并添加悬停动画增强互动体验
*/
.content-block {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* 
标题样式
不同层级的标题使用不同的字号和颜色，突出层次结构
*/
.content-block h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #00AEEF;
}

.content-block h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
}

.content-block p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* 
按钮样式
使用渐变色和圆角，添加悬停动画效果
保证按钮在不同设备上的易点击性
*/
.button-primary {
  background: linear-gradient(45deg, #00AEEF, #007ACC);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button-primary:hover {
  background: linear-gradient(45deg, #007ACC, #00AEEF);
  transform: translateY(-3px);
}

/* 
图片装饰样式
应用圆角、阴影和悬停效果，增强视觉美感
确保图片为装饰性用途，alt属性为空
*/
.decorative-image {
  width: 100%;
  max-width: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 
代码块样式
采用深色背景和高亮文本，确保可读性
并使用滚动条在必要时显示
*/
pre {
  background: rgba(0, 31, 63, 0.8);
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
}

code {
  color: #00AEEF;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
}

/* 
响应式媒体查询
确保在不同屏幕尺寸下的良好显示效果
*/
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px 0;
  }

  .navbar a {
    margin: 10px 0;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 120px 10px 20px 10px;
  }

  .content-block {
    padding: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    padding: 110px 15px 30px 15px;
  }
}

/* 
动画效果
定义关键帧动画，用于数据流动等动态效果
*/
@keyframes flowAnimation {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(50%);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.data-flow {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(0, 174, 239, 0.2);
  overflow: hidden;
  border-radius: 3px;
}

.data-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 6px;
  background: #00AEEF;
  animation: flowAnimation 3s linear infinite;
}

/* 
在线客服按钮样式
固定位置，易于访问，应用动画效果
*/
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #FF9800;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.chat-button:hover {
  background: #e68a00;
  transform: scale(1.1);
}

/* 
折叠区域样式
隐藏次要信息，用户可自行展开查看
*/
.collapsible {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  border-radius: 10px;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.collapsible:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.content {
  padding: 0 18px;
  display: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
}

/* 
提示信息样式
在显著位置提示设计参考信息
*/
.design-reference {
  text-align: center;
  font-size: 16px;
  color: #FFD700;
  margin-bottom: 30px;
}

