/* =========================================================
   💙 午夜蓝光灯箱 · 全站科幻视觉 & 晨雾冰蓝双主题样式系统
   ========================================================= */

/* 晨雾冰蓝浅色液态玻璃模式 */
[data-theme="light"] {
  --bg-canvas: #e6eefb;
  --bg-card: rgba(255, 255, 255, 0.62);
  --bg-soft: rgba(219, 232, 252, 0.56);
  --bg-hover: rgba(255, 255, 255, 0.78);
  --bg-input: rgba(255, 255, 255, 0.86);
  --topbar-bg: rgba(230, 238, 251, 0.64);
  --border: rgba(255, 255, 255, 0.66);
  --border-strong: rgba(59, 130, 246, 0.42);

  --text-primary: #0d1d3a;
  --text-secondary: #39527a;
  --text-muted: #6881a8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.14);

  --sage: #0d9488;
  --sage-soft: rgba(13, 148, 136, 0.14);

  --butter-bg: rgba(254, 243, 199, 0.72);
  --butter-border: rgba(255, 255, 255, 0.65);
  --butter-text: #854d0e;

  --peach-bg: rgba(224, 231, 255, 0.74);
  --peach-border: rgba(255, 255, 255, 0.65);
  --peach-text: #3730a3;

  --sage-bg: rgba(204, 251, 241, 0.72);
  --sage-border: rgba(255, 255, 255, 0.65);
  --sage-text: #115e59;

  --sky-bg: rgba(219, 234, 254, 0.78);
  --sky-border: rgba(255, 255, 255, 0.68);
  --sky-text: #1e40af;

  --cream-bg: rgba(241, 245, 255, 0.72);
  --cream-border: rgba(255, 255, 255, 0.62);

  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 34px rgba(15, 42, 96, 0.1), inset 0 1.5px 1px rgba(255, 255, 255, 0.8), inset 1px 0 1px rgba(255, 255, 255, 0.45);
  --shadow-hover: 0 18px 42px rgba(37, 99, 235, 0.16), inset 0 1.5px 1px rgba(255, 255, 255, 0.9);
  --shadow-modal: 0 24px 64px rgba(13, 29, 58, 0.24);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* 默认主主题：午夜克莱因蓝光灯箱 × 苹果液态玻璃 (Liquid Glass) */
:root,
[data-theme="dark"] {
  --bg-canvas: #040a17;
  --bg-card: rgba(12, 28, 64, 0.46);
  --bg-soft: rgba(30, 64, 134, 0.34);
  --bg-hover: rgba(45, 88, 172, 0.48);
  --bg-input: rgba(5, 14, 34, 0.72);
  --topbar-bg: rgba(6, 16, 40, 0.48);
  --border: rgba(147, 197, 253, 0.26);
  --border-strong: rgba(186, 230, 253, 0.46);

  --text-primary: #eef5ff;
  --text-secondary: #b4cdf0;
  --text-muted: #7899c4;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.24);

  --sage: #38bdf8;
  --sage-soft: rgba(56, 189, 248, 0.18);

  --butter-bg: rgba(30, 58, 118, 0.42);
  --butter-border: rgba(147, 197, 253, 0.34);
  --butter-text: #fde68a;

  --peach-bg: rgba(37, 52, 116, 0.46);
  --peach-border: rgba(129, 140, 248, 0.36);
  --peach-text: #c7d2fe;

  --sage-bg: rgba(12, 54, 78, 0.48);
  --sage-border: rgba(56, 189, 248, 0.34);
  --sage-text: #7dd3fc;

  --sky-bg: rgba(20, 52, 112, 0.52);
  --sky-border: rgba(147, 197, 253, 0.38);
  --sky-text: #dbeafe;

  --cream-bg: rgba(16, 36, 80, 0.48);
  --cream-border: rgba(147, 197, 253, 0.28);

  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.18);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 16px 42px rgba(2, 8, 24, 0.46), inset 0 1.5px 1px rgba(224, 242, 254, 0.36), inset 1px 0 1px rgba(186, 230, 253, 0.16), inset 0 -1px 1px rgba(96, 165, 250, 0.16);
  --shadow-hover: 0 22px 54px rgba(29, 78, 216, 0.3), inset 0 1.5px 1px rgba(224, 242, 254, 0.52), inset 1px 0 1px rgba(186, 230, 253, 0.24);
  --shadow-modal: 0 28px 76px rgba(0, 4, 16, 0.72);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background 0.22s ease, color 0.22s ease;
  -webkit-font-smoothing: antialiased;
}

/* 全站 Micro Slats 蓝色光栅矩阵动态背景层 */
.micro-slats-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* 全站从鼠标中心辐射散开的发光水波纹画布层 */
.water-ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

[data-theme="light"] .water-ripple-canvas {
  mix-blend-mode: normal;
}

@media print {
  .water-ripple-canvas,
  .micro-slats-canvas {
    display: none !important;
  }
}

.topbar,
.visitor-banner,
.page-view,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ===== 🫧 苹果风冰蓝液态玻璃 (Liquid Glass) 折射质感系统 ===== */
.topbar {
  backdrop-filter: blur(24px) saturate(190%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.06) !important;
  box-shadow: 0 10px 32px rgba(2, 8, 24, 0.32), inset 0 -1px 0 rgba(186, 230, 253, 0.24);
}

.main-nav {
  background: transparent;
  box-shadow: none;
}

