:root {
  color-scheme: light dark;
  --paper: #f7f1e8;
  --paper-raised: rgba(255, 252, 246, 0.86);
  --ink: #2b211c;
  --muted: #76685e;
  --line: rgba(83, 59, 44, 0.14);
  --accent: #d95735;
  --accent-soft: #edaa73;
  --shadow: 0 18px 50px rgba(76, 43, 24, 0.11);
  --card-shadow: 0 8px 28px rgba(71, 42, 25, 0.07);
  --focus: #1e65d6;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(237, 170, 115, 0.19), transparent 29rem),
    radial-gradient(circle at 88% 88%, rgba(217, 87, 53, 0.11), transparent 25rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image: radial-gradient(rgba(83, 59, 44, 0.26) 0.55px, transparent 0.55px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border: 1px solid rgba(217, 87, 53, 0.12);
  border-radius: 43% 57% 56% 44% / 44% 37% 63% 56%;
}

.ambient-one {
  top: -14rem;
  right: -9rem;
  transform: rotate(22deg);
}

.ambient-two {
  bottom: -17rem;
  left: -10rem;
  transform: rotate(-28deg);
}

.page-shell {
  display: grid;
  width: min(100% - 2rem, 38rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 11vh, 7rem) 2.5rem;
  align-content: center;
}

.profile {
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.35rem;
  place-items: center;
  border: 1px solid rgba(217, 87, 53, 0.18);
  border-radius: 38% 62% 57% 43% / 42% 39% 61% 58%;
  color: #fffaf3;
  background: linear-gradient(145deg, #e4774c, #c8482d);
  box-shadow:
    0 16px 32px rgba(173, 61, 35, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-3deg);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.19em;
}

h1,
h2,
p {
  margin-block-start: 0;
}

h1 {
  margin-block-end: 0.45rem;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 8vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.handle {
  margin-block-end: 1.15rem;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.025em;
}

.bio {
  margin-block-end: 2rem;
  color: var(--ink);
  font-size: clamp(1rem, 4vw, 1.08rem);
  line-height: 1.75;
}

.platforms {
  display: grid;
  gap: 0.78rem;
}

.platform-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.95rem;
  min-height: 4.75rem;
  padding: 0.78rem 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  text-align: left;
  text-decoration: none;
  background: var(--paper-raised);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.platform-card:hover {
  border-color: rgba(217, 87, 53, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.platform-card:active {
  transform: translateY(0);
}

.platform-card:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 3px;
}

.platform-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.95rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.platform-xhs .platform-mark {
  background: #e14a47;
}

.platform-douyin .platform-mark {
  background: linear-gradient(145deg, #272329 40%, #cd3f5d);
}

.platform-wechat .platform-mark {
  background: #2aa665;
}

.platform-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.platform-copy strong {
  font-size: 1rem;
  font-weight: 720;
}

.platform-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-action {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  font-size: 0.95rem;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.platform-card:hover .platform-action {
  color: var(--accent);
  transform: rotate(5deg);
}

.platform-qr {
  font-size: 1.15rem;
}

.site-note {
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.qr-dialog {
  width: min(calc(100% - 2rem), 25rem);
  margin: auto;
  padding: 2rem;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(42, 24, 16, 0.3);
}

.qr-dialog[open] {
  animation: dialog-in 190ms ease-out both;
}

.qr-dialog::backdrop {
  background: rgba(30, 22, 18, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper-raised);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.dialog-copy {
  padding-inline: 1.5rem;
  text-align: center;
}

.dialog-kicker {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.dialog-copy h2 {
  margin-bottom: 0.35rem;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 1.55rem;
}

.dialog-copy > p:last-child {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.qr-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.55rem solid #fff;
  border-radius: 1rem;
  background: #fff;
}

.mobile-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: center;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@media (min-width: 42rem) {
  .page-shell {
    width: min(100% - 3rem, 38rem);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1916;
    --paper-raised: rgba(43, 36, 31, 0.86);
    --ink: #f4e9dc;
    --muted: #b7a89c;
    --line: rgba(244, 233, 220, 0.12);
    --accent: #ef7954;
    --accent-soft: #e4a06f;
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.27);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
    --focus: #71a9ff;
  }

  body {
    background:
      radial-gradient(circle at 16% 12%, rgba(228, 160, 111, 0.11), transparent 29rem),
      radial-gradient(circle at 88% 88%, rgba(217, 87, 53, 0.09), transparent 25rem),
      var(--paper);
  }

  body::before {
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
