/* ========== 1. 字体与全局导入 ========== */
/* 优化：采用无阻塞跨平台原生字体栈，彻底解决 Google Fonts 跨域与 CORS/PNA 报错 */

/* ========== 2. 核心主题变量定义 ========== */
:root {
  /* 品牌色 */
  --primary-pink: #FB7299;
  --primary-pink-hover: #ff8aa5;
  --primary-pink-alpha: rgba(251, 114, 153, 0.2);
  
  /* 个性化变量默认值 */
  --bg-blur: 3px;
  --glass-blur: 8px;
  --glass-saturate: 140%;

  /* 浅色模式变量 */
  --body-bg: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
             linear-gradient(145deg, #ffe9f0 0%, #ffd9e5 100%);
  --wallpaper-overlay: rgba(255, 255, 255, 0.3);
  --wallpaper-url: url('/images/wallpapers/day-desktop/default.jpg');
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-bg-hover: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-main: #1f1f1f;
  --text-secondary: #4a4a4a;
  --text-muted: #666666;
  --card-shadow: rgba(0, 0, 0, 0.03);
  --pink-shadow: rgba(251, 114, 153, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.2);
  --bubble-bg: rgba(255, 255, 255, 0.95);
}

/* ========== 全局统一极窄美化滚动条 ========== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 114, 153, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 114, 153, 0.35);
  border-radius: 10px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 114, 153, 0.65);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.dark-mode * {
  scrollbar-color: rgba(251, 114, 153, 0.4) transparent;
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(251, 114, 153, 0.4);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 114, 153, 0.75);
}

/* 深色模式变量定义 (系统自动感应) */
@media (prefers-color-scheme: dark) {
  :root {
    --body-bg: radial-gradient(rgba(251, 114, 153, 0.05) 1px, transparent 1px),
               linear-gradient(145deg, #121212 0%, #0a0a0a 100%);
    --wallpaper-overlay: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-bg-hover: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --pink-shadow: rgba(251, 114, 153, 0.05);
    --nav-bg: rgba(0, 0, 0, 0.4);
    --glow-pink: 0 0 10px rgba(251, 114, 153, 0.2);
    --bubble-bg: rgba(20, 20, 20, 0.95);
  }
}

/* 兼容手动切换逻辑 */
.dark-mode {
  --body-bg: radial-gradient(rgba(251, 114, 153, 0.05) 1px, transparent 1px),
             linear-gradient(145deg, #121212 0%, #0a0a0a 100%);
  --wallpaper-overlay: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-bg-hover: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --pink-shadow: rgba(251, 114, 153, 0.05);
  --nav-bg: rgba(0, 0, 0, 0.4);
  --glow-pink: 0 0 10px rgba(251, 114, 153, 0.2);
  --bubble-bg: rgba(20, 20, 20, 0.95);
}

html {
  scroll-padding-top: max(2.5rem, env(safe-area-inset-top));
  box-sizing: border-box;
}

/* ========== 全局重置与主色调 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo, .sidebar-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--body-bg);
  background-size: 30px 30px, auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
  overflow-x: hidden;
  /* 解决长字符/长链接溢出撑破显示方格的问题 */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--pink-shadow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--wallpaper-overlay), var(--wallpaper-overlay)),
                    var(--wallpaper-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  filter: blur(var(--bg-blur));
  -webkit-filter: blur(var(--bg-blur));
  z-index: -1;
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 移动端特殊处理，防止背景缩放过大 */
@media (max-width: 768px) {
  body::before {
    background-attachment: scroll;
  }
}

/* 主容器（限制内容宽度） */
.blog-container {
  max-width: 1300px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ========== 通用玻璃样式优化 (使用变量) ========== */
.glass, .navbar, .profile-card, .sidebar-author-card, .post-item-card, .modal-card, .author-card {
  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 12px 40px var(--card-shadow), 0 4px 15px var(--pink-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 24px;
}

.glass:hover, .article-card:hover, .post-item-card:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 20px 32px var(--pink-shadow);
  background: var(--glass-bg-hover);
}

/* ========== 导航栏 ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  margin: 0 auto 2rem auto;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(200%);
  border-radius: 60px;
  border: 1px solid var(--glass-border);
  position: sticky;
  top: 1rem;
  z-index: 1000;
  width: auto;
  max-width: 90%;
}

.navbar-left { flex-shrink: 0; }
.navbar-center { flex: 1; display: flex; justify-content: center; white-space: nowrap; }
.navbar-right { flex-shrink: 0; display: flex; align-items: center; gap: 1rem; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-pink);
  text-shadow: var(--glow-pink);
  cursor: pointer;
  letter-spacing: -0.5px;
}
.logo i {
  font-size: 2rem;
  color: var(--primary-pink);
  filter: drop-shadow(0 2px 4px rgba(251, 114, 153, 0.4));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 520;
  font-size: 1.2rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a i { color: var(--primary-pink); font-size: 1.2rem; transition: transform 0.2s; }
.nav-links a:hover {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
  transform: translateY(-2px);
}
.nav-links a:hover i { transform: scale(1.15) rotate(2deg); }

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== 页脚 ========== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  margin-top: 2rem;
  border: 1px solid var(--glass-border);
  width: 100%;
  border-radius: 24px;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.social-links {
  display: flex;
  gap: 2rem;
}
.social-links a {
  color: var(--text-secondary);
  font-size: 1.8rem;
  transition: all 0.2s;
}
.social-links a:hover {
  color: var(--primary-pink);
  transform: scale(1.2) rotate(4deg);
}
.copyright { color: var(--text-secondary); font-size: 1.1rem; }
.copyright i { color: var(--primary-pink); margin: 0 4px; }

/* ========== 旧版个人资料卡（其他页面可能使用） ========== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}
.avatar {
  background: var(--glass-bg);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary-pink);
  box-shadow: 0 10px 20px var(--pink-shadow), var(--glow-pink);
}
.avatar i { font-size: 5.5rem; color: var(--primary-pink); transition: transform 0.4s; }
.avatar:hover i { transform: rotate(8deg) scale(1.05); }
.profile-info h1 {
  font-size: 2.6rem;
  font-weight: 750;
  background: linear-gradient(130deg, var(--primary-pink), #ffaaaf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.profile-info .bio {
  font-size: 1.2rem;
  color: var(--text-secondary);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.bio span i { color: var(--primary-pink); margin-right: 6px; }

/* ========== 文章列表容器 (通用) ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}

/* 标签页专用头部样式 */
.tag-hero {
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-pink-alpha) 0%, transparent 100%);
  border-radius: 32px;
  animation: heroSlideIn 0.9s cubic-bezier(0.12, 0.71, 0.33, 1);
}

@keyframes heroSlideIn {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tag-hero-icon {
  font-size: 4rem;
  color: var(--primary-pink);
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 4px 10px var(--pink-shadow));
  animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.tag-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(130deg, var(--primary-pink), #ffaaaf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.tag-hero .tag-meta {
  font-size: 1.2rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.tag-hero .tag-meta span i {
  color: var(--primary-pink);
  margin-right: 6px;
}

.tag {
  background: var(--primary-pink-alpha);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.9rem;
  border: 1px solid var(--primary-pink);
  color: var(--primary-pink);
  transition: all 0.2s;
}
.tag:hover {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
  transform: scale(1.05) translateY(-2px);
}

/* ========== 作者列表页 ========== */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}
.author-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.author-card:hover { transform: translateY(-8px) scale(1.02); }
.author-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: var(--primary-pink-alpha);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-pink);
  overflow: hidden;
}
.author-avatar i { font-size: 4rem; color: var(--primary-pink); line-height: 1; }
.author-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: 1.3;
}
.author-stats { font-size: 1.1rem; color: var(--text-secondary); }
.author-stats i { color: var(--primary-pink); margin-right: 0.3rem; }
.author-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--primary-pink-alpha);
  border-radius: 30px;
  color: var(--primary-pink);
  text-decoration: none;
  transition: all 0.2s;
}
.author-card a:hover { background: var(--primary-pink); color: white; }