.card,
.rhino-item-card,
.blog-card,
.photo-card,
.note-card,
.goal-card,
.countdown-card,
.hobby-card,
.link-tile {
  position: relative;
  backdrop-filter: blur(24px) saturate(185%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(185%) brightness(1.05);
  box-shadow: var(--shadow-card);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    132deg,
    rgba(224, 242, 254, 0.18) 0%,
    rgba(186, 230, 253, 0.04) 34%,
    transparent 56%,
    rgba(56, 189, 248, 0.08) 100%
  );
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.btn,
.icon-pill-btn,
.filter-chip,
.status-pill,
.tag-pill {
  backdrop-filter: blur(14px) saturate(175%);
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  box-shadow: inset 0 1px 1px rgba(224, 242, 254, 0.28);
}

.modal-box {
  background: rgba(8, 20, 48, 0.78) !important;
  backdrop-filter: blur(30px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
  border: 1px solid rgba(147, 197, 253, 0.34) !important;
  box-shadow: 0 28px 80px rgba(0, 4, 16, 0.7), inset 0 1.5px 1px rgba(224, 242, 254, 0.36) !important;
}

[data-theme="light"] .modal-box {
  background: rgba(244, 248, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
}

.brand-dot {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.75), 0 0 0 4px rgba(59, 130, 246, 0.22) !important;
}

/* 点击文字时的 0.6 秒科幻跳动微光 */
.is-text-jumping {
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.95), 0 0 30px rgba(59, 130, 246, 0.65) !important;
  transition: text-shadow 0.2s ease;
}

.hidden {
  display: none !important;
}

body.visitor-mode .owner-only {
  display: none !important;
}

/* ================= 顶部清晰导航栏 ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 122, 85, 0.2);
  flex-shrink: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.status-pill.is-synced {
  background: var(--sage-soft);
  color: var(--sage-text);
  border-color: var(--sage-border);
}

/* ===== 🫧 弹性胶囊形变导航栏（悬停拉伸 + 选中亮白放大胶囊） ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  background: transparent;
  padding: 2px 4px;
  border-radius: 0;
  border: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(226, 238, 255, 0.88);
  background: rgba(15, 32, 68, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.22);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(224, 242, 254, 0.18), 0 4px 12px rgba(2, 8, 24, 0.22);
  font-size: 13.5px;
  font-weight: 600;
  height: 36px;
  padding: 0 14px;
  border-radius: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    padding 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.28s ease,
    color 0.25s ease,
    box-shadow 0.35s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(222, 235, 255, 0.9);
  color: #07142b;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(147, 197, 253, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.nav-link:active {
  transform: scale(0.93);
}

.nav-link.active {
  height: 42px;
  padding: 0 22px;
  border-radius: 21px;
  background: #ffffff;
  color: #07142b;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(147, 197, 253, 0.4), inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* 当鼠标移到别的胶囊上时，当前选中项柔和收敛，让悬停项成为视觉焦点 */
.main-nav:hover .nav-link.active:not(:hover) {
  height: 36px;
  padding: 0 15px;
  border-radius: 14px;
  background: rgba(186, 208, 240, 0.32);
  color: #eef5ff;
  border-color: rgba(186, 230, 253, 0.36);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 浅色模式下的弹性胶囊配色 */
[data-theme="light"] .nav-link {
  color: #1e3a6d;
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(15, 42, 96, 0.08);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #0d1d3a;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

[data-theme="light"] .nav-link.active {
  background: #0d1d3a;
  color: #ffffff;
  border-color: #0d1d3a;
  box-shadow: 0 8px 22px rgba(13, 29, 58, 0.28);
}

[data-theme="light"] .main-nav:hover .nav-link.active:not(:hover) {
  background: rgba(13, 29, 58, 0.28);
  color: #0d1d3a;
  border-color: rgba(13, 29, 58, 0.2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-pill-btn:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}

/* 访客提示条 */
.visitor-banner {
  position: relative;
  z-index: 20;
  background: var(--sage-bg);
  border-bottom: 1px solid var(--sage-border);
  color: var(--sage-text);
  font-size: 13px;
}

.visitor-banner-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-link {
  border: 1px solid var(--sage-border);
  background: var(--bg-card);
  color: var(--sage-text);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.banner-link:hover {
  background: var(--sage);
  color: #fff;
}

/* ================= 按钮体系 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  padding: 10px 16px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(212, 122, 85, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-soft {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-soft:hover {
  background: var(--bg-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: rgba(199, 91, 79, 0.3);
}

.btn-danger-ghost:hover {
  background: var(--danger-soft);
}

.btn-mini {
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}

.btn-mini:hover {
  background: var(--accent-soft);
  border-color: rgba(212, 122, 85, 0.5);
  color: var(--accent);
}

.icon-text-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.icon-text-btn:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.link-muted {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-family: inherit;
}

.link-muted:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13.5px;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.icon-btn.is-private {
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-btn.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ================= 页面通用容器 ================= */
.page-view {
  position: relative;
  z-index: 1;
}

.page-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 22px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 780px;
}

.global-tag-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}

.tag-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.tag-bar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ================= 书桌首页布局 ================= */
.desk-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 22px 44px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.desk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 74px;
}

.desk-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.desk-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

/* ================= 卡片容器 ================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-muted);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.card-title-group h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.card-icon {
  font-size: 18px;
  line-height: 1;
}

.card-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.count-badge {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ================= 个人名片 ================= */
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-wrap {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(145deg, #faebd7, #f4d8be);
  border: 2px solid var(--bg-card);
  box-shadow: 0 6px 16px rgba(154, 114, 79, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-emoji {
  font-size: 32px;
  line-height: 1;
}

.profile-name {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.mood-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--butter-bg);
  border: 1px solid var(--butter-border);
  color: var(--butter-text);
}

.profile-bio {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.profile-motto {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border-left: 3px solid var(--accent);
  font-size: 12.8px;
  color: var(--text-primary);
  font-style: italic;
}

.profile-quick-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 2px;
  border-top: 1px dashed var(--border-strong);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

/* ================= 兴趣标签与常用入口 ================= */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  color: var(--text-primary);
}

.tag-pill.color-peach { background: var(--peach-bg); border-color: var(--peach-border); color: var(--peach-text); }
.tag-pill.color-sage { background: var(--sage-bg); border-color: var(--sage-border); color: var(--sage-text); }
.tag-pill.color-butter { background: var(--butter-bg); border-color: var(--butter-border); color: var(--butter-text); }
.tag-pill.color-sky { background: var(--sky-bg); border-color: var(--sky-border); color: var(--sky-text); }

.tag-pill .tag-del {
  border: none;
  background: transparent;
  color: currentColor;
  opacity: 0.6;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 12px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.link-tile-wrap {
  position: relative;
}

.link-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.16s ease, border-color 0.18s ease;
  min-width: 0;
}

.link-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.link-emoji { font-size: 19px; flex-shrink: 0; }
.link-meta { min-width: 0; flex: 1; }
.link-title { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-desc { display: block; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1px;
}

.link-tile-wrap:hover .link-actions {
  opacity: 1;
}

/* ================= 多软件作品集（一行四张卡片） ================= */
.showcases-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rhino-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.rhino-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.rhino-item-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rhino-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.rhino-cover-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: none;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
}

.rhino-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.rhino-item-card:hover .rhino-cover-img {
  transform: scale(1.04);
}

.rhino-cover-badges {
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  pointer-events: none;
}

.rhino-stage-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.92);
  color: #3b322c;
  border: 1px solid rgba(223, 208, 188, 0.9);
}

.rhino-zoom-hint {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(59, 50, 44, 0.76);
  color: #fffdf9;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.rhino-cover-btn:hover .rhino-zoom-hint {
  opacity: 1;
}

.rhino-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rhino-filename {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.rhino-filename:hover {
  color: var(--accent);
}

.rhino-summary {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.rhino-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.rhino-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ================= 作品独立详情页 (7 大结构板块) ================= */
.work-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.work-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.work-hero-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: zoom-in;
  position: relative;
}

.work-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-all;
}

.work-hero-summary {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.work-toc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.toc-chip {
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}

.toc-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-section-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.work-prose {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.85;
  white-space: pre-wrap;
}

.stage-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.stage-photo-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stage-photo-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  background: var(--bg-soft);
  transition: transform 0.25s ease;
}

.stage-photo-thumb:hover {
  transform: scale(1.03);
}

.stage-photo-foot {
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ================= 博客 / 随笔 ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.blog-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: var(--bg-soft);
}

.blog-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.blog-card-title:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.68;
}

.blog-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-read-cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.blog-read-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ================= 图集相册 ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
}

