/* ── 第一页 · 个人名片 ── */
.p1-hero {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 6px;
}

.wg-profile {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 228, 232, 0.9);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

.wg-profile__custom-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.wg-profile.has-custom-bg .wg-profile__custom-bg {
  opacity: 0.92;
}

.wg-profile.has-custom-bg {
  background: rgba(255, 255, 255, 0.9);
}

.wg-profile__cover {
  position: relative;
  height: 188px;
  z-index: 1;
}

.wg-profile__cover-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  background-size: cover;
  background-position: center;
}

.wg-profile.has-custom-cover .wg-profile__cover-bg {
  background-color: transparent;
}

.wg-profile__body {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  padding: 52px 18px 26px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  text-align: center;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.04);
}

.wg-profile__avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background:
    linear-gradient(145deg, rgba(244, 246, 248, 0.98), rgba(228, 232, 236, 0.92));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 3;
  overflow: hidden;
}

.wg-profile__avatar.has-custom-ava {
  background-color: transparent;
}

.wg-profile__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wg-profile__name {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(28, 30, 34, 0.92);
}

.wg-profile__bio {
  margin: 8px 0 0;
  max-width: 92%;
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: rgba(100, 106, 114, 0.78);
}

.wg-profile .itinerary-home-status {
  margin-top: 12px;
  border-color: rgba(200, 206, 214, 0.45);
  background: rgba(248, 250, 252, 0.92);
  color: rgba(72, 78, 86, 0.82);
}

.wg-profile .itinerary-home-status.is-done {
  border-color: rgba(180, 188, 198, 0.55);
  color: rgba(52, 58, 66, 0.9);
}

.p1-hero [data-miya-copy].is-editing,
.wg-profile__name.is-editing,
.wg-profile__bio.is-editing {
  outline: 1px dashed rgba(150, 160, 175, 0.5);
  outline-offset: 2px;
}

/* ── MEMO + 四应用 ── */
.p1-dock {
  grid-column: 1 / -1;
  grid-row: 4 / 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 8px;
  align-items: center;
  padding: 4px 0 2px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.p1-dock .wg-memo {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
  align-self: center;
  padding: 0;
}

.p1-dock .ic--dock1 { grid-column: 1; grid-row: 1; }
.p1-dock .ic--dock2 { grid-column: 2; grid-row: 1; }
.p1-dock .ic--dock3 { grid-column: 1; grid-row: 2; }
.p1-dock .ic--dock4 { grid-column: 2; grid-row: 2; }

@media (max-height: 700px) {
  .p1-hero { padding: 0 0 4px; }
  .wg-profile__cover { height: 158px; }
  .wg-profile__body {
    margin-top: -28px;
    padding: 46px 16px 22px;
    border-radius: 20px 20px 0 0;
  }
  .wg-profile__avatar {
    width: 68px;
    height: 68px;
    border-width: 2.5px;
  }
  .wg-profile__name { font-size: 20px; }
  .wg-profile__bio { font-size: 12px; margin-top: 6px; }
}
