* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.38);
  --accent: #fff;
  --accent-rgb: 255, 255, 255;

  /* 液态玻璃 - 壁纸适配 */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-blur: 12px;
  --glass-saturate: 120%;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  /* 色差折射（由 JS 动态写入，默认 0 即关闭） */
  --glass-chromatic-r: 0;
  --glass-chromatic-b: 0;
  /* 内阴影深度 */
  --glass-inner-shadow-top: 0.10;
  --glass-inner-shadow-bottom: 0.25;

  /* 动态高光 - 由 JS 从壁纸采样 */
  --hl-1: rgba(255, 255, 255, 0.40);
  --hl-2: rgba(255, 255, 255, 0.18);
  --hl-angle: 45deg;

  /* 兼容旧变量 */
  --card-bg: var(--glass-bg);
  --card-bg-hover: var(--glass-bg-hover);
  --card-border: var(--glass-border);
  --card-border-hover: var(--glass-border-hover);

  --site-bg-start: #232526;
  --site-bg-end: #414345;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
}

body {
  margin: 0;
  padding: 48px 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--site-bg-start), var(--site-bg-end));
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  font-family: var(--font-sans);
}

/* ===== 背景 ===== */
.bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.pattern-bg {
  width: 100%; height: 100%; overflow: hidden; position: relative;
  background: repeating-linear-gradient(135deg, #181b20 0px, #181b20 60px, #181b2099 70px, #2a2d33 130px);
}
.cube-svg {
  position: absolute; width: 200%; height: 200%; left: -30%; top: -20%;
  opacity: 0.4; z-index: 1;
  animation: cubeMove 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes cubeMove {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(-12%) scale(1.005) rotate(0.3deg); }
}

/* ===== 联系方式玻璃图标（hgovo 风格） ===== */
.glass-radio-group {
  --gr-bg: rgba(255, 255, 255, 0.06);
  --gr-text: #888;
  display: flex; position: relative;
  background: var(--gr-bg);
  border-radius: 1rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 1px 1px 4px rgba(255,255,255,0.12), inset -1px -1px 6px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.12);
  overflow: hidden; width: 100%;
}
.glass-radio-group input { display: none; }
.glass-radio-group label {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0.7rem 0; cursor: pointer; color: var(--gr-text);
  position: relative; z-index: 2; transition: color 0.3s;
}
.glass-radio-group label svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.glass-radio-group label:hover { color: #bbb; }
.glass-radio-group input:checked + label { color: #fff; }
.glass-glider {
  position: absolute; top: 0; bottom: 0; width: calc(100% / 4); border-radius: 1rem; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.3));
  box-shadow: 0 0 16px rgba(255,255,255,0.12), 0 0 8px rgba(255,255,255,0.08) inset;
  transition: transform 0.5s cubic-bezier(0.37,1.95,0.66,0.56);
}
#glass-mail:checked ~ .glass-glider { transform: translateX(0%); }
#glass-chat:checked ~ .glass-glider { transform: translateX(100%); }
#glass-link:checked ~ .glass-glider { transform: translateX(200%); }
#glass-phone:checked ~ .glass-glider { transform: translateX(300%); }
.bg-blur {
  position: fixed; inset: 0; z-index: 1;
  background: rgba(24, 28, 33, 0.3);
  pointer-events: none;
}

