/* ============================================================
   朋友圈素材库 · 设计系统
   承接官网品牌基因：暖橙 #E8590C + 米白纸感底 + 衬线标题
   ============================================================ */
:root {
  --primary: #E8590C;
  --primary-dark: #C94A06;
  --primary-light: #FFF1E6;
  --ink: #1B1F24;
  --ink-2: #3E4650;
  --muted: #7A828C;
  --line: #ECE9E5;
  --bg: #F8F6F3;
  --white: #fff;
  --gold: #F08C00;
  --green: #12B76A;
  --blue: #2E90FA;
  --red: #F04438;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27,31,36,.04), 0 10px 30px rgba(27,31,36,.07);
  --shadow-sm: 0 1px 3px rgba(27,31,36,.06);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --grad: linear-gradient(135deg, #FF8A2A 0%, #E8590C 58%, #D94E04 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
img { display: block; max-width: 100%; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* 电脑端体验优化：内容更舒展、悬停反馈 */
@media (min-width: 900px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 24px; }
  .topbar-inner { max-width: 820px; padding: 12px 24px; }
  .post { transition: box-shadow .2s, transform .2s; }
  .post:hover { box-shadow: var(--shadow); }
  .cal-cell { min-height: 84px; }
  .day-head .d { font-size: 19px; }
  .post-content { font-size: 15.5px; }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 820px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.topbar > .topbar-inner { max-width: 820px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: -2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  border-radius: 99px; background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); max-width: 150px;
}
.avatar-chip .dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.avatar-chip span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: all .18s ease-out;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 2px 8px rgba(232,89,12,.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 4px 14px rgba(232,89,12,.36); }
.btn-ghost { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-danger-ghost { background: var(--white); border: 1px solid var(--line); color: var(--red); }
.btn-danger-ghost:hover { border-color: var(--red); background: #FEF3F2; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; font-weight: 600; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 返回按钮 */
.btn-back {
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 14px; padding: 8px 14px 8px 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: all .18s ease-out; user-select: none;
  min-height: 36px;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-back:active { transform: scale(.97); }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
}

/* ---------- 通用 ---------- */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; margin: 24px 0 12px;
}
.section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad);
}
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.input, textarea.input, select.input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,89,12,.1); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.7; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

/* ---------- 登录页 ---------- */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(240,140,0,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232,89,12,.08), transparent 55%),
    var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
.login-card { width: 100%; max-width: 400px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .mark {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--grad); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(232,89,12,.3);
}
.login-brand h1 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.login-brand p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.login-card .card { padding: 28px 24px; }
.login-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 12px; }
.login-err {
  display: none; background: #FEF3F2; color: var(--red); border: 1px solid #FEE4E2;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px;
}
.login-err.show { display: block; }

/* ---------- 视图切换 ---------- */
.seg {
  display: inline-flex; background: #EFECE8; border-radius: 99px; padding: 3px; gap: 2px;
}
.seg button {
  padding: 6px 16px; border-radius: 99px; font-size: 13px; color: var(--muted); font-weight: 500;
  transition: all .18s ease-out; display: flex; align-items: center; gap: 5px;
}
.seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(27,31,36,.12); }

