/* === /css/custom.css === */
/* ========================================
   Arata66 の Blog — 二次元角色主题
   粉紫色调 · 毛玻璃 · 角色核心
   ======================================== */

/* 字体 — 使用 loli.net 镜像，国内可访问 */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+JP:wght@400;700&family=JetBrains+Mono&family=Fira+Code&display=swap');

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #b48ead;
  --primary-light: #d4b5e0;
  --accent: #f4a9c0;
  --accent-glow: rgba(244, 169, 192, 0.4);
  --bg-deep: #1a1025;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(180, 142, 173, 0.12);
  --text-bright: #f0e6f6;
  --text-muted: #c8b8d4;
  --border-soft: rgba(180, 142, 173, 0.2);
}

[data-theme="dark"] {
  --bg-deep: #0d0814;
  --bg-card: rgba(30, 20, 45, 0.75);
  --bg-glass: rgba(30, 20, 45, 0.6);
  --border-soft: rgba(180, 142, 173, 0.15);
}

/* ---------- 全局背景 ---------- */
body {
  background: linear-gradient(160deg, #1a1025 0%, #2d1b40 40%, #1a1025 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center bottom !important;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180, 142, 173, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 169, 192, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

/* 持久背景图层 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/img/theme/azusa-hero.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.25;
  pointer-events: none;
  z-index: -3;
}

#web_bg,
canvas#ribbon-canvas,
#ribbon-canvas {
  display: none !important;
}

/* ---------- 页面 Header ---------- */
#page-header {
  background: none !important;
  position: relative;
}

#page-header.full_page {
  background-image: none !important;
  background-color: transparent !important;
}

#page-header.full_page::after {
  display: none;
}

/* ---------- 导航栏 ---------- */
#nav {
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(26, 16, 37, 0.65) !important;
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}

#nav:hover,
#nav.nav-fixed {
  background: rgba(26, 16, 37, 0.85) !important;
  box-shadow: 0 4px 30px rgba(180, 142, 173, 0.1);
}

[data-theme="dark"] #nav {
  background: rgba(13, 8, 20, 0.8) !important;
}

.nav-site-title {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-site-title:hover {
  filter: brightness(1.3);
  transform: scale(1.03);
}

/* 导航栏 hover 光条 */
#nav .nav-menu a {
  position: relative;
  transition: color 0.3s ease;
}

#nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#nav .nav-menu a:hover::after {
  width: 80%;
}

#nav .nav-menu a:hover {
  color: var(--accent) !important;
}

/* ---------- 卡片系统 ---------- */
.card-widget {
  background: rgba(26, 16, 37, 0.6) !important;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
}

.card-widget::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(244, 169, 192, 0.05), transparent 60%);
  pointer-events: none;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-widget:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(180, 142, 173, 0.2), 0 0 0 1px rgba(244, 169, 192, 0.15);
}

.card-widget:hover::after {
  opacity: 1;
}

[data-theme="dark"] .card-widget {
  background: rgba(13, 8, 20, 0.7) !important;
  border-color: rgba(180, 142, 173, 0.12);
}

/* ---------- 文章卡片 ---------- */
.recent-post-item {
  background: rgba(26, 16, 37, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.recent-post-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(180, 142, 173, 0.15), 0 0 0 1px rgba(244, 169, 192, 0.12);
}

[data-theme="dark"] .recent-post-item {
  background: rgba(13, 8, 20, 0.6) !important;
}

/* ---------- 头像 ---------- */
.avatar-img {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

.avatar-img img {
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(244, 169, 192, 0.3);
  transition: all 0.4s ease;
}

.avatar-img img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(244, 169, 192, 0.5), 0 0 60px rgba(180, 142, 173, 0.3);
  border-color: var(--primary-light);
}

/* 头像呼吸灯 */
@keyframes avatarBreathe {
  0%, 100% { box-shadow: 0 0 20px rgba(244, 169, 192, 0.3); }
  50% { box-shadow: 0 0 35px rgba(244, 169, 192, 0.5), 0 0 60px rgba(180, 142, 173, 0.2); }
}

@keyframes avatarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img img {
  animation: avatarBreathe 4s ease-in-out infinite, avatarSpin 8s linear infinite;
}

.avatar-img img:hover {
  animation-play-state: paused;
}

/* ---------- 作者名 ---------- */
.author-info-name {
  font-size: 1.3em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}

/* ---------- 文章标题 ---------- */
.article-title {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.article-title:hover {
  filter: brightness(1.2);
  transform: translateX(4px);
}

/* ---------- 按钮 ---------- */
#card-info-btn,
.button,
button {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border: none;
  border-radius: 25px;
  padding: 10px 24px;
  color: white !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(180, 142, 173, 0.3);
}

#card-info-btn:hover,
.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
  filter: brightness(1.1);
}

/* Follow 按钮脉冲 */
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(244, 169, 192, 0.3); }
  50% { box-shadow: 0 6px 30px rgba(244, 169, 192, 0.5); }
}

