/* ============================================================
   Personal Site · 玻璃拟态单页
   ============================================================ */
:root {
  --ink: #eef1ff;
  --muted: rgba(238, 241, 255, .64);
  --faint: rgba(238, 241, 255, .38);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);

  --acc1: #8f7bff;
  --acc2: #4fd1ff;
  --acc3: #ff86c8;
  --acc4: #ffd39b;

  --glass: linear-gradient(155deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .032));
  --glass-hi: linear-gradient(155deg, rgba(255, 255, 255, .155), rgba(255, 255, 255, .05));
  --r: 24px;
  --r-sm: 14px;
  --shadow: 0 26px 70px -24px rgba(0, 0, 0, .8), 0 2px 10px rgba(0, 0, 0, .18);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .16);

  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #05060f;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  letter-spacing: .01em;
}

.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .16em; text-transform: uppercase; }

/* ---------------- 背景 ---------------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.bg-photo {
  position: absolute;
  inset: -6%;
  background: url("bg.jpg") center 42% / cover no-repeat;
  transform: scale(1.06) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .9s var(--ease);
  filter: saturate(126%) brightness(1.1);
}

.bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 18% -5%, rgba(143, 123, 255, .26), transparent 58%),
    radial-gradient(95% 75% at 92% 8%, rgba(79, 209, 255, .14), transparent 62%),
    radial-gradient(80% 60% at 60% 105%, rgba(255, 134, 200, .12), transparent 60%),
    linear-gradient(180deg, rgba(4, 6, 17, .30) 0%, rgba(4, 6, 17, .48) 55%, rgba(3, 4, 12, .74) 100%);
}

/* 缓慢流动的极光 */
.bg-aurora {
  position: absolute; inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(143, 123, 255, .32), transparent 70%),
    radial-gradient(closest-side at 72% 62%, rgba(79, 209, 255, .22), transparent 70%),
    radial-gradient(closest-side at 55% 85%, rgba(255, 134, 200, .16), transparent 70%);
  filter: blur(70px);
  animation: drift 26s ease-in-out infinite alternate;
  opacity: .9;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}

.bg-grid {
  position: absolute; inset: 0;
  opacity: .30;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
}

/* ---------------- 入场门 ---------------- */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 24px;
  background: radial-gradient(90% 80% at 50% 50%, rgba(5, 6, 16, .18), rgba(4, 5, 14, .46));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: opacity .85s var(--ease), visibility .85s;
}
.gate.is-out { opacity: 0; visibility: hidden; }

.gate-inner { text-align: center; max-width: 900px; }

.gate-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .42em;
  color: rgba(255, 255, 255, .45); margin: 0 0 22px;
  text-transform: uppercase;
}

.gate-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.01em;
  background: linear-gradient(96deg, #ffd0e9 0%, #e6c4ff 34%, #a08cff 62%, #ffd9a8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 34px rgba(143, 123, 255, .45));
}
.gate-name { padding: 0 .18em; }

.gate-sub {
  margin: 18px 0 34px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px; letter-spacing: .06em;
}

.gate-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  font: inherit; font-size: 14.5px; letter-spacing: .1em;
  color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transition: all .35s var(--ease);
}
.gate-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.gate-btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .07), 0 18px 40px -18px rgba(143, 123, 255, .9); }
.gate-btn:hover svg { transform: translateX(4px); }

.gate-foot {
  margin: 40px 0 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  color: rgba(255, 255, 255, .22);
}

/* ---------------- 身份卡 ---------------- */
.identity {
  position: fixed; inset: 0; z-index: 58;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 5, 14, .46);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.identity.is-on { opacity: 1; visibility: visible; }
.identity.is-on .id-card { transform: none; opacity: 1; }

.id-card {
  width: min(880px, 100%);
  display: grid; grid-template-columns: 1fr 1.06fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .85);
  transform: translateY(18px) scale(.985); opacity: 0;
  transition: all .7s var(--ease);
}

