@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --primary: #c8a84b;
  --primary-dark: #a8883b;
  --primary-light: #e8c86b;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --nav-bg: #3d3d3d;
  --nav-text: #e0e0e0;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --text: #333333;
  --text-muted: #999999;
  --text-light: #bbbbbb;
  --red: #e05252;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===================== 顶部导航 ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: var(--nav-bg);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: 56px;
}
.navbar-brand img {
  height: 130px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: translateY(0);
  transition: opacity 0.2s;
  /* 用负margin让图片视觉上更大但不撑开导航栏 */
  margin-top: -37px;
  margin-bottom: -37px;
}
.navbar-brand:hover img { opacity: 0.9; }
.navbar-brand:hover img {
  opacity: 0.85;
}

.navbar-nav {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex-shrink: 0;
}
.navbar-nav a {
  display: block; padding: 0 14px; height: 48px; line-height: 48px;
  color: var(--nav-text); font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.navbar-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.navbar-nav a.active { color: var(--primary); }

/* 搜索框 */
.navbar-search {
  flex: 1; max-width: 360px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 20px; overflow: hidden;
  margin: 0 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.navbar-search input {
  flex: 1; padding: 0 14px; height: 32px;
  border: none; background: transparent;
  color: #333; font-size: 13px; font-family: inherit;
  outline: none;
}
.navbar-search input::placeholder { color: #bbb; }
.navbar-search button {
  width: 44px; height: 32px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; transition: opacity 0.15s; flex-shrink: 0;
}
.navbar-search button:hover { opacity: 0.7; }
.navbar-search button img {
  width: 30px; height: 30px; object-fit: contain;
}

/* 右侧图标区 */
.navbar-right {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-shrink: 0;
}
.nav-icon {
  width: 64px; height: 64px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-text); font-size: 18px;
  cursor: pointer; transition: all 0.15s; position: relative;
  text-decoration: none;
}
.nav-icon:hover { background: rgba(255,255,255,0.08); }
.nav-icon .badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--nav-bg);
}

/* 自定义图标 */
.nav-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-icon:hover .nav-icon-img {
  transform: scale(1.08);
  opacity: 0.85;
}
.nav-dropdown {
  position: absolute; top: 48px; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px; z-index: 200;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: all 0.15s;
}
.nav-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}
.dropdown-item {
  display: block; padding: 10px 16px;
  font-size: 13px; color: #555;
  transition: background 0.1s, color 0.1s;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #fafafa; color: var(--primary); }
.dropdown-section {
  padding: 6px 16px 4px;
  font-size: 11px; color: var(--text-muted);
  background: #fafafa; border-bottom: 1px solid var(--border-light);
}

/* ===================== 主内容区 ===================== */
.main { padding-top: 56px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 主布局：左内容 + 右侧边栏 */
.layout {
  display: flex; gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
}
.layout-main { flex: 1; min-width: 0; }
.layout-sidebar { width: var(--sidebar-w); flex-shrink: 0; }

/* ===================== 横幅 banner ===================== */
.banner-wrap {
  width: 100%; overflow: hidden;
  background: #222;
}
.banner-img { width: 100%; max-height: 280px; object-fit: cover; display: block; }

.banner-slider {
  position: relative; overflow: hidden;
  height: 280px; background: #222;
}
.banner-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active { background: var(--primary); width: 16px; border-radius: 3px; }

/* ===================== 内容卡片 / 区块 ===================== */
.panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.panel-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.panel-title::before {
  content: ''; display: block;
  width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}
.panel-more {
  font-size: 12px; color: var(--text-muted);
  cursor: pointer; transition: color 0.15s;
}
.panel-more:hover { color: var(--primary); }

/* ===================== Feed 动态流 ===================== */
.feed-item {
  display: flex; gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #fafafa; }

.feed-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: #eee; cursor: pointer;
}
.feed-avatar-name {
  font-size: 11px; text-align: center; margin-top: 3px;
  color: var(--text-muted); width: 40px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.feed-body { flex: 1; min-width: 0; }
.feed-user {
  font-size: 13px; color: var(--text); font-weight: 500;
  margin-bottom: 4px;
}
.feed-user a:hover { color: var(--primary); }
.feed-content {
  font-size: 14px; color: var(--text); line-height: 1.7;
  margin-bottom: 8px; word-break: break-word;
}
.feed-img {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: 4px; display: block; cursor: pointer;
  margin-bottom: 8px;
}
.feed-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.feed-tag {
  font-size: 12px; color: var(--text-muted);
  padding: 1px 6px; border-radius: 2px;
  background: var(--bg); border: 1px solid var(--border);
}
.feed-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-muted);
}
.feed-time { flex: 1; }
.feed-action {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; transition: color 0.15s;
}
.feed-action:hover { color: var(--primary); }
.feed-action.liked { color: var(--red); }

/* ===================== 活动列表 ===================== */
.event-item {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
  cursor: pointer;
}
.event-item:hover { background: #fafafa; }
.event-item:last-child { border-bottom: none; }

.event-cover {
  width: 200px; height: 120px; object-fit: cover;
  flex-shrink: 0;
}
.event-info {
  flex: 1; padding: 12px 16px; min-width: 0;
}
.event-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; line-height: 1.4;
}
.event-title:hover { color: var(--primary); }
.event-meta { font-size: 12px; color: var(--text-muted); line-height: 2; }
.event-meta span { margin-right: 8px; }
.event-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.event-badge {
  font-size: 11px; padding: 1px 6px; border-radius: 2px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted);
}