#card-info-btn {
  animation: pulse 3s ease-in-out infinite;
}

/* ---------- 右侧按钮 ---------- */
#rightside-config-show button,
#rightside-config-hide button {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(180, 142, 173, 0.3);
  transition: all 0.3s ease;
}

#rightside-config-show button:hover,
#rightside-config-hide button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ---------- 页脚 ---------- */
#footer {
  background: rgba(26, 16, 37, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
}

[data-theme="dark"] #footer {
  background: rgba(13, 8, 20, 0.8) !important;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
}

.framework-info a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.framework-info a:hover {
  color: var(--primary-light);
}

/* ---------- 公告卡片 ---------- */
.card-info {
  padding-bottom: 80px !important;
}

.announcement_content {
  background: linear-gradient(135deg, rgba(180, 142, 173, 0.08), rgba(244, 169, 192, 0.05));
  padding: 15px;
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- 网站数据 ---------- */
.site-data {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.site-data .length-num {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-data .headline {
  color: var(--text-muted);
  font-size: 0.9em;
}

.site-data a {
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 12px;
}

.site-data a:hover {
  background: rgba(180, 142, 173, 0.1);
  transform: translateY(-2px);
}

/* ---------- 归档列表 ---------- */
.card-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-archive-list-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.card-archive-list-link:hover {
  background: rgba(180, 142, 173, 0.1);
  color: var(--accent);
  transform: translateX(4px);
}

.card-archive-list-count {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

/* ---------- 最近文章侧栏 ---------- */
.aside-list-item {
  transition: all 0.3s ease;
  padding: 12px;
  border-radius: 10px;
}

.aside-list-item:hover {
  background: rgba(180, 142, 173, 0.08);
  transform: translateX(4px);
}

.aside-list-item .title {
  color: var(--text-bright);
  font-weight: 600;
  transition: color 0.3s ease;
}

.aside-list-item .title:hover {
  color: var(--accent);
}

/* ---------- 网站信息 ---------- */
.webinfo {
  display: grid;
  gap: 12px;
}

.item-name {
  color: var(--text-muted);
  font-size: 0.9em;
}

.item-count {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 图标颜色 ---------- */
.fas, .fab, .far {
  color: var(--primary);
}

[data-theme="dark"] .fas,
[data-theme="dark"] .fab,
[data-theme="dark"] .far {
  color: var(--primary-light);
}

/* ---------- 日期徽章 ---------- */
.post-meta-date {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(180, 142, 173, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.post-meta-date:hover {
  background: rgba(244, 169, 192, 0.15);
  transform: translateY(-1px);
}

/* ---------- 文章元信息 ---------- */
.article-meta-wrap {
  color: var(--text-muted);
  font-size: 0.9em;
}

.article-meta-wrap i {
  color: var(--primary);
  margin-right: 5px;
}

/* ---------- 内容区域 ---------- */
.content {
  line-height: 1.8;
  color: var(--text-bright);
}

[data-theme="dark"] .content {
  color: #e0d6ec;
}

/* ---------- 链接 ---------- */
a {
  transition: color 0.3s ease;
  color: var(--accent);
}

a:hover {
  color: var(--primary-light);
}

/* ---------- 代码块 ---------- */
code {
  background: rgba(180, 142, 173, 0.1);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--accent);
  font-size: 0.9em;
}

figure.highlight {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- 标题排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-bright);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 16, 37, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--primary-light));
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: rgba(13, 8, 20, 0.5);
}

/* ---------- 文本选择 ---------- */
::selection {
  background: rgba(244, 169, 192, 0.4);
  color: white;
}

::-moz-selection {
  background: rgba(244, 169, 192, 0.4);
  color: white;
}

/* ---------- 滚动指示器 ---------- */
#scroll-down i {
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(244, 169, 192, 0.5);
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(12px); }
  60% { transform: translateY(6px); }
}

/* ---------- 焦点状态 ---------- */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 入场动画 ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.recent-post-item,
.card-widget {
  animation: fadeInUp 0.6s ease-out both;
}

.recent-post-item:nth-child(1) { animation-delay: 0.1s; }
.recent-post-item:nth-child(2) { animation-delay: 0.2s; }
.recent-post-item:nth-child(3) { animation-delay: 0.3s; }

/* ---------- 滚动百分比 ---------- */
.scroll-percent {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 项目标题 ---------- */
.item-headline {
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ---------- 平滑滚动 ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- 侧边菜单默认隐藏 ---------- */
#sidebar-menus {
  display: none !important;
}

body.sidebar-open #sidebar-menus {
  display: block !important;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 768px) {
  .card-widget:hover,
  .recent-post-item:hover {
    transform: none;
  }

  #page-header.full_page {
    background-size: cover !important;
    background-position: center center !important;
  }

  /* 移动端隐藏悬浮角色和樱花粒子 */
  #float-decor {
    display: none !important;
  }

  /* 卡片减小内边距 */
  .card-widget {
    border-radius: 12px;
  }

  /* 标签云移动端紧凑排列 */
  .tag-cloud-list {
    gap: 8px;
    padding: 12px 6px;
  }

  .tag-cloud-list a {
    padding: 6px 16px;
    font-size: 0.85em !important;
  }

  /* 关于页时间线移动端 */
  .timeline-item {
    padding-left: 20px !important;
  }

  .timeline-item::before {
    left: 4px !important;
  }

  /* 导航栏汉堡菜单增大点击区域 */
  #nav .nav-menu-icon {
    padding: 8px;
  }
}