/* ---------- 筛选条 ---------- */
.filter-bar { display: flex; gap: 8px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.filter-bar .input { width: auto; padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 8px; }
.chip {
  flex-shrink: 0; padding: 5px 13px; border-radius: 99px; font-size: 13px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .15s;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 信息流 ---------- */
.day-group { margin: 20px 0; }
.day-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding: 0 2px;
}
.day-head .d { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.day-head .cnt { font-size: 12px; color: var(--muted); }
.day-head .ln { flex: 1; height: 1px; background: var(--line); }

.post { margin-bottom: 16px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; flex-wrap: wrap; }
.topic-tag {
  font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 500;
}
.post-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.top-badge {
  font-size: 11px; background: var(--primary-light); color: var(--primary-dark);
  padding: 1px 7px; border-radius: 5px; font-weight: 600;
}
.post-content {
  padding: 10px 14px 0; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
}
.post-content .fold-btn { color: var(--blue); font-size: 13px; display: inline; }

.grid-imgs { display: grid; gap: 4px; padding: 10px 14px 0; }
.grid-imgs.g1 { grid-template-columns: minmax(0, 78%); }
.grid-imgs.g2, .grid-imgs.g4 { grid-template-columns: repeat(2, 1fr); }
.grid-imgs.g3, .grid-imgs.g5, .grid-imgs.g6, .grid-imgs.g7, .grid-imgs.g8, .grid-imgs.g9 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-imgs .cell {
  position: relative; padding-top: 100%; overflow: hidden; border-radius: 6px; background: #F2EFEA; cursor: zoom-in;
}
.grid-imgs .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.grid-imgs .cell:active img { transform: scale(1.03); }
.grid-imgs.g1 .cell { padding-top: 0; aspect-ratio: auto; }
.grid-imgs.g1 .cell img { position: static; height: auto; max-height: 420px; width: 100%; object-fit: contain; }

.video-box { position: relative; margin: 10px 14px 0; border-radius: 10px; overflow: hidden; background: #000; }
.video-box video { width: 100%; max-height: 480px; display: block; }
.video-badge {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 3px 9px; border-radius: 99px; backdrop-filter: blur(4px);
}

.link-card {
  margin: 10px 14px 0; display: flex; gap: 10px; padding: 10px;
  background: var(--bg); border-radius: 10px; border: 1px solid var(--line);
}
.link-card .ic {
  width: 42px; height: 42px; border-radius: 9px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0;
}
.link-card .t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.link-card .d { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-actions {
  display: flex; gap: 8px; padding: 12px 14px 14px; margin-top: 10px;
  border-top: 1px dashed var(--line);
}
.act-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 4px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  background: var(--bg); color: var(--ink-2); transition: all .15s;
}
.act-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.act-btn.main { background: var(--grad); color: #fff; box-shadow: 0 2px 8px rgba(232,89,12,.25); }
.act-btn.main:hover { filter: brightness(1.05); }
.act-btn svg { width: 16px; height: 16px; }

/* ---------- 日历 ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.cal-nav .m { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wk { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-cell {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  min-height: 64px; padding: 6px; position: relative; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column;
}
.cal-cell:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(232,89,12,.12); }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border-color: var(--primary); }
.cal-cell .n { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-cell .marks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.cal-cell .mk {
  width: 6px; height: 6px; border-radius: 2px; background: var(--primary);
}
.cal-cell .cnt {
  margin-top: auto; font-size: 11px; color: var(--primary-dark); font-weight: 600;
}
.cal-cell .mk-video { background: var(--blue); }

/* ---------- 大图预览 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 96vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox .bar {
  margin-top: 14px; display: flex; gap: 10px; align-items: center; color: #fff; font-size: 13px;
}
.lightbox .bar .btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.lb-close { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 30px; line-height: 1; padding: 8px; }

/* ---------- 转发卡片（成品） ---------- */
.wm-card-page { background: #E8E4DE; }
.forward-card {
  width: 100%; max-width: 420px; margin: 16px auto; background: var(--white);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.forward-card .shots { display: grid; gap: 3px; }
.forward-card .shots img { width: 100%; display: block; }
.forward-card .meta { padding: 12px 14px 14px; }
.forward-card .meta .nm { font-weight: 600; font-size: 13px; color: #576B95; }
.forward-card .meta .txt { font-size: 14.5px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%) translateY(16px);
  background: rgba(20,22,26,.92); color: #fff; padding: 10px 20px; border-radius: 99px;
  font-size: 14px; z-index: 300; opacity: 0; transition: all .25s ease-out; pointer-events: none;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 底部 ---------- */
.page-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 0 90px; }
.page-foot a { color: var(--primary); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty .ic { font-size: 40px; margin-bottom: 10px; opacity: .55; }
.empty .t { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

/* ---------- 加载 ---------- */
.loading { text-align: center; padding: 30px; color: var(--muted); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { display: block; margin: 6px auto 0; }

/* ============ 管理端 ============ */
.admin-body { display: flex; min-height: 100vh; }
.admin-side {
  width: 208px; flex-shrink: 0; background: var(--white); border-right: 1px solid var(--line);
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; margin-bottom: 2px; transition: all .12s;
}
.admin-nav a:hover { background: var(--bg); }
.admin-nav a.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.admin-nav a svg { width: 17px; height: 17px; opacity: .8; }
.admin-main { flex: 1; padding: 22px 26px 60px; max-width: 980px; }
.admin-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.admin-top h1 { font-family: var(--serif); font-size: 22px; flex: 1; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.stat .v { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.hot .v { color: var(--primary); }

.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.tb th, .tb td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tb th { background: #FBFAF8; font-weight: 600; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.tb tr:last-child td { border-bottom: none; }
.tb tr:hover td { background: #FCFBF9; }
.tb .mini-img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: #F2EFEA; }
.tb .ops { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500;
}
.badge.green { background: #ECFDF3; color: #067647; }
.badge.gray { background: #F2F4F7; color: #475467; }
.badge.orange { background: var(--primary-light); color: var(--primary-dark); }
.badge.red { background: #FEF3F2; color: #B42318; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,17,21,.5); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--white); border-radius: 16px; width: 100%; max-width: 640px;
  padding: 24px; box-shadow: var(--shadow); animation: pop .22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; }
.modal h3 .x { margin-left: auto; color: var(--muted); font-size: 22px; padding: 0 4px; cursor: pointer; }

/* 上传区 */
.up-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .15s; background: #FCFBF9;
}
.up-zone:hover, .up-zone.drag { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.up-zone .big { font-size: 26px; margin-bottom: 4px; }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.up-item { position: relative; border-radius: 10px; overflow: hidden; background: #F2EFEA; padding-top: 100%; }
.up-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up-item .del {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.up-item .idx {
  position: absolute; left: 5px; top: 5px; background: rgba(0,0,0,.5); color: #fff;
  min-width: 20px; height: 20px; border-radius: 6px; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.up-item.done::after { content: "✓"; position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.up-item.err::after { content: "!"; position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; background: var(--red); color: #fff; border-radius: 50%; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* 移动端适配 */
@media (max-width: 860px) {
  .admin-body { flex-direction: column; }
  .admin-side {
    width: 100%; height: auto; position: static; padding: 10px 12px;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .admin-side .brand { padding: 2px 8px 8px; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .admin-nav a { white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 16px 14px 60px; }
  .form-row { flex-direction: column; gap: 0; }
}
@media (max-width: 640px) {
  .grid-imgs.g2, .grid-imgs.g4 { grid-template-columns: repeat(2, 1fr); }
  .cal-cell { min-height: 52px; border-radius: 8px; }
  .post-actions { gap: 6px; }
  .act-btn { font-size: 12.5px; padding: 8px 2px; }
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  /* 手机端导航栏：防止标题过长挤出屏幕 */
  .brand-sub { display: none; }
  .brand-name { font-size: 14.5px; white-space: nowrap; letter-spacing: 0; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .avatar-chip { max-width: 96px; padding: 4px 8px 4px 5px; font-size: 12.5px; }
  .avatar-chip .dot { width: 22px; height: 22px; font-size: 11px; }
  .topbar-actions .btn { padding: 6px 10px; font-size: 12.5px; }
  .admin-top { flex-direction: column; align-items: stretch; }
  .admin-top h1 { font-size: 19px; }
}
.admin-nav { scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }

/* 安全区（iOS 底部） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- 活动预告（首页） ---------- */
.events-box {
  margin: 14px 0 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ev-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 10px;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  border-bottom: 1px dashed var(--line);
}
.ev-head .ev-ico { font-size: 15px; }
.ev-head .ev-sub { margin-left: auto; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.ev-list { padding: 6px 12px 10px; }
.ev-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 6px;
}
.ev-item + .ev-item { border-top: 1px solid var(--bg); }
.ev-date {
  flex: 0 0 58px; text-align: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 7px 4px 6px; line-height: 1.25;
}
.ev-date .ev-d { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.ev-date .ev-w { font-size: 11px; opacity: .85; }
.ev-main { flex: 1; min-width: 0; }
.ev-name { font-weight: 700; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.ev-past {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--bg); border-radius: 999px; vertical-align: 2px;
}
.ev-meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.ev-meta .ev-ic { color: var(--primary); margin-right: 4px; }
.ev-sub-title { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.ev-empty { padding: 6px 6px 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .ev-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .ev-item + .ev-item { border-top: none; }
  .ev-item:nth-child(n+3) { border-top: 1px solid var(--bg); }
}

/* 跨天活动：日期块显示「起始 到 结束」 */
.ev-date.ev-date-range { flex-basis: 66px; padding: 5px 3px 4px; }
.ev-date.ev-date-range .ev-d { font-size: 13px; }
.ev-date .ev-dash { font-size: 10px; opacity: .75; line-height: 1.1; }
