/* Link3 名片 · 简洁排版 */
.card-page {
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.card-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  animation: fadeUp .45s ease both;
}

.card-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-topbar a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}

.card-topbar a:hover { color: var(--accent); }

.card-sheet {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(21, 40, 70, .08);
}

.card-cover {
  height: 120px;
  background: linear-gradient(135deg, #0d9488, #14b8a6 50%, #5eead4);
  background-size: cover;
  background-position: center;
}

.theme-ocean .card-cover { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.theme-sunset .card-cover { background: linear-gradient(135deg, #ea580c, #fb7185); }
.theme-forest .card-cover { background: linear-gradient(135deg, #15803d, #4ade80); }
.theme-mono .card-cover { background: linear-gradient(135deg, #64748b, #94a3b8); }
.theme-aurora .card-cover { background: linear-gradient(135deg, #0d9488, #f97316); }

/* 头像居中 */
.card-profile {
  text-align: center;
  margin-top: -48px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  background: #e2e8f0;
  box-shadow: 0 6px 20px rgba(21, 40, 70, .12);
}

.card-avatar.fallback {
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.card-name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: var(--text);
}

.card-title {
  margin-top: 4px;
  font-size: 14px;
  color: var(--accent);
}

.card-place {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.card-id {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

/* 内容 */
.card-body {
  padding: 18px 24px 28px;
}

.card-bio {
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  white-space: pre-wrap;
  margin-bottom: 18px;
}

.card-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-stats b {
  color: var(--text);
  font-weight: 700;
  margin-right: 2px;
}

.social-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.social-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: .15s;
}

.social-btn i { font-style: normal; margin-right: 2px; }
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.social-btn.on {
  background: rgba(13, 148, 136, .08);
  border-color: rgba(13, 148, 136, .3);
  color: #0f766e;
}
.social-btn.on[data-act="like"] { color: #e11d48; border-color: rgba(225, 29, 72, .25); background: rgba(225, 29, 72, .06); }
.social-btn.on[data-act="favorite"] { color: #d97706; border-color: rgba(217, 119, 6, .25); background: rgba(217, 119, 6, .06); }

/* 联系方式：干净列表 */
.contact-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: #f8fafc; }

.contact-row .lab {
  width: 40px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-row .val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

.contact-row .copy-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.skills span {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-soft);
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.photos a {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-one {
  margin-bottom: 8px;
}

.comment-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.comment-head {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.comment-head span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  outline: none;
  background: #f8fafc;
  min-height: 72px;
  line-height: 1.5;
}

.comment-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-tip {
  font-size: 12px;
  color: var(--muted);
}

.comment-form-foot .btn {
  min-width: 72px;
  flex-shrink: 0;
}

.comment-login {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.comment-login a { color: var(--accent); font-weight: 600; }

.comment-list { display: grid; gap: 10px; }

.comment-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}

.comment-item {
  display: flex;
  gap: 10px;
}

.c-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #0d9488;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-body { flex: 1; min-width: 0; }

.c-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 2px;
}

.c-head a { font-weight: 600; color: var(--text); }
.c-head time { color: var(--muted); }

.c-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  word-break: break-word;
}

.card-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.lightbox {
  /* 全局样式见 style.css */
}

@media (max-width: 860px) {
  .card-page { padding: 10px 12px 48px; }
  .card-body { padding: 16px 16px 24px; }
  .card-profile { padding: 0 16px; }
  .card-name { font-size: 22px; }
  .photos { grid-template-columns: repeat(2, 1fr); }

  .comment-box {
    margin-top: 16px;
    padding-top: 14px;
  }

  .comment-form textarea {
    font-size: 16px;
    min-height: 80px;
  }

  .comment-form-foot .btn {
    min-width: 88px;
    width: auto;
  }

  .comment-item {
    gap: 10px;
  }

  .c-body p {
    word-break: break-word;
  }

  .social-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-row { flex-wrap: wrap; }
  .contact-row .val {
    white-space: normal;
    word-break: break-all;
    flex: 1 1 100%;
    overflow: visible;
    text-overflow: unset;
  }
}
