/* ================== 友链申请页 ================== */

/* 申请格式信息格 */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.info-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.info-item:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1); }
.info-icon { font-size: 20px; }
.info-content { flex: 1; }
.info-label { font-size: 12px; opacity: 0.6; margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 500; }

/* 友链卡片网格 */
.friend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }

/* 友链卡片 */
.friend-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 20px;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  position: relative;
  overflow: hidden;
}
.friend-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1); border-color: oklch(0.65 0.18 260); }
.friend-card:hover .friend-avatar { transform: scale(1.05); }
.friend-card:hover .friend-arrow { opacity: 1; transform: translateX(0); }

/* 活跃光点 */
.friend-active-dot {
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  opacity: 0;
  transition: opacity 200ms ease;
}
.friend-card.has-active .friend-active-dot { opacity: 1; }
.friend-card.has-active:hover .friend-active-dot { display: none; }
.friend-active-dot::after {
  content: attr(data-tip);
  position: absolute;
  right: 14px; top: -2px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.1);
}
.friend-card.has-active:hover .friend-active-dot::after { opacity: 1; }

/* 悬停箭头 */
.friend-arrow {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateX(6px) translateY(-50%);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  color: oklch(0.65 0.18 260);
  font-size: 0.85rem;
  pointer-events: none;
}

/* 随机高亮（今日推荐） */
.friend-card.featured {
  border-color: oklch(0.65 0.18 260 / 0.4);
  box-shadow: 0 0 0 3px oklch(0.65 0.18 260 / 0.08), 0 1px 2px oklch(0 0 0 / 0.05);
}
.friend-card.featured::before {
  content: '今日推荐';
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: oklch(0.65 0.18 260);
  opacity: 0.7;
  font-weight: 600;
}

.friend-avatar { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; object-fit: cover; transition: transform 200ms ease; }
.friend-name { font-weight: 600; margin-bottom: 4px; }
.friend-desc { font-size: 13px; opacity: 0.7; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 申请入口按钮 */
.link-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-high);
  text-decoration: none;
  transition: all 200ms ease;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  margin-top: 8px;
}
.link-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
  border-color: oklch(0.65 0.18 260);
  color: oklch(0.65 0.18 260);
}

/* 空状态 */
#link-empty { display: none; }


/* ================== 友链合并页补充样式 ================== */

/* 页面标题区 */
.link-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px 0;
  font-family: inherit;
}
.link-hero { text-align: center; padding: 20px 0 32px; }
.link-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.link-hero p { color: var(--secondary); font-size: 0.95rem; margin: 0; opacity: 0.75; }

/* 分割区（复用 message 的） */
.msg-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 24px;
  color: var(--border);
  opacity: 0.6;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.msg-divider::before, .msg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

/* Twikoo 评论区容器 */
#twikoo-wrap {
  padding: 0 0 60px;
}

/* 申请表单结果提示 */
.msg-result {
  font-size: 0.85rem;
  display: none;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.5;
}
.msg-result.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: block;
}
.msg-result.err {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}



/* 友链申请按钮 - 紫色背景白色文字 */
.link-submit-btn {
  background: #6d28d9 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 200ms ease, transform 200ms ease;
}
.link-submit-btn:hover {
  background: #5b21b6 !important;
  transform: translateY(-1px);
}
.link-submit-btn:disabled {
  background: #a78bfa !important;
  cursor: not-allowed;
}
