
/* 
整体页面样式设计
使用HTML5和CSS3技术，确保页面具有响应式布局和丰富的视觉效果
主色调为深蓝色和银灰色，搭配亮橙色和青绿色作为点缀色
页面背景采用柔和的浅灰色，提升内容的可读性
采用CSS Grid和Flexbox进行模块化布局，确保在不同设备上的自适应性
添加微交互效果，如按钮悬停放大和颜色渐变，增强用户体验
*/

/* 基础样式 */
body {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0; /* 页面背景色为浅灰色 */
  font-family: 'Open Sans', sans-serif; /* 使用无衬线字体 */
  color: #333333; /* 默认文字颜色 */
}

/* 固定导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(26, 35, 126, 0.95); /* 深蓝色半透明背景 */
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 轻微阴影效果 */
  z-index: 1000;
}

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

.navbar a:hover {
  color: #ff9800; /* 亮橙色悬停效果 */
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
}

/* 侧边栏 */
.sidebar {
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar a {
  display: block;
  color: #1a237e; /* 深蓝色 */
  text-decoration: none;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #4caf50; /* 青绿色悬停效果 */
}

/* 主内容区域 */
.main-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 20px;
  padding: 100px 30px 30px 30px; /* 顶部留白以避免被导航栏覆盖 */
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 100px 20px 20px 20px;
  }
}

/* 模块化布局 */
.section {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-5px); /* 轻微上浮效果 */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 标题样式 */
h1, h2, h3, h4 {
  color: #1a237e; /* 深蓝色标题 */
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.75em;
}

/* 文字段落 */
p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555555;
}

/* 按钮样式 */
.button {
  background: linear-gradient(45deg, #ff9800, #4caf50); /* 亮橙色到青绿色渐变 */
  border: none;
  padding: 12px 25px;
  color: #ffffff;
  font-size: 1em;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #4caf50, #ff9800);
}

/* 图像样式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* 交互动画 */
.loading-animation {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* 背景边框 */
  border-top: 5px solid #1a237e; /* 动画边框颜色 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 页脚样式 */
.footer {
  background-color: #1a237e;
  color: #ffffff;
  text-align: center;
  padding: 20px 30px;
  position: relative;
  bottom: 0;
  width: 100%;
}

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

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

table th {
  background-color: #f2f2f2;
}

/* 表单样式 */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #1a237e;
  border-radius: 4px;
  resize: vertical;
}

input[type="submit"] {
  background: linear-gradient(45deg, #ff9800, #4caf50);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: linear-gradient(45deg, #4caf50, #ff9800);
}

/* 信息层次设计 */
.chart {
  width: 100%;
  height: 300px;
  background-color: #eceff1;
  border-radius: 8px;
}

/* 提示信息 */
.prominent-note {
  background-color: #ffeb3b;
  color: #333333;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* 链接样式 */
a {
  color: #4caf50;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff9800;
}

/* 视差滚动效果 */
.parallax {
  background-image: url('https://images.gptkong.com/demo/sample4.png');
  height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background-color: #1a237e;
  border-radius: 4px;
}

/* 动态视差滚动触发动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

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