/* 在粤陕西商会 — 设计系统（撞色版） */
:root {
  --primary: #9b2335;
  --primary-deep: #6b1524;
  --primary-mid: #7a1c2e;
  --gold: #d4a843;
  --gold-light: #f0d78c;
  --gold-deep: #a67c2e;
  --ink: #141010;
  --ink-soft: #2a2220;
  --cream: #ede4d4;
  --cream-dark: #ddd0bc;
  --sand: #c4b49a;
  --surface: #faf6f0;
  --text: #141010;
  --text-secondary: #4a4038;
  --text-tertiary: #7a7068;
  --text-on-dark: #faf6f0;
  --text-on-gold: #2a1a08;
  --border: rgba(20, 16, 16, 0.12);
  --border-strong: rgba(20, 16, 16, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --header-h: 64px;
  --max-w: 1040px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before { display: none; }

a { color: var(--primary); text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-light {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-light .brand-text { color: var(--text); }
.site-header-light .brand-mark { background: var(--primary); color: #fff; }

.site-header-light .site-nav a {
  color: var(--text-secondary);
}

.site-header-light .site-nav a:hover {
  color: var(--primary);
  background: rgba(155, 35, 53, 0.06);
}

.site-header-light .site-nav a.active {
  color: #fff;
  background: var(--primary);
}

.site-header-light .site-nav .nav-muted { color: var(--text-tertiary); }
.site-header-light .site-nav .nav-muted.active {
  color: #fff;
  background: var(--primary);
}

.page-home .site-header {
  background: rgba(250, 246, 240, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-admin-link {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition);
}

.header-admin-link:hover {
  color: var(--primary);
}

.site-header-light .header-admin-link { color: var(--text-tertiary); }
.site-header-light .header-admin-link:hover { color: var(--primary); }

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

.site-nav a {
  font-size: 14px;
  color: rgba(250, 246, 240, 0.72);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--ink);
  background: var(--gold);
  font-weight: 700;
}

.site-nav a.is-logged-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-serif);
}
.site-header-light .nav-avatar { background: var(--primary); color: #fff; }

.site-nav .nav-muted { color: rgba(250, 246, 240, 0.45); }
.site-nav .nav-muted.active { color: var(--ink); background: var(--gold); }

/* ── Home ── */
.page-home {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.home-main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.home-hero {
  padding: 48px 28px 56px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-mid) 100%);
  position: relative;
}

.home-hero::before,
.home-hero::after { display: none; }

.home-intro { position: relative; z-index: 1; }

.home-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.home-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 12px;
}

.home-intro p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 420px;
  margin: 0 auto;
}

.home-mp-hint {
  margin-top: 20px !important;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 14px !important;
  line-height: 1.6;
}

.home-mp-hint strong { color: #fff; }

.module-card-muted {
  cursor: default;
  opacity: 0.85;
}

.module-card-muted:hover {
  transform: none;
  border-color: var(--border);
  background: var(--cream);
}

.home-modules {
  background: var(--surface);
  padding: 48px 0 56px;
  flex: 1;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-grid-home {
  max-width: 820px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  min-height: 160px;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 35, 53, 0.25);
  background: #fff;
  text-decoration: none;
}

.module-card:nth-child(1) .module-icon { background: rgba(155, 35, 53, 0.1); color: var(--primary); }
.module-card:nth-child(2) .module-icon { background: rgba(166, 124, 46, 0.12); color: var(--gold-deep); }
.module-card:nth-child(3) .module-icon { background: rgba(20, 16, 16, 0.08); color: var(--ink-soft); }

.module-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.module-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.module-arrow {
  font-size: 18px;
  align-self: flex-end;
  color: var(--text-tertiary);
  transition: transform var(--transition), color var(--transition);
}

.module-card:hover .module-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

.page-home .site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.page-home .footer-inner p {
  color: var(--text);
  font-weight: 600;
}

.page-home .footer-muted {
  color: var(--text-tertiary) !important;
}

/* ── Page layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.container-narrow { max-width: 680px; }

.page-main {
  padding: 40px 0 64px;
  position: relative;
  z-index: 1;
}

.page-banner {
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-mid) 100%);
  color: #fff;
  padding: 36px 0 32px;
  position: relative;
  z-index: 1;
}

.page-banner-sm { padding: 24px 0 20px; }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

.page-desc {
  font-size: 14px;
  opacity: 0.82;
  margin-top: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.75;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

.breadcrumb a:hover { opacity: 1; text-decoration: none; }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb [aria-current="page"] { opacity: 1; font-weight: 500; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover { color: var(--primary); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-accent {
  background: var(--primary);
  color: #fff;
}
.btn-accent:hover { background: var(--primary-deep); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── Leadership ── */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.leader-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform var(--transition);
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 0 var(--cream-dark);
}

.leader-card:nth-child(even) {
  border-top-color: var(--gold);
}

.leader-card-link:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.leader-card .avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--primary);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.leader-card:nth-child(even) .avatar {
  background: var(--gold);
  color: var(--text-on-gold);
}