/* ========== 作者详情页 ========== */
.author-info-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}
.author-info-avatar {
  width: 100px;
  height: 100px;
  background: var(--primary-pink-alpha);
  border-radius: 50%;
  border: 3px solid var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.author-info-avatar i { font-size: 5rem; color: var(--primary-pink); line-height: 1; }
.author-info-details {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.author-profile-name {
  font-size: 2.5rem;
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.author-profile-stats { font-size: 1.2rem; color: var(--text-secondary); word-break: break-word; }

/* ========== 骨架屏占位样式 ========== */
.post-skeleton-card {
  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);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 12px 40px var(--card-shadow), 0 4px 15px var(--pink-shadow);
}
.skeleton-meta, .skeleton-title, .skeleton-text, .skeleton-tags {
  background: linear-gradient(90deg, var(--glass-border) 25%, var(--primary-pink-alpha) 37%, var(--glass-border) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
}
.skeleton-meta {
  width: 35%;
  height: 14px;
}
.skeleton-title {
  width: 70%;
  height: 22px;
  margin: 0.5rem 0;
}
.skeleton-text {
  width: 100%;
  height: 54px;
}
.skeleton-tags {
  width: 25%;
  height: 16px;
  margin-top: 0.5rem;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.show { display: flex; }
.modal-card {
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px var(--card-shadow);
}
.modal-card h2 { color: var(--primary-pink); margin-bottom: 1rem; font-size: 2rem; }
.modal-card:hover { background: var(--glass-bg-hover); }
.modal-content {
  text-align: left;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}
.modal-content ul { margin-left: 1.5rem; line-height: 1.8; }
.modal-card .btn-primary {
  background: var(--primary-pink);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}
.modal-card .btn-primary:hover { background: var(--primary-pink-hover); transform: scale(1.02); }

/* ========== 新主页样式 ========== */
.new-home {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
  justify-content: center;
}
.home-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 5rem;
}
.sidebar-author-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--glass-border);
}
.sidebar-author-card .author-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.2rem;
  background: var(--primary-pink-alpha);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-pink);
  box-shadow: 0 8px 24px var(--pink-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: avatarPulse 3s infinite ease-in-out;
}
.sidebar-author-card .author-avatar i {
  font-size: 3.5rem;
  color: var(--primary-pink);
  transition: transform 0.4s ease;
  line-height: 1;
}
.sidebar-author-card .author-avatar:hover {
  transform: scale(1.08) rotate(8deg);
  border-color: var(--primary-pink-hover);
  box-shadow: 0 12px 30px var(--pink-shadow), 0 0 0 8px var(--primary-pink-alpha);
}
.sidebar-author-card .author-avatar:hover i {
  transform: scale(1.1);
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 8px 24px var(--pink-shadow), 0 0 0 0px var(--primary-pink-alpha); }
  50% { box-shadow: 0 8px 30px var(--pink-shadow), 0 0 0 8px rgba(251, 114, 153, 0.08); }
}
.sidebar-author-card .author-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-pink);
  margin: 0.5rem 0;
}
.sidebar-author-card .author-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.author-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px dashed var(--glass-border);
  border-bottom: 1px dashed var(--glass-border);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-pink);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
