/* About page layout — theme via themes.css body[data-page="about"] */

.about-main {
  max-width: 720px;
  margin: 0 auto;
  /* 底边距交给 footer，避免 main + footnote 双重大留白 */
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem 0;
}

body[data-page="about"] .footnote {
  max-width: 720px;
  padding: 1.5rem 1.25rem 2rem;
  /* catalog.css 默认 opacity:0，等 is-in；关于页无该逻辑，直接显示 */
  opacity: 1;
  transform: none;
}

.about-hero {
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
  text-align: left;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.about-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.about-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.15rem;
  background: linear-gradient(120deg, var(--brand-grad-start) 18%, var(--accent) 52%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-lead {
  margin: 0;
  max-width: 28em;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.92;
}

.about-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--sticky-offset, var(--topbar-h, 3.5rem)) + 0.75rem);
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  scroll-margin-top: calc(var(--sticky-offset, var(--topbar-h, 3.5rem)) + 0.75rem);
}

.about-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-section p + p {
  margin-top: 0.85rem;
}

.about-list {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-list li + li {
  margin-top: 0.35rem;
}

.about-list strong {
  color: var(--ink);
  font-weight: 600;
}

.about-section .about-list + p {
  margin-top: 0.85rem;
}

.about-paths {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.about-paths a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.about-paths a:hover,
.about-paths a:focus-visible {
  color: var(--accent-2);
  outline: none;
}

.about-paths .label {
  font-weight: 600;
  font-size: 0.98rem;
}

.about-paths .hint {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.about-paths a:hover .hint,
.about-paths a:focus-visible .hint {
  color: inherit;
  opacity: 0.8;
}

.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.about-social a,
.about-social-btn,
.about-social-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
}

.about-social a {
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.about-social a:hover,
.about-social a:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  background: var(--fill-hover);
  transform: translateY(-1px);
  outline: none;
}

.about-social svg,
.about-social-btn svg,
.about-social-label svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.about-email-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.about-email-addr {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.85;
  word-break: break-all;
}

.wechat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.wechat-qr {
  margin: 0;
  width: min(18rem, 100%);
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 10px 28px var(--shadow);
  text-align: center;
}

.wechat-qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.wechat-qr figcaption {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.about-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
  line-height: 1.6;
}

@keyframes about-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-up {
  opacity: 0;
  animation: about-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .about-up {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .about-main {
    padding: 1.5rem 1rem 0;
  }

  body[data-page="about"] .footnote {
    padding: 1.25rem 1rem 1.75rem;
  }

  .about-hero {
    margin-bottom: 2rem;
  }

  .about-kicker {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
  }

  .about-brand {
    font-size: clamp(2.15rem, 11vw, 2.85rem);
    margin-bottom: 0.85rem;
  }

  .about-lead {
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .about-section {
    padding: 1.35rem 0;
  }

  .about-section h2 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
  }

  .about-section p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .about-section p + p {
    margin-top: 0.7rem;
  }

  .about-paths {
    margin-top: 0.85rem;
    gap: 0;
  }

  .about-paths a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.95rem 0;
    min-height: 2.75rem;
  }

  .about-paths .label {
    font-size: 1rem;
  }

  .about-paths .hint {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .about-social {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: 1rem;
  }

  .wechat-block {
    width: 100%;
    align-items: stretch;
    gap: 0.7rem;
  }

  .about-social-label {
    width: fit-content;
  }

  .wechat-qr {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    padding: 0.4rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px var(--shadow);
  }

  .wechat-qr figcaption {
    margin-top: 0.4rem;
    font-size: 0.74rem;
  }

  .about-email-block {
    width: 100%;
    gap: 0.5rem;
  }

  .about-email-block > a:hover,
  .about-email-block > a:focus-visible {
    transform: none;
  }

  .about-email-addr {
    font-size: 0.76rem;
  }

  .about-note {
    margin-top: 1.75rem;
    padding-top: 1rem;
    font-size: 0.75rem;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .about-brand {
    font-size: 1.95rem;
  }

  .about-lead {
    font-size: 0.96rem;
  }
}
