/* yanyu-home-dynamic-notice-v11：稳定版公告中心 + 本周热榜 */

.yanyu-notice-center.dynamic-v11 .yanyu-notice-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr);
  align-items: stretch;
}

.yanyu-notice-center.dynamic-v11 .yanyu-notice-side {
  display: grid;
  gap: 14px;
}

.yanyu-notice-center.dynamic-v11 .yanyu-notice-card.primary {
  min-height: 360px;
}

.yanyu-notice-center.dynamic-v11 .yanyu-notice-card {
  animation: none !important;
}

.yanyu-notice-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.yanyu-notice-title-row strong {
  flex: 1;
}

.yanyu-notice-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff8ed;
  background: linear-gradient(135deg, #8d2a23, #1d1715);
  font-size: 11px;
  font-weight: 900;
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yanyu-notice-meta {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(62, 45, 34, .58);
  font-size: 12px;
}

.yanyu-notice-body {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(62, 45, 34, .74);
  line-height: 1.85;
  white-space: pre-wrap;
}

.yanyu-notice-body.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yanyu-ranking-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.yanyu-ranking-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(80,50,38,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.45);
}

.yanyu-ranking-index {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff8ed;
  background: linear-gradient(135deg, #8d2a23, #1d1715);
  font-size: 12px;
  font-weight: 900;
}

.yanyu-ranking-main {
  min-width: 0;
}

.yanyu-ranking-main b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.yanyu-ranking-main span {
  display: block;
  margin-top: 2px;
  color: rgba(62,45,34,.60);
  font-size: 11px;
}

.yanyu-ranking-score {
  color: #8d2a23;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.yanyu-notice-empty {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(133,43,34,.18);
  border-radius: 14px;
  color: rgba(62,45,34,.68);
  background: rgba(255,255,255,.36);
  line-height: 1.75;
}

.yanyu-week-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  color: rgba(62,45,34,.62);
  font-size: 11px;
  font-weight: 800;
}

/* 江湖入口精简四宫格 */
.yanyu-hub.dynamic-v11 .yanyu-hub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yanyu-hub.dynamic-v11 [data-yanyu-hub-go="home"] {
  display: none !important;
}

@media (max-width: 760px) {
  .yanyu-notice-center.dynamic-v11 .yanyu-notice-grid {
    grid-template-columns: 1fr;
  }

  .yanyu-notice-center.dynamic-v11 .yanyu-notice-card.primary {
    min-height: auto;
  }

  .yanyu-notice-body.collapsed {
    -webkit-line-clamp: 6;
  }

  .yanyu-ranking-item {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 6px 8px;
  }

  .yanyu-ranking-index {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .yanyu-ranking-main b {
    font-size: 12px;
  }

  .yanyu-ranking-score {
    font-size: 11px;
  }

  .yanyu-hub.dynamic-v11 .yanyu-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
