:root {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.82);
  --text: #18202a;
  --muted: #5d6977;
  --line: rgba(24, 32, 42, 0.08);
  --shadow: 0 20px 60px rgba(18, 38, 63, 0.12);
  --primary: #1f4d8f;
  --primary-soft: rgba(31, 77, 143, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 77, 143, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(91, 133, 194, 0.12), transparent 22%),
    var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.shape-1 {
  width: clamp(160px, 24vw, 240px);
  height: clamp(160px, 24vw, 240px);
  background: rgba(31, 77, 143, 0.12);
  top: -60px;
  right: -40px;
}

.shape-2 {
  width: clamp(150px, 22vw, 220px);
  height: clamp(150px, 22vw, 220px);
  background: rgba(91, 133, 194, 0.12);
  left: -40px;
  bottom: 60px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 48px) 0 max(24px, env(safe-area-inset-bottom));
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
}

.hero__media,
.hero__content {
  min-width: 0;
}

.photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 77, 143, 0.08), rgba(255, 255, 255, 0.4));
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 0 0 18px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--primary);
  font-weight: 700;
}

.intro {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1rem);
  line-height: 1.8;
}

.info-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.label {
  font-size: 0.86rem;
  color: var(--muted);
}

.value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.phone-link {
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 77, 143, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: 1px solid var(--line);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.highlight-card {
  padding: 24px;
}

.highlight-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 32, 42, 0.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
  .page {
    width: min(100% - 28px, 960px);
  }

  .hero {
    grid-template-columns: minmax(220px, 340px) 1fr;
  }

  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --radius: 20px;
  }

  .page {
    width: min(100% - 20px, 720px);
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .photo-wrap {
    max-width: min(420px, 100%);
    margin: 0 auto;
  }

  .hero__content {
    text-align: left;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 16px, 100%);
  }

  .hero {
    padding: 16px;
    border-radius: 18px;
  }

  .tag {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .info-item,
  .highlight-card {
    padding: 16px;
  }

  .intro,
  .highlight-card p {
    line-height: 1.7;
  }
}
