:root {
  --bg: #0b0e15;
  --bg2: #10151f;
  --card: #151b28;
  --line: #232c3e;
  --text: #e9edf6;
  --muted: #93a1b8;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img, video, audio { -webkit-user-drag: none; }
html, body { min-height: 100%; }

::selection { background: rgba(99, 102, 241, .45); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3450; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4766; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 顶部导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 21, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

/* 开放时间公告条 */
.notice-bar {
  background: linear-gradient(90deg, #7dd3fc, #bae6fd);
  color: #0c4a6e;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 16px;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.notice-icon { margin-right: 8px; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg2); }
.nav-link.active { color: var(--text); background: var(--bg2); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.search {
  width: min(180px, 28vw);
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.search:focus { border-color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); background: #1a2130; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.btn.danger:hover { background: rgba(239, 68, 68, .12); border-color: var(--danger); }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 8px; }

/* 首页 hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(99, 102, 241, .25), transparent 70%),
    radial-gradient(600px 260px at 85% 10%, rgba(34, 211, 238, .18), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: -90px;
  background: rgba(99, 102, 241, .35);
  animation: heroFloat1 9s ease-in-out infinite;
}
.hero::after {
  width: 220px;
  height: 220px;
  right: -50px;
  top: -80px;
  background: rgba(34, 211, 238, .28);
  animation: heroFloat2 11s ease-in-out infinite;
}
@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, -18px); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-22px, 16px); }
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 20px 50px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-brand { display: flex; align-items: center; gap: 20px; }
.hero-logo {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(99, 102, 241, .5);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  background: linear-gradient(90deg, #c7d2fe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 2px;
  font-size: 14px;
}
.hero-count {
  display: inline-block;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

/* 页面主体 */
.page { max-width: 1160px; margin: 0 auto; padding: 24px 20px 60px; }

/* 分类 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chips-label {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 2px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* 视频网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: fadeUp .5s ease both;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.thumb { position: relative; padding-bottom: 56.25%; background: #0d1220; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.thumb.ph { display: flex; align-items: center; justify-content: center; }
.ph-letter {
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}
.play-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.card-body { padding: 10px 11px 12px; }
.card-title {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.card:hover .card-title { color: #b6bcfb; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.cat {
  background: rgba(99, 102, 241, .16);
  color: #b6bcfb;
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 内容标签 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  background: rgba(99, 102, 241, .14);
  color: #b6bcfb;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  white-space: nowrap;
}
.pin-mark {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, .5);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 46px; margin-bottom: 12px; }
.empty p { margin: 4px 0; font-size: 15px; color: var(--text); }
.empty .muted { color: var(--muted); font-size: 13.5px; }

/* 播放页 */
.player-card { margin-bottom: 34px; }
.player-card video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
  max-height: 74vh;
  border: 1px solid var(--line);
}
.loop-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.loop-label {
  color: var(--muted);
  font-size: 13px;
  margin-right: 2px;
}
.loop-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.loop-btn:hover { color: var(--text); border-color: var(--accent); }
.loop-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.now-playing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.player-body { display: flex; gap: 18px; align-items: flex-start; }
.playlist-col {
  flex: 0 0 220px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--card);
}
.playlist-title { font-weight: 700; margin-bottom: 8px; font-size: 12px; white-space: nowrap; padding: 6px 9px; background: var(--bg2); border-radius: 6px; }
.player-main { flex: 1; min-width: 0; }
.audio-ctrl { display: flex; align-items: center; gap: 8px; }
.audio-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.audio-btn:hover { border-color: var(--accent); color: #fff; }
.audio-btn.main {
  background: rgba(242, 193, 78, .15);
  color: #f2c14e;
  border-color: #f2c14e;
  font-weight: 800;
  padding: 6px 18px;
}
.track-list { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.track-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}
.track-item:hover { border-color: var(--accent); }
.track-item.active { border-color: var(--accent); background: var(--bg2); }
.track-num { color: var(--muted); font-size: 11px; min-width: 18px; }
.track-title { flex: 1; font-weight: 600; font-size: 13px; }
.track-like { padding: 1px 6px; font-size: 11px; flex-shrink: 0; }
.lyrics-box {
  margin-top: 10px;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--card);
}
.lyric-line { padding: 2px 0; color: var(--muted); font-size: 14px; line-height: 1.7; transition: color .2s, transform .2s; }
.track-group-chips { margin-bottom: 10px; gap: 6px; }
.track-group-chips .chip { padding: 4px 11px; font-size: 12px; }
.lyric-line.active { color: #f2c14e; font-weight: 700; transform: translateX(2px); }
.album-cover { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; display: block; }
#albumGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
#albumGrid .gallery-item { margin: 0; }
#albumGrid .gallery-item figcaption { padding: 7px 9px; }
#albumGrid .gallery-title { font-size: 12px; }
#albumGrid .gallery-desc { display: block; font-size: 11px; margin-top: 3px; line-height: 1.5; }
.player-info { margin-top: 18px; }
.player-info h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.desc { color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.section-title { font-size: 19px; font-weight: 700; margin: 6px 0 18px; }
.section-title {
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

/* 分类展示 */
.cats-show { margin-bottom: 26px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: fadeUp .5s ease both;
}
.cat-card:nth-child(2) { animation-delay: .08s; }
.cat-card:nth-child(3) { animation-delay: .16s; }
.cat-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, .8); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 158px; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 20px 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}
.cat-card-name { font-size: 19px; font-weight: 700; color: #fff; }
.cat-card-desc { font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.cat-count {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f2c14e;
  background: rgba(0, 0, 0, .28);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 2px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 栏目页 */
.page-banner img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.intro-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.intro-card h2 { font-size: 19px; margin-bottom: 10px; }
.intro-card p { color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* 管理后台 */
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-head h2 { font-size: 22px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--text); border-color: var(--accent); }
.admin-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.sub-tab {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.sub-tab:hover { color: var(--text); border-color: var(--accent); }
.sub-tab.active {
  background: var(--accent2);
  color: #fff;
  border-color: var(--accent2);
  font-weight: 600;
}
.sub-panel { display: none; }
.sub-panel.active { display: block; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
}
.admin-card h2 { margin-bottom: 6px; }
.admin-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.admin-card label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); }
.admin-card input[type="text"],
.admin-card input[type="password"],
.admin-card textarea {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.admin-card input:focus, .admin-card textarea:focus { border-color: var(--accent); }
.admin-card input[type="file"] { font-size: 13.5px; color: var(--muted); }
.admin-card input[type="file"]::file-selector-button {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 13px;
}
.admin-card input[type="file"]::file-selector-button:hover { border-color: var(--accent); }
.admin-card .btn { align-self: flex-start; padding: 10px 26px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, .7);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-inner {
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.img-preview { margin-top: 6px; }
.img-preview img {
  max-width: 220px;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
}

.img-preview-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.img-preview-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  cursor: grab;
}
.img-preview-cell.dragging { opacity: .45; }
.img-preview-cell:active { cursor: grabbing; }
.img-order {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.img-preview-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress {
  flex: 1;
  height: 8px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .2s;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.admin-thumb { width: 130px; flex-shrink: 0; }
.admin-thumb .thumb { padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; }
.admin-thumb .ph-letter { font-size: 26px; }
.admin-main { flex: 1; min-width: 0; }
.admin-title {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.size-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.admin-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-num {
  font-size: 15px;
  font-weight: 700;
  color: #67e8f9;
  white-space: nowrap;
}

/* 访问统计 */
.stats-card { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* 后台图片缩略图 */
.admin-thumb-img { width: 96px; flex-shrink: 0; }
.admin-thumb-img img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--line);
}

/* 图库 */
.gallery {
  column-count: 3;
  column-gap: 20px;
}
.gallery-item {
  margin: 0 0 20px;
  break-inside: avoid;
  page-break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: fadeUp .5s ease both;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 13px 16px 15px; }
.gallery-title { font-weight: 600; font-size: 15px; }
.gallery-desc { color: var(--muted); font-size: 13.5px; margin-top: 5px; line-height: 1.7; }
.gallery-count { color: var(--muted); font-size: 11px; margin-top: 3px; }
.gallery-meta { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.gallery-lock {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #232c3e, #151b28);
  font-size: 40px;
}

/* 微博式图文流（浮光叙） */
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  animation: fadeUp .5s ease both;
}
.post-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.post-title { font-weight: 700; font-size: 16px; }
.post-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.post-text { color: var(--text); font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; margin-bottom: 10px; }
.post-images { display: grid; gap: 6px; max-width: 520px; }
.post-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #0d1220;
  cursor: pointer;
  transition: transform .2s ease;
}
.post-images img:hover { transform: scale(1.02); }
.post-lock { aspect-ratio: 1 / 1; max-width: 320px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.post-lock .gallery-lock { height: 100%; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.post-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.post-comment-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.post-comment-btn:hover { color: var(--text); }
.post-comments { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.post-comments .msg-form { margin-bottom: 10px; }

/* 图片大图预览 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, .88);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav-wrap { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.lightbox-nav {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-counter { color: #fff; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.lightbox-info { padding: 16px 20px 18px; }
.lightbox-title { font-size: 19px; font-weight: 700; }
.lightbox-desc { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.8; white-space: pre-wrap; }
.lightbox-meta { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.lightbox-comments { padding: 0 20px 18px; }
.lightbox-comments .msg-form { padding: 16px; margin-bottom: 12px; }
.lightbox-unlock { padding: 16px 20px; }

/* 问答解锁 */
.unlock-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 12px 0;
}
.unlock-q { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.unlock-form { display: flex; gap: 10px; flex-wrap: wrap; }
.unlock-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
}
.unlock-form input:focus { border-color: var(--accent); }

/* 留言板 */
.messages { max-width: 860px; }
.msg-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.msg-form input[type="text"],
.msg-form textarea {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--accent); }
.msg-form .btn { align-self: flex-start; }
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.msg-left { display: inline-flex; align-items: center; gap: 6px; }
.msg-name { font-weight: 700; font-size: 15px; color: #b6bcfb; }
.msg-time { color: var(--muted); font-size: 12.5px; }
.msg-content { color: var(--text); font-size: 14.5px; margin-top: 8px; line-height: 1.8; white-space: pre-wrap; }
.msg-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.reply-list { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.admin-name { color: #f2c14e; }
.admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d774, #d9a31b);
  color: #3a2c00;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
.like-btn {
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  cursor: pointer;
}
.like-btn:hover { color: var(--text); border-color: var(--accent); }
.like-btn.liked { color: #f2c14e; border-color: #f2c14e; }
.reply-toggle {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 2px 6px;
}
.reply-toggle:hover { color: var(--text); }
.reply-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reply-form input[type="text"] {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  flex: 1 1 140px;
  min-width: 0;
}
.reply-form textarea {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  width: 100%;
  resize: vertical;
  font-family: inherit;
}
.reply-form input:focus, .reply-form textarea:focus { border-color: var(--accent); }

/* toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 50;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(34, 197, 94, .5); color: #86efac; }
.toast.err { border-color: rgba(239, 68, 68, .5); color: #fca5a5; }

/* 页脚 */
.foot {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 34px 20px 42px;
}
.foot-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 10px;
}
.foot-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.foot-line {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .gallery { column-count: 2; }
}

@media (max-width: 800px) {
  .player-body { flex-direction: column; }
  .playlist-col { flex: 1 1 auto; max-height: 240px; width: 100%; }
}

@media (max-width: 640px) {
  .search { width: 76px; flex-shrink: 1; min-width: 0; }
  .nav-inner { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .nav-right { gap: 6px; }
  .brand { font-size: 14px; gap: 5px; }
  .brand-logo { width: 22px; height: 22px; }
  .nav-link { font-size: 13px; padding: 5px 7px; }
  .admin-item { flex-wrap: wrap; }
  .admin-actions { margin-left: auto; }
  .gallery { column-count: 1; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card-body { padding: 6px 7px 7px; }
  .card-title { font-size: 11px; }
  .card .tags { display: none; }
  .card-meta { font-size: 10px; gap: 4px; margin-top: 4px; }
  .card-meta span:last-child { display: none; }
  .cat { font-size: 9px; padding: 1px 4px; }
  .cat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card img { height: 118px; }
  #albumGrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  #albumGrid .gallery-title { font-size: 12px; }
  #albumGrid .gallery-desc { display: none; }
  #albumGrid .gallery-count { font-size: 10px; margin-top: 2px; }
}
