/* ===== CSS 变量 ===== */
:root {
  --bg: #0f1117;
  --bg2: #161b27;
  --bg3: #1e2535;
  --border: #2a3347;
  --accent: #5b7cf6;
  --accent2: #8b5cf6;
  --accent-glow: rgba(91, 124, 246, 0.15);
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --text-dim: #4a5568;
  --green: #48bb78;
  --red: #fc8181;
  --yellow: #f6c90e;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ===== 亮色模式变量 ===== */
[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --bg3: #f1f3f4;
  --border: #e1e4e8;
  --accent: #5b7cf6;
  --accent2: #8b5cf6;
  --accent-glow: rgba(91, 124, 246, 0.1);
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --text-dim: #8a8a9a;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* 亮色模式下的毛玻璃效果适配 */
[data-theme="light"] #navbar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #navbar:hover {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .about-profile,
[data-theme="light"] .post-card,
[data-theme="light"] .tags-cloud,
[data-theme="light"] .about-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-profile:hover,
[data-theme="light"] .post-card:hover,
[data-theme="light"] .tags-cloud:hover,
[data-theme="light"] .about-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(91, 124, 246, 0.3);
}

[data-theme="light"] .tag-cloud-item {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .tag-cloud-item:hover,
[data-theme="light"] .tag-cloud-item.active {
  background: rgba(91, 124, 246, 0.1);
}

/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7c9cf8; }

img { max-width: 100%; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== 顶部导航 ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.03),
              0 8px 32px rgba(0, 0, 0, 0.2),
              0 2px 16px rgba(91, 124, 246, 0.1);
}

#navbar:hover {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(40px) saturate(250%);
  -webkit-backdrop-filter: blur(40px) saturate(250%);
  border-bottom-color: rgba(91, 124, 246, 0.3);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05),
              0 12px 48px rgba(0, 0, 0, 0.3),
              0 4px 24px rgba(91, 124, 246, 0.15),
              0 0 0 1px rgba(91, 124, 246, 0.1) inset;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: auto;
  letter-spacing: -0.3px;
}

.nav-links { display: flex; gap: 6px; margin-right: 12px; }

.theme-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  transition: border-color var(--transition);
}

.nav-search:focus-within { border-color: var(--accent); }

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  width: 160px;
  font-family: var(--font);
}

.nav-search input::placeholder { color: var(--text-dim); }

.search-icon { color: var(--text-dim); font-size: 0.85rem; }

/* ===== 主布局 ===== */
#app {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 页面头部横幅 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(91,124,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 900px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(91,124,246,0.3);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
}

/* ===== 文章列表 ===== */
.posts-section { padding: 40px 24px; max-width: 900px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.post-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}

.posts-grid { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: rgba(30, 37, 53, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
              0 1px 8px rgba(91, 124, 246, 0.05);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 0 0 3px;
  z-index: 1;
}

.post-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(91, 124, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.05) 50%,
    rgba(91, 124, 246, 0) 100%);
  border-radius: calc(var(--radius) + 2px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.post-card:hover {
  border-color: rgba(91, 124, 246, 0.4);
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transform: translateX(6px) scale(1.02) rotateY(5deg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              0 4px 24px rgba(91, 124, 246, 0.15),
              0 0 0 1px rgba(91, 124, 246, 0.2) inset,
              0 -4px 16px rgba(0, 0, 0, 0.1) inset,
              0 2px 8px rgba(255, 255, 255, 0.05) inset;
  filter: drop-shadow(0 8px 16px rgba(91, 124, 246, 0.1));
}

.post-card:hover::before { transform: scaleY(1); }
.post-card:hover::after { opacity: 1; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--transition);
}

.post-card:hover .post-title { color: var(--accent); }

.post-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.tag:hover,
.tag.active {
  background: var(--accent-glow);
  border-color: rgba(91,124,246,0.4);
  color: var(--accent);
}

/* ===== 文章详情 ===== */
.article-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  cursor: pointer;
  transition: color var(--transition);
  border: none;
  background: transparent;
  padding: 0;
}