@media screen and (max-width: 480px) {
  /* 小屏手机进一步优化 */
  .recent-post-item {
    border-radius: 10px;
    margin: 0 4px 12px;
  }

  .card-widget {
    border-radius: 10px;
    margin: 0 4px 10px;
  }

  /* 移动端隐藏音乐悬浮球面板（保留球体） */
  #music-panel.show {
    width: calc(100vw - 32px) !important;
    right: 16px !important;
    left: auto !important;
    bottom: 70px !important;
  }
}

/* ---------- Preloader 淡出过渡 ---------- */
#loading-box.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ========================================
   Relume 开场动画（新）
   ======================================== */
#relume-intro {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(160deg, #1a1025 0%, #2d1b40 50%, #1a1025 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#relume-intro.fade-out {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

/* 标题打字机 */
.intro-title {
  color: var(--text-bright);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 30px;
  opacity: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.5s ease;
}

.intro-title.visible {
  opacity: 1;
}

.intro-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* 花瓣粒子 */
.intro-petals {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.intro-petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50% 0 50% 0;
  opacity: 0;
}

.intro-petal.active {
  animation: petalFall var(--dur) ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes petalFall {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.3);
  }
}

/* 副标题淡入 */
.intro-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 0.15em;
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.intro-subtitle.visible {
  opacity: 1;
}

/* ========================================
   滚动揭示动画
   ======================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }

/* 侧栏项从右侧滑入 */
.aside-list-item.scroll-reveal {
  transform: translateX(20px);
}

.aside-list-item.scroll-reveal.revealed {
  transform: translateX(0);
}

/* 页脚从下方淡入 */
#footer.scroll-reveal {
  transform: translateY(30px);
}

#footer.scroll-reveal.revealed {
  transform: translateY(0);
}

/* ---------- 标签云美化 ---------- */
#card-tags .aside-tag a {
  display: inline-block;
  padding: 4px 12px;
  margin: 3px;
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: var(--primary-light) !important;
  text-shadow: 0 1px 6px rgba(180, 142, 173, 0.3);
}

#card-tags .aside-tag a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 142, 173, 0.3);
  border-color: var(--accent);
}

/* ---------- 标签页（主区域） ---------- */
.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 20px 10px;
}

.tag-cloud-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 0.95em !important;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.tag-cloud-list a::before {
  content: '#';
  margin-right: 4px;
  opacity: 0.6;
}

.tag-cloud-list a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35), 0 0 20px rgba(244, 169, 192, 0.25);
  border-color: rgba(255,255,255,0.35);
}

