
.comments[data-v-3f64bddc] {
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-top: 1.5rem;
}
.comments h3[data-v-3f64bddc] {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.comment-list[data-v-3f64bddc] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.comment-item[data-v-3f64bddc] {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.c-avatar[data-v-3f64bddc] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  user-select: none;
}
.c-avatar-img[data-v-3f64bddc] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
}
.c-body[data-v-3f64bddc] {
  flex: 1;
}
.c-head[data-v-3f64bddc] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.c-name[data-v-3f64bddc] {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.c-name[data-v-3f64bddc]:hover {
  text-decoration: underline;
}
.c-ext[data-v-3f64bddc] {
  width: 13px;
  height: 13px;
}
.c-platform[data-v-3f64bddc] {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(120, 130, 150, 0.14);
  padding: 1px 8px;
  border-radius: 12px;
}
.c-text[data-v-3f64bddc] {
  font-size: 0.93rem;
  word-break: break-word;
}
.c-date[data-v-3f64bddc] {
  font-size: 0.75rem;
  color: var(--muted);
}
.comment-form[data-v-3f64bddc] {
  border-top: 1px dashed rgba(120, 130, 150, 0.3);
  padding-top: 1.2rem;
}
.avatar-row[data-v-3f64bddc] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.a-placeholder[data-v-3f64bddc] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px dashed rgba(120, 130, 150, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.a-preview[data-v-3f64bddc] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.a-tip[data-v-3f64bddc] {
  font-size: 0.75rem;
  color: var(--muted);
}
.textarea-wrap[data-v-3f64bddc] {
  position: relative;
}
.textarea-wrap textarea[data-v-3f64bddc] {
  width: 100%;
  padding-right: 44px;
}
.emoji-btn[data-v-3f64bddc] {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.emoji-btn.active[data-v-3f64bddc] {
  background: rgba(74, 124, 255, 0.2);
  box-shadow: 0 0 0 2px var(--primary);
}
.emoji-panel[data-v-3f64bddc] {
  position: absolute;
  right: 8px;
  bottom: 44px;
  width: min(320px, calc(100% - 60px));
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 30;
}
.emoji-item[data-v-3f64bddc] {
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.emoji-item[data-v-3f64bddc]:hover {
  background: rgba(74, 124, 255, 0.15);
}
.comment-actions[data-v-3f64bddc] {
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-error[data-v-3f64bddc] {
  color: var(--danger);
  font-size: 0.85rem;
}
.c-success[data-v-3f64bddc] {
  color: #2f9e44;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
.comment-item[data-v-3f64bddc] {
    padding: 0.7rem 0.8rem;
    gap: 8px;
}
.c-avatar[data-v-3f64bddc], .c-avatar-img[data-v-3f64bddc] {
    width: 34px;
    height: 34px;
}
.c-name[data-v-3f64bddc] {
    font-size: 0.88rem;
}
.c-text[data-v-3f64bddc] {
    font-size: 0.88rem;
}
.emoji-panel[data-v-3f64bddc] {
    grid-template-columns: repeat(7, 1fr);
    width: min(280px, calc(100% - 40px));
}
.emoji-item[data-v-3f64bddc] {
    font-size: 1.2rem;
    padding: 6px;
}
.emoji-btn[data-v-3f64bddc] {
    width: 36px;
    height: 36px;
}
.field input[data-v-3f64bddc], .field textarea[data-v-3f64bddc], .field select[data-v-3f64bddc] {
    font-size: 16px;
}
.comment-actions[data-v-3f64bddc] {
    flex-wrap: wrap;
}
}

/* 深色模式 */
:root[data-theme='dark'] {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}
:root[data-theme='dark'] {
  border-top-color: rgba(255, 255, 255, 0.14);
}
:root[data-theme='dark'] {
  background: rgba(34, 38, 52, 0.98);
  border-color: var(--glass-border);
}
:root[data-theme='dark'] {
  background: rgba(255, 255, 255, 0.1);
}
:root[data-theme='dark'],:root[data-theme='dark'],:root[data-theme='dark'] {
  background: rgba(20, 24, 36, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
:root[data-theme='dark'] {
  border-color: rgba(255, 255, 255, 0.3);
}
:root[data-theme='dark'],:root[data-theme='dark'],:root[data-theme='dark'] {
  color: var(--muted);
}

.lightbox-mask[data-v-d2902512] {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 30, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage[data-v-d2902512] {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lightbox-img[data-v-d2902512] {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  user-select: none;
}
.lightbox-caption[data-v-d2902512] {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}
.lightbox-close[data-v-d2902512] {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}
.lightbox-close[data-v-d2902512]:hover {
  background: rgba(255, 255, 255, 0.32);
}
.lightbox-nav[data-v-d2902512] {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}
.lightbox-nav[data-v-d2902512]:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev[data-v-d2902512] {
  left: 22px;
}
.lightbox-next[data-v-d2902512] {
  right: 22px;
}
.lb-enter-active[data-v-d2902512],
.lb-leave-active[data-v-d2902512] {
  transition: opacity 0.25s ease;
}
.lb-enter-from[data-v-d2902512],
.lb-leave-to[data-v-d2902512] {
  opacity: 0;
}
@media (max-width: 640px) {
.lightbox-nav[data-v-d2902512] {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
}
.lightbox-prev[data-v-d2902512] { left: 10px;
}
.lightbox-next[data-v-d2902512] { right: 10px;
}
.lightbox-close[data-v-d2902512] {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
}
.lightbox-stage[data-v-d2902512] {
    max-width: 96vw;
    max-height: 90vh;
}
.lightbox-img[data-v-d2902512] {
    max-height: 80vh;
}
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #2d3436;
  --muted: #7b8494;
  --primary: #4a7cff;
  --primary-dark: #315ec2;
  --danger: #e5484d;
  --radius: 16px;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
  --glass-blur: blur(16px) saturate(140%);
}

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

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #a8c0ff 0%, #8ec5fc 30%, #c3a8ff 65%, #ffc3a0 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: -1;
}
body::before {
  width: 460px;
  height: 460px;
  background: rgba(255, 156, 200, 0.7);
  top: -130px;
  right: -100px;
}
body::after {
  width: 400px;
  height: 400px;
  background: rgba(120, 200, 255, 0.7);
  bottom: -100px;
  left: -100px;
}

.container {
  width: min(860px, 92%);
  margin: 0 auto;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ============ 深色（夜间）主题 ============ */
:root[data-theme='dark'] {
  --text: #e6e9f0;
  --muted: #9aa3b2;
  --glass-bg: rgba(24, 28, 40, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* 深色模式下翻转白色底为深色 */
:root[data-theme='dark'] body {
  color: var(--text);
  background: linear-gradient(135deg, #232636 0%, #282b3d 30%, #2d2a45 65%, #362e33 100%);
}
:root[data-theme='dark'] .post-excerpt,
:root[data-theme='dark'] .about-card p {
  color: #b9c0cd;
}
:root[data-theme='dark'] .gallery-item figcaption {
  color: #cfd5e0;
}
:root[data-theme='dark'] .social-btn {
  color: #fff;
}
:root[data-theme='dark'] .field input,
:root[data-theme='dark'] .field textarea,
:root[data-theme='dark'] .field select {
  background: rgba(20, 24, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}
:root[data-theme='dark'] .field label {
  color: var(--muted);
}
:root[data-theme='dark'] .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
:root[data-theme='dark'] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
:root[data-theme='dark'] .btn-danger {
  background: rgba(255, 82, 82, 0.18);
}
:root[data-theme='dark'] .article-body code {
  background: rgba(255, 255, 255, 0.08);
}
:root[data-theme='dark'] .article .post-meta {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
:root[data-theme='dark'] .hero {
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.7), rgba(49, 60, 130, 0.75));
}

/* 音乐播放器 / 下拉等白色卡片 */
:root[data-theme='dark'] .music-box {
  background: #2a2e40;
}
:root[data-theme='dark'] .music-box .mb-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e6e9f0;
}
:root[data-theme='dark'] .music-box .mb-title {
  color: #cfd5e0;
}
:root[data-theme='dark'] .mb-bar {
  background: #3a3f52;
}
:root[data-theme='dark'] .mb-time {
  color: #9aa3b2;
}
:root[data-theme='dark'] .mb-dropdown {
  background: rgba(34, 38, 52, 0.98);
}
:root[data-theme='dark'] .mb-drop-name {
  color: var(--text);
}

/* 底部播放条 */
:root[data-theme='dark'] .gp-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
:root[data-theme='dark'] .gp-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
:root[data-theme='dark'] .gp-bar {
  background: rgba(255, 255, 255, 0.16);
}
:root[data-theme='dark'] .gp-dropdown {
  background: rgba(34, 38, 52, 0.98);
}
:root[data-theme='dark'] .gp-drop-name {
  color: var(--text);
}
:root[data-theme='dark'] .gp-drop-empty {
  color: var(--muted);
}
:root[data-theme='dark'] .gp-restore {
  background: rgba(30, 34, 48, 0.9);
}

/* 黑夜模式：底部播放条整体提亮，告别死灰 */
:root[data-theme='dark'] .global-player {
  background: linear-gradient(160deg, rgba(52, 60, 92, 0.72), rgba(30, 34, 48, 0.86));
  border: 1px solid rgba(120, 150, 255, 0.2);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
:root[data-theme='dark'] .global-player .gp-cover {
  background-color: #3a4158;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
:root[data-theme='dark'] .gp-play {
  background: linear-gradient(135deg, var(--primary), #9a5bff);
  box-shadow: 0 4px 14px rgba(74, 124, 255, 0.35);
}
:root[data-theme='dark'] .gp-bar {
  background: rgba(255, 255, 255, 0.14);
}
:root[data-theme='dark'] .gp-thumb {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(74, 124, 255, 0.6);
}

/* 歌词面板 */
:root[data-theme='dark'] .lyrics-sheet {
  background: rgba(28, 31, 44, 0.94);
}
:root[data-theme='dark'] .lyrics-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
:root[data-theme='dark'] .lyr-artist {
  color: var(--muted);
}

/* 评论区 */
:root[data-theme='dark'] .comment-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}
:root[data-theme='dark'] .comment-form {
  border-top-color: rgba(255, 255, 255, 0.12);
}
:root[data-theme='dark'] .comment-actions input,
:root[data-theme='dark'] .comment-actions textarea,
:root[data-theme='dark'] .comment-actions select {
  background: rgba(20, 24, 36, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
:root[data-theme='dark'] .emoji-btn {
  background: rgba(255, 255, 255, 0.08);
}
:root[data-theme='dark'] .emoji-panel {
  background: rgba(34, 38, 52, 0.98);
}
:root[data-theme='dark'] .chatter-cmt-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
}

/* 音乐详情页 */
:root[data-theme='dark'] .detail-arrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
:root[data-theme='dark'] .dc-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--glass-border);
}
:root[data-theme='dark'] .detail-progress .t,
:root[data-theme='dark'] .detail-album,
:root[data-theme='dark'] .detail-artist {
  color: var(--muted);
}
:root[data-theme='dark'] .detail-lyric-wrap {
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme='dark'] .dp-bar {
  background: rgba(255, 255, 255, 0.16);
}
:root[data-theme='dark'] .ly-over-top {
  background: linear-gradient(to bottom, rgba(28, 31, 44, 0.8), transparent);
}
:root[data-theme='dark'] .ly-over-bottom {
  background: linear-gradient(to top, rgba(28, 31, 44, 0.8), transparent);
}
:root[data-theme='dark'] .dht-dropdown {
  background: rgba(34, 38, 52, 0.98);
}
:root[data-theme='dark'] .detail-head-title:hover,
:root[data-theme='dark'] .dht-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 灯箱 */
:root[data-theme='dark'] .lightbox-close,
:root[data-theme='dark'] .lightbox-nav {
  background: rgba(255, 255, 255, 0.14);
}

/* 表单项 focus */
:root[data-theme='dark'] .field input:focus,
:root[data-theme='dark'] .field textarea:focus,
:root[data-theme='dark'] .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.25);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 14px auto 0;
  width: min(880px, 95%);
  border-radius: var(--radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.hidden {
  transform: translateY(calc(-100% - 28px));
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.4rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  position: relative;
  display: flex;
  gap: 24px;
}

/* 滑动激活指示器 */
.nav-indicator {
  position: absolute;
  top: 2px;
  height: calc(100% - 4px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #9a5bff);
  box-shadow: 0 4px 14px rgba(74, 124, 255, 0.45);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.nav-link {
  position: relative;
  z-index: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 20px;
  transition: color 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link.router-link-active {
  color: #fff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

.preview-btn {
  margin-left: 0.75rem;
  white-space: nowrap;
}

.preview-toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}
.toast-ok {
  color: #2f9e44;
  font-weight: 600;
}
.toast-error {
  color: var(--danger);
  font-weight: 600;
}

/* ============ Main ============ */
.page-wrap {
  flex: 1;
  padding: 2rem 0;
  min-height: calc(100vh - 220px);
}

/* 页面切换过渡 */
.page-enter-active {
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.page-enter-from {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}
.page-leave-to {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
}

/* 内容入场 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

/* ============ Footer ============ */
.site-footer {
  margin: 0 auto 14px;
  width: min(880px, 95%);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ Buttons ============ */
.btn {
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 124, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(74, 124, 255, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.65);
}
.btn-danger {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255, 82, 82, 0.28);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 0.82rem;
}

/* ============ Post cards ============ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease both;
}
.post-card:nth-child(2) {
  animation-delay: 0.08s;
}
.post-card:nth-child(3) {
  animation-delay: 0.16s;
}
.post-card:nth-child(4) {
  animation-delay: 0.24s;
}
.post-card:nth-child(5) {
  animation-delay: 0.32s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(31, 38, 135, 0.25);
}

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.post-card h3 a:hover {
  color: var(--primary);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(74, 124, 255, 0.15);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tag:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 10px rgba(74, 124, 255, 0.3);
  background: rgba(74, 124, 255, 0.25);
}

.post-excerpt {
  color: #5b646b;
  font-size: 0.92rem;
}

.placeholder {
  color: var(--muted);
  padding: 1rem 0;
}

/* ============ Article ============ */
.article {
  border-radius: var(--radius);
  padding: 2.2rem;
}
.article h1 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.article .post-meta {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-size: 1.3rem;
  margin: 1.6rem 0 0.6rem;
}
.article-body p {
  margin-bottom: 1rem;
}
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.article-body img:hover {
  transform: scale(1.01);
}
.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.5rem;
}
.article-body code {
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-body pre {
  margin: 1rem 0;
  overflow-x: auto;
  border-radius: 8px;
  font-size: 0.88em;
  line-height: 1.6;
}
.article-body pre.hljs {
  background: linear-gradient(135deg, rgba(30, 40, 72, 0.9), rgba(48, 40, 92, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.2rem;
  color: #abb2bf;
}
.article-body pre.hljs code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
/* 代码高亮 token 配色（适配深色蓝紫玻璃底） */
.article-body pre.hljs .hljs-comment,
.article-body pre.hljs .hljs-quote {
  color: #7f8aa3;
  font-style: italic;
}
.article-body pre.hljs .hljs-doctag,
.article-body pre.hljs .hljs-keyword,
.article-body pre.hljs .hljs-formula {
  color: #c792ea;
}
.article-body pre.hljs .hljs-section,
.article-body pre.hljs .hljs-name,
.article-body pre.hljs .hljs-selector-tag,
.article-body pre.hljs .hljs-subst {
  color: #f07178;
}
.article-body pre.hljs .hljs-literal {
  color: #56b6c2;
}
.article-body pre.hljs .hljs-string,
.article-body pre.hljs .hljs-regexp,
.article-body pre.hljs .hljs-addition,
.article-body pre.hljs .hljs-attribute,
.article-body pre.hljs .hljs-meta .hljs-string {
  color: #98c379;
}
.article-body pre.hljs .hljs-attr,
.article-body pre.hljs .hljs-variable,
.article-body pre.hljs .hljs-template-variable,
.article-body pre.hljs .hljs-type,
.article-body pre.hljs .hljs-selector-class,
.article-body pre.hljs .hljs-selector-attr,
.article-body pre.hljs .hljs-selector-pseudo,
.article-body pre.hljs .hljs-number {
  color: #d19a66;
}
.article-body pre.hljs .hljs-symbol,
.article-body pre.hljs .hljs-bullet,
.article-body pre.hljs .hljs-link,
.article-body pre.hljs .hljs-meta,
.article-body pre.hljs .hljs-selector-id,
.article-body pre.hljs .hljs-title {
  color: #61aeee;
}
.article-body pre.hljs .hljs-built_in,
.article-body pre.hljs .hljs-title.class_,
.article-body pre.hljs .hljs-class .hljs-title {
  color: #e6c07b;
}
.article-body pre.hljs .hljs-emphasis {
  font-style: italic;
}
.article-body pre.hljs .hljs-strong {
  font-weight: bold;
}
.article-body pre.hljs .hljs-link {
  text-decoration: underline;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.85), rgba(49, 94, 194, 0.85));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--glass-shadow);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr minmax(230px, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.hero-main {
  min-width: 0;
}
.hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.hero p {
  opacity: 0.92;
}

.hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  display: block;
}

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 24px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-icon {
  font-size: 1rem;
  line-height: 1;
}

/* 首页区块 */
.home-section {
  margin-bottom: 2.2rem;
}

/* 图片墙 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  margin: 0;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease both;
}

.gallery-item:nth-child(2) { animation-delay: 0.08s; }
.gallery-item:nth-child(3) { animation-delay: 0.16s; }
.gallery-item:nth-child(4) { animation-delay: 0.24s; }

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31, 38, 135, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #444;
}

.gallery-item .gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.gallery-item .gallery-caption:hover {
  color: var(--primary);
}
.gallery-caption-hint {
  color: var(--primary);
  font-size: 0.78rem;
  opacity: 0.85;
}

/* 说说 */
.chatter-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* 音乐小方块（嵌入式播放器） */
.hero-mini-player {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  transform: translateX(-30px);
}
.music-box {
  width: 210px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.mb-cover-wrap {
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.mb-cover {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mb-fallback {
  font-size: 2.4rem;
}
/* 右下角歌曲列表按钮 + 二级菜单 */
.mb-menu-btn-wrap {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 25;
}
.mb-menu-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(74, 124, 255, 0.15);
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mb-menu-btn:hover,
.mb-menu-btn.open {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}
/* 下拉歌曲菜单 + 过度动画（从右下按钮向上展开） */
.mb-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 20;
  max-height: min(58vh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mb-dropdown .mb-drop-item {
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mb-dropdown .mb-drop-item:hover {
  background: rgba(74, 124, 255, 0.1);
}
.mb-dropdown .mb-drop-item.current {
  background: rgba(74, 124, 255, 0.15);
}
.mb-drop-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
}
.mb-drop-artist {
  font-size: 0.72rem;
  color: var(--muted);
}
/* 进入/离开过度 */
.mb-drop-enter-active,
.mb-drop-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mb-drop-enter-from,
.mb-drop-leave-to {
  opacity: 0;
  transform: translateY(8px);
}
.mb-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mb-btn {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mb-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  transform: scale(1.06);
}
.mb-btn.mb-play {
  background: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
}
.mb-bar {
  width: 100%;
  height: 5px;
  background: #e3e6ec;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.mb-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}
.mb-bar-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.mb-time {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #888;
  padding-right: 36px;
  box-sizing: border-box;
}
.mb-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  color: #555;
}


.chatter-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  animation: fadeUp 0.5s ease both;
}

.chatter-item:nth-child(2) { animation-delay: 0.08s; }
.chatter-item:nth-child(3) { animation-delay: 0.16s; }

.chatter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #9a5bff);
  box-shadow: 0 0 0 4px rgba(74, 124, 255, 0.18);
}

.chatter-body p {
  font-size: 0.95rem;
}

.chatter-body time {
  font-size: 0.75rem;
  color: var(--muted);
}

.chatter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.chatter-cmt-toggle {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary);
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.chatter-cmt-toggle:hover,
.chatter-cmt-toggle.open {
  background: var(--primary);
  color: #fff;
}
.chatter-cmt {
  margin-top: 10px;
}
.chatter-cmt .comments {
  margin-top: 0;
  padding: 0.9rem 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: 1.3rem;
}
.more-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.more-link:hover {
  text-decoration: underline;
}

/* ============ 表单 ============ */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}
.field label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input,
.field textarea,
.field select {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.15);
}

.field-row {
  display: flex;
  gap: 14px;
}
.field-row > * {
  flex: 1;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mini-player {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    flex-direction: column;
    gap: 0;
    width: 200px;
    max-width: calc(100vw - 24px);
    box-shadow: var(--glass-shadow);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    border-radius: var(--radius);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav .nav-indicator {
    display: none;
  }
  .nav-link.router-link-active {
    background: linear-gradient(135deg, var(--primary), #9a5bff);
  }
  .main-nav a {
    padding: 12px;
  }
  .nav-toggle {
    display: block;
  }
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ============ 可视化页面（自定义页面拖动元素） ============ */
.vp-canvas {
  position: relative;
  width: 780px;
  max-width: 100%;
  margin: 0 auto;
}
.vp-block {
  position: absolute;
}
.vp-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 4px;
}
.vp-block-heading .vp-inner {
  justify-content: center;
}
.vp-block-divider .vp-inner,
.vp-block-space .vp-inner {
  justify-content: center;
  padding: 0;
}
.vp-block-divider .vp-inner::before {
  content: '';
  height: 2px;
  width: 100%;
  background: #aab2bd;
  border-radius: 2px;
}
.vp-block-quote .vp-inner {
  border-left: 4px solid var(--primary);
  padding-left: 14px;
}
.vp-block-image .vp-inner {
  padding: 0;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.vp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-blocks-empty {
  overflow-x: auto;
}

/* GP */
.global-player{position:fixed;left:50%;bottom:1.2rem;transform:translateX(-50%);z-index:999;display:flex;align-items:center;gap:12px;width:min(720px,calc(100vw - 32px));padding:10px 14px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
/* ============ 全局底部播放条 ============ */
.global-player {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(720px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.gp-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.gp-fallback { font-size: 1.4rem; }

.gp-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.gp-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.gp-artist {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.gp-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gp-btn:hover { background: rgba(255, 255, 255, 0.8); }
.gp-play {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
}
.gp-play:hover { background: var(--primary); opacity: 0.9; }
.gp-bar {
  flex: 1 1 140px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
  position: relative;
  cursor: pointer;
  flex-shrink: 1;
}
.gp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--primary);
}
.gp-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  transform: translate(-50%, -50%);
}

@media (max-width: 560px) {
  .global-player { gap: 8px; padding: 8px 10px; }
  .gp-meta { display: none; }
}

/* 隐藏/显示播放条 */
.gp-close {
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.65;
}
.gp-close:hover {
  opacity: 1;
}
/* 歌曲列表下拉（底部播放条） */
.gp-list-wrap {
  position: relative;
  flex-shrink: 0;
}
.gp-list {
  font-size: 1rem;
}
.gp-list.open {
  background: rgba(74, 124, 255, 0.2);
}
.gp-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  max-height: min(50vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 30;
  padding: 6px;
}
.gp-drop-item {
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gp-drop-item:hover {
  background: rgba(74, 124, 255, 0.1);
}
.gp-drop-item.current {
  background: rgba(74, 124, 255, 0.16);
}
.gp-drop-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.gp-drop-artist {
  font-size: 0.76rem;
  color: var(--muted);
}
.gp-drop-empty {
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.gp-list-dd-enter-active,
.gp-list-dd-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gp-list-dd-enter-from,
.gp-list-dd-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}
.gp-restore {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  margin-left: -22px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  font-size: 1.1rem;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease;
  touch-action: none;
  user-select: none;
}
.gp-restore:hover {
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.25);
}
.gp-restore:active {
  cursor: grabbing;
}
.gp-restore-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) calc(var(--p, 0) * 1%),
    rgba(74, 124, 255, 0.18) calc(var(--p, 0) * 1%)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 2px));
  transform: scaleX(-1);
  pointer-events: none;
  transition: background 0.2s linear;
}
.gp-restore.dragged {
  left: auto;
  bottom: auto;
  margin-left: 0;
  cursor: grabbing;
}

/* 播放条隐藏 / 显示动画 */
.gp-hide-leave-active {
  transition: transform 0.28s cubic-bezier(0.55, 0, 0.75, 0.45), opacity 0.28s ease;
  transform-origin: center bottom;
}
.gp-hide-leave-to {
  transform: translateX(-50%) scale(0.04) translateY(4px);
  opacity: 0;
}
.gp-hide-enter-active {
  transition: opacity 0.3s ease 0.18s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
.gp-hide-enter-from {
  opacity: 0;
  transform: translateX(-50%) translateY(28px) scale(0.82);
}
.gp-restore-enter-active {
  animation: gpRestoreBounce 0.55s cubic-bezier(0.36, 1.6, 0.5, 1);
}
.gp-restore-leave-active {
  transition: transform 0.24s ease-in, opacity 0.24s ease-in;
  transform-origin: center;
}
.gp-restore-leave-to {
  transform: scale(5.5);
  opacity: 0;
}
@keyframes gpRestoreBounce {
  0% { transform: scale(0); opacity: 0; }
  55% { transform: scale(1.3); opacity: 1; }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); opacity: 1; }
}

/* 下滑自动隐藏：播放条整体向下缩出 */
.global-player {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.global-player.bar-slid {
  transform: translateX(-50%) translateY(130%);
  opacity: 0;
  pointer-events: none;
}

/* ============ 唱片 + 均衡器 胶囊播放器 ============ */
.music-capsule {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(240, 244, 252, 0.88));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  max-width: calc(100vw - 24px);
}
:root[data-theme='dark'] .music-capsule {
  background: linear-gradient(160deg, rgba(52, 60, 92, 0.86), rgba(30, 34, 48, 0.94));
  border-color: rgba(120, 150, 255, 0.22);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mc-disc {
  position: relative;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #2a2a35, #111);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.mc-disc.spinning {
  animation: mcDiscSpin 3.5s linear infinite;
}
@keyframes mcDiscSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.mc-disc-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.mc-disc-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7);
  z-index: 2;
}
.mc-disc-fallback {
  font-size: 1.1rem;
  color: #fff;
}
.mc-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 130px;
}
.mc-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-artist {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mc-btn:hover { background: rgba(255, 255, 255, 0.9); }
.mc-btn:active { transform: scale(0.92); }
:root[data-theme='dark'] .mc-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
:root[data-theme='dark'] .mc-btn:hover { background: rgba(255, 255, 255, 0.2); }
.mc-play {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
}
.mc-play:hover { background: var(--primary); opacity: 0.9; }
:root[data-theme='dark'] .mc-play {
  background: linear-gradient(135deg, var(--primary), #9a5bff);
}
.mc-eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding: 0 2px;
  flex-shrink: 0;
}
.mc-eq-bar {
  width: 3px;
  height: 24%;
  border-radius: 2px;
  background: var(--primary);
  transition: height 0.2s ease;
}
.mc-eq.on .mc-eq-bar {
  animation: mcEqBounce 0.9s ease-in-out infinite;
}
.mc-eq.on .mc-eq-bar:nth-child(1) { animation-delay: 0s; }
.mc-eq.on .mc-eq-bar:nth-child(2) { animation-delay: 0.18s; }
.mc-eq.on .mc-eq-bar:nth-child(3) { animation-delay: 0.36s; }
.mc-eq.on .mc-eq-bar:nth-child(4) { animation-delay: 0.12s; }
@keyframes mcEqBounce {
  0%, 100% { height: 24%; }
  50% { height: 100%; }
}
.mc-expand, .mc-close {
  opacity: 0.72;
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}
.mc-expand:hover, .mc-close:hover { opacity: 1; }

.capsule-slide-enter-active {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.capsule-slide-leave-active {
  transition: transform 0.22s ease-in, opacity 0.2s ease-in;
}
.capsule-slide-enter-from {
  opacity: 0;
  transform: translateX(-50%) scale(0.85) translateY(24px);
}
.capsule-slide-leave-to {
  opacity: 0;
  transform: translateX(-50%) scale(0.8) translateY(28px);
}

@media (max-width: 560px) {
  .music-capsule { gap: 6px; padding: 7px 9px; }
  .mc-meta { max-width: 84px; }
  .mc-prev, .mc-next { display: none; }
}

/* ============ 歌词面板（底部向上拉起） ============ */
.gp-cover-link { cursor: pointer; }
.lyrics-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.lyrics-sheet {
  width: min(800px, 100vw);
  height: 74vh;
  border-radius: 20px 20px 0 0;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.86);
}
.lyrics-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.lyr-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.lyr-meta { flex: 1; min-width: 0; }
.lyr-title { font-weight: 700; font-size: 1.05rem; }
.lyr-artist { font-size: 0.82rem; color: var(--muted); }
.lyrics-body {
  flex: 1;
  overflow-y: auto;
  margin-top: 14px;
  text-align: center;
  line-height: 1.9;
  scroll-behavior: smooth;
}
.lyr-line {
  padding: 9px 12px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}
.lyr-line.active {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.12rem;
}
.lyr-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.lyr-enter-active { transition: opacity 0.28s ease; }
.lyr-leave-active { transition: opacity 0.22s ease; }
.lyr-enter-from, .lyr-leave-to { opacity: 0; }
.lyr-enter-active .lyrics-sheet { transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.lyr-leave-active .lyrics-sheet { transition: transform 0.24s ease-in; }
.lyr-enter-from .lyrics-sheet, .lyr-leave-to .lyrics-sheet { transform: translateY(100%); }

/* ============ Mobile Optimization ============ */

/* --- 触摸设备：禁用 hover 上浮效果 --- */
@media (hover: none) {
  .post-card:hover,
  .gallery-item:hover,
  .social-btn:hover,
  .tag:hover,
  .chatter-cmt-toggle:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
  }
  .gallery-item:hover img {
    transform: none;
  }
  .nav-link:hover {
    transform: none;
  }
  .gp-btn:hover,
  .mb-btn:hover {
    transform: none;
  }
}

/* --- ≤640px 主要移动适配 --- */
@media (max-width: 640px) {
  /* 安全区域 */
  body {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* 间距收紧 */
  .page-wrap {
    padding: 1.2rem 0 5rem;
  }
  .hero {
    padding: 1.6rem 1.2rem;
    margin-bottom: 1.6rem;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-avatar {
    width: 72px;
    height: 72px;
  }
  .post-card {
    padding: 1rem 1.1rem;
  }
  .post-card h3 {
    font-size: 1.05rem;
  }
  .article {
    padding: 1.3rem 1.1rem;
  }
  .article h1 {
    font-size: 1.35rem;
  }
  .article-body h2 {
    font-size: 1.15rem;
  }
  .comments {
    padding: 1.1rem 1rem;
  }
  .chatter-item {
    padding: 0.8rem 0.9rem;
  }

  /* 画廊网格更紧凑 */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
  }
  .gallery-item img {
    height: 130px;
  }

  /* Hero 迷你播放器 */
  .hero-mini-player {
    transform: none;
    margin-top: 1rem;
  }
  .music-box {
    width: 180px;
    padding: 10px;
  }
  .mb-cover {
    width: 100px;
    height: 100px;
  }

  /* 社交按钮触摸友好 */
  .social-btn {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  /* 底部播放条 */
  .global-player {
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0));
    width: min(720px, calc(100vw - 20px));
    padding: 8px 10px;
    gap: 8px;
    border-radius: 16px;
  }
  .gp-btn {
    width: 36px;
    height: 36px;
  }
  .gp-play {
    width: 42px;
    height: 42px;
  }
  .gp-cover {
    width: 40px;
    height: 40px;
  }

  /* 恢复按钮 */
  .gp-restore {
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0));
  }

  /* 歌词面板全屏化 */
  .lyrics-sheet {
    width: 100vw;
    height: 85vh;
    border-radius: 16px 16px 0 0;
    padding: 14px 14px 12px;
  }
  .lyr-cover {
    width: 44px;
    height: 44px;
  }
  .lyr-title {
    font-size: 0.95rem;
  }

  /* 导航栏高度微调 */
  .site-header {
    top: 10px;
    margin-top: 10px;
  }
  .header-inner {
    height: 52px;
    padding: 0 1rem;
  }
  .logo {
    font-size: 1.15rem;
  }

  /* Footer */
  .site-footer {
    padding: 1rem;
    margin-bottom: calc(14px + env(safe-area-inset-bottom, 0));
  }

  /* 按钮触摸友好 */
  .btn {
    padding: 10px 18px;
    font-size: 0.92rem;
  }
  .btn-sm {
    padding: 7px 14px;
  }

  /* 表单输入加大 */
  .field input,
  .field textarea,
  .field select {
    padding: 10px 12px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }

  /* 代码块横向滚动提示 */
  .article-body pre {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* 页面切换过渡简化 */
  .page-enter-from {
    transform: translateY(10px);
  }
}

/* --- ≤400px 超小屏进一步压缩 --- */
@media (max-width: 400px) {
  .hero {
    padding: 1.2rem 1rem;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-item img {
    height: 110px;
  }
  .post-card {
    padding: 0.85rem 0.9rem;
  }
  .article {
    padding: 1rem 0.85rem;
  }
}

/* --- iOS 背景修复 --- */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}
