/* 全局变量 */
:root {
  --primary-color: #066edf;
  --secondary-color: #007bff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-color: #333;
  --light-text: #666;
  --border-color: #e5e5e5;
  --container-width: 1440px;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
}

/* 容器样式 */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Banner区域 */
.daiban-banner {
  position: relative;
  background: linear-gradient(135deg, #066edf, #007bff);
  padding: 80px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.daiban-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.4) 0%, rgba(0, 75, 158, 0.2) 100%);
  z-index: 1;
}

#daiban-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.daiban-banner-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
  width: 100%;
  padding: 0 15px;
}

.daiban-banner-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.daiban-banner-subtitle {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  max-width: 700px;
}

/* 添加动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 响应式调整 */
@media (max-width: 1199.98px) {
  .daiban-banner {
    padding: 70px 0;
  }
  
  .daiban-banner-title {
    font-size: 32px;
  }
}

@media (max-width: 991.98px) {
  .daiban-banner {
    padding: 60px 0;
  }
  
  .daiban-banner-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .daiban-banner {
    padding: 50px 0;
  }
  
  .daiban-banner-title {
    font-size: 28px;
  }
  
  .daiban-banner-subtitle {
    font-size: 15px;
    max-width: 500px;
  }
}

/* ========== 面包屑导航 ========== */
.daiban-breadcrumb-wrapper {
  margin-bottom: 25px;
  background-color: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 30px; /* 统一设置为30px */
  transition: all 0.3s ease;
}

.daiban-breadcrumb-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.daiban-breadcrumb {
  font-size: 14px;
  color: #757575;
  display: flex;
  flex-wrap: wrap;
}

.daiban-breadcrumb a {
  color: #066edf;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

.daiban-breadcrumb a:hover {
  color: #066edf;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
}

/* 列表页样式 */
.daiban-list-section {
  padding: 0 0 40px; /* 修改顶部padding为0，与word.css保持一致 */
  background: #f8f9fa;
}

/* 筛选区域样式 - 现代风格 */
.daiban-filter {
  background-color: #fff;
  padding: 22px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  width: 100%;
  border: 1px solid rgba(230, 235, 245, 0.8);
}

.filter-title {
  font-size: 17px;
  margin-bottom: 18px;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.filter-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, #066edf, #2388ff);
  border-radius: 2px;
}

.filter-title i {
  margin-right: 8px;
  color: #066edf;
}

#filterCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-category {
  display: inline-block;
  padding: 9px 18px;
  background-color: #f8fafd;
  border-radius: 10px;
  color: #555;
  font-size: 14px;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  border: 1px solid #edf2f9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.filter-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.filter-category:hover {
  background-color: #f0f7ff;
  color: #066edf;
  border-color: #c9e0ff;
  transform: translateY(-2px);
}

.filter-category:hover::before {
  opacity: 1;
}

.filter-category.active {
  background: linear-gradient(135deg, #066edf, #2388ff);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 15px rgba(0, 86, 179, 0.25);
  border-color: transparent;
  transform: translateY(-2px);
}

.filter-category.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.3;
  z-index: 1;
}

.filter-category i {
  margin-right: 6px;
  font-size: 14px;
  position: relative;
  top: 1px;
  transition: all 0.3s ease;
}

.filter-category.active i {
  color: #fff;
  transform: scale(1.1);
}

/* 确保active类始终应用，即使在JS加载前 */
.filter-category.active {
  background: linear-gradient(135deg, #066edf, #2388ff) !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: 0 6px 15px rgba(0, 86, 179, 0.25) !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
}

/* 待办事项列表样式 */
.daiban-grid {
    margin-top: 20px;
}

.daiban-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.daiban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.daiban-card-body {
    padding: 20px;
}

.daiban-card-header {
    margin-bottom: 15px;
}

.daiban-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.daiban-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.daiban-card-title a:hover {
    color: var(--secondary-color);
}

.daiban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--light-text);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
}

.daiban-card-summary {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 14px;
}

.daiban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.daiban-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
}

.daiban-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.daiban-card-link:hover {
    color: var(--secondary-color);
}

/* 详情页样式 */
.daiban-detail {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.daiban-detail-header {
  margin-bottom: 30px;
}

.daiban-detail-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.daiban-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--light-text);
  font-size: 14px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta-item i {
  color: var(--primary-color);
}

.daiban-detail-summary {
  position: relative;
  padding: 20px 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
  font-style: italic;
}

.daiban-detail-summary i {
  position: absolute;
  color: var(--primary-color);
  opacity: 0.2;
  font-size: 20px;
}

.daiban-detail-summary i.fa-quote-left {
  left: 10px;
  top: 10px;
}

.daiban-detail-summary i.fa-quote-right {
  right: 10px;
  bottom: 10px;
}

