/* ============================================================
   初讯论坛 · forum.css
   延续文档中心的青绿体系，卡片更轻、信息密度更高
   ============================================================ */
.fm-page,
.fm-detail-page,
.fm-editor-page {
  --fm-deep: #0B5F57;
  --fm-main: #0F766E;
  --fm-mid: #1F9D90;
  --fm-light: #59CBB5;
  --fm-mint: #EAF8F5;
  --fm-pale: #F7FBFA;
  --fm-ink: #103B36;
  --fm-body: #33544F;
  --fm-muted: #6F8F89;
  --fm-soft: #93AAA5;
  --fm-line: #DCEEE9;
  --fm-amber: #D97706;
  --fm-danger: #C2410C;
  --fm-shadow: 0 12px 30px rgba(11, 95, 87, .07);
  background: var(--fm-pale);
  color: var(--fm-ink);
  font-family: inherit;
}
body.fm-page,
body.fm-detail-page,
body.fm-editor-page { min-height: 100vh; }
.fm-page *,
.fm-detail-page *,
.fm-editor-page * { box-sizing: border-box; }

.fm-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- Hero ---------------- */
.fm-hero,
.fm-detail-hero,
.fm-editor-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%, rgba(79, 195, 173, .30), transparent 40%),
    radial-gradient(circle at 6% 96%, rgba(15, 118, 110, .08), transparent 46%),
    linear-gradient(135deg, #EAF9F6 0%, #FAFDFC 55%, #EFF9F6 100%);
  border-bottom: 1px solid rgba(15, 118, 110, .06);
}
.fm-hero {
  padding: 112px 0 38px;
  background:
    radial-gradient(800px 380px at 8% 0%, rgba(79, 195, 173, .22), rgba(79, 195, 173, 0) 70%),
    radial-gradient(760px 420px at 96% 8%, rgba(255, 205, 133, .17), rgba(255, 205, 133, 0) 66%),
    linear-gradient(135deg, #EAF9F6 0%, #F8FDFB 48%, #FFFBF3 100%);
}
.fm-detail-hero,
.fm-editor-hero { padding: 112px 0 28px; }
.fm-hero::before,
.fm-detail-hero::before,
.fm-editor-hero::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -110px;
  top: -165px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, .12);
  box-shadow: 0 0 0 38px rgba(15, 118, 110, .032), 0 0 0 82px rgba(15, 118, 110, .02);
  pointer-events: none;
}
.fm-hero::after,
.fm-detail-hero::after,
.fm-editor-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -70px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(79, 195, 173, .10);
  pointer-events: none;
}
.fm-container { position: relative; z-index: 1; }

.fm-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fm-hero__copy { max-width: 680px; }
.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 44px;
  align-items: center;
}
.fm-hero-main { min-width: 0; max-width: 700px; }
.fm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, .16);
  background: rgba(255, 255, 255, .76);
  color: var(--fm-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .06);
}
.fm-eyebrow i { font-size: 11px; }
.fm-hero h1,
.fm-detail-hero h1,
.fm-editor-hero h1 {
  margin: 12px 0 8px;
  color: var(--fm-ink);
  font-size: 34px;
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: -.5px;
  text-wrap: balance;
  white-space: normal;
  word-break: break-word;
}
.fm-hero h1 span {
  background: linear-gradient(100deg, var(--fm-main), #2FAF9F 58%, #4CC4AE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fm-hero h1 { font-size: 38px; letter-spacing: -.7px; }
.fm-hero .fm-hero-sub { max-width: 650px; margin: 0 0 24px; color: var(--fm-muted); font-size: 15.5px; line-height: 1.8; }
.fm-hero p,
.fm-detail-hero p,
.fm-editor-hero p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.fm-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--fm-main), var(--fm-deep));
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fm-write-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px rgba(15, 118, 110, .27); }
.fm-write-btn i { font-size: 12px; }