/* ===== 环境光球 ===== */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px) saturate(150%);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.5), transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(60, 180, 255, 0.4), transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -7s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 100, 150, 0.3), transparent 70%);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation-delay: -14s;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== 布局容器 ===== */
.container {
  position: relative; z-index: 2;
  width: min(1200px, 100%); margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* ================================================================
   液态玻璃卡片 — yzrt 核心技法：
   1. filter: contrast(1.8) 包裹层放大阴影对比度
   2. 多层 inset 阴影模拟光线折射
   3. ::before/::after 伪元素做反射光斑
   4. 细腻黑边增强立体感
   ================================================================ */

/* 液态玻璃卡片 — 简约玻璃（默认） */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 顶部边缘高光（简约模式 — hover 时可见） */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.card:hover::before {
  opacity: 1;
}

/* 底部微光反射 */
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(var(--accent-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 所有玻璃卡片 hover 顶部高光 */
.project-item,
.post-item,
.reply-item,
.contact-item {
  position: relative;
  overflow: hidden;
}
.project-item::before,
.post-item::before,
.reply-item::before,
.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.project-item:hover::before,
.post-item:hover::before,
.reply-item:hover::before,
.contact-item:hover::before {
  opacity: 1;
}

.avatar-card::before, .avatar-card::after { display: none; }

/* ===== 侧边栏 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* 社交媒体滚动 */
.marquee-container {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
  z-index: 2;
  border-radius: 12px 0 0 12px;
}
.marquee-container::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 100%;
  background: linear-gradient(-90deg, rgba(0,0,0,0.2), transparent);
  z-index: 2;
  border-radius: 0 12px 12px 0;
}
.marquee-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  white-space: nowrap;
}
.marquee-track svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.marquee-track span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.marquee-track svg:hover {
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}
.marquee-track-1 {
  animation: marqueeScroll 20s linear infinite;
}
.marquee-track-2 {
  animation: marqueeScroll 25s linear infinite reverse;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.avatar {
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, box-shadow .3s;
  cursor: pointer; position: relative; overflow: hidden;
}
.avatar:hover {
  box-shadow: 0 0 20px rgba(255,255,255,.15);
}
.avatar-placeholder { font-size: 16px; color: var(--text-muted); font-weight: 500; z-index: 1; letter-spacing: .5px; }
.avatar-img { display: block; min-width: 100%; min-height: 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; pointer-events: none; }
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

/* 联系方式图标组 — 独立卡片形式 */
.contact-icons-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.contact-icon-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.contact-icon-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.contact-icon-item:hover {
  color: rgba(255,255,255,0.7);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* 导航列表（radio glider） */
.radio-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.radio-container input[type="radio"] { display: none; }
.radio-container label {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}
.radio-container label:hover { color: rgba(255,255,255,0.75); }
.radio-container input:checked + label { color: #fff; }

.glider-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}
.glider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / var(--total-radio, 5));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
#nav-about:checked ~ .glider-container .glider { transform: translateX(0%); }
#nav-skills:checked ~ .glider-container .glider { transform: translateX(100%); }
#nav-posts:checked ~ .glider-container .glider { transform: translateX(200%); }
#nav-projects:checked ~ .glider-container .glider { transform: translateX(300%); }
#nav-contact:checked ~ .glider-container .glider { transform: translateX(400%); }

/* ===== 主内容区 ===== */
.main-content {
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transition: opacity .3s ease;
}
.main-content.loaded { opacity: 1; }

/* 自定义文案框 */
.subtitle-custom-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px) saturate(100%);
  -webkit-backdrop-filter: blur(2px) saturate(100%);
}
.subtitle-custom-card::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* 公告栏 */
.announcement-bar {
  padding: 10px 14px;
  background: rgba(20, 22, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.announcement-bar a { color: var(--text); text-decoration: none; display: block; }

/* 滚动渐入 - 分层动画 */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}
.fade-in.visible {
  animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fade-in:nth-child(1) { animation-delay: 0ms; }
.fade-in:nth-child(2) { animation-delay: 60ms; }
.fade-in:nth-child(3) { animation-delay: 120ms; }
.fade-in:nth-child(4) { animation-delay: 180ms; }
.fade-in:nth-child(5) { animation-delay: 240ms; }
.fade-in:nth-child(6) { animation-delay: 300ms; }
.fade-in:nth-child(7) { animation-delay: 360ms; }
.fade-in:nth-child(8) { animation-delay: 420ms; }

/* 卡片悬停微动效 */
.card, .post-item, .reply-item, .project-item, .skill-tag {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover, .post-item:hover, .project-item:hover {
  transform: translateY(-2px);
}
.skill-tag:hover {
  transform: translateY(-1px) scale(1.02);
}

/* 标题 */
.title-card, .title-card:hover { padding: 40px 4px 16px; background: transparent; border: none; box-shadow: none; transform: none; }
.title-card::before, .title-card::after { display: none; }
.title-wrap { display: flex; align-items: baseline; gap: 12px; font-size: 48px; font-weight: 700; }
.title-prefix { color: #fff; flex-shrink: 0; }
.title {
  background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gradientText 4s ease infinite;
}
@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
}

/* 副标题 */
.subtitle-card, .subtitle-card:hover { padding: 0 4px 24px; background: transparent; border: none; box-shadow: none; transform: none; }
.subtitle-card::before, .subtitle-card::after { display: none; }
.subtitle-wrap { display: flex; align-items: baseline; gap: 10px; font-size: 32px; font-weight: 600; letter-spacing: 1px; }
.subtitle-prefix { color: var(--text-muted); flex-shrink: 0; }
.subtitle-name {
  background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gradientText 4s ease infinite;
}

/* ===== 像素横幅 ===== */
.pixel-banner {
  display: flex; justify-content: flex-start;
  padding: 8px 0; overflow: hidden; max-width: 100%;
}
.pixel-banner--svg {
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}
.pixel-grid {
  display: flex;
  line-height: 0;
  max-width: 100%;
  overflow: hidden;
}
.pixel-grid--svg {
  display: block;
  width: 100%;
  max-width: 620px;
  margin-left: 0;
  padding-left: 0;
  line-height: 0;
  overflow: hidden;
}
.pixel-grid--svg svg {
  width: 100%;
  height: auto;
  max-height: 110px;
  display: block;
}
@media (max-width: 600px) {
  .pixel-grid--svg { max-width: 100%; }
  .pixel-grid--svg svg { max-height: 70px; }
}

/* ===== Individual pixel cells ===== */
.px {
  border-radius: 1px;
}

/* ===== 个人简介 ===== */
.intro-card:not(.liquid-glass-card), .intro-card:not(.liquid-glass-card):hover { padding: 16px 4px 8px; background: transparent; border: none; box-shadow: none; transform: none; }
.intro-card::before, .intro-card::after { display: none; }
.intro-text { font-size: 15px; color: var(--text-muted); line-height: 1.9; white-space: pre-wrap; word-break: break-word; letter-spacing: 0.2px; }

.section-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 600;
  padding-left: 4px;
  letter-spacing: 0.5px;
}

.liquid-glass-card .section-title {
  padding-left: 4px;
  margin-top: 0;
}

/* ===== 技能标签 ===== */
.skills-card:not(.liquid-glass-card), .skills-card:not(.liquid-glass-card):hover { padding: 16px 4px 8px; background: transparent; border: none; box-shadow: none; transform: none; }
.skills-card::before, .skills-card::after { display: none; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* ===== 帖子展示 ===== */
.posts-card:not(.liquid-glass-card), .posts-card:not(.liquid-glass-card):hover {
  max-width: 900px;
  padding: 28px 0 0;
  background: transparent; border: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.posts-card::before, .posts-card::after { display: none; }

.posts-scroll-wrap {
  position: relative;
  margin-top: 20px;
}

.posts-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.posts-grid::-webkit-scrollbar { display: none; }

.post-item {
  min-width: calc((100% - 64px) / 5);
  max-width: calc((100% - 64px) / 5);
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--glass-bg);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(var(--glass-saturate));
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  contain: layout style;
}
@media (max-width: 900px) {
  .post-item { min-width: calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}
@media (max-width: 600px) {
  .post-item { min-width: 45%; max-width: 45%; }
}

.post-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.post-cover {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}
.post-cover-placeholder {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-cover-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.25;
}
.post-cover-wrap {
  position: relative;
  overflow: hidden;
}
.post-image-count {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-image-count svg {
  width: 10px;
  height: 10px;
}
.post-content {
  padding: 6px 8px;
}
.post-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-subtitle {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
}

.posts-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  color: var(--text-dim);
  font-size: 13px;
}
.posts-spinner {
  width: 28px; height: 28px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 帖子灯箱 ===== */
.post-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.post-lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.post-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.post-lightbox-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(82vh, 820px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 24, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.post-lightbox.show .post-lightbox-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.post-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.post-lightbox-headtext {
  flex: 1;
  min-width: 0;
}
.post-lightbox-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, 0.95);
}
.post-lightbox-subtitle {
  margin: 6px 0 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}
.post-lightbox-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.post-lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }
.post-lightbox-close:active { transform: scale(.98); }
.post-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.post-lightbox-close svg {
  width: 18px;
  height: 18px;
}
.post-lightbox-body {
  padding: 14px 16px 18px 16px;
  overflow: auto;
  max-height: calc(min(82vh, 820px) - 60px);
}
.post-lightbox-cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}
.post-lightbox-cover[src=""] {
  display: none;
}
.post-lightbox-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.post-lightbox-meta:empty {
  display: none;
}
.post-lightbox-content {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
  padding: 0 4px;
}
.post-lightbox-content p {
  margin: 0 0 12px;
}
.post-lightbox-content h1, .post-lightbox-content h2, .post-lightbox-content h3,
.post-lightbox-content h4, .post-lightbox-content h5 {
  margin: 18px 0 8px; color: #fff; font-weight: 600;
}
.post-lightbox-content h1 { font-size: 20px; }
.post-lightbox-content h2 { font-size: 17px; }
.post-lightbox-content h3 { font-size: 15px; }
.post-lightbox-content ul, .post-lightbox-content ol {
  margin: 0 0 12px; padding-left: 20px;
}
.post-lightbox-content li { margin-bottom: 4px; }
.post-lightbox-content blockquote {
  margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.03); border-radius: 0 6px 6px 0;
}
.post-lightbox-content code {
  background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px; font-size: 13px;
}
.post-lightbox-content pre {
  margin: 0 0 12px; padding: 12px; background: rgba(0,0,0,.3); border-radius: 8px; overflow-x: auto;
}
.post-lightbox-content pre code { background: none; padding: 0; }
.post-lightbox-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.post-lightbox-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.post-lightbox-gallery:empty {
  display: none;
}
.post-lightbox-gallery img {
  width: calc(33.333% - 6px);
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.post-lightbox-gallery img:hover {
  transform: scale(1.02);
}

/* ===== 项目展示 ===== */
.projects-card:not(.liquid-glass-card), .projects-card:not(.liquid-glass-card):hover { padding: 28px 0 0; background: transparent; border: none; box-shadow: none; transform: none; }
.projects-card::before, .projects-card::after { display: none; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.project-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  contain: layout style;
}
.project-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(var(--accent-rgb), 0.05);
}
.project-item:hover::before {
  opacity: 1;
}
a.project-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-icon {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-icon svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.project-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; position: relative; z-index: 1; }
.project-desc { font-size: 13px; color: var(--text-muted); position: relative; z-index: 1; }

/* ===== 联系方式 + 邮件 ===== */
.comms-card:not(.liquid-glass-card), .comms-card:not(.liquid-glass-card):hover { 
  max-width: 900px;
  padding: 18px 0 0; 
  background: transparent; 
  border: none; 
  box-shadow: none; 
  backdrop-filter: none; 
  -webkit-backdrop-filter: none;
}
.comms-card::before, .comms-card::after { display: none; }
.comms-header { 
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.comms-card .section-title.comms-title { margin-bottom: 0; }
.comms-subtitle { font-size: 12px; color: var(--text-muted); }
.comms-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.3fr;
  gap: 16px;
  align-items: start;
}

.comms-divider {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.9;
}
.comms-col { min-width: 0; }
.comms-col-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #fff; letter-spacing: 0.2px; }

.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-muted);
  word-break: break-all; padding: 8px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}
