/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.clear {
  clear: both;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部样式 */
/* Header styles to match image */
.header {
  background-color: #007bff; /* Vibrant blue */
  padding: 10px 25px; /* Increased padding for better spacing like image */
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin-bottom: 0 !important; /* Overwrite existing margin */
  box-shadow: none !important; /* Overwrite existing shadow */
}

.header .logo {
  margin: 0;
  padding-right: 20px; /* Space between logo and potential first nav item or bar */
}

.header .logo h1,
.header .logo p {
  color: #fff !important;
  margin: 0;
  line-height: 1.3; /* Slightly more line height */
}

.header .logo h1 {
  font-size: 24px; /* From image inspection */
  font-weight: bold;
  letter-spacing: 1px; /* Slight letter spacing for "零五课堂" */
}

.header .logo p { /* Assuming this is for "LINGWUKE TANG" */
  font-size: 10px; /* Smaller, as in image */
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* 主内容区域 */
.main-content {
  float: left;
  width: 70%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 侧边栏 */
.sidebar {
  float: right;
  width: 28%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 底部样式 */
.footer {
  clear: both;
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
}

.footer-content p {
  font-size: 14px;
}

/* 首页特定样式 */
.intro-section {
  text-align: center;
  padding: 180px 0;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

/* 网格布局样式 */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
}

.grid-item {
  width: 23%;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px;
  transition: all 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 头像组样式 */
.avatar-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
}

.avatar-item {
  text-align: center;
}

.avatar-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0066cc;
}

.avatar-item figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.grid-item img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin-bottom: 10px;
}

.grid-item h3 {
  font-size: 16px;
  margin: 0;
  color: #333;
}

.content-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.content-meta span {
  margin-right: 15px;
}

.content-body {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.content-tags {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tags-title {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.tags-list {
  display: inline-block;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 5px 5px 0;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
}

.content-related {
  margin-top: 30px;
}

.related-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.related-list {
  list-style: none;
}

.related-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.related-item a {
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
}

.related-item a:hover {
  color: #0066cc;
  text-decoration: none;
}


.action-buttons {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: #0066cc;
  color: #fff;
}

.secondary-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* 服务卡片样式 */
.services-section {
  margin-bottom: 30px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-card {
  width: 32%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0066cc;
}

.service-card p {
  font-size: 14px;
  color: #666;
}

/* 团队成员展示样式 */
#team.content {
  padding: 30px 0;
  background-color: #f9f9f9;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 -10px;
}

.team-member {
  width: calc(25% - 20px);
  margin: 0 10px 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  list-style: none;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.team-member-info {
  padding: 20px;
}

.team-member-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.team-member-name a {
  color: #333;
  text-decoration: none;
}

.team-member-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
}

.team-member-meta span {
  margin-right: 10px;
}

.team-member-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.team-member-action {
  text-align: right;
}

.team-btn {
  background-color: #0066cc;
  color: #fff;
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.team-btn:hover {
  background-color: #0055aa;
  text-decoration: none;
}

/* 分页样式 */
.pagination-wrapper {
  margin-top: 30px;
  text-align: center;
}

.pagination-container {
  display: inline-block;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination-item {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px 5px 0;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.pagination-item:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.pagination-current {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.pagination-disabled {
  color: #999;
  cursor: not-allowed;
}

/* 内容部分样式 */
.content-section {
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.content-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.content-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.content-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.content-meta span {
  margin-right: 15px;
}

.content-body {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.content-tags {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tags-title {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.tags-list {
  display: inline-block;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 5px 5px 0;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
}

.content-related {
  margin-top: 30px;
}

.related-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.related-list {
  list-style: none;
}

.related-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.related-item a {
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
}

.related-item a:hover {
  color: #0066cc;
  text-decoration: none;
}

.article-content .article-meta {
  margin-bottom: 20px;
}

.article-content .article-text {
  line-height: 1.8;
  font-size: 16px;
}

.article-content .article-text p {
  margin-bottom: 15px;
}

/* 评论区样式 */
.comments {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.comment-list {
  margin-top: 20px;
}

.comment-item {
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.comment-author {
  font-weight: bold;
  margin-bottom: 5px;
}

.comment-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.comment-content {
  font-size: 14px;
}

.comment-form {
  margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.comment-form textarea {
  height: 150px;
}

.comment-form button {
  padding: 10px 20px;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 分页样式 */
.pagebar {
  margin-top: 20px;
  text-align: center;
}

.pagebar a,
.pagebar span {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.pagebar a:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.pagebar span.now-page {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #0066cc;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 999;
}

/* 响应式表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 8px;
  border: 1px solid #ddd;
}

/* 图片延迟加载样式 */
img.lazy {
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

img.lazy.loaded {
  opacity: 1;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .main-content,
  .sidebar {
    float: none;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .service-row {
    flex-direction: column;
  }
  
  .service-card {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .logo h1 {
    font-size: 24px;
  }
  
  .intro-section h2 {
    font-size: 20px;
  }
  
  .btn {
    padding: 8px 15px;
    margin: 5px;
  }
  
  .team-member {
    width: calc(50% - 20px);
  }
}
/* New Navbar Styles to match image - replacing previous navbar styles */
.header .module ul,
.header nav > ul, /* If ZBP uses a nav element with ul child */
.header ul#navbar, /* If navbar has ID */
.header .navbar { /* General class */
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important; /* Ensure flex for alignment */
  align-items: center !important;
}

.header .module ul li,
.header nav > ul li,
.header ul#navbar li,
.header .navbar li {
  margin: 0 !important; /* Reset individual li margin */
  padding: 0 12px !important; /* Spacing between nav items, like image */
}

.header .module ul li a,
.header nav > ul li a,
.header ul#navbar li a,
.header .navbar li a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 0px !important; /* Vertical padding, no horizontal as li has it */
  display: inline-block !important;
  font-size: 15px; /* From image inspection */
  font-weight: 500; /* Slightly bolder than normal */
  background-color: transparent !important;
  border: none !important;
  transition: opacity 0.2s ease !important;
  white-space: nowrap; /* Prevent wrapping of menu items */
}

.header .module ul li a:hover,
.header nav > ul li a:hover,
.header ul#navbar li a:hover,
.header .navbar li a:hover {
  opacity: 0.75 !important;
  text-decoration: none !important;
  background-color: transparent !important;
}