.fm-hero-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #557670;
  font-size: 12.5px;
}
.fm-hero-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(31, 157, 144, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}
.fm-hero-flow span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fm-light);
}
.fm-hero-flow > i { color: #9BB6B0; font-size: 10px; }

.fm-stat-card {
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 24px 60px rgba(12, 100, 92, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fm-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(31, 157, 144, .24);
}
.fm-stat-head span { color: #6A8B84; font-size: 12.5px; font-weight: 600; }
.fm-stat-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fm-main);
  font-size: 12px;
  font-weight: 700;
}
.fm-stat-head strong i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fm-light);
  box-shadow: 0 0 0 3px rgba(89, 203, 181, .16);
}
.fm-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 17px 0 18px;
}
.fm-stat-item { text-align: center; }
.fm-stat-item b {
  display: block;
  color: var(--fm-deep);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.fm-stat-item span { display: block; margin-top: 5px; color: #78948E; font-size: 11px; }
.fm-stat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fm-stat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.fm-stat-btn:hover { transform: translateY(-1px); }
.fm-stat-btn--primary {
  background: linear-gradient(135deg, var(--fm-main), var(--fm-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(12, 100, 92, .18);
}
.fm-stat-btn--primary:hover { color: #fff; box-shadow: 0 14px 26px rgba(12, 100, 92, .24); }
.fm-stat-btn--ghost {
  border: 1px solid rgba(31, 157, 144, .22);
  background: #fff;
  color: var(--fm-main);
}
.fm-stat-btn--ghost:hover { background: var(--fm-mint); border-color: var(--fm-light); }
.fm-stat-mine.is-on { background: var(--fm-mint); border-color: var(--fm-main); color: var(--fm-main); }
.fm-stat-btn i { font-size: 11px; }
.fm-stat-card .fm-admin-link { margin: 10px auto 0; width: max-content; }

.fm-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
  margin-top: 0;
  padding: 9px 9px 9px 20px;
  border: 1px solid rgba(31, 157, 144, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(12, 100, 92, .12);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.fm-searchbar:focus-within {
  border-color: rgba(31, 157, 144, .55);
  box-shadow: 0 22px 48px rgba(12, 100, 92, .16), 0 0 0 4px rgba(31, 157, 144, .10);
  transform: translateY(-1px);
}
.fm-searchbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: var(--fm-main);
  font-size: 18px;
}
.fm-searchbar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fm-ink);
  font-size: 15px;
}
.fm-searchbar input::placeholder { color: #8AA6A1; }
.fm-searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fm-searchbar__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F1F7F5;
  color: #799790;
  font-size: 11px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.fm-searchbar__clear:hover { background: var(--fm-mint); color: var(--fm-main); }
.fm-searchbar__submit {
  flex: none;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fm-main), var(--fm-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 118, 110, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fm-searchbar__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 118, 110, .24); }

.fm-searchmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.fm-hotsearch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 16px;
  color: #728F88;
  font-size: 12.5px;
}
.fm-hotsearch > span { font-weight: 600; letter-spacing: .2px; }
.fm-hotsearch button {
  padding: 5px 10px;
  border: 1px solid rgba(31, 157, 144, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #2A6B63;
  font-size: 12px;
  cursor: pointer;
  transition: all .16s ease;
}
.fm-hotsearch button:hover { border-color: rgba(31, 157, 144, .4); background: #fff; color: var(--fm-main); }

.fm-hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
  margin-top: 0;
  color: var(--fm-muted);
  font-size: 12.5px;
}
.fm-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 22px;
  border-right: 1px solid rgba(15, 118, 110, .14);
}
.fm-hero-stat:first-child { padding-left: 0; }
.fm-hero-stat:last-child { border-right: 0; }
.fm-hero-stat b { color: var(--fm-deep); font-size: 18px; font-weight: 800; letter-spacing: -.2px; }

/* ---------------- 工具栏 ---------------- */
.fm-main { padding: 24px 0 72px; }
.fm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.fm-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.fm-cats::-webkit-scrollbar { display: none; }
.fm-cat-tab {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #fff;
  color: #4F6F69;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.fm-cat-tab:hover { border-color: rgba(31, 157, 144, .35); color: var(--fm-main); }
.fm-cat-tab.is-on { border-color: var(--fm-main); background: var(--fm-main); color: #fff; box-shadow: 0 6px 14px rgba(15, 118, 110, .16); }
.fm-cat-tab em { font-style: normal; opacity: .58; margin-left: 4px; font-size: 11px; }

.fm-toolbar__right { display: flex; align-items: center; gap: 10px; flex: none; }
.fm-sort {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #fff;
}
.fm-sort button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fm-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.fm-sort button.is-on { background: var(--fm-mint); color: var(--fm-main); }
.fm-mine-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fm-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.fm-mine-btn:hover { border-color: rgba(31, 157, 144, .35); color: var(--fm-main); }
.fm-mine-btn.is-on { border-color: var(--fm-main); background: var(--fm-mint); color: var(--fm-main); }
.fm-mine-btn i { font-size: 11px; }

/* ---------------- 主体布局 ---------------- */
.fm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 24px;
  align-items: start;
}
.fm-feed-col { min-width: 0; }
.fm-feed { display: flex; flex-direction: column; gap: 12px; }

.fm-post {
  position: relative;
  display: block;
  padding: 16px 18px 14px;
  border: 1px solid var(--fm-line);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 95, 87, .025);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fm-post:hover {
  color: inherit;
  border-color: rgba(31, 157, 144, .34);
  box-shadow: var(--fm-shadow);
  transform: translateY(-2px);
}
.fm-post.is-pinned { border-left: 3px solid rgba(217, 119, 6, .62); }
.fm-post__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.fm-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fm-mint);
  color: var(--fm-main);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}
.fm-cat-badge.cat-amber { background: #FFF4E5; color: #B45309; }
.fm-cat-badge.cat-rose { background: #FFF0F0; color: #BE123C; }
.fm-cat-badge.cat-blue { background: #ECF7FB; color: #0E7490; }
.fm-cat-badge.cat-violet { background: #F3F0FF; color: #6D28D9; }
.fm-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #FFF7ED;
  color: #B45309;
  font-size: 10.5px;
  font-weight: 700;
}
.fm-pin-badge i { font-size: 9px; }
.fm-post__time { margin-left: auto; color: #9AB3AE; font-size: 11.5px; }

.fm-post h3 {
  margin: 0 0 5px;
  color: var(--fm-ink);
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: -.15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-post p {
  margin: 0;
  color: #58746F;
  font-size: 13.2px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fm-tag {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 5px;
  background: #F4F9F8;
  color: #6C8A85;
  font-size: 11px;
  line-height: 1.6;
}
.fm-post__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #EDF6F3;
}
.fm-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFF6F0, #C9EEE5);
  color: var(--fm-main);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.fm-avatar--lg { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
.fm-author b { color: #35564F; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-post__nums {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
  color: #8DA7A2;
  font-size: 11.5px;
  flex: none;
}
.fm-post__nums span { display: inline-flex; align-items: center; gap: 4px; }
.fm-post__nums i { font-size: 11px; }
.fm-post__nums .is-hot { color: var(--fm-main); font-weight: 600; }

/* 空状态 / 加载 */
.fm-empty {
  padding: 54px 24px;
  border: 1px dashed #CFE7E1;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}
.fm-empty__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--fm-mint);
  color: var(--fm-mid);
  font-size: 22px;
}
.fm-empty b { display: block; color: var(--fm-ink); font-size: 15px; }
.fm-empty p { margin: 6px auto 14px; max-width: 420px; color: var(--fm-muted); font-size: 12.5px; line-height: 1.7; }
.fm-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--fm-main);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.fm-empty__btn:hover { color: #fff; background: var(--fm-deep); }
.fm-loading { padding: 18px; color: var(--fm-muted); font-size: 12.5px; text-align: center; }
.fm-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--fm-line);
  border-radius: 11px;
  background: #fff;
  color: var(--fm-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fm-more:hover { border-color: rgba(31, 157, 144, .4); background: var(--fm-mint); }

/* ---------------- 侧栏 ---------------- */
.fm-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fm-side-card {
  padding: 17px 18px;
  border: 1px solid var(--fm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 95, 87, .025);
}
.fm-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.fm-side-head h4 {
  margin: 0;
  color: var(--fm-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}
.fm-side-head h4 i { margin-right: 5px; color: var(--fm-mid); font-size: 12px; }
.fm-side-head > span { color: #9AB3AE; font-size: 10.5px; }

.fm-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.fm-mini-stats > div { padding: 10px 4px; border-radius: 10px; background: #F7FBFA; }
.fm-mini-stats b { display: block; color: var(--fm-deep); font-size: 19px; font-weight: 800; line-height: 1.3; }
.fm-mini-stats span { color: var(--fm-muted); font-size: 10.5px; }

.fm-cat-list { display: flex; flex-direction: column; gap: 2px; }
.fm-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4F6F69;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}
.fm-cat-item:hover { background: #F5FAF8; color: var(--fm-main); }
.fm-cat-item.is-on { background: var(--fm-mint); color: var(--fm-main); font-weight: 700; }
.fm-cat-item i { color: var(--fm-soft); font-size: 11px; }
.fm-cat-item b { margin-left: auto; color: #9AB3AE; font-size: 10.5px; font-weight: 600; }
.fm-cat-item.is-on b { color: var(--fm-main); }

.fm-top-users { display: flex; flex-direction: column; gap: 9px; }
.fm-top-user { display: flex; align-items: center; gap: 9px; color: #35564F; font-size: 12px; }
.fm-top-user > i { width: 17px; color: #B4C9C4; font-size: 10.5px; text-align: center; }
.fm-top-user.is-top > i { color: var(--fm-amber); }
.fm-top-user .fm-avatar { width: 26px; height: 26px; font-size: 11px; }
.fm-top-user b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-top-user span { margin-left: auto; flex: none; color: #9AB3AE; font-size: 10.5px; }
.fm-side-empty { display: block; padding: 8px 0; color: #A7BCB7; font-size: 12px; }

.fm-rules-card { background: linear-gradient(160deg, #FFFFFF, #F7FCFB); }
.fm-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fm-rules li { position: relative; padding-left: 13px; color: #5C7A74; font-size: 11.8px; line-height: 1.65; }
.fm-rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--fm-light); }

/* ---------------- 详情页 ---------------- */
.fm-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.fm-detail-topbar .fm-crumb { min-width: 0; margin-bottom: 0; }
.fm-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: #8AA6A1;
  font-size: 11.5px;
}
.fm-crumb a { color: var(--fm-main); text-decoration: none; font-weight: 600; }
.fm-crumb a:hover { color: var(--fm-deep); }
.fm-crumb i { font-size: 9px; color: #B4C9C4; }
.fm-crumb span { color: #6B8A85; }

.fm-detail-hero__main,
.fm-editor-hero__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.fm-detail-hero .fm-detail-hero__main { display: block; }
.fm-detail-hero__copy { min-width: 0; }
.fm-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.fm-detail-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  color: var(--fm-main);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.fm-detail-cat:hover { color: #fff; background: var(--fm-main); }
.fm-detail-hero h1 { max-width: 840px; margin-top: 0; font-size: 34px; line-height: 1.36; }
.fm-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 13px;
  color: #6F8F89;
  font-size: 12.5px;
}
.fm-detail-meta .fm-author b { color: #31564F; font-size: 12.5px; }
.fm-detail-meta em { font-style: normal; color: #A2B8B3; }
.fm-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.fm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--fm-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  color: var(--fm-main);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.fm-back-link:hover { color: #fff; border-color: var(--fm-main); background: var(--fm-main); }

.fm-detail-main { padding: 26px 0 72px; }
.fm-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 24px;
  align-items: start;
}
.fm-detail-maincol { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fm-article {
  padding: 32px 36px 26px;
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 95, 87, .035);
}
.fm-prose {
  color: #2C4D48;
  font-size: 15.2px;
  line-height: 1.95;
  word-break: break-word;
}
.fm-prose > :first-child { margin-top: 0; }
.fm-prose > :last-child { margin-bottom: 0; }
.fm-prose p { margin: 0 0 16px; }
.fm-prose h2 { margin: 30px 0 11px; color: var(--fm-ink); font-size: 21px; font-weight: 800; line-height: 1.4; }
.fm-prose h3 { margin: 24px 0 9px; color: var(--fm-ink); font-size: 17.5px; font-weight: 750; line-height: 1.45; }
.fm-prose h4 { margin: 19px 0 7px; color: var(--fm-ink); font-size: 15.5px; font-weight: 700; }
.fm-prose ul, .fm-prose ol { margin: 0 0 15px; padding-left: 22px; }
.fm-prose ul { list-style: disc; }
.fm-prose ol { list-style: decimal; }
.fm-prose ol li { list-style: decimal; }
.fm-prose ul li { list-style: disc; }
.fm-prose li::marker { color: var(--fm-mid); font-weight: 700; }
.fm-prose li { margin: 5px 0; }
.fm-prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--fm-light);
  border-radius: 0 8px 8px 0;
  background: #F5FBFA;
  color: #4E706A;
}
.fm-prose code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #F1F7F5;
  color: #0E7490;
  font-size: 12.5px;
}
.fm-prose pre {
  overflow: auto;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0F2E2A;
  color: #D7F4EC;
  font-size: 12.5px;
  line-height: 1.7;
}
.fm-prose pre code { padding: 0; background: transparent; color: inherit; }
.fm-prose a { color: var(--fm-main); text-decoration: underline; text-underline-offset: 3px; }
.fm-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.fm-prose hr { border: 0; border-top: 1px dashed var(--fm-line); margin: 24px 0; }
.fm-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.fm-prose th, .fm-prose td { padding: 8px 10px; border: 1px solid var(--fm-line); text-align: left; }
.fm-prose th { background: #F4FAF8; color: var(--fm-ink); }
.fm-muted-line { color: #9AB3AE; font-size: 13px; }

.fm-article__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #EDF6F3;
}
.fm-article__foot .fm-tags { margin: 0; }
.fm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.fm-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #fff;
  color: #5D7C76;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .16s ease;
}
.fm-action:hover { border-color: rgba(31, 157, 144, .4); color: var(--fm-main); }
.fm-action i { font-size: 11px; }
.fm-action.is-on { border-color: var(--fm-main); background: var(--fm-mint); color: var(--fm-main); }
.fm-action.is-on i { color: var(--fm-main); }
.fm-action.is-danger:hover { border-color: #FECACA; background: #FFF5F5; color: var(--fm-danger); }

/* 回复区 */
.fm-replies {
  padding: 22px 24px 24px;
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 95, 87, .03);
}
.fm-replies__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.fm-replies__head h3 { margin: 0; color: var(--fm-ink); font-size: 15px; font-weight: 800; }
.fm-replies__head h3 i { margin-right: 5px; color: var(--fm-mid); font-size: 13px; }
.fm-replies__head h3 span { color: var(--fm-mid); font-size: 13px; font-weight: 700; }
.fm-replies__head > span { color: #9AB3AE; font-size: 11px; }

.fm-reply-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #D9EEE9;
  border-radius: 12px;
  background: #F8FCFB;
}
.fm-reply-form .fm-avatar { margin-top: 2px; }
.fm-reply-form__main { flex: 1; min-width: 0; }
.fm-reply-form textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid #DFF0EC;
  border-radius: 9px;
  background: #fff;
  color: var(--fm-ink);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fm-reply-form textarea:focus { border-color: rgba(31, 157, 144, .55); box-shadow: 0 0 0 3px rgba(31, 157, 144, .09); }
.fm-reply-form textarea::placeholder { color: #A5BCB7; }
.fm-reply-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.fm-reply-form__foot span { color: #9AB3AE; font-size: 11px; }
.fm-reply-form__foot button {
  padding: 7px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--fm-main);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fm-reply-form__foot button:hover { background: var(--fm-deep); }
.fm-reply-form__foot button:disabled { opacity: .55; cursor: default; }
.fm-reply-guest {
  margin-bottom: 10px;
  padding: 13px 15px;
  border: 1px dashed #D3E9E3;
  border-radius: 10px;
  background: #F8FCFB;
  color: var(--fm-muted);
  font-size: 12.5px;
}
.fm-reply-guest i { color: var(--fm-mid); margin-right: 3px; }
.fm-reply-guest a { color: var(--fm-main); font-weight: 700; text-decoration: none; }

.fm-reply-list { display: flex; flex-direction: column; }
.fm-reply {
  padding: 15px 0;
  border-top: 1px solid #F0F7F5;
}
.fm-reply:first-child { border-top: 0; }
.fm-reply__head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.fm-reply__head .fm-avatar { width: 30px; height: 30px; font-size: 12px; }
.fm-reply__who { min-width: 0; }
.fm-reply__who b { display: block; color: #31564F; font-size: 12.5px; line-height: 1.4; }
.fm-reply__who span { display: block; color: #A2B8B3; font-size: 10.5px; margin-top: 1px; }
.fm-reply__del {
  margin-left: auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #A9BDB8;
  font-size: 11px;
  cursor: pointer;
}
.fm-reply__del:hover { color: var(--fm-danger); background: #FFF5F5; }
.fm-reply .fm-prose { font-size: 13.5px; line-height: 1.8; padding-left: 39px; }
.fm-reply .fm-prose p { margin-bottom: 8px; }
.fm-reply .fm-prose p:last-child { margin-bottom: 0; }
.fm-reply-empty { padding: 26px 10px; color: #A2B8B3; font-size: 12.5px; text-align: center; }

/* 详情侧栏 */
.fm-author-card {
  padding: 20px 18px;
  border: 0;
  background:
    radial-gradient(circle at 94% 4%, rgba(89, 203, 181, .35), transparent 40%),
    linear-gradient(135deg, #0F766E, #0B5F57);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 95, 87, .18);
}
.fm-author-card .fm-avatar {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #EFFFFB;
}
.fm-author { display: flex; align-items: center; gap: 12px; }
.fm-author > div { min-width: 0; }
.fm-author__label { display: block; color: rgba(224, 250, 245, .68); font-size: 10px; letter-spacing: .6px; }
.fm-author-card .fm-author b { display: block; margin: 3px 0 2px; color: #fff; font-size: 16px; font-weight: 750; }
.fm-author-card .fm-author p { margin: 0; color: rgba(224, 250, 245, .72); font-size: 11.5px; line-height: 1.6; }

.fm-related { display: flex; flex-direction: column; gap: 10px; }
.fm-related a {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px dashed #EDF6F3;
  color: #35564F;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
}
.fm-related a:last-child { padding-bottom: 0; border-bottom: 0; }
.fm-related a:hover { color: var(--fm-main); }
.fm-related span { display: block; margin-top: 3px; color: #A2B8B3; font-size: 10.5px; }

/* ---------------- 编辑器 ---------------- */
.fm-editor-main { padding: 26px 0 72px; }
.fm-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.fm-editor-card {
  padding: 28px 30px 24px;
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 95, 87, .04);
}
.fm-editor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EDF6F3;
}
.fm-editor-top h2 { margin: 0; color: var(--fm-ink); font-size: 19px; font-weight: 800; }
.fm-editor-top p { margin: 4px 0 0; color: var(--fm-muted); font-size: 11.5px; }
.fm-editor-mode {
  flex: none;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--fm-mint);
  color: var(--fm-main);
  font-size: 10.5px;
  font-weight: 700;
}

.fm-field { margin-bottom: 20px; }
.fm-field label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--fm-ink);
  font-size: 13px;
  font-weight: 750;
}
.fm-field label span { color: #A2B8B3; font-size: 10.5px; font-weight: 500; }
.fm-field input[type="text"],
.fm-field input[type="search"],
.fm-field textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #DCEFEA;
  border-radius: 10px;
  background: #FDFEFE;
  color: var(--fm-ink);
  font-size: 13.5px;
  line-height: 1.6;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.fm-field input::placeholder, .fm-field textarea::placeholder { color: #A7BCB7; }
.fm-field input:focus, .fm-field textarea:focus { border-color: rgba(31, 157, 144, .55); background: #fff; box-shadow: 0 0 0 3px rgba(31, 157, 144, .08); }
.fm-field textarea { min-height: 260px; resize: vertical; }
.fm-field__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: #A2B8B3; font-size: 10.5px; }

.fm-cat-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-cat-picker button {
  padding: 8px 13px;
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  background: #fff;
  color: #55736D;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.fm-cat-picker button:hover { border-color: rgba(31, 157, 144, .35); color: var(--fm-main); }
.fm-cat-picker button.is-on { border-color: var(--fm-main); background: var(--fm-mint); color: var(--fm-main); box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .06); }

.fm-field--content { position: relative; }
.fm-editor-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 0 0 8px auto;
  padding: 3px;
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  background: #F8FCFB;
}
.fm-editor-tabs button {
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fm-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.fm-editor-tabs button.is-on { background: #fff; color: var(--fm-main); box-shadow: 0 2px 5px rgba(11, 95, 87, .06); }
.fm-editor-tabs i { margin-right: 3px; font-size: 10px; }
.fm-editor-preview {
  min-height: 260px;
  padding: 13px 15px;
  border: 1px solid #DCEFEA;
  border-radius: 10px;
  background: #FDFEFE;
}
.fm-editor-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #FECACA;
  border-radius: 8px;
  background: #FFF5F5;
  color: #B91C1C;
  font-size: 12px;
  line-height: 1.6;
}
.fm-editor-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #EDF6F3;
}
.fm-editor-cancel {
  padding: 9px 16px;
  color: var(--fm-muted);
  font-size: 12.5px;
  text-decoration: none;
}
.fm-editor-cancel:hover { color: var(--fm-main); }
.fm-editor-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--fm-main), var(--fm-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}
.fm-editor-submit:hover { box-shadow: 0 12px 22px rgba(15, 118, 110, .24); }
.fm-editor-submit:disabled { opacity: .6; cursor: default; box-shadow: none; }
.fm-editor-gate {
  padding: 48px 20px;
  text-align: center;
}
.fm-editor-gate b { display: block; color: var(--fm-ink); font-size: 16px; }
.fm-editor-gate p { margin: 7px auto 16px; max-width: 360px; color: var(--fm-muted); font-size: 12.5px; line-height: 1.7; }
.fm-editor-side { display: flex; flex-direction: column; gap: 14px; }
.fm-md-help { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-md-help code {
  padding: 4px 7px;
  border-radius: 5px;
  background: #F3F9F7;
  color: #4E706A;
  font-size: 10.5px;
}

/* toast */
.fm-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 9999;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(11, 48, 44, .94);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 30px rgba(6, 40, 36, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.fm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fm-toast.is-bad { background: rgba(127, 29, 29, .95); }

/* ---------------- 响应式 ---------------- */
@media (min-width: 1240px) {
  .fm-toolbar { width: calc(100% - 342px); }
}

@media (min-width: 1081px) and (max-width: 1239px) {
  .fm-toolbar { width: calc(100% - 342px); display: block; }
  .fm-cats { flex-wrap: wrap; overflow: visible; margin-bottom: 10px; }
  .fm-toolbar__right { justify-content: flex-end; }
}

.fm-article .fm-prose > p:first-child { color: #244742; font-size: 15.8px; }

@media (min-width: 901px) {
  .fm-detail-page .fm-container { width: min(1100px, calc(100% - 40px)); }
  .fm-detail-layout .fm-side { position: sticky; top: 24px; z-index: 1; }
}

@media (max-width: 1080px) {
  .fm-article { padding: 28px 28px 23px; }
  .fm-layout, .fm-detail-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; }
  .fm-editor-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; }
  .fm-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .fm-hero h1 { font-size: 34px; }
  .fm-detail-hero h1 { font-size: 31px; }
  .fm-toolbar { display: block; }
  .fm-cats { flex-wrap: wrap; overflow: visible; margin-bottom: 12px; }
  .fm-cat-tab { flex: 0 0 auto; }
  .fm-toolbar__right { justify-content: flex-end; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .fm-toolbar { width: calc(100% - 312px); }
}

@media (max-width: 991px) {
  .fm-hero-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .fm-hero-main { max-width: none; }
  .fm-stat-card { max-width: 520px; }
}

@media (max-width: 900px) {
  .fm-layout, .fm-detail-layout, .fm-editor-layout { grid-template-columns: 1fr; }
  .fm-side, .fm-editor-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .fm-detail-layout .fm-side { grid-template-columns: 1fr 1fr; }
  .fm-detail-layout .fm-side #fmRelatedCard,
  .fm-detail-layout .fm-side .fm-rules-card { grid-column: 1 / -1; }
  .fm-detail-layout .fm-side .fm-rules-card .fm-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
  }
  .fm-detail-maincol, .fm-feed-col { order: 0; }
  .fm-detail-layout .fm-side, .fm-layout .fm-side { order: 1; }
  .fm-layout .fm-rules-card { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .fm-container { width: calc(100% - 32px); }
  .fm-hero { padding: 112px 0 24px; }
  .fm-detail-hero, .fm-editor-hero { padding: 96px 0 22px; }
  .fm-hero__head { display: block; }
  .fm-hero h1 { font-size: 27px; margin-top: 10px; }
  .fm-hero h1 span { display: block; }
  .fm-detail-hero h1 { font-size: 24px; }
  .fm-title-part { display: block; }
  .fm-hero p, .fm-detail-hero p, .fm-editor-hero p { font-size: 13px; }
  .fm-hero .fm-hero-sub { margin-bottom: 18px; font-size: 13.5px; line-height: 1.75; }
  .fm-searchbar { gap: 9px; padding: 7px 7px 7px 14px; border-radius: 15px; }
  .fm-searchbar input { height: 40px; font-size: 14px; }
  .fm-searchbar__submit { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
  .fm-hotsearch { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; font-size: 11.5px; }
  .fm-hotsearch::-webkit-scrollbar { display: none; }
  .fm-hotsearch button { font-size: 11.5px; }
  .fm-hero-flow { margin-top: 16px; font-size: 11px; gap: 6px; }
  .fm-hero-flow span { padding: 4px 9px; }
  .fm-stat-card { padding: 16px; border-radius: 18px; }
  .fm-stat-grid { padding: 13px 0 15px; gap: 6px; }
  .fm-stat-item b { font-size: 20px; }
  .fm-stat-item span { font-size: 10.5px; }
  .fm-stat-btn { height: 38px; padding: 0 8px; font-size: 12.5px; }

  .fm-main, .fm-detail-main, .fm-editor-main { padding-top: 16px; padding-bottom: 44px; }
  .fm-toolbar { display: block; margin-bottom: 14px; }
  body.fm-page, body.fm-detail-page, body.fm-editor-page { padding-bottom: 72px; }
  .fm-cats { margin-bottom: 10px; flex-wrap: wrap; overflow: visible; }
  .fm-cat-tab { flex: 0 0 auto; }
  .fm-toolbar__right { justify-content: space-between; }
  .fm-sort { flex: 1; justify-content: center; }
  .fm-sort button { flex: 1; padding: 7px 8px; }
  .fm-mine-btn { padding: 7px 11px; }

  .fm-post { padding: 14px 14px 12px; border-radius: 13px; }
  .fm-post h3 { font-size: 15.5px; }
  .fm-post p { font-size: 12.5px; -webkit-line-clamp: 2; }
  .fm-post__time { font-size: 10.5px; }
  .fm-post__nums { gap: 8px; font-size: 10.5px; }
  .fm-author b { font-size: 11.5px; }

  .fm-side, .fm-detail-layout .fm-side, .fm-editor-side { grid-template-columns: 1fr; }
  .fm-side-card { padding: 15px; }

  .fm-detail-hero__main, .fm-editor-hero__main { display: block; }
  .fm-detail-topbar { margin-bottom: 15px; }
  .fm-detail-topbar .fm-back-link { padding: 7px 10px; font-size: 11px; border-radius: 8px; }
  .fm-back-link { margin-top: 14px; }
  .fm-detail-meta { font-size: 11.5px; gap: 7px 11px; }
  .fm-detail-meta .fm-author b { font-size: 11.5px; }
  .fm-article { padding: 21px 18px 18px; border-radius: 14px; }
  .fm-prose { font-size: 13.5px; line-height: 1.85; }
  .fm-prose h2 { font-size: 18px; }
  .fm-prose h3 { font-size: 15.5px; }
  .fm-article__foot { align-items: flex-start; flex-direction: column; }
  .fm-actions { width: 100%; }
  .fm-action { flex: 1; justify-content: center; padding: 8px 6px; }

  .fm-replies { padding: 18px 16px; border-radius: 14px; }
  .fm-reply .fm-prose { padding-left: 0; }
  .fm-reply-form { padding: 11px; }
  .fm-reply-form .fm-avatar { display: none; }
  .fm-reply-form textarea { min-height: 82px; }

  .fm-editor-card { padding: 20px 17px; border-radius: 14px; }
  .fm-editor-top h2 { font-size: 17px; }
  .fm-field textarea { min-height: 210px; }
  .fm-editor-preview { min-height: 210px; }
  .fm-editor-foot { flex-direction: column-reverse; align-items: stretch; }
  .fm-editor-submit { justify-content: center; }
  .fm-editor-cancel { text-align: center; }
}

@media (max-width: 600px) {
  .fm-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  }
  .fm-cats::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .fm-container { width: calc(100% - 24px); }
  .fm-hero h1 { font-size: 26px; letter-spacing: -.4px; }
  .fm-detail-hero h1, .fm-editor-hero h1 { font-size: 21px; }
  .fm-write-btn { width: 100%; justify-content: center; }
  .fm-searchbar { gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px; }
  .fm-searchbar__icon { width: 20px; height: 20px; border-radius: 0; font-size: 16px; }
  .fm-searchbar input { height: 38px; font-size: 12.5px; }
  .fm-searchbar__clear { width: 26px; height: 26px; }
  .fm-searchbar__submit { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 12px; }
  .fm-hotsearch { gap: 5px; font-size: 11px; }
  .fm-hotsearch button { padding: 4px 8px; font-size: 11px; }
  .fm-stat-actions { grid-template-columns: 1fr; }
  .fm-stat-btn { height: 38px; font-size: 12.5px; }
  .fm-hero-stat { padding: 0 10px; font-size: 11px; }
  .fm-hero-stat:first-child { padding-left: 0; }
  .fm-hero-stat:last-child { border-right: 0; padding-right: 0; }
  .fm-post__top { gap: 5px; }
  .fm-post__time { margin-left: auto; width: auto; }
  .fm-post__foot { flex-wrap: wrap; row-gap: 7px; }
  .fm-post__nums { width: auto; margin-left: auto; justify-content: flex-end; }
  .fm-action { font-size: 11.5px; }
  .fm-replies__head > span { display: none; }
}

/* footer */
.fm-footer {
  background: #F7FBFA;
  border-top: 1px solid #DCEEE9;
  margin-top: 0;
}
.fm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.fm-footer-brand { max-width: 560px; }
.fm-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0B5F57;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}
.fm-footer-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0F766E;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.fm-footer-brand p {
  margin: 14px 0 0;
  max-width: 460px;
  color: #6F8F89;
  font-size: 13.5px;
  line-height: 1.85;
}
.fm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-top: 7px;
  color: #103B36;
  font-size: 13.5px;
  font-weight: 600;
}
.fm-footer-links a { color: #103B36; }
.fm-footer-links a:hover { color: #0F766E; }
.fm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 17px 24px 22px;
  border-top: 1px solid #E3F1EE;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: #6F8F89;
  font-size: 12.5px;
}
@media (max-width: 768px) {
  .fm-footer-inner { display: block; padding: 34px 20px 24px; }
  .fm-footer-brand p { max-width: none; }
  .fm-footer-links { margin-top: 22px; gap: 10px 20px; }
  .fm-footer-bottom { display: block; padding: 15px 20px 20px; line-height: 1.8; }
  .fm-footer-bottom span { display: block; }
}

/* 举报 */
.fm-action--report { color: #8E6A3E; }
.fm-action--report:hover { color: #7A5328; border-color: #E7D3B4; background: #FFFBF3; }

/* 最佳回复 */
.fm-reply.is-best {
  margin: 0 -8px;
  padding: 15px 8px;
  border-top-color: transparent;
  border-left: 3px solid #C7A45A;
  border-radius: 9px;
  background: linear-gradient(90deg, #FFFCF2, #FFFFFF 65%);
}
.fm-reply.is-best:first-child { border-top-color: transparent; }
.fm-best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FBF1D7;
  color: #8A6828;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.fm-best-badge i { font-size: 9px; }
.fm-reply__ops {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
.fm-reply__op {
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #A2B8B3;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
}
.fm-reply__op:hover { color: var(--fm-main); background: #F1FAF8; }
.fm-reply__op.is-on { color: #8A6828; background: #FFF6DE; }
.fm-reply__ops .fm-reply__del { margin-left: 0; }

/* 举报弹窗 */
.fm-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.fm-modal[hidden] { display: none; }
.fm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 40, 36, .48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.fm-modal__dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 24px 24px 20px;
  border: 1px solid rgba(220, 238, 233, .9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 54, 48, .25);
}
.fm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #F2F8F6;
  color: #6F8F89;
  cursor: pointer;
}
.fm-modal__close:hover { background: #E7F4F1; color: var(--fm-deep); }
.fm-modal__dialog h3 { margin: 0 34px 8px 0; color: var(--fm-ink); font-size: 19px; font-weight: 800; }
.fm-modal__sub { margin: 0 0 15px; color: var(--fm-muted); font-size: 12.5px; line-height: 1.7; }
.fm-report-target {
  margin-bottom: 15px;
  padding: 10px 12px;
  border-left: 3px solid #CDE9E2;
  border-radius: 8px;
  background: #F7FBFA;
  color: #52736C;
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-report-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: #31564F;
  font-size: 12px;
  font-weight: 700;
}
.fm-report-label span { color: #9AB3AE; font-size: 10.5px; font-weight: 500; }
.fm-report-reasons { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.fm-report-reasons button {
  padding: 7px 12px;
  border: 1px solid #DCEEE9;
  border-radius: 999px;
  background: #fff;
  color: #52736C;
  font-size: 12px;
  cursor: pointer;
}
.fm-report-reasons button:hover { border-color: #A7DCD1; color: var(--fm-main); }
.fm-report-reasons button.is-on {
  border-color: var(--fm-main);
  background: var(--fm-main);
  color: #fff;
}
.fm-modal__dialog textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid #DFF0EC;
  border-radius: 9px;
  color: var(--fm-ink);
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
  outline: 0;
}
.fm-modal__dialog textarea:focus { border-color: rgba(31, 157, 144, .55); box-shadow: 0 0 0 3px rgba(31, 157, 144, .09); }
.fm-modal__dialog textarea::placeholder { color: #A5BCB7; }
.fm-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}
.fm-modal__foot #fmReportChars { color: #9AB3AE; font-size: 10.5px; }
.fm-modal__buttons { display: flex; gap: 8px; }
.fm-modal__cancel, .fm-modal__submit {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.fm-modal__cancel { border: 1px solid #DFF0EC; background: #fff; color: #6F8F89; }
.fm-modal__submit { border: 0; background: var(--fm-main); color: #fff; }
.fm-modal__submit:hover { background: var(--fm-deep); }
.fm-modal__submit:disabled { opacity: .55; cursor: default; }
@media (max-width: 768px) {
  .fm-modal { align-items: flex-end; padding: 0; }
  .fm-modal__dialog {
    width: 100%;
    max-height: 86vh;
    padding: 21px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }
  .fm-modal__dialog h3 { font-size: 18px; }
  .fm-modal__foot { align-items: center; }
  .fm-modal__buttons { flex-direction: row; width: auto; }
  .fm-modal__submit, .fm-modal__cancel { width: auto; min-width: 92px; }
  .fm-reply__ops { gap: 1px; }
  .fm-reply__op { padding: 4px 5px; font-size: 10px; }
}
body.fm-modal-open { overflow: hidden; }
@media (max-width: 768px) {
  .fm-reply__head { flex-wrap: wrap; row-gap: 3px; }
  .fm-reply__who b { display: block; }
  .fm-reply__ops { margin-left: auto; }
}
.fm-admin-link {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid #CFE7E1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #52736C;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.fm-admin-link:hover { border-color: #A7DCD1; color: var(--fm-main); background: #fff; }

/* 版主管理 */
.fm-manage-page .fm-manage-hero { padding-bottom: 30px; }
.fm-manage-page .fm-crumb { margin-bottom: 18px; }
.fm-manage-gate {
  max-width: 520px;
  margin: 6px auto 0;
  padding: 40px 28px 36px;
  border: 1px solid var(--fm-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(11, 95, 87, .05);
}
.fm-manage-gate__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #EAF8F5;
  color: var(--fm-main);
  font-size: 20px;
}
.fm-manage-gate b { display: block; color: var(--fm-ink); font-size: 18px; }
.fm-manage-gate p { max-width: 390px; margin: 8px auto 18px; color: var(--fm-muted); font-size: 12.5px; line-height: 1.8; }
.fm-manage-gate .fm-empty__btn { display: inline-flex; }

.fm-manage-loading { padding: 40px 0; text-align: center; color: #9AB3AE; font-size: 12.5px; }
.fm-manage-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.fm-manage-tabgroup {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  background: #fff;
}
.fm-manage-tabgroup button {
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5E7C76;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fm-manage-tabgroup button.is-on { background: var(--fm-main); color: #fff; box-shadow: 0 5px 12px rgba(15, 118, 110, .16); }
.fm-manage-tabgroup button em {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-style: normal;
  font-size: 10px;
}
.fm-manage-tabgroup button:not(.is-on) em { background: #F0F8F6; color: #7D9994; }
.fm-manage-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #fff;
}
.fm-manage-filter button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6F8F89;
  font-size: 11.5px;
  cursor: pointer;
}
.fm-manage-filter button.is-on { background: #EAF8F5; color: var(--fm-deep); font-weight: 700; }

.fm-manage-list { display: flex; flex-direction: column; gap: 12px; }
.fm-report-card {
  padding: 18px 20px 16px;
  border: 1px solid var(--fm-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 95, 87, .03);
}
.fm-report-card.is-done { background: #FAFCFB; }
.fm-report-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-report-reason {
  padding: 3px 9px;
  border-radius: 999px;
  background: #FFF4E5;
  color: #A3641A;
  font-size: 10.5px;
  font-weight: 800;
}
.fm-report-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFF7E8;
  color: #9B6A20;
  font-size: 10px;
  font-weight: 700;
}
.fm-report-status.is-resolved { background: #EAF8F1; color: #1F7A5A; }
.fm-report-status.is-ignored { background: #F3F5F4; color: #81938F; }
.fm-report-time { margin-left: auto; color: #9AB3AE; font-size: 10.5px; }
.fm-report-card__target {
  display: block;
  margin: 11px 0 5px;
  color: var(--fm-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}
.fm-report-card__target:hover { color: var(--fm-main); }
.fm-report-card__target i { margin-right: 6px; color: var(--fm-mid); font-size: 12px; }
.fm-report-card__meta { color: #9AB3AE; font-size: 11px; }
.fm-report-card__meta b { color: #52736C; font-weight: 600; }
.fm-report-card__detail {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #F8FCFB;
  color: #52736C;
  font-size: 12px;
  line-height: 1.7;
}
.fm-report-card__reply {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #D8ECE7;
  border-radius: 0 8px 8px 0;
  background: #FBFDFC;
  color: #6F8F89;
  font-size: 11.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-report-card__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #F0F7F5;
  flex-wrap: wrap;
}
.fm-report-card__actions .fm-mini-btn:first-child { margin-right: auto; }
.fm-report-note { color: #9AB3AE; font-size: 10.5px; }
.fm-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid #DFF0EC;
  border-radius: 7px;
  background: #fff;
  color: #52736C;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fm-mini-btn:hover { border-color: #A7DCD1; color: var(--fm-main); background: #F8FCFB; }
.fm-mini-btn.is-primary { border-color: var(--fm-main); background: var(--fm-main); color: #fff; }
.fm-mini-btn.is-primary:hover { background: var(--fm-deep); border-color: var(--fm-deep); color: #fff; }
.fm-mini-btn.is-danger { border-color: #F1D7D7; color: #A34848; background: #FFFBFB; }
.fm-mini-btn.is-danger:hover { background: #FFF2F2; border-color: #E8BDBD; color: #8F3333; }

.fm-post-manage-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--fm-line);
  border-radius: 13px;
  background: #fff;
}
.fm-post-manage-card.is-pinned { border-color: #EAD9B4; background: #FFFDF7; }
.fm-post-manage-card__body { min-width: 0; flex: 1; }
.fm-post-manage-card__title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--fm-ink); font-size: 14px; font-weight: 800; line-height: 1.5; }
.fm-post-manage-card__title a { color: inherit; text-decoration: none; }
.fm-post-manage-card__title a:hover { color: var(--fm-main); }
.fm-pin-mini { padding: 2px 7px; border-radius: 999px; background: #FBF1D7; color: #8A6828; font-size: 9.5px; font-weight: 800; }
.fm-post-manage-card__meta { margin-top: 4px; color: #9AB3AE; font-size: 10.5px; }
.fm-post-manage-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-manage-empty {
  padding: 52px 20px;
  border: 1px dashed #DCEEE9;
  border-radius: 14px;
  background: #FBFDFC;
  text-align: center;
}
.fm-manage-empty span { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: #EAF8F5; color: var(--fm-main); }
.fm-manage-empty b { display: block; color: #31564F; font-size: 14px; }
.fm-manage-empty p { margin: 6px 0 0; color: #9AB3AE; font-size: 11.5px; }
@media (max-width: 768px) {
  .fm-manage-page .fm-manage-hero { padding-bottom: 24px; }
  .fm-manage-tabs { display: block; }
  .fm-manage-tabgroup { width: 100%; }
  .fm-manage-tabgroup button { flex: 1; }
  .fm-manage-filter { margin-top: 9px; width: max-content; margin-left: 0; }
  .fm-report-card { padding: 15px 15px 13px; }
  .fm-report-card__target { font-size: 14px; }
  .fm-report-card__actions .fm-mini-btn:first-child { margin-right: 0; }
  .fm-report-card:not(.is-done) .fm-report-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .fm-report-card:not(.is-done) .fm-report-card__actions .fm-mini-btn { justify-content: center; }
  .fm-report-card.is-done .fm-report-card__actions .fm-mini-btn { margin-right: auto; }
  .fm-post-manage-card { align-items: flex-start; flex-direction: column; gap: 9px; padding: 14px 15px; }
  .fm-post-manage-card__actions { width: 100%; }
  .fm-post-manage-card__actions .fm-mini-btn { flex: 1; justify-content: center; }
}
