/* ============================================================
   About Page — Full-width editorial layout
   No left/right sidebars. Centered column with generous whitespace.
   ============================================================ */

/* ── Override PaperMod .main constraints ── */
.main:has(.about-page) {
  max-width: 100%;
  padding: 0;
}

/* ── Page wrapper ── */
.about-page {
  width: 100%;
  background: var(--color-paper);
  color: var(--color-ink);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ── Hero ── */
.about-hero {
  margin-bottom: 72px;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}

.about-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-accent-soft);
  box-shadow: var(--shadow-md);
}

.about-hero-text {
  flex: 1;
}

.about-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.about-tagline {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  margin: 0 0 10px;
  font-style: italic;
}

.about-version {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--color-ink-muted);
  opacity: 0.6;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-rule);
  white-space: nowrap;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-ink-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 0;
}

.about-lead strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ── Section ── */
.about-section {
  margin-bottom: 68px;
}

.about-section--center {
  text-align: center;
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.about-section--center .about-section-title {
  justify-content: center;
}

.about-section-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Prose ── */
.about-prose p {
  font-size: 1rem;
  line-height: var(--line-height-prose);
  color: var(--color-ink-muted);
  margin: 0 0 16px;
}

.about-prose strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ── Quote ── */
.about-quote {
  border: none;
  position: relative;
  padding: 28px 32px;
  margin: 28px 0;
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-ink);
  font-style: italic;
}

.about-quote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  font-family: var(--font-display);
}

.about-quote--center {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-ink);
  margin: 0 auto 32px;
}

/* ── Cards (3 col) ── */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  padding: 28px 24px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-card-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  line-height: 1;
}

.about-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 10px;
}

.about-card-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-ink-muted);
  margin: 0;
}

.about-card-body strong {
  color: var(--color-ink);
}

/* ── Reasons (numbered list) ── */
.about-reasons {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-reason {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-rule);
}

.about-reason:first-child {
  border-top: 1px solid var(--color-rule);
}

.about-reason-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 3px;
  flex-shrink: 0;
  width: 28px;
}

.about-reason-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 8px;
}

.about-reason-body p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--color-ink-muted);
  margin: 0;
}

.about-reason-body strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ── Issues list ── */
.about-issues {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-issues li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
  padding-left: 20px;
  position: relative;
}

.about-issues li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.85rem;
}

/* ── WeChat featured card ──────────────────────────────────────────────
   The hero of the contact section: a full-width, WeChat-green accented
   panel with a live mini-QR, copy-ready ID and a scan CTA. Clicking it
   opens the site-wide contact dialog (openWechatContact). */
.about-wechat {
  --wx-green: #07c160;
  --wx-green-strong: #06a850;
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin: 0 0 20px;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--wx-green) 32%, var(--color-rule));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--wx-green) 12%, transparent), transparent 55%),
    var(--color-paper);
  color: var(--color-ink);
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 220ms ease, box-shadow 220ms ease;
}
.about-wechat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wx-green) 60%, var(--color-rule));
  box-shadow: 0 18px 42px -22px color-mix(in srgb, var(--wx-green) 70%, rgba(0, 0, 0, 0.5));
}
.about-wechat:active { transform: translateY(-1px) scale(0.995); }
.about-wechat:focus-visible {
  outline: 2px solid var(--wx-green);
  outline-offset: 3px;
}

/* moving glow that follows the top-left corner on hover */
.about-wechat-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 55%;
  height: 180%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--wx-green) 30%, transparent), transparent);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}
.about-wechat:hover .about-wechat-glow { opacity: 1; transform: translateX(0); }

/* mini QR preview */
.about-wechat-qr {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--wx-green) 24%, var(--color-rule));
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.about-wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
/* scan sweep across the mini QR */
.about-wechat-scan {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  height: 26px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--wx-green) 0%, transparent),
    color-mix(in srgb, var(--wx-green) 34%, transparent));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--wx-green) 65%, transparent);
}
.about-wechat:hover .about-wechat-scan {
  animation: about-wx-scan 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes about-wx-scan {
  0%   { transform: translateY(0);    opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* text body */
.about-wechat-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.about-wechat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wx-green-strong);
}
.about-wechat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--wx-green), var(--wx-green-strong));
  box-shadow: 0 4px 10px -5px color-mix(in srgb, var(--wx-green) 80%, transparent);
  flex: none;
}
.about-wechat-badge svg { width: 14px; height: 14px; }
.about-wechat-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink);
}
.about-wechat-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.about-wechat-id-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}
.about-wechat-id-value {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  padding: 2px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--wx-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--wx-green) 20%, var(--color-rule));
}

/* CTA pill */
.about-wechat-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--wx-green), var(--wx-green-strong));
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wx-green) 75%, transparent);
  transition: gap 200ms ease, box-shadow 200ms ease;
}
.about-wechat-cta svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.about-wechat:hover .about-wechat-cta { gap: 10px; }
.about-wechat:hover .about-wechat-cta svg { transform: translateX(3px); }

body.dark .about-wechat {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--wx-green) 16%, transparent), transparent 55%),
    color-mix(in srgb, var(--color-paper) 82%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .about-wechat,
  .about-wechat-glow,
  .about-wechat-cta,
  .about-wechat-cta svg { transition: none; }
  .about-wechat:hover { transform: none; }
  .about-wechat:hover .about-wechat-scan { animation: none; }
}

@media (max-width: 560px) {
  .about-wechat {
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px;
  }
  .about-wechat-cta {
    width: 100%;
    justify-content: center;
    order: 3;
  }
}

/* ── Contact links ── */
.about-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.about-link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-paper);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.about-link-item:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--color-ink);
}

.about-link-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 4px;
}

.about-link-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}

.about-link-sub {
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

/* ── Start grid ── */
.about-start-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-start-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-paper);
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.about-start-item:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-ink);
}

.about-start-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}

.about-start-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ── Footer ── */
.about-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-rule);
  text-align: center;
}

.about-footer p {
  font-size: 1rem;
  color: var(--color-ink-muted);
  margin: 0 0 6px;
}

.about-footer-sig {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-ink-muted);
  opacity: 0.7;
}

/* ── Dark mode adjustments ── */
body.dark .about-card {
  background: color-mix(in srgb, var(--color-paper) 80%, var(--color-accent-soft));
}

body.dark .about-link-item,
body.dark .about-start-item {
  background: color-mix(in srgb, var(--color-paper) 80%, transparent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-start-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .about-content {
    padding: 40px 20px 80px;
  }

  .about-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .about-name {
    font-size: 1.9rem;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-start-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-start-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-links {
    grid-template-columns: 1fr;
  }
}
