/* ============ 冬夜令牌 ============ */
:root {
  --bg-0: #0a1422;
  --bg-1: #0c1728;
  --nav-bg: rgba(10, 20, 34, 0.6);
  --panel-bg: rgba(10, 20, 34, 0.88);
  --text: #e9eff7;
  --text-soft: rgba(224, 232, 244, 0.58);
  --ice: #a8d0f0;
  --ice-deep: #7fb0dc;
  --accent-soft: rgba(168, 208, 240, 0.35);
  --glow: rgba(168, 208, 240, 0.16);
  --card: rgba(255, 255, 255, 0.055);
  --card-deep: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.085);
  --card-border: rgba(255, 255, 255, 0.11);
  --grad: linear-gradient(135deg, #d7ebfb, #9cc4e8);
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --shadow-card: 0 14px 44px rgba(4, 10, 20, 0.45);
}

/* 雪后清晨（浅色主题） */
[data-theme="light"] {
  --bg-0: #e8eef6;
  --bg-1: #dde8f3;
  --nav-bg: rgba(232, 238, 246, 0.72);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --text: #24344a;
  --text-soft: rgba(36, 52, 74, 0.6);
  --ice: #3d6a99;
  --ice-deep: #35618e;
  --accent-soft: rgba(61, 106, 153, 0.3);
  --glow: rgba(61, 106, 153, 0.14);
  --card: rgba(255, 255, 255, 0.66);
  --card-deep: rgba(255, 255, 255, 0.5);
  --card-hover: rgba(255, 255, 255, 0.88);
  --card-border: rgba(36, 52, 74, 0.12);
  --grad: linear-gradient(135deg, #7fb0dc, #4a7cb0);
  --shadow-card: 0 14px 40px rgba(52, 82, 120, 0.16);
}
[data-theme="light"] body {
  font-size: 16px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, #ffffff 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}
[data-theme="light"] .welcome {
  background: radial-gradient(ellipse 70% 50% at 50% 40%, #ffffff 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}
[data-theme="light"] .welcome-card { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .welcome-left { background: rgba(226, 236, 248, 0.6); }
[data-theme="light"] .site-nav { background: var(--nav-bg); }
[data-theme="light"] .overlay { background: rgba(214, 226, 240, 0.6); }
[data-theme="light"] .overlay-panel { background: rgba(250, 253, 255, 0.94); }
[data-theme="light"] .music-card { background: rgba(250, 253, 255, 0.95); }
[data-theme="light"] .fab { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .btn-primary { background: linear-gradient(#ffffff, #ffffff) padding-box; }
[data-theme="light"] .tsubmit { background: #ffffff; }
[data-theme="light"] .article pre { background: rgba(24, 38, 58, 0.92); }
[data-theme="light"] .article pre code { color: #e9eff7; }
[data-theme="light"] .mlp-toggle { color: #ffffff; }
[data-theme="light"] .is-open { color: #ffffff; }
[data-theme="light"] #star-bg { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, #12233c 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

#star-bg { position: fixed; inset: 0; z-index: 0; }

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(190, 215, 240, 0.72);
}

/* ============ 流光边框（参考 React Bits Star Border） ============ */
@property --sb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.btn {
  border: none; cursor: pointer; font-family: var(--font-sans);
  border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  position: relative; z-index: 0;
}
.btn-primary {
  color: var(--ice);
  padding: 12px 36px; font-size: 15px; letter-spacing: 0.08em;
  background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box;
  border: 1px solid rgba(168, 208, 240, 0.45);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--sb-angle),
    transparent 0deg, transparent 220deg,
    rgba(215, 235, 251, 0.9) 300deg, rgba(127, 176, 220, 0.6) 340deg, transparent 360deg);
  animation: sb-spin 4s linear infinite;
  opacity: 0; transition: opacity .3s ease;
}
.btn-primary:hover { color: var(--bg-0); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  background: linear-gradient(rgba(215, 235, 251, 0.92), rgba(215, 235, 251, 0.92)) padding-box;
  box-shadow: 0 8px 30px var(--glow);
  transform: translateY(-2px);
}
@keyframes sb-spin { to { --sb-angle: 360deg; } }

/* ============ 脉冲状态点（柔化） ============ */
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #b9e2c8; display: inline-block; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(185, 226, 200, 0);
  animation: signal-pulse 3s ease-out infinite;
}
@keyframes signal-pulse { 0% { box-shadow: 0 0 0 0 rgba(185, 226, 200, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(185, 226, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 226, 200, 0); } }

/* ============ 玻璃卡 ============ */
.gcard {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.gcard::before {  /* 聚光柔光：跟随光标（参考 React Bits Spotlight） */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(190px circle at var(--mx, 85%) var(--my, 8%), rgba(215, 235, 251, 0.10), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.gcard:hover {
  background: var(--card-hover);
  border-color: rgba(168, 208, 240, 0.4);
  box-shadow: 0 14px 44px rgba(4, 10, 20, 0.45);
  transform: translateY(-4px);
}
.gcard:hover::before { opacity: 1; }

/* ============ 入场仪式 ============ */
.welcome {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, #12233c 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  animation: fade-in .4s ease both;
}
.welcome.is-leaving { animation: welcome-out .45s ease both; }
@keyframes welcome-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@keyframes fade-in { from { opacity: 0; } }

.welcome-stage { text-align: center; padding: 20px; animation: rise-in .5s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.welcome-kicker { font-size: 13px; letter-spacing: 0.5em; color: var(--text-soft); }
.welcome-title { font-size: clamp(28px, 6vw, 54px); font-weight: 700; letter-spacing: 0.02em; margin: 22px 0 40px; }
.welcome-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome-title .cipher-ch { display: inline-block; min-width: 0.5em; text-align: center; }

/* Onboarding 卡 */
.welcome-card {
  display: flex; width: min(640px, 92vw); min-height: 400px;
  background: var(--panel-bg); color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 26px; overflow: hidden;
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.welcome-left {
  flex: 0 0 42%; background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--card-border);
  display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 18px;
  padding: 26px;
}
.welcome-left svg { width: 100%; height: auto; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); }
.welcome-right { flex: 1; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.wc-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.wc-title::before { content: "❄ "; color: var(--ice); }
.wc-hint { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }

.avatar-row { display: flex; gap: 14px; margin-bottom: 22px; }
.avatar-opt {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.avatar-opt:nth-child(1) { background: #f59e0b; }
.avatar-opt:nth-child(2) { background: #93b8e4; }
.avatar-opt:nth-child(3) { background: #5b7a99; }
.avatar-opt:nth-child(4) { background: #10b981; }
.avatar-opt:hover { transform: scale(1.12); }
.avatar-opt.is-picked { border-color: #d7ebfb; box-shadow: 0 0 14px var(--glow); transform: scale(1.12); }

.wc-input {
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 12px 16px; font-size: 15px; font-family: var(--font-sans);
  margin-bottom: 22px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  color: var(--text); background: rgba(255, 255, 255, 0.04);
}
.wc-input:focus { border-color: var(--ice); box-shadow: 0 0 14px var(--glow); }

/* ============ 导航 ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 26px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  animation: navDrop .55s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background .3s ease, box-shadow .3s ease;
}
@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* 滚动后：背景收紧变实（不动布局属性） */
.site-nav.is-scrolled {
  background: var(--panel-bg);
  box-shadow: 0 10px 30px rgba(4, 10, 20, 0.28);
}
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--ice); cursor: pointer; margin-left: 18px;
  transition: transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); border-color: var(--ice); }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--card-border); }
.nav-links { display: flex; align-items: center; position: relative; }
.nav-links a, .nav-links .nav-link-btn {
  position: relative; margin-left: 22px; padding: 4px 2px;
  font-size: 14px; font-family: inherit; font-weight: 500; color: var(--text-soft);
  background: none; border: none; cursor: pointer; white-space: nowrap;
  transition: color .25s ease;
}
.nav-links .nav-link-btn:hover { color: var(--text); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.is-active { color: var(--ice); }
/* 墨条：参考 shadcn tabs line 变体（2px 圆头下划线指示条），随激活项滑动 */
.nav-ink {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 0; border-radius: 999px; background: var(--grad);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1),
              width .35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity .25s ease;
}

/* ============ 切板块入场：相邻板块按方向横滑，其余上浮 ============ */
#page.page-enter { animation: pageRise .5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pageRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
#page.page-swipe-r { animation: swipeR .45s cubic-bezier(0.16, 1, 0.3, 1); }
#page.page-swipe-l { animation: swipeL .45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes swipeR { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes swipeL { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }

/* ---- 在看 · 在听 / 关于 ---- */
.now-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 4px; border-bottom: 1px dashed var(--card-border);
}
.now-row:last-child { border-bottom: none; }
.now-idx { font-size: 11px; opacity: 0.55; letter-spacing: 0.1em; }
.now-row b { font-size: 14.5px; font-weight: 600; }
.now-note { font-size: 12.5px; color: var(--text-soft); margin-left: auto; text-align: right; }
.now-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice-deep); box-shadow: 0 0 8px var(--glow); align-self: center; flex: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.about-card { grid-row: span 2; }
.about-me { display: flex; align-items: center; gap: 16px; }
.about-avatar { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--card-border); object-fit: cover; }
.about-me h3 { font-size: 22px; font-weight: 700; }
.about-bio { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--text-soft); }
.about-social { margin-top: 8px; }
.about-tl { display: flex; gap: 14px; padding: 10px 4px; border-bottom: 1px dashed var(--card-border); }
.about-tl:last-child { border-bottom: none; }
.about-tl-date { font-size: 11px; opacity: 0.6; letter-spacing: 0.08em; flex: none; padding-top: 2px; }
.about-tl-text { font-size: 14px; line-height: 1.8; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-card { grid-row: auto; } }

/* ============ 主布局 ============ */
.main-layout {
  position: relative; z-index: 1;
  display: flex; gap: 24px; align-items: flex-start;
  max-width: 1280px; margin: 0 auto; padding: 96px 24px 40px;
}
.profile-panel { width: 300px; flex: none; position: sticky; top: 88px; padding: 28px 24px; text-align: center; }
.content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 48px; }

.pp-greet { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.pp-greet .gname { font-size: 13px; color: var(--text-soft); }

.avatar-ring {
  width: 128px; height: 128px; margin: 0 auto; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, #d7ebfb, #7fb0dc);
  box-shadow: 0 0 34px var(--glow);
}
.avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--bg-0);
}
.pp-name { font-size: 32px; font-weight: 700; letter-spacing: 0.01em; margin-top: 18px; }
.pp-identity { color: var(--text-soft); font-size: 14px; margin-top: 8px; }
.pp-badge { margin-top: 10px; }
.pp-contact { margin: 22px auto 0; display: block; }
/* 「找到我」社交图标行 */
.pp-social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pp-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--ice-deep); cursor: pointer; padding: 0;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease;
}
.pp-social-btn:hover {
  transform: translateY(-3px); border-color: var(--accent-soft);
  background: var(--card-hover); color: var(--ice);
  box-shadow: 0 8px 20px var(--glow);
}
.pp-social-btn.is-empty { opacity: .5; }
.pp-social-btn.is-empty:hover { transform: none; box-shadow: none; }
.pp-trait { text-align: left; margin-top: 24px; border-top: 1px solid var(--card-border); padding-top: 18px; }
.pp-trait-item { padding: 8px 0 8px 14px; border-left: 2px solid rgba(168, 208, 240, 0.35); margin: 8px 0; transition: border-color .3s ease, transform .3s ease; }
.pp-trait-item:hover { border-color: var(--ice); transform: translateX(5px); }
.pp-trait-item b { display: block; font-size: 14px; color: var(--ice-deep); font-weight: 600; }
.pp-trait-item span { font-size: 12px; color: var(--text-soft); }
.pp-foot { margin-top: 22px; }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcard { padding: 26px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.hello-kicker { margin-bottom: 14px; }
.hello-line { font-size: 15px; color: var(--text-soft); }

/* 今日一句：手写便签感 */
.quote-card { display: flex; flex-direction: column; justify-content: center; }
.quote-card .mono { font-size: 10.5px; letter-spacing: 0.18em; opacity: 0.7; margin-bottom: 10px; }
.quote-text {
  font-size: 15px; line-height: 1.9; color: var(--text);
  transform: rotate(-0.8deg);
}
.quote-text::before { content: "“"; color: var(--ice); font-size: 22px; margin-right: 2px; font-family: Georgia, serif; }
.quote-text::after { content: "”"; color: var(--ice); font-size: 22px; margin-left: 2px; font-family: Georgia, serif; }

/* 点击雪花绽放：本体弹出旋转 + 光环扩散 + 六瓣粒子飞散 */
.snow-burst { position: fixed; z-index: 200; width: 0; height: 0; pointer-events: none; }
.sb-flake {
  position: absolute; width: 46px; height: 46px; left: -23px; top: -23px;
  filter: drop-shadow(0 0 6px rgba(168, 208, 240, 0.75));
  animation: sbFlake .8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sbFlake {
  0% { transform: scale(0) rotate(-40deg); opacity: 0; }
  18% { transform: scale(1.06) rotate(0deg); opacity: 1; }   /* 弹出定型 */
  55% { transform: scale(1) rotate(48deg); opacity: 0.95; }  /* 缓缓旋转 */
  100% { transform: scale(0.55) rotate(92deg); opacity: 0; } /* 收拢消散 */
}
.sb-ring {
  position: absolute; width: 14px; height: 14px; left: -7px; top: -7px;
  border-radius: 50%; border: 1px solid rgba(215, 235, 251, 0.55);
  animation: sbRing .7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sbRing {
  0% { transform: scale(0.3); opacity: 0.85; }
  100% { transform: scale(3.6); opacity: 0; }
}
.sb-p {
  position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px;
  border-radius: 50%; background: rgba(215, 235, 251, 0.9);
  box-shadow: 0 0 4px rgba(168, 208, 240, 0.8);
  animation: sbP .75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sbP {
  0% { transform: rotate(var(--a)) translateY(-6px) scale(0.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-30px) scale(0.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .snow-burst { display: none; } }

/* 控件按压反馈（统一手感） */
.btn:active, .tsubmit:active, .filter-btn:active, .cm-copy:active,
.mlp-btn:active, .mlp-toggle:active, .theme-toggle:active,
.pp-social-btn:active, .fab:active, .ov-close:active, .murmur-like:active {
  transform: scale(0.93);
}
/* 输入框聚焦光环 */
.tfield input:focus, .tfield textarea:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px var(--glow);
  outline: none;
}

/* 页脚快捷键提示 */
.site-footer { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.kbd-hint { display: block; font-size: 10px; letter-spacing: 0.14em; opacity: 0.5; }

/* 窄屏导航收纳：链接横滑、藏留言板入口（右下角已有按钮） */
@media (max-width: 640px) {
  .site-nav { padding: 10px 14px; }
  .nav-logo span { display: none; }
  .nav-links { overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links #nav-guestbook { display: none; }
  .nav-links a { margin-left: 12px; font-size: 13px; padding: 3px 1px; }
  .fab-topright { top: 62px; }
}
.hello-name { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin: 6px 0 10px; }
.hello-name em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hello-highlight { color: var(--ice-deep); font-size: 14.5px; margin-bottom: 12px; }
.hello-desc { color: var(--text-soft); font-size: 14px; line-height: 1.9; }
.stat-row { display: flex; gap: 32px; margin-top: 22px; flex-wrap: wrap; }
.stat-num { font-size: 34px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* 图库卡 */
.gallery-card .mono { display: block; margin-bottom: 8px; }
.gallery-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.gallery-card .g-sub { font-size: 12px; color: var(--text-soft); margin-bottom: 16px; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--card-border); transition: transform .3s ease, border-color .3s ease;
}
.thumb-grid img:hover { transform: scale(1.06); border-color: rgba(168, 208, 240, 0.55); }

/* ---- 照片墙 3D 冰晶卡 ---- */
.photo-stage { perspective: 1100px; gap: 12px; }
.ph-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-border); cursor: zoom-in;
  transform-style: preserve-3d;
  transition: transform .22s ease-out, box-shadow .35s ease, border-color .3s ease;
}
.ph-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
/* 扇形展开入场：各张错角错时翻开（参考 Kirameku 相册扇形动画） */
.ph-card { animation: phFan .65s cubic-bezier(0.22, 1.1, 0.36, 1) backwards; animation-delay: calc(var(--i, 0) * 0.08s); }
@keyframes phFan {
  from { opacity: 0; transform: rotate(calc(var(--i, 0) * 6deg - 6deg)) translateY(26px) scale(0.88); }
  to { opacity: 1; }
}
.ph-card:hover { border-color: var(--accent-soft); box-shadow: 0 20px 42px rgba(4, 10, 20, 0.45); }
.ph-card .ph-float {
  position: relative; display: block; transform-style: preserve-3d;
  animation: phFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.4s);
}
@keyframes phFloat {
  0%, 100% { transform: translateY(0) rotateZ(-0.4deg); }
  50% { transform: translateY(-6px) rotateZ(0.5deg); }
}
.ph-card .ph-float img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in;
  border: none; border-radius: 0;
}
/* 眩光跟随光标 */
.ph-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%),
    rgba(215, 235, 251, 0.32), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
}
.ph-card:hover::after { opacity: 1; }
/* 地点标签：悬浮时浮出（Z 轴深度） */
.ph-card .ph-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em;
  color: var(--text); background: rgba(10, 20, 34, 0.62);
  border: 1px solid rgba(215, 235, 251, 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translateZ(34px) translateY(6px); opacity: 0;
  transition: opacity .3s ease, transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ph-card:hover .ph-tag { opacity: 1; transform: translateZ(34px) translateY(0); }
[data-theme="light"] .ph-card .ph-tag { background: rgba(255, 255, 255, 0.72); }

/* 动效克制：系统偏好减弱时停用装饰性动画 */
@media (prefers-reduced-motion: reduce) {
  .ph-card .ph-float { animation: none; }
  .ph-card, .ph-card .ph-tag { transition: none; }
  .site-nav, #page.page-enter { animation: none; }
  .lb-stage img.lb-anim, .gb-item.gb-new { animation: none; }
  .bento > .reveal.is-visible { transition-delay: 0s; }
  .ph-card, .murmurs .murmur-note, .river-draw { animation: none; }
  .river-draw { stroke-dashoffset: 0; }
}

/* 文章档案卡 */
.archive-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.archive-head h3 { font-size: 20px; font-weight: 700; }
.mcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mcard { display: block; color: inherit; padding: 0; overflow: hidden; }
.mcover {
  height: 84px; position: relative; margin: -1px -1px 0;   /* 盖住卡片上边框 */
  display: flex; align-items: flex-end; padding: 12px 16px;
}
.mcover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0 1.5px, transparent 2px),
              radial-gradient(circle at 70% 60%, rgba(255,255,255,0.12) 0 1px, transparent 1.5px),
              radial-gradient(circle at 45% 80%, rgba(255,255,255,0.14) 0 1px, transparent 1.5px);
  background-size: 68px 54px, 44px 40px, 90px 70px;
}
.mcover .mcard-cat { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.92); }
.mbody { padding: 16px 18px 18px; }
.mcard-cat { font-size: 12px; letter-spacing: 0.15em; }
.mcard-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.5; }
.mcard-summary { color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.mcard-meta { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-soft); }
.mcard-go { color: var(--ice); }
.mcard:hover { text-decoration: none; }
.more-link { display: block; text-align: center; margin-top: 22px; font-size: 13px; color: var(--ice); }

/* 碎碎念便签（参考抖音流行的"说说便利贴"） */
.murmurs { padding: 24px; }
.murmurs-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.murmurs-head h3 { font-size: 20px; font-weight: 700; }
/* 空内容占位（档案卡 / 碎碎念） */
.ghost-card {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px; border: 1px dashed var(--accent-soft); border-radius: var(--radius);
  background: var(--card-deep); color: var(--text-soft); font-size: 14px; letter-spacing: 0.04em;
}
.ghost-note { border-style: dashed; opacity: .8; }
/* 时光河流：冰河描边成形 */
.river-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: riverDraw 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes riverDraw { to { stroke-dashoffset: 0; } }
.post-comments { margin-top: 34px; }
.murmur-note {
  position: relative;
  background: linear-gradient(160deg, rgba(215, 235, 251, 0.14), rgba(168, 208, 240, 0.07));
  border: 1px solid var(--card-border);
  border-radius: 4px 18px 6px 16px;   /* 手账便签感 */
  padding: 14px 16px 12px;
  margin-bottom: 12px;
  transform: rotate(-0.6deg);
  transition: transform .25s ease;
}
.murmur-note:nth-child(even) { transform: rotate(0.7deg); }
/* 便签弹簧入场（参考 Kirameku 弹簧动效） */
.murmurs .murmur-note { animation: noteSpring .6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
@keyframes noteSpring {
  from { opacity: 0; transform: translateY(26px) rotate(-4deg) scale(0.92); }
  to { opacity: 1; }
}
.murmur-img {
  display: block; width: 100%; max-width: 320px; margin-top: 10px;
  border-radius: 10px; border: 1px solid var(--card-border); cursor: zoom-in;
  transition: transform .25s ease;
}
.murmur-img:hover { transform: scale(1.02); }
.murmur-note:hover { transform: rotate(0deg) translateY(-2px); }
.murmur-note::before {  /* 胶带 */
  content: ""; position: absolute; top: -7px; left: 22px;
  width: 46px; height: 14px;
  background: rgba(168, 208, 240, 0.28);
  transform: rotate(-3deg);
  border-left: 1px dashed rgba(255,255,255,0.25);
  border-right: 1px dashed rgba(255,255,255,0.25);
}
.murmur-text { font-size: 14px; line-height: 1.9; color: var(--text); }
.murmur-date { text-align: right; font-size: 11px; color: var(--text-soft); margin-top: 6px; }

/* GitHub 数据卡 */
.gh-card { padding: 24px; display: flex; align-items: center; gap: 18px; }
.gh-card img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent-soft); }
.gh-info { flex: 1; }
.gh-name { font-weight: 700; font-size: 15px; }
.gh-stats { display: flex; gap: 18px; margin-top: 8px; font-size: 12.5px; color: var(--text-soft); }
.gh-stats b { color: var(--ice-deep); font-size: 15px; margin-right: 3px; }

/* ============ 阅读进度条 + 文章目录（参考 Kirameku） ============ */
#reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px var(--glow);
  opacity: 0; transition: opacity .3s ease;
}
#reading-progress.is-on { opacity: 1; }

.toc {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 200px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px 6px 12px 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  max-height: 60vh; overflow-y: auto;
}
.toc-title { font-size: 12px; letter-spacing: 0.2em; color: var(--text-soft); margin-bottom: 8px; }
.toc a {
  display: block; font-size: 12.5px; line-height: 1.5; padding: 5px 8px;
  color: var(--text-soft); border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: all .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.lvl-3 { padding-left: 20px; }
.toc a.is-cur { color: var(--ice); border-color: var(--ice); background: rgba(168, 208, 240, 0.08); }
@media (max-width: 1200px) { .toc { display: none; } }

/* ============ 时光河流归档（参考 Kirameku） ============ */
.river-wrap { position: relative; z-index: 1; }
.river-scroll {
  overflow-x: auto; cursor: grab; user-select: none;
  border-radius: var(--radius-lg); padding: 10px 0;
  scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent;
}
.river-scroll.grabbing { cursor: grabbing; }
.river-scroll svg { display: block; }
.river-node { cursor: pointer; }
.river-node:hover .river-dot { fill: var(--ice); }
.river-hint { text-align: center; color: var(--text-soft); font-size: 12.5px; margin-top: 10px; letter-spacing: 0.15em; }

/* ============ 碎碎念点赞 + 果冻弹跳 ============ */
.murmur-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.murmur-like {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--card-border); border-radius: 999px;
  color: var(--text-soft); font-size: 12px; font-family: var(--font-sans);
  padding: 4px 14px; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.murmur-like:hover { border-color: var(--ice); color: var(--ice); }
.murmur-like.is-liked { color: var(--ice); border-color: var(--accent-soft); background: rgba(168, 208, 240, 0.08); }
.murmur-like.jelly { animation: jelly .5s ease both; }
@keyframes jelly {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.25, 0.75); }
  50% { transform: scale(0.8, 1.2); }
  70% { transform: scale(1.12, 0.9); }
  100% { transform: scale(1, 1); }
}

/* ============ 友链漂流瓶（参考 Kirameku） ============ */
.bottle-sea {
  position: relative; height: 340px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(168, 208, 240, 0.04), rgba(61, 106, 153, 0.1));
  border: 1px solid var(--card-border); touch-action: none;
}
.bottle-sea::after {  /* 水面波浪 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(127, 176, 220, 0.08));
}
.bottle {
  position: absolute; width: 96px; padding: 10px 8px 9px;
  background: linear-gradient(160deg, rgba(215, 235, 251, 0.16), rgba(127, 176, 220, 0.08));
  border: 1px solid rgba(215, 235, 251, 0.3); border-radius: 14px 14px 12px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: grab; text-align: center; z-index: 2;
  animation: bottle-float 4.5s ease-in-out infinite;
}
.bottle::before {  /* 瓶塞 */
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 10px; border-radius: 4px;
  background: rgba(168, 208, 240, 0.4);
}
.bottle.dragging { cursor: grabbing; animation: none; z-index: 5; }
.bottle-name { font-size: 13px; font-weight: 700; }
.bottle-desc { font-size: 10.5px; color: var(--text-soft); margin-top: 3px; line-height: 1.5; }
@keyframes bottle-float { 0%,100% { margin-top: 0; } 50% { margin-top: -8px; } }
.bottle-tip { text-align: center; color: var(--text-soft); font-size: 12px; margin-top: 12px; }

