/* ============ DLSS5 分享社区 · 燕云十六声古风主题 ============ */

:root {
  --ink: #17120e;            /* 墨色背景 */
  --ink-2: #201812;
  --card: rgba(246, 232, 208, 0.06);
  --card-hover: rgba(246, 232, 208, 0.11);
  --line: rgba(201, 168, 106, 0.30);     /* 金线 */
  --gold: #c9a86a;          /* 金色 */
  --gold-bright: #e0c489;
  --paper: #f0e4cf;         /* 宣纸米 */
  --paper-dim: #b9a88d;
  --cinnabar: #b43a2a;      /* 朱砂红 */
  --cinnabar-bright: #d6553f;
  --jade: #5e7f7c;          /* 黛青 */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glass-bg: rgba(255, 244, 222, 0.09);
  --glass-bg-strong: rgba(255, 244, 222, 0.13);
  --glass-border: rgba(201, 168, 106, 0.34);
  --glass-blur: 18px;
  --font-title: "KaiTi", "STKaiti", "楷体", "SimSun", serif;
  --font-body: "SimSun", "Songti SC", "宋体", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--paper);
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(201, 168, 106, 0.34), transparent 62%),
    radial-gradient(900px 560px at 12% 8%, rgba(180, 58, 42, 0.26), transparent 60%),
    radial-gradient(1000px 700px at 88% 78%, rgba(94, 127, 124, 0.20), transparent 62%),
    radial-gradient(800px 500px at 8% 82%, rgba(168, 130, 47, 0.18), transparent 58%),
    linear-gradient(160deg, #14100c 0%, #1b140d 45%, #100c09 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- 水墨山峦背景装饰 ---------- */
.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 46vh; }
.scene .mist {
  position: absolute;
  top: 12%;
  left: -10%;
  width: 60vw;
  height: 24vh;
  background: radial-gradient(ellipse at center, rgba(230, 214, 185, 0.06), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.scene .mist.m2 { top: 30%; left: 40%; animation-duration: 34s; animation-delay: -8s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(12vw); }
}

/* ---------- 布局 ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(8, 8, 13, 0.8);
  border-bottom: 1px solid rgba(201, 168, 106, 0.28);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-title);
}
.logo-seal {
  width: 44px;
  height: 44px;
  flex: none;
  background: linear-gradient(145deg, #f2dba2 0%, #c9a86a 55%, #a8843f 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 700;
  color: #2e2010;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.35);
  box-shadow: 0 0 0 1px rgba(242, 219, 162, 0.35), 0 5px 18px rgba(201, 168, 106, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.logo:hover .logo-seal { transform: rotate(0deg) scale(1.06); }
.logo-text { font-size: 21px; letter-spacing: 4px; color: #f6ead2; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.logo-sub { display: block; font-size: 11px; letter-spacing: 3px; color: rgba(201,168,106,.85); }

.nav-spacer { flex: 1; }

/* 首页顶部发布入口（醒目横幅按钮） */
.post-entry {
  display: block;
  text-align: center;
  margin: 18px auto 4px;
  max-width: 460px;
  padding: 14px 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 165, 72, 0.18), rgba(201, 168, 106, 0.06));
  border: 1px solid rgba(201, 168, 106, 0.55);
  color: #f6ead2;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 6px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(201, 168, 106, 0.2), inset 0 0 18px rgba(201, 168, 106, 0.08);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.post-entry:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(212, 165, 72, 0.3), rgba(201, 168, 106, 0.12));
  box-shadow: 0 6px 24px rgba(201, 168, 106, 0.32), inset 0 0 22px rgba(201, 168, 106, 0.12);
}

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

