
/* 
  网页样式设计参考
  本样式使用现代CSS3技术，结合Flexbox和Grid布局，实现响应式设计，确保在各种设备上均有良好展示效果。
  主要色彩搭配遵循黄金比例，70%主色调传达科技感与专业性，25%辅色增强层次感，5%点缀色用于吸引视觉焦点。
  使用线性渐变和径向渐变作为背景，搭配box-shadow和text-shadow增加立体感。
  关键帧动画与过渡效果提升用户交互体验，确保网页具有未来感与高级质感。
  字体采用现代无衬线字体，确保可读性与美观。
  图片呈现方式包括圆角、阴影、悬浮效果，增强视觉效果。
  内部链接添加rel="nofollow"属性，禁止外部链接引用。
*/

/* 根元素定义色彩变量 */
:root {
  --primary-color: #032B44;       /* 主色调：深蓝色 */
  --secondary-color: #EDEDED;     /* 辅色调：灰色 */
  --accent-color: #FFA500;        /* 点缀色：橙色 */
  --highlight-color: #7ED321;     /* 辅助色：绿色 */
  --background-gradient: linear-gradient(135deg, #032B44 25%, #7ED321 25%, #7ED321 50%, #032B44 50%, #032B44 75%, #FFA500 75%, #FFA500 100%);
  --font-family: 'Roboto', sans-serif;
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  line-height: 1.6;
  padding: 20px;
}

/* 背景设计 */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-gradient);
  background-size: 56.57px 56.57px;
  animation: moveBackground 10s linear infinite;
  z-index: -1;
}

@keyframes moveBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56.57px 56.57px;
  }
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(3, 43, 68, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(3, 43, 68, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

.language-switch {
  position: relative;
  cursor: pointer;
}

.language-switch::after {
  content: '▼';
  margin-left: 5px;
  font-size: 0.6em;
}

/* 主要内容区域 */
.container {
  display: flex;
  flex-direction: row;
  margin-top: 80px;
  gap: 20px;
}

.left-panel {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.right-panel {
  flex: 1;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

/* 文章内容样式 */
article {
  max-width: 800px;
  margin: 0 auto;
}

h2, h3, h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
  margin-top: 20px;
}

p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* 代码块样式 */
pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: #c7254e;
  background-color: #f9f2f4;
  padding: 2px 4px;
  border-radius: 4px;
}

/* 图片样式 */
img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px 0;
}

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

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

.button:hover {
  background-color: var(--highlight-color);
}

/* 提示信息样式 */
.notice {
  background-color: var(--highlight-color);
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
  font-size: 18px;
}

/* 折叠区域样式 */
.collapsible {
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: var(--accent-color);
}

.content {
  padding: 0 15px;
  display: none;
  overflow: hidden;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  margin-bottom: 20px;
}

.content.show {
  display: block;
}

/* AI聊天机器人样式 */
.chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--highlight-color);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 社区互动区域样式 */
.community {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.community-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* 滚动动画触发 */
@keyframes scrollFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动态数据模块 */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.dashboard-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

