/* ============================================================
   星澪科技 · Identity Page —— 基础层
   扫码 / NFC 落地页：个人主页排版，沿用品牌配色与字体
   ============================================================ */

:root {
  --ink: #3d2044;
  --ink-soft: rgba(61, 32, 68, 0.62);
  --ink-faint: rgba(61, 32, 68, 0.36);
  --hair: rgba(61, 32, 68, 0.12);

  --pink: #f49ac1;
  --pink-lift: #f8b3d2;
  --pink-deep: #d9689c;
  --pink-tint: #fdecf4;

  --violet: #6b4a82;
  --violet-lift: #7d5a95;
  --violet-tint: #f1ebf6;

  --accent: var(--pink);
  --accent-tint: var(--pink-tint);
  --head-a: var(--pink);
  --head-b: var(--pink-lift);

  --surface: #fff;
  --canvas: #f2ecf1;
  --pad: 22px;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "Source Han Serif SC", serif;
}

[data-tier="friend"] {
  --accent: var(--violet);
  --accent-tint: var(--violet-tint);
  --head-a: var(--violet);
  --head-b: var(--violet-lift);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- 骨架：小屏满宽，桌面居中一栏 ---------- */
.site {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  .site { box-shadow: 0 24px 60px -32px rgba(61, 32, 68, 0.45); }
}

/* ---------- 顶部品牌区 ---------- */
.masthead {
  position: relative;
  overflow: hidden;
  padding: 20px var(--pad) 76px;
  background: linear-gradient(158deg, var(--head-a) 0%, var(--head-b) 100%);
  color: #fff;
  flex: none;
}

/* 同心弧线：圆心落在色块右下角之外，只露出平缓的几道弧；
   同时让左上区域淡出，避免干扰文字 */
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 108% 116%,
    transparent 0 46px,
    rgba(255, 255, 255, 0.42) 46px 47.5px
  );
  -webkit-mask-image: linear-gradient(118deg, transparent 4%, #000 46%);
  mask-image: linear-gradient(118deg, transparent 4%, #000 46%);
  pointer-events: none;
}

/* 四角星，呼应品牌图形 */
.masthead::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 84px;
  right: 42px;
  width: 16px;
  height: 16px;
  background: #fff;
  clip-path: polygon(
    50% 0%, 61% 39%, 100% 50%, 61% 61%,
    50% 100%, 39% 61%, 0% 50%, 39% 39%
  );
  opacity: 0.92;
}

[data-tier="friend"] .masthead::before { background: var(--pink); }

.mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
}

.mark strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.mark span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.tier-tag {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: var(--pad);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}

/* ---------- 头像与身份抬头 ---------- */
.person {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.26);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px -14px rgba(61, 32, 68, 0.6);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.person h1 {
  margin: 20px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  word-break: break-word;
}

.person .roman {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.person .role {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.96);
}

.person .idline {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
}
