/* ==========================================================================
   个人网站 · 公开站样式
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-soft: #0d0d10;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --line: #26262c;
  --line-soft: #1d1d22;
  --text: #f1f0ea;
  --text-2: #a6a6b0;
  --text-3: #6b6b76;
  --accent: #f0783c;
  --accent-dim: rgba(240, 120, 60, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-bottom: 80px;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #0a0a0c;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ------------------------------- 顶部导航 ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
  border-radius: 9px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-admin {
  margin-left: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--accent);
  border: 1px solid rgba(240, 120, 60, 0.34);
  transition: background 0.18s ease;
}

.nav-admin:hover {
  background: var(--accent-dim);
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  padding: 104px 0 76px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240, 120, 60, 0.16), transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-inner {
  max-width: 940px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 26px;
  max-width: 16em;
}

.hero-intro {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat:hover {
  border-color: #3a3a44;
  transform: translateY(-1px);
}

.stat-num {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
}

/* -------------------------------- 区块头 -------------------------------- */

.section {
  padding-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-more {
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.18s ease;
}

.section-more:hover {
  color: var(--accent);
}

/* ------------------------------- 文章卡片 ------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.post-card:hover {
  border-color: #3a3a44;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.post-card-date {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.post-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.post-card-summary {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.post-card-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}

.tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
}

/* ------------------------------- 视频卡片 ------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.video-card:hover {
  border-color: #3a3a44;
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-card:hover .play-badge {
  background: var(--accent);
  color: #14100a;
  transform: scale(1.06);
}

.video-info {
  padding: 14px 16px 16px;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 12.5px;
  color: var(--text-3);
}

.video-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-private {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.video-thumb .badge-private {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
}

/* ------------------------------- 音频列表 ------------------------------- */

.audio-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}

.audio-row:hover {
  background: var(--surface);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  flex: none;
}

.audio-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--text-3);
  height: 40%;
  transition: background 0.2s ease;
}

.audio-bars i:nth-child(2) { height: 70%; }
.audio-bars i:nth-child(3) { height: 100%; }
.audio-bars i:nth-child(4) { height: 55%; }
.audio-bars i:nth-child(5) { height: 80%; }

.audio-row:hover .audio-bars i {
  background: var(--accent);
}

.audio-row:hover .audio-bars i {
  animation: bar-pulse 0.9s ease-in-out infinite alternate;
}

.audio-row:hover .audio-bars i:nth-child(2) { animation-delay: 0.12s; }
.audio-row:hover .audio-bars i:nth-child(3) { animation-delay: 0.24s; }
.audio-row:hover .audio-bars i:nth-child(4) { animation-delay: 0.36s; }
.audio-row:hover .audio-bars i:nth-child(5) { animation-delay: 0.48s; }

