/* ============================================================
   个人数字名片 —— 复刻 MuseLink「chill」浅色模板效果
   缩放体系：手机端 1rem = 屏宽 × 100/375；桌面端固定 1rem = 148px
   ============================================================ */

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

/* 隐藏滚动条（与源站一致；否则滚动条占位会让居中列偏移 7.5px） */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
}

/* 全局 border-box（与源站分享按钮等元素的实际盒模型一致） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC VF", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: inherit; }

#root {
  display: flex;
  justify-content: center;
}

.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #fff;
  width: 100%;
  max-width: 562px;
  min-height: 100vh;
}

/* ---------- 右上角分享按钮 ---------- */
.share-button {
  position: absolute;
  right: .16rem;
  top: .16rem;
  font-weight: 500;
  font-size: 16px;
  height: 34px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: hsla(0, 0%, 100%, .75);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  padding: 4px 8px;
  color: #000;
  animation: bounceIn 1s both;
  user-select: none;
  -webkit-user-select: none;
}
.share-button .share-icon { margin-left: 4px; display: flex; }
.share-button .share-icon svg { width: 16px; height: 16px; }

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale3d(.3, .3, .3); }
  20%  { transform: scale3d(1.1, 1.1, 1.1); }
  40%  { transform: scale3d(.9, .9, .9); }
  60%  { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80%  { transform: scale3d(.97, .97, .97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* ---------- 头像模糊光晕背景（列宽内，固定不动） ---------- */
.container_bg_warp {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  width: 100%;
  max-width: 562px;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-filter: blur(50px);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.container_bg_warp img {
  border-radius: 50%;
  opacity: .25;
  height: 100%;
  width: 100%;
  max-height: 5.62rem;
  object-fit: cover;
}

/* ---------- 主体 ---------- */
.container-layout {
  flex: 1 1;
  z-index: 1;
  padding: 0 .3rem;
}
.container-body {
  margin-top: 1.06rem;
}

.avatar-warp { display: flex; justify-content: center; }
.avatar-container { width: .8rem; height: .8rem; position: relative; }
.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.body-info { margin-top: .2rem; text-align: center; }
.name { font-size: .24rem; font-weight: 600; line-height: .34rem; }
.desc {
  padding-top: .04rem;
  font-size: .14rem;
  line-height: 1.5;
  color: #000;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 联系方式小图标（点击弹二维码大图） ---------- */
.container-contact {
  display: flex;
  justify-content: space-evenly;
  margin-top: .26rem;
}
.container-contact .social-account {
  transition: transform .15s cubic-bezier(0, .2, .5, 3) 0s;
  cursor: pointer;
}
.container-contact .social-account:hover { transform: scale(1.03); }
.container-contact img { width: .24rem; }

/* ---------- 链接卡片 ---------- */
.container-social { margin-top: .48rem; }
.social-link-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  border-radius: .08rem;
  margin-bottom: .16rem;
  position: relative;
  transition: transform .15s cubic-bezier(0, .2, .5, 3) 0s;
  cursor: pointer;
}
.social-link-wrapper:hover { transform: scale(1.03); }

/* 社交平台分组：与上方服务区之间拉开间隔 */
.social-link-wrapper.sep-top {
  margin-top: .40rem;
}

.social-link-icon-wrapper { position: relative; font-size: 0; }
.social-link-icon {
  padding: .1rem .18rem;
  width: .3rem;
  height: .3rem;
  box-sizing: content-box;
  object-fit: cover;
}
.social-link-icon-expand {
  position: relative;
  right: 0;
  transition: transform .15s;
  display: flex;
}
.social-link-icon-expand img {
  width: .14rem;
  height: .14rem;
  margin: .2rem;
  box-sizing: content-box;
}
.social-link-icon-expand.hide { visibility: hidden; }

.social-link-title-wrapper { flex: 1 1; overflow: hidden; }
.social-link-title {
  font-weight: 500;
  font-size: .16rem;
  line-height: .22rem;
  color: #121212;
  text-align: center;
  margin: .14rem 0;
  width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- 页脚留白 ---------- */
.container-layout-footer { width: 100%; position: relative; z-index: 2; }
.footer {
  padding-top: .43rem;
  padding-bottom: .4rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* ---------- 二维码大图弹层（黑底，点任意处关闭） ---------- */
.qr-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 562px;
  height: 100%;
  background: #000;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .225s;
  cursor: pointer;
}
.qr-overlay.show { opacity: 1; visibility: visible; }
.qr-overlay img { width: 100%; }
.qr-desc {
  font-size: 15px;
  line-height: 21px;
  text-align: center;
  color: #fff;
  margin-top: 16px;
}

/* ---------- 分享抽屉 ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1290;
  opacity: 0;
  visibility: hidden;
  transition: opacity .225s;
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }

.share-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 562px;
  background: #fff;
  border-radius: 8px 8px 0 0;
  z-index: 1300;
  visibility: hidden;
  transition: transform .225s cubic-bezier(0, 0, .2, 1);
  box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14),
    0 6px 30px 5px rgba(0, 0, 0, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.share-drawer.show { transform: translate(-50%, 0); visibility: visible; }

.drawer-item {
  font-size: 17px;
  line-height: 24px;
  color: rgba(0, 0, 0, .87);
  text-align: center;
  padding: 15.5px 0;
  cursor: pointer;
}
.drawer-item:active { background: #f5f5f5; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 8px);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- IP 信息卡片（微信图标下方） ---------- */
.ip-card {
  display: block;
  margin-top: .26rem;
  border-radius: .08rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  background: #0f172a;
  font-size: 0;
  transition: transform .15s cubic-bezier(0, .2, .5, 3) 0s;
  cursor: pointer;
}
.ip-card:hover { transform: scale(1.03); }
.ip-card img { display: block; width: 100%; height: auto; }

/* ---------- 页脚「关于」入口（浅灰细字，常驻下划线表明可点） ---------- */
.footer .about-link {
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
  color: #adadad;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(173, 173, 173, .55);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.footer .about-link:hover {
  color: #6b7280;
  text-decoration-color: rgba(107, 114, 128, .7);
}
.footer .about-link:focus-visible {
  outline: 2px solid #adadad;
  outline-offset: 2px;
}