.daiban-detail-content {
  line-height: 1.8;
  color: var(--text-color);
}

/* 导航 */
.daiban-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.daiban-nav-item {
  max-width: 45%;
}

.daiban-nav-label {
  color: var(--light-text);
  margin-bottom: 5px;
  font-size: 14px;
}

.daiban-nav-title {
  color: var(--text-color);
  transition: color var(--transition-speed);
}

.daiban-nav-title:hover {
  color: var(--primary-color);
}

/* 相关推荐 */
.daiban-related {
  margin-top: 40px;
}

.daiban-related-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.daiban-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.daiban-related-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform var(--transition-speed);
}

.daiban-related-item:hover {
  transform: translateY(-3px);
}

.related-title {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 500;
}

.related-title:hover {
  color: var(--primary-color);
}

.related-meta {
  font-size: 13px;
  color: var(--light-text);
  display: flex;
  gap: 15px;
}

/* 分页 */
.daiban-pagination {
    margin-top: 40px;
    text-align: center;
}

.page-info {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.page-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.page-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-links a,
.page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

.page-links a.page-link {
    padding: 0 12px;
}

/* 当前页样式 */
.page-links span.current,
.page-links a.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.3);
}

/* 悬停效果 */
.page-links a:hover:not(.disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

/* 禁用状态 */
.page-links a.disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* 首页/末页按钮特殊样式 */
.page-links a[href*="page:index"],
.page-links a[href*="page:last"] {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.page-links a[href*="page:index"]:hover:not(.disabled),
.page-links a[href*="page:last"]:hover:not(.disabled) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 上一页/下一页按钮样式 */
.page-links a[href*="page:pre"],
.page-links a[href*="page:next"] {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.page-links a[href*="page:pre"]:hover:not(.disabled),
.page-links a[href*="page:next"]:hover:not(.disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 数字页码样式增强 */
.page-links a:not([href*="page:"]):not(.current) {
    transition: all 0.2s ease;
}

.page-links a:not([href*="page:"]):not(.current):hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

/* 活跃状态动画 */
.page-links span.current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.no-data {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.no-data i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .daiban-banner {
    padding: 30px 0;
  }
  
  .daiban-banner-title {
    font-size: 28px;
  }
  
  .daiban-detail {
    padding: 20px;
  }
  
  .daiban-related-list {
    grid-template-columns: 1fr;
  }
  
  .daiban-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .daiban-nav-item {
    max-width: 100%;
  }
  
  .filter-categories {
    gap: 8px;
  }
  
  .filter-category {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .daiban-card-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: -10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 15px;
    justify-content: flex-start;
  }

  .daiban-card-meta::-webkit-scrollbar {
    display: none;
  }

  .daiban-card-meta .meta-item {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 4px 0;
  }

  .daiban-card-meta .meta-item i {
    font-size: 13px;
  }

  .daiban-breadcrumb-wrapper {
    padding: 12px 15px;
    margin-bottom: 20px;
    margin-top: 20px; /* 移动端统一设置为20px */
  }

  .daiban-breadcrumb {
    font-size: 13px;
  }

  .daiban-detail-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: -10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 15px;
    justify-content: flex-start;
  }

  .daiban-detail-meta::-webkit-scrollbar {
    display: none;
  }

  .meta-item {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 4px 0;
  }

  .meta-item i {
    font-size: 13px;
  }

  .page-links {
    gap: 4px;
  }
  
  .page-links a,
  .page-links span {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .page-links a.page-link {
    padding: 0 8px;
  }
  
  .page-info {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* 粒子背景已移至特定的ID选择器 */ 

/* 列表样式 - 图标形式 */
.daiban-list {
  margin-bottom: 30px;
}

.daiban-list-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.daiban-list-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-left-color: #0097e6;
}

.daiban-item-icon {
  font-size: 30px;
  color: #0097e6;
  margin-right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f7ff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.daiban-list-item:hover .daiban-item-icon {
  transform: scale(1.1);
  background-color: #e1f0ff;
}

.daiban-item-content {
  flex: 1;
  overflow: hidden;
}

.daiban-item-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.daiban-item-title a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.daiban-item-title a:hover {
  color: #066edf;
}

.daiban-item-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
  max-height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.daiban-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.daiban-item-date,
.daiban-item-views,
.daiban-item-category {
  display: flex;
  align-items: center;
}

.daiban-item-meta i {
  margin-right: 6px;
  color: #0097e6;
}

.daiban-item-action {
  margin-left: 15px;
}

.daiban-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  background-color: #f0f7ff;
  color: #0097e6;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.daiban-action-btn:hover {
  background-color: #0097e6;
  color: #fff;
  transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .daiban-list-item {
    padding: 15px;
  }
  
  .daiban-item-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    margin-right: 15px;
  }
  
  .daiban-item-title {
    font-size: 16px;
  }
} 