.contact-item svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; fill: none; opacity: 0.5; }

/* 终端卡片 */
.terminal-card {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.terminal-dot-red { background: #ff5f56; }
.terminal-dot-yellow { background: #ffbd2e; }
.terminal-dot-green { background: #27c93f; }
.terminal-title { font-size: 12px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }
.terminal-body { padding: 10px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; background: #000; }
.terminal-command { color: #50fa7b; margin: 0; word-break: break-all; }
.terminal-output { color: rgba(255,255,255,0.85); margin: 0; word-break: break-all; }
.terminal-prompt { color: #50fa7b; margin: 0; word-break: break-all; }

/* 留言表单 */
.email-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.email-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.15), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.email-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.6;
  fill: none;
}
.email-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.email-header-text { min-width: 0; }
.email-title { margin: 0 0 2px !important; }
.email-subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }
.email-form { display: flex; flex-direction: column; gap: 14px; }
.email-row { display: flex; flex-direction: column; gap: 6px; }
.email-field { display: flex; flex-direction: column; gap: 6px; }
.email-label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.3px; }
.email-input, .email-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.4)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.4)) saturate(var(--glass-saturate));
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.email-input::placeholder,
.email-textarea::placeholder {
  color: var(--text-muted);
}

.email-input:focus,
.email-textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

