/*
 * Link-in-bio core structure adapted from LittleLink:
 * https://github.com/sethcottle/littlelink
 * MIT License — Copyright 2019-2024 Seth Cottle
 * Modifications for jiuguan.app — 2026
 */

:root {
  --page: #f4f6fb;
  --ink: #15161a;
  --muted: #686f7d;
  --panel: rgba(255, 255, 255, 0.78);
  --card: #fff;
  --line: rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 20px 55px rgba(42, 54, 83, 0.14);
  --shadow-card: 0 12px 28px rgba(42, 54, 83, 0.1);
  --shadow-card-hover: 0 16px 34px rgba(42, 54, 83, 0.16);
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  background-color: var(--page) !important;
  color: var(--ink) !important;
  color-scheme: light only;
}

body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, #eef4ff 0%, #f8f8f5 42%, var(--page) 100%) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.container {
  position: relative;
  width: calc(100% - 24px);
  max-width: 676px;
  margin: 0 auto;
  padding: 28px 0 26px;
  text-align: center;
}

.column {
  width: 100%;
}

.profile-card {
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.avatar-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 13px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6fec 0%, #23b28b 54%, #ffb84d 100%);
}

.avatar {
  display: block;
  width: 100px;
  height: 100px;
  max-width: 100px;
  margin: 0 auto;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e9e9eb;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ecfdf6;
  color: #087452;
  font-size: 12px;
  font-weight: 700;
}

.profile-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice,
.button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.notice {
  margin: 16px 0 14px;
  padding: 16px;
  text-align: left;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.notice-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff3db;
  color: #9b5b00;
  font-size: 12px;
  font-weight: 800;
}

.notice-title {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.notice p {
  margin: 0;
  color: #343945;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.button-stack {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.button {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}

.button:visited,
.button:hover,
.button:active {
  color: var(--ink);
  text-decoration: none;
}

.button:hover {
  border-color: rgba(47, 111, 236, 0.22);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.button:active {
  box-shadow: var(--shadow-card);
  transform: translateY(0);
}

.link-icon {
  display: flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #edf5ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.button:nth-child(2) .link-icon {
  background: #f0fdf4;
  color: #15915d;
}

.button:nth-child(3) .link-icon {
  background: #fff6e6;
  color: #b76502;
}

.button:nth-child(4) .link-icon {
  background: #f3efff;
  color: #6d4ae6;
}

.button-title {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.button-subtitle {
  display: block;
  margin-top: 3px;
  color: #767d8b;
  font-size: 12px;
  line-height: 1.3;
}

.button-arrow {
  display: flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f5f8;
  color: #4b5563;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

footer {
  margin: 20px 0 0;
  color: #7b8190;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (min-width: 521px) {
  .container {
    width: calc(100% - 32px);
    padding-top: 42px;
  }

  .profile-card {
    padding: 28px 24px 22px;
  }

  .notice {
    padding: 18px 20px;
  }

  .button {
    min-height: 72px;
    padding: 14px 16px;
  }

  .button-title {
    font-size: 16px;
  }
}

@media (max-width: 359px) {
  .container {
    width: calc(100% - 16px);
  }

  .profile-card {
    padding: 20px 12px 14px;
    border-radius: 24px;
  }

  .notice {
    padding: 14px;
  }

  .button {
    gap: 10px;
    padding: 12px;
  }

  .link-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 17px;
  }

  .button-title {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: var(--page) !important;
    color: var(--ink) !important;
  }
}