.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-thumb {
  transform: scale(1.04);
}

.photo-card-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.photo-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.photo-caption {
  margin: 0;
  font-size: 12.2px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.photo-meta {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= 关于我 (About) 页面 ================= */
.about-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.about-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 28px;
}

.about-avatar-lg .avatar-emoji {
  font-size: 46px;
}

.about-intro-text {
  margin: 10px 0 12px;
  font-size: 14.8px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.8;
}

.about-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.about-resume-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  text-align: center;
}

.about-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 学习经历时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.timeline-period {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.timeline-school {
  margin: 2px 0;
  font-size: 15.5px;
  font-weight: 800;
}

.timeline-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.timeline-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 技能清单（联动软件板块） */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-name {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.skill-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 个人爱好网格 */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hobby-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hobby-emoji {
  font-size: 24px;
}

.hobby-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.hobby-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ================= 长期目标 / 倒数日 / 待办 / 便签 ================= */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.goal-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-card.is-complete {
  border-color: var(--sage-border);
  background: var(--sage-bg);
}

.goal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.goal-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.goal-cat { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-secondary); }
.goal-deadline { font-size: 11.5px; color: var(--text-muted); }
.private-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.done-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--sage-soft); color: var(--sage-text); }
.goal-title { margin: 0; font-size: 16px; font-weight: 700; }
.goal-actions { display: flex; gap: 2px; flex-shrink: 0; }

.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; }
.progress-label { color: var(--text-secondary); }
.progress-percent { font-weight: 800; color: var(--accent); }
.goal-card.is-complete .progress-percent { color: var(--sage); }
.progress-track { width: 100%; height: 9px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, #e59a72, var(--accent)); transition: width 0.35s ease; }
.goal-card.is-complete .progress-fill { background: linear-gradient(90deg, #86ad8e, var(--sage)); }

.goal-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.goal-step-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; padding: 5px 8px; border-radius: var(--radius-sm); background: var(--bg-card); }
.goal-step-item.done .step-text { text-decoration: line-through; color: var(--text-muted); }

.step-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.8px solid var(--border-strong);
  background: var(--bg-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  color: #fff;
}

.step-check.checked { background: var(--sage); border-color: var(--sage); }
body.visitor-mode .step-check { cursor: default; pointer-events: none; }
.step-text { flex: 1; word-break: break-word; }

.step-add-input {
  width: 100%;
  border: 1px dashed var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-primary);
}

.countdowns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.countdown-tile { padding: 15px 16px; border-radius: var(--radius-lg); background: var(--bg-canvas); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.countdown-tile.is-today { background: var(--butter-bg); border-color: var(--butter-border); }
.countdown-tile.is-past { opacity: 0.78; }
.countdown-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.countdown-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.countdown-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.countdown-days-row { display: flex; align-items: baseline; gap: 5px; }
.countdown-prefix, .countdown-unit { font-size: 12.5px; color: var(--text-secondary); }
.countdown-num { font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent); }
.countdown-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }

.todo-quick-form { display: flex; gap: 8px; margin-bottom: 12px; }
.lock-toggle-btn { width: 38px; height: 38px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--bg-canvas); cursor: pointer; font-size: 16px; flex-shrink: 0; }
.lock-toggle-btn[data-private="true"] { background: var(--accent-soft); border-color: var(--accent); }
.todo-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.filter-chip { border: 1px solid var(--border); background: var(--bg-canvas); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); cursor: pointer; font-family: inherit; }
.filter-chip.active { background: var(--text-primary); color: var(--bg-card); border-color: var(--text-primary); }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1px solid var(--border); }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--text-muted); }
.todo-text { flex: 1; font-size: 14px; word-break: break-word; }
.todo-item-actions { display: flex; gap: 2px; }

.notes-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.note-card { padding: 15px 16px; border-radius: var(--radius-lg); border: 1px solid var(--butter-border); background: var(--butter-bg); display: flex; flex-direction: column; gap: 8px; }
.note-card.color-peach { background: var(--peach-bg); border-color: var(--peach-border); }
.note-card.color-sage { background: var(--sage-bg); border-color: var(--sage-border); }
.note-card.color-sky { background: var(--sky-bg); border-color: var(--sky-border); }
.note-head { display: flex; justify-content: space-between; gap: 8px; }
.note-title { margin: 0; font-size: 14.5px; font-weight: 700; }
.note-body { margin: 0; font-size: 13.5px; color: var(--text-secondary); white-space: pre-wrap; line-height: 1.65; }
.note-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }

/* ================= 全局搜索 ================= */
.search-input-lg {
  padding: 12px 15px !important;
  font-size: 15px !important;
}

.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text-primary);
  font-family: inherit;
}

.search-result-item:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.search-thumb {
  width: 54px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.search-result-meta {
  min-width: 0;
  flex: 1;
}

.search-result-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 全屏大图缩放 Lightbox ================= */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(16, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: #f7efe6;
  background: rgba(0, 0, 0, 0.35);
}

.lightbox-caption-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  min-width: 0;
}

#lightboxCounter {
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

#lightboxCaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lb-zoom-label {
  font-size: 12.5px;
  min-width: 44px;
  text-align: center;
}