/* 移动端悬浮音乐胶囊 —— 桌面端默认隐藏，移动端媒体查询中覆盖为 flex */
.mobile-floating-player {
  display: none;
}

/* ========== 赛博黑胶唱片机 / 灵感音乐台 (Cyber Vinyl Turntable Player) ========== */
.sidebar-turntable-card {
  width: 100%;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.turntable-body {
  width: 100%;
  background: var(--glass-bg, rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.4));
  border-radius: 24px;
  padding: 1.1rem 0.9rem 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(251, 114, 153, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.turntable-body:hover {
  border-color: rgba(251, 114, 153, 0.4);
  box-shadow: 0 10px 35px rgba(251, 114, 153, 0.15);
  transform: translateY(-2px);
}

.dark-mode .turntable-body {
  background: rgba(22, 22, 34, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

/* 黑胶唱片及唱臂舞台 */
.vinyl-stage {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 黑胶唱片本体 */
.vinyl-disc {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2d38 0%, #15161e 40%, #0d0e14 70%, #1a1a24 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 15px rgba(251, 114, 153, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

/* 黑胶同心细纹理 */
.vinyl-grooves {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0, transparent 2px, rgba(255, 255, 255, 0.04) 3px, rgba(0, 0, 0, 0.2) 4px);
  pointer-events: none;
}

.vinyl-disc.playing {
  animation: spinVinyl 3.6s linear infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(251, 114, 153, 0.45);
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 唱片中心标签封面 */
.vinyl-center-label {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FB7299, #ff9bb5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vinyl-center-icon {
  font-size: 1.1rem;
  color: #ffffff;
  opacity: 0.95;
  transition: transform 0.3s;
}

.vinyl-center-hole {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 唱臂 / 唱针 */
.turntable-arm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 55px;
  transform-origin: 24px 8px;
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 10;
}

.turntable-arm.active {
  transform: rotate(26deg);
}

.arm-base {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd, #999);
  border: 1.5px solid #FB7299;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.arm-lever {
  position: absolute;
  top: 8px;
  right: 7px;
  width: 3px;
  height: 42px;
  background: linear-gradient(to bottom, #ccc, #888);
  border-radius: 2px;
}

.arm-head {
  position: absolute;
  bottom: 0;
  left: 17px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: #FB7299;
  box-shadow: 0 2px 6px rgba(251, 114, 153, 0.4);
  transform: rotate(18deg);
}

/* 信息展示区 */
.turntable-info-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.track-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.2rem;
}

.track-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted, #777);
  font-weight: 500;
  background: rgba(251, 114, 153, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  transition: all 0.3s;
}

.status-live-dot.active {
  background: #52c41a;
  box-shadow: 0 0 8px #52c41a;
  animation: liveDotPulse 1.8s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* 动态跳动波形 */
.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bar {
  width: 2.5px;
  height: 3px;
  border-radius: 2px;
  background: #FB7299;
  transition: height 0.2s ease;
}

.audio-equalizer.playing .eq-bar:nth-child(1) { animation: eqBounce 0.6s ease-in-out infinite alternate; }
.audio-equalizer.playing .eq-bar:nth-child(2) { animation: eqBounce 0.8s ease-in-out infinite alternate 0.2s; }
.audio-equalizer.playing .eq-bar:nth-child(3) { animation: eqBounce 0.5s ease-in-out infinite alternate 0.1s; }
.audio-equalizer.playing .eq-bar:nth-child(4) { animation: eqBounce 0.7s ease-in-out infinite alternate 0.3s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.track-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main, #222);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.3s;
}

.dark-mode .track-title {
  color: #f0f0f5;
}

.track-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #777);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 控制按钮组 */
.turntable-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0.3rem;
}

.turntable-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(251, 114, 153, 0.3);
  background: rgba(251, 114, 153, 0.1);
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.turntable-btn:hover {
  background: var(--primary-pink);
  color: #ffffff;
  border-color: var(--primary-pink);
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.35);
}

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

.turntable-btn.play-btn {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #FB7299, #ff8aa5);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(251, 114, 153, 0.35);
}

.turntable-btn.play-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(251, 114, 153, 0.5);
}

.sidebar-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 1rem;
}

.sidebar-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.1), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(251, 114, 153, 0.28);
  color: var(--primary-pink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.08);
  white-space: nowrap;
}

.dark-mode .sidebar-action-btn {
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.16), rgba(30, 30, 45, 0.6));
  border-color: rgba(251, 114, 153, 0.35);
}