.article-back:hover { color: var(--accent); }

.article-header { margin-bottom: 40px; }

.article-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Markdown 内容样式 ===== */
.md-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-top: 2.2em;
  margin-bottom: 0.75em;
}

.md-content h1 { font-size: 1.65rem; }
.md-content h2 {
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.md-content h3 { font-size: 1.05rem; color: var(--text-muted); }

.md-content p { margin-bottom: 1.2em; }

.md-content ul,
.md-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}

.md-content li { margin-bottom: 0.4em; }

.md-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

.md-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: #e879f9;
}

.md-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
  position: relative;
}

.md-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #a8d8a8;
  font-size: 0.875rem;
  line-height: 1.7;
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.md-content th {
  background: var(--bg3);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  color: var(--accent);
}

.md-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.md-content tr:hover td { background: var(--bg3); }

.md-content strong { font-weight: 700; color: #f8f8f8; }
.md-content em { color: var(--text-muted); font-style: italic; }

.md-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ===== 标签分类页 ===== */
.tags-page { padding: 40px 24px 80px; max-width: 900px; margin: 0 auto; }

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  padding: 28px;
  background: rgba(30, 37, 53, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
              0 1px 8px rgba(91, 124, 246, 0.05);
}

.tags-cloud:hover {
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(91, 124, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
              0 2px 16px rgba(91, 124, 246, 0.1),
              0 0 0 1px rgba(91, 124, 246, 0.1) inset;
}

.tag-cloud-item {
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 24px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-cloud-item:hover,
.tag-cloud-item.active {
  background: rgba(91, 124, 246, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(91,124,246,0.25),
              0 2px 8px rgba(91,124,246,0.1),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  filter: drop-shadow(0 4px 8px rgba(91, 124, 246, 0.15));
}

.tag-count {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0 7px;
  font-size: 0.75rem;
}

.tag-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ===== 关于页面 ===== */
.about-page { max-width: 700px; margin: 0 auto; padding: 40px 24px 80px; }

.about-profile {
  display: flex;
  gap: 28px;
  align-items: center;
  background: rgba(30, 37, 53, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
              0 2px 12px rgba(91, 124, 246, 0.05);
}

.about-profile:hover {
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
  border-color: rgba(91, 124, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25),
              0 4px 24px rgba(91, 124, 246, 0.15),
              0 0 0 1px rgba(91, 124, 246, 0.1) inset;
}

.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(91,124,246,0.25),
              0 4px 16px rgba(0, 0, 0, 0.2),
              0 0 32px rgba(91, 124, 246, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about-avatar:hover {
  transform: scale(1.08) rotateY(10deg) rotateX(3deg);
  box-shadow: 0 0 0 3px rgba(91,124,246,0.5),
              0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 48px rgba(91, 124, 246, 0.2),
              0 2px 8px rgba(255, 255, 255, 0.05) inset,
              0 -2px 8px rgba(0, 0, 0, 0.1) inset;
  filter: drop-shadow(0 8px 16px rgba(91, 124, 246, 0.2));
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-avatar:hover img {
  opacity: 0.15;
  filter: blur(16px) saturate(0.2);
  transform: scale(1.15);
}

.about-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset,
              0 4px 24px rgba(255, 255, 255, 0.1) inset;
}

.about-avatar:hover::before {
  opacity: 1;
}

.about-avatar::after {
  content: '查看';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8),
               0 0 8px rgba(91, 124, 246, 0.5);
  letter-spacing: 4px;
  z-index: 2;
}

.about-avatar:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== VRChat房间展示 ===== */
.room-showcase {
  overflow: hidden;
}

.room-image-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  max-width: 280px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              0 1px 8px rgba(91, 124, 246, 0.1);
}

.room-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-overlay span {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5),
               0 0 12px rgba(91, 124, 246, 0.5);
}

.room-image-container:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3),
              0 4px 24px rgba(91, 124, 246, 0.2),
              0 0 0 2px rgba(91, 124, 246, 0.3) inset;
  filter: drop-shadow(0 8px 16px rgba(91, 124, 246, 0.15));
}

.room-image-container:hover .room-image {
  transform: scale(1.08);
  filter: brightness(0.6) contrast(1.1);
}

.room-image-container:hover .room-overlay {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1) inset;
}

