/* ==========================================================================
   名片式主页 · 风景图背景
   --------------------------------------------------------------------------
   单屏左右布局：左=身份+联系，右=作品小卡片。背景为随机风景图 + 深色柔和遮罩。
   玻璃卡用半透明白 + 磨砂，在图片上保持清晰可读、不脏。
   ========================================================================== */

@charset "utf-8";

:root {
  --text: #f5f7fc;
  --text-dim: #d1d8f0;
  --text-faint: #a8b4d8;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.4);
  --radius: 12px;
  --accent-1: #5b9eff;
  --accent-2: #a78bff;
  --accent-3: #4fd8ba;
  --accent-4: #ff9a5e;
  --accent-5: #ff6b9d;
  --accent-6: #6bcbff;
  --accent-gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --shadow-soft: 0 22px 56px -24px rgba(0, 0, 0, 0.65);
  /* 霞鹜文楷用于所有中文，Space Grotesk 用于英文标题，等宽字体用于代码/时间 */
  --font-body: "LXGW WenKai", "霞鹜文楷", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "LXGW WenKai", "霞鹜文楷", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden; /* 一页式：禁止滚动 */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #0a0e1a;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent-2);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   背景：随机风景图片 + 流动玻璃光
   --------------------------------------------------------------------------
   软玻璃的质感核心是"流动"——底图经柔和暗化，几团柔光像液态玻璃里的光
   缓慢漂移，营造液体流动的呼吸感。不硬加锐利光束。
   ========================================================================== */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.88) brightness(1.05);
}
.bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 26, 0.38), rgba(8, 12, 26, 0.52));
}
/* 流动玻璃光：柔和光斑缓慢漂泊 */
.bg-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-flow::before,
.bg-flow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.bg-flow::before {
  width: 44vw;
  height: 44vw;
  min-width: 400px;
  min-height: 400px;
  left: -6%;
  top: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
  animation: flowDrift1 14s ease-in-out infinite alternate;
  animation-delay: var(--flow-delay-1, 0s);
}
.bg-flow::after {
  width: 38vw;
  height: 38vw;
  min-width: 340px;
  min-height: 340px;
  right: -8%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(179, 155, 255, 0.22), transparent 60%);
  animation: flowDrift2 18s ease-in-out infinite alternate;
  animation-delay: var(--flow-delay-2, 0s);
}
@keyframes flowDrift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12vw, 9vh, 0) scale(1.22); }
}
@keyframes flowDrift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-12vw, -9vh, 0) scale(1.26); }
}

/* ==========================================================================
   玻璃卡片：软玻璃 + 内部流动光影
   --------------------------------------------------------------------------
   玻璃本身是半透、磨砂、流动的。卡片内是一层缓慢流动的光(液态感)，
   而不是外加深色或锐利光线。
   ========================================================================== */
/* ==========================================================================
   玻璃卡片：Vision Pro 级清澈玻璃 + 锐利光边 + 内部光晕
   --------------------------------------------------------------------------
   核心：高对比边缘光 + 清澈半透基底 + 多层内阴影营造深度。
   ========================================================================== */
/* ==========================================================================
   玻璃：柔软通透 + 质感轮廓光 + 弹性
   --------------------------------------------------------------------------
   不是锐利死板的高光，而是柔和、有弹性的光边。
   轮廓光：沿玻璃边缘的一圈柔和渐变光，让玻璃像被光勾勒出轮廓。
   ========================================================================== */