.sidebar-action-btn:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 114, 153, 0.35);
}

.sidebar-action-btn i {
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.sidebar-action-btn:hover i {
  transform: scale(1.12);
}

.about-me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.12), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(251, 114, 153, 0.3);
  color: var(--primary-pink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(251, 114, 153, 0.1);
}

.dark-mode .about-me-btn {
  background: linear-gradient(135deg, rgba(251, 114, 153, 0.2), rgba(30, 30, 45, 0.6));
  border-color: rgba(251, 114, 153, 0.4);
}

.about-me-btn .arrow-icon {
  font-size: 0.78rem;
  transition: transform 0.3s ease;
}

.about-me-btn:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(251, 114, 153, 0.35);
}

.about-me-btn:hover .arrow-icon {
  transform: translateX(4px);
}

.sidebar-announcement {
  background: var(--glass-bg);
  border-radius: 24px;
  padding: 1.2rem;
  margin-top: 1.5rem;
  text-align: left;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.sidebar-announcement::before {
  content: '"';
  position: absolute;
  right: 12px;
  bottom: -22px;
  font-size: 6rem;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-pink);
  opacity: 0.08;
  font-weight: 700;
  pointer-events: none;
}
.sidebar-announcement:hover {
  border-color: var(--primary-pink);
  background: var(--glass-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--pink-shadow);
}
.announcement-title {
  font-size: 0.9rem;
  color: var(--primary-pink);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.announcement-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.home-main { flex: 1; min-width: 0; max-width: 760px; }
.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.posts-header h2 {
  font-size: 1.8rem;
  color: var(--primary-pink);
  border-left: 4px solid var(--primary-pink);
  padding-left: 1rem;
}
.more-link {
  color: var(--primary-pink);
  text-decoration: none;
  font-size: 0.9rem;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.post-item-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.post-item-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--primary-pink);
  box-shadow: 0 12px 28px rgba(251, 114, 153, 0.15);
}
.post-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item-title {
  margin: 0.4rem 0 0.6rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item-title a {
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.2s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item-title a:hover { color: var(--primary-pink); }
.post-item-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0.4rem 0 0.8rem 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.post-item-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}
.post-item-tags .tag {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.2rem 0.75rem;
}

/* 分页控制条样式 */
.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 2.5rem 0 1rem;
}
.pagination-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.4rem;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.page-btn:hover:not(:disabled):not(.dots) {
  background: rgba(251, 114, 153, 0.15);
  color: var(--primary-pink);
  transform: translateY(-2px);
}
.page-btn.active {
  background: var(--primary-pink);
  color: #ffffff;
  border-color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(251, 114, 153, 0.35);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-btn.dots {
  cursor: default;
  min-width: 28px;
  color: var(--text-muted);
}
.pagination-info {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== 移动端布局重设计（≤768px） ========== */
@media (max-width: 768px) {
  /* 1. 整体布局间距调整 */
  body {
    padding: 0.8rem 0.6rem;
  }
  
  .new-home {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
  }

  /* 2. 侧边栏改为“紧凑型个人信息条” */
  .home-sidebar {
    position: static;
    width: 100%;
  }
  
  .sidebar-author-card {
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 24px;
  }

  .sidebar-author-card .author-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
  }
  
  .sidebar-author-card .author-avatar i {
    font-size: 3.8rem;
  }

  .sidebar-author-card .author-name {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
  }

  .sidebar-author-card .author-bio {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
  }

  .author-stats {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem 0;
    border-top: 1px dashed var(--glass-border);
    border-bottom: 1px dashed var(--glass-border);
  }
  
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: 0.7rem; }

  .sidebar-social-links {
    margin: 1rem 0 0.5rem;
    gap: 1.5rem;
  }

  .sidebar-announcement {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
  }

  /* 移动端彻底隐藏侧边栏内的巨大黑胶卡片 */
  .sidebar-turntable-card {
    display: none !important;
  }

  /* 移动端展示专属悬浮音乐胶囊（桌面端 display:none 见全局默认） */
  .mobile-floating-player {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 1200;
    padding: 5px 10px 5px 6px;
    border-radius: 40px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.3));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(251, 114, 153, 0.2);
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  }

  .dark-mode .mobile-floating-player {
    background: rgba(20, 20, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 114, 153, 0.25);
  }

  .mobile-floating-player:active {
    transform: scale(0.97);
  }

  .mfp-disc-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mfp-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 0%, #151515 50%, #0d0d0d 100%);
    border: 1.5px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }

  .mfp-disc.playing {
    animation: spinVinyl 3.6s linear infinite;
  }

  .mfp-disc-center {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.55rem;
  }

  .mfp-live-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4cd137;
    border: 1.5px solid #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mfp-live-dot.active {
    opacity: 1;
    animation: liveDotPulse 1.8s infinite ease-in-out;
  }

  .mfp-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 96px;
    cursor: pointer;
  }

  .mfp-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .mfp-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 8px;
  }

  .mfp-eq-bar {
    width: 2px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 1px;
    transition: height 0.2s;
  }

  .mfp-equalizer.playing .mfp-eq-bar:nth-child(1) {
    animation: eqBounce 0.6s ease-in-out infinite alternate;
  }
  .mfp-equalizer.playing .mfp-eq-bar:nth-child(2) {
    animation: eqBounce 0.8s ease-in-out infinite alternate 0.2s;
  }
  .mfp-equalizer.playing .mfp-eq-bar:nth-child(3) {
    animation: eqBounce 0.5s ease-in-out infinite alternate 0.1s;
  }

  .mfp-controls {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mfp-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .mfp-btn.play-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FB7299, #ff8aa5);
    color: #fff;
    font-size: 0.72rem;
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.35);
  }

  .mfp-btn.next-btn {
    width: 26px;
    height: 26px;
    background: rgba(251, 114, 153, 0.1);
    color: var(--primary-pink);
    font-size: 0.7rem;
  }

  .mfp-btn:active {
    transform: scale(0.9);
  }

  /* 3. 文章列表优化：不要完全去掉玻璃感 */
  .home-main {
    width: 100%;
    max-width: 100%;
  }

  .posts-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .posts-header h2 {
    font-size: 1.4rem;
    padding-left: 0.8rem;
  }

  .article-list {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    box-sizing: border-box;
  }

  .post-item-card,
  .post-skeleton-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 20px;
    margin-bottom: 0;
    overflow: hidden;
  }

  .post-item-card:hover {
    transform: none;
  }

  .post-item-title {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .post-item-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    margin: 0.6rem 0;
    color: var(--text-secondary);
  }

  /* 4. 移动端分页条适配 */
  .pagination-bar {
    gap: 0.2rem;
    padding: 0.3rem 0.4rem;
    max-width: 100%;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* 背景图在移动端稍微减弱模糊，增加亮度 */
  body::before {
    filter: blur(4px) brightness(0.9);
  }

  /* 保留原有的作者页、卡片等移动端适配（与上面不冲突） */
  .author-info-avatar { width: 80px; height: 80px; }
  .author-info-avatar i { font-size: 4rem; }
  .author-profile-name { font-size: 1.8rem; }
  .author-card { padding: 1.5rem; }
  .author-profile-stats { font-size: 1rem; }
  .author-info-details { min-width: 0; }
  .author-info-container { gap: 1rem; }

  /* 标签页 Hero 适配 */
  .tag-hero {
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 24px;
  }
  .tag-hero-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
  }
  .tag-hero h1 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }
  .tag-hero .tag-meta {
    flex-direction: column;
    gap: 0.6rem;
    font-size: 1rem;
    margin-top: 0.8rem;
  }
  .tag-hero .tag-meta span {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
  }
}

