
/* 
  这是网页的主要样式部分，使用HTML5和CSS3技术栈实现响应式、富有科技感的设计。
  
  主色调采用深蓝色(#0A2E4B)，传达专业与稳重，辅色使用亮银色(#D8D8D8)和白色(#FFFFFF)，
  突出层次感。点缀色选择橙色(#FF9800)，用于按钮和重点元素，增加视觉焦点。
  
  使用Flexbox和Grid布局确保网页在不同设备和屏幕尺寸下具有良好的响应性。
  通过渐变背景、阴影效果和过渡动画增强网页的立体感和动感。
  
  图像部分设置圆角、阴影和悬停效果，使视觉更加柔和且具有互动性。
  所有代码块采用独特样式，便于阅读和区分正文内容。
  
  字体选择现代无衬线字体Roboto，结合衬线字体PT Serif用于标题，确保字体清晰易读。
  
  导航栏固定在顶部，包含下拉菜单，提供良好的用户体验。
  页面中显著位置展示提示信息“这是一个网页样式设计参考”。
  
  各个模块使用卡片式设计，配合适当的留白，避免信息过载，提升阅读舒适度。
  
  关键交互效果包括按钮悬停时的颜色渐变和阴影变化，图标的3D浮动效果，以及背景的动态渐变动画。
  
  所有内部链接强制添加rel="nofollow"属性，确保符合SEO最佳实践。
  
  代码整体结构清晰，注重细节，确保网页在视觉和功能上达到高标准。
*/

/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #0A2E4B;
  background: linear-gradient(135deg, #0A2E4B, #D8D8D8);
  background-size: 400% 400%;
  animation: backgroundAnimation 20s ease infinite;
}

/* 背景动画 */
@keyframes backgroundAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 容器 */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* 固定导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  justify-content: flex-end;
}

.navbar li {
  margin-left: 20px;
}

.navbar a {
  text-decoration: none;
  color: #0A2E4B;
  font-weight: bold;
  position: relative;
}

.navbar a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #FF9800;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

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

/* 主内容区域 */
.main-content {
  margin-top: 70px; /* 预留导航栏高度 */
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .main-content {
    grid-template-columns: 3fr 2fr;
  }
}

/* 侧边栏 */
.sidebar {
  background-color: #FFFFFF;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.sidebar img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 文章内容 */
.article-content {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-content h2,
.article-content h3 {
  color: #0A2E4B;
  font-family: 'PT Serif', serif;
}

.article-content h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.article-content h3 {
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-content pre {
  background-color: #F5F5F5;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content code {
  font-family: 'Courier New', Courier, monospace;
  background-color: #E0E0E0;
  padding: 2px 4px;
  border-radius: 4px;
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 提示信息样式 */
.prompt-message {
  text-align: center;
  font-size: 1.2em;
  color: #FFFFFF;
  background-color: rgba(255, 152, 0, 0.8);
  padding: 10px 0;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #0A2E4B;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card .button {
  background-color: #FF9800;
  color: #FFFFFF;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.card .button:hover {
  background-color: #E68900;
  box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

/* 数据可视化部分 */
.data-visualization {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-bar {
  width: 50px;
  height: 0;
  background-color: #FF9800;
  transition: height 1s ease-in-out;
}

.data-visualization:hover .chart-bar {
  height: 150px;
}

/* 代码示例样式 */
.code-example {
  background-color: #2D2D2D;
  color: #CCCCCC;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 20px;
}

.code-example .language-css {
  color: #FF9800;
}