.email-textarea {
  resize: vertical;
  min-height: 96px;
}

.email-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.email-submit:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.email-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 图片上传区域 */
.email-image-upload {
  border: 1.5px dashed var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.3)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.3)) saturate(var(--glass-saturate));
  transition: border-color 0.25s ease;
}
.email-image-upload:hover,
.email-image-upload.dragover {
  border-color: rgba(255, 255, 255, 0.35);
}
.email-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
}
.email-image-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.3);
  fill: none;
}
.email-image-preview {
  position: relative;
  padding: 8px;
}
.email-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.email-image-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.email-image-remove:hover {
  background: rgba(220, 50, 50, 0.8);
}
.email-image-remove svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
}
.email-submit:hover { background: rgba(255,255,255,0.12); }
.email-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.email-hint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== 最近回复 ===== */
.replies-card:not(.liquid-glass-card), .replies-card:not(.liquid-glass-card):hover { padding: 22px 0 36px; background: transparent; border: none; box-shadow: none; transform: none; }
.replies-card::before, .replies-card::after { display: none; }
.replies-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* 回复项 */
.reply-item {
  background: var(--glass-bg);
  backdrop-filter: blur(calc(var(--glass-blur) * 0.5)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.5)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.reply-item:last-child {
  margin-bottom: 0;
}

/* 折叠容器 */
.reply-collapsible {
  margin-bottom: 10px;
}
.reply-collapsible .reply-card-collapsed {
  display: none;
}
.reply-collapsible .reply-toggle-hidden {
  display: none;
}

/* 折叠按钮 - 折叠卡片时显示的一行提示 */
.reply-collapsible .reply-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.reply-collapsible .reply-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

/* 回复头部 */
.reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.reply-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.reply-avatar svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}
.reply-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reply-name {
  font-size: 14px;
  font-weight: 500;
}
.reply-time {
  font-size: 12px;
  color: var(--text-muted);
}
.reply-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #7be6a2;
  background: rgba(123, 230, 162, 0.15);
  border: 1px solid rgba(123, 230, 162, 0.3);
  white-space: nowrap;
}
.reply-badge svg {
  width: 14px;
  height: 14px;
}

