/* 睿才官网 - 首页资讯横向卡片轮播 v2（居中布局） */
.nc-container {
  padding: 0 !important;
  margin: 0 auto !important;
}

.nc-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.nc-outer {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 4px 0;
}

.nc-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* 居中由 nc-outer 的 justify-content:center 控制 */
}

/* 卡片 */
.nc-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  max-width: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.nc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.nc-card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e8ecf1;
  flex-shrink: 0;
}

.nc-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nc-card-date {
  font-size: 12px;
  color: #999;
}

.nc-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-card-summary {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 左右箭头 */
.nc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  opacity: 0;
}

.nc-wrapper:hover .nc-arrow { opacity: 1; }
.nc-arrow:hover { background: #1a73e8; color: #fff; }
.nc-arrow:disabled { opacity: 0.25; cursor: default; }
.nc-arrow:disabled:hover { background: #fff; color: #333; }

.nc-prev { left: 0; }
.nc-next { right: 0; }

/* 指示点 */
.nc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 4px;
}

.nc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.nc-dot-active {
  background: #1a73e8;
  width: 20px;
  border-radius: 4px;
}

/* ≤2 张卡片时：纯粹居中，无箭头无圆点 */
.nc-is-few .nc-outer { overflow: visible; }
.nc-is-few .nc-track { gap: 24px; }

/* 响应式 */
@media (max-width: 1024px) {
  .nc-card { flex: 0 0 calc(50% - 10px); min-width: 240px; max-width: 340px; }
}

@media (max-width: 640px) {
  .nc-card { flex: 0 0 80vw; min-width: 0; max-width: 360px; }
  .nc-track { gap: 14px; }
  .nc-card-img { height: 150px; }
  .nc-arrow { width: 32px; height: 32px; font-size: 14px; opacity: 0.8; }
  .nc-prev { left: -4px; }
  .nc-next { right: -4px; }
  .nc-is-few .nc-track { gap: 16px; }
}