.glass {
  position: relative;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03) 48%,
    rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  /* 质感轮廓光：边缘一圈柔和渐变光 + 顶部柔光 + 外投影 */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 30px rgba(0, 0, 0, 0.32);
  transition: all 0.45s var(--ease);
}
/* 轮廓光层：沿边缘一圈柔和光（软玻璃的"描边光"） */
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 50%),
    radial-gradient(100% 100% at 80% 100%, rgba(255, 255, 255, 0.14), transparent 46%);
  mix-blend-mode: screen;
  z-index: 0;
}
/* 流动光：一束通透的光在玻璃内沿弧线游走，干净但有方向感（流光） */
.glass::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 130%;
  left: -28%;
  top: -32%;
  border-radius: 50%;
  background:
    radial-gradient(45% 45% at 35% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14) 52%, transparent 72%),
    radial-gradient(40% 40% at 60% 70%, rgba(255, 255, 255, 0.12), transparent 62%);
  filter: blur(22px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: glassCleanFlow 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  animation-delay: var(--glass-delay, 0s);
}
@keyframes glassCleanFlow {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  40%  { transform: translate(52%, 40%) rotate(14deg) scale(1.08); }
  75%  { transform: translate(12%, 70%) rotate(-10deg) scale(0.94); }
  100% { transform: translate(-12%, 45%) rotate(6deg) scale(1.02); }
}
.glass:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.09));
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    inset 0 0 26px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 44px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  animation: glassBounce 0.6s var(--ease);
}
/* 弹性：hover 时的轻微回弹 */
@keyframes glassBounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(2px); }
  100% { transform: translateY(-3px); }
}
/* ==========================================================================
   一页式主布局：左右分栏，垂直居中
   ========================================================================== */
.page {
  height: 100vh;
  display: flex;
  align-items: stretch; /* 左右栏各自拉伸全高，时间卡在栏内顶部锚定 */
  gap: clamp(3rem, 7vw, 6rem);
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ----- 左栏：头像 + 名字 + 简介 + 统计 + 社交 ----- */
.left-col {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 内容垂直居中，高度拉伸全视口 */
  gap: clamp(1.2rem, 2.6vh, 1.9rem);
}
/* 名字（头像已去掉，单独一行居中） */
.avatar-row {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
/* 名字 */
.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -1px;
  /* 高对比光边渐变：彩虹流光，多色游走 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 8%,
    var(--accent-1) 22%,
    var(--accent-2) 38%,
    var(--accent-5) 52%,
    var(--accent-4) 66%,
    var(--accent-3) 80%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 32px rgba(91, 158, 255, 0.4)) drop-shadow(0 0 12px rgba(91, 158, 255, 0.3));
}
@keyframes nameShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 300% center; }
}
.type-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1), 0 0 20px rgba(91, 158, 255, 0.4);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* 简介引文卡：固定大小，一言长度变化不撑大卡片 */
.intro-card {
  position: relative;
  padding: clamp(1rem, 2.2vh, 1.4rem);
  border-radius: var(--radius);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-dim);
  /* 固定高度：一句话多长都保持稳定尺寸 */
  height: clamp(74px, 12vh, 96px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.intro-text {
  padding: 0.3rem 1.2rem;
  letter-spacing: 0.3px;
  /* 最多两行，超长省略，保证卡片不会被撑大 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 10%,
    var(--accent-1) 25%,
    var(--accent-2) 42%,
    var(--accent-5) 55%,
    var(--accent-3) 72%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(167, 139, 255, 0.25));
}
.quote-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  /* 与简介文字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    var(--accent-1) 30%,
    var(--accent-5) 50%,
    var(--accent-2) 70%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(167, 139, 255, 0.3));
  opacity: 0.95;
}
.quote-left { top: 0.2rem; left: 0.6rem; }
.quote-right { bottom: -0.4rem; right: 0.6rem; }

/* 统计：独立一行，横向排布 */
.stats {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}
.stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  white-space: nowrap;
}
.stat-num {
  font-family: "LXGW WenKai", "霞鹜文楷", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 12%,
    var(--accent-1) 30%,
    var(--accent-2) 46%,
    var(--accent-5) 60%,
    var(--accent-3) 76%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(91, 158, 255, 0.35));
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.stat:hover .stat-num {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 24px rgba(91, 158, 255, 0.55)) brightness(1.15);
}
.stat-label {
  font-family: "LXGW WenKai", "霞鹜文楷", system-ui, sans-serif; /* 与全站统一 */
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}
.stat-label em {
  font-style: normal;
  margin-left: 0.1em;
  color: var(--accent-3);
}
/* 竖分隔 */
.stat-sep {
  width: 1px;
  height: 2.5em;
  align-self: center;
  background: linear-gradient(180deg,
    transparent,
    rgba(255,255,255,0.3) 50%,
    transparent);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* 社交图标 */
.social {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  margin-top: 0.2rem;
}

/* ----- 右栏：时间胶囊 + 作品小卡片 ----- */
.cards-col {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vh, 1.3rem);
}

/* ----- 右栏整体 ----- */
.right-col {
  position: relative;
  flex: 1 1 54%;
  min-width: 0;
}
/* 内容包装器：时间卡+作品卡的容器，面板相对它精确覆盖 */
.cards-wrap {
  position: absolute; /* 锚定右栏，让面板 inset:0 正好框住内容模块 */
  top: clamp(5rem, 14vh, 10rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vh, 1.6rem);
}

/* ==========================================================================
   时间卡片：封面（线性大时钟）+ 触发按钮
   展开时整个封面（含按钮）向右弹走，覆盖面板接管右栏 —— 按钮不挡面板。
   ========================================================================== */
.time-card {
  position: relative;
  flex: 0 0 auto;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) clamp(1.1rem, 2.4vh, 1.6rem) clamp(1rem, 2.2vh, 1.4rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  opacity: 1;
  overflow: hidden; /* 裁掉光晕伪元素出界的部分，避免光晕溢出卡片 */
  /* 纯 transition：只用 transform + opacity 合成层，丝滑不卡 */
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
/* 作品卡 */
.links-grid {
  flex: 0 0 auto;
}
/* 第一张作品卡：与其他卡片一致（标题 + 简介） */
/* 展开开关（时光胶囊）：与流光玻璃简介一致 —— 面板淡入覆盖，卡片原地不动 */
.cards-wrap.capsule-open .time-card,
.cards-wrap.capsule-open .work-card {
  transform: none;
  opacity: 1;
  pointer-events: none;
}
.time-date {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-family: var(--font-display);
  letter-spacing: 0.6px;
  text-align: center;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 12%,
    var(--accent-1) 28%,
    var(--accent-2) 44%,
    var(--accent-5) 58%,
    var(--accent-3) 74%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.3));
}
.time-clock {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    var(--accent-1) 28%,
    var(--accent-5) 48%,
    var(--accent-2) 65%,
    var(--accent-3) 82%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 22px rgba(91, 158, 255, 0.4));
  margin: 0.4rem 0;
  text-align: center;
}
.time-info {
  font-size: 0.85rem;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 18%,
    var(--accent-1) 35%,
    var(--accent-5) 50%,
    var(--accent-2) 68%,
    var(--accent-4) 82%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  letter-spacing: 0.3px;
  text-align: center;
  padding-bottom: clamp(0.8rem, 1.8vh, 1.2rem);
  opacity: 0.95;
}