/* 按压反馈 */
.btn:active, .mcard:active, .fab:active, .filter-btn:active, .tsubmit:active { transform: scale(0.96); }

/* ============ 联系卡 ============ */
.terminal { padding: 28px; }
.terminal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.terminal-head h3 { font-size: 20px; font-weight: 700; }
.tfield { margin-bottom: 18px; }
.tfield label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-soft); }
.tfield input, .tfield textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text); font-family: var(--font-sans); font-size: 14px;
  padding: 12px 14px; outline: none; transition: border-color .15s ease;
}
.tfield input:focus, .tfield textarea:focus { border-color: rgba(168, 208, 240, 0.6); }
.tfield textarea { min-height: 96px; resize: vertical; }
.tsubmit {
  font-family: var(--font-sans); letter-spacing: 0.1em;
  background: var(--bg-0); color: var(--ice);
  border: 1px solid rgba(168, 208, 240, 0.5); border-radius: 10px;
  padding: 12px 34px; cursor: pointer; font-size: 14px;
  transition: all .2s ease;
}
.tsubmit:hover { background: rgba(215, 235, 251, 0.92); color: var(--bg-0); box-shadow: 0 8px 26px var(--glow); }

/* ============ 浮层 ============ */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(7, 14, 26, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade-in .25s ease both;
}
.overlay-panel {
  width: min(560px, 94vw); max-height: 84vh; overflow-y: auto;
  background: var(--panel-bg);
  border: 1px solid var(--card-border); border-radius: 24px;
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 26px 28px;
  animation: panel-in .3s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes panel-in { from { opacity: 0; transform: scale(0.96) translateY(20px); } }
.ov-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ov-head h3 { font-size: 20px; font-weight: 700; }
.ov-close {
  background: none; border: 1px solid var(--card-border); color: var(--text-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
  transition: all .2s ease;
}
.ov-close:hover { color: var(--ice); border-color: var(--ice); }
.ov-sub { margin-bottom: 20px; }

/* 留言板 */
.gb-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.gb-item { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--card-border); border-radius: 14px; padding: 14px 16px; }
.gb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gb-face { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.gb-nick { font-size: 13.5px; font-weight: 600; }
.gb-time { font-size: 11px; color: var(--text-soft); }
.gb-content { font-size: 14px; line-height: 1.8; color: rgba(233, 239, 247, 0.85); white-space: pre-wrap; }
.gb-empty { text-align: center; padding: 40px 10px; color: var(--text-soft); }
.gb-empty .big { font-size: 15px; margin-bottom: 8px; }
.gb-form textarea {
  width: 100%; min-height: 72px; resize: vertical;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text); font-family: var(--font-sans); font-size: 13.5px; padding: 12px 14px; outline: none;
}
.gb-form textarea:focus { border-color: rgba(168, 208, 240, 0.6); }
.gb-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }

