/* =========================================================
   服务器社区入口 · 高级感紧凑切换条
   小缩略图 + 编号 + 数据，保持清晰但不抢服务器内容
   ========================================================= */
.srv-community-strip {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 24px 0 18px !important;
  overflow: hidden !important;
  border: 1px solid #2b2e36 !important;
  border-radius: 2px !important;
  background: #0b0c10 !important;
  box-shadow: 0 22px 48px -42px rgba(0, 0, 0, 0.95) !important;
}
.srv-community-strip::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 234, 224, 0.16), transparent);
  pointer-events: none;
}
.srv-community {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 104px !important;
  min-height: 104px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  clip-path: none !important;
  border: 0 !important;
  border-left: 1px solid #242730 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.srv-community:first-child {
  border-left: 0 !important;
}
.srv-community:hover {
  background: #101218 !important;
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--srv-color, #ff2fae) 65%, transparent) !important;
}
.srv-community::before,
.srv-community::after {
  display: none !important;
}
.srv-comm-cover {
  display: none !important;
}
.srv-comm-idx {
  flex: 0 0 auto;
  width: 17px;
  color: rgba(238, 234, 224, 0.3) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.08em !important;
}
.srv-comm-thumb {
  position: relative;
  display: block !important;
  flex: 0 0 auto;
  width: 54px !important;
  height: 54px !important;
  overflow: hidden;
  border: 1px solid #3a3e48 !important;
  border-radius: 1px !important;
  background-color: #0c0d12;
  background-image: var(--comm-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  filter: saturate(0.78) contrast(1.04) brightness(0.82);
  transition: filter 0.2s ease, border-color 0.2s ease !important;
}
.srv-comm-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.04), rgba(7, 8, 11, 0.42));
}
.srv-community:hover .srv-comm-thumb {
  border-color: color-mix(in srgb, var(--srv-color, #ff2fae) 55%, #3a3e48) !important;
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
}
.srv-comm-glyph {
  position: absolute !important;
  z-index: 2;
  right: 3px;
  bottom: 3px;
  display: grid !important;
  width: 18px !important;
  height: 18px !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--srv-color, #ff2fae) 72%, #eeeae0) !important;
  border-radius: 1px !important;
  background: rgba(8, 9, 12, 0.86) !important;
  color: var(--srv-color, #ff2fae) !important;
  font-size: 9px !important;
  font-style: normal !important;
  line-height: 1 !important;
}
.srv-comm-body {
  position: static !important;
  flex: 1 1 auto;
  min-width: 0 !important;
  padding: 0 !important;
}
.srv-community h2 {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 6px !important;
  overflow: hidden;
  color: #eeeae0 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.005em !important;
  text-shadow: none !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.srv-community h2 em {
  flex: 0 0 auto;
  display: inline-block !important;
  margin: 0 !important;
  padding: 1px 5px !important;
  border: 1px solid color-mix(in srgb, var(--srv-color, #ff2fae) 42%, #3a3e48) !important;
  border-radius: 1px !important;
  background: transparent !important;
  color: rgba(238, 234, 224, 0.5) !important;
  font-family: var(--font-mono) !important;
  font-size: 8px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  vertical-align: 0 !important;
}
.srv-community p {
  display: none !important;
}
.srv-comm-meta {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: rgba(238, 234, 224, 0.4) !important;
  font-family: var(--font-mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap;
}
.srv-comm-meta i {
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: var(--srv-color, #ff2fae) !important;
  opacity: 0.8;
}
.srv-comm-arrow {
  position: static !important;
  display: grid !important;
  flex: 0 0 auto;
  width: 27px !important;
  height: 27px !important;
  margin-left: 3px !important;
  place-items: center !important;
  border: 1px solid #343842 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: rgba(238, 234, 224, 0.52) !important;
  font-size: 13px !important;
  transition: color 0.18s ease, border-color 0.18s ease !important;
}
.srv-community:hover .srv-comm-arrow {
  border-color: color-mix(in srgb, var(--srv-color, #ff2fae) 58%, #343842) !important;
  color: #eeeae0 !important;
  background: transparent !important;
  transform: none !important;
}
@media (max-width: 900px) {
  .srv-community-strip {
    grid-template-columns: 1fr !important;
    margin: 18px 0 14px !important;
  }
  .srv-community {
    height: 84px !important;
    min-height: 84px !important;
    border-left: 0 !important;
    border-top: 1px solid #242730 !important;
  }
  .srv-community:first-child {
    border-top: 0 !important;
  }
}

/* 社区入口是可点击的筛选入口 */
a.srv-community {
  color: inherit !important;
  text-decoration: none !important;
}
a.srv-community.is-active {
  background: #111319 !important;
  box-shadow: inset 2px 0 0 var(--srv-color, #ff2fae) !important;
}
a.srv-community.is-active .srv-comm-arrow {
  border-color: var(--srv-color, #ff2fae) !important;
  color: var(--srv-color, #ff2fae) !important;
}
.srv-filter-note {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: -4px 0 14px !important;
  padding: 9px 12px !important;
  border: 1px solid #262931 !important;
  border-left: 2px solid var(--accent, #ff2fae) !important;
  border-radius: 2px !important;
  background: #0d0f14 !important;
  color: rgba(238, 234, 224, 0.54) !important;
  font-size: 11px !important;
}
.srv-filter-note b {
  color: #eeeae0 !important;
}
.srv-filter-note i {
  color: rgba(238, 234, 224, 0.36) !important;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
}
.srv-filter-note a {
  margin-left: auto;
  color: var(--accent, #ff2fae) !important;
  text-decoration: none !important;
}

/* 社区入口文字动效：入场轻微上浮，悬停才出现强调 */
@keyframes srvCommunityIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.srv-community {
  animation: srvCommunityIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.srv-community:nth-child(2) {
  animation-delay: 0.06s !important;
}
.srv-community:nth-child(3) {
  animation-delay: 0.12s !important;
}
.srv-community h2 {
  position: relative !important;
  transition: color 0.2s ease, letter-spacing 0.25s ease !important;
}
.srv-community h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--srv-color, #ff2fae);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.srv-community:hover h2 {
  color: var(--srv-color, #ff2fae) !important;
  letter-spacing: 0.015em !important;
}
.srv-community:hover h2::after {
  width: 34px;
}
.srv-comm-idx,
.srv-comm-meta,
.srv-comm-meta span {
  transition: color 0.2s ease, transform 0.2s ease !important;
}
.srv-community:hover .srv-comm-idx {
  color: var(--srv-color, #ff2fae) !important;
  transform: translateY(-1px);
}
.srv-community:hover .srv-comm-meta,
.srv-community:hover .srv-comm-meta span {
  color: rgba(238, 234, 224, 0.6) !important;
}
.srv-comm-arrow {
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.22s ease !important;
}
.srv-community:hover .srv-comm-arrow {
  transform: translateX(3px) !important;
}
@media (prefers-reduced-motion: reduce) {
  .srv-community,
  .srv-community h2,
  .srv-community h2::after,
  .srv-comm-idx,
  .srv-comm-meta,
  .srv-comm-arrow {
    animation: none !important;
    transition: none !important;
  }
}

/* 更明显的克制动效：名字上缓慢扫过一次光，悬停反馈加强 */
@keyframes srvNameSheen {
  0%, 74% {
    transform: translateX(-150%) skewX(-18deg);
    opacity: 0;
  }
  79% {
    opacity: 0.8;
  }
  90%, 100% {
    transform: translateX(190%) skewX(-18deg);
    opacity: 0;
  }
}
.srv-community h2::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 52%;
  border-radius: 1px;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.3) 48%, transparent 78%);
  transform: translateX(-150%) skewX(-18deg);
  animation: srvNameSheen 7.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.srv-community:nth-child(2) h2::before {
  animation-delay: 1.6s;
}
.srv-community:nth-child(3) h2::before {
  animation-delay: 3.2s;
}
.srv-community h2 {
  transform: translateY(0);
  transition: color 0.2s ease, letter-spacing 0.25s ease, transform 0.25s ease !important;
}
.srv-community:hover h2 {
  transform: translateY(-2px);
}
.srv-community h2::after {
  height: 2px !important;
}
.srv-community:hover h2::after {
  width: 62px;
}
.srv-comm-thumb {
  transition: filter 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.srv-community:hover .srv-comm-thumb {
  transform: scale(1.06);
}
.srv-community:hover {
  background: #12151c !important;
}
.srv-community:hover .srv-comm-arrow {
  transform: translateX(6px) !important;
}
.srv-comm-meta i {
  animation: srvMetaDot 3.2s ease-in-out infinite;
}
@keyframes srvMetaDot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.45); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .srv-community h2::before,
  .srv-comm-meta i {
    animation: none !important;
  }
}

/* 让首次扫光在页面打开后立刻可见，之后低频循环 */
@keyframes srvNameSheen {
  0% {
    transform: translateX(-150%) skewX(-18deg);
    opacity: 0;
  }
  3% {
    opacity: 0.9;
  }
  18% {
    transform: translateX(210%) skewX(-18deg);
    opacity: 0;
  }
  100% {
    transform: translateX(210%) skewX(-18deg);
    opacity: 0;
  }
}
.srv-community:nth-child(2) h2::before {
  animation-delay: 0.7s !important;
}
.srv-community:nth-child(3) h2::before {
  animation-delay: 1.4s !important;
}
@keyframes srvCommunityIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
