
/* 
整体样式设计
采用HTML5和CSS3，以冷色系为主色调，融合未来感与高级质感。使用响应式网格布局，确保页面在各种设备上均有良好展示效果。
*/

/* 变量定义 */
:root {
  --primary-color: #0A74DA; /* 主色 */
  --secondary-color: #F5F5F5; /* 辅色 */
  --white-color: #FFFFFF; /* 白色 */
  --accent-orange: #F2994A; /* 点缀色橙色 */
  --accent-green: #27AE60; /* 点缀色绿色 */
  --text-color: #333333; /* 文字颜色 */
  --font-family: 'Roboto', sans-serif; /* 字体 */
}

/* 通用重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 身体样式 */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: linear-gradient(135deg, var(--secondary-color) 70%, var(--white-color) 30%);
  line-height: 1.6;
  padding: 20px;
}

/* 标题样式 */
h2, h3, h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

/* 段落样式 */
p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #444444;
}

/* 代码块样式 */
pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 5px;
  overflow: auto;
  margin-bottom: 15px;
}

pre code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}

/* 阴影和圆角 */
.card, .virtual-assistant {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 图片样式 */
img.decorative {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 20px auto;
  display: block;
}

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  z-index: 1000;
}

.navbar a {
  color: var(--white-color);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-orange);
}

/* 主容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  padding: 100px 20px 20px 20px; /* 顶部留出导航栏空间 */
}

/* 卡片样式 */
.card {
  background-color: var(--white-color);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.button {
  background-color: var(--accent-orange);
  color: var(--white-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: var(--accent-green);
  transform: scale(1.05);
}

/* 虚拟助手样式 */
.virtual-assistant {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.virtual-assistant:hover {
  transform: scale(1.1);
}

/* 折叠内容样式 */
.details summary {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: bold;
}

.details summary:hover {
  color: var(--accent-orange);
}

.details div {
  margin-top: 10px;
}

/* 导航缓冲区 */
.intro-section {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.intro-section h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.intro-section p {
  font-size: 18px;
  color: #555555;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    grid-template-columns: 1fr;
    padding: 80px 10px 10px 10px;
  }
}

