/* ============================================================
   W.Y Luk 个人主页 - style.css
   结构完全复刻 imsyy/home（两栏布局 + 壁纸背景 + 加载动画）
   按用户调整：背景不压暗 / Logo 用图片 / 名字两行 / 引入 CDN 依赖
   ============================================================ */

/* ---------- 0. 本地字体引入（Pacifico 名字 + UnidreamLED 点阵时钟） ---------- */
@font-face {
  font-family: "Pacifico";
  src: url("../assets/fonts/Pacifico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "UnidreamLED";
  src: url("../assets/fonts/UnidreamLED.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- 1. 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  min-height: 100%;
}

body {
  color: #ffffff;
  background-color: #0b0e14;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- 2. 背景层（壁纸不压暗，仅留轻微径向遮罩） ---------- */

/* 两层壁纸用于 JS 淡入淡出切换 */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: -3;
}

/* 首层默认显示 bg1，避免加载期纯深色（JS 后续淡出切换） */
.bg-layer-a {
  opacity: 1;
  background-image: url("../assets/bg/bg1.webp");
}

/* 轻微径向渐变遮罩：保证白字可读，但不压暗壁纸主体 */
.bg-gray {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.35) 100%);
  z-index: -2;
}

/* ---------- 3. 加载动画 ---------- */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0b0e14;
  z-index: 100;
  transition: opacity 0.6s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  animation: loading-pulse 1.2s ease-in-out infinite;
}

.loading-text {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.6;
  }
}

/* ---------- 4. 主界面 ---------- */
#main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  transform: scale(1.2);
  transition: transform 0.3s;
  animation: fade-blur-main-in 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

#main.show {
  opacity: 1;
}