/* 回复内容 */
.reply-content {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.reply-user {
  color: var(--text-muted);
}
.reply-admin {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(123, 230, 162, 0.08);
  border-left: 2px solid rgba(123, 230, 162, 0.4);
  border-radius: 0 6px 6px 0;
  color: var(--text);
}

/* 回复图片 */
.reply-image {
  margin-top: 10px;
}
.reply-image img {
  display: block;
  max-width: 200px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.reply-image img:hover {
  transform: scale(1.02);
}

/* 折叠按钮 */
.reply-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(20, 22, 28, 0.82);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.reply-toggle:hover {
  background: rgba(30, 32, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

/* 加载与空状态 */
.replies-loading,
.replies-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.replies-loading {
  flex-direction: row;
}
.replies-empty {
  flex-direction: column;
}
.replies-spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}
.replies-empty svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 255, 255, 0.3);
}

/* ===== 移动端 ===== */
@media (max-width: 1024px) {
  body {
    padding: clamp(12px, 3vw, 48px) clamp(10px, 3vw, 20px);
  }
  .container {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .sidebar { display: none !important; }
  .mobile-avatar-card { display: flex; justify-content: center; margin-bottom: 4px; }
  .mobile-avatar {
    width: 150px; height: 150px; min-width: 150px; min-height: 150px; border-radius: 50%;
    background: rgba(20, 22, 28, 0.82);
    overflow: hidden; position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .mobile-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-avatar .avatar-placeholder { font-size: 11px; }
  .radio-container { flex-direction: row; flex-wrap: wrap; }
  .radio-container label { padding: 6px 12px; font-size: 12px; }
  .glider-container { display: none; }
  .comms-grid { grid-template-columns: 1fr; gap: 18px; }
  .comms-divider { display: none; }
  .title-wrap { font-size: clamp(22px, 6vw, 48px); flex-wrap: wrap; gap: 6px; }
  .subtitle-wrap { font-size: clamp(13px, 3.5vw, 32px); flex-wrap: wrap; gap: 4px; }
  .section-title { font-size: clamp(16px, 4vw, 20px); }
  .skill-tag { font-size: 12px; padding: 6px 14px; }
  .main-content { gap: clamp(10px, 2vw, 20px); max-width: 100%; overflow: hidden; }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .project-item {
    padding: 20px 14px;
  }
  .project-icon svg { width: 28px; height: 28px; }
  .project-title { font-size: 14px; }
  .project-desc { font-size: 12px; }
}
@media (min-width: 1025px) {
  .mobile-avatar-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cube-svg, .title, .subtitle-name, .ambient-orb { animation: none !important; }
  .card, .card::before, .card::after { transition: none !important; }
  .fade-in { transition: none !important; }
  .glass-glider, .glider { transition: none !important; }
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

.replies-spinner {
  width: 24px; height: 24px;
  animation: spin 1s linear infinite;
}

/* ================================================================
   液态玻璃卡片 — Premium Effect v2
   使用 CSS 变量响应后台设置
   ================================================================ */
.liquid-glass-card,
.liquid-glass-card.intro-card,
.liquid-glass-card.skills-card,
.liquid-glass-card.posts-card,
.liquid-glass-card.projects-card,
.liquid-glass-card.comms-card,
.liquid-glass-card.replies-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  padding: 24px !important;
  
  /* 使用后台设置的玻璃背景 */
  background: var(--glass-bg) !important;
  
  /* backdrop-filter applied via SVG filter inline style */
  
  /* 使用后台设置的边框 */
  border: 1px solid var(--glass-border) !important;
  
  /* 多层阴影 */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(255, 255, 255, 0.1) !important;
  
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: auto;
  transform: none !important;
  max-width: none !important;
}

/* Persistent specular edge — always visible, not just hover */
.liquid-glass-card::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%),
    linear-gradient(-35deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  mask-image: var(--card-mask-hollow);
  -webkit-mask-image: var(--card-mask-hollow);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mix-blend-mode: plus-lighter;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.liquid-glass-card:hover::after {
  opacity: 1;
}

/* 内发光层 — 跟随鼠标 */
.liquid-glass-card .glass-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    800px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 70%
  );
  mix-blend-mode: overlay;
}

/* 边缘高光层 — 双向渐变 */
.liquid-glass-card .glass-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
  mix-blend-mode: overlay;
}

