:root {
  --bg: #0a0c10;
  --panel: #12151c;
  --panel-2: #171b24;
  --line: #242a36;
  --text: #e6ebf2;
  --muted: #8b97a8;
  --accent: #4ff0d0;
  --accent-2: #6c8cff;
  /* 液态玻璃参数：中等模糊形成真实景深，高饱和让背景色透上来 */
  --glass-blur: 14px;
  --glass-bg: rgba(18, 21, 28, .52);
  --glass-bg-strong: rgba(14, 17, 23, .64);
  --glass-border: rgba(255, 255, 255, .13);
  --glass-hi: rgba(255, 255, 255, .38);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #0a0c10;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100%;
}

/* ===== 背景图（固定在底层，保留原图亮度与色彩） ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  /* 不再压暗，只轻微提亮与增饱和，让画面本身成为主角 */
  filter: brightness(1.02) saturate(1.12) contrast(1.02);
  transform: translateZ(0) scale(1.06);
  will-change: transform;
}
/* 压光层：极轻，只在文字区域保证可读，不再破坏画面 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(8,10,16,.10) 0%, rgba(8,10,16,.30) 58%, rgba(8,10,16,.52) 100%),
    linear-gradient(180deg, rgba(8,10,16,.28) 0%, rgba(8,10,16,.06) 40%, rgba(8,10,16,.34) 100%);
}

/* 背景光晕：加强色流动，落在背景图之上 */
.glow-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 12% 4%, rgba(79, 240, 208, .14), transparent 68%),
    radial-gradient(720px 520px at 88% 12%, rgba(255, 105, 160, .13), transparent 68%),
    radial-gradient(700px 520px at 50% 102%, rgba(108, 140, 255, .12), transparent 70%);
  mix-blend-mode: screen;
  opacity: .9;
}

/* 细网格 */
.glow-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 20px 64px;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 48px;
}

.avatar-img {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10),
              0 0 0 4px rgba(79,240,208,.10),
              0 12px 40px rgba(79,240,208,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.avatar-img:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12),
              0 0 0 4px rgba(79,240,208,.20),
              0 16px 48px rgba(79,240,208,.35);
}

.handle {
  color: #dae3ee;
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0,0,0,.70);
}

.name {
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #b6c2d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(79,240,208,.18));
}

.tagline {
  color: #eef3f9;
  margin-top: 10px;
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

.links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.075));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  font-weight: 500;
  /* 玻璃按钮不依赖 backdrop blur，纯高光渐变 + 内阴影，零性能开销 */
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.40) inset,
    0 -1px 0 0 rgba(255,255,255,.10) inset,
    0 4px 14px rgba(0,0,0,.26);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  border-color: rgba(255,255,255,.40);
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.13));
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.55) inset,
    0 -1px 0 0 rgba(255,255,255,.14) inset,
    0 8px 26px rgba(0,0,0,.32),
    0 0 0 1px rgba(79,240,208,.22);
}

/* 卡片 */
.card {
  position: relative;
  /* 与按钮同一套视觉语言：白色渐变 + 内高光，不依赖模糊 */
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.075));
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  padding: 26px 26px 22px;
  margin-bottom: 18px;
  /* 极轻模糊（按钮同级别的观感），保留一点背景色彩但几乎不耗性能 */
  backdrop-filter: blur(3px) saturate(1.35);
  -webkit-backdrop-filter: blur(3px) saturate(1.35);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.40) inset,
    0 -1px 0 0 rgba(255,255,255,.10) inset,
    0 10px 34px rgba(0,0,0,.30);
  transition: border-color .3s, box-shadow .3s;
  contain: paint;
}
/* 高光层：与按钮同风格的斜向反光，克制不抢内容 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 20%, transparent 44%);
  opacity: .9;
}
/* 内沿亮边：和按钮一样的顶部亮线，形成玻璃厚度 */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.06);
}
.card:hover {
  border-color: rgba(255,255,255,.40);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.55) inset,
    0 -1px 0 0 rgba(255,255,255,.14) inset,
    0 12px 40px rgba(0,0,0,.34);
}
.card > * { position: relative; z-index: 1; }

