/* 全局与背景 */
* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #ffffff;
  /* 背景图 */
  background: url('https://pic.mcxclr.top') center/cover no-repeat fixed;
  /* 叠加暗色渐变，提高对比度 */
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,255,255,0.08), transparent 60%),
              radial-gradient(900px 700px at 80% 90%, rgba(0, 180, 255, 0.12), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 0;
}

/* 液态彩斑（柔焦动效） */
.blob,
.blob2 {
  position: fixed;
  filter: blur(50px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.blob {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 175, 255, 0.6), rgba(120, 200, 255, 0.5), rgba(255, 255, 255, 0.0));
  animation: floatA 18s ease-in-out infinite;
  top: 12%;
  left: 8%;
}
.blob2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 220, 120, 0.55), rgba(160, 255, 200, 0.5), rgba(255,255,255,0.0));
  animation: floatB 22s ease-in-out infinite;
  bottom: 8%;
  right: 6%;
}
@keyframes floatA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -20px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes floatB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-35px, 30px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* 布局与卡片（液态玻璃） */
.header, .footer, .profile-card {
  position: relative;
  z-index: 1; /* 置于彩斑之上 */
}

.header, .footer {
  text-align: center;
  padding: 24px 16px;
  margin: 0 auto;
  max-width: 840px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
}

main.profile-card {
  margin: 28px auto;
  max-width: 900px;
  padding: 28px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;

  /* 液态玻璃核心 */
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 20px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: 22px;
}

/* 内部装饰的高光与暗影（更像玻璃） */
.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 22px;
}
.profile-card::before {
  inset: -1px -1px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.05));
  opacity: 0.25;
  mix-blend-mode: screen;
}
.profile-card::after {
  inset: 0;
  background:
    radial-gradient(100% 60% at 0% 0%, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(100% 60% at 100% 100%, rgba(0,0,0,0.18), transparent 60%);
  opacity: 0.25;
}

/* 头像区域 */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

/* 文本区域 */
.details, .contact-info {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.5px;
}
.header p {
  margin: 0;
  opacity: 0.9;
}
h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
ul {
  margin: 0;
  padding-left: 18px;
}
li {
  margin: 6px 0;
}

/* 联系信息与复制按钮 */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.label {
  min-width: 110px;
  color: #e8f3ff;
  opacity: 0.95;
}
.value {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
}
.copy-btn {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #0f1a24;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(240,240,240,0.75));
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,240,240,0.85));
}
.copy-btn:active {
  transform: translateY(0);
}

/* 页脚 */
.footer p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.4px;
  opacity: 0.95;
}

/* 响应式 */
@media (max-width: 760px) {
  main.profile-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .header, .footer {
    margin: 12px;
  }
}

/* 在文档加载时，插入液态彩斑元素（可选：也可直接在 HTML 中添加两个 div.blob） */
:root::before { content: none; }
/* 如果不在 HTML 中添加，使用脚本动态添加 .blob 与 .blob2 */