/* 个人页样式。只作用于 about.html，变量与基础排版沿用 roadmap.css。 */

body.about-page {
  background-image:
    radial-gradient(820px 460px at 50% -10%, rgba(62, 224, 201, 0.1), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

[data-theme="light"] body.about-page {
  background-image:
    radial-gradient(820px 460px at 50% -10%, rgba(15, 143, 130, 0.08), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

.about-page .skip {
  left: 16px;
}

.ab-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.25s;
}

.ab-top.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.ab-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.ab-back:hover {
  color: var(--cyan);
}

.ab-back-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

main.about {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 88px;
}

/* ---------- 身份区 ---------- */

.ab-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 54px 0 0;
}

.ab-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 8px var(--cyan-dim), 0 14px 34px rgba(0, 0, 0, 0.3);
  animation: rise 0.8s var(--ease) both;
}

.ab-name {
  margin: 22px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  animation: rise 0.8s var(--ease) 0.05s both;
}

/* ---------- 联系方式 ---------- */

.ab-contact {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ab-contact h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ab-contact-lede {
  margin: 0 auto 28px;
  max-width: 26em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-wrap: pretty;
}

.qr-grid {
  display: flex;
  justify-content: center;
}

.qr-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 22px;
  width: 100%;
  max-width: 380px;
  padding: 26px 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--amber-dim), transparent 58%),
    var(--bg-card);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.qr-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 20%, transparent) 70%, transparent);
}

.qr-card:hover {
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line-strong));
}

.qr-tag {
  margin: 0;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 650;
}

.qr-card--wechat .qr-tag {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.qr-open {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 0 0 8px color-mix(in srgb, var(--bg) 60%, transparent),
    0 10px 26px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

.qr-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 0 0 8px color-mix(in srgb, var(--amber) 12%, transparent),
    0 16px 34px -12px rgba(0, 0, 0, 0.6);
}

.qr-open:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}

.qr-open img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.qr-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed #c3ccd6;
  border-radius: 6px;
  color: #8b95a3;
  font-size: 0.8rem;
  line-height: 1.7;
}

.qr-card.is-missing .qr-open {
  cursor: default;
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

.qr-card.is-missing .qr-open img {
  display: none;
}

.qr-card.is-missing .qr-fallback {
  display: grid;
}

.qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.qr-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.qr-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.qr-card.is-missing .qr-hint {
  display: none;
}

.ab-foot {
  display: flex;
  justify-content: center;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* ---------- 二维码放大 ---------- */

.qr-zoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 8, 12, 0.8);
  backdrop-filter: blur(6px);
}

.qr-zoom[hidden] {
  display: none;
}

.qr-zoom img {
  width: min(80vw, 376px);
  height: auto;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
}

.qr-zoom-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.qr-zoom-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 560px) {
  .ab-hero {
    padding-top: 34px;
  }

  .ab-avatar {
    width: 84px;
    height: 84px;
  }

  .qr-open {
    width: 190px;
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-avatar,
  .ab-name {
    animation: none;
  }

  .qr-open:hover {
    transform: none;
  }
}
