/* ========================================
   home-center-right 推荐列表样式
   替代 topGroup 中的 todayCard 大卡片
   仿 zhheo.com 首页右上角推荐列表
   ======================================== */

/* 右侧推荐列表容器 - 替代 todayCard */
.topGroup .home-center-right {
  position: absolute;
  width: calc(600px + 1rem);
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  border-radius: 12px;
  margin-left: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--anzhiyu-theme) 0, #4a4a4a 100%);
}

.topGroup .home-center-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px;
}

/* 每个推荐项 */
.topGroup .home-center-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  flex: 1;
  min-height: 0;
}

.topGroup .home-center-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

/* 图标 */
.topGroup .home-center-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--anzhiyu-card-bg);
  flex-shrink: 0;
  position:relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topGroup .home-center-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 标题 */
.topGroup .home-center-item-title {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.topGroup .home-center-item-title a {
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.topGroup .home-center-item:hover .home-center-item-title a {
  opacity: 1;
}

/* ========== 响应式适配 ========== */

@media screen and (max-width: 1200px) {
  .topGroup .home-center-right {
    position: static;
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-top: 0.5rem;
    border-radius: 12px;
  }

  .topGroup .home-center-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .topGroup .home-center-item {
    flex: 1 1 calc(33.33% - 6px);
    max-width: calc(33.33% - 6px);
    min-height: 70px;
    padding: 8px 10px;
  }

  .topGroup .home-center-item-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
  }

  .topGroup .home-center-item-title a {
    font-size: 12px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

@media screen and (max-width: 768px) {
  .topGroup .home-center-right {
    display: none;
  }
}