/* 标签页动画入场 */
@keyframes tagDrop {
  0% { opacity: 0; transform: translateY(-20px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tag-cloud-list a {
  animation: tagDrop 0.5s ease-out both;
}

.tag-cloud-list a:nth-child(1)  { animation-delay: 0.0s; }
.tag-cloud-list a:nth-child(2)  { animation-delay: 0.07s; }
.tag-cloud-list a:nth-child(3)  { animation-delay: 0.14s; }
.tag-cloud-list a:nth-child(4)  { animation-delay: 0.21s; }
.tag-cloud-list a:nth-child(5)  { animation-delay: 0.28s; }
.tag-cloud-list a:nth-child(6)  { animation-delay: 0.35s; }
.tag-cloud-list a:nth-child(7)  { animation-delay: 0.42s; }
.tag-cloud-list a:nth-child(8)  { animation-delay: 0.49s; }
.tag-cloud-list a:nth-child(9)  { animation-delay: 0.56s; }
.tag-cloud-list a:nth-child(10) { animation-delay: 0.63s; }

/* ---------- 站点数据面板美化 ---------- */
.card-webinfo {
  background: var(--bg-glass) !important;
  border-radius: 12px !important;
}

.card-webinfo .webinfo-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}

.card-webinfo .webinfo-item:last-child {
  border-bottom: none;
}

/* 运势弹出动画 */
@keyframes fortunePop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   Preloader — 樱花旋转加载动画
   ======================================== */
:root {
  --preloader-bg: #1a1025;
  --preloader-color: #f0e6f6;
}

#loading-box {
  background: var(--preloader-bg) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 隐藏默认 spinner */
#loading-box .configure-border-1,
#loading-box .configure-border-2,
#loading-box .configure-center,
#loading-box .loading-left-bg,
#loading-box .loading-right-bg,
#loading-box .spinner-box {
  display: none !important;
}

/* 樱花旋转容器 */
.sakura-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.sakura-petal {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50% 0 50% 0;
  transform-origin: 50% 40px;
  opacity: 0.85;
}

.sakura-petal:nth-child(1) { background: #f4a9c0; animation: sakuraSpin 2s linear infinite; }
.sakura-petal:nth-child(2) { background: #d4b5e0; animation: sakuraSpin 2s linear infinite 0.25s; }
.sakura-petal:nth-child(3) { background: #c8a9de; animation: sakuraSpin 2s linear infinite 0.5s; }
.sakura-petal:nth-child(4) { background: #b48ead; animation: sakuraSpin 2s linear infinite 0.75s; }
.sakura-petal:nth-child(5) { background: #f4a9c0; animation: sakuraSpin 2s linear infinite 1.0s; opacity: 0.6; }
.sakura-petal:nth-child(6) { background: #d4b5e0; animation: sakuraSpin 2s linear infinite 1.25s; opacity: 0.6; }

@keyframes sakuraSpin {
  0%   { transform: rotate(0deg) translateY(0); opacity: 0.85; }
  50%  { opacity: 0.4; }
  100% { transform: rotate(360deg) translateY(0); opacity: 0.85; }
}

/* 中心圆点 */
.sakura-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--accent, #f4a9c0);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(244, 169, 192, 0.5);
  animation: sakuraPulse 1.5s ease-in-out infinite;
}

@keyframes sakuraPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(244, 169, 192, 0.5); }
  50% { transform: scale(1.2); box-shadow: 0 0 25px rgba(244, 169, 192, 0.7); }
}

/* 加载文字 */
#loading-box .loading-word {
  color: var(--preloader-color) !important;
  font-size: 0.85em;
  letter-spacing: 0.15em;
  margin-top: 20px;
  opacity: 0.7;
}

/* ========================================
   自定义右键菜单
   ======================================== */
#custom-context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(26, 16, 37, 0.75);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(180, 142, 173, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(244, 169, 192, 0.1);
  opacity: 0;
  transform: scale(0.9) translateY(-6px);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  user-select: none;
  font-family: 'Noto Sans SC', sans-serif;
}

#custom-context-menu.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text-bright);
  font-size: 0.88em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ctx-item:hover {
  background: rgba(180, 142, 173, 0.18);
  color: var(--accent);
}

.ctx-item i {
  width: 16px;
  text-align: center;
  color: var(--primary-light);
  transition: color 0.2s ease;
}

.ctx-item:hover i {
  color: var(--accent);
}

.ctx-sep {
  height: 1px;
  margin: 4px 10px;
  background: rgba(180, 142, 173, 0.15);
}

/* ========================================
   公告弹窗
   ======================================== */
#announcement-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99998;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(13, 8, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#announcement-overlay.show {
  opacity: 1;
}

#announcement-modal {
  width: 420px;
  max-width: 90vw;
  border-radius: 18px;
  background: rgba(26, 16, 37, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(180, 142, 173, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 169, 192, 0.1);
  transform: scale(0.88);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

#announcement-overlay.show #announcement-modal {
  transform: scale(1);
}

#announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(180, 142, 173, 0.15);
}