/* 通讯矩阵 */
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cm-item {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 18px; text-align: center; transition: all .25s ease;
}
.cm-item:hover { border-color: rgba(168, 208, 240, 0.4); transform: translateY(-3px); }
.cm-item .cm-label { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cm-item .cm-icon { display: inline-flex; color: var(--ice-deep); margin-bottom: 10px; }
.cm-item.is-todo { opacity: .55; }
.cm-item .cm-val.is-todo { opacity: .75; }
.cm-item .cm-val { font-size: 12.5px; color: var(--text-soft); word-break: break-all; margin-bottom: 12px; }
.cm-copy {
  font-size: 12px; letter-spacing: 0.08em;
  background: none; border: 1px solid rgba(168, 208, 240, 0.45); color: var(--ice);
  border-radius: 8px; padding: 6px 16px; cursor: pointer; transition: all .2s ease;
}
.cm-copy:hover { background: rgba(215, 235, 251, 0.92); color: var(--bg-0); }
.cm-warn { margin-top: 18px; line-height: 1.8; opacity: 0.65; }

/* 相册灯箱 */
.lb-panel { width: min(880px, 94vw); }
.lb-stage { position: relative; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,0.4); }
.lb-stage img { width: 100%; max-height: 56vh; object-fit: contain; display: block; }
.lb-stage img.lb-anim { animation: lbZoom .38s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lbZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
/* 新留言弹入 */
.gb-item.gb-new { animation: gbPop .45s cubic-bezier(0.22, 1.2, 0.36, 1) both; }
@keyframes gbPop {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
/* Giscus 留言板 */
.giscus-wrap { min-height: 340px; margin-top: 6px; }
.giscus-wrap iframe { width: 100%; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 20, 34, 0.7); border: 1px solid var(--card-border); color: var(--text);
  cursor: pointer; font-size: 16px; transition: all .2s ease;
}
.lb-arrow:hover { border-color: var(--ice); color: var(--ice); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-caption { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 6px 4px; }
.lb-title { font-weight: 700; font-size: 15px; }
.lb-loc { font-size: 11px; color: var(--text-soft); letter-spacing: 0.1em; }
.lb-count { font-size: 11px; color: var(--ice-deep); }

/* ============ 悬浮按钮 ============ */
.fab {
  position: fixed; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 34, 0.6); color: var(--ice);
  border: 1px solid var(--card-border); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); border-color: var(--ice); box-shadow: 0 8px 26px var(--glow); }