/* 文字式菜单项（仿站点顶部导航）：白字、悬停金、当前页金线下划线 */
.nav-item {
  font-family: var(--font-title);
  color: rgba(246, 240, 230, 0.9);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 3px;
  padding: 10px 12px;
  position: relative;
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-item:hover { color: #e8c878; text-shadow: 0 0 12px rgba(232, 200, 120, 0.4); }
.nav-item.active { color: #e8c878; }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, #e8c878, #c9a86a);
  border-radius: 2px;
}
/* 深色导航下的按钮适配 */
.nav .btn-ghost {
  border-color: rgba(201, 168, 106, 0.4);
  color: rgba(246, 240, 230, 0.92);
  background: rgba(255, 255, 255, 0.04);
}
.nav .btn-ghost:hover {
  border-color: #e8c878;
  color: #e8c878;
  background: rgba(201, 168, 106, 0.16);
}
.nav .user-chip {
  color: #f6ead2;
}

.btn {
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 8px 18px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}
.btn:active::after { transform: scale(2); opacity: 1; }
.btn:hover { border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 18px rgba(201, 168, 106, 0.22); }
.btn-primary { background: linear-gradient(160deg, #a32f21, #7e2418); border-color: #a32f21; color: #f8ecd6; }
.btn-primary:hover { background: linear-gradient(160deg, #c13d2b, #93301f); color: #fff; box-shadow: 0 0 22px rgba(180, 58, 42, 0.5); }
.btn-ghost { color: var(--paper-dim); }
.btn-ghost:hover { color: var(--gold-bright); }

.user-chip { font-family: var(--font-title); color: var(--gold-bright); letter-spacing: 1px; }
/* ---------- 主区 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}

/* ---------- 信息流 ---------- */
.feed { display: flex; flex-direction: column; gap: 20px; }
.feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 3px;
}
.feed-head .ink-dot { width: 8px; height: 8px; background: var(--cinnabar); border-radius: 50%; box-shadow: 0 0 10px rgba(180, 58, 42, 0.8); }

/* ---------- 综合推荐：排序切换 + 版本筛选 ---------- */
.feed-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-tabs {
  display: flex;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
}
.sort-tab {
  background: rgba(255, 244, 222, 0.06);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  border: none;
  border-right: 1px solid var(--glass-border);
  color: var(--paper-dim);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .3s;
}
.sort-tab:last-child { border-right: none; }
.sort-tab:hover { color: var(--paper); }
.sort-tab.active {
  background: linear-gradient(135deg, rgba(201,168,106,.30), rgba(201,168,106,.14));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(201,168,106,.35);
}
.filter-box { display: flex; gap: 10px; align-items: center; }
/* 自定义动效下拉 */
.sel-wrap { position: relative; }
.sel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 244, 222, 0.07);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color .3s, box-shadow .3s, background .3s, transform .15s;
}
.sel-btn:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(201, 168, 106, 0.22); }
.sel-btn:active { transform: scale(.97); }
.sel-arrow {
  font-size: 10px;
  color: var(--gold-bright);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.sel-wrap.open .sel-arrow { transform: rotate(180deg); }
.sel-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  z-index: 60;
  list-style: none;
  background: rgba(28, 21, 14, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 244, 220, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s cubic-bezier(.22,.61,.36,1);
}
.sel-wrap.open .sel-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.sel-menu li {
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--paper-dim);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: background .2s, color .2s, opacity .28s ease, transform .28s ease;
}
.sel-wrap.open .sel-menu li {
  opacity: 1;
  transform: none;
}
.sel-menu li:hover { background: rgba(201, 168, 106, 0.16); color: var(--gold-bright); }
.sel-menu li.sel-selected { color: var(--gold-bright); background: rgba(201, 168, 106, 0.10); }
.sel-wrap.disabled .sel-btn {
  opacity: .45;
  cursor: not-allowed;
}
.sel-wrap.disabled .sel-btn:hover { border-color: var(--glass-border); box-shadow: none; }

/* ---------- 帖子卡片 ---------- */
.post-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 244, 220, 0.16);
  transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: translateY(0);
  opacity: 1;
  margin: 10px;
}
.post-card.reveal-hidden { opacity: 0; transform: translateY(18px); }
.post-card.reveal-show { opacity: 1; transform: translateY(0); }
.post-card:hover {
  background: var(--glass-bg-strong);
  border-color: var(--gold);
  box-shadow: var(--shadow), 0 0 26px rgba(201, 168, 106, 0.16);
  transform: translateY(-3px);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--paper-dim);
}
/* 卡片头部：作者信息左、反馈按钮右 */
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.post-head .post-meta { flex: 1; min-width: 0; }
.post-meta .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(145deg, var(--cinnabar), #5a1f14);
  color: #f6ead2;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: var(--font-title);
  flex: none;
  overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.noimg .avatar-img { display: none; }
/* 导航右上角小头像 */
.chip-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-flex; flex: none; border: 1px solid rgba(201, 168, 106, 0.5); vertical-align: middle; }
/* 注册页头像预览 */
.avatar-pick { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.avatar-pick-center { justify-content: center; }
.avatar-pick[hidden] { display: none; }
.avatar-pick img:not([src]),
.avatar-pick img[src=""] { display: none; }
.avatar-pick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201, 168, 106, 0.55); box-shadow: 0 0 12px rgba(201, 168, 106, 0.25); }
/* 个人中心设置里的头像行 */
.avatar-edit-row { display: flex; align-items: center; gap: 14px; }
.avatar-edit { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--cinnabar), #5a1f14); color: #f6ead2; display: flex; align-items: center; justify-content: center; font-size: 26px; font-family: var(--font-title); }
.post-meta .author { color: var(--gold-bright); font-family: var(--font-title); }
/* 作者 / 头像可点击进入个人主页 */
.author-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.author-link.author { color: var(--gold-bright); font-family: var(--font-title); }
.author-link:hover { text-shadow: 0 0 8px rgba(201, 168, 106, 0.6); }
/* 用户主页迷你统计 */
.mini-like { margin-left: auto; color: var(--paper-dim); font-size: 12px; white-space: nowrap; }
.post-meta .view { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; }
.post-meta .view .eye { font-size: 11px; opacity: 0.85; color: var(--paper-dim); }
.post-meta .view .view-cnt { font-variant-numeric: tabular-nums; }
.post-title {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--paper);
  margin-bottom: 8px;
}
.post-content {
  color: #d8cbb2;
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}
.post-content.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 图片 */
.post-images { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.post-images img {
  width: 150px; height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.35s, box-shadow 0.35s;
}
.post-images img:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }

