/* =========================================================
   lotusor — 封面首页 + 全站暗色主题（landing）
   动态径向渐变背景（腾讯云方案：多层 radial-gradient +
   background-size 放大 + position 动画）+ 玻璃拟态 + 技术风
   幕布式页面过渡动画 · 文章区与封面背景统一
   ========================================================= */

/* ---------- CSS 变量（暗色主题） ---------- */
:root {
  --dark-bg: #080c18;
  --dark-surface: rgba(12, 18, 32, .75);
  --dark-border: rgba(70, 110, 190, .18);
  --dark-text: #b8c4d8;
  --dark-text-bright: #dde8ff;
  --dark-text-dim: #5a6a88;
}

/* 覆盖 styles.css 的白色 body 背景，全站深色基底 */
html, body { background: var(--dark-bg); }

/* ==================== 全局暗色覆盖（文章区等非封面页面） ==================== */
body.on-blog {
  background: var(--dark-bg);
  color: var(--dark-text);
}
/* 文章区也使用动态渐变背景（与封面统一） */
body.on-blog::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0a0e1a;
  background-image:
    radial-gradient(closest-side, rgba(60, 100, 255, .35), rgba(60, 100, 255, 0) 70%),
    radial-gradient(closest-side, rgba(0, 200, 180, .28), rgba(0, 200, 180, 0) 70%),
    radial-gradient(closest-side, rgba(140, 80, 255, .25), rgba(140, 80, 255, 0) 70%),
    radial-gradient(closest-side, rgba(0, 150, 220, .20), rgba(0, 150, 220, 0) 70%);
  background-size: 130vw 130vh, 120vw 120vh, 100vw 150vh, 120vw 130vh;
  background-position: -80vw -80vh, 30vw -20vh, -20vw 20vh, 30vw 20vh;
  background-repeat: no-repeat;
  animation: bgFloat 18s ease-in-out infinite;
  will-change: background-size, background-position;
}
@keyframes bgFloat {
  0%, 100% {
    background-size: 130vw 130vh, 120vw 120vh, 100vw 150vh, 120vw 130vh;
    background-position: -80vw -80vh, 30vw -20vh, -20vw 20vh, 30vw 20vh;
  }
  25% {
    background-size: 120vw 120vh, 130vw 150vh, 130vw 120vh, 100vw 110vh;
    background-position: -30vw -30vh, 40vw -10vh, 0vw 10vh, -10vw 20vh;
  }
  50% {
    background-size: 130vw 130vh, 140vw 100vh, 100vw 150vh, 90vw 110vh;
    background-position: 10vw -60vh, 20vw 10vh, 10vw 30vh, 10vw -20vh;
  }
  75% {
    background-size: 140vw 140vh, 100vw 130vh, 100vw 150vh, 130vw 110vh;
    background-position: -70vw -70vh, 0vw -10vh, 30vw -20vh, 20vw 30vh;
  }
}

body.on-blog .site-header {
  background: rgba(8, 12, 24, .82);
  border-bottom-color: var(--dark-border);
}
body.on-blog .site-header .brand { color: var(--dark-text-bright); }
body.on-blog .site-nav a { color: var(--dark-text-dim); }
body.on-blog .site-nav a:hover,
body.on-blog .site-nav a.active { color: var(--dark-text-bright); border-bottom-color: rgba(70, 110, 220, .6); }
body.on-blog .site-footer {
  border-top-color: var(--dark-border);
  background: transparent;
}
body.on-blog .post-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
body.on-blog .post-card:hover {
  border-color: rgba(70, 110, 220, .35);
  box-shadow: 0 8px 32px rgba(70, 110, 220, .12), 0 4px 24px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}
