/* 基于图片设计的站点地图样式 */
.sitemap-container {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  padding: 1.2rem;
  border: 1px solid #f0f0f0;
}
.sitemap-section {
  margin-bottom: 1.5rem;
}
.sitemap-section-title {
  color: #01af33;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #01af33;
  text-align: center;
  position: relative;
}
.sitemap-section-title:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: #01af33;
}

.exam-type-section {
  margin-top: 0;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.exam-type-section:last-child {
  margin-bottom: 0;
}
.exam-type-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #01af33;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  width: fit-content;
}
.exam-type-title a {
  color: #fff;
  text-decoration: none;
}
.exam-type-title a:hover {
  text-decoration: underline;
}
.level1-section {
  margin-bottom: 1.5rem;
}
.level1-title {
  color: #01af33;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: #f1f8e9;
  border-left: 3px solid #8bc34a;
  border-radius: 3px;
  width: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.level1-title:hover {
  background: #e8f5e9;
  color: #007722;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.category-block {
  padding-bottom: 1rem;
}
.category-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.level2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  padding: 0 1rem 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}
.level1-btn {
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: #333;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.level1-btn:hover {
  color: #01af33;
  background: #e8f5e9;
  border-color: #01af33;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.level2 {
  margin-top: 0.75rem;
  padding-left: 1rem;
}
.level2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.25rem;
}
.level2-btn {
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: #555;
  display: block;
  font-size: 0.85rem;
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 3px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.level2-btn:hover {
  color: #01af33;
  background: #f0f8f0;
  border-color: #c8e6c9;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* 三级栏目样式 */
.level3 {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}
.level3-btn {
  padding: 0.2rem 0;
  text-decoration: none;
  color: #888;
  display: block;
  font-size: 0.8rem;
}
.level3-btn:hover {
  color: #01af33;
  text-decoration: underline;
}
.area-section {
  margin-bottom: 2rem;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* 隔行变色效果 */
.area-section:nth-child(odd) {
  background-color: #f9f9f9;
}
.area-section:nth-child(even) {
  background-color: #ffffff;
}
/* 考试类型区域在奇偶行的样式调整 */
.area-section:nth-child(odd) .exam-type-section {
  border-bottom: 1px solid rgba(1, 175, 51, 0.1);
}
.area-section:nth-child(even) .exam-type-section {
  border-bottom: 1px solid rgba(139, 195, 74, 0.1);
}
.area-section .exam-type-section:last-child {
  border-bottom: none;
}
.area-header {
  padding: 0.8rem 1rem;
  margin-bottom: 0;
  background: #e8f5e9;
  border-left: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  display: flex;
  align-items: center;
  box-shadow: none;
}
/* 奇偶行地区标题样式 */
.area-section:nth-child(odd) .area-header {
  background: #e8f5e9;
  border-top: 3px solid #01af33;
}
.area-section:nth-child(even) .area-header {
  background: #f1f8e9;
  border-top: 3px solid #8bc34a;
}
.area-header h3 {
  margin: 0;
  color: #01af33;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.area-header h3 i {
  margin-right: 0.5rem;
  font-size: 1rem;
}
.area-header a {
  color: #01af33;
  text-decoration: none;
}
.area-header a:hover {
  text-decoration: underline;
}
.area-content {
  padding: 1.2rem;
  border-radius: 0;
  border: none;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .level2-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .exam-type-title {
    font-size: 0.9rem;
  }
  .area-header h3 {
    font-size: 1rem;
  }
  .sitemap-section-title {
    font-size: 1.2rem;
  }
  .level1-title {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
  }
  .level1-title:before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
  }
  .level2-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  .category-block {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
  .level2-grid {
    padding: 0 0.8rem 0.5rem 1rem;
  }
}
