
/* 
整体页面风格采用现代科技感与高级质感相结合的设计，使用HTML5和CSS3技术实现响应式布局。
色彩方面，主色调为深蓝色（#004D99），辅色采用橙色（#FFA500），点缀色为白色和浅灰色。
通过使用线性渐变、box-shadow、text-shadow、关键帧动画和过渡效果，营造出丰富的视觉层次和动感。
页面布局采用Flexbox和Grid布局技术，确保在各种屏幕尺寸下均有良好的展示效果。
留白处理遵循呼吸感与平衡原则，避免视觉上的拥挤，增强内容的可读性。
*/

/* 基础样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  padding: 20px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #004D99, #FFA500);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar .logo {
  color: #ffffff;
  font-size: 1.5em;
  text-decoration: none;
}

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

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

.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #FFD700;
}

/* 侧导航样式 */
.sidebar {
  display: none;
  background: rgba(0, 77, 153, 0.9);
  position: fixed;
  height: 100%;
  width: 250px;
  top: 0;
  left: -250px;
  transition: left 0.3s ease;
  padding-top: 60px;
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 15px 25px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s ease;
}

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

/* 主内容区域 */
.main-content {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 20px;
}

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

/* 文章内容样式 */
article {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article h2, article h3, article h4 {
  color: #004D99;
  margin-bottom: 15px;
}

article p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #555555;
}

article pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 15px;
}

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

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

img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* 按钮样式 */
.button {
  background-color: #FFA500;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* 卡片式布局 */
.card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  animation: loadingFadeIn 0.5s ease forwards;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* 加载动画关键帧 */
@keyframes loadingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

thead {
  background-color: #004D99;
  color: #ffffff;
}

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

/* 面包屑导航样式 */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  background-color: #f1f1f1;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.breadcrumb li + li:before {
  content: ">";
  padding: 0 8px;
  color: #666666;
}

.breadcrumb a {
  color: #004D99;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    display: none;
  }
  
  .sidebar {
    display: block;
  }
  
  .main-content {
    margin-top: 100px;
  }
}