.leader-card .title {
  display: inline-block;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.leader-card:nth-child(even) .title {
  background: var(--gold);
  color: var(--text-on-gold);
}

.leader-card .org {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.leader-card .meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Filters ── */
.quick-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.quick-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 36px;
  padding-top: 7px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.leader-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-dark);
}

/* ── Search ── */
.search-panel {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-row input[type="search"],
.search-row select {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.search-row input[type="search"]:focus,
.search-row select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.35);
}

.search-row input[type="search"] { flex: 1; min-width: 200px; }
.search-row select { min-width: 130px; }

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 8px;
}

.directory-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}
.directory-pager .pager-info {
  font-size: 13px;
  color: var(--text-secondary);
}
#resultCount {
  font-weight: 600;
}
  font-weight: 600;
  color: var(--text);
}

/* ── Member grid ── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.member-card {
  background: var(--surface);
  border: none;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition);
  box-shadow: 0 2px 0 var(--cream-dark);
}

.member-card:nth-child(even) {
  border-left-color: var(--gold-deep);
}

.member-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.member-card .tier {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary);
  color: var(--text-on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.member-card:nth-child(even) .tier {
  background: var(--gold-deep);
  color: var(--text-on-dark);
}

.member-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.member-card .meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

.member-card .card-action {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.member-card:hover .card-action { opacity: 1; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── Notice ── */
.notice-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--ink-soft);
  border: none;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 36px;
  color: var(--text-on-dark);
}