@keyframes bar-pulse {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.audio-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.audio-row-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-row-sub {
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-row-play {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  flex: none;
  transition: all 0.18s ease;
}

.audio-row:hover .audio-row-play {
  border-color: var(--accent);
  color: var(--accent);
}

/* 音频网格（媒体页） */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.audio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audio-card:hover {
  border-color: #3a3a44;
  background: var(--surface-2);
}

.audio-card-play {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(240, 120, 60, 0.3);
  transition: all 0.18s ease;
}

.audio-card-play:hover {
  background: var(--accent);
  color: #14100a;
}

.audio-card-body {
  flex: 1;
  min-width: 0;
}

.audio-card-title {
  font-size: 15px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-card-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-card-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: all 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: #3a3a44;
}

/* -------------------------------- 图片墙 -------------------------------- */

.image-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.image-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.image-tile:hover img {
  transform: scale(1.045);
}

.image-wall {
  columns: 4;
  column-gap: 12px;
}

.image-wall .image-tile {
  aspect-ratio: auto;
  margin-bottom: 12px;
  break-inside: avoid;
}

.image-wall .image-tile img {
  height: auto;
}

.image-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-tile:hover .image-tile-name {
  opacity: 1;
}

/* ------------------------------- 文件行 -------------------------------- */

.file-rows {
  border-top: 1px solid var(--line-soft);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease;
}

.file-row:hover {
  background: var(--surface);
}

.file-row-ext {
  width: 52px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.file-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-row-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-sub {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.file-row-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* --------------------------------- 标签条 -------------------------------- */

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.18s ease;
}

.chip:hover {
  color: var(--text);
  border-color: #3a3a44;
}

.chip.is-on {
  background: var(--text);
  color: #0a0a0c;
  border-color: var(--text);
}

.chip-n {
  font-size: 11.5px;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------- 页头 -------------------------------- */

.page-head {
  padding-top: 68px;
  padding-bottom: 36px;
}

.page-title {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-sub {
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 560px;
}

/* ------------------------------- 文章列表 -------------------------------- */

.post-rows {
  border-top: 1px solid var(--line-soft);
}

.post-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease, padding-left 0.18s ease;
}

.post-row:hover {
  background: var(--surface);
  padding-left: 14px;
}

.post-row-date {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.post-row-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.post-row-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.post-row-summary {
  font-size: 13.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row-time {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

/* -------------------------------- 文章详情 ------------------------------- */

.article {
  padding-bottom: 40px;
}

.article-head {
  padding-top: 64px;
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--accent);
}

.article-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 18px;
}

.article-summary {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.dot {
  opacity: 0.5;
}

.badge-draft {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(240, 120, 60, 0.4);
  color: var(--accent);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.article-admin {
  margin-top: 20px;
}

.article-cover {
  max-width: 760px;
  margin: 36px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover img {
  width: 100%;
}

.article-foot {
  max-width: 760px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.next-post {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next-post-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-post-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.18s ease;
}

.next-post:hover .next-post-title {
  color: var(--accent);
}

/* --------------------------------- 正文排版 ------------------------------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.82;
  color: #dcdbe3;
  padding-top: 40px;
}

.prose-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 0;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.prose h1 { font-size: 1.72em; }
.prose h2 { font-size: 1.42em; }
.prose h3 { font-size: 1.18em; }
.prose h4 { font-size: 1.02em; }

.prose p {
  margin: 0;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(240, 120, 60, 0.32);
  transition: border-color 0.18s ease;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin: 0;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--text-3);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text-2);
  font-style: normal;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: #f2b48d;
}

.prose pre {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #d6d5dd;
  font-size: inherit;
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1.8em auto;
  border: 1px solid var(--line-soft);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
}

/* ------------------------------ 媒体详情 ------------------------------- */

.media-detail {
  padding-top: 56px;
  max-width: 980px;
}

.media-stage {
  margin: 24px 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.stage-video {
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.stage-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #050506;
  margin: 0 auto;
}

.stage-fallback {
  padding: 52px 30px;
  text-align: center;
  color: var(--text-2);
  background: var(--surface);
}

.stage-fallback h3 {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 10px;
}

.stage-fallback p {
  font-size: 14px;
}

.stage-audio {
  padding: 34px 30px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.stage-audio-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 96px;
  margin-bottom: 26px;
  opacity: 0.72;
}

.stage-audio-visual i {
  width: 4px;
  border-radius: 3px;
  height: var(--h);
  background: linear-gradient(var(--accent), rgba(240, 120, 60, 0.25));
}

.stage-audio-el {
  width: 100%;
  height: 40px;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7);
}

.stage-file {
  padding: 64px 30px;
  text-align: center;
  background: var(--surface);
}

.stage-file-ext {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.stage-file p {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13.5px;
}

.media-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.media-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.028em;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}

.media-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 12px;
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}

.media-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.media-path {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-3);
}

.media-path code {
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 5px 10px;
  border-radius: 6px;
  word-break: break-all;
}

.related {
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.related .section-title {
  margin-bottom: 18px;
  display: block;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease;
}

.related-item:hover {
  border-color: #3a3a44;
}

.related-title {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-meta {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

/* -------------------------------- 按钮 -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #0a0a0c;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-2);
  background: var(--surface);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #3a3a44;
}

.btn-danger {
  border-color: rgba(220, 90, 90, 0.34);
  color: #e08a8a;
  background: rgba(220, 90, 90, 0.08);
}

.btn-danger:hover {
  background: rgba(220, 90, 90, 0.16);
  color: #f0a0a0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 7px;
}

/* ------------------------------ 空状态 / 错误 ---------------------------- */

.empty-state {
  text-align: center;
  padding: 84px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* 空状态没有按钮时（访客视角），末段不要留出多余的下边距 */
.empty-state p:last-child {
  margin-bottom: 0;
}

.error-page {
  padding: 130px 0 100px;
  text-align: center;
}

.error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 20px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.error-msg {
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 30px;
}

/* -------------------------------- 页脚 --------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 40px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-title {
  color: var(--text-2);
  font-weight: 500;
}

.footer-note {
  font-size: 12.5px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 页脚的「登录／管理台」是后台入口，比版权文字亮一档，hover 才显橙 */
.footer-right a {
  color: var(--text-2);
  transition: color 0.18s ease;
}

.footer-right a:hover {
  color: var(--accent);
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-btn {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.18s ease;
  padding: 0;
}

.link-btn:hover {
  color: var(--text-2);
}

/* ------------------------------ 音频播放条 ------------------------------ */

.audio-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(660px, calc(100vw - 32px));
  z-index: 60;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  animation: dock-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes dock-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.dock-play {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #14100a;
  transition: transform 0.16s ease;
}

.dock-play:hover {
  transform: scale(1.05);
}

.dock-meta {
  flex: 1;
  min-width: 0;
}

.dock-title {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}

.dock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-bar input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

.dock-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.dock-bar input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.dock-time {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dock-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text-3);
  flex: none;
}

.dock-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* ------------------------------- 响应式 ------------------------------- */

@media (max-width: 1000px) {
  .post-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .image-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .image-wall {
    columns: 3;
  }
  .audio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
  .hero-intro {
    font-size: 15.5px;
    margin-bottom: 32px;
  }
  .post-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .image-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .image-wall {
    columns: 2;
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 4px;
  }
  .post-row-time {
    display: none;
  }
  .nav-link {
    padding: 7px 9px;
    font-size: 13.5px;
  }
  .nav-admin {
    padding: 6px 11px;
    font-size: 12.5px;
  }
  .brand-name {
    max-width: 130px;
  }
  .prose {
    font-size: 16px;
    padding-top: 28px;
  }
  .article-head {
    padding-top: 40px;
  }
  .related-list {
    grid-template-columns: 1fr;
  }
  .media-info {
    flex-direction: column;
    gap: 18px;
  }
  .stage-audio {
    padding: 24px 18px;
  }
  .section {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