#announcement-icon {
  color: var(--accent);
  font-size: 1.15em;
}

#announcement-title {
  flex: 1;
  font-weight: 700;
  font-size: 1.05em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#announcement-close {
  background: none !important;
  border: none !important;
  color: var(--text-muted) !important;
  font-size: 1em;
  padding: 4px !important;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  box-shadow: none !important;
}

#announcement-close:hover {
  color: var(--accent) !important;
  background: rgba(180, 142, 173, 0.15) !important;
}

#announcement-body {
  padding: 20px;
  color: var(--text-bright);
  line-height: 1.75;
  font-size: 0.95em;
}

#announcement-footer {
  padding: 14px 20px 18px;
  display: flex;
  justify-content: flex-end;
}

#announcement-confirm {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border: none !important;
  border-radius: 22px;
  padding: 9px 28px !important;
  color: white !important;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(180, 142, 173, 0.3) !important;
}

#announcement-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(244, 169, 192, 0.45) !important;
}

/* ========================================
   404 页面增强
   ======================================== */
#error_404 {
  position: relative;
  overflow: hidden;
}

#error_404::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(180, 142, 173, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#error_404 .error-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

#error_404 .error-title {
  font-size: 6em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: errorPulse 3s ease-in-out infinite;
  letter-spacing: 0.05em;
}

@keyframes errorPulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50%      { filter: brightness(1.2); transform: scale(1.03); }
}

#error_404 .error-subtitle {
  color: var(--text-muted);
  font-size: 1.2em;
  margin-top: 12px;
}

#error_404 .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(180, 142, 173, 0.35);
}

#error_404 .back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

/* 漂浮元素动画 */
@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-15px) rotate(5deg); }
}

.error-float {
  position: absolute;
  font-size: 2em;
  opacity: 0.15;
  animation: floatDrift 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.error-float:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.error-float:nth-child(2) { top: 25%; right: 12%; animation-delay: 1.5s; }
.error-float:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 3s; }
.error-float:nth-child(4) { bottom: 30%; right: 18%; animation-delay: 4.5s; }

/* ========================================
   代码块美化
   ======================================== */
figure.highlight {
  background: rgba(13, 8, 20, 0.85) !important;
  border: 1px solid rgba(180, 142, 173, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.2em 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

figure.highlight .highlight-tools {
  background: rgba(180, 142, 173, 0.08);
  border-bottom: 1px solid rgba(180, 142, 173, 0.1);
  padding: 6px 12px;
  border-radius: 12px 12px 0 0;
}

figure.highlight .highlight-tools .copy-btn {
  background: rgba(180, 142, 173, 0.15) !important;
  border: 1px solid rgba(180, 142, 173, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--primary-light) !important;
  font-size: 0.8em;
  transition: all 0.3s ease;
}

figure.highlight .highlight-tools .copy-btn:hover {
  background: rgba(244, 169, 192, 0.2) !important;
  border-color: var(--accent);
  color: var(--accent) !important;
}

figure.highlight .highlight-tools .copy-btn i {
  color: inherit !important;
}

figure.highlight table::-webkit-scrollbar {
  height: 4px;
}

figure.highlight table::-webkit-scrollbar-thumb {
  background: rgba(180, 142, 173, 0.25);
  border-radius: 2px;
}

/* 行内 code */
code {
  background: rgba(180, 142, 173, 0.12);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--accent);
  font-size: 0.88em;
  border: 1px solid rgba(180, 142, 173, 0.1);
}

/* pre > code 去掉行内背景 */
figure.highlight code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ---------- 懒加载模糊淡入 ---------- */
img[data-lazy-src] {
  filter: blur(8px);
  transition: filter 0.5s ease, opacity 0.5s ease;
}

img[data-lazy-src].loaded,
img[data-lazy-src].error {
  filter: blur(0);
}



/* === /css/float-decor.css === */
/* ========================================
   悬浮角色装饰 — CSS
   ======================================== */
#float-decor {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9990;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s ease;
  /* 相对定位，让气泡以小圆球为参照 */
}

#float-decor img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(180, 142, 173, 0.4));
  transition: all 0.3s ease;
}

#float-decor:hover img {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 20px rgba(244, 169, 192, 0.5));
}

/* 弹跳动画 */
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#float-decor img {
  animation: floatBounce 3s ease-in-out infinite;
}