/* 分享码 */
.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 250, 240, 0.05);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.share-box .share-tag {
  flex: none;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
}
.share-box .share-code {
  flex: 1;
  min-width: 0;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  color: #f5e9cf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}
.share-box .share-hidden {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--paper-dim);
  letter-spacing: 1px;
}
.btn-copy { flex: none; padding: 6px 16px; font-size: 13px; letter-spacing: 1px; }
.btn-copy.copied { background: var(--jade); border-color: var(--jade); color: #f2f7f6; }

/* 操作区 */
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(201, 168, 106, 0.16);
  padding-top: 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.25s;
}
.action-btn:hover { color: var(--paper); }
.action-btn .cnt { font-variant-numeric: tabular-nums; }
.action-btn.liked { color: var(--cinnabar-bright); }
.action-btn.liked .heart { animation: beat 0.45s; }
.action-btn.favorited { color: var(--gold-bright); }
.action-btn.favorited .star { animation: beat 0.45s; }
@keyframes beat {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.action-btn .heart, .action-btn .star { display: inline-block; font-size: 16px; }
.action-btn .heart-empty { filter: grayscale(1) brightness(0.8); }

/* 加载更多 */
.load-more-wrap { text-align: center; margin-top: 8px; }

/* ---------- 侧栏 ---------- */
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.rank-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 244, 220, 0.16);
  overflow: hidden;
}
.rank-body {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 106, 0.4) transparent;
}
.rank-body::-webkit-scrollbar { width: 5px; }
.rank-body::-webkit-scrollbar-thumb { background: rgba(201, 168, 106, 0.4); border-radius: 3px; }
.rank-body::-webkit-scrollbar-track { background: transparent; }
/* 实时统计面板 */
.stats-panel { margin-top: 18px; }
.stats-body { padding: 6px 4px 10px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--paper-dim);
  letter-spacing: 1px;
  border-bottom: 1px dashed rgba(201,168,106,.16);
}
.stat-row:last-child { border-bottom: none; }
.stat-row b {
  font-size: 17px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 1px;
}
.stat-row.online b { color: #9ad09a; }
.stat-row.online b::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: #7ec77e;
  box-shadow: 0 0 8px rgba(126,199,126,.9);
  animation: pulse 1.8s ease-in-out infinite;
  vertical-align: 2px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 3px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(201, 168, 106, 0.12), transparent);
}
.rank-head .rank-icon { font-size: 18px; }
.rank-head.like .rank-icon { color: var(--cinnabar-bright); }
.rank-head.fav .rank-icon { color: var(--gold-bright); }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
  transition: background 0.25s;
  text-decoration: none;
  color: inherit;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(201, 168, 106, 0.08); }