/* 内阴影层 — 立体感 */
.liquid-glass-card .glass-inner-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow:
    inset 0 2px 20px rgba(255, 255, 255, 0.15),
    inset 0 -2px 20px rgba(0, 0, 0, 0.1),
    inset 2px 0 20px rgba(255, 255, 255, 0.08),
    inset -2px 0 20px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

/* Hover 状态 — 更明显 */
.liquid-glass-card:hover .glass-glow,
.liquid-glass-card.intro-card:hover .glass-glow,
.liquid-glass-card.skills-card:hover .glass-glow,
.liquid-glass-card.posts-card:hover .glass-glow,
.liquid-glass-card.projects-card:hover .glass-glow,
.liquid-glass-card.comms-card:hover .glass-glow,
.liquid-glass-card.replies-card:hover .glass-glow {
  opacity: 1;
}
.liquid-glass-card:hover .glass-edge,
.liquid-glass-card.intro-card:hover .glass-edge,
.liquid-glass-card.skills-card:hover .glass-edge,
.liquid-glass-card.posts-card:hover .glass-edge,
.liquid-glass-card.projects-card:hover .glass-edge,
.liquid-glass-card.comms-card:hover .glass-edge,
.liquid-glass-card.replies-card:hover .glass-edge {
  opacity: 1;
}
.liquid-glass-card:hover .glass-inner-shadow,
.liquid-glass-card.intro-card:hover .glass-inner-shadow,
.liquid-glass-card.skills-card:hover .glass-inner-shadow,
.liquid-glass-card.posts-card:hover .glass-inner-shadow,
.liquid-glass-card.projects-card:hover .glass-inner-shadow,
.liquid-glass-card.comms-card:hover .glass-inner-shadow,
.liquid-glass-card.replies-card:hover .glass-inner-shadow {
  opacity: 1;
}