/* ==========================================================================
   时光胶囊覆盖面板：与普通卡片同款玻璃质感（复用 .glass）
   只负责覆盖 cards-wrap，动画为简约纯淡入。
   ========================================================================== */
.capsule-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius); /* 四个角有弧度 */
  padding: clamp(1.4rem, 3vh, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  z-index: 6;
  /* 与流光玻璃简介一致：不透卡片，直透背景 */
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.10) 48%,
    rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 30px rgba(0, 0, 0, 0.4);
}
/* 展开态：纯淡入接管，简约不花哨 */
.cards-wrap.capsule-open .capsule-panel {
  opacity: 1;
  visibility: visible;
}
/* 面板内的 .glass 光晕收敛，避免盖住进度条、保持简约 */
.capsule-panel.glass::after {
  opacity: 0.4;
}
.capsule-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.capsule-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.capsule-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 10%,
    var(--accent-1) 26%,
    var(--accent-2) 42%,
    var(--accent-5) 56%,
    var(--accent-3) 72%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.3));
}
.capsule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.capsule-label {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--text-dim);
  white-space: nowrap;
}
.capsule-label b {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1.2em;
}
.capsule-pct {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-dim);
  min-width: 3em;
  text-align: right;
}
/* ==========================================================================
   进度条：OPPO Light Field 音乐进度条风格
   --------------------------------------------------------------------------
   一条精致的渐变发光光带，是面板里唯一的光源。光从光带向外溢出，
   在四周形成柔和的环境光（ambient glow）。文字保持干净不发光。
   ========================================================================== */
