/* ==========================================================================
   Link-in-bio 中转页 / link hub
   竖屏优先，单列卡片。独立于主页设计系统，但沿用同一套配色变量。
   ========================================================================== */

.lb-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 72px;
}

/* ---------- 顶部：头像 + 品牌 + 简介 ---------- */
.lb-head {
  text-align: center;
  padding: 46px 24px 30px;
}

.lb-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(35, 33, 30, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-avatar .lb-initial {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--accent);
  line-height: 1;
}

.lb-name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
  margin: 0 0 10px;
}
.lb-name span { color: var(--accent); }

.lb-tagline {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto;
}

/* ---------- 社交图标行 ---------- */
.lb-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.lb-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out),
              transform .2s var(--ease-out);
}
.lb-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.lb-social svg { width: 17px; height: 17px; fill: currentColor; }
.lb-social .lb-mail { color: var(--accent); }
.lb-social .lb-mail:hover { background: var(--accent); color: var(--surface); }

/* ---------- 分组标题 ---------- */
.lb-section {
  margin: 40px auto 0;
  padding: 0 24px;
  max-width: 560px;
}
.lb-section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  text-align: center;
  margin: 0 0 16px;
}

/* ---------- 链接卡 ---------- */
.lb-cards {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: 92px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .22s var(--ease-out), transform .22s var(--ease-out),
              box-shadow .22s var(--ease-out);
}
.lb-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(35, 33, 30, 0.09);
}

.lb-card-thumb {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}
.lb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease-out);
}
.lb-card:hover .lb-card-thumb img { transform: scale(1.05); }
.lb-card-thumb.is-blank {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-card-thumb.is-blank .lb-blank-mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  opacity: .5;
}

.lb-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.lb-card-title {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--ink-deep);
  line-height: 1.25;
  margin: 0 0 5px;
}
.lb-card-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.lb-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: var(--sans);
}
.lb-card-meta svg { width: 11px; height: 11px; fill: currentColor; }

/* 强调卡（主 CTA） */
.lb-card.is-primary {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}
.lb-card.is-primary .lb-card-title { color: var(--bg); }
.lb-card.is-primary .lb-card-desc { color: rgba(252, 250, 244, 0.62); }
.lb-card.is-primary .lb-card-meta { color: #C49B6D; }
.lb-card.is-primary:hover { border-color: var(--ink-deep); }

/* 邮箱卡 */
.lb-card.is-mail .lb-card-title { font-size: 1.02rem; word-break: break-word; }
/* 无缩略图的通栏卡（邮箱等纯文字入口） */
.lb-card.is-bare { grid-template-columns: 1fr; }
.lb-card.is-bare .lb-card-body { padding: 20px 24px; }

/* ---------- 页脚 ---------- */
.lb-foot {
  text-align: center;
  margin-top: 46px;
  padding: 26px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-quiet);
  line-height: 1.7;
}
.lb-foot a { color: var(--ink-soft); }
.lb-foot a:hover { color: var(--accent); }

/* ---------- 窄屏微调 ---------- */
@media (max-width: 460px) {
  .lb-head { padding: 34px 18px 24px; }
  .lb-avatar { width: 76px; height: 76px; margin-bottom: 16px; }
  .lb-name { font-size: 1.6rem; }
  .lb-cards, .lb-section { padding-left: 16px; padding-right: 16px; }
  .lb-card { grid-template-columns: 88px 1fr; min-height: 84px; }
  .lb-card-body { padding: 14px 16px; }
  .lb-card-title { font-size: 1.06rem; }
}

/* ---------- 邮箱联系卡（醒目） ---------- */
.lb-card.is-mail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--ink-deep);
  border-color: transparent;
  box-shadow: 0 12px 30px -14px rgba(35, 25, 15, .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.lb-card.is-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(35, 25, 15, .6);
}
.lb-card.is-mail .lb-card-title {
  color: #E8C89A;
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.lb-card.is-mail .lb-card-desc {
  color: rgba(252, 250, 244, .62);
}
.lb-mail-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(232, 200, 154, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-mail-ico svg { width: 19px; height: 19px; fill: #E8C89A; }
.lb-card.is-mail .lb-card-body { flex: 1; min-width: 0; }
.lb-card-go {
  flex: none;
  font-size: 1.25rem;
  color: rgba(232, 200, 154, .7);
  transition: transform .25s var(--ease-out), color .25s var(--ease-out);
}
.lb-card.is-mail:hover .lb-card-go { transform: translateX(4px); color: #F3DCB8; }

/* tagline 副句 */
.lb-tagline-sub {
  display: inline-block;
  margin-top: 6px;
  font-size: .92em;
  color: var(--soft);
  opacity: .82;
}

@media (max-width: 560px) {
  .lb-card.is-mail { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .lb-card.is-mail .lb-card-go { display: none; }
  .lb-card.is-mail .lb-card-title { font-size: 1.02rem; }
}

/* ---------- 中转页底部醒目联系条 ---------- */
.lb-contact-strip {
  margin: 26px 0 8px;
  padding: 34px 30px 30px;
  text-align: center;
  background: linear-gradient(180deg, #F7F2E8, #F1EADB);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.lb-contact-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 16px;
}
.lb-contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.2vw, 2.3rem);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 2px solid rgba(148, 92, 38, .32);
  padding-bottom: 4px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lb-contact-mail:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.lb-contact-fine {
  max-width: 46ch;
  margin: 18px auto 0;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--soft);
}
@media (max-width: 560px) {
  .lb-contact-strip { padding: 26px 18px 24px; }
  .lb-contact-lead { font-size: 1.08rem; }
}
