:root {
  color-scheme: dark;
  --bg: #060708;
  --panel: #111316;
  --panel-strong: #171a1f;
  --text: #f7f7f2;
  --muted: #a8aeb8;
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --gold: #f2c85b;
  --teal: #36d0b4;
  --red: #ef5f5f;
  --blue: #4ba3ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(54, 208, 180, 0.16), transparent 28rem),
    linear-gradient(180deg, #050608 0%, #101215 42%, #060708 100%);
}

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

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.profile {
  padding: 22px 0 18px;
}

.identity {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.title-block {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.link-section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 10px;
}

.section-heading h2 {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.2;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 22, 0.86);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--panel-strong);
  transform: translateY(-1px);
  outline: none;
}

.link-card.primary {
  border-color: rgba(242, 200, 91, 0.38);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-icon.logo-box {
  padding: 4px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-icon.photo .brand-logo {
  object-fit: cover;
}

.brand-icon.logo-box .brand-logo {
  object-fit: contain;
}

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

.link-copy strong,
.link-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.link-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.link-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.notice {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(54, 208, 180, 0.24);
  border-radius: 8px;
  background: rgba(54, 208, 180, 0.07);
}

.notice h2 {
  font-size: 15px;
}

.notice p {
  margin-top: 8px;
  color: #d7edf0;
  font-size: 13px;
  line-height: 1.55;
}

.notice .legal {
  color: var(--muted);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  transform: translate(-50%, 16px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(17, 19, 22, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

@media (max-width: 420px) {
  .page {
    padding: 22px 12px 34px;
  }

  .identity {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
  }

  .avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  h1 {
    font-size: 25px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 5px;
    text-align: left;
  }

  .link-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 74px;
    gap: 10px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }
}
