:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #171821;
  --muted: #6d7280;
  --line: rgba(26, 28, 37, 0.1);
  --line-strong: rgba(26, 28, 37, 0.2);
  --accent: #6c5ce7;
  --accent-soft: #eef0ff;
  --mint: #ccfbef;
  --sun: #fff2c7;
  --pink: #ffe3ee;
  --blue: #dff5ff;
  --success: #16a36a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(31, 35, 54, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 12%, rgba(204, 251, 239, 0.88), transparent 22rem),
    radial-gradient(circle at 80% 4%, rgba(238, 240, 255, 0.96), transparent 24rem),
    radial-gradient(circle at 50% 96%, rgba(255, 227, 238, 0.74), transparent 20rem),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(26, 28, 37, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 28, 37, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-page {
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0 30px;
}

.profile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  color: #12131a;
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, var(--mint));
  box-shadow: var(--shadow);
}

.small-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 1.65rem;
}

.eyebrow,
.bio,
h1 {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.8rem, 11vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.bio {
  max-width: 430px;
  margin-bottom: 18px;
  color: #4e5565;
  font-size: 1rem;
  line-height: 1.7;
}

.language-picker {
  margin-bottom: 20px;
}

.language-picker select {
  width: 154px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(31, 35, 54, 0.08);
  outline: none;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 35, 54, 0.09);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.link-card:hover {
  background: var(--surface-strong);
  box-shadow: 0 16px 34px rgba(31, 35, 54, 0.13);
  transform: translateY(-2px);
}

.link-card:nth-child(1) .link-icon {
  background: var(--mint);
}

.link-card:nth-child(2) .link-icon {
  background: var(--sun);
}

.link-card:nth-child(3) .link-icon {
  background: var(--blue);
}

.link-card:nth-child(4) .link-icon {
  background: var(--pink);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #14151d;
  font-weight: 900;
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy span {
  display: block;
}

.link-copy strong {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.link-arrow {
  color: #8b91a1;
  font-size: 1.28rem;
  transform: translateY(-1px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 106, 0.28);
  animation: pulse 1.9s infinite;
}

.footer a {
  color: #3a3f4d;
  font-weight: 800;
}

.support-page {
  display: grid;
  align-content: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 35, 54, 0.09);
}

.contact-card .link-icon {
  background: var(--accent-soft);
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.contact-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.email-link {
  color: var(--accent);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(31, 35, 54, 0.09);
  cursor: pointer;
}

.action-button.primary {
  border-color: transparent;
  color: #ffffff;
  background: var(--accent);
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 26px;
  z-index: 10;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 106, 0);
  }
}

@media (max-width: 520px) {
  .link-page {
    width: min(100% - 22px, 520px);
    padding-top: 34px;
  }

  .avatar {
    width: 82px;
    height: 82px;
    border-radius: 25px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .bio {
    font-size: 0.98rem;
  }

  .link-card {
    min-height: 76px;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .footer {
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .support-actions {
    grid-template-columns: 1fr;
  }
}

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