.fab.is-open { background: var(--grad); color: var(--bg-0); border-color: transparent; }
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
/* 进站后右下角按钮依次浮出 */
.fab-stack .fab { position: static; animation: fabIn .55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fab-stack .fab:nth-child(1) { animation-delay: .1s; }
.fab-stack .fab:nth-child(2) { animation-delay: .2s; }
.fab-stack .fab:nth-child(3) { animation-delay: .3s; }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(18px) scale(0.8); }
  to { opacity: 1; transform: none; }
}
.fab-topright { right: 22px; top: 70px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  z-index: 120; padding: 12px 26px; border-radius: 12px;
  background: rgba(10, 20, 34, 0.92); border: 1px solid rgba(168, 208, 240, 0.45);
  color: var(--text); font-size: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(4, 10, 20, 0.5);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 文章页 ============ */
.page { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 96px 22px 40px; }
.post-head { text-align: center; padding: 26px 0 6px; }
.post-title { font-size: clamp(24px, 4.5vw, 36px); font-weight: 700; line-height: 1.4; }
.post-meta { color: var(--text-soft); font-size: 14px; margin-top: 12px; }
.article {
  margin-top: 32px; padding: 36px 40px;
  background: var(--card-deep); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  line-height: 2; font-size: 16.5px;
}
.article h2 { font-size: 21px; font-weight: 800; margin: 30px 0 12px; color: var(--ice-deep); }
.article h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article p { margin: 13px 0; color: rgba(233, 239, 247, 0.88); }
.article blockquote {
  border-left: 3px solid var(--ice-deep); padding: 8px 18px; margin: 18px 0;
  color: var(--text-soft); background: rgba(168, 208, 240, 0.06); border-radius: 0 10px 10px 0;
}
.article code { background: rgba(168, 208, 240, 0.13); color: var(--ice-deep); padding: 2px 7px; border-radius: 6px; font-size: 0.88em; font-family: var(--font-mono); }
.article pre { background: rgba(6, 12, 22, 0.85); border: 1px solid var(--card-border); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 18px 0; }
.article pre code { background: none; padding: 0; color: var(--text); font-size: 13.5px; line-height: 1.8; }
.article img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.article hr { border: none; height: 1px; margin: 28px auto; width: 60%; background: linear-gradient(90deg, transparent, rgba(168, 208, 240, 0.4), transparent); }
.article ul, .article ol { padding-left: 24px; margin: 13px 0; }
.back-link { display: inline-block; margin-top: 30px; color: var(--text-soft); font-size: 14px; }
.back-link:hover { color: var(--ice); text-decoration: none; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0; }
.filter-btn {
  background: var(--card); border: 1px solid var(--card-border); color: var(--text-soft);
  font-family: var(--font-sans); font-size: 14px;
  padding: 7px 20px; border-radius: 999px; cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(168, 208, 240, 0.4); }
.filter-btn.is-active { background: rgba(215, 235, 251, 0.92); color: var(--bg-0); border-color: transparent; font-weight: 600; }

/* 消息块 */
.msg-block { text-align: center; padding: 90px 20px; }
.msg-big {
  font-size: 40px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.msg-block p { color: var(--text-soft); margin: 18px 0 26px; line-height: 2; }
.msg-block code { background: rgba(168, 208, 240, 0.13); padding: 3px 10px; border-radius: 6px; color: var(--ice-deep); }

/* ============ 页脚 ============ */
.site-footer {
  position: relative; z-index: 1; text-align: center;
  color: var(--text-soft); font-size: 13px; padding: 26px 20px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer a { color: var(--text-soft); }

/* ============ 音乐 ============ */
.music-card {
  position: fixed; right: 22px; bottom: 80px; z-index: 39;
  width: 310px; max-width: calc(100vw - 44px);
  background: var(--panel-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 50px rgba(4, 10, 20, 0.5);
  opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.music-card.is-open { opacity: 1; transform: none; pointer-events: auto; }
.music-head { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.music-frame { display: block; width: 100%; height: 430px; border: none; }
/* 播放卡双标签（本地 / 网易云） */
.mtabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.mtab {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-family: inherit;
  color: var(--text-soft); background: var(--card-deep); border: 1px solid var(--card-border);
  cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.mtab:hover { color: var(--text); }
.mtab.is-on { color: var(--bg-0); background: var(--grad); border-color: transparent; font-weight: 600; }
.meting-box { padding: 4px 0 10px; }
.meting-box .aplayer { background: transparent; box-shadow: none; font-family: inherit; }
.meting-box .aplayer .aplayer-info { border-color: var(--card-border); }
.music-tip { padding: 20px 18px 24px; color: var(--text-soft); font-size: 13.5px; line-height: 2; }
.music-tip code { background: rgba(168, 208, 240, 0.13); padding: 2px 8px; border-radius: 6px; color: var(--ice-deep); font-size: 12px; }

.mlp { padding: 12px 14px 8px; }
.mlp-now { display: flex; align-items: center; gap: 8px; }
.mlp-btn, .mlp-toggle {
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text-soft);
  border-radius: 50%; cursor: pointer; transition: all .15s ease;
}
.mlp-btn { width: 28px; height: 28px; flex: none; }
.mlp-toggle { width: 36px; height: 36px; flex: none; background: var(--grad); color: var(--bg-0); border-color: transparent; }
.mlp-btn:hover { color: var(--text); border-color: var(--ice); }
.mlp-toggle:hover { transform: scale(1.06); }
.mlp-info { flex: 1; min-width: 0; }
.mlp-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-time { font-size: 10.5px; color: var(--text-soft); margin-top: 2px; }
.mlp-bar { height: 5px; border-radius: 3px; margin: 12px 4px 6px; background: rgba(255, 255, 255, 0.12); cursor: pointer; }
.mlp-fill { height: 100%; width: 0; border-radius: 3px; background: var(--grad); }
.mlp-list { list-style: none; max-height: 240px; overflow-y: auto; margin-top: 6px; padding: 4px 2px 8px; }
.mlp-list li {
  padding: 8px 10px; font-size: 13px; color: var(--text-soft);
  border-radius: 8px; cursor: pointer; transition: background .15s ease, color .15s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlp-list li:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.mlp-list li.is-cur { color: var(--ice-deep); background: rgba(168, 208, 240, 0.1); }
.mlp-idx { margin-right: 4px; opacity: 0.7; }
.mlp-artist { opacity: 0.75; }

/* ============ 滚动显现（模糊浮现，参考 React Bits Blur Text） ============ */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(8px); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); transition: opacity .55s ease, transform .55s ease, filter .55s ease; }
/* Bento 卡片依次浮现（节奏递增、封顶） */
.bento > .reveal:nth-child(2).is-visible { transition-delay: .07s; }
.bento > .reveal:nth-child(3).is-visible { transition-delay: .14s; }
.bento > .reveal:nth-child(4).is-visible { transition-delay: .21s; }
.bento > .reveal:nth-child(5).is-visible { transition-delay: .28s; }
.bento > .reveal:nth-child(n+6).is-visible { transition-delay: .32s; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .main-layout { flex-direction: column; padding-top: 88px; }
  .profile-panel { position: static; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .page { padding: 84px 14px 32px; }
  .main-layout { padding: 84px 14px 32px; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .article { padding: 24px 18px; }
  .welcome-card { flex-direction: column; min-height: 0; }
  .welcome-left { flex: none; grid-template-columns: repeat(4, 1fr); padding: 18px; gap: 10px; }
  .welcome-right { padding: 26px 22px; }
  .mcard-grid { grid-template-columns: 1fr; }
  .cm-grid { grid-template-columns: 1fr; }
  .fab-topright { top: 64px; }
}

/* ============ 减弱动效 ============ */
@media (prefers-reduced-motion: reduce) {
  .welcome, .welcome-stage { animation: none; }
  .pulse-dot::after { animation: none; }
  .btn-primary::before { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .gcard, .btn, .fab, .avatar-opt, .mcard { transition: none; }
  .gcard:hover { transform: none; }
}

/* ---- 站长后台 ---- */
.adm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.adm-tile { text-align: center; padding: 22px 10px; }
.adm-tile .stat-num { font-size: 34px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adm-tile .stat-label { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.adm-del {
  flex: none; width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  background: none; border: 1px solid var(--card-border); color: var(--text-soft);
  transition: color .2s ease, border-color .2s ease;
}
.adm-del:hover { color: #e0836d; border-color: rgba(224, 131, 109, 0.5); }
.adm-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--card-border); }
@media (max-width: 640px) { .adm-tiles { grid-template-columns: repeat(2, 1fr); } }