.capsule-progress {
  height: 6px; /* 更纤细精致的轨道 */
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  /* 不设 overflow，让光能溢出来 */
  position: relative;
  margin-bottom: 0.7rem;
}
/* 环境光晕：光从光带溢出，照亮四周空间（OPPO light field） */
.capsule-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 680%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  filter: blur(26px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: envGlow 6s ease-in-out infinite;
  animation-delay: var(--env-delay, 0s);
}
@keyframes envGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
/* 发光光带：渐变核心 + 强环境光辐射 */
.capsule-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(200, 218, 255, 0.95), rgba(255, 255, 255, 1));
  box-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 255, 255, 0.85),
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: width 0.8s var(--ease);
}
/* 玻璃流动光：光带内部一缕游走的亮白高光（放慢、更淡、不闪） */
.capsule-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: glideLight 6s ease-in-out infinite;
  animation-delay: var(--glide-delay, 0s);
}
@keyframes glideLight {
  from { transform: translateX(0); }
  to { transform: translateX(320%); }
}
/* 柔和呼吸：只用极淡的透明度变化，闪烁刺眼的 brightness 已去掉 */
.capsule-fill {
  animation: pctBreath 5s ease-in-out infinite;
}
@keyframes pctBreath {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
/* 文字保持干净：不发光，只靠进度条的光照亮（OPPO Light Field） */
.capsule-label,
.capsule-pct {
  text-shadow: none;
  color: var(--text-dim);
}

/* ==========================================================================
   项目展开面板：第一张作品卡点击展开，覆盖作品栅格
   ========================================================================== */
.project-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vh, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  z-index: 7;
  /* 不透卡片：白色玻璃基底 + 强模糊，只透背景，不透底层卡片 */
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.10) 48%,
    rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 30px rgba(0, 0, 0, 0.4);
}
.cards-wrap.card-open .project-panel {
  opacity: 1;
  visibility: visible;
}
.project-panel.glass::after {
  opacity: 0.4;
}
/* 展开面板悬停时不允许位移/回弹，避免面板移动露出下方卡片 */
.cards-wrap.card-open .project-panel:hover,
.cards-wrap.capsule-open .capsule-panel:hover {
  transform: none !important;
  animation: none !important;
}
.project-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-panel-head {
  margin-bottom: 0.2rem;
}
.project-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 10%,
    var(--accent-1) 26%,
    var(--accent-2) 42%,
    var(--accent-5) 56%,
    var(--accent-3) 72%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.3));
}
.project-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-dim);
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}
.project-list-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(4px);
}
.pli-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* 作品栅格：两排两列 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vh, 1.5rem);
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

/* ==========================================================================
   作品卡片：玻璃卡 + 3D tilt，大尺寸，无扫光
   ========================================================================== */
.work-card {
  position: relative;
  min-height: 150px;
  height: clamp(150px, 20vh, 180px);
  padding: clamp(1.1rem, 2.4vh, 1.5rem);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}
.work-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 1;
}
.work-icon {
  display: inline-block;
  font-size: 1.7rem;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease), color 0.4s, filter 0.4s;
  transform-origin: center center;
}
.work-card:hover .work-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--accent-3);
  filter: drop-shadow(0 0 10px rgba(111, 230, 200, 0.4));
}
.work-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  /* 与名字一致的流动渐变颜色 */
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 10%,
    var(--accent-1) 26%,
    var(--accent-2) 42%,
    var(--accent-5) 56%,
    var(--accent-3) 72%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 11s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.3));
}
.work-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  z-index: 1;
}
.work-link {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.2rem;
  color: var(--accent-2);
  transition: transform 0.35s var(--ease), filter 0.35s;
  z-index: 1;
}
.work-card:hover .work-link {
  transform: translate(4px, -4px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(179, 155, 255, 0.5));
}
/* 卡片悬停：光带由 JS 驱动 transform 精算位置，贴边直行，转角瞬间向 */
:is(.intro-card, .time-card, .work-card, #capsulePanel, #projectPanel):hover::after {
  background: #fff;
  filter: blur(2px);
  box-shadow: 0 0 5px rgba(255,255,255,0.75), 0 0 14px rgba(255,255,255,0.28);
  border-radius: 999px;
  mix-blend-mode: screen;
  opacity: 1;
  z-index: 2;
  width: 22px;
  height: 2px;
  left: 0;
  top: 0;
  transform: translate(calc(var(--ex, 0px) - 11px), calc(var(--ey, -0.5px) - 1px))
    rotate(var(--er, 0deg));
  animation: none;
  transition: opacity 0.35s ease;
  will-change: transform;
}
/* ==========================================================================
   社交按钮：圆形玻璃图标 + 细腻扫光 + 轻盈浮起
   ========================================================================== */
