
/* 
整体页面样式设计
主色调为自然绿色，辅以中性色和高对比色，确保色彩和谐美观。
使用响应式网格布局，结合Flexbox实现多样化排版。
添加微交互效果，如悬停动画、渐变背景等，提升用户体验。
*/

:root {
  /* 主色调 */
  --primary-green: #78AB46;
  /* 辅助色 */
  --neon-blue: #00FFFF;
  --metallic-gray: #4B4B4B;
  --aux-gray: #F0F0F0;
  --off-white: #FAFAFA;
  /* 点缀色 */
  --contrast-orange: #FFA500;
  
  /* 文字颜色 */
  --text-color: var(--metallic-gray);
  --title-color: var(--primary-green);
  
  /* 背景渐变 */
  --background-gradient: linear-gradient(135deg, var(--primary-green), var(--aux-gray));
  
  /* 过渡效果 */
  --transition-speed: 0.3s;
}

/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  background: var(--background-gradient);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  transition: background var(--transition-speed) ease;
  z-index: 1000;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  position: relative;
}

.navbar a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width var(--transition-speed) ease;
}

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

/* 页面提示 */
.page-notice {
  text-align: center;
  padding: 20px;
  background-color: rgba(120, 171, 70, 0.8);
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
}

/* 容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 100px 20px 20px 20px;
}

/* 视觉区块 */
.section {
  background-color: var(--off-white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* 图片样式 */
.section img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.section img:hover {
  transform: scale(1.05);
}

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

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

/* 文字内容 */
p, li {
  font-size: 1em;
  color: var(--text-color);
}

/* 链接样式 */
a {
  color: var(--contrast-orange);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--neon-blue);
}

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

code {
  font-family: 'Courier New', Courier, monospace;
}

/* 导航系统 */
.nav-system {
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-system a {
  display: block;
  margin: 5px 0;
  color: var(--primary-green);
}

/* 底部样式 */
.footer {
  background-color: var(--metallic-gray);
  color: var(--off-white);
  padding: 30px 20px;
  text-align: center;
}

.footer a {
  color: var(--neon-blue);
  margin: 0 10px;
}

.footer a:hover {
  color: var(--contrast-orange);
}

/* 响应式设计 */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-system {
    top: 100px;
    right: 10px;
  }
}

/* 动画与过渡 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

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

/* 阴影效果 */
.shadow-lg {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.shadow-hover:hover {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

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

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

th, td {
  padding: 12px;
  border: 1px solid var(--aux-gray);
  text-align: left;
}

th {
  background-color: var(--primary-green);
  color: #fff;
}

tr:nth-child(even) {
  background-color: var(--aux-gray);
}

/* 表单样式 */
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--aux-gray);
  border-radius: 5px;
}

input:focus, textarea:focus {
  border-color: var(--primary-green);
  outline: none;
}

/* 其他装饰元素 */
.decorative-line {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--neon-blue));
  margin: 20px 0;
}

.icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-green);
  transition: fill var(--transition-speed) ease;
}

.icon:hover {
  fill: var(--neon-blue);
}