.event-countdown {
  width: 100px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-left: 1px solid var(--border-light);
  padding: 0 12px;
  font-size: 12px; color: var(--text-muted);
}
.event-countdown-num {
  font-size: 36px; font-weight: 700;
  color: var(--primary); line-height: 1;
  margin: 4px 0;
}
.event-countdown-unit { font-size: 12px; color: var(--text-muted); }

/* 筛选栏 */
.filter-bar {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 4px; padding: 10px 14px;
  margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.filter-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag {
  font-size: 12px; padding: 3px 10px; border-radius: 2px;
  border: 1px solid var(--border); cursor: pointer;
  color: var(--text-muted); background: #fff;
  transition: all 0.15s;
}
.filter-tag:hover, .filter-tag.active {
  color: var(--primary); border-color: var(--primary);
  background: rgba(200,168,75,0.06);
}
.filter-divider { width: 100%; height: 1px; background: var(--border-light); }

/* 搜索栏（页面内） */
.page-search {
  display: flex; gap: 8px; padding: 10px 14px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 12px;
}
.page-search input {
  flex: 1; height: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 2px;
  font-size: 13px; font-family: inherit; outline: none;
  color: var(--text);
}
.page-search input:focus { border-color: var(--primary); }
.page-search button {
  padding: 0 14px; height: 32px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 2px; cursor: pointer;
  font-size: 13px; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.page-search button:hover { background: var(--primary-dark); }

/* ===================== 右侧边栏 ===================== */
.sidebar-panel {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 12px; overflow: hidden;
}
.sidebar-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.sidebar-panel-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 5px;
}
.sidebar-panel-title::before {
  content: ''; width: 2px; height: 12px;
  background: var(--primary); border-radius: 1px; display: block;
}
.sidebar-panel-more { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.sidebar-panel-more:hover { color: var(--primary); }

/* 排行榜 */
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.1s;
}
.rank-item:hover { background: #fafafa; }
.rank-item:last-child { border-bottom: none; }
.rank-num {
  width: 18px; height: 18px; border-radius: 2px;
  font-size: 11px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--border); color: var(--text-muted);
}
.rank-num.top1 { background: #e8b84b; color: #fff; }
.rank-num.top2 { background: #b0b0b0; color: #fff; }
.rank-num.top3 { background: #c0784b; color: #fff; }
.rank-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: #eee;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 12px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-sub { font-size: 11px; color: var(--text-muted); }

/* 关注作者 / 热门圈子 */
.follow-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid var(--border-light);
}
.follow-item:last-child { border-bottom: none; }
.follow-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: #eee;
}
.follow-name { flex: 1; font-size: 12px; color: var(--text); }
.follow-btn {
  font-size: 11px; padding: 2px 8px;
  border: 1px solid var(--primary); border-radius: 2px;
  color: var(--primary); cursor: pointer; background: #fff;
  transition: all 0.15s; white-space: nowrap;
}
.follow-btn:hover { background: var(--primary); color: #fff; }
.follow-btn.followed { background: var(--border); border-color: var(--border); color: var(--text-muted); }

/* ===================== 分类 tabs ===================== */
.cat-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0; background: #fff;
  padding: 0 14px;
}
.cat-tab {
  padding: 10px 14px; font-size: 13px;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.15s; white-space: nowrap;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* ===================== 用户个人页侧栏 ===================== */
.user-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 4px; padding: 16px; margin-bottom: 12px;
}
.user-card-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto 8px;
  background: #eee; border: 3px solid var(--border);
}
.user-card-name {
  text-align: center; font-size: 15px; font-weight: 600;
  margin-bottom: 2px;
}
.user-card-uid {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.user-card-stats {
  display: flex; border-top: 1px solid var(--border-light);
  padding-top: 10px; text-align: center;
}
.user-stat { flex: 1; }
.user-stat-num { font-size: 16px; font-weight: 700; color: var(--primary); }
.user-stat-label { font-size: 11px; color: var(--text-muted); }

.user-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s, color 0.1s;
}
.user-menu a:last-child { border-bottom: none; }
.user-menu a:hover { background: #fafafa; color: var(--primary); }
.user-menu a .arrow { color: var(--text-muted); font-size: 11px; }
.user-menu .expandable { display: none; }
.user-menu .expand-btn { cursor: pointer; }
.user-menu .expand-btn .arrow { transition: transform 0.2s; }
.user-menu .expand-btn.open .arrow { transform: rotate(90deg); }

/* ===================== 广告/推荐 banner ===================== */
.ad-banner {
  display: block; width: 100%; border-radius: 4px;
  overflow: hidden; margin-bottom: 12px;
}
.ad-banner img { width: 100%; display: block; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 2px; border: none;
  font-size: 13px; font-family: inherit; cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); opacity: 1; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; opacity: 1; }
.btn-ghost { background: #fff; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 9px 20px; font-size: 15px; }

/* ===================== 表单 ===================== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 13px;
  color: var(--text-muted); margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 2px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-light); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ===================== 模态框 ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 4px; padding: 24px;
  width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(12px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title {
  font-size: 16px; font-weight: 600; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.modal-title::before {
  content: ''; width: 3px; height: 16px;
  background: var(--primary); border-radius: 1px;
}
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* ===================== Toast ===================== */
.toast-container {
  position: fixed; top: 56px; right: 16px; z-index: 400;
  display: flex; flex-direction: column; gap: 6px;
}
.toast {
  padding: 10px 16px; border-radius: 4px; font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.25s ease; max-width: 300px;
}
.toast-success { background: #fff; border-left: 4px solid #10b981; color: #333; }
.toast-error { background: #fff; border-left: 4px solid #ef4444; color: #333; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===================== 标签 ===================== */
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 2px;
  font-size: 11px; background: rgba(200,168,75,0.1);
  color: var(--primary); border: 1px solid rgba(200,168,75,0.3);
}

/* ===================== 分页 ===================== */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  align-items: center; margin: 16px 0;
}
.page-btn {
  min-width: 30px; height: 30px; border-radius: 2px;
  border: 1px solid var(--border); background: #fff;
  color: var(--text); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; font-family: inherit;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===================== 徽章 ===================== */
.badge {
  display: inline-flex; align-items: center; padding: 1px 6px;
  border-radius: 2px; font-size: 11px; font-weight: 500;
}
.badge-yellow { background: rgba(200,168,75,0.15); color: var(--primary); border: 1px solid rgba(200,168,75,0.3); }
.badge-red { background: rgba(224,82,82,0.1); color: var(--red); border: 1px solid rgba(224,82,82,0.25); }
.badge-gray { background: #f0f0f0; color: var(--text-muted); border: 1px solid var(--border); }
.badge-blue { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }

/* ===================== 空状态 ===================== */
.empty {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted); font-size: 13px;
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }

/* ===================== 加载动画 ===================== */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.7s linear infinite; margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 页脚 ===================== */
.site-footer {
  background: #404040; color: #aaa;
  margin-top: 32px; padding: 32px 0 16px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 32px; margin-bottom: 24px;
}
.footer-col-title {
  font-size: 14px; color: #ddd; font-weight: 600;
  margin-bottom: 12px;
}
.footer-link {
  display: block; color: #999; margin-bottom: 8px;
  font-size: 13px; transition: color 0.15s;
}
.footer-link:hover { color: var(--primary); }
.footer-qr img { width: 80px; height: 80px; border-radius: 2px; }
.footer-qr-label { font-size: 11px; color: #888; text-align: center; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid #505050; padding-top: 14px;
  text-align: center; font-size: 12px; color: #777;
  line-height: 2;
}

/* ===================== 图片预览 ===================== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 2px; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; color: #fff; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* ===================== 快速发布按钮 ===================== */
.publish-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 2px; cursor: pointer;
  font-size: 13px; font-family: inherit; font-weight: 500;
  transition: background 0.15s; white-space: nowrap;
}
.publish-btn:hover { background: var(--primary-dark); }

/* ===================== 通知下拉 ===================== */
.notify-dropdown {
  width: 280px; right: -8px;
}
.notify-item {
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.1s;
}
.notify-item:hover { background: #fafafa; }
.notify-item-title { font-size: 13px; color: var(--text); margin-bottom: 2px; }
.notify-item-time { font-size: 11px; color: var(--text-muted); }
.notify-section-title {
  padding: 6px 14px; font-size: 11px; color: var(--text-muted);
  background: #fafafa; border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .layout-sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 12px; gap: 12px; }
  .navbar-nav { display: none; }
  .layout { flex-direction: column; }
  .layout-sidebar { width: 100%; }
  .event-cover { width: 120px; height: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .event-item { flex-direction: column; }
  .event-cover { width: 100%; height: 160px; }
  .event-countdown { width: 100%; height: 48px; flex-direction: row; border-left: none; border-top: 1px solid var(--border-light); }
}
