.honor-section {
  padding: 100px 0;
  background: #f6f7f9;
}
.honor-section .wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.honor-header {
  text-align: center;
  margin-bottom: 20px;
}
.honor-header h2 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #233357;
}
.honor-header .sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #999999;
  margin-top: 8px;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}
.tab .icon {
  font-size: 18px;
  line-height: 1;
}
.tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.tab.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(253, 186, 116, 0.35);
}

.panels {
  margin-top: 22px;
}

/* 面板淡入动画 */
.panel {
  animation: fadeIn 0.28s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 卡片网格 */
.card-grid {
  --col: 3;
  --gap: 18px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--col), 1fr);
}
@media (max-width: 1024px) {
  .card-grid {
    --col: 2;
  }
}
@media (max-width: 640px) {
  .card-grid {
    --col: 1;
  }
  .honor-section {
    padding: 50px 0;
  }
}

.card a {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.card-meta {
  padding: 12px 14px;
}
.tag {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}
.tag.alt {
  background: #64748b;
}
.title {
  margin: 10px 0 0;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A11y/隐藏处理 */
.panel[hidden] {
  display: none !important;
}

/* 卡片尺寸与布局（桌面3列，Pad 2列，手机1列）由 Swiper 控制，这里只做卡片样式 */
.swiper {
  padding: 8px 6px 32px;
} /* 预留分页位置 */
.swiper-slide {
  height: auto;
} /* 让卡片撑满 */
.card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.card-meta {
  padding: 12px 14px;
}
.tag {
  display: inline-block;
  background: #233357;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}
.tag.alt {
  background: #64748b;
}
.title {
  margin: 10px 0 0;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 可选：导航箭头位置优化 */
.honor-prev,
.staff-prev {
  left: -4px;
}
.honor-next,
.staff-next {
  right: -4px;
}
.panels .swiper-slide img {
  height: 240px !important;
}

/* 确保横向滑动，且不被全局样式禁用 */
.honor-swiper,
.staff-swiper {
  touch-action: pan-y;
} /* 横向滑，允许页面纵向滚动 */
.swiper {
  overflow: hidden;
} /* 防止子元素溢出影响触摸区域 */

/* 防止某些重置样式导致点击高亮 & 事件异常 */
.swiper,
.swiper * {
  -webkit-tap-highlight-color: transparent;
}

/* 避免“看不见的大遮罩”阻挡手势（有些主题把箭头设置成全屏块） */
.swiper-button-prev,
.swiper-button-next {
  width: 36px;
  height: 36px;
  pointer-events: auto; /* 只占小方块，不挡住轮播 */
}
.swiper-pagination {
  pointer-events: auto;
}

/* 如果你的卡片里是 <a>，让浏览器把横向手势优先给 Swiper */
.card a {
  touch-action: pan-y;
  display: block;
}