.id-art {
  position: relative;
  background: linear-gradient(160deg, #f0f1f5, #e6e8ef);
  min-height: 420px;
  display: grid; place-items: end center;
  overflow: hidden;
}
.id-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: 0;
  background: linear-gradient(0deg, rgba(223, 226, 234, .96), rgba(223, 226, 234, 0));
}
.blob { position: absolute; bottom: 42px; border-radius: 44% 44% 12% 12% / 40% 40% 10% 10%; z-index: 1; }
.blob-a { left: 8%;  width: 34%; height: 150px; background: #7b52ff; border-radius: 46% 46% 8% 8% / 34% 34% 8% 8%; }
.blob-b { left: 40%; width: 26%; height: 176px; background: #1d1d22; border-radius: 46% 46% 6% 6% / 26% 26% 6% 6%; }
.blob-c { left: 62%; width: 30%; height: 132px; background: #ffd21e; border-radius: 52% 48% 8% 8% / 30% 26% 8% 8%; }
.blob-d { left: -4%; bottom: 34px; width: 34%; height: 90px; background: #ff7a2f; border-radius: 50% 50% 10% 10% / 46% 46% 10% 10%; }
.blob-eyes { position: absolute; left: 48.5%; bottom: 148px; display: flex; gap: 11px; z-index: 2; }
.blob-eyes i { width: 6px; height: 11px; border-radius: 50%; background: #f7f7fa; }
.id-art-cap {
  position: relative; z-index: 3; margin: 0 0 16px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .28em;
  color: rgba(20, 22, 34, .34);
}

.id-form { padding: 44px 46px 34px; color: #14161f; text-align: center; }
.id-spark { margin: 0; font-size: 16px; color: #8f7bff; }
.id-form h2 { margin: 8px 0 6px; font-size: 27px; letter-spacing: -.01em; }
.id-tip { margin: 0 0 22px; font-size: 12.5px; color: #8b8f9e; }

.avatars { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.av {
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid transparent;
  background: #f3f4f8; overflow: hidden;
  display: grid; place-items: center;
  transition: all .28s var(--ease);
}
.av svg { width: 100%; height: 100%; }
.av:hover { transform: translateY(-2px); border-color: #d9dbe6; }
.av.is-on { border-color: #14161f; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(20, 22, 34, .12); }
.av-rand {
  border: 1.5px dashed #c9ccd8; color: #9ca0ad; font-size: 18px; background: #fff;
}

.id-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #6b7080; margin-bottom: 8px; text-align: left;
}
.id-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.id-input {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 13.5px; color: #14161f;
  background: #f2f3f7; border: 1px solid transparent; border-radius: 11px;
  outline: none; transition: all .25s var(--ease);
}
.id-input::placeholder { color: #a6aab8; }
.id-input:focus { background: #fff; border-color: #b9a8ff; box-shadow: 0 0 0 4px rgba(143, 123, 255, .14); }

.id-submit {
  width: 100%; margin-top: 14px; padding: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: #fff;
  background: #14161f; border: 0; border-radius: 11px; cursor: pointer;
  transition: all .3s var(--ease);
}
.id-submit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.id-submit:disabled { background: #ecedf2; color: #b4b7c4; cursor: not-allowed; }
.id-submit:not(:disabled):hover { background: #000; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }

.id-foot { margin: 18px 0 0; font-size: 11px; color: #a0a4b2; }
.linklike { font: inherit; color: #6f56ff; background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 主壳 ---------------- */
.shell {
  position: relative; z-index: 2;
  height: 100dvh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 30px 22px 26px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease) .15s, transform 1s var(--ease) .15s;
}
.shell.is-on { opacity: 1; transform: none; }

/* ---------------- 左栏 ---------------- */
.sidebar {
  display: flex; flex-direction: column;
  padding: 26px 22px 20px;
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  overflow: hidden;
  position: relative;
}
.sidebar::before {
  content: ""; position: absolute; inset: -40% 30% 60% -30%;
  background: radial-gradient(circle, rgba(143, 123, 255, .28), transparent 68%);
  pointer-events: none;
}

.side-avatar { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; }
.side-avatar .ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--acc1), var(--acc2), var(--acc3), var(--acc4), var(--acc1));
  filter: blur(.4px);
  animation: spin 14s linear infinite;
}
.side-avatar .face {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, #4b3f9e, #2b2a63 60%, #1d1f3d);
  border: 3px solid #0a0b18;
  box-shadow: inset 0 0 22px rgba(143, 123, 255, .5);
}
.status-dot {
  position: absolute; right: 2px; bottom: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #3ddc84; border: 2.5px solid #0a0b18;
  box-shadow: 0 0 12px rgba(61, 220, 132, .9);
}

.visitor {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(143, 123, 255, .22), rgba(79, 209, 255, .10));
  border: 1px solid rgba(255, 255, 255, .12);
}
.v-av {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, #6b5ce7, #3a3f8f);
}
.v-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.v-txt strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-txt > span { display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255, 255, 255, .5); }
.dot-live { width: 5px; height: 5px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; display: inline-block; }

.side-name {
  margin: 0; text-align: center;
  font-size: 27px; font-weight: 700; letter-spacing: -.015em;
  background: linear-gradient(180deg, #fff, #c9c6f5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.side-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; font-size: 10px; color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); border-radius: 7px;
  white-space: nowrap;
}
.tag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }

.side-motto {
  margin: 20px 0 0; text-align: center;
  font-size: 11.5px; line-height: 2.05; color: rgba(255, 255, 255, .52);
}
.side-motto .mono { display: block; margin-bottom: 6px; color: rgba(143, 123, 255, .85); font-size: 9px; }

.side-cta {
  margin-top: 18px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: linear-gradient(120deg, rgba(143, 123, 255, .85), rgba(107, 92, 231, .7));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  box-shadow: 0 12px 30px -14px rgba(143, 123, 255, .9);
  transition: all .3s var(--ease);
}
.side-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.side-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.side-cta:hover svg { transform: translateX(3px); }

.side-divider { height: 1px; margin: 22px 0 16px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.side-eyebrow { margin: 0 0 12px; font-size: 10.5px; color: rgba(255, 255, 255, .45); letter-spacing: .08em; }
.side-eyebrow .mono { font-size: 9px; opacity: .7; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.traits span {
  padding: 7px 6px; text-align: center;
  font-size: 10.5px; color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft); border-radius: 8px;
  transition: all .3s var(--ease);
}
.traits span:hover { background: rgba(143, 123, 255, .18); border-color: rgba(143, 123, 255, .4); color: #fff; }

.side-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; justify-content: space-between;
  font-size: 9px; color: rgba(255, 255, 255, .26);
}

/* ---------------- 右栏滚动区 ---------------- */
.content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; }

.view {
  min-height: calc(100dvh - 44px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 34px 4px 34px 0;
  scroll-snap-align: start;
  position: relative;
}

/* 卡片通用 */
.card {
  position: relative;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inset);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transition: transform .45s var(--ease), border-color .45s, background .45s, box-shadow .45s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), transparent 42%);
  opacity: .8;
}

.eyebrow {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.eyebrow .mono { font-size: 9px; opacity: .55; }
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--acc1);
  box-shadow: 0 0 0 0 rgba(143, 123, 255, .8);
  animation: pulse 2.4s infinite;
}

/* 首页 */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: stretch;
}

.hero { padding: 32px 34px 28px; display: flex; flex-direction: column; overflow: hidden; }
.hero h1 { margin: 20px 0 0; display: flex; flex-direction: column; gap: 2px; }
.hello { font-size: 30px; font-weight: 600; color: rgba(255, 255, 255, .92); letter-spacing: -.01em; }
.hero-name {
  font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em;
  background: linear-gradient(96deg, #b7a4ff, #6f8cff 55%, #4fd1ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 28px rgba(111, 140, 255, .35));
}
.hero-desc { margin: 18px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 2; color: var(--muted); }
.hero-desc b { color: #fff; font-weight: 600; }
.hero-stats { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 11.5px; color: rgba(255, 255, 255, .46); }
.hero-stats b { margin-right: 3px; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.hero-stats i { width: 1px; height: 11px; background: rgba(255, 255, 255, .14); }
.hero-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 16px; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; font-size: 12px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; transition: all .3s var(--ease);
}
.mini-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-btn:hover { background: rgba(143, 123, 255, .3); border-color: rgba(143, 123, 255, .6); transform: translateY(-2px); }
.hint { font-size: 9px; color: rgba(255, 255, 255, .28); }
.hero-glow {
  position: absolute; right: -18%; top: -30%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 123, 255, .30), transparent 66%);
  filter: blur(20px); pointer-events: none;
}

/* 音乐板块 */
.music {
  grid-column: 2; grid-row: 1;
  padding: 18px 18px 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mu-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 12px; }
.mu-bars i {
  width: 2.5px; height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--acc2), var(--acc1));
  animation: eq 1.1s ease-in-out infinite;
}
.mu-bars i:nth-child(2) { animation-delay: .16s; }
.mu-bars i:nth-child(3) { animation-delay: .34s; }
.mu-bars i:nth-child(4) { animation-delay: .08s; }
@keyframes eq {
  0%, 100% { height: 4px; opacity: .65; }
  50% { height: 12px; opacity: 1; }
}
.mu-badge { font-size: 8px; letter-spacing: .16em; color: rgba(255, 255, 255, .22); }

.mu-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.mu-player { width: 100%; }
.mu-foot {
  margin-top: 10px; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 8px; letter-spacing: .16em; color: rgba(255, 255, 255, .26);
}
.mu-tip { color: rgba(143, 123, 255, .6); }

/* APlayer 深色适配 */
.mu-player.aplayer {
  background: transparent; margin: 0; border-radius: 0;
  box-shadow: none; font-family: var(--font); overflow: visible;
}
.mu-player .aplayer-body { background: transparent; }
.mu-player .aplayer-pic {
  width: 96px; height: 96px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.mu-player .aplayer-pic .aplayer-play,
.mu-player .aplayer-pic .aplayer-pause { border-color: rgba(255, 255, 255, .9); background: rgba(10, 11, 24, .38); backdrop-filter: blur(6px); }
.mu-player .aplayer-info {
  margin-left: 96px; height: 96px;
  padding: 6px 0 0 16px; border: 0 !important;
}
.mu-player .aplayer-info .aplayer-music {
  margin: 0; height: auto; padding: 0 0 12px;
}
.mu-player .aplayer-title { color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.mu-player .aplayer-author { color: rgba(255, 255, 255, .42) !important; font-size: 10.5px; }
.mu-player .aplayer-author::before {
  content: "·"; margin: 0 5px 0 0; color: rgba(255, 255, 255, .28);
}
.mu-player .aplayer-bar-wrap { margin: 0 !important; padding: 5px 0 !important; }
.mu-player .aplayer-bar { height: 3px !important; background: rgba(255, 255, 255, .18) !important; border-radius: 99px; }
.mu-player .aplayer-loaded { height: 3px !important; background: rgba(255, 255, 255, .2) !important; border-radius: 99px; }
.mu-player .aplayer-played { height: 3px !important; border-radius: 99px; }
.mu-player .aplayer-time { color: rgba(255, 255, 255, .38) !important; font-family: var(--mono); font-size: 9.5px !important; bottom: 6px !important; padding-left: 4px !important; }
.mu-player .aplayer-time .aplayer-icon path,
.mu-player .aplayer-icon path { fill: rgba(255, 255, 255, .55) !important; }
.mu-player .aplayer-time .aplayer-icon:hover path { fill: #fff !important; }
.mu-player .aplayer-volume-bar { background: rgba(255, 255, 255, .18) !important; }
.mu-player .aplayer-list { border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 4px; }
.mu-player .aplayer-list ol { padding-top: 2px; }
.mu-player .aplayer-list ol::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
.mu-player .aplayer-list ol li {
  height: 30px; line-height: 30px; padding: 0 10px;
  font-size: 11.5px; color: rgba(255, 255, 255, .62);
  border-top: 0 !important; border-radius: 8px;
}
.mu-player .aplayer-list ol li:hover { background: rgba(255, 255, 255, .06) !important; }
.mu-player .aplayer-list ol li.aplayer-list-light {
  background: linear-gradient(90deg, rgba(143, 123, 255, .24), rgba(143, 123, 255, .04)) !important;
  color: #fff;
}
.mu-player .aplayer-list ol li .aplayer-list-index { color: rgba(255, 255, 255, .3) !important; margin-right: 10px; }
.mu-player .aplayer-list ol li .aplayer-list-author { color: rgba(255, 255, 255, .28) !important; font-size: 10.5px; }
.mu-player .aplayer-list-cur { display: none !important; }
.mu-player .aplayer-notice { background: rgba(143, 123, 255, .9) !important; color: #fff !important; }

.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media {
  position: relative; display: block; overflow: hidden;
  height: 186px; padding: 16px 18px;
  text-decoration: none; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.media:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .26); }
.media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6, 8, 20, .06) 0%, rgba(6, 8, 20, .24) 42%, rgba(6, 8, 20, .74) 100%);
}
.media > * { position: relative; z-index: 1; }
.media-tag { position: absolute; top: 14px; left: 18px; margin: 0; font-size: 8.5px; letter-spacing: .2em; color: rgba(255, 255, 255, .62); }
.media h3 { position: relative; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.media-sub { position: relative; margin: 4px 0 0; font-size: 8px; letter-spacing: .14em; color: rgba(255, 255, 255, .45); }
.media-arrow {
  position: absolute; right: 16px; bottom: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  opacity: 0; transform: translateX(-6px);
  transition: all .35s var(--ease);
}
.media-arrow svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media:hover .media-arrow { opacity: 1; transform: none; }

.media-art { position: absolute; inset: 0; }
.media-1 { background: linear-gradient(150deg, #86c9c2, #5fa8a6 55%, #3d7f82); }
.media-1 .doodle { position: absolute; border-radius: 50%; }
.d1 { width: 74px; height: 74px; left: 18%; top: 22%; background: rgba(255, 255, 255, .55); box-shadow: inset -6px -6px 0 rgba(255, 255, 255, .3); }
.d2 { width: 40px; height: 40px; right: 16%; top: 16%; background: rgba(255, 255, 255, .3); }
.d3 { width: 110px; height: 110px; right: -6%; bottom: -14%; background: rgba(255, 255, 255, .18); }
.media-2 { background: linear-gradient(150deg, #6e4a3a, #7d4f3f 40%, #2f2230); }
.media-2 .bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ffd9a0, rgba(255, 180, 80, .1) 72%); filter: blur(1px); }
.b1 { width: 46px; height: 46px; left: 12%; top: 14%; opacity: .8; }
.b2 { width: 26px; height: 26px; left: 46%; top: 8%; opacity: .6; }
.b3 { width: 60px; height: 60px; right: 10%; top: 24%; opacity: .55; }
.b4 { width: 18px; height: 18px; left: 30%; top: 40%; opacity: .9; }

.stack { padding: 20px 22px; grid-column: 2; grid-row: 2; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.stack-list { list-style: none; margin: 14px 0 0; padding: 0; }
.stack-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 10px; border-bottom: 1px dashed var(--line-soft);
  font-size: 11.5px; color: rgba(255, 255, 255, .78);
  border-radius: 8px; transition: all .28s var(--ease);
}
.stack-list li:last-child { border-bottom: 0; }
.stack-list li:hover { background: rgba(255, 255, 255, .06); padding-left: 14px; }
.stack-list em { font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, .36); }

/* 区块标题 */
.view-head { margin-bottom: 26px; }
.view-head h2 {
  margin: 0; display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #c3bfe8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.view-head h2 .mono {
  font-size: 9.5px; letter-spacing: .26em; color: var(--acc1);
  -webkit-text-fill-color: var(--acc1); opacity: .85;
}
.view-head p { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.view-head p::after {
  content: ""; display: block; width: 52px; height: 1px; margin-top: 16px;
  background: linear-gradient(90deg, var(--acc1), transparent);
}

/* 时间线 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(180deg, rgba(143, 123, 255, .7), rgba(79, 209, 255, .45), rgba(255, 255, 255, .06));
}
.tl-item { padding: 20px 24px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 30px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #0a0b18; border: 2px solid var(--acc1);
  box-shadow: 0 0 14px rgba(143, 123, 255, .8);
}
.tl-item:hover { transform: translateX(4px); border-color: rgba(143, 123, 255, .38); background: var(--glass-hi); }
.tl-period { display: block; font-size: 9.5px; letter-spacing: .18em; color: var(--acc1); }
.tl-item h3 { margin: 8px 0 8px; font-size: 17.5px; font-weight: 650; letter-spacing: -.01em; }
.tl-item h3 small { font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .42); }
.tl-item p { margin: 0; font-size: 11.8px; line-height: 1.95; color: rgba(255, 255, 255, .5); max-width: 62ch; }
.tl-link {
  position: absolute; right: 22px; top: 22px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .3); text-decoration: none;
  text-transform: uppercase; transition: color .3s;
}
.tl-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-item:hover .tl-link { color: var(--acc2); }

/* 矩阵 */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mx { padding: 24px 26px 18px; display: flex; flex-direction: column; }
.mx:hover { transform: translateY(-5px); border-color: rgba(143, 123, 255, .42); box-shadow: 0 30px 60px -26px rgba(143, 123, 255, .55), var(--inset); }
.mx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mx-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  color: var(--acc2);
}
.mx-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mx-top .mono { font-size: 8px; letter-spacing: .18em; color: rgba(255, 255, 255, .28); text-align: right; }
.mx h3 { margin: 18px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.mx p { margin: 0; font-size: 11.8px; line-height: 2; color: rgba(255, 255, 255, .48); }
.mx-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
}
.mx-foot .mono { font-size: 8px; letter-spacing: .18em; color: rgba(255, 255, 255, .22); }
.mx-foot a { font-size: 10.5px; color: rgba(255, 255, 255, .4); text-decoration: none; transition: color .3s; }
.mx:hover .mx-foot a { color: var(--acc2); }

/* 联系 */
.contact { padding: 26px 28px 22px; }
.ct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-track {
  width: 34px; height: 19px; border-radius: 99px;
  background: rgba(255, 255, 255, .13); border: 1px solid var(--line);
  position: relative; transition: all .3s var(--ease);
}
.sw-track i {
  position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .7);
  transition: all .3s var(--ease);
}
.switch input:checked + .sw-track { background: linear-gradient(90deg, var(--acc1), var(--acc2)); border-color: transparent; }
.switch input:checked + .sw-track i { left: 17px; background: #fff; }
.sw-text { font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.ct-note { font-size: 8.5px; color: rgba(255, 255, 255, .24); }

.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field { position: relative; display: flex; flex-direction: column; }
.field label { margin-bottom: 7px; font-size: 10.5px; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.field label small { color: rgba(255, 255, 255, .28); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 12.5px; color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 11px;
  outline: none; resize: none;
  transition: all .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .26); }
.field input:focus, .field textarea:focus {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(143, 123, 255, .6);
  box-shadow: 0 0 0 4px rgba(143, 123, 255, .12);
}
.field textarea { line-height: 1.9; }
.ct-grid ~ .field { margin-top: 16px; }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: 8.5px; color: rgba(255, 255, 255, .22); }
.counter i { font-style: normal; }

.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.ct-hint { margin: 0; font-size: 8.5px; color: rgba(255, 255, 255, .22); }
.send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; font: inherit; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(120deg, rgba(143, 123, 255, .9), rgba(79, 209, 255, .7));
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 11px; cursor: pointer;
  transition: all .3s var(--ease);
}
.send svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.send:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(143, 123, 255, .95); }

.site-foot {
  margin-top: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 10px; color: rgba(255, 255, 255, .24);
}
.site-foot .mono { font-size: 8.5px; letter-spacing: .18em; }

/* 浮动控件 */
.dock { position: fixed; top: 26px; right: 26px; z-index: 30; display: grid; gap: 9px; }
.dock-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: all .3s var(--ease);
}
.dock-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.dock-btn.is-on { color: #fff; background: rgba(143, 123, 255, .45); border-color: rgba(143, 123, 255, .7); }
.dock-btn .wave { opacity: .3; transition: opacity .3s; }
.dock-btn.is-on .wave { opacity: 1; animation: pulse 1.8s infinite; }

.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 32;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #7b68ee, #5a4bd6);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 18px 40px -14px rgba(123, 104, 238, .9);
  transition: all .35s var(--ease);
}
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-ping {
  position: absolute; top: 4px; right: 5px;
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84;
  border: 2px solid #10112a;
  animation: pulse 2.6s infinite;
}
.fab.is-hide { opacity: 0; transform: scale(.8); pointer-events: none; }

/* 聊天 */
.chat {
  position: fixed; right: 28px; bottom: 94px; z-index: 33;
  width: 330px; max-height: 460px;
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: rgba(14, 15, 30, .86);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); transform-origin: bottom right;
  transition: all .4s var(--ease);
}
.chat.is-on { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.chat-av {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, #7b68ee, #3a3f8f);
}
.chat-head strong { display: block; font-size: 12.5px; }
.chat-head span { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: rgba(255, 255, 255, .42); }
.chat-head button {
  margin-left: auto; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(255, 255, 255, .06); border: 0; color: rgba(255, 255, 255, .6);
  cursor: pointer; font-size: 11px;
}
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 13px; font-size: 11.8px; line-height: 1.85; border-radius: 13px; }
.bubble.bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; color: rgba(255, 255, 255, .84); }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, rgba(143, 123, 255, .85), rgba(107, 92, 231, .8)); border-bottom-right-radius: 4px; color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line-soft); }
.chat-input input {
  flex: 1; padding: 9px 12px; font: inherit; font-size: 11.8px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 9px; outline: none;
}
.chat-input input::placeholder { color: rgba(255, 255, 255, .3); }
.chat-input button {
  width: 34px; border-radius: 9px; cursor: pointer; color: #fff;
  background: linear-gradient(120deg, #8f7bff, #6b5ce7); border: 0;
  display: grid; place-items: center;
}
.chat-input button svg { width: 15px; height: 15px; fill: currentColor; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 70;
  transform: translate(-50%, 16px);
  padding: 11px 20px; font-size: 12px;
  color: #fff; background: rgba(20, 21, 40, .95);
  border: 1px solid rgba(143, 123, 255, .5); border-radius: 11px;
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0; visibility: hidden; transition: all .4s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 123, 255, .7); }
  70% { box-shadow: 0 0 0 9px rgba(143, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 123, 255, 0); }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .media-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .shell {
    height: auto; grid-template-columns: 1fr; gap: 16px;
    padding: 16px 14px 90px;
  }
  .sidebar { padding: 22px 18px; }
  .content { height: auto; overflow: visible; padding-right: 0; scroll-snap-type: none; }
  .view { min-height: auto; padding: 26px 0; }
  .home-grid { grid-template-columns: 1fr; }
  .music { grid-column: 1; grid-row: auto; }
  .stack { grid-column: 1; grid-row: auto; }
  .matrix { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr; }
  .id-card { grid-template-columns: 1fr; }
  .id-art { min-height: 150px; display: none; }
  .id-form { padding: 34px 24px 26px; }
  .traits { grid-template-columns: 1fr 1fr; }
  .side-foot { margin-top: 18px; }
  .media-row { grid-template-columns: 1fr 1fr; }
  .dock { top: 14px; right: 14px; }
  .chat { right: 12px; left: 12px; width: auto; }
  .fab { right: 18px; bottom: 18px; }
}

@media (max-width: 560px) {
  .media-row { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; }
  .hero-name { font-size: 34px; }
  .site-foot { flex-direction: column; gap: 6px; }
  .ct-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .content { scroll-behavior: auto; }
}
 