/* ========== 欢迎弹窗 Toast ========== */
.welcome-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 20px var(--pink-shadow);
  z-index: 3000;
  overflow: hidden;
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}
.welcome-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.welcome-toast.hide {
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

/* 顶部渐变条 */
.welcome-toast-bar {
  height: 4px;
  background: linear-gradient(90deg, #FB7299, #ffb3c8, #FB7299);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.welcome-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem 0.5rem;
}
.welcome-toast-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-pink);
  font-family: 'Outfit', sans-serif;
}
.welcome-toast-greeting .greeting-emoji {
  font-size: 1.4rem;
  animation: waveHand 1.2s ease-in-out 0.5s 2;
  display: inline-block;
  transform-origin: 70% 90%;
}
@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}
.welcome-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.welcome-toast-close:hover {
  background: var(--primary-pink-alpha);
  color: var(--primary-pink);
  transform: rotate(90deg);
}

.welcome-toast-user {
  padding: 0 1.2rem 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.welcome-toast-user strong {
  color: var(--text-main);
  font-weight: 600;
}

.welcome-toast-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0 1.2rem;
}

/* 数据统计行 */
.welcome-toast-stats {
  display: flex;
  gap: 0;
  padding: 0.8rem 0;
}
.welcome-toast-stat {
  flex: 1;
  text-align: center;
  padding: 0.3rem 0.5rem;
  position: relative;
}
.welcome-toast-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--glass-border);
}
.welcome-toast-stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  font-family: 'Outfit', sans-serif;
}
.welcome-toast-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 天气/时间条 */
.welcome-toast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 0.5rem;
}
.welcome-toast-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.welcome-toast-meta-item i {
  color: var(--primary-pink);
  font-size: 0.75rem;
}