.notice-icon {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--text-on-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.notice-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.notice-card p {
  font-size: 13px;
  color: rgba(250, 246, 240, 0.72);
  line-height: 1.65;
}

.notice-card a { color: var(--gold-light); }

.detail-card {
  background: var(--surface);
  border: none;
  border-top: 5px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.detail-tier {
  display: inline-block;
  background: var(--gold);
  color: var(--text-on-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.detail-meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-section { margin-bottom: 28px; }

.detail-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-lock {
  background: var(--cream);
  border: 2px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.detail-lock strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--primary-deep);
}

.detail-lock p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.detail-lock .btn, .detail-lock button { margin-top: 12px; }

.detail-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  flex-shrink: 0;
  width: 72px;
  color: var(--text-secondary);
  font-size: 13px;
}
.detail-unlocked {
  background: rgba(46, 125, 50, 0.06);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.detail-unlocked h3 { color: #2e7d32; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.footer-inner { text-align: center; }

.footer-inner p {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.footer-muted {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  color: var(--text-tertiary) !important;
  font-weight: 400 !important;
}

.hidden { display: none !important; }

/* ── Admin ── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-side {
  width: 240px;
  background: #1a1816;
  color: #c8c2ba;
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-side h2 {
  padding: 0 24px 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.04em;
}

.admin-side-meta {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.fee-form { margin-bottom: 8px; }
.fee-form h3 { font-size: 15px; margin-bottom: 12px; }

.admin-side a {
  display: block;
  padding: 11px 24px;
  color: #9a928a;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.admin-side a.active,
.admin-side a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-side a.active,
.admin-side a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.admin-nav { display: flex; flex-direction: column; gap: 2px; }

.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 11px 24px;
  color: #9a928a;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-btn.active { color: var(--gold-light); font-weight: 600; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.admin-nav-link {
  display: block;
  padding: 14px 24px 0;
  color: #6a625a;
  font-size: 13px;
  text-decoration: none;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-nav-link:hover { color: #fff; }

.admin-panel.hidden { display: none; }

.admin-hint {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stat-card-warn .num { color: var(--gold-deep); }

.data-table .actions { white-space: nowrap; }
.data-table .tier-select {
  max-width: 160px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: inherit;
}
.invite-code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: #f5f0eb;
  padding: 2px 8px;
  border-radius: 4px;
}

.scope-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.scope-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.scope-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.scope-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.activity-grid {
  display: grid;
  gap: 20px;
}
.activity-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.activity-card h3 a {
  color: inherit;
  text-decoration: none;
}
.activity-card h3 a:hover { color: var(--primary); }
.activity-card-cover {
  display: block;
  height: 160px;
  margin: -24px -24px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #efe8e0 center/cover no-repeat;
}
.activity-meta { color: var(--text-secondary); font-size: 14px; }
.activity-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.fee-tag { color: var(--primary); font-weight: 600; }

.container-narrow { max-width: 760px; }
.activity-detail-card .detail-title {
  font-size: 28px;
  margin: 8px 0 12px;
}
.activity-cover {
  height: 220px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  background: #efe8e0 center/cover no-repeat;
}
.activity-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-bottom: 16px;
}
.activity-summary {
  background: rgba(139, 26, 26, 0.06);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.activity-body {
  line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}
.activity-my-status {
  color: #c0651e;
  font-size: 14px;
  margin: 0 0 12px;
}
.activity-detail-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.activity-cap { margin-top: 12px; font-size: 13px; }

.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-preset {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag-chip {
  background: #f5f0eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.tag-chip button { border: none; background: none; cursor: pointer; margin-left: 4px; }
.profile-card {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.profile-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 22px;
}
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.profile-section h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.profile-input,
.profile-section select,
.field-row select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  margin-bottom: 12px;
}
.field-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.field-row select {
  flex: 1;
  margin-bottom: 0;
}
.field-row .btn { flex-shrink: 0; align-self: center; }
.btn-logout {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.form-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.text-muted { color: var(--text-secondary); }

.my-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  border-bottom: 1px solid var(--border);
}
.my-tab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.my-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.my-panel { padding-top: 8px; }
.field-label {
  display: inline-block;
  min-width: 90px;
  color: var(--text-secondary);
  font-size: 14px;
}
.field-value { font-size: 14px; font-weight: 600; }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-list-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.my-list-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.my-list-meta { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.my-list-actions { margin-top: 10px; display: flex; gap: 8px; }

.btn-reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.btn-reject:hover { border-color: var(--primary); color: var(--primary); }

/* ── Apply form ── */
.apply-notice {
  background: rgba(155, 35, 53, 0.06);
  border: 1px solid rgba(155, 35, 53, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.apply-notice strong { display: block; margin-bottom: 6px; color: var(--primary); }
.apply-notice p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

.member-type-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.member-type-tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.member-type-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.apply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.apply-form h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 20px 0 14px;
  color: var(--text);
}

.apply-form h3:first-child { margin-top: 0; }

.apply-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}

.checkbox-label input { width: auto; margin-top: 3px; }

.btn-block { width: 100%; margin-top: 8px; }

.apply-result {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.apply-result h3 { font-family: var(--font-serif); margin-bottom: 10px; }

.apply-status-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.apply-status-box h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin-bottom: 14px;
}

.status-result { margin-top: 14px; font-size: 14px; }
.status-result .err { color: var(--primary); }
.apply-credentials {
  margin: 14px 0;
  padding: 14px 16px;
  background: #f7f5f2;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.apply-credentials-title { font-weight: 600; margin: 0 0 8px; color: var(--text); }
.apply-credentials-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }

.req { color: var(--primary); }

.admin-main {
  flex: 1;
  padding: 32px 36px;
  background: var(--cream);
}

.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form .form-field {
  min-width: 0;
}

.admin-form .form-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.admin-form input:not([type="checkbox"]),
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
  box-sizing: border-box;
}

.admin-form textarea {
  resize: vertical;
  min-height: 88px;
}

.admin-form .admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  width: fit-content;
}

.admin-form .admin-checkbox input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.admin-form .btn-block {
  width: 100%;
  margin-top: 4px;
}

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-top h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

table.data-table th,
table.data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table.data-table th {
  background: var(--primary);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table.data-table tr:last-child td { border-bottom: none; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-alerts {
  background: linear-gradient(135deg, rgba(139,26,26,0.06), rgba(212,175,55,0.08));
  border: 1px solid rgba(139,26,26,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.admin-alert-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 10px;
}
.admin-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
}
.admin-alert-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.stat-card {
  background: var(--surface);
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.stat-card .num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.login-box {
  max-width: 400px;
  margin: 100px auto;
  background: var(--surface);
  padding: 44px 40px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--primary);
  border-top: 5px solid var(--gold);
}

.login-box h2 {
  font-family: var(--font-serif);
  margin-bottom: 28px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}

.login-box input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--cream);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.login-box input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.35);
}

.login-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}
.login-alt {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}
.login-alt a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.login-alt a:hover { text-decoration: underline; }

.legal-page { padding: 32px 0 48px; }
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  margin: 12px 0 8px;
}
.legal-section { margin-top: 28px; }
.legal-section h2 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-section ul { padding-left: 1.2em; margin: 0; }
.legal-back { margin-top: 36px; }
.legal-back a { color: var(--primary); text-decoration: none; }