.liquid-glass-card:hover,
.liquid-glass-card.intro-card:hover,
.liquid-glass-card.skills-card:hover,
.liquid-glass-card.posts-card:hover,
.liquid-glass-card.projects-card:hover,
.liquid-glass-card.comms-card:hover,
.liquid-glass-card.replies-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  will-change: backdrop-filter, transform;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    0 0 80px rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-4px) scale(1.01) !important;
}

/* 子内容 z-index 提升 */
.liquid-glass-card > *:not(.glass-glow):not(.glass-edge):not(.glass-inner-shadow) {
  position: relative;
  z-index: 2;
}

/* Persistent specular edge — always visible baseline */
.liquid-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(-35deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  mask-image: var(--card-mask-hollow);
  -webkit-mask-image: var(--card-mask-hollow);
  mix-blend-mode: plus-lighter;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Hover amplification */
.liquid-glass-card:hover::after {
  opacity: 1;
}

/* Remove will-change from default state, only on hover */
.liquid-glass-card,
.liquid-glass-card.intro-card,
.liquid-glass-card.skills-card,
.liquid-glass-card.posts-card,
.liquid-glass-card.projects-card,
.liquid-glass-card.comms-card,
.liquid-glass-card.replies-card {
  will-change: auto !important;
  contain: layout style paint;
}
.liquid-glass-card:hover,
.liquid-glass-card.intro-card:hover,
.liquid-glass-card.skills-card:hover,
.liquid-glass-card.posts-card:hover,
.liquid-glass-card.projects-card:hover,
.liquid-glass-card.comms-card:hover,
.liquid-glass-card.replies-card:hover {
  will-change: backdrop-filter !important;
}

/* ===== 图片灯箱（回复图） ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: -36px; right: 0;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 28px; cursor: pointer; padding: 4px 8px;
  transition: color .2s;
}
.lightbox-close:hover { color: #fff; }