/* 进度条（自动关闭倒计时） */
.welcome-toast-progress {
  height: 3px;
  background: var(--glass-border);
  margin: 0 1.2rem 1rem;
  border-radius: 4px;
  overflow: hidden;
}
.welcome-toast-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FB7299, #ffb3c8);
  border-radius: 4px;
  width: 100%;
  transition: width linear;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .welcome-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    border-radius: 20px;
    transform: translateY(120%) scale(0.95);
    padding-bottom: 0.5rem;
  }
  .welcome-toast.show {
    transform: translateY(0) scale(1);
  }
  .welcome-toast.hide {
    transform: translateY(120%) scale(0.95);
  }

  /* 移动端精简版：隐藏多余信息，只保留问候语 */
  .welcome-toast-stats,
  .welcome-toast-meta,
  .welcome-toast-divider {
    display: none;
  }
  
  .welcome-toast-header {
    padding: 0.8rem 1rem 0.4rem;
  }
  
  .welcome-toast-user {
    padding: 0 1rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .welcome-toast-progress {
    margin: 0 1rem 0.5rem;
  }
}

/* ========== 小电视动画 ========== */
.bilibili-tv {
  animation: tvBounce 4s infinite ease-in-out;
  display: inline-block;
}
@keyframes tvBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   文章详情页与 Markdown / HTML 内容排版统一系统 (.post-content)
   ========================================================================== */

