/* ── 重置 ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: #1a1a2e;
  color: #ffffff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── 玻璃卡片（独立页面复用） ──────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════
   加载遮罩（首次访问）
   ═══════════════════════════════════════ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-box {
  text-align: center;
}

.loader-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
}

.loader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loader-name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.loader-desc {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.loader-bar-track {
  width: 260px;
  height: 4px;
  margin: 0 auto;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #a855f7;
  border-radius: 2px;
  transition: width 0.3s linear;
}

/* ── 顶栏 ─────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.menu-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.menu-btn:hover { background: rgba(255, 255, 255, 0.16); }

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  margin-left: 12px;
  letter-spacing: 0.5px;
  color: #ffffff;
  flex: 1;
  overflow: hidden;
}

.marquee-wrap {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  animation: marquee 12s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── 遮罩 ─────────────────────────────── */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════
   侧边导航 — 毛玻璃
   ═══════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 56px; left: 0;
  width: 240px;
  height: calc(100% - 56px);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 95;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open { transform: translateX(0); }

.sidebar-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-list { padding: 16px 0; flex-shrink: 0; }

.nav-item {
  display: block;
  padding: 14px 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* ── 更多页面提示 ────────────────────── */
.sidebar-more {
  padding: 8px 28px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* ── 侧边栏底部用户卡片 ──────────────── */
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  flex-shrink: 0;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s;
}

.user-card:hover { background: rgba(255,255,255,0.06); }

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   主页 — 全屏模糊背景
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.hero-slides { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide:nth-child(1) { opacity: 1; }

.hero-blur {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: backdrop-filter 1.2s ease;
  z-index: 1;
}

.hero-blur.high-blur {
  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);
}

/* ── 前景：卡片垂直居中 ─────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 24px;
}

/* ═══════════════════════════════════════
   二级 UI — 白色毛玻璃卡片
   头像缩小 1/4，左上角定位，下半留空
   ═══════════════════════════════════════ */
.profile-card {
  display: block;
  width: 100%;
  max-width: 380px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: #ffffff;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
}

.profile-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* 头像：缩小到约 1/4 (64px) */
.profile-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info { flex: 1; min-width: 0; padding-top: 4px; }

.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.profile-bio {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ── 下半：三级 UI — 搜索引擎链接（内嵌） ── */
.profile-footer {
  margin-top: 12px;
  min-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 12px;
}

/* ── 卡片间距 ──────────────────────── */
.hero-content { gap: 16px; }

/* ── 纯白毛玻璃按钮 ──────────────────── */
.s-btn {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.s-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   帖子 & 联系我 — 普通面板
   ═══════════════════════════════════════ */
.content { margin-top: 56px; min-height: calc(100vh - 56px); }

.panel { display: none; }

.panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#panel-posts, #panel-contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

#panel-posts h2, #panel-contact h2 {
  font-size: 26px; font-weight: 700; margin-bottom: 16px;
}

#panel-posts p, #panel-contact p {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════
   /about 页面
   ═══════════════════════════════════════ */
.about-page {
  max-width: 800px; margin: 0 auto; padding: 48px 24px;
}

.about-page h2 {
  font-size: 26px; font-weight: 700; margin-bottom: 16px;
}

.about-page p {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════
   /wechat 页面
   ═══════════════════════════════════════ */
.wechat-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.wechat-tip {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 32px;
}

.wechat-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
}

.wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════
   播放器卡片（同毛玻璃风格）
   ═══════════════════════════════════════ */
.player-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 16px;
  color: #ffffff;
}

.player-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 圆形封面 */
.player-cover {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.20);
  transition: transform 0.05s linear;
}

.player-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* 旋转动画 */
.player-cover.spin {
  animation: coverSpin 6s linear infinite;
}

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

.player-info { flex: 1; min-width: 0; }

.player-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-lyrics {
  min-height: 32px;
}

.lyric-line {
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.3s;
}

.lyric-line.current {
  color: rgba(255, 255, 255, 0.90);
}

.lyric-line.next {
  color: rgba(255, 255, 255, 0.35);
}

/* ── 进度条 ──────────────────── */
.player-progress {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prog-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  min-width: 32px;
}

.prog-label:first-child { text-align: left; }
.prog-label:last-child  { text-align: right; }

.prog-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: #a855f7;
  border-radius: 3px;
}

.prog-knob {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  cursor: grab;
  z-index: 2;
}

/* ── 控制按钮 ──────────────────── */
.player-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s;
  line-height: 1;
}

.pc-btn:hover { background: rgba(255, 255, 255, 0.12); }

.pc-play {
  font-size: 20px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-play:hover { background: rgba(255, 255, 255, 0.22); }

/* ═══════════════════════════════════════
   登录 / 后台页面
   ═══════════════════════════════════════ */
.auth-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  max-width: 380px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.auth-field {
  width: 100%;
  margin-bottom: 14px;
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.auth-field input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: rgba(255,255,255,0.30);
}

.auth-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}

.auth-btn:hover { background: rgba(255,255,255,0.22); }

.auth-err {
  color: #f87171;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}

/* ── 最新帖子小卡片 ──────────────────── */
.latest-section { width:100%; max-width:380px; }
.post-card{display:block;margin-bottom:20px;overflow:hidden;cursor:pointer;transition:transform 0.25s,box-shadow 0.25s;}
.post-card:hover{transform:translateY(-3px);box-shadow:0 12px 40px rgba(0,0,0,0.20);}
.post-img{width:100%;height:180px;overflow:hidden;background:rgba(255,255,255,0.04);}
.latest-section .post-img{height:90px;}
.post-img img{width:100%;height:100%;object-fit:cover;display:block;}
.post-img .placeholder{display:flex;align-items:center;justify-content:center;height:100%;font-size:32px;color:rgba(255,255,255,0.12);}
.post-body{padding:16px 18px 18px;}
.post-body h3{font-size:17px;font-weight:600;margin-bottom:4px;}
.post-body .preview{font-size:13px;color:rgba(255,255,255,0.5);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.post-body .meta{font-size:11px;color:rgba(255,255,255,0.25);margin-top:6px;}

.hero-spacer { flex: 1; }