.rank-no {
  width: 22px; height: 22px; flex: none;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--paper-dim);
  border: 1px solid var(--line);
}
.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #f8ecd6;
  box-shadow: 0 0 12px rgba(180, 58, 42, 0.5);
}
.rank-item:nth-child(2) .rank-no { background: #8a6d3b; border-color: #8a6d3b; }
.rank-item:nth-child(3) .rank-no { background: #4f5a58; border-color: #4f5a58; }
.rank-info { flex: 1; min-width: 0; }
.rank-title {
  font-size: 14px;
  font-family: var(--font-title);
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-sub { font-size: 12px; color: var(--paper-dim); }
.rank-val { flex: none; font-family: var(--font-title); color: var(--gold-bright); font-size: 15px; }
.rank-empty { padding: 20px; text-align: center; color: var(--paper-dim); font-size: 13px; }

/* ---------- 表单页 ---------- */
.auth-wrap, .post-wrap {
  max-width: 520px;
  margin: 40px auto 0;
  position: relative;
  z-index: 1;
}
.form-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 34px 36px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 244, 220, 0.18);
}
.form-title {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 4px;
}
.form-sub { text-align: center; color: var(--paper-dim); font-size: 13px; margin-bottom: 26px; letter-spacing: 2px; }
.form-line { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--paper-dim); letter-spacing: 2px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--paper);
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 250, 240, 0.10);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.4), 0 0 16px rgba(201, 168, 106, 0.15);
}
.form-error {
  color: var(--cinnabar-bright);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 12px;
  text-align: center;
}
/* 必填校验失败：红框 + 抖动提示 */
.field-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.22) !important;
}
#versionMain.field-error .vm-btn,
#versionSub.field-error .vs-btn {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.22) !important;
}
.post-shake { animation: fieldShake 0.45s ease; }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.form-tip { text-align: center; font-size: 13px; color: var(--paper-dim); margin-top: 16px; }
.form-tip a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px dashed var(--gold); }
.form-tip a:hover { color: #fff; }
/* B 站一键识别区 */
.bili-field { border: 1px dashed rgba(201, 168, 106, 0.4); border-radius: 8px; padding: 12px 14px; background: rgba(201, 168, 106, 0.05); }
.bili-tag { font-size: 11px; color: var(--paper-dim); letter-spacing: 1px; margin-left: 8px; font-family: var(--font-body); }
.bili-row { display: flex; gap: 8px; }
.bili-row input { flex: 1; min-width: 0; }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 16px; }

