/* 友链页面样式 */
.links-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.link-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.link-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.link-info {
  flex: 1;
}

.link-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-color);
}
.link-status-label {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  background: rgba(229,72,77,.12);
  color: #e5484d;
  border: 1px solid rgba(229,72,77,.35);
  vertical-align: middle;
}

.link-desc {
  font-size: 0.9em;
  color: var(--text-color-secondary);
  line-height: 1.4;
} 

/* 复制友链弹窗样式 */
.friend-copy { margin: 10px 0 20px; }
.friend-copy .btn { cursor: pointer; }
.friend-copy-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.friend-copy-box {
  background: #fff;
  color: #333;
  width: 90%;
  max-width: 520px;
  border-radius: 8px;
  padding: 16px 16px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.friend-copy-box h3 { margin: 0 0 10px; font-size: 18px; }
.friend-copy-box pre {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.friend-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.friend-actions .btn {
  cursor: pointer;
  color: inherit !important; /* 跟随弹窗正文颜色，保证可读 */
  background: transparent;
  border: 1px solid currentColor;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.friend-actions .btn:hover { background: rgba(0,0,0,.06); }
body.dark-theme .friend-actions .btn:hover { background: rgba(255,255,255,.08); }

/* 适配暗色和深色主题按钮/对比度 */
body.dark-theme .friend-copy-box { background: #222; color: #eee; }
body.dark-theme .friend-copy-box pre { background: #333; color: #ddd; }
body.theme-2 .friend-copy-box,
body.theme-3 .friend-copy-box,
body.theme-4 .friend-copy-box,
body.theme-5 .friend-copy-box { background: rgba(255,255,255,.96); color: #222; }

/* 明确“关闭”按钮的强调色，确保可见性 */
.friend-actions #close-modal {
  border-color: #888;
  color: #555 !important;
}
.friend-actions #close-modal:hover { color: #222 !important; border-color: #444; }
body.dark-theme .friend-actions #close-modal { color: #ddd !important; border-color: #aaa; }
body.dark-theme .friend-actions #close-modal:hover { color: #fff !important; border-color: #fff; }