.section-head { margin-bottom: 24px; }

/* 后台：紧凑工具栏 + 折叠开通抽屉 */
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-toolbar h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-subcard {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.import-preview {
  margin: 12px 0;
  max-height: 240px;
  overflow: auto;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.import-preview.hidden { display: none; }
.import-preview .ok { color: #1a7f37; }
.import-preview .err { color: #b42318; }

/* 山海同款：导入/导出弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 16, 0.45);
}
.modal-mask[hidden] { display: none !important; }
.modal {
  width: min(760px, 100%);
  max-height: min(90vh, 880px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(20, 16, 16, 0.22);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 4px;
}
.modal-body { padding: 16px 20px 8px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.data-ops-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.data-ops-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.data-ops-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.data-ops-panel { display: none; }
.data-ops-panel.active { display: block; }
.data-ops-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.data-ops-export-btn {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.data-ops-export-btn:hover {
  border-color: var(--primary);
  background: rgba(155, 35, 53, 0.04);
}
.data-ops-export-btn strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text);
}
.data-ops-export-btn span {
  color: var(--text-secondary);
  font-size: 12px;
}
.data-ops-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.data-ops-file { margin-bottom: 12px; }
.data-ops-file .form-label,
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.data-ops-progress {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  min-height: 20px;
}
@media (max-width: 640px) {
  .data-ops-export-grid { grid-template-columns: 1fr; }
}

.create-drawer {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.create-drawer.hidden { display: none; }
.create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}
.create-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.create-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.create-grid input,
.create-grid select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.create-grid input:focus,
.create-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}
.create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.create-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.perm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.perm-name { font-size: 15px; font-weight: 600; color: var(--text); }
.perm-sub { margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }
.perm-matrix {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.perm-matrix-row {
  display: grid;
  grid-template-columns: minmax(96px, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.perm-matrix-row:last-child { border-bottom: 0; }
.perm-matrix-row.is-head {
  background: rgba(0, 0, 0, 0.03);
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.perm-matrix-row > span,
.perm-matrix-row > label {
  padding: 9px 12px;
}
.perm-matrix-row > label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  border-left: 1px solid var(--border);
  margin: 0;
}
.perm-matrix-row.is-head > span:not(:first-child) {
  border-left: 1px solid var(--border);
  text-align: center;
}
.perm-matrix-row > label input {
  accent-color: var(--primary);
  margin: 0;
}
.perm-matrix-row.is-locked {
  opacity: 0.6;
  pointer-events: none;
}
.perm-matrix-row .perm-mod-name {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 700px) {
  .perm-matrix-row {
    grid-template-columns: minmax(72px, 1fr) repeat(3, minmax(0, 1fr));
    font-size: 12px;
  }
  .perm-matrix-row > span,
  .perm-matrix-row > label { padding: 8px 6px; }
}

.data-table-compact th,
.data-table-compact td {
  padding: 10px 12px;
  font-size: 13px;
}
.data-table-compact .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.cell-title { font-weight: 600; color: var(--text); line-height: 1.35; }
.cell-sub { margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }
.cell-sub code.invite-code {
  font-size: 12px;
  background: transparent;
  padding: 0;
}

@media (max-width: 1100px) {
  .create-grid,
  .create-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .panel-toolbar { flex-wrap: wrap; }
  .create-grid,
  .create-grid-4 { grid-template-columns: 1fr; }
}

.reg-count { font-weight: 700; color: var(--primary-deep); }
.reg-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.reg-flow-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(139, 26, 26, 0.06);
  border: 1px solid rgba(139, 26, 26, 0.18);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.reg-flow-hint strong { color: var(--text); }
.reg-summary { font-size: 13px; color: var(--text-secondary); margin: 6px 0 12px; }
.reg-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.reg-status-registered { background: rgba(33,150,243,0.12); color: #1976d2; }
.reg-status-pending_payment { background: rgba(230,126,34,0.15); color: #c0651e; }
.reg-status-paid { background: rgba(46,125,50,0.12); color: #2e7d32; }
.reg-status-checked_in { background: rgba(0,121,107,0.12); color: #00796b; }
.reg-status-cancelled { background: rgba(120,120,120,0.12); color: #666; }

/* 活动管理三视图 */
.act-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.act-breadcrumb { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.act-spacer { flex: 1; }
.btn-ghost {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.reg-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.reg-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.batch-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.batch-check input { width: auto; margin: 0; }
.batch-count {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 4.5em;
}
.col-check { width: 36px; }
.data-table td.col-check,
.data-table th.col-check {
  text-align: center;
  vertical-align: middle;
}
.row-check { width: auto; margin: 0; cursor: pointer; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.post-reject-reason {
  display: block;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}
.post-cell-title { font-weight: 500; }
.post-reject-note { font-size: 12px; color: #c62828; margin-top: 4px; }
.post-img-count {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(33,150,243,0.12);
  color: #1976d2;
  font-weight: 600;
  margin-left: 4px;
}
.post-thumb {
  display: inline-block;
  width: 56px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.post-thumb-empty {
  background: #f0ece6;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: center;
  line-height: 40px;
}
.post-admin-thumbs { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-thumb-sm {
  display: block;
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── 我的发布 ── */
.post-form { display: flex; flex-direction: column; gap: 4px; }
.post-form-type { display: flex; gap: 12px; margin-bottom: 12px; }
.post-type-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  background: var(--cream);
}
.post-type-option input { accent-color: var(--accent); }
.my-list-type {
  display: inline-block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.post-status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.post-status-pending { background: rgba(230,126,34,0.15); color: #c0651e; }
.post-status-approved { background: rgba(46,125,50,0.12); color: #2e7d32; }
.post-status-rejected { background: rgba(198,40,40,0.12); color: #c62828; }
.post-status-withdrawn { background: rgba(120,120,120,0.12); color: #666; }
.post-reject-reason {
  display: block;
  font-size: 13px;
  color: #c62828;
  margin-top: 4px;
}
.post-media-block { margin-bottom: 14px; }
.post-media-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; }
.post-cover-picker, .post-images-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.post-media-add {
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.post-media-add:hover { border-color: var(--accent); color: var(--accent); }
.post-cover-preview {
  width: 100%;
  max-width: 220px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  position: relative;
  border: 1px solid var(--border);
}
.post-image-thumb {
  width: 84px;
  height: 84px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  position: relative;
  border: 1px solid var(--border);
}
.post-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* ── 商机与动态 ── */
.posts-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.post-card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.post-card-body { flex: 1; min-width: 0; }
.post-card-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: #efe9e2;
  align-self: flex-start;
}
.post-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.post-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.post-badge-opportunity { background: rgba(230,126,34,0.15); color: #c0651e; }
.post-badge-individual { background: rgba(92,74,110,0.12); color: #5c4a6e; }
.post-badge-news { background: rgba(33,150,243,0.12); color: #1976d2; }
.post-views { font-size: 12px; color: var(--text-secondary); }
.post-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.post-summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.post-author { color: var(--accent); text-decoration: none; font-weight: 500; }
.post-author:hover { text-decoration: underline; }
.post-date { color: var(--text-secondary); }
.posts-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.posts-page-info { font-size: 14px; color: var(--text-secondary); }

.post-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}
.post-back:hover { color: var(--accent); }
.post-detail {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.post-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.post-detail-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 14px;
}
.post-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.post-meta-sep { color: var(--border); }
.post-meta-text { color: var(--text-secondary); }
.post-detail-summary {
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 20px;
  line-height: 1.7;
}
.post-detail-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 24px;
}
.post-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.post-contact-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.post-contact-value { font-size: 15px; color: var(--text); }
.post-detail-cover {
  margin: -32px -32px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: #efe9e2;
}
.post-detail-cover img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.post-gallery-item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: #efe9e2; }
.post-gallery-item img { display: block; width: 100%; height: 140px; object-fit: cover; }

/* ── Messages ── */
.msg-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.msg-list-pane {
  border-right: 1px solid var(--border);
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.msg-list-head {
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
}
.msg-conv-list { overflow-y: auto; flex: 1; }
.msg-conv-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
}
.msg-conv-item:hover { background: #f3eee7; }
.msg-conv-item.active { background: #efe6dc; }
.msg-conv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-conv-name { font-weight: 600; font-size: 14px; color: var(--text); }
.msg-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.msg-conv-preview {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-conv-time { margin-top: 4px; font-size: 11px; color: #a89888; }
.msg-empty { padding: 20px 16px; color: var(--muted); font-size: 13px; margin: 0; }
.msg-thread-pane {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 70vh;
  background: #fff;
}
.msg-thread-empty {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
  padding: 24px;
  text-align: center;
}
.msg-thread-view { display: flex; flex-direction: column; height: 100%; min-height: 520px; max-height: 70vh; }
.msg-thread-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.msg-peer-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.msg-peer-link { font-size: 13px; color: var(--primary); text-decoration: none; }
.msg-peer-link:hover { text-decoration: underline; }
.msg-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #fcfaf7 0%, #fff 40%);
}
.msg-bubble {
  max-width: 72%;
  align-self: flex-start;
}
.msg-bubble.mine { align-self: flex-end; }
.msg-bubble-body {
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  background: #f0e8df;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-bubble.mine .msg-bubble-body {
  background: var(--primary);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}
.msg-bubble-time {
  margin-top: 4px;
  font-size: 11px;
  color: #a89888;
  padding: 0 4px;
}
.msg-bubble.mine .msg-bubble-time { text-align: right; }
.msg-compose {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.msg-compose textarea {
  flex: 1;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── Plaza (会内大厅) ── */
.plaza-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.plaza-switch-item {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.plaza-switch-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.plaza-app {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.plaza-feed {
  max-height: 60vh;
  min-height: 360px;
  overflow-y: auto;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fcfaf7 0%, #fff 30%);
}
.plaza-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  margin: 0;
}
.plaza-floor {
  padding: 14px 0;
  border-bottom: 1px solid #efe8df;
}
.plaza-floor:last-child { border-bottom: 0; }
.plaza-floor.mine { background: rgba(139, 26, 26, 0.03); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.plaza-floor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.plaza-floor-no {
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.plaza-author {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.plaza-author:hover { color: var(--primary); }
.plaza-title {
  color: #a89888;
  font-size: 12px;
}
.plaza-time {
  margin-left: auto;
  color: #a89888;
  font-size: 12px;
}
.plaza-floor-body {
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.plaza-compose {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
  background: #faf8f5;
}
.plaza-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.plaza-compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}
.plaza-compose-hint { font-size: 12px; color: var(--muted); }

.chat-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.chat-tool-btn:hover { border-color: var(--primary); }
.chat-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0 4px;
}
.chat-emoji-item {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.chat-emoji-item:hover { background: #efe6dc; }
.chat-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.chat-image-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--border);
}
.chat-image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  padding: 0;
}
.chat-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chat-image {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #efe9e2;
}
.chat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chat-reply {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--primary);
  background: rgba(139, 26, 26, 0.06);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}
.chat-reply-label { color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.chat-reply-body { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: #efe6dc;
  border-radius: 8px;
  font-size: 13px;
}
.chat-reply-bar-text { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-cancel {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.plaza-reply-btn, .msg-reply-btn, .plaza-recall-btn, .msg-recall-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
}
.plaza-recall-btn, .msg-recall-btn { color: var(--muted); }
.chat-recalled {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}
.plaza-floor.recalled, .msg-bubble.recalled { opacity: 0.85; }
.msg-bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 4px;
}
.msg-bubble.mine .msg-bubble-meta { justify-content: flex-end; }
.msg-compose-rich { flex-direction: column; align-items: stretch; }
.msg-compose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.msg-compose.msg-compose-rich textarea { width: 100%; }

.msg-read-state {
  font-size: 11px;
  color: var(--muted);
}
.msg-read-state.is-read { color: var(--primary); }
.msg-bubble.mine .msg-read-state { opacity: 0.9; }

.chat-mention {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.chat-mention:hover { text-decoration: underline; }
.chat-compose-wrap { position: relative; }
.chat-mention-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 6px;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(42, 34, 28, 0.12);
  z-index: 20;
}
.chat-mention-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid #f0ebe4;
}
.chat-mention-item:hover { background: #f7f2ec; }
.chat-mention-name { font-size: 14px; font-weight: 600; color: var(--text); }
.chat-mention-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chat-mention-loading, .chat-mention-empty {
  padding: 14px; font-size: 13px; color: var(--muted); text-align: center;
}
.chat-mention-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat-mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(139, 26, 26, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
}
.chat-mention-chip button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.plaza-floor.mentioned-me {
  box-shadow: inset 3px 0 0 var(--primary);
}
.switch-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.nav-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.mention-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.mention-list { display: flex; flex-direction: column; gap: 10px; }
.mention-item {
  position: relative;
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.mention-item.unread { background: #fbf7f2; border-color: #e8d9c8; }
.mention-item-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mention-from { font-weight: 600; color: var(--text); }
.mention-title { font-size: 12px; color: var(--muted); }
.mention-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.mention-preview { font-size: 14px; color: #555; line-height: 1.5; }
.mention-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 768px) {
  .msg-layout { grid-template-columns: 1fr; min-height: auto; }
  .msg-list-pane { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--border); }
  .msg-thread-pane, .msg-thread-view { min-height: 420px; max-height: none; }
  .plaza-feed { max-height: 55vh; min-height: 280px; }
  .chat-image { width: 96px; height: 96px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .home-hero { padding: 36px 20px 44px; }
  .home-modules { padding: 32px 0 40px; }
  .home-main { min-height: auto; padding-bottom: 48px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid-home { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; align-items: stretch; }
  .container { padding: 0 20px; }
  .page-main { padding: 28px 0 48px; }
  .page-banner h1 { font-size: 24px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-side { display: none; }
  .search-row { flex-direction: column; }
  .search-row input[type="search"],
  .search-row select { width: 100%; }
  .quick-group { flex-direction: column; gap: 8px; }
  .result-meta { flex-direction: column; align-items: flex-start; }
  .detail-card { padding: 28px 22px; }
  .detail-title { font-size: 22px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-detail { padding: 22px; }
  .post-detail-cover { margin: -22px -22px 16px; }
  .post-detail-title { font-size: 22px; }
  .post-gallery { grid-template-columns: repeat(2, 1fr); }
}