.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 64px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 125;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ================= 表单与弹窗 ================= */
.empty-state {
  text-align: center;
  padding: 24px 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  background: var(--bg-canvas);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 122, 85, 0.16);
}

.textarea { resize: vertical; min-height: 80px; line-height: 1.65; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(25, 20, 16, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
}

.modal-sm { max-width: 440px; }
.modal-lg { max-width: 720px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-close { border: none; background: var(--bg-canvas); color: var(--text-secondary); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-row { display: flex; gap: 12px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 13.5px; background: var(--bg-canvas); padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); cursor: pointer; }
.checkbox-field input { accent-color: var(--accent); width: 16px; height: 16px; }

.tag-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 12.5px;
  cursor: pointer;
}

.tag-check-pill input {
  accent-color: var(--accent);
}

.cover-upload-box { display: flex; flex-direction: column; gap: 10px; }
.cover-preview-wrap { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1.5px dashed var(--border-strong); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover-preview-img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
.cover-upload-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.resume-upload-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-canvas); border: 1px solid var(--border); }
.helper-inline { font-size: 12px; color: var(--text-muted); }
.inline-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-header-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.detail-meta-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }

.avatar-picker-row { display: flex; flex-direction: column; gap: 10px; }
.emoji-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-opt { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-canvas); font-size: 20px; cursor: pointer; }
.emoji-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.upload-label { cursor: pointer; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { border: 1.5px solid transparent; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.swatch-cream { background: var(--cream-bg); color: var(--text-primary); }
.swatch-butter { background: var(--butter-bg); color: var(--butter-text); }
.swatch-peach { background: var(--peach-bg); color: var(--peach-text); }
.swatch-sage { background: var(--sage-bg); color: var(--sage-text); }
.swatch-sky { background: var(--sky-bg); color: var(--sky-text); }
.swatch.active { border-color: var(--text-primary); }
.helper-text { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.error-text { margin: 0; font-size: 13px; color: var(--danger); background: var(--danger-soft); padding: 8px 12px; border-radius: var(--radius-sm); }
.backup-actions { display: flex; flex-direction: column; gap: 10px; }

/* ================= 页脚与轻提示 ================= */
.desk-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.visitor-stats-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 150;
  background: rgba(45, 38, 33, 0.94);
  color: #fffdf9;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* ================= A4 打印 PDF 简历专属样式 ================= */
.printable-resume {
  display: none;
}

@media print {
  body > *:not(#printableResume) {
    display: none !important;
  }

  #printableResume {
    display: block !important;
    background: #ffffff;
    color: #222222;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 16mm 14mm;
    line-height: 1.65;
  }

  .pr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #d47a55;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }

  .pr-name { margin: 0; font-size: 26px; color: #2b231e; }
  .pr-sub { margin: 4px 0 0; font-size: 13px; color: #666; }
  .pr-section { margin-bottom: 16px; }
  .pr-section h3 { margin: 0 0 8px; font-size: 15px; color: #bf6844; border-left: 3px solid #d47a55; padding-left: 8px; }
  .pr-item { margin-bottom: 8px; font-size: 13px; }
  .pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font-size: 13px; }
}

/* ================= 自适应响应 ================= */
@media (max-width: 1180px) {
  .rhino-grid,
  .gallery-grid,
  .hobbies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .desk-layout,
  .work-hero-card,
  .about-hero-card,
  .about-two-col,
  .goals-grid,
  .desk-two-col,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .desk-sidebar {
    position: static;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hide-md {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .page-container,
  .desk-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .status-pill,
  .hide-sm {
    display: none;
  }

  .rhino-grid,
  .gallery-grid,
  .hobbies-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .lightbox-stage {
    padding: 16px;
  }
}

/* =========================================================
   🌊 圆形水波扩散换肤动效 (View Transitions API)
   ========================================================= */
@property --vt-r {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
  --vt-soft: clamp(36px, 4.5vmax, 76px);
  --vt-r: 0px;
  --vt-mask: radial-gradient(
    circle at var(--tx, 50%) var(--ty, 50%),
    #000 calc(var(--vt-r) - var(--vt-soft)),
    rgba(0, 0, 0, 0.85) calc(var(--vt-r) - var(--vt-soft) * 0.65),
    rgba(0, 0, 0, 0.35) calc(var(--vt-r) - var(--vt-soft) * 0.3),
    transparent var(--vt-r)
  );
  -webkit-mask-image: var(--vt-mask);
  mask-image: var(--vt-mask);
  animation: deskThemeRipple 0.62s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

@keyframes deskThemeRipple {
  to {
    --vt-r: var(--tr, 150vmax);
  }
}

#themeIcon {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#themeToggleBtn:active #themeIcon {
  transform: scale(0.82) rotate(-18deg);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* =========================================================
   💙 午夜蓝光灯箱 · 科幻电影静帧开场封面
   ========================================================= */
.scifi-hero-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 6px;
}

.scifi-hero {
  position: relative;
  min-height: clamp(460px, 74vh, 640px);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 42%, rgba(14, 42, 102, 0.46) 0%, rgba(6, 18, 46, 0.56) 58%, rgba(4, 10, 24, 0.64) 100%);
  backdrop-filter: blur(12px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.04);
  color: #eaf2ff;
  border: 1px solid rgba(147, 197, 253, 0.34);
  box-shadow:
    0 24px 64px rgba(2, 8, 26, 0.48),
    inset 0 2px 1.5px rgba(224, 242, 254, 0.42),
    inset 1.5px 0 1.5px rgba(186, 230, 253, 0.18),
    inset 0 -1.5px 2px rgba(96, 165, 250, 0.22);
  isolation: isolate;
}

[data-theme="dark"] .scifi-hero {
  border-color: rgba(147, 197, 253, 0.32);
  box-shadow:
    0 26px 70px rgba(0, 4, 18, 0.62),
    inset 0 2px 1.5px rgba(224, 242, 254, 0.4),
    inset 1.5px 0 1.5px rgba(186, 230, 253, 0.16),
    inset 0 -1.5px 2px rgba(96, 165, 250, 0.2);
}

.scifi-hero-breath {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.48), transparent 52%),
    radial-gradient(circle at 22% 78%, rgba(56, 189, 248, 0.24), transparent 44%),
    radial-gradient(circle at 80% 24%, rgba(29, 78, 216, 0.32), transparent 44%);
  animation: scifiBreath 8s ease-in-out infinite alternate;
}

@keyframes scifiBreath {
  0% { transform: scale(0.94); opacity: 0.62; }
  100% { transform: scale(1.1); opacity: 1; }
}

.scifi-hero-spotlight {
  display: none;
}

.scifi-hero-cursor-bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 160px at var(--mx, 50%) var(--my, 46%), rgba(56, 189, 248, 0.18), transparent 72%);
  mix-blend-mode: screen;
}

.scifi-hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(96, 165, 250, 0.55) 50%, transparent 95%);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
  animation: scifiScan 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scifiScan {
  0% { top: -4px; opacity: 0; }
  10% { opacity: 0.85; }
  85% { opacity: 0.75; }
  100% { top: 102%; opacity: 0; }
}