.social-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: clamp(42px, 7vw, 50px);
  height: clamp(42px, 7vw, 50px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.35s var(--ease);
}
.social-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.35s var(--ease);
}
/* hover：纯净上浮 + 亮边 + 细光晕，无扫光 */
.social-btn:hover {
  color: var(--text);
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.social-btn:hover svg {
  transform: scale(1.12);
}
/* 三个按钮各自品牌色光晕 */
.social-btn:nth-child(1):hover {  /* 邮箱 */
  color: #7fd0ff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 18px rgba(91, 158, 255, 0.45);
}
.social-btn:nth-child(2):hover {  /* GitHub */
  color: #e8ecff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 18px rgba(167, 139, 255, 0.45);
}
.social-btn:nth-child(3):hover {  /* QQ */
  color: #9dffd8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 18px rgba(79, 216, 186, 0.45);
}
.social-btn:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: fixed;
  bottom: clamp(0.6rem, 2vh, 1.5rem);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-body); /* 霞鹜文楷 */
  letter-spacing: 0.5px;
  pointer-events: none;
}
.site-footer p + p {
  margin-top: 0.25rem;
}
.run-days {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(125deg,
    var(--accent-1) 0%,
    var(--accent-2) 50%,
    var(--accent-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 8s ease-in-out infinite alternate;
}

/* ==========================================================================
   展示类卡片：hover 静止，去掉一切划过光线/位移/边缘闪光
   --------------------------------------------------------------------------
   所有卡片一律不扫光。作品卡/社交仅轻微上浮（不扫光）。
   ========================================================================== */

/* ==========================================================================
   滚动入场
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }
  .page {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.2rem;
    padding: 4rem 1.2rem 3.5rem;
  }
  .left-col,
  .right-col {
    flex: none;
    width: 100%;
  }
  .left-col {
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    min-height: 0;
  }
  .name {
    font-size: clamp(2.4rem, 8vw, 3.4rem);
  }
  .avatar-row,
  .stats {
    justify-content: center;
  }
  /* 统计单行不换行，手机上数字收小 */
  .stats {
    gap: clamp(1rem, 4vw, 1.6rem);
  }
  .stat-num {
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  }
  .intro-card {
    width: 100%;
    max-width: 420px;
  }
  .social {
    justify-content: center;
  }

  /* 右栏：cards-wrap 脱离 absolute，回到文档流 */
  .right-col {
    position: relative;
    min-height: 0;
  }
  .cards-wrap {
    position: static;
    display: flex;
    flex-direction: column;
  }
  .time-card,
  .work-card {
    height: auto;
    min-height: 0;
    padding: 1.1rem 1.2rem;
  }
  .time-clock {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* 面板仍然覆盖内容模块 */
  .capsule-panel,
  .project-panel {
    position: absolute;
    inset: 0;
  }
  .site-footer {
    position: static;
    padding: 0.5rem 1rem 2rem;
  }
  .loader-core {
    padding: 2rem 1.6rem;
  }
}

@media (max-width: 430px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   加载等待页：软玻璃卡片 + 流动渐变 + 光线进度
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(2.4rem, 6vw, 3.6rem);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.loader-badge {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent-3);
  filter: drop-shadow(0 0 14px rgba(111, 230, 200, 0.6));
  animation: loaderFloat 2.4s ease-in-out infinite;
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.08); }
}
.loader-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 2px;
  background: linear-gradient(125deg,
    rgba(255,255,255,1) 0%,
    var(--accent-1) 25%,
    var(--accent-2) 42%,
    var(--accent-5) 58%,
    var(--accent-3) 78%,
    rgba(255,255,255,0.95) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameShimmer 3s ease-in-out infinite alternate;
}
.loader-sub {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  opacity: 0.9;
  text-transform: uppercase;
}
.loader-bar {
  position: relative;
  width: min(200px, 60vw);
  height: 3px;
  border-radius: 3px;
  margin-top: 0.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.loader-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 200% 100%;
  animation: loaderBar 1.2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(167, 139, 255, 0.5);
}
@keyframes loaderBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(410%); }
}
/* 加载页的心跳光晕：玻璃内一缕光游走 */
.loader-core::after {
  opacity: 0.35;
}