body.on-blog .post-card h2 a { color: var(--dark-text-bright); }
body.on-blog .post-card h2 a:hover { color: #6a9cff; text-decoration: none; }
body.on-blog .post-meta { color: var(--dark-text-dim); }
body.on-blog .post-excerpt { color: var(--dark-text); }
body.on-blog .section-title { color: var(--dark-text-bright); }
body.on-blog .section-title .count { color: var(--dark-text-dim); }
body.on-blog .tag {
  background: rgba(70, 110, 220, .12);
  color: #7aa3ff;
  border-color: rgba(70, 110, 220, .2);
}
body.on-blog .tag:hover { background: rgba(70, 110, 220, .22); }
body.on-blog .back-link { color: var(--dark-text-dim); }
body.on-blog .back-link:hover { color: #6a9cff; }
body.on-blog .blog-head .blog-title { color: var(--dark-text-bright); }
body.on-blog .blog-head .blog-sub { color: var(--dark-text-dim); }

/* 文章详情页暗色 */
body.on-blog .article-header h1 { color: var(--dark-text-bright); }
body.on-blog .article-body { color: var(--dark-text); }
body.on-blog .article-body h2 {
  border-bottom-color: var(--dark-border);
  color: var(--dark-text-bright);
}
body.on-blog .article-body h3 { color: var(--dark-text-bright); }
body.on-blog .article-body blockquote {
  border-left-color: #4670e0;
  background: rgba(70, 112, 224, .08);
  color: var(--dark-text);
}
body.on-blog .article-body code {
  background: rgba(70, 110, 220, .1);
  color: #a8c4ff;
}
body.on-blog .article-body th { background: rgba(70, 110, 220, .08); color: var(--dark-text-bright); }
body.on-blog .article-body td,
body.on-blog .article-body th { border-color: var(--dark-border); }

/* 关于页暗色 */
body.on-blog .about h1,
body.on-blog .about-section h2 { color: var(--dark-text-bright); }
body.on-blog .about .lead { color: var(--dark-text); }
body.on-blog .about-section p { color: var(--dark-text); }
body.on-blog .skill {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}
body.on-blog .link-list a {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}
body.on-blog .link-list a:hover { border-color: rgba(70, 110, 220, .5); color: #6a9cff; text-decoration: none; }
body.on-blog .empty { color: var(--dark-text-dim); }

/* ==================== Header（封面页透明，贴左） ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: 0 24px;
}
.site-header .header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 贴左 */
}
.site-header .brand { gap: 10px; color: var(--dark-text-bright); font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.site-header .brand:hover { text-decoration: none; opacity: .85; }
/* 品牌图标 → 头像圆形 */
.site-header .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(100, 140, 255, .4);
  background: none;
  display: inline-block;
}
.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-name { font-size: 15px; }

/* 文章区的 header 恢复正常样式 */
body.on-blog .site-header {
  background: rgba(8, 12, 24, .85);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(12px) saturate(140%);
}

/* ==================== Footer（贴左） ==================== */
.site-footer {
  border-top: 1px solid var(--dark-border);
  margin-top: 40px;
  padding: 22px 24px;
  color: var(--dark-text-dim);
  font-size: 13px;
  background: transparent;
  text-align: left; /* 贴左 */
}
.site-footer p { margin: 2px 0; }
.footer-sub { font-size: 12px; }

/* ==================== 入场 loader（深色版） ==================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-mark {
  font-weight: 800;
  font-size: 26px;
  color: var(--dark-text-bright);
  letter-spacing: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  opacity: .85;
}
.loader-bar {
  width: 170px;
  height: 3px;
  border-radius: 999px;
  background: rgba(70, 110, 220, .15);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #5890ff, transparent);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

/* ==================== 封面容器（全屏动态径向渐变背景 — 腾讯云方案） ==================== */
.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 26px;
  padding: 40px 24px 70px;
  overflow: hidden;
}

/* 动态渐变背景：多层径向渐变 + background-size 放大 + position 动画 */
.cover::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #0a0e1a;
  background-image:
    radial-gradient(closest-side, rgba(60, 100, 255, .35), rgba(60, 100, 255, 0) 70%),
    radial-gradient(closest-side, rgba(0, 200, 180, .28), rgba(0, 200, 180, 0) 70%),
    radial-gradient(closest-side, rgba(140, 80, 255, .25), rgba(140, 80, 255, 0) 70%),
    radial-gradient(closest-side, rgba(0, 150, 220, .20), rgba(0, 150, 220, 0) 70%);
  background-size: 130vw 130vh, 120vw 120vh, 100vw 150vh, 120vw 130vh;
  background-position: -80vw -80vh, 30vw -20vh, -20vw 20vh, 30vw 20vh;
  background-repeat: no-repeat;
  animation: bgFloat 18s ease-in-out infinite;
  will-change: background-size, background-position;
}