.scifi-hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(191, 219, 254, 0.7) 0.6px, transparent 0.6px);
  background-size: 16px 16px;
}

.scifi-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(147, 197, 253, 0.48);
  pointer-events: none;
  z-index: 2;
}
.scifi-corner-tl { top: 18px; left: 18px; border-top: 1.5px solid; border-left: 1.5px solid; }
.scifi-corner-tr { top: 18px; right: 18px; border-top: 1.5px solid; border-right: 1.5px solid; }
.scifi-corner-bl { bottom: 18px; left: 18px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.scifi-corner-br { bottom: 18px; right: 18px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.scifi-hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 34px;
  gap: 24px;
}

.scifi-mono {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.scifi-hero-top,
.scifi-hero-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(191, 219, 254, 0.68);
}

.scifi-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.scifi-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: scifiDotPulse 2s ease-in-out infinite;
}

@keyframes scifiDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.scifi-lightbox-card {
  width: 100%;
  max-width: 680px;
  padding: 34px 36px 32px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(148deg, rgba(186, 230, 253, 0.18) 0%, rgba(30, 64, 148, 0.24) 48%, rgba(6, 18, 46, 0.54) 100%);
  border: 1px solid rgba(186, 230, 253, 0.38);
  backdrop-filter: blur(28px) saturate(210%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(1.08);
  box-shadow:
    0 24px 64px rgba(2, 8, 26, 0.5),
    inset 0 2px 1.5px rgba(224, 242, 254, 0.54),
    inset 1.5px 0 1.5px rgba(186, 230, 253, 0.24),
    inset 0 -1.5px 2px rgba(96, 165, 250, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scifi-neon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(147, 197, 253, 0.88);
  background: rgba(29, 78, 216, 0.32);
  color: #eff6ff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.52), inset 0 0 12px rgba(147, 197, 253, 0.28);
  animation: scifiNeonPulse 6s ease-in-out infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.scifi-neon-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.72), inset 0 0 14px rgba(191, 219, 254, 0.36);
}

.scifi-neon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 10px #93c5fd;
}

@keyframes scifiNeonPulse {
  0%, 91%, 100% { opacity: 1; }
  93% { opacity: 0.7; }
  95% { opacity: 1; }
  97% { opacity: 0.84; }
}

.scifi-eyebrow-roll {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(147, 197, 253, 0.84);
  min-height: 18px;
}

.scifi-hero-title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(59, 130, 246, 0.42);
  min-height: 1.2em;
}

.scifi-hero-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(219, 234, 254, 0.78);
  max-width: 520px;
}

.scifi-telemetry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
  padding: 12px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(186, 230, 253, 0.14), rgba(6, 18, 46, 0.48));
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: inset 0 1.5px 1px rgba(224, 242, 254, 0.42), 0 10px 26px rgba(2, 8, 24, 0.32);
}

.scifi-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 78px;
}

.scifi-metric-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #93c5fd;
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.scifi-metric-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(191, 219, 254, 0.65);
}

.scifi-metric-sep {
  width: 1px;
  height: 28px;
  background: rgba(147, 197, 253, 0.22);
}

.scifi-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.scifi-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(147, 197, 253, 0.45);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.scifi-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.62);
  filter: brightness(1.06);
}

.scifi-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e0edff;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(147, 197, 253, 0.3);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.scifi-btn-ghost:hover {
  background: rgba(147, 197, 253, 0.14);
  border-color: rgba(147, 197, 253, 0.55);
  transform: translateY(-2px);
}

.scifi-scroll-hint {
  background: none;
  border: 0;
  color: rgba(191, 219, 254, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 8px;
  animation: scifiScrollFloat 2.4s ease-in-out infinite;
}

.scifi-scroll-hint:hover {
  color: #ffffff;
}

@keyframes scifiScrollFloat {
  0%, 100% { transform: translateY(0); opacity: 0.68; }
  50% { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 720px) {
  .scifi-hero-wrap {
    padding: 14px 14px 4px;
  }
  .scifi-hero {
    min-height: 440px;
    border-radius: 22px;
  }
  .scifi-hero-inner {
    padding: 20px 16px;
  }
  .scifi-lightbox-card {
    padding: 24px 18px;
  }
  .scifi-telemetry {
    gap: 12px;
    padding: 10px 14px;
    width: 100%;
  }
  .scifi-metric {
    min-width: 0;
    flex: 1;
  }
  .scifi-metric-num {
    font-size: 20px;
  }
  .scifi-hero-bottom > span:first-child,
  .scifi-hero-bottom > span:last-child {
    display: none;
  }
  .scifi-hero-bottom {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scifi-hero-breath,
  .scifi-hero-scan,
  .scifi-neon-pill,
  .scifi-live-dot,
  .scifi-scroll-hint {
    animation: none;
  }
}

@media print {
  .scifi-hero-wrap {
    display: none !important;
  }
}

/* ===== 🎮 自制小游戏内嵌液态玻璃机台框 ===== */
.game-frame-card {
  padding: 16px;
  overflow: hidden;
}

.game-iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #1a5e1a;
}

@media (max-width: 600px) {
  .game-frame-card {
    padding: 10px;
  }
  .game-iframe {
    height: 540px;
    border-radius: 14px;
  }
}

/* ===== 💬 底部访客匿名留言条（多彩液态玻璃便签） ===== */
.guestbook-wrap {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 26px auto 0;
  padding: 0 24px 6px;
}

.guestbook-card {
  padding: 24px 26px 22px;
  border-radius: 26px;
}

.guestbook-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.guestbook-title {
  margin: 4px 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.guestbook-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.guestbook-count-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.guestbook-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.gb-input {
  height: 44px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gb-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.gb-nick {
  width: 210px;
  flex: 0 0 auto;
}

.gb-msg {
  flex: 1 1 280px;
  min-width: 200px;
}

.gb-submit {
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  flex-shrink: 0;
}

.guestbook-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.gb-item {
  position: relative;
  border-radius: 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.28), 0 8px 22px rgba(2, 8, 24, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gb-item:hover {
  transform: translateY(-2px);
}

/* 5 种不同色彩的液态玻璃留言条 */
.gb-color-sky {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(14, 46, 98, 0.42));
  border-color: rgba(125, 211, 252, 0.42);
}
.gb-color-violet {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.24), rgba(49, 28, 96, 0.44));
  border-color: rgba(196, 181, 253, 0.42);
}
.gb-color-sage {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22), rgba(12, 62, 58, 0.44));
  border-color: rgba(110, 231, 183, 0.4);
}
.gb-color-butter {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(74, 48, 14, 0.44));
  border-color: rgba(253, 224, 71, 0.4);
}
.gb-color-peach {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.24), rgba(84, 20, 46, 0.44));
  border-color: rgba(253, 164, 175, 0.42);
}

