:root {
  --bg: #0d0a11;
  --panel: #171220;
  --panel-2: #1e1829;
  --line: rgba(217, 195, 154, 0.14);
  --text: #e8ded4;
  --muted: #9b8d7e;
  --gold: #d9c39a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(ellipse at 50% 0%, #1a1424 0%, #100c14 55%, #0a080d 100%);
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* 顶栏 */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 10, 17, 0.72);
  border-bottom: 1px solid var(--line);
}
header.top .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--gold);
}
nav.tabs { display: flex; gap: 22px; }
nav.tabs a {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}
nav.tabs a:hover, nav.tabs a.on {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* 标题 */
.page-head { padding: 46px 0 26px; }
.page-head h1 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text);
}
.page-head p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* 卡片 */
.card {
  background: linear-gradient(180deg, rgba(30, 24, 41, 0.9), rgba(23, 18, 32, 0.9));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.card .meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 图片区 */
.media-grid {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.media-grid.single { grid-template-columns: 1fr; }
.media-grid img, .media-grid video {
  width: 100%;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  background: #000;
}
.media-grid.single video { max-height: 460px; }

/* 相册网格 */
.album-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  padding-bottom: 60px;
}
.album-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}
.album-item img, .album-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.album-item:hover img, .album-item:hover video { transform: scale(1.04); }
.album-item .badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.55);
  color: var(--gold);
  padding: 3px 7px;
  border-radius: 20px;
}

/* 按钮 */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(217, 195, 154, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 11px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.25s;
}
.btn:hover { background: rgba(217, 195, 154, 0.16); border-color: rgba(217,195,154,0.35); }
.btn.primary { background: var(--gold); color: #17121f; border-color: var(--gold); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: default; }

input[type="password"], input[type="text"], textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  outline: none;
  transition: 0.25s;
}
input:focus, textarea:focus { border-color: rgba(217,195,154,0.5); }
textarea { min-height: 130px; resize: vertical; line-height: 1.9; }
::placeholder { color: rgba(155, 141, 126, 0.6); }

/* 空态 */
.empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 3, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.on { display: flex; }
.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
}
.lightbox .caption {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.lightbox .close {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
}

/* 发布页 */
.panel {
  background: linear-gradient(180deg, rgba(30,24,41,0.95), rgba(23,18,32,0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 30px;
}
.panel h2 { font-size: 15px; font-weight: 400; letter-spacing: 0.24em; color: var(--muted); margin-bottom: 18px; }
.actions { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; line-height: 1.9; }
.status { font-size: 13px; color: var(--gold); letter-spacing: 0.08em; min-height: 18px; }

.picker {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.25s;
}
.picker:hover { border-color: rgba(217,195,154,0.4); color: var(--text); }

.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preview img, .preview video { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }

footer.foot {
  text-align: center;
  padding: 50px 0 40px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(155,141,126,0.45);
}
