:root {
  --bg: #fdfcfa;
  --bg-sidebar: #f7f5f0;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --border: #e8e4dc;
  --accent: #4a7c59;
  --accent-finance: #3d7a6e;
  --accent-chat: #7a8f4e;
  --danger: #b4534b;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-sans: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --sidebar-width: 240px;
  --content-max: 680px;
  --page-max: 960px;
  --mobile-pad: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 顶栏 ── */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--page-max); margin: 0 auto; padding: 1.1rem 1.5rem;
}
.site-logo { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.site-logo:hover { text-decoration: none; color: var(--accent); }
.topbar-nav { display: flex; gap: 1.5rem; }
.topbar-link { font-size: 0.92rem; color: var(--text-muted); }
.topbar-link:hover, .topbar-link.active { color: var(--text); text-decoration: none; }
.topbar-link.active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* ── 两栏 ── */
.layout {
  display: grid; grid-template-columns: var(--sidebar-width) 1fr; gap: 3rem;
  max-width: var(--page-max); margin: 0 auto; padding: 2.5rem 1.5rem 3rem; align-items: start;
}
.main { min-width: 0; max-width: var(--content-max); }

/* ── 侧栏 ── */
.sidebar { position: sticky; top: 1.5rem; padding-right: 1rem; border-right: 1px solid var(--border); }
.sidebar-greeting { margin: 0 0 0.5rem; font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; color: var(--text); }
.sidebar-about { margin: 0 0 1.75rem; font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); }
.sidebar-label { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li + li { margin-top: 0.15rem; }
.sidebar-link { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0; font-size: 0.92rem; color: var(--text-muted); }
.sidebar-link:hover, .sidebar-link.active { color: var(--text); text-decoration: none; }
.sidebar-link.active { font-weight: 600; }
.sidebar-link .count { font-size: 0.78rem; color: var(--text-light); }

/* ── 列表页 ── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin: 0 0 0.4rem; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
.page-lead { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

.featured-post { display: block; margin-bottom: 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: inherit; }
.featured-post:hover { text-decoration: none; }
.featured-post:hover h2 { color: var(--accent); }
.featured-label { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.featured-post h2 { margin: 0 0 0.5rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.4; }
.featured-post p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-bottom: 1px solid var(--border); }
.post-item-link { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding: 1.35rem 0; color: inherit; }
.post-item-link:hover { text-decoration: none; }
.post-item-link:hover h2 { color: var(--accent); }
.post-item-date { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; padding-top: 0.15rem; }
.post-item-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; margin-bottom: 0.35rem; }
.post-item-body h2 { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; line-height: 1.45; }
.post-item-body p { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.category-dot { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.category-dot.finance { color: var(--accent-finance); }
.category-dot.chat { color: var(--accent-chat); }

.empty-state { padding: 2rem 0; color: var(--text-muted); font-size: 0.95rem; }

.site-footer { max-width: var(--page-max); margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.82rem; color: var(--text-light); }
.site-footer p { margin: 0; }

/* ── 文章页（手机优先） ── */
/* 字体走系统无衬线（PingFang / 苹方），更柔和、不生硬 */
.article-page {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px; line-height: 1.85; color: #2b2b2b; background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; padding-top: max(0.75rem, env(safe-area-inset-top)); border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top: 0; z-index: 10; }
.mobile-header-brand { font-size: 0.95rem; font-weight: 600; color: #1a1a1a; }
.mobile-header-tag { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 6px; }
.mobile-header-tag.finance { color: #3d7a6e; background: #eef6f4; }
.mobile-header-tag.chat { color: #7a8f4e; background: #f3f6ec; }

.mobile-article { max-width: 680px; margin: 0 auto; padding: 0 0 2rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
.article-cover { margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f5f5f5; }
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mobile-article-header { padding: 1.5rem 1.15rem 0; }
.mobile-article-header h1 { margin: 0 0 0.85rem; font-size: 1.5rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.01em; color: #1a1a1a; word-break: break-word; }
.mobile-article-lead { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.7; color: #888; }
.mobile-article-meta { margin: 0; padding-bottom: 1.1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.8rem; color: #aaa; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.article-views { color: #bbb; }
.article-edit { font-size: 0.8rem; color: var(--accent); }

.mobile-prose { padding: 1.5rem 1.15rem 0; font-size: 1.0625rem; line-height: 1.9; letter-spacing: 0.01em; color: #2b2b2b; word-break: break-word; overflow-wrap: break-word; }
.mobile-prose p { margin: 0 0 1.3em; }
.mobile-prose h2 { margin: 2em 0 0.8em; font-size: 1.24rem; font-weight: 600; line-height: 1.5; color: #1a1a1a; padding-left: 0.7rem; border-left: 4px solid var(--accent); }
.mobile-prose h3 { margin: 1.6em 0 0.6em; font-size: 1.08rem; font-weight: 600; line-height: 1.5; color: #2b2b2b; }
.mobile-prose ul, .mobile-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.mobile-prose li { margin-bottom: 0.55em; line-height: 1.85; }
.mobile-prose li p { margin: 0; }
.mobile-prose blockquote { margin: 1.4em 0; padding: 0.85rem 1rem; border-left: 3px solid #d8e3da; background: #f7faf8; color: #5a665e; font-size: 1rem; border-radius: 0 8px 8px 0; }
.mobile-prose blockquote p { margin: 0; }
.mobile-prose strong { font-weight: 600; color: #1a1a1a; }
.mobile-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mobile-prose code { padding: 0.15em 0.4em; font-size: 0.9em; background: #f4f5f4; border-radius: 4px; color: #b4534b; }
.mobile-prose pre { margin: 1.3em 0; padding: 1rem; background: #f6f6f4; border-radius: 10px; overflow-x: auto; }
.mobile-prose pre code { padding: 0; background: none; color: inherit; }
.mobile-prose img { display: block; width: 100%; max-width: 100%; height: auto; margin: 1.4em 0; border-radius: 10px; background: #f5f5f5; }
.mobile-prose hr { margin: 2.2em 0; border: none; border-top: 1px solid #eee; }

/* 表格：圆角、清晰边框、表头底色，手机可横向滚动 */
.mobile-prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid #c9cdc6;
  border-radius: 12px;
  overflow: hidden;
  display: table;
  background: #fff;
}
.mobile-prose thead th {
  background: #eef3f0;
  color: #2f4239;
  font-weight: 600;
  text-align: left;
}
.mobile-prose th, .mobile-prose td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #dcdfd9;
  border-right: 1px solid #e4e7e1;
}
.mobile-prose th:last-child, .mobile-prose td:last-child { border-right: none; }
.mobile-prose tbody tr:last-child td { border-bottom: none; }
.mobile-prose tbody tr:nth-child(even) td { background: #f7f9f7; }
.mobile-prose td strong { color: #2b6a4f; }

/* 表格在窄屏可横向滚动的外层容器 */
.table-wrap { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; }

.mobile-article-footer { margin-top: 2.5rem; padding: 1.5rem 1rem 0; border-top: 1px solid #eee; text-align: center; }
.mobile-article-sign { margin: 0 0 1rem; font-size: 0.82rem; color: #bbb; letter-spacing: 0.15em; }
.mobile-article-more { display: inline-block; padding: 0.65rem 1.5rem; font-size: 0.9rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; }
.mobile-article-more:hover { text-decoration: none; background: #f3f7f4; }

/* ── 留言 ── */
.comments { margin-top: 2rem; padding: 1.5rem 1.15rem 0; border-top: 1px solid #eee; }
.comments-title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 600; color: #1a1a1a; }
.comments-count { font-size: 0.85rem; font-weight: 500; color: #aaa; }
.comments-list { margin-bottom: 1.25rem; }
.comments-empty { margin: 0; font-size: 0.9rem; color: #aaa; }
.comment-item { padding: 0.85rem 0; border-bottom: 1px solid #f3f3f3; }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.comment-author { font-size: 0.88rem; font-weight: 600; color: #444; }
.comment-time { font-size: 0.75rem; color: #bbb; white-space: nowrap; }
.comment-body { font-size: 0.95rem; line-height: 1.75; color: #333; word-break: break-word; }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; color: #888; }
.comment-label input, .comment-label textarea {
  padding: 0.65rem 0.75rem; border: 1px solid #e4e4e4; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fafafa; color: #2b2b2b;
}
.comment-label textarea { line-height: 1.6; resize: vertical; min-height: 5.5rem; }
.comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-submit {
  align-self: flex-start; padding: 0.6rem 1.25rem; border: none; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.92rem; cursor: pointer;
}
.comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-msg { margin: 0; font-size: 0.85rem; }
.comment-msg.ok { color: var(--accent); }
.comment-msg.err { color: var(--danger); }
.comment-note { margin: 0; font-size: 0.78rem; color: #bbb; line-height: 1.5; }
.comment-admin-table .comment-admin-content { max-width: 360px; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); word-break: break-word; }

/* 留言回复（两层） */
.comment-thread { border-bottom: 1px solid #f3f3f3; }
.comment-thread:last-child { border-bottom: none; }
.comment-thread .comment-item { border-bottom: none; }
.comment-badge {
  margin-left: 0.4rem; padding: 0.08rem 0.4rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 500; vertical-align: 0.08em;
}
.comment-at { margin-right: 0.35rem; color: var(--accent); font-weight: 500; }
.comment-actions { margin-top: 0.35rem; }
.comment-reply-btn {
  padding: 0; border: none; background: none; cursor: pointer;
  font-size: 0.78rem; color: #bbb; font-family: inherit;
}
.comment-reply-btn:hover { color: var(--accent); }
.comment-children { margin-left: 1rem; padding-left: 0.85rem; border-left: 2px solid #f0f0f0; }
.comment-reply { padding: 0.65rem 0; }
.comment-reply .comment-body { font-size: 0.9rem; }
.comment-replybox { margin: 0.5rem 0 0.25rem; }
.comment-form-inline { gap: 0.5rem; padding: 0.85rem; border-radius: 12px; background: #fafafa; }
.comment-form-inline textarea { min-height: 4rem; background: #fff; }
.comment-form-inline input { background: #fff; }
.comment-inline-actions { display: flex; align-items: center; gap: 0.75rem; }
.comment-inline-actions .comment-submit { padding: 0.45rem 1rem; font-size: 0.85rem; }
.comment-cancel {
  padding: 0; border: none; background: none; cursor: pointer;
  font-size: 0.82rem; color: #bbb; font-family: inherit;
}
.comment-cancel:hover { color: var(--text-muted); }
.comment-reply-hint { margin-left: 0.4rem; font-size: 0.75rem; color: var(--text-light); white-space: nowrap; }
.dash-views { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-muted); }
.view-ip { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--text-light); }

.view-days-nav { display: flex; gap: 0.5rem; margin: 0 0 1.25rem; flex-wrap: wrap; }
.view-days-link {
  display: inline-block; padding: 0.35rem 0.75rem; font-size: 0.82rem;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
}
.view-days-link:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.view-days-link.active { background: #eef3f0; color: var(--accent); border-color: var(--accent); font-weight: 600; }

.view-chart-section { margin: 0 0 2rem; padding: 1.1rem 1rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.view-chart-title { margin: 0 0 1rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.view-chart-sub { font-weight: 400; color: var(--text-light); font-size: 0.82rem; }
.view-chart { display: flex; align-items: flex-end; gap: 0.35rem; min-height: 160px; padding-top: 1.2rem; overflow-x: auto; }
.view-chart-col { flex: 1 0 28px; max-width: 48px; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-height: 140px; }
.view-chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 100px; }
.view-chart-bar { width: 70%; min-height: 0; background: linear-gradient(180deg, #6ba888 0%, var(--accent) 100%); border-radius: 6px 6px 2px 2px; transition: height 0.2s ease; }
.view-chart-count { font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.view-chart-label { font-size: 0.68rem; color: var(--text-light); white-space: nowrap; }

/* ── 同学聚会（重构版 rv-） ── */
.rv-body { background: #f6f4ef; }
.rv { max-width: 960px; margin: 0 auto; padding: 0 1rem 4rem; }

/* Hero 请柬 */
.rv-hero {
  margin: 1.25rem 0 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #3d7a6e 0%, #4a7c59 55%, #6b8e4e 100%);
  position: relative;
}
.rv-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
/* 上传了聚会图片时：图片干净地放上面，文字排在下面（浅底深字） */
.rv-hero--split { background: none; }
.rv-hero--split::after { display: none; }
.rv-photo { border-radius: 22px; overflow: hidden; background: #f0ede6; line-height: 0; }
.rv-photo img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.rv-hero-inner--below { color: var(--text); padding: 1.75rem 0 0.5rem; text-shadow: none; }
.rv-hero-inner--below .rv-eyebrow,
.rv-hero-inner--below .rv-title,
.rv-hero-inner--below .rv-subtitle { padding-left: 0.5rem; padding-right: 0.5rem; }
.rv-hero-inner--below .rv-eyebrow { color: var(--accent); }
.rv-hero-inner--below .rv-title { color: var(--text); }
.rv-hero-inner--below .rv-subtitle { color: var(--text-muted); }
.rv-hero-inner--below .rv-fact { background: #fff; border: 1px solid var(--border); }
.rv-hero-inner--below .rv-fact-label { color: var(--text-light); }
.rv-hero-inner--below .rv-fact-val { color: var(--text); }
.rv-hero-inner { position: relative; z-index: 1; padding: 2.5rem 1.5rem 2.25rem; text-align: center; color: #fff; }
.rv-eyebrow { margin: 0 0 0.85rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; color: rgba(255,255,255,0.85); }
.rv-title { margin: 0 0 0.7rem; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1.3; color: #fff; }
.rv-subtitle { margin: 0 auto 1.75rem; max-width: 30em; font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,0.92); }
.rv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.5rem; }
.rv-fact {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  min-width: 0; padding: 0.8rem 0.5rem; border-radius: 14px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(4px);
}
.rv-fact-ic { font-size: 1.25rem; line-height: 1; }
.rv-fact-label { font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); }
.rv-fact-val { font-size: 0.92rem; font-weight: 600; color: #fff; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.rv-hero-cta {
  display: inline-block; padding: 0.75rem 2rem; border-radius: 999px;
  background: #fff; color: #3d7a6e; font-size: 1rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15); transition: transform 0.15s ease;
}
.rv-hero-cta:hover { text-decoration: none; transform: translateY(-2px); color: #33685e; }

/* 数据条 */
.rv-stats { display: grid; grid-template-columns: minmax(150px, 220px); justify-content: center; gap: 0.75rem; margin: -1.25rem 0.5rem 1.5rem; position: relative; z-index: 2; }
.rv-stat {
  padding: 1rem 0.5rem; text-align: center; background: #fff; border-radius: 16px;
  border: 1px solid #ece8df; box-shadow: 0 4px 14px rgba(60,50,30,0.05);
}
.rv-stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rv-stat span { font-size: 0.78rem; color: #999; }

.reunion-img-tools { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.reunion-img-hint { font-size: 0.82rem; color: #999; }
.reunion-img-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reunion-img-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid #ece8df; }

/* 两栏布局 */
.rv-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }
.rv-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.rv-aside { min-width: 0; }
.rv-card { padding: 1.5rem 1.35rem; background: #fff; border-radius: 18px; border: 1px solid #ece8df; box-shadow: 0 2px 10px rgba(60,50,30,0.04); }
.rv-h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; font-size: 1.2rem; font-weight: 600; color: #1f1f1f; }
.rv-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  background: #eef3f0; color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.rv-prose { line-height: 1.9; font-size: 1rem; color: #3a3a3a; }
.rv-prose p { margin: 0 0 1em; }
.rv-prose p:last-child { margin-bottom: 0; }
.rv-rules p { padding-left: 0.25rem; }
.rv-lead { margin: 0 0 1rem; font-size: 0.85rem; color: #999; line-height: 1.55; }
.rv-notice { margin: 0 0 1.1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: #fbf1e6; border: 1px solid #f0dcc4; color: #97591f; font-size: 0.9rem; line-height: 1.6; }
.rv-schedule { list-style: none; counter-reset: rv-sch; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.rv-schedule li { counter-increment: rv-sch; position: relative; padding-left: 2.4rem; }
.rv-schedule li::before {
  content: counter(rv-sch); position: absolute; left: 0; top: 0.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef3f0; color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.rv-sch-head { display: block; font-size: 1rem; color: #2c2c2c; font-weight: 600; line-height: 1.5; }
.rv-sch-note { display: block; font-size: 0.92rem; color: #8a8a8a; line-height: 1.65; margin-top: 0.25rem; }

/* 名单 */
.reunion-signup-list { list-style: none; margin: 0; padding: 0; }
.reunion-list-item {
  display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.75rem; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid #f2f0ea;
}
.reunion-list-item:last-child { border-bottom: none; }
.reunion-list-name { font-weight: 600; color: #222; font-size: 1rem; }
.reunion-list-time { grid-column: 1; font-size: 0.82rem; color: #999; }
.reunion-list-tags { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.reunion-tag { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
.reunion-tag-drive { background: #eef3f0; color: #3d7a6e; }
.reunion-tag-walk { background: #f4f4f2; color: #999; }
.reunion-tag-carpool { background: #fff3e2; color: #b45309; }
.reunion-tag-dine { background: #fdeee6; color: #b05a2e; }
.reunion-tag-act { background: #eef1f7; color: #4a5b86; }
.reunion-list-empty { margin: 0; font-size: 0.92rem; color: #aaa; }

/* 报名表（吸顶） */
.rv-form-card { position: sticky; top: 1rem; scroll-margin-top: 1rem; }
.rv-form-h2 { color: var(--accent); }
.reunion-form { display: flex; flex-direction: column; gap: 0.9rem; }
.reunion-label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; color: #777; font-weight: 500; }
.reunion-cap { display: inline-flex; align-items: baseline; gap: 0.2rem; }
.reunion-label input, .reunion-label textarea {
  padding: 0.7rem 0.8rem; border: 1px solid #e4e2db; border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fbfaf7;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.reunion-label input:focus, .reunion-label textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.reunion-label select {
  padding: 0.7rem 0.8rem; border: 1px solid #e4e2db; border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fbfaf7;
  transition: border-color 0.15s ease, background 0.15s ease; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
.reunion-label select:focus { outline: none; border-color: var(--accent); background-color: #fff; }
.reunion-slots { display: flex; flex-direction: column; gap: 0.55rem; }
.reunion-legend-hint { color: #a99; font-weight: 400; font-size: 0.78rem; }
.reunion-time-hint { margin: 0 0 0.55rem; padding: 0.45rem 0.7rem; border-radius: 10px; background: #fbf1e6; border: 1px solid #f0dcc4; color: #97591f; font-size: 0.85rem; line-height: 1.5; }
#reunion-slot-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.reunion-slot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.reunion-slot .reunion-slot-date { flex: 1 1 100%; min-width: 0; }
.reunion-slot-time { flex: 1 1 auto; display: flex; align-items: center; gap: 0.4rem; }
.reunion-slot-time select { flex: 1 1 0; min-width: 0; }
.reunion-slot-sep { color: #999; flex: 0 0 auto; }
.reunion-slot input, .reunion-slot select {
  padding: 0.6rem 0.7rem; border: 1px solid #e4e2db; border-radius: 10px; font-size: 0.98rem;
  font-family: inherit; background: #fff; transition: border-color 0.15s ease;
}
.reunion-slot input:focus, .reunion-slot select:focus { outline: none; border-color: var(--accent); }
.reunion-slot .reunion-slot-del {
  flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #eae1e0; border-radius: 8px;
  background: #fff; color: #b5524a; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0;
}
.reunion-slot .reunion-slot-del:hover { background: #fbecea; }
.reunion-add-slot {
  align-self: flex-start; margin-top: 0.2rem; padding: 0.45rem 0.9rem; border: 1px dashed #cfc9be;
  border-radius: 999px; background: #fff; color: var(--accent); font-size: 0.88rem; cursor: pointer;
}
.reunion-add-slot:hover { border-color: var(--accent); background: #eef5f1; }
.reunion-name-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.reunion-name-row input { flex: 1; min-width: 120px; }
.reunion-lookup-btn { flex-shrink: 0; font-size: 0.85rem; border-radius: 12px; }
/* 与姓名/手机号一致：无边框盒子、标题贴左，整张表单对齐 */
.reunion-fieldset { margin: 0; padding: 0; border: 0; background: none; min-inline-size: 0; }
.reunion-fieldset legend { display: block; float: left; width: 100%; padding: 0; margin: 0 0 0.4rem; font-size: 0.82rem; color: #777; font-weight: 500; }
.reunion-fieldset legend + * { clear: both; }
.reunion-opts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.reunion-radio { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; color: #333; cursor: pointer; }
.reunion-radio input { margin: 0; }
.reunion-submit {
  margin-top: 0.35rem; padding: 0.85rem 1.5rem; border: none; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 1.02rem; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s ease;
}
.reunion-submit:hover { opacity: 0.92; }
.reunion-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.reunion-withdraw {
  margin-top: 0.1rem; padding: 0.5rem; border: none; background: none;
  color: #b06a5c; font-size: 0.9rem; cursor: pointer; align-self: center;
}
.reunion-withdraw:hover { text-decoration: underline; }
.reunion-withdraw:disabled { opacity: 0.6; cursor: not-allowed; }
.reunion-msg { margin: 0; font-size: 0.88rem; padding: 0.55rem 0.75rem; border-radius: 10px; }
.reunion-msg.ok { color: var(--accent); background: #eef5f1; }
.reunion-msg.err { color: var(--danger); background: #fbecea; }
.req { color: var(--danger); }

/* 后台日期统计 */
.reunion-tally-table td:last-child { width: 40%; }
.reunion-bar { display: inline-block; height: 12px; min-width: 2px; border-radius: 6px; background: var(--accent); opacity: 0.55; vertical-align: middle; }
.reunion-tally-best { background: #eef5f1; }
.reunion-tally-best .reunion-bar { opacity: 1; }
.reunion-tally-flag { margin-left: 0.5rem; font-size: 0.72rem; color: #fff; background: var(--accent); padding: 0.1rem 0.5rem; border-radius: 999px; }

/* 移动端悬浮报名按钮 */
.rv-fab {
  display: none; position: fixed; left: 50%; transform: translateX(-50%);
  bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  padding: 0.8rem 1.75rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.98rem; font-weight: 600; box-shadow: 0 8px 24px rgba(61,122,110,0.4);
}
.rv-fab:hover { text-decoration: none; color: #fff; }

@media (max-width: 820px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-form-card { position: static; }
}
@media (max-width: 768px) {
  .rv-title { font-size: 1.6rem; }
  .rv-hero-inner { padding: 2rem 1.15rem 1.85rem; }
  .rv-hero-inner--below { padding: 1.35rem 0 0.25rem; }
  .rv-fact { padding: 0.7rem 0.35rem; }
  .rv-stats { margin: -1rem 0 1.25rem; }
  .rv-stat strong { font-size: 1.35rem; }
  .rv-fab { display: inline-block; }
  .rv-aside { padding-bottom: 4rem; }
}

/* 后台聚会设置 */
.reunion-admin-settings { margin-bottom: 2rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.reunion-admin-h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; }
.reunion-admin-table { margin-top: 1.5rem; }

/* ── 后台 ── */
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.admin-head-actions { display: flex; gap: 0.75rem; }

.btn-primary { display: inline-block; padding: 0.55rem 1.25rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 0.92rem; cursor: pointer; }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { display: inline-block; padding: 0.55rem 1.1rem; background: #fff; color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.btn-ghost:hover { text-decoration: none; color: var(--text); border-color: var(--accent); }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dash-table th { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 2px solid var(--border); font-size: 0.8rem; color: var(--text-light); font-weight: 600; }
.dash-table td { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dash-title { font-weight: 500; }
.dash-date { color: var(--text-light); white-space: nowrap; }
.dash-actions { display: flex; gap: 0.85rem; align-items: center; white-space: nowrap; }
.dash-actions form { display: inline; margin: 0; }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.92rem; padding: 0; }
.link-danger:hover { text-decoration: underline; }

/* 登录 */
.admin-login { max-width: 360px; margin: 3rem auto; padding: 2rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.admin-login h1 { margin: 0 0 0.5rem; font-family: var(--font-serif); font-size: 1.3rem; text-align: center; }
.admin-login label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--text-muted); }
.admin-login input { padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.admin-login button { margin-top: 0.5rem; padding: 0.65rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.admin-error { margin: 0; padding: 0.6rem 0.85rem; background: #fbecea; color: var(--danger); border-radius: 8px; font-size: 0.88rem; text-align: center; }

/* 编辑器 */
.editor { display: flex; flex-direction: column; gap: 1rem; }
.editor label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.editor input, .editor select, .editor textarea { padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text); }
.editor textarea { line-height: 1.7; resize: vertical; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.95rem; }
.editor-grid { display: grid; grid-template-columns: 1fr 130px 160px; gap: 1rem; }
.cover-row { display: flex; gap: 0.5rem; }
.cover-row input { flex: 1; }
.editor-toolbar { display: flex; align-items: center; gap: 0.75rem; }
.editor-hint { font-size: 0.82rem; color: var(--text-light); }
.editor-actions { margin-top: 0.5rem; }
.preview-panel { margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.preview-panel h3 { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-light); }

/* ── 手机 ── */
@media (max-width: 768px) {
  .topbar-inner { padding: 0.85rem var(--mobile-pad); padding-top: max(0.85rem, env(safe-area-inset-top)); }
  .topbar-nav { gap: 0.85rem; }
  .topbar-link { font-size: 0.88rem; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 1.25rem var(--mobile-pad) 2rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main { max-width: none; }
  .page-header h1 { font-size: 1.45rem; }
  .post-item-link { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.1rem 0; }
  .post-item-body h2 { font-size: 1.05rem; }
  .editor-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 1.25rem var(--mobile-pad) 2rem; }
  .dash-actions { gap: 0.6rem; }
}