[data-theme="light"] .gb-color-sky {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.84), rgba(186, 230, 253, 0.7));
  border-color: rgba(59, 130, 246, 0.34);
}
[data-theme="light"] .gb-color-violet {
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.86), rgba(221, 214, 254, 0.72));
  border-color: rgba(139, 92, 246, 0.32);
}
[data-theme="light"] .gb-color-sage {
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.86), rgba(167, 243, 208, 0.7));
  border-color: rgba(16, 185, 129, 0.34);
}
[data-theme="light"] .gb-color-butter {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.88), rgba(253, 230, 138, 0.7));
  border-color: rgba(245, 158, 11, 0.34);
}
[data-theme="light"] .gb-color-peach {
  background: linear-gradient(145deg, rgba(255, 228, 230, 0.88), rgba(254, 205, 211, 0.72));
  border-color: rgba(244, 63, 94, 0.32);
}

.gb-item-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
  white-space: pre-wrap;
}

.gb-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.gb-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gb-item-author {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .guestbook-wrap {
    padding: 0 14px 4px;
  }
  .guestbook-card {
    padding: 18px 16px;
  }
  .gb-nick,
  .gb-msg,
  .gb-submit {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media print {
  .guestbook-wrap {
    display: none !important;
  }
}

/* ===== ❤️ 弹跳红心 + 数字垂直翻滚点赞胶囊 ===== */
.like-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 22, 38, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #ffffff;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 10px 26px rgba(2, 8, 24, 0.34), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.like-pill-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.like-pill-btn:active {
  transform: scale(0.94);
}

.like-pill-btn.is-liked {
  border-color: rgba(255, 77, 109, 0.62);
  background: rgba(34, 16, 30, 0.86);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.3), inset 0 1px 1px rgba(255, 190, 205, 0.28);
}

.like-pill-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  gap: 7px;
}

[data-theme="light"] .like-pill-btn {
  background: rgba(255, 255, 255, 0.85);
  color: #182338;
  border-color: rgba(244, 63, 94, 0.24);
  box-shadow: 0 8px 20px rgba(15, 42, 96, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .like-pill-btn.is-liked {
  background: #fff1f4;
  border-color: rgba(255, 77, 109, 0.5);
  color: #be123c;
}

.like-heart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.like-heart-svg {
  display: block;
  fill: transparent;
  stroke: #d9788b;
  stroke-width: 1.9;
  stroke-linejoin: round;
  transition: fill 0.22s ease, stroke 0.22s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-pill-btn.is-liked .like-heart-svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
  filter: drop-shadow(0 0 8px rgba(255, 77, 109, 0.6));
}

.like-pill-btn.is-popping .like-heart-svg {
  animation: heartPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  25% { transform: scale(0.72); }
  60% { transform: scale(1.36); }
  82% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.like-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.like-sparks i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff6b8b;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.like-pill-btn.is-popping .like-sparks i:nth-child(1) { animation: spark1 0.52s ease-out; }
.like-pill-btn.is-popping .like-sparks i:nth-child(2) { animation: spark2 0.52s ease-out; }
.like-pill-btn.is-popping .like-sparks i:nth-child(3) { animation: spark3 0.52s ease-out; }
.like-pill-btn.is-popping .like-sparks i:nth-child(4) { animation: spark4 0.52s ease-out; }
.like-pill-btn.is-popping .like-sparks i:nth-child(5) { animation: spark5 0.52s ease-out; }
.like-pill-btn.is-popping .like-sparks i:nth-child(6) { animation: spark6 0.52s ease-out; }

@keyframes spark1 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -22px) scale(0.2); } }
@keyframes spark2 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(16px, -14px) scale(0.2); } }
@keyframes spark3 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(16px, 12px) scale(0.2); } }
@keyframes spark4 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, 20px) scale(0.2); } }
@keyframes spark5 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-20px, 12px) scale(0.2); } }
@keyframes spark6 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-20px, -14px) scale(0.2); } }

.like-count-wrap {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  line-height: 1.15;
}

.like-digit {
  display: inline-block;
}