@keyframes fade-blur-main-in {
  from {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.container {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0.5vw;
}

.all {
  width: 100%;
  min-height: 100vh;
  padding: 0 0.75rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* ---------- 5. 左栏 Left ---------- */
.left {
  width: 50%;
  margin-right: 10px;
  transform: translateY(20px);
}

/* Logo + 名字（名字两行：英文一行，中文一行） */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  animation: fade 0.5s;
  max-width: 460px;
}

/* 圆形 Logo 图片 */
.logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

/* 名字：两行排布（英文大行 + 中文小行） */
.name {
  width: 100%;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name .bg {
  font-family: "Pacifico", sans-serif;
  font-size: 3.2rem;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.name .sm {
  margin-top: 4px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.4em;
}

/* 简介卡片（引号 + hello + text） */
.description {
  padding: 1rem;
  margin-top: 2.5rem;
  max-width: 460px;
  animation: fade 0.5s;
}

.cards {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.quote {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 4px;
}

.quote-r {
  align-self: flex-end;
}

.text {
  margin: 0.75rem 1rem;
  line-height: 2rem;
  margin-right: auto;
  flex: 1;
}

.text .hello {
  font-family: "Pacifico", sans-serif;
  font-size: 1.25rem;
}

.text .desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* 社交链接（图标行 + hover 提示） */
.social {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 460px;
  width: 100%;
  height: 42px;
  border-radius: 6px;
  animation: fade 0.5s;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.social:hover {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.social .link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social .link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  text-decoration: none;
}

.social .link a .icon {
  display: block;
  margin: 0 6px;
  transition: transform 0.3s;
  border-radius: 6px;
}

.social .link a:hover .icon {
  transform: scale(1.1);
}

.social .link a:active .icon {
  transform: scale(1);
}

.social .tip {
  display: none;
  margin-right: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  animation: fade 0.5s;
}

.social:hover .tip {
  display: block;
}

/* ---------- 6. 右栏 Right ---------- */
.right {
  width: 50%;
  margin-left: 0.75rem;
}

/* 功能区 */
.function {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.func-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
}

.func-left {
  flex: 1;
  display: flex;
}

.func-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

/* 一言 */
.hitokoto {
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fade 0.5s;
}

.hitokoto p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hitokoto span {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

/* 时钟 */
.time {
  font-size: 1.1rem;
  text-align: center;
}

.time .date {
  text-overflow: ellipsis;
  overflow-x: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.time .text {
  margin: 8px 0 0;
  font-size: 2.2rem;
  letter-spacing: 2px;
  font-family: "UnidreamLED", "Pacifico", sans-serif;
  color: #ffffff;
}

/* 天气 */
.weather {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  width: 100%;
  text-overflow: ellipsis;
  overflow-x: hidden;
  white-space: nowrap;
}

/* 网站列表（站点矩阵） */
.links {
  margin-top: 1rem;
}

.line {
  margin: 1.5rem 0.25rem 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  animation: fade 0.5s;
}

.line .title {
  margin-left: 8px;
  font-size: 1.15rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 网站列表卡片：统一为「图标在上、文字在下、居中」，桌面/移动端一致 */
.item {
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  color: #ffffff;
  text-decoration: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  animation: fade 0.5s;
  transition: transform 0.3s, background 0.3s;
}

.item:hover {
  transform: scale(1.03);
  background: rgba(0, 0, 0, 0.4);
}

.item:active {
  transform: scale(1);
}

.item svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

/* 网站列表卡片：本地图片图标（如 Bilibili logo），等比缩放居中 */
.item-icon-img {
  width: auto;
  height: 28px;
  max-width: 70%;
  object-fit: contain;
  flex-shrink: 0;
}

.item .name {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  padding: 0 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Z-Pin 卡片：主图标 + 名字 + 双链接（Git 仓库 / 展示站），布局与普通卡片统一 */
.zpin-card {
  position: relative;
  cursor: default;
}

.zpin-card:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Z-Pin 精致 logo（图片图标） */
.zpin-logo {
  transition: transform 0.3s;
}

.zpin-card:hover .zpin-logo {
  transform: scale(1.08);
}

/* 双链接：绝对定位在卡片右上角，不破坏统一布局 */
.zpin-links {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.zpin-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.zpin-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.zpin-links a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---------- 7. 页脚 ---------- */
.footer {
  width: 100%;
  text-align: center;
  padding: 18px 20px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  position: relative;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: #ffffff;
}

/* ---------- 8. 移动端菜单按钮（≤720px 显示） ---------- */
.menu {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 34px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 20;
}

.menu svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.menu:active {
  transform: translateX(-50%) scale(0.95);
}

/* ---------- 9. 动画关键帧 ---------- */
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 10. 移动端（≤720px，右栏隐藏，左栏全宽） ---------- */
@media (max-width: 720px) {
  .left {
    margin-right: 0;
    width: 100%;
    transform: translateY(0);
    padding-top: 6vh;
    padding-bottom: 10vh;
  }

  .right {
    margin-left: 0;
    width: 100%;
    display: none;
  }

  .right.open {
    display: block;
    padding: 4vh 0 8vh;
  }

  .menu {
    display: flex;
  }

  .logo {
    max-width: 100%;
  }

  .logo-img {
    width: 100px;
    height: 100px;
  }

  .name .bg {
    font-size: 2.4rem;
  }

  .name .sm {
    font-size: 1.1rem;
  }

  .description {
    max-width: 100%;
    margin-top: 2rem;
  }

  .social {
    max-width: 100%;
    justify-content: center;
  }

  .social .link {
    justify-content: space-evenly;
    width: 90%;
  }

  .social .tip {
    display: none !important;
  }

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

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* 移动端卡片：与桌面一致（图标上、文字下、居中），仅缩小 */
  .item {
    height: 76px;
    gap: 6px;
  }

  .item .name {
    font-size: 0.85rem;
  }

  .footer {
    padding-bottom: 76px;
  }
}

/* ---------- 11. 桌面端增强（min-width: 721px） ---------- */
@media (min-width: 721px) {
  .container {
    padding: 0 2vw;
  }

  .menu {
    display: none;
  }
}

/* 中等屏（721-1100px）：右栏较窄，网站列表 2 列防长名溢出 */
@media (min-width: 721px) and (max-width: 1100px) {
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* 宽屏（>1100px）：网站列表恢复 3 列 */
@media (min-width: 1101px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ---------- 12. 无障碍：减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  #main {
    transform: none;
    opacity: 1;
  }
}

/* ============================================================
   关于我 · About 二级界面
   ============================================================ */
.about-panel {
  margin-top: 1rem;
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  animation: fade 0.4s;
}

.about-panel[hidden] {
  display: none;
}

/* 关闭按钮：sticky 悬浮，滚动时钉在面板右上角；不占文档流、无黑底 */
.about-close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.about-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.about-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.about-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.about-sec {
  margin-top: 16px;
}

.about-sec-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  padding-left: 8px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.about-list li a {
  color: #ffd700;
  text-decoration: none;
}

.about-list li a:hover {
  text-decoration: underline;
}

.about-list .dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, #ffd700);
  margin-top: 7px;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

/* ============================================================
   圆点鼠标光标（原版 imsyy 风格：单点 + 缓动跟随 + mousedown 缩小）
   ============================================================ */

/* 隐藏系统光标，替换为白色圆点（URL 编码版，Safari 兼容） */
.cursor-active,
.cursor-active * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10' height='10'%3E%3Ccircle cx='4' cy='4' r='3.5' fill='white'/%3E%3C/svg%3E") 4 4, auto !important;
}

/* 单光标点：18x18 白半透明，缓动跟随（由 JS 控制位置） */
#cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 25px;
  opacity: 0.25;
  z-index: 9999;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  transition-property: background, opacity, transform;
}

#cursor.hidden {
  opacity: 0;
}

/* 按下时：更明显 + 缩小一半 */
#cursor.active {
  opacity: 0.5;
  transform: scale(0.5);
}

/* 触屏设备不显示自定义光标 */
@media (hover: none) {
  #cursor {
    display: none;
  }
}

/* 移动端关于面板调整 */
@media (max-width: 720px) {
  .about-panel {
    max-height: 60vh;
    padding: 18px 16px;
  }
}

/* ============================================================
   音乐播放器弹窗（MetingJS + APlayer，毛玻璃）
   ============================================================ */
.music-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fade 0.3s;
}

.music-modal[hidden] {
  display: none;
}

.music-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.music-panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px;
  animation: fade 0.4s;
}

.music-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.music-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.music-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.music-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
  padding-right: 40px;
}

/* 加载中提示（转圈 + 文案） */
.music-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.music-loading .spin {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 加载失败兜底（网易云直链） */
.music-fallback {
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.8;
}

.music-fallback[hidden] {
  display: none;
}

.music-fallback a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.music-fallback a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* APlayer 毛玻璃适配（配合 .cards 底色） */
.music-panel .aplayer {
  background: transparent;
  color: #ffffff;
  font-family: inherit;
}

.music-panel .aplayer .aplayer-info {
  background: rgba(255, 255, 255, 0.08);
}

.music-panel .aplayer .aplayer-list ol li {
  border-color: rgba(255, 255, 255, 0.08);
}

.music-panel .aplayer .aplayer-list ol li.aplayer-list-light,
.music-panel .aplayer .aplayer-list ol li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.music-panel .aplayer .aplayer-info .aplayer-music .aplayer-title,
.music-panel .aplayer .aplayer-info .aplayer-music .aplayer-author,
.music-panel .aplayer .aplayer-list ol li .aplayer-list-index,
.music-panel .aplayer .aplayer-list ol li .aplayer-list-author {
  color: #ffffff;
}

.music-panel .aplayer .aplayer-lrc p {
  color: #ffffff;
}

.music-panel .aplayer .aplayer-time {
  color: rgba(255, 255, 255, 0.8);
}

.music-panel .aplayer .aplayer-bar-wrap .aplayer-bar {
  background: rgba(255, 255, 255, 0.15);
}

.music-panel .aplayer .aplayer-volume-bar-wrap .aplayer-volume-bar {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Toast 提示（右键禁用 / 壁纸展示状态）
   ============================================================ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  padding: 10px 22px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast strong {
  font-weight: 700;
  color: #ffd700;
  margin-right: 4px;
}

/* ============================================================
   壁纸全屏展示（中键切换，复刻原版 backgroundShow）
   ============================================================ */
body.bg-only #main,
body.bg-only .loading,
body.bg-only .bg-gray {
  display: none !important;
}

body.bg-only .bg-layer {
  z-index: 0;
}

/* ============================================================
   简介卡片 hover 提示（对齐原版：可点击）
   ============================================================ */
.description {
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.description:hover {
  background-color: rgba(0, 0, 0, 0.4);
  transform: scale(1.01);
}

.description:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