.post-content {
  padding: 3rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-main);
  border-radius: 0 0 32px 32px;
  word-wrap: break-word;
}

/* 1. 段落与排版间距 */
.post-content p {
  margin-top: 0;
  margin-bottom: 1.4rem;
  word-break: break-word;
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* 2. 超链接（Hyperlinks & URLs） - MD与HTML统一 */
.post-content a {
  color: #FB7299;
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(251, 114, 153, 0.45);
  padding: 0 2px 1px 2px;
  border-radius: 4px;
  transition: all 0.25s ease;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.post-content a:hover {
  color: var(--primary-pink-hover, #ff8aa5);
  background: var(--primary-pink-alpha, rgba(251, 114, 153, 0.15));
  border-bottom-style: solid;
  border-bottom-color: #FB7299;
  text-shadow: 0 0 8px rgba(251, 114, 153, 0.3);
}

.dark-mode .post-content a {
  color: #ff8aa5;
  border-bottom-color: rgba(255, 138, 165, 0.45);
}

.dark-mode .post-content a:hover {
  color: #ffb3c6;
  background: rgba(255, 138, 165, 0.18);
  border-bottom-color: #ff8aa5;
}

/* 3. 代码（行内代码、域名、指令与代码块） - MD与HTML统一 */

/* 行内代码（inline code：例如域名、代码片段、指令等） */
.post-content code:not(pre code):not(.ql-syntax code) {
  font-family: 'Fira Code', 'Consolas', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--primary-pink-alpha, rgba(251, 114, 153, 0.12));
  color: #FB7299;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 114, 153, 0.2);
  word-break: break-word;
  vertical-align: baseline;
}

.dark-mode .post-content code:not(pre code):not(.ql-syntax code) {
  background: rgba(251, 114, 153, 0.18);
  color: #ff8aa5;
  border-color: rgba(251, 114, 153, 0.3);
}

/* 代码块容器（pre / .ql-syntax） - 极客玄青暗色面板 */
.post-content pre,
.post-content .ql-syntax {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Fira Code', 'Consolas', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.dark-mode .post-content pre,
.dark-mode .post-content .ql-syntax {
  background: #11111b;
  border-color: rgba(251, 114, 153, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 关键纠偏：重置 pre/ql-syntax 内部 code 的行内代码样式 */
.post-content pre code,
.post-content .ql-syntax code {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

/* 4. 标题系统 (h1-h6) */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  scroll-margin-top: 80px;
}

.post-content h1 {
  font-size: 2.2rem;
  margin: 2.8rem 0 1.4rem;
  color: var(--text-main);
  border-bottom: 2px dashed var(--primary-pink-alpha, rgba(251, 114, 153, 0.25));
  padding-bottom: 10px;
}

.post-content h2 {
  font-size: 1.85rem;
  margin: 2.4rem 0 1.2rem;
  color: #FB7299;
  border-bottom: 2.5px solid var(--primary-pink-alpha, rgba(251, 114, 153, 0.25));
  padding-bottom: 6px;
  display: inline-block;
}

.post-content h3 {
  font-size: 1.45rem;
  margin: 2rem 0 1rem;
  padding-left: 12px;
  border-left: 4px solid #FB7299;
  color: var(--text-main);
}

.post-content h4 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--text-main);
}

.post-content h5,
.post-content h6 {
  font-size: 1.08rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--text-secondary);
}

/* 5. 引用块 (blockquote) */
.post-content blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.4rem;
  background: var(--primary-pink-alpha, rgba(251, 114, 153, 0.12));
  border-left: 5px solid #FB7299;
  border-radius: 0 14px 14px 0;
  color: var(--text-secondary);
  font-style: normal;
}

.post-content blockquote p {
  margin-bottom: 0.6rem;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 6. 列表系统 (ul, ol, li) */
.post-content ul,
.post-content ol {
  margin: 1.4rem 0;
  padding-left: 1.8rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.post-content ul li::marker {
  color: #FB7299;
}

.post-content ol li::marker {
  color: #FB7299;
  font-weight: 600;
}

.post-content li > ul,
.post-content li > ol {
  margin: 0.4rem 0 0.4rem;
}

/* 7. 表格系统 (table, th, td) - MD与HTML统一 */
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 18px var(--card-shadow);
}

.post-content th {
  background: var(--primary-pink-alpha, rgba(251, 114, 153, 0.15));
  color: var(--text-main);
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.post-content td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-main);
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content tr:nth-child(even) {
  background: rgba(251, 114, 153, 0.03);
}

/* 8. 文本强调与特殊元素 */
.post-content strong,
.post-content b {
  color: var(--text-main);
  font-weight: 700;
}

.post-content em,
.post-content i {
  font-style: italic;
}

.post-content del,
.post-content s {
  text-decoration: line-through;
  color: var(--text-muted);
}

.post-content mark {
  background: rgba(251, 114, 153, 0.25);
  color: inherit;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.post-content kbd {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-family: monospace;
  font-size: 0.85em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #FB7299, transparent);
  margin: 2.5rem 0;
  opacity: 0.6;
}

/* 9. 媒体元素 (img, video, audio, iframe) */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.8rem auto;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.post-content img:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 30px rgba(251, 114, 153, 0.2);
}

.post-content audio {
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  display: block;
  border-radius: 30px;
  filter: drop-shadow(0 4px 10px var(--pink-shadow));
}

.post-content iframe,
.post-content video {
  max-width: 100%;
  border-radius: 16px;
  margin: 1.8rem auto;
  display: block;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 10. 移动端响应式适配 */
@media (max-width: 768px) {
  .post-content {
    padding: 1.5rem;
    font-size: 1.05rem;
    border-radius: 0 0 24px 24px;
  }

  .post-content h1 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
    margin: 1.8rem 0 0.9rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.8rem;
  }

  .post-content pre,
  .post-content .ql-syntax {
    padding: 1rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }
}

/* ========== 全站响应式图片与媒体防溢出保护 ========== */
.post-card-body img,
.post-wrapper img,
#post-content img,
.article-content img,
.markdown-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