.like-digit.roll-up {
  animation: digitRollUp 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.like-digit.roll-down {
  animation: digitRollDown 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes digitRollUp {
  0% { opacity: 0; transform: translateY(80%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes digitRollDown {
  0% { opacity: 0; transform: translateY(-80%); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== 🗑️ 霓虹紫光长按蓄力删除胶囊 (Hold-to-Delete) ===== */
.hold-del-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(24, 24, 34, 0.86);
  color: rgba(236, 238, 250, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.hold-del-block {
  width: 100%;
  height: 42px;
  font-size: 14px;
}

.hold-del-btn:hover {
  border-color: rgba(167, 139, 250, 0.55);
}

.hold-del-btn.is-holding {
  transform: scale(0.97);
  border-color: rgba(167, 139, 250, 0.9);
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.65), 0 0 8px rgba(167, 139, 250, 0.5);
}

.hold-del-btn.is-done {
  transform: scale(1.02);
  border-color: rgba(196, 181, 253, 0.95);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.85), 0 0 12px rgba(167, 139, 250, 0.65);
}

.hold-del-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(90deg, #5b21b6 0%, #6d28d9 50%, #7c3aed 100%);
  transform-origin: left center;
  transform: scaleX(var(--hold-p, 0));
  pointer-events: none;
  z-index: 0;
  transition: transform 0.22s ease-out;
}

.hold-del-btn.is-holding .hold-del-fill {
  transition: none;
}

.hold-del-btn.is-done .hold-del-fill {
  transform: scaleX(1);
}

.hold-del-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
}

.hold-del-icon {
  flex-shrink: 0;
}

.hold-icon-check {
  display: none;
}

.hold-del-btn.is-done .hold-icon-trash {
  display: none;
}

.hold-del-btn.is-done .hold-icon-check {
  display: inline-block;
  animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 🖼️ 3D 展馆翻转卡片（正面全幅高清图 / 背面黑白底图 + 英文名称） ===== */
.flip-card {
  perspective: 1200px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  overflow: visible !important;
  cursor: pointer;
}

.flip-card::before {
  display: none !important;
}

.rhino-item-card.flip-card,
.photo-card.flip-card {
  aspect-ratio: 3 / 4;
  min-height: 270px;
}

.blog-card.flip-card {
  aspect-ratio: 4 / 3.4;
  min-height: 250px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  border-radius: 20px;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: rotateY(calc(180deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg)) scale(1.02);
  }
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg) scale(1.01);
}

/* 手机触屏设备上提示可轻点翻面 */
.flip-front::after {
  content: "↻ 轻点翻面";
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 249, 255, 0.92);
  background: rgba(6, 16, 40, 0.56);
  border: 1px solid rgba(186, 230, 253, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
  .flip-front::after {
    display: inline-flex;
    align-items: center;
  }
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(186, 230, 253, 0.28);
  box-shadow: 0 16px 38px rgba(2, 8, 24, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.flip-front {
  background: rgba(10, 24, 54, 0.6);
}

.flip-front-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.flip-front-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.flip-back {
  transform: rotateY(180deg);
  background: #14171f;
  color: #f3f6fb;
}

.flip-back-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.32) contrast(1.12);
  transform: scale(1.06);
  pointer-events: none;
}

.flip-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 24, 0.72) 0%,
    rgba(10, 14, 24, 0.36) 46%,
    rgba(10, 14, 24, 0.84) 100%
  );
  pointer-events: none;
}

.flip-back-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.flip-back-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flip-en-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flip-zh-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(219, 234, 254, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-back-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flip-cta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.flip-back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(226, 234, 246, 0.82);
}

.flip-back-foot span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: transform 0.25s ease;
  }
}

/* ===== ✨ 顶部 2px 冰蓝阅读进度细线 & 柔和切页淡入转场 ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 55%, #818cf8 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.72);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

.page-view.is-entering {
  animation: pageFadeRise 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageFadeRise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-view.is-entering {
    animation: none;
  }
}

@media print {
  .scroll-progress-bar,
  .floating-desk-dock {
    display: none !important;
  }
}

/* =========================================================
   🎧 右下角悬浮液态玻璃趣味工具栏（氛围轻音乐 · 灵感签 · 返回顶部进度环）
   ========================================================= */
.floating-desk-dock {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-desk-dock > * {
  pointer-events: auto;
}

.dock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ambient-player {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(10, 24, 58, 0.68);
  border: 1px solid rgba(147, 197, 253, 0.34);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  box-shadow: 0 12px 32px rgba(2, 8, 26, 0.44), inset 0 1.5px 1px rgba(224, 242, 254, 0.32);
  color: #eef5ff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ambient-player.is-playing {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.36), 0 0 18px rgba(56, 189, 248, 0.24), inset 0 1.5px 1px rgba(224, 242, 254, 0.45);
}

.ambient-play-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(186, 230, 253, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(37, 99, 235, 0.92));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ambient-play-btn:hover {
  transform: scale(1.06);
}

.ambient-play-btn:active {
  transform: scale(0.92);
}

.ambient-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ambient-eq i {
  display: block;
  width: 2.5px;
  border-radius: 99px;
  background: #ffffff;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.ambient-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.ambient-eq i:nth-child(2) { height: 13px; animation-delay: 0.2s; }
.ambient-eq i:nth-child(3) { height: 9px; animation-delay: 0.38s; }
.ambient-eq i:nth-child(4) { height: 11px; animation-delay: 0.12s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

.ambient-player.is-playing .ambient-eq {
  display: inline-flex;
}

.ambient-player.is-playing .ambient-play-icon {
  display: none;
}

.ambient-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 72px;
  max-width: 112px;
}

.ambient-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-sub {
  font-size: 10.5px;
  color: rgba(186, 230, 253, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-next-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ambient-next-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.dock-orb-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.34);
  background: rgba(10, 24, 58, 0.68);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  box-shadow: 0 12px 30px rgba(2, 8, 26, 0.42), inset 0 1.5px 1px rgba(224, 242, 254, 0.32);
  color: #eef5ff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.26s ease, border-color 0.24s ease;
}

.dock-orb-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(186, 230, 253, 0.68);
}

.dock-orb-btn:active {
  transform: scale(0.92);
}

.back-top-btn {
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
}

.back-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-top-track {
  fill: none;
  stroke: rgba(147, 197, 253, 0.18);
  stroke-width: 2.4;
}

.back-top-progress {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 0.1s linear;
}

.back-top-arrow {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* 灵感签浮窗卡片 */
.fortune-popover {
  width: min(312px, calc(100vw - 28px));
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(10, 24, 58, 0.86);
  border: 1px solid rgba(147, 197, 253, 0.42);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 22px 54px rgba(2, 8, 26, 0.6), inset 0 1.5px 1px rgba(224, 242, 254, 0.4);
  color: #eef5ff;
  animation: pageFadeRise 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.fortune-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fortune-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.48), rgba(56, 189, 248, 0.36));
  border: 1px solid rgba(186, 230, 253, 0.42);
}

.fortune-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  cursor: pointer;
  font-size: 12px;
}

.fortune-quote {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.62;
  color: #ffffff;
}

.fortune-tip {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(186, 230, 253, 0.86);
}