.room-image-container:hover .room-overlay span {
  opacity: 1;
  transform: translateY(0) scale(1.1);
}

.about-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.name-xiao {
  background: linear-gradient(135deg, #5b7cf6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.name-he {
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(91, 124, 246, 0.4);
}

.about-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.about-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card {
  background: rgba(30, 37, 53, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
              0 1px 8px rgba(91, 124, 246, 0.05);
}

.about-card:hover {
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(91, 124, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              0 4px 24px rgba(91, 124, 246, 0.1),
              0 0 0 1px rgba(91, 124, 246, 0.1) inset;
}

.about-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.about-card-title span { font-size: 1.1rem; }

.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(30, 37, 53, 0.8);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag:hover {
  background: rgba(91, 124, 246, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91,124,246,0.2),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.about-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  width: 60px;
  flex-shrink: 0;
}

.timeline-text { color: var(--text-muted); }

/* ===== 推荐应用列表 ===== */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(30, 37, 53, 0.6);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-item:hover {
  background: rgba(30, 37, 53, 0.9);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-color: var(--accent);
  transform: translateX(6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15),
              0 2px 12px rgba(91, 124, 246, 0.1),
              0 0 0 1px rgba(91, 124, 246, 0.15) inset;
  filter: drop-shadow(0 4px 8px rgba(91, 124, 246, 0.08));
}

.app-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
}

.app-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.app-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.app-item:hover .app-arrow {
  color: var(--accent);
}

/* ===== 社交链接 ===== */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition);
  cursor: pointer;
}

.social-item:hover {
  border-color: var(--accent);
  background: var(--bg2);
  transform: translateX(4px);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.steam-icon {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  color: white;
}

.discord-icon {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
}

.social-info {
  flex: 1;
}

.social-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.social-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-item:hover .app-arrow {
  color: var(--accent);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: 0.95rem; }

/* ===== 搜索高亮 ===== */
.highlight { background: rgba(246,201,14,0.2); color: var(--yellow); border-radius: 2px; }

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 40px;
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ===== 过渡动画 ===== */
.page-enter {
  animation: pageIn 0.25s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 进度条 ===== */
#read-progress {
  position: fixed;
  top: 60px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 99;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  #navbar { padding: 0 16px; gap: 12px; }
  .nav-search { display: none; }
  .about-profile { flex-direction: column; text-align: center; }
  .post-card { padding: 18px; }
  .article-page, .tags-page, .about-page, .posts-section { padding-left: 16px; padding-right: 16px; }
}

/* ===== 私密页面样式 ===== */
.private-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.private-header {
  margin-bottom: 40px;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.password-input {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.password-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--bg3);
}

.password-submit {
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 16px rgba(91, 124, 246, 0.3);
}

.password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 124, 246, 0.4);
}

.password-submit:active {
  transform: translateY(0);
}

.password-error {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(252, 129, 129, 0.1);
  border: 1px solid rgba(252, 129, 129, 0.3);
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.private-content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.private-content-header {
  text-align: center;
  margin-bottom: 48px;
}

.logout-button {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.logout-button:hover {
  background: rgba(252, 129, 129, 0.1);
  color: var(--red);
  border-color: var(--red);
}

.private-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.private-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.private-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(91, 124, 246, 0.15),
              0 4px 24px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(91, 124, 246, 0.1) inset;
}

.private-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: white;
}

.private-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.private-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.private-card-tags .tag {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.private-note {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* 亮色模式适配 */
[data-theme="light"] .private-card {
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .password-input {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .private-note {
  background: rgba(248, 249, 250, 0.8);
}
