:root {
  color-scheme: light;
  --canvas: #eef1e6;
  --surface: #fafbf6;
  --ink: #182c23;
  --muted: #435b4c;
  --border: #d9e2d3;
  --accent: #214c38;
  --accent-hover: #163826;
  --focus: #336a43;
  --lime: #e5f6a7;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(12px, 4vw, 40px);
}
.home {
  place-items: start center;
  padding-top: clamp(24px, 9vh, 88px);
}

.page-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.profile {
  position: relative;
  width: min(100%, 30rem);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.cover {
  position: relative;
  width: 100%;
  min-height: 118px;
  max-height: 190px;
  aspect-ratio: 2.22;
  border-radius: 15px 15px 0 0;
  background: #244b34;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 55%;
}

.mark {
  position: absolute;
  bottom: -26px;
  left: clamp(17px, 5.7vw, 32px);
  width: 54px;
  height: 54px;
  border: 3px solid var(--surface);
  border-radius: 14px;
  background: var(--surface);
  object-fit: contain;
}

.content { padding: 40px clamp(17px, 5.7vw, 32px) 25px; }

h1 {
  margin: 0 0 17px;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-size: clamp(2.1rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.bio {
  margin: -5px 0 19px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.link-list { display: grid; gap: 9px; }
.link-card {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.card-link {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 60px;
  padding: 10px 0 10px 11px;
  gap: 10px;
  border-radius: 12px 0 0 12px;
  color: inherit;
  text-decoration: none;
}
.card-link:focus-visible { position: relative; outline-offset: -3px; }
.card-link:hover { background: #eef5ea; }
.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--canvas);
}
.card-icon svg { width: 21px; height: 21px; }
.card-image { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.card-label { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.card-title { font-size: 1rem; line-height: 1.35; }
.card-description { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.link-card.is-primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.link-card.is-primary .card-link:hover { background: var(--accent-hover); }
.link-card.is-primary .card-link:focus-visible { outline-color: var(--lime); }
.link-card.is-primary .card-icon { color: var(--lime); background: #315c46; }
.link-card.is-primary .card-description { color: #e2efe4; }

.icon-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.icon-button svg { width: 19px; height: 19px; }
.icon-button:disabled { color: #738677; cursor: default; opacity: 0.45; }
.icon-button:hover:enabled, .icon-button.copied { background: var(--canvas); }
.link-card .copy-button { align-self: center; margin: 0 3px; }
.link-card.is-primary .copy-button:hover, .link-card.is-primary .copy-button.copied { background: #315c46; }
.link-card.is-primary .copy-button:focus-visible { outline-color: var(--lime); outline-offset: -3px; }

.page-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.page-status:empty { position: absolute; }
.text-link { display: inline-block; margin-top: 8px; color: var(--accent); text-underline-offset: 3px; }

.error-page .content { padding-top: 32px; }
.error-page p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
