﻿/* 列表页全局样式 */
body {
  background-color: #f8faff;
}

/* 列表页样式 */

/* 基础样式 */
.zh_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Banner区域新样式 - 动态效果 */
.zh_list_banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

/* Canvas样式 */
#zh_list_canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.zh_list_banner_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 17, 56, 0.3), rgba(13, 27, 66, 0.5));
  z-index: 1;
}

.zh_list_banner_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.zh_list_banner_title {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.zh_list_banner_title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6b346e, #b035b1);
}

/* 面包屑导航 */
.zh_breadcrumb {
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 10;
}

.zh_breadcrumb_container {
  display: flex;
  align-items: center;
}

.zh_breadcrumb_icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.zh_breadcrumb_text {
  font-size: 14px;
  color: #4a5568;
}

.zh_breadcrumb_text a {
  color: #6b346e;
  text-decoration: none;
  transition: color 0.3s;
}

.zh_breadcrumb_text a:hover {
  color: #6b346e;
}

/* 主内容区域 - 修复布局 */
.zh_list_main {
  display: flex;
  flex-direction: row;
  margin: 40px 0;
  position: relative;
  gap: 40px;
}

/* 修复内容区和侧边栏布局 */
.zh_list_content {
  flex: 1;
  width: calc(100% - 340px);
}

/* 右侧悬浮边栏 */
.zh_list_sidebar {
  position: sticky;
  top: 80px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  width: 300px;
  z-index: 5;
  align-self: flex-start;
  height: fit-content;
}

.zh_sidebar_widget {
  margin-bottom: 30px;
}

.zh_sidebar_widget:last-child {
  margin-bottom: 0;
}

.zh_sidebar_widget_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.zh_sidebar_widget_title {
  font-size: 18px;
  font-weight: 700;
  color: #0b1138;
  margin: 0;
  position: relative;
  padding-left: 15px;
}

.zh_sidebar_widget_title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, #6b346e, #b035b1);
  border-radius: 2px;
}

.zh_sidebar_widget_icon {
  width: 20px;
  height: 20px;
}

.zh_sidebar_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zh_sidebar_list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #edf2f7;
  position: relative;
  padding-left: 15px;
}

.zh_sidebar_list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.zh_sidebar_list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b346e;
}

.zh_sidebar_list a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zh_sidebar_list a:hover {
  color: #6b346e;
}

/* 内容区 - 画廊式布局 */
.zh_list_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 0;
}

/* 画廊式卡片 */
.zh_list_card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.zh_list_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 114, 255, 0.1);
}

.zh_list_card_image {
    position: relative;
    height: 225px;
    overflow: hidden;
}
.zh_list_card_image img {
    width: 80%;
    height: 100%;
    padding: 0 10.5%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.zh_list_card_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 114, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.zh_list_card:hover .zh_list_card_overlay {
  opacity: 1;
}

.zh_list_card_btn {
  background: linear-gradient(135deg, #6b346e, #b035b1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transform: translateY(20px);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.zh_list_card:hover .zh_list_card_btn {
  transform: translateY(0);
}

.zh_list_card_info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}


.zh_list_card_title {
  margin: 15px 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.zh_list_card_title a {
  color: #0b1138;
  text-decoration: none;
  transition: color 0.3s;
}

.zh_list_card_title a:hover {
  color: #6b346e;
}

.zh_list_card_category {
  display: flex;
  align-items: center;
  color: #718096;
  font-size: 14px;
  margin-top: auto;
}

.zh_list_card_category span {
  display: flex;
  align-items: center;
}

.zh_list_card_category span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #6b346e;
  border-radius: 50%;
  margin-right: 5px;
}

/* 分页控件 */
.zh_pagination {
  margin-top: 50px;
  text-align: center;
}

.zh_pagination a,
.zh_pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 5px;
  background: #fff;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zh_pagination span.current {
  background: linear-gradient(135deg, #6b346e, #b035b1);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.zh_pagination a:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .zh_list_sidebar {
    width: 280px;
  }
  
  .zh_list_content {
    width: calc(100% - 320px);
  }
}

@media (max-width: 992px) {
  .zh_list_main {
    flex-direction: column-reverse;
  }
  
  .zh_list_sidebar {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    top: 0;
  }
  
  .zh_list_content {
    width: 100%;
  }
  
  .zh_sidebar_widget {
    margin-bottom: 20px;
  }
  
  .zh_list_grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .zh_list_banner {
    height: 300px;
  }
  
  .zh_list_banner_title {
    font-size: 2.5rem;
  }
  
  .zh_list_grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .zh_list_banner {
    height: 250px;
  }
  
  .zh_list_banner_title {
    font-size: 2rem;
  }
  
  .zh_list_grid {
    grid-template-columns: 1fr;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

/* 为不同卡片设置不同的动画延迟 */
.zh_list_card:nth-child(2n) {
  animation-delay: 0.1s;
}

.zh_list_card:nth-child(3n) {
  animation-delay: 0.2s;
}

.zh_list_card:nth-child(4n) {
  animation-delay: 0.3s;
}