/* 上传预览 */
.upload-area {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.upload-area:hover, .upload-area.drag { border-color: var(--gold); background: rgba(201, 168, 106, 0.06); }
.upload-area input[type="file"] { display: none; }
.upload-hint { color: var(--paper-dim); font-size: 13px; letter-spacing: 1px; }
.preview-item { position: relative; }
.preview-item img { width: 86px; height: 86px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.preview-item .del {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cinnabar);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* 提示气泡 */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translate(-50%, -18px);
  background: rgba(30, 22, 15, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--gold);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--cinnabar); color: #f3d5cf; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 0 60px rgba(0,0,0,0.8); }
.lightbox .close {
  position: absolute;
  top: 22px; right: 28px;
  color: var(--paper);
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

/* 页脚 */
.footer {
  text-align: center;
  color: var(--paper-dim);
  font-size: 13px;
  letter-spacing: 2px;
  padding: 30px 0 10px;
  border-top: 1px solid rgba(201, 168, 106, 0.12);
  margin-top: 40px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .logo-text { font-size: 18px; }
}
@media (max-width: 560px) {
  .nav-inner { gap: 10px; padding: 12px 14px; }
  .nav-links .btn { padding: 7px 12px; font-size: 13px; }
  .post-entry { font-size: 16px; letter-spacing: 4px; padding: 12px 20px; }
  .post-card { padding: 16px; }
  .post-images img { width: 110px; height: 110px; }
  .share-box { flex-wrap: wrap; }
}

/* ---------- 登录 / 注册标签 ---------- */
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--paper-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.auth-tab:hover { color: var(--paper); }
.auth-tab.active { color: var(--gold-bright); border-bottom-color: var(--cinnabar); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn 0.45s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ===== 管理后台与删除按钮 ===== */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 8px 0 30px; }
.admin-hint { color: var(--paper-dim); font-size: 13px; margin: 6px 0 18px; }
.feed-head.sub { margin-top: 26px; }
.ink-dot.warn { background: #d09a4a; }
.admin-list { display: flex; flex-direction: column; gap: 14px; }
/* 已审核区折叠与搜索 */
.collapse-btn { margin-left: 10px; }
.admin-search { display: flex; gap: 8px; margin: 10px 0 14px; }
.admin-search input { flex: 1; min-width: 0; }
.admin-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.14);
  transition: border-color .3s;
  margin: 10px;
}
.admin-item:hover { border-color: var(--gold); }
.admin-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.admin-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid;
  margin: 10px;
}
.st-pending { color: #e8b45a; border-color: #a8822f; background: rgba(168,130,47,.12); }
.st-approved { color: #9ad09a; border-color: #4a7a4a; background: rgba(74,122,74,.12); }
.st-rejected { color: #d09a9a; border-color: #7a4a4a; background: rgba(122,74,74,.12); }
.admin-author { color: var(--gold-bright); font-family: var(--font-title); }
.admin-time { color: var(--paper-dim); }
.admin-title { font-family: var(--font-title); font-size: 17px; color: var(--paper); margin: 8px 0 4px; }
.admin-content { color: var(--paper-soft); font-size: 14px; margin-bottom: 6px; word-break: break-all; }
.admin-share {
  font-size: 13px;
  color: var(--gold-bright);
  margin: 6px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.admin-share b { letter-spacing: 1px; }
.admin-meta { font-size: 12px; color: var(--paper-dim); margin: 4px 0 8px; }
.admin-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.admin-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.admin-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn-pass { background: rgba(74,122,74,.18); border-color: #4a7a4a; color: #9ad09a; }
.btn-pass:hover { background: rgba(74,122,74,.32); }
.btn-reject { background: rgba(168,130,47,.15); border-color: #a8822f; color: #e8b45a; }
.btn-reject:hover { background: rgba(168,130,47,.3); }
.btn-del { background: rgba(160,48,48,.15); border-color: #a03030; color: #e06060; }
.btn-del:hover { background: rgba(160,48,48,.32); }
.post-actions .btn-del { margin-left: auto; padding: 4px 12px; font-size: 12px; }

/* ===== 版本号管理（管理后台） ===== */
.ver-manage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
/* 用户管理表 */
.user-table { display: flex; flex-direction: column; gap: 4px; margin-bottom: 30px; }
.user-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr 0.7fr 1.2fr 0.9fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 244, 222, 0.04);
  border: 1px solid rgba(201, 168, 106, 0.18);
  border-radius: 8px;
  font-size: 13px;
}
.user-row.user-head { background: rgba(201, 168, 106, 0.08); color: var(--gold-bright); font-family: var(--font-title); letter-spacing: 1px; font-size: 13px; }
.u-cell { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.u-name { font-family: var(--font-title); color: var(--paper); white-space: nowrap; }
.u-num { color: var(--paper-dim); justify-content: center; }
.u-date { color: var(--paper-dim); }
.u-state { justify-content: center; }
.u-ops { justify-content: center; }
.u-dim { color: rgba(246, 240, 230, 0.35); }
.u-av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid rgba(201, 168, 106, 0.4); }
@media (max-width: 900px) {
  .user-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .u-num, .u-date { justify-content: flex-start; }
}
.ver-group {
  background: rgba(255, 244, 222, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
}
.ver-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(201,168,106,.25);
}
.ver-group-head .mv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-group-head .mv-ops { display: flex; gap: 6px; flex: none; }
.ver-group-head .mv-ops .btn-mini { padding: 2px 9px; font-size: 11px; }
.ver-group.editing .ver-group-head { flex-wrap: wrap; gap: 8px; }
.ver-group.editing .mv-edit-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--paper);
  padding: 6px 9px;
  font-size: 14px;
  letter-spacing: 1px;
}
.ver-group.editing .mv-ops { display: flex; gap: 6px; flex: none; }
.mv-add-row { margin-bottom: 16px; }
.ver-list { min-height: 30px; }
.ver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  transition: all .2s;
}
.ver-item:hover { border-color: rgba(201,168,106,.4); }
.ver-item.editing { border-color: var(--gold); }
.ver-name {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  color: #f5e9cf;
  letter-spacing: 1px;
}
.ver-item.editing .ver-name { flex: 1; margin-right: 8px; }
.ver-edit-input {
  width: 100%;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  padding: 5px 8px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
}
.ver-ops { display: flex; gap: 6px; }
.ver-ops .btn-mini { padding: 3px 10px; font-size: 12px; }
.ver-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ver-add .ver-new-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--paper);
  padding: 8px 10px;
  font-size: 13px;
}
.ver-add .ver-new-input::placeholder { color: var(--paper-dim); }

