/* ====== 学习资源页面样式 ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", sans-serif;
  background: #e8f5e9; /* 浅绿色背景 */
  color: #333;
}
.navbar {
  background: #388e3c; /* 深绿色导航栏 */
  padding: 10px 20px;
}
.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}
.navbar li {
  margin: 0 15px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}
/* 页面主体 */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.container h1 {
  text-align: center;
  font-size: 36px;
  color: #2e7d32;
  margin-bottom: 20px;
}
.intro-text {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}
.resource-section {
  margin-bottom: 40px;
}
.resource-section h2 {
  font-size: 28px;
  color: #388e3c;
  border-bottom: 2px solid #a5d6a7;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.video-wrapper {
  text-align: center;
  margin-bottom: 20px;
}
.video-wrapper video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.video-caption {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}
.resource-section ul {
  list-style: none;
  padding: 0;
}
.resource-section li {
  margin-bottom: 10px;
}
.resource-link {
  display: block;
  padding: 10px 15px;
  background: #f1f8e9; /* 浅浅绿色背景 */
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  text-decoration: none;
  color: #424242;
  transition: background 0.3s ease, transform 0.3s ease;
}
.resource-link:hover {
  background: #dcedc8;
  transform: translateX(5px);
}
/* 底部版权 */
.footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 20px;
}


/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar li {
    margin: 5px 0;
  }
  
  .container {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .container h1 {
    font-size: 28px;
  }
  
  .resource-section h2 {
    font-size: 22px;
  }
  
  .video-wrapper video {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 10px 5px;
    padding: 10px;
  }
  
  .container h1 {
    font-size: 24px;
  }
  
  .intro-text {
    font-size: 14px;
  }
  
  .resource-section h2 {
    font-size: 18px;
  }
  
  .video-wrapper video {
    max-width: 350px;
  }
  
  .video-caption {
    font-size: 12px;
  }
  
  .resource-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}