.card h2 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.card p { color: #f0f5fb; font-size: 15px; text-shadow: 0 1px 5px rgba(0,0,0,.50); }

.note {
  color: #dde5ef !important;
  font-size: 13px !important;
  margin-top: 12px;
  padding-left: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  border-left: 2px solid rgba(79,240,208,.35);
  line-height: 1.75;
}

/* 项目列表 */
.projects { list-style: none; display: grid; gap: 10px; }

.projects a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.24);
  /* 与按钮完全同一套视觉：白色渐变 + 双向内高光 */
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.075));
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.40) inset,
    0 -1px 0 0 rgba(255,255,255,.10) inset,
    0 4px 14px rgba(0,0,0,.26);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.projects a:hover {
  border-color: rgba(255,255,255,.40);
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.13));
  transform: translateX(4px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.55) inset,
    0 -1px 0 0 rgba(255,255,255,.14) inset,
    0 8px 26px rgba(0,0,0,.32),
    0 0 0 1px rgba(79,240,208,.22);
}

.p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.p-title { font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.40); }

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(79,240,208,.10);
  border: 1px solid rgba(79,240,208,.22);
  letter-spacing: .02em;
  font-weight: 500;
}

.p-desc { font-size: 13px; color: #dae3ee; text-shadow: 0 1px 4px rgba(0,0,0,.45); }

footer {
  text-align: center;
  color: #c3cdda;
  font-size: 13px;
  margin-top: 40px;
  text-shadow: 0 1px 6px rgba(0,0,0,.65);
}
.ai-tag {
display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #b8c4d3;
  opacity: .9;
}

/* ---- 小档案 ---- */
.facts { margin: 4px 0 0; display: grid; gap: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: #d3dce8; font-size: 13px; letter-spacing: .02em; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.facts dd { margin: 0; color: #f4f8fd; font-size: 14px; line-height: 1.6; text-shadow: 0 1px 5px rgba(0,0,0,.50); }

/* ---- 留言表单 ---- */
.card .sub { color: #cfd8e4; font-size: 13px; margin: -2px 0 18px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #e2eaf4;
  letter-spacing: .02em;
}
.field label .opt { color: #b9c5d4; font-size: 12px; }
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  /* 与按钮同一套：白色渐变 + 内高光 */
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  outline: none;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.36) inset,
    0 -1px 0 0 rgba(255,255,255,.08) inset,
    0 2px 8px rgba(0,0,0,.16);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #b2bfce; }
.field input:focus,
.field textarea:focus {
  border-color: rgba(79,240,208,.45);
  background: rgba(79,240,208,.04);
  box-shadow: 0 0 0 3px rgba(79,240,208,.10);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.counter { text-align: right; font-size: 12px; color: #b2bfce; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.btn-send {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  color: #04140f;
  background: linear-gradient(135deg, #4ff0d0, #3aa8ff);
  box-shadow: 0 6px 22px rgba(79,240,208,.22);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-send:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(79,240,208,.30); }
.btn-send:disabled { opacity: .55; cursor: default; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: #b9c4d2;
}
html { scroll-behavior: smooth; }
.card:target { animation: cardPulse 1.2s ease; }
@keyframes cardPulse {
  0% { border-color: rgba(79,240,208,.55); box-shadow: 0 0 0 0 rgba(79,240,208,.25); }
  100% { border-color: var(--line); box-shadow: 0 0 0 14px rgba(79,240,208,0); }
}
.status { margin: 14px 0 0; font-size: 13px; min-height: 20px; color: #cfd8e4; }
.status.ok { color: #4ff0d0; }
.status.err { color: #ff7d8a; }

@media (max-width: 520px) {
  .wrap { padding-top: 52px; }
  .card { padding: 22px 18px; }
  .facts > div { grid-template-columns: 78px 1fr; gap: 9px; }
  /* 移动端模糊已很轻（只有卡片），保持即可 */
  body::before { background-position: center 26%; }
}

/* 系统开启「降低透明度」时退回不透明背景，保证可读 */
@media (prefers-reduced-transparency: reduce) {
  body::before, body::after, .glow-bg { display: none; }
  body { background: #0a0c10; }
  .card { background: #12151c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}