#float-decor:hover img {
  animation: none;
  transform: translateY(-5px) scale(1.1);
}

/* 点击挥手效果 */
#float-decor.clicked img {
  animation: wave 0.6s ease-in-out;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* 对话气泡 — fixed 定位，通过 JS 设置坐标 */
#float-bubble {
  position: fixed;
  bottom: 120px;
  left: 30px;
  background: rgba(26, 16, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 169, 192, 0.2);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  color: #f0e6f6;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 9991;
}

#float-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  #float-decor {
    display: none;
  }
}


/* === /css/weather-clock.css === */
/* ========================================
   天气/时钟侧栏组件
   ======================================== */
.weather-clock-card {
  background: rgba(26, 16, 37, 0.65) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(180, 142, 173, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.weather-clock-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

/* 时钟 */
.wc-time {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* 日期 */
.wc-date {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85em;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* 分隔线 */
.wc-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(180, 142, 173, 0.25), transparent);
}

/* 天气区域 */
.wc-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.wc-weather-icon {
  font-size: 2em;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(244, 169, 192, 0.3));
}

.wc-weather-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-weather-temp {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-bright);
}

.wc-weather-desc {
  font-size: 0.82em;
  color: var(--text-muted);
}

/* 加载状态 */
.wc-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82em;
  padding: 8px 0;
}

/* 天气关闭时隐藏分隔线和天气区域 */
.wc-weather-wrap[data-enabled="false"] {
  display: none;
}

.wc-weather-wrap[data-enabled="false"] + .wc-divider {
  display: none;
}

/* 移动端仅显示时钟 */
@media screen and (max-width: 768px) {
  .wc-weather {
    display: none;
  }
}


/* === /css/works-page.css === */
/* ========================================
   作品展示页
   ======================================== */
.works-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* 分类过滤标签 */
.works-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.works-filter-btn {
  padding: 7px 20px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans SC', sans-serif;
}

.works-filter-btn:hover,
.works-filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(180, 142, 173, 0.3);
  transform: translateY(-1px);
}

/* 卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 单张卡片 */
.works-card {
  background: rgba(26, 16, 37, 0.6);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.works-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.works-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(180, 142, 173, 0.18), 0 0 0 1px rgba(244, 169, 192, 0.12);
  border-color: rgba(244, 169, 192, 0.2);
}

.works-card:hover::before {
  opacity: 1;
}

.works-card.hidden {
  display: none;
}

/* 卡片头部 */
.works-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.works-card-icon {
  font-size: 1.6em;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(244, 169, 192, 0.3));
}

.works-card-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.works-card-status.done {
  background: rgba(108, 199, 140, 0.18);
  color: #6cc78c;
  border: 1px solid rgba(108, 199, 140, 0.3);
}

.works-card-status.wip {
  background: rgba(244, 169, 192, 0.18);
  color: var(--accent);
  border: 1px solid rgba(244, 169, 192, 0.3);
}

.works-card-status.plan {
  background: rgba(180, 142, 173, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(180, 142, 173, 0.25);
}

/* 卡片标题 */
.works-card-title {
  font-size: 1.1em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 卡片描述 */
.works-card-desc {
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.6;
  flex: 1;
}

/* 标签 */
.works-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.works-card-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72em;
  font-weight: 600;
  background: rgba(180, 142, 173, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(180, 142, 173, 0.15);
  transition: all 0.2s ease;
}

.works-card:hover .works-card-tag {
  border-color: rgba(244, 169, 192, 0.2);
}

/* 入场动画 */
@keyframes cardReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.works-card {
  animation: cardReveal 0.45s ease-out both;
}

.works-card:nth-child(1)  { animation-delay: 0.0s; }
.works-card:nth-child(2)  { animation-delay: 0.08s; }
.works-card:nth-child(3)  { animation-delay: 0.16s; }
.works-card:nth-child(4)  { animation-delay: 0.24s; }
.works-card:nth-child(5)  { animation-delay: 0.32s; }
.works-card:nth-child(6)  { animation-delay: 0.40s; }

/* 空状态 */
.works-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.95em;
}

.works-empty-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
  opacity: 0.4;
}

@media screen and (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
  .works-filters {
    gap: 6px;
  }
}


/* === /css/music-ball.css === */
/* ========== 悬浮球音乐播放器 v2 ========== */

/* ---------- 悬浮球（黑胶唱片风格） ---------- */
#music-ball {
  position: fixed;
  left: 30px;
  bottom: 35%;
  z-index: 9999;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#music-ball:active { cursor: grabbing; }