/* ===== 下载中心 ===== */
.downloads {
  max-width: 1280px;
  margin: 28px auto 44px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 36px 24px 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 244, 220, 0.16);
}
.downloads-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.downloads-note {
  font-size: 12px;
  color: #d09a6a;
  background: rgba(168,130,47,.14);
  border: 1px solid rgba(168,130,47,.45);
  border-radius: 4px;
  padding: 5px 12px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.downloads-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.dl-card {
  flex: 1;
  min-width: 200px;
  display: block;
  background: rgba(255, 250, 240, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(107, 90, 56, 0.55);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.12);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.dl-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,106,.14), transparent 70%);
}
.dl-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(201,168,106,.28);
  transform: translateY(-2px);
}
.dl-name {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.dl-sub {
  font-size: 12px;
  color: var(--paper-dim);
  margin-bottom: 12px;
}
.dl-btn {
  display: inline-block;
  font-size: 13px;
  color: #221a10;
  background: linear-gradient(135deg, #d9b876, #b08a3e);
  border-radius: 4px;
  padding: 6px 16px;
  letter-spacing: 2px;
  transition: filter .3s;
}
.dl-card:hover .dl-btn { filter: brightness(1.12); }
.downloads-driver {
  margin-top: 14px;
  font-size: 12px;
  color: var(--paper-dim);
  border-top: 1px dashed #5a4a2e;
  padding-top: 10px;
  letter-spacing: 1px;
}
.downloads-driver b { color: var(--gold-bright); }

/* ===== 发帖版本选择 ===== */
.version-main { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.vm-btn {
  flex: 1;
  min-width: 130px;
  background: rgba(255, 250, 240, 0.05);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(107, 90, 56, 0.55);
  border-radius: 8px;
  color: var(--paper-soft);
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 2px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all .3s;
}
.vm-btn:hover { border-color: var(--gold); color: var(--paper); }
.vm-btn.active {
  background: linear-gradient(135deg, rgba(201,168,106,.28), rgba(201,168,106,.12));
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(201,168,106,.28);
}
.version-sub { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.vs-btn {
  background: rgba(255, 250, 240, 0.05);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid rgba(90, 74, 46, 0.6);
  border-radius: 20px;
  color: var(--paper-dim);
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .3s;
}
.vs-btn:hover { border-color: var(--gold); color: var(--paper); }
.vs-btn.active {
  background: rgba(201,168,106,.2);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.field-hint { font-size: 12px; color: var(--paper-dim); }

/* ===== 帖子版本标签 ===== */
.post-version {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-bright);
  background: rgba(168,130,47,.14);
  border: 1px solid rgba(168,130,47,.45);
  border-radius: 4px;
  padding: 1px 8px;
  letter-spacing: 1px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ===== 管理后台：下载链接管理 ===== */
.dl-manage { margin-top: 30px; }
.dl-manage .field { margin-bottom: 12px; }
.dl-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.dl-row input {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(90, 74, 46, 0.6);
  border-radius: 6px;
  color: var(--paper-soft);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}
.dl-row input:focus { border-color: var(--gold); }
.dl-row .dl-url { min-width: 260px; }
.btn-mini {
  background: rgba(168,130,47,.16);
  border: 1px solid rgba(168,130,47,.5);
  color: var(--gold-bright);
  border-radius: 6px;
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .3s;
  white-space: nowrap;
}
.btn-mini:hover { filter: brightness(1.15); }
.btn-mini.danger {
  background: rgba(180,58,42,.14);
  border-color: rgba(180,58,42,.55);
  color: #e88a7a;
}

/* ===== 游戏名称标签（通用版帖子） ===== */
.post-version.gm {
  color: #a8c8c4;
  background: rgba(120,170,160,.12);
  border-color: rgba(120,170,160,.45);
}
/* ===== 显卡型号标签 ===== */
.post-version.gpu {
  color: #9ac8e8;
  background: rgba(90,140,180,.12);
  border-color: rgba(90,140,180,.45);
}
.gpu-row { display: flex; gap: 10px; }
.gpu-row input { flex: 1; min-width: 0; }
.gpu-row .btn-mini { flex: none; padding: 9px 16px; }

/* ===== 管理后台：版本/游戏名行 ===== */
.admin-ver {
  font-size: 12px;
  color: var(--paper-dim);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.admin-ver b { color: var(--gold-bright); }

/* ===== 个人中心（两栏布局） ===== */
.profile-wrap { max-width: 1040px; }
.profile-card { margin-bottom: 26px; }
.profile-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.profile-side {
  flex: 0 0 250px;
  position: sticky;
  top: 20px;
}
.profile-user {
  padding: 26px 22px 22px;
  text-align: center;
  background: rgba(255, 244, 222, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  margin: 10px;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #d9a04a, #8a4a1d 60%, #5c2f12);
  border: 2px solid rgba(201,168,106,.75);
  box-shadow: 0 0 0 4px rgba(201,168,106,.12), 0 8px 20px rgba(0,0,0,.35);
  overflow: hidden;
  letter-spacing: 1px;
}
.profile-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.profile-badges { margin-bottom: 18px; }
.badge-admin, .badge-user {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.badge-admin {
  color: #ffd27a;
  background: rgba(201,168,106,.18);
  border: 1px solid rgba(201,168,106,.6);
}
.badge-user {
  color: var(--paper-dim);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
}
.profile-stats {
  display: flex;
  margin-bottom: 18px;
}
.profile-stats .stat {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  background: rgba(255, 244, 222, 0.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.profile-stats .stat + .stat { margin-left: 10px; }
.profile-join {
  margin-top: 2px;
  font-size: 12px;
  color: var(--paper-dim);
  letter-spacing: 1px;
  text-align: center;
}
.profile-stats .stat b {
  display: block;
  font-size: 20px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 2px;
}
.profile-stats .stat span {
  font-size: 12px;
  color: var(--paper-dim);
  letter-spacing: 1px;
}
.profile-menu {
  margin-top: 16px;
  padding: 10px;
  background: rgba(255, 244, 222, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 7px;
  color: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: left;
  transition: all .25s;
}
.pm-item + .pm-item { margin-top: 4px; }
.pm-icon {
  font-size: 15px;
  color: var(--paper-dim);
  transition: color .25s;
}
.pm-item:hover { background: rgba(201,168,106,.1); color: var(--paper); }
.pm-item:hover .pm-icon { color: var(--gold-bright); }
.pm-item.active {
  background: rgba(201,168,106,.16);
  border-left-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.pm-item.active .pm-icon { color: var(--gold-bright); }
.profile-main {
  flex: 1;
  min-width: 0;
}
.profile-main .feed-head { margin-bottom: 18px; }

@media (max-width: 860px) {
  .profile-layout { flex-direction: column; }
  .profile-side { flex: none; width: 100%; position: static; }
  .profile-stats { max-width: 320px; margin-left: auto; margin-right: auto; }
  .profile-menu { display: flex; }
  .pm-item + .pm-item { margin-top: 0; margin-left: 4px; }
  .pm-item { justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
  .pm-item.active { border-bottom-color: var(--gold); }
}
.edit-form {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 244, 222, 0.05);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px dashed var(--glass-border);
  border-radius: 8px;
}
.edit-form .field { margin-bottom: 12px; }
.version-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.version-main select {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 244, 222, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
}
.version-main select:hover, .version-main select:focus { border-color: var(--gold); }
.version-main select:disabled { opacity: .45; cursor: not-allowed; }
.version-main select option { background: #1b140d; color: var(--paper); }
.edit-form .admin-actions { margin-top: 4px; }

/* ===== 反馈弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 4, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-card {
  width: min(460px, calc(100vw - 40px));
  background: rgba(26, 20, 11, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(14px) scale(.98);
  transition: transform .25s;
}
.modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.modal-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 20px;
  color: var(--paper-dim);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  transition: all .3s;
}
.modal-close:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.modal .field { margin-bottom: 14px; }
.modal textarea {
  width: 100%;
  min-height: 84px;
  background: rgba(255, 244, 222, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color .3s;
}
.modal textarea:focus { border-color: var(--gold); }
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ===== 通知徽章 ===== */
.nav-links .btn { position: relative; }
.notif-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: linear-gradient(135deg, #c0392b, #a5241a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(160, 30, 20, .5);
}
.notif-badge.show { display: inline-block; animation: badgePop .3s; }
@keyframes badgePop {
  0% { transform: scale(.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== 反馈按钮 ===== */
.action-btn.fb { color: var(--paper-dim); font-size: 13px; }
.action-btn.fb:hover { color: #e8b46a; }
/* 反馈按键（卡片右上角，立体按键 + 按下凹陷） */
.fb-key {
  flex: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  color: #e8cf9a;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.22), rgba(201, 168, 106, 0.07));
  border: 1px solid rgba(201, 168, 106, 0.55);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(130, 100, 55, 0.55), inset 0 1px 0 rgba(255, 244, 220, 0.25);
  transition: all 0.16s ease;
}
.fb-key:hover {
  color: #ffe7ad;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.34), rgba(201, 168, 106, 0.12));
  box-shadow: 0 3px 0 rgba(130, 100, 55, 0.85), inset 0 1px 0 rgba(255, 244, 220, 0.35);
}
.fb-key:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 rgba(130, 100, 55, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* ===== 通知列表 ===== */
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255, 244, 222, 0.05);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s;
}
.notif-item:hover { border-color: var(--gold); background: rgba(201,168,106,.1); }
.notif-item .notif-del {
  flex: none;
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid rgba(255, 244, 222, 0.18);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all .25s;
  opacity: .65;
}
.notif-item .notif-del:hover {
  color: #e8b0a0;
  border-color: rgba(192, 57, 43, .6);
  background: rgba(192, 57, 43, .14);
  opacity: 1;
}
.notif-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: #c0392b;
  box-shadow: 0 0 6px rgba(192, 57, 43, .7);
}
.notif-item.read .notif-dot { background: rgba(255,255,255,.18); box-shadow: none; }
.notif-content {
  font-size: 14px;
  color: var(--paper-soft);
  line-height: 1.6;
  letter-spacing: .5px;
}
.notif-time {
  font-size: 12px;
  color: var(--paper-dim);
  margin-top: 5px;
  letter-spacing: .5px;
}
.notif-item.unread .notif-content { color: var(--paper); }
.notif-item.unread { border-color: rgba(201,168,106,.4); }
