/* 导航卡片完整显示 */
.link-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 20px 16px 16px !important;
  gap: 10px !important;
  min-height: 140px !important;
  position: relative !important;
}

/* 图标容器 */
.link-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  background: var(--teal-light) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-top: 28px !important; /* 为顶部按钮留空间 */
}

.link-icon {
  font-size: 2rem !important;
}

.link-favicon {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
}

/* 链接信息 */
.link-info {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: auto !important;
}

/* 标题 */
.link-title {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

/* URL 地址 */
.link-url {
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  text-align: center !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  opacity: 0.8 !important;
}

/* 操作按钮绝对定位在顶部 */
.link-actions {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  z-index: 10 !important;
}

.link-card:hover .link-actions {
  opacity: 1 !important;
}