#music-ball .ball {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  animation: mbPulse 3s ease-in-out infinite;
  /* 默认渐变（封面未加载时） */
  background: linear-gradient(135deg, #1a1025 0%, #2a1a3a 50%, #1a1025 100%);
  box-shadow: 0 2px 12px rgba(180, 142, 173, 0.35);
}
#music-ball .ball:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 24px rgba(244, 169, 192, 0.5);
}

/* 封面背景 */
#music-ball .ball .cover {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 0;
}
#music-ball .ball .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中心小圆点（唱片孔） */
#music-ball .ball .hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a1025;
  border: 2px solid rgba(180, 142, 173, 0.4);
  z-index: 2;
  position: relative;
  pointer-events: none;
  transition: border-color 0.3s;
}

/* 发光环 */
#music-ball .ball::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(244, 169, 192, 0.3);
  pointer-events: none;
  transition: border-color 0.3s;
}

@keyframes mbPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(180, 142, 173, 0.3); }
  50% { box-shadow: 0 2px 20px rgba(244, 169, 192, 0.5); }
}

/* 播放中：旋转 + 光环闪烁 */
#music-ball .ball.playing {
  animation: mbSpin 6s linear infinite;
}
#music-ball .ball.playing::after {
  animation: mbRingPulse 2s ease-in-out infinite;
  border-color: rgba(244, 169, 192, 0.6);
}
#music-ball .ball.playing .hole {
  border-color: rgba(244, 169, 192, 0.7);
}
#music-ball .ball.playing:hover {
  animation-play-state: paused;
  transform: scale(1.12);
}

@keyframes mbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes mbRingPulse {
  0%, 100% {
    border-color: rgba(244, 169, 192, 0.3);
    box-shadow: 0 0 8px rgba(244, 169, 192, 0.15);
  }
  50% {
    border-color: rgba(244, 169, 192, 0.7);
    box-shadow: 0 0 16px rgba(244, 169, 192, 0.3);
  }
}

/* ---------- 播放器面板 ---------- */
#music-panel {
  position: absolute;
  left: 68px;
  bottom: 0;
  transform: translateY(32%);
  width: 280px;
  background: rgba(22, 12, 32, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(180, 142, 173, 0.15);
  border-radius: 18px;
  color: #f0e6f6;
  display: none;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
#music-panel.show {
  display: block;
  animation: mpSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mpSlideIn {
  0% {
    opacity: 0;
    transform: translateY(32%) scale(0.92) translateX(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(32%) scale(1) translateX(0);
  }
}

/* -- 封面区域 -- */
#music-panel .cover-section {
  position: relative;
  width: 100%;
  padding: 20px 20px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#music-panel .cover-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: rgba(180, 142, 173, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#music-panel .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 封面占位图标 */
#music-panel .cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.25;
  color: #b48ead;
}

/* 封面加载完成后隐藏占位 */
#music-panel .cover-wrap img[src] ~ .cover-placeholder {
  display: none;
}

#music-panel .track-text {
  flex: 1;
  min-width: 0;
}

#music-panel .track-title {
  font-size: 14px;
  font-weight: 600;
  color: #f0e6f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

#music-panel .track-artist {
  font-size: 11px;
  color: #a898b4;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -- 控制区域 -- */
#music-panel .ctrl-section {
  padding: 0 20px 16px;
}

/* 按钮组 */
#music-panel .btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

#music-panel .ctrl-btn {
  background: none;
  border: none;
  color: #d4b5e0;
  font-size: 16px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
#music-panel .ctrl-btn:hover {
  color: #f4a9c0;
  background: rgba(244, 169, 192, 0.1);
}

/* 播放/暂停主按钮 */
#music-panel .ctrl-btn.play-btn {
  width: 42px;
  height: 42px;
  font-size: 18px;
  background: linear-gradient(135deg, #b48ead, #f4a9c0);
  color: #fff;
  box-shadow: 0 3px 14px rgba(180, 142, 173, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#music-panel .ctrl-btn.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(244, 169, 192, 0.55);
  background: linear-gradient(135deg, #c49ebe, #f4a9c0);
}

/* -- 音量条 -- */
#music-panel .volume-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
#music-panel .vol-icon {
  font-size: 13px;
  cursor: pointer;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
}
#music-panel .volume-track {
  flex: 1;
  height: 4px;
  background: rgba(180, 142, 173, 0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}
#music-panel .volume-track:hover {
  height: 6px;
}
#music-panel .volume-fill {
  height: 100%;
  background: linear-gradient(90deg, #b48ead, #f4a9c0);
  border-radius: 2px;
  width: 80%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* 进度条 */
#music-panel .progress-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

#music-panel .time {
  font-size: 10px;
  color: #a898b4;
  min-width: 30px;
  font-variant-numeric: tabular-nums;
}
#music-panel .time.now { text-align: right; }

