/* 专职人员（仅姓名版）页面专用样式：不影响原有带照片的人员页 */
.name-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-item {
  margin: 0;
}

.name-item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px;
  overflow: hidden;
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border: 1px solid rgba(143, 92, 42, .2);
  transition: color .2s ease, border-color .2s ease, box-shadow .24s ease, transform .24s ease;
}

/* 左侧装饰竖条 */
.name-item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transition: background .2s ease, width .2s ease;
}

.name-item a:hover,
.name-item a:focus-visible {
  color: var(--sdu-red);
  border-color: rgba(157, 11, 22, .38);
  box-shadow: 0 12px 26px rgba(68, 38, 14, .12);
  transform: translateY(-3px);
}

.name-item a:hover::before,
.name-item a:focus-visible::before {
  width: 4px;
  background: var(--sdu-red);
}

@media (max-width: 1100px) {
  .name-roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .name-roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .name-item a {
    min-height: 48px;
    padding: 0 8px;
    font-size: 16px;
    letter-spacing: .06em;
  }
}

@media (max-width: 420px) {
  .name-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