/* 网格纹理叠加 */
.cover-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(70, 110, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 110, 220, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ---------- 头像（真实图片） ---------- */
.cover-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(90, 130, 255, .45);
  box-shadow:
    0 0 36px rgba(60, 100, 255, .22),
    0 16px 44px rgba(0, 0, 0, .45);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  z-index: 1;
}
.cover-avatar:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 48px rgba(60, 100, 255, .35),
    0 20px 52px rgba(0, 0, 0, .55);
}
.cover-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 两行诗句 ---------- */
.cover-quote {
  margin: 0;
  font-size: 17px;
  line-height: 2;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: var(--dark-text);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* ---------- 社交图标行（暗色玻璃质感） ---------- */
.cover-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.glass {
  background: rgba(14, 22, 42, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(70, 110, 220, .2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.social {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark-text-bright);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.social:hover {
  transform: translateY(-4px) scale(1.08);
  background: rgba(25, 38, 65, .72);
  border-color: rgba(70, 110, 220, .5);
  box-shadow: 0 8px 28px rgba(70, 110, 220, .2), 0 4px 16px rgba(0, 0, 0, .3);
  text-decoration: none;
}
.social img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; filter: brightness(.85); }
.social:hover img { filter: brightness(1.1); }
.social-fallback {
  display: none;
  width: 24px; height: 24px;
  place-items: center;
  font-weight: 700; font-size: 14px; color: var(--dark-text-bright);
}

/* ---------- QQ 图标 → hover 右展二维码动画 ---------- */
.qq-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.qq-icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 22, 42, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(70, 110, 220, .2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  cursor: default;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.qq-icon-btn img { width: 24px; height: 24px; border-radius: 6px; filter: brightness(.85); }
.qq-wrap:hover .qq-icon-btn img { filter: brightness(1.1); }
.qq-qr-panel {
  width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 42, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(70, 110, 220, .2);
  border-left: none;
  border-radius: 0 14px 14px 0;
  box-shadow: 4px 4px 24px rgba(0, 0, 0, .3);
  opacity: 0;
  transition: width .35s cubic-bezier(.25, .46, .45, .94),
              opacity .25s ease,
              margin-left .35s cubic-bezier(.25, .46, .45, .94);
  margin-left: 0;
  white-space: nowrap;
}
.qq-qr-panel img {
  height: 136px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.qq-wrap:hover .qq-icon-btn {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(70, 110, 220, .5);
  box-shadow: 0 8px 28px rgba(70, 110, 220, .2), 0 4px 16px rgba(0, 0, 0, .3);
}
.qq-wrap:hover .qq-qr-panel {
  width: 164px;
  opacity: 1;
  margin-left: -8px;
}

/* ---------- MY-THINK 按钮（技术风发光按钮） ---------- */
.my-think {
  margin-top: 8px;
  padding: 13px 42px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 13.5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--dark-text-bright);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.my-think:hover {
  transform: translateY(-3px);
  text-decoration: none;
  background: rgba(25, 38, 65, .78);
  border-color: rgba(70, 110, 220, .55);
  box-shadow:
    0 0 24px rgba(70, 110, 220, .22),
    0 14px 36px rgba(0, 0, 0, .35);
}

/* ---------- 文章区头部（技术风） ---------- */
.blog-head { padding: 72px 0 10px; } /* 顶部留出 header 空间 */
.blog-title {
  font-size: 27px;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.blog-sub { color: var(--dark-text-dim); margin: 0 0 20px; font-size: 14px; }

/* ==================== 幕布式页面过渡动画 ==================== */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.page-curtain--enter {
  /* 从底部向上展开的幕布 */
  background: linear-gradient(to top, var(--dark-bg) 0%, transparent 100%);
  animation: curtainUp .55s cubic-bezier(.4, 0, .2, 1) forwards;
}
.page-curtain--exit {
  /* 向下收起的幕布 */
  background: linear-gradient(to bottom, var(--dark-bg) 0%, transparent 100%);
  animation: curtainDown .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes curtainUp {
  0%   { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes curtainDown {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
}

/* 内容淡入（幕布展开后内容显现） */
.content-fade-in {
  animation: contentFadeIn .45s ease .2s both;
}
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================== 文章区内容居中（恢复原始 container 布局） ==================== */
body.on-blog #app {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
body.on-blog .blog-head { padding-top: 72px; }

/* ---------- 友站推荐（封面页 MY-THINK 下方） ---------- */
.friend-sites {
  margin-top: 36px;
  position: relative;
  z-index: 1;
}
.friend-sites-title {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dark-text-dim);
  margin: 0 0 14px;
  font-weight: 500;
}
.friend-sites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.friend-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark-text);
  font-size: 14px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.friend-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  background: rgba(25, 38, 65, .72);
  border-color: rgba(70, 110, 220, .45);
  box-shadow: 0 8px 28px rgba(70, 110, 220, .15), 0 4px 16px rgba(0, 0, 0, .25);
  color: var(--dark-text-bright);
}
.friend-card img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  filter: brightness(.8);
  transition: filter .22s ease;
}
.friend-card:hover img { filter: brightness(1.15); }
.friend-fallback {
  display: none;
  width: 22px; height: 22px;
  place-items: center;
  font-weight: 700; font-size: 13px; color: var(--dark-text-bright);
  border-radius: 6px;
}

/* ==================== 音乐控件（播放器页面级 + 内联搜索） ==================== */
/* 播放器恢复 NMP 原生页面级定位（position=bottom-right，可在 HTML 改任意角） */
/* .music-dock 仅承载内联搜索栏，固定在左 1/4 处（左边缘↔居中 MY-THINK 按钮的中点），垂直回到默认 */

.music-dock {
  position: fixed;
  left: 25vw;
  bottom: 22px;
  z-index: 45;
  display: flex;
  align-items: flex-end;
}

/* ---------- 内联搜索栏：融入播放器内部（覆盖在歌曲信息右侧空白区域） ---------- */
.ms-inline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: -2px;   /* 轻微嵌入播放器边缘 */
  z-index: 3;
  pointer-events: auto; /* 确保可交互 */
}
.ms-inline-input-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, width .25s ease;
  width: 34px;        /* 默认折叠：只显示图标宽度 */
  min-width: 34px;
  overflow: hidden;
  cursor: pointer;
}
.ms-inline-input-wrap:hover,
.ms-inline-input-wrap.ms-active {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(120, 150, 220, .18);
}
.ms-inline-input-wrap.ms-active {
  width: 180px;       /* 展开后的宽度 */
  cursor: text;
}
.ms-inline .ms-search-icon {
  color: var(--dark-text-dim);
  flex-shrink: 0;
  transition: color .2s ease;
}
.ms-inline-input-wrap:hover .ms-search-icon,
.ms-inline-input-wrap.ms-active .ms-search-icon {
  color: var(--dark-text-bright);
}
.ms-inline .ms-input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--dark-text-bright); font-size: 13px;
  width: 0;            /* 折叠时占零宽 */
  opacity: 0;
  transition: opacity .2s ease, width .2s ease;
}
.ms-inline-input-wrap.ms-active .ms-input {
  width: 100%;
  opacity: 1;
}
.ms-input::placeholder { color: var(--dark-text-dim); font-size: 12.5px; }
.ms-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ms-inline .ms-close {
  background: none; border: none; cursor: pointer;
  color: var(--dark-text-dim); font-size: 13px;
  padding: 1px 4px; border-radius: 6px;
  flex-shrink: 0;
  opacity: 0; width: 0; overflow: hidden;
  transition: opacity .15s ease, width .15s ease;
}
.ms-inline-input-wrap.ms-active .ms-close {
  opacity: 1; width: auto;
}
.ms-inline .ms-close:hover { color: var(--dark-text-bright); background: rgba(255, 255, 255, .06); }

/* 搜索结果下拉（从输入框下方展开） */
.ms-inline .ms-results {
  list-style: none; margin: 5px 0 0; padding: 0;
  position: absolute;
  bottom: calc(100% + 6px);   /* 向上展开，避免遮挡播放器控制栏 */
  right: 0;
  width: 260px; max-width: 70vw;
  border-radius: 12px;
  padding: 8px;
  background: rgba(10, 16, 30, .82);
  border: 1px solid rgba(70, 110, 220, .22);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  overflow-y: auto; max-height: 40vh;
  display: flex; flex-direction: column; gap: 3px;
  animation: msPop .2s ease;
}
.ms-inline .ms-results::-webkit-scrollbar { width: 5px; }
.ms-inline .ms-results::-webkit-scrollbar-thumb { background: rgba(120, 150, 220, .3); border-radius: 3px; }
@keyframes msPop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

/* 搜索结果条目 */
.ms-result {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 9px;
  cursor: pointer; transition: background .15s ease;
}
.ms-result:hover { background: rgba(90, 130, 255, .14); }
.ms-cover {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  background: rgba(255, 255, 255, .06) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-text-dim); font-size: 14px;
}
.ms-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ms-name { color: var(--dark-text-bright); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-artist { color: var(--dark-text-dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-dur { color: var(--dark-text-dim); font-size: 11px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ms-status { color: var(--dark-text-dim); font-size: 11.5px; padding: 4px 2px 0; text-align: right; white-space: nowrap; }

/* ==================== 历史点播记录（本地歌单，最多 20 首） ==================== */
.history-dock {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.history-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 16, 30, .82);
  border: 1px solid rgba(70, 110, 220, .22);
  color: var(--dark-text-bright);
  font-size: 12.5px;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transition: background .2s ease, border-color .2s ease;
}
.history-toggle:hover { background: rgba(20, 30, 52, .9); border-color: rgba(120, 150, 220, .35); }
.history-toggle .hi-clock { color: var(--dark-text-dim); transition: color .2s ease; }
.history-toggle:hover .hi-clock { color: var(--dark-text-bright); }
.history-count {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(90, 130, 255, .22);
  color: var(--dark-text-bright);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.history-panel {
  width: 288px; max-width: 82vw;
  max-height: 52vh; overflow-y: auto;
  border-radius: 14px;
  background: rgba(10, 16, 30, .86);
  border: 1px solid rgba(70, 110, 220, .22);
  box-shadow: 0 14px 50px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
  animation: msPop .2s ease;
}
.history-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 8px;
  border-bottom: 1px solid rgba(70, 110, 220, .14);
  margin-bottom: 4px;
}
.history-head span { color: var(--dark-text-bright); font-size: 13px; font-weight: 600; }
.history-clear {
  background: none; border: none; cursor: pointer;
  color: var(--dark-text-dim); font-size: 11.5px; padding: 2px 8px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.history-clear:hover { color: #ff9a9a; background: rgba(255, 120, 120, .1); }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.history-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left;
  padding: 7px 8px; border: none; border-radius: 9px;
  background: transparent; color: inherit; cursor: pointer; font: inherit;
  transition: background .15s ease;
}
.history-item:hover { background: rgba(90, 130, 255, .14); }
.history-item.is-playing { background: rgba(90, 130, 255, .18); }
.history-item.is-playing .history-name { color: #9db4ff; }
.history-cover {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255, 255, 255, .06) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-text-dim); font-size: 14px;
}
.history-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.history-name { color: var(--dark-text-bright); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-artist { color: var(--dark-text-dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-play { color: var(--dark-text-dim); flex-shrink: 0; opacity: 0; transition: opacity .15s ease; }
.history-item.is-playing .hi-play { opacity: 1; color: #9db4ff; }
.history-empty { color: var(--dark-text-dim); font-size: 12.5px; text-align: center; padding: 18px 8px; margin: 0; }
.history-panel::-webkit-scrollbar { width: 5px; }
.history-panel::-webkit-scrollbar-thumb { background: rgba(120, 150, 220, .3); border-radius: 3px; }

/* ==================== 响应式 ==================== */
@media (max-width: 680px) {
  .cover { min-height: 88vh; gap: 20px; padding: 30px 18px 60px; }
  .cover-avatar { width: 104px; height: 104px; }
  .cover-quote { font-size: 15px; letter-spacing: .8px; }
  .social { width: 46px; height: 46px; }
  .social img { width: 22px; height: 22px; }
  .my-think { padding: 11px 30px; font-size: 12.5px; letter-spacing: 3px; }
  .qq-wrap:hover .qq-qr-panel { width: 138px; }
  .qq-qr-panel img { height: 112px; }
  .site-header { padding: 0 16px; }
  .site-footer { padding: 18px 16px; }
  .blog-head { padding-top: 62px; }
  body.on-blog #app { padding: 0 16px; }
  .friend-sites { margin-top: 28px; }
  .friend-card { padding: 8px 16px; font-size: 13px; }
  .music-dock { left: 25vw; bottom: 14px; }
  .ms-inline-input-wrap.ms-active { width: 150px; }
  .ms-inline .ms-results { width: 220px; }
  .history-dock { right: 14px; bottom: 80px; }
  .history-panel { width: 244px; max-width: 84vw; }
}