#music-panel .progress-track {
  flex: 1;
  height: 4px;
  background: rgba(180, 142, 173, 0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}
#music-panel .progress-track:hover {
  height: 6px;
}

#music-panel .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b48ead, #f4a9c0);
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 0.15s linear;
}

#music-panel .progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4a9c0;
  box-shadow: 0 0 6px rgba(244, 169, 192, 0.5);
  transition: transform 0.15s;
}
#music-panel .progress-track:hover .progress-fill::after {
  transform: translateY(-50%) scale(1);
}

/* -- 播放列表 -- */
#music-panel .playlist {
  max-height: 180px;
  overflow-y: auto;
  border-top: 1px solid rgba(180, 142, 173, 0.1);
}

#music-panel .playlist::-webkit-scrollbar { width: 3px; }
#music-panel .playlist::-webkit-scrollbar-track { background: transparent; }
#music-panel .playlist::-webkit-scrollbar-thumb {
  background: rgba(180, 142, 173, 0.25);
  border-radius: 2px;
}

#music-panel .pl-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s;
  gap: 10px;
}
#music-panel .pl-item:hover {
  background: rgba(180, 142, 173, 0.1);
}

#music-panel .pl-item.active {
  background: rgba(244, 169, 192, 0.1);
}
#music-panel .pl-item.active .pl-num {
  color: #f4a9c0;
}
#music-panel .pl-item.active .pl-title {
  color: #f4a9c0;
}

#music-panel .pl-item .pl-num {
  width: 18px;
  font-size: 10px;
  color: #7a6a88;
  text-align: center;
  flex-shrink: 0;
}

#music-panel .pl-item .pl-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d4c5e0;
}

#music-panel .pl-item .pl-singer {
  font-size: 10px;
  color: #7a6a88;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* ---------- 隐藏原生 APlayer ---------- */
.aplayer { display: none !important; }

/* ---------- 移动端隐藏 ---------- */
@media (max-width: 768px) {
  #music-ball { display: none; }
}


/* === /css/terminal-home.css === */
/* 终端风格首页 */
.terminal-home {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 231, 183, 0.15);
}

/* 标题栏 */
.th-titlebar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}

.th-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.th-red { background: #ff5f56; }
.th-yellow { background: #ffbd2e; }
.th-green { background: #27c93f; }

.th-title {
  color: #8b949e;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin-left: 8px;
}

/* 终端主体 */
.th-body {
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #6ee7b7;
  max-height: 400px;
  overflow-y: auto;
}

/* 输出行 */
.th-line {
  min-height: 1.6em;
  white-space: pre-wrap;
  word-break: break-all;
}

.th-prompt {
  color: #f472b6;
  margin-right: 6px;
  font-weight: bold;
}

.th-error {
  color: #f87171;
}

.th-hint {
  color: #8b949e;
  font-size: 12px;
}

/* 输入行 */
.th-input-line {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.th-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: #6ee7b7;
}

.th-input::placeholder {
  color: #4a5568;
}

/* 滚动条 */
.th-body::-webkit-scrollbar {
  width: 6px;
}
.th-body::-webkit-scrollbar-track {
  background: transparent;
}
.th-body::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 183, 0.2);
  border-radius: 3px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .terminal-home {
    border-radius: 8px;
    margin: 0 -1rem 1.5rem;
  }
  .th-body {
    font-size: 12px;
    max-height: 300px;
    padding: 12px;
  }
}


/* === /css/visitor-egg.css === */
/* ---------- 访客彩蛋 Toast ---------- */
.visitor-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99990;
  padding: 12px 24px;
  border-radius: 25px;
  background: rgba(26, 16, 37, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(180, 142, 173, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #f0e6f6;
  font-size: 0.9em;
  font-family: 'Noto Sans SC', sans-serif;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.visitor-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .visitor-toast {
  background: rgba(13, 8, 20, 0.9);
  border-color: rgba(180, 142, 173, 0.15);
}

@media screen and (max-width: 768px) {
  .visitor-toast {
    right: 16px;
    bottom: 20px;
    font-size: 0.82em;
    padding: 10px 18px;
  }
}