.fortune-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 浅色模式适配悬浮工具栏 */
[data-theme="light"] .ambient-player,
[data-theme="light"] .dock-orb-btn,
[data-theme="light"] .fortune-popover {
  background: rgba(244, 248, 255, 0.84);
  border-color: rgba(59, 130, 246, 0.28);
  color: #0d1d3a;
  box-shadow: 0 12px 32px rgba(15, 42, 96, 0.14), inset 0 1.5px 1px rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .ambient-sub,
[data-theme="light"] .fortune-tip {
  color: #39527a;
}

[data-theme="light"] .ambient-next-btn,
[data-theme="light"] .fortune-close {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

[data-theme="light"] .fortune-badge {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .fortune-quote {
  color: #0d1d3a;
}

/* 关于我页面 · 一键复制邮箱小胶囊 */
.about-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.about-copy-email:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

/* =========================================================
   📱 手机端 & 微信浏览器深度适配优化
   ========================================================= */
.main-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  .topbar-inner {
    gap: 8px 10px;
    padding: 9px 14px;
  }

  .main-nav {
    gap: 6px;
    padding: 2px 2px 4px;
    min-height: 40px;
  }

  .nav-link {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
    border-radius: 999px;
  }

  .nav-link.active {
    height: 36px;
    padding: 0 16px;
  }

  .scifi-hero-actions {
    width: 100%;
    justify-content: center;
  }

  .scifi-btn-primary,
  .scifi-btn-ghost {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .desk-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .floating-desk-dock {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   ✨ 简约高级全屏开场幕布（仅居中显示书桌标题 + 鼠标乱码解码 + 下滑进入）
   ========================================================= */
.intro-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  user-select: none;
  perspective: 900px;
}

.intro-stage.is-route-hidden {
  display: none !important;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(4, 10, 26, 0.16) 0%, rgba(3, 7, 19, 0.62) 76%, rgba(2, 5, 14, 0.82) 100%);
}

[data-theme="light"] .intro-vignette {
  background: radial-gradient(circle at 50% 50%, rgba(235, 243, 255, 0.12) 0%, rgba(220, 232, 251, 0.56) 76%, rgba(210, 226, 250, 0.78) 100%);
}

.intro-center {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 960px);
  text-align: center;
  will-change: transform, opacity, filter;
  animation: introTitleFloatIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes introTitleFloatIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.intro-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: #f4f8ff;
  text-shadow: 0 8px 34px rgba(59, 130, 246, 0.28), 0 2px 10px rgba(0, 0, 0, 0.45);
  cursor: default;
}

[data-theme="light"] .intro-title {
  color: #0b1b38;
  text-shadow: 0 8px 28px rgba(37, 99, 235, 0.18);
}

.intro-char {
  display: inline-block;
  min-width: 0.35em;
  transform: translate3d(0, var(--char-py, 0px), 0);
  will-change: transform;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.intro-char.is-scrambling {
  color: #7dd3fc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.85), 0 0 36px rgba(59, 130, 246, 0.55);
  transform: translate3d(0, calc(var(--char-py, 0px) - 2px), 0);
}

[data-theme="light"] .intro-char.is-scrambling {
  color: #2563eb;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.intro-scroll-cue {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: rgba(219, 234, 254, 0.58);
  cursor: pointer;
  padding: 8px 14px;
  transition: color 0.25s ease, opacity 0.35s ease;
}

.intro-scroll-cue:hover {
  color: rgba(240, 249, 255, 0.94);
}

[data-theme="light"] .intro-scroll-cue {
  color: rgba(15, 35, 72, 0.54);
}

[data-theme="light"] .intro-scroll-cue:hover {
  color: rgba(15, 35, 72, 0.92);
}

.intro-scroll-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.intro-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, currentColor 0%, transparent 100%);
  animation: introScrollPulse 2s ease-in-out infinite;
}

@keyframes introScrollPulse {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* 处于首屏开场幕布顶部时，隐藏顶部导航与右下角悬浮栏，让开场极致纯粹 */
.topbar {
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-intro-top .topbar {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

body.is-intro-top .floating-desk-dock {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.floating-desk-dock {
  transition: opacity 0.38s ease, transform 0.38s ease;
}

/* =========================================================
   🌊 全站滚动渐显动效 (Scroll Reveal)
   ========================================================= */
.reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .intro-center,
  .intro-scroll-line {
    animation: none !important;
  }
}

/* =========================================================
   🔥 底部双行双向滚动速度文字条 (Scroll Velocity)
   ========================================================= */
.velocity-marquee-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 34px 0 6px;
  padding: 18px 0 22px;
  overflow: hidden;
  --vm-color: #f97316;
  --vm-size: 56px;
  --vm-opacity: 0.9;
}

.vm-toolbar {
  max-width: 1380px;
  margin: 0 auto 8px;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
}

.vm-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  user-select: none;
}

.vm-row {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.vm-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.vm-segment {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: clamp(24px, calc(var(--vm-size) * 0.72 + 1.4vw), var(--vm-size));
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--vm-color);
  opacity: var(--vm-opacity);
  padding-right: 0.38em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.vm-dot {
  display: inline-block;
  margin: 0 0.38em;
  opacity: 0.85;
}

/* 底部文字自定义弹窗里的色块与滑块 */
.mq-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mq-color-picker {
  width: 44px;
  height: 36px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  cursor: pointer;
}

.mq-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mq-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mq-swatch:hover {
  transform: scale(1.14);
}

.mq-swatch.active {
  transform: scale(1.16);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.55);
}

.mq-range {
  width: 100%;
  accent-color: #3b82f6;
  cursor: pointer;
}

@media (max-width: 560px) {
  .intro-title {
    font-size: clamp(28px, 8.6vw, 44px);
    letter-spacing: 0.08em;
  }
  .vm-segment {
    font-size: clamp(22px, calc(var(--vm-size) * 0.54), 56px);
  }
  .vm-toolbar {
    padding: 0 14px;
  }
}

@media print {
  .intro-stage,
  .velocity-marquee-wrap {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .brand-title {
    font-size: 15px;
    max-width: 148px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .icon-pill-btn {
    height: 34px;
    padding: 0 9px;
  }
  .input,
  .textarea,
  .gb-input,
  select.input {
    font-size: 16px !important;
  }
  .modal {
    width: calc(100vw - 22px) !important;
    max-height: 88dvh;
    border-radius: 20px;
  }
  .modal-body {
    max-height: calc(88dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .rhino-item-card.flip-card,
  .photo-card.flip-card {
    aspect-ratio: 4 / 4.6;
    min-height: 240px;
  }
  .blog-card.flip-card {
    aspect-ratio: 4 / 3.2;
    min-height: 220px;
  }
  .ambient-meta {
    min-width: 58px;
    max-width: 82px;
  }
  .ambient-sub {
    display: none;
  }
  .ambient-player {
    height: 44px;
    padding: 4px 8px 4px 5px;
    gap: 7px;
  }
  .dock-orb-btn {
    width: 44px;
    height: 44px;
  }
}
