:root {
  --fg-list-forest: #0c2d24;
  --fg-list-deep: #071d17;
  --fg-list-paper: #eef2e9;
  --fg-list-sheet: #fbfcf7;
  --fg-list-ink: #14241e;
  --fg-list-muted: #5d6a63;
  --fg-list-line: #d0d9cc;
  --fg-list-brass: #d4aa63;
  --fg-list-brass-soft: #ead6ad;
  --fg-list-warm: #e47a50;
  --fg-list-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --fg-list-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --fg-list-width: min(1120px, calc(100vw - 64px));
}

body.pg_forumdisplay {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(rgba(20, 36, 30, 0.035) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--fg-list-paper);
  color: var(--fg-list-ink);
  font: 16px/1.75 var(--fg-list-sans);
  -webkit-font-smoothing: antialiased;
}

body.pg_forumdisplay *,
body.pg_forumdisplay *::before,
body.pg_forumdisplay *::after {
  box-sizing: border-box;
}

body.pg_forumdisplay :focus-visible {
  outline: 3px solid var(--fg-list-warm);
  outline-offset: 4px;
}

body.pg_forumdisplay #toptb,
body.pg_forumdisplay #hd,
body.pg_forumdisplay > .header,
body.pg_forumdisplay .foot,
body.pg_forumdisplay #ft,
body.pg_forumdisplay .foot_height,
body.pg_forumdisplay .foot_height_view,
body.pg_forumdisplay #pt,
body.pg_forumdisplay .forumdisplay-top {
  display: none !important;
}

.fg-forum-header {
  position: sticky;
  top: 0;
  z-index: 200;
  color: #fffef9;
  background: rgba(12, 45, 36, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.fg-forum-header-inner {
  width: min(1360px, calc(100vw - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.fg-forum-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #fffef9 !important;
  text-decoration: none;
}

.fg-forum-seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg-list-brass);
  border-radius: 50%;
  color: var(--fg-list-brass-soft);
  font: 700 23px/1 var(--fg-list-serif);
}

.fg-forum-brand-copy {
  display: grid;
  gap: 1px;
}

.fg-forum-brand-copy strong {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.fg-forum-brand-copy small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.fg-forum-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.fg-forum-nav::-webkit-scrollbar {
  display: none;
}

.fg-forum-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}

.fg-forum-nav a:hover,
.fg-forum-nav a.is-current {
  color: #fffef9 !important;
}

.fg-forum-nav a.is-current {
  border-bottom: 1px solid var(--fg-list-brass);
}

.fg-forum-call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(212, 170, 99, 0.46);
  border-radius: 999px;
  color: #fffef9 !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}

.fg-forum-call strong {
  color: var(--fg-list-brass-soft);
  font-variant-numeric: tabular-nums;
}

.fg-forum-hero {
  position: relative;
  overflow: hidden;
  width: var(--fg-list-width);
  margin: 34px auto 0;
  padding: clamp(34px, 5vw, 60px);
  background: var(--fg-list-forest);
  color: #fffef9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px -44px rgba(7, 29, 23, 0.9);
}

.fg-forum-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -160px;
  top: -245px;
  border: 1px solid rgba(212, 170, 99, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.fg-forum-crumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.fg-forum-crumb a {
  color: var(--fg-list-brass-soft) !important;
  text-decoration: none;
}

.fg-forum-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  margin: 0;
  color: #fffef9;
  font: 700 clamp(40px, 5vw, 62px)/1.2 var(--fg-list-serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fg-forum-hero > p {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.85;
}

.fg-forum-category-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.fg-forum-category-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  font-size: 13px;
}

.fg-forum-category-nav a:hover {
  color: #fffef9 !important;
}

body.pg_forumdisplay #wp {
  width: var(--fg-list-width);
  max-width: none;
  margin: 20px auto 88px;
}

body.pg_forumdisplay #wp > .wp,
body.pg_forumdisplay #ct,
body.pg_forumdisplay #ct > .mn,
body.pg_forumdisplay .boardnav {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.pg_forumdisplay .bm.bml.pbn,
body.pg_forumdisplay .fs-navbar,
body.pg_forumdisplay .drag,
body.pg_forumdisplay #diy1,
body.pg_forumdisplay #diynavtop,
body.pg_forumdisplay #f_pst,
body.pg_forumdisplay #autopbn,
body.pg_forumdisplay .fs-navhub,
body.pg_forumdisplay .fsm-hub,
body.pg_forumdisplay .fsm-callbar,
body.pg_forumdisplay #threadlist .th,
body.pg_forumdisplay .icn,
body.pg_forumdisplay #separatorline,
body.pg_forumdisplay .closeprev,
body.pg_forumdisplay .showcontent,
body.pg_forumdisplay .pgsbtn,
body.pg_forumdisplay .pgs .pgb {
  display: none !important;
}

body.pg_forumdisplay #pgt {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.pg_forumdisplay .pg a,
body.pg_forumdisplay .pg strong {
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  margin: 0 2px;
  background: var(--fg-list-sheet);
  border: 1px solid var(--fg-list-line);
  color: var(--fg-list-forest) !important;
  text-decoration: none;
  font-size: 12px;
}

body.pg_forumdisplay .pg strong {
  background: var(--fg-list-forest);
  border-color: var(--fg-list-forest);
  color: #fffef9 !important;
}

body.pg_forumdisplay .pg label,
body.pg_forumdisplay .pg input {
  display: none;
}

body.pg_forumdisplay #threadlist {
  background: var(--fg-list-sheet);
  border: 1px solid var(--fg-list-line);
  box-shadow: 0 24px 64px -54px rgba(7, 29, 23, 0.8);
}

body.pg_forumdisplay #threadlist .bm_c {
  padding: 0 !important;
}

body.pg_forumdisplay #threadlisttableid {
  width: 100%;
  border-collapse: collapse !important;
  table-layout: fixed;
}

body.pg_forumdisplay #threadlisttableid tbody[id^="stickthread_"] {
  background: #edf2e9;
}

body.pg_forumdisplay #threadlisttableid tbody[id^="normalthread_"] tr,
body.pg_forumdisplay #threadlisttableid tbody[id^="stickthread_"] tr {
  border-bottom: 1px solid var(--fg-list-line);
}

body.pg_forumdisplay #threadlisttableid tbody[id^="normalthread_"] tr:hover,
body.pg_forumdisplay #threadlisttableid tbody[id^="stickthread_"] tr:hover {
  background: rgba(228, 238, 225, 0.55);
}

body.pg_forumdisplay #threadlisttableid th,
body.pg_forumdisplay #threadlisttableid td {
  padding: 15px 12px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left;
  vertical-align: top;
}

body.pg_forumdisplay #threadlisttableid th {
  width: auto;
}

body.pg_forumdisplay #threadlisttableid th .s,
body.pg_forumdisplay #threadlisttableid th .xst {
  display: block;
  color: var(--fg-list-ink) !important;
  font: 700 17px/1.55 var(--fg-list-serif);
  text-decoration: none;
  letter-spacing: -0.01em;
}

body.pg_forumdisplay #threadlisttableid a,
body.pg_forumdisplay #threadlisttableid a:visited,
body.pg_forumdisplay .threadlist a,
body.pg_forumdisplay .threadlist a:visited {
  color: var(--fg-list-forest) !important;
  text-decoration: none;
}

body.pg_forumdisplay #threadlisttableid th .s:hover,
body.pg_forumdisplay #threadlisttableid th .xst:hover {
  color: #1b5140 !important;
}

body.pg_forumdisplay .fs-abs {
  margin-top: 5px;
  color: var(--fg-list-muted) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

body.pg_forumdisplay #threadlisttableid td.by {
  width: 88px;
  color: var(--fg-list-muted) !important;
  font-size: 12px !important;
  white-space: nowrap;
}

body.pg_forumdisplay #threadlisttableid .fg-forum-author {
  display: none !important;
}

body.pg_forumdisplay #threadlisttableid td.num {
  width: 94px;
  color: var(--fg-list-muted) !important;
  font-size: 12px !important;
  white-space: nowrap;
}

body.pg_forumdisplay #threadlisttableid td.num a,
body.pg_forumdisplay #threadlisttableid td.num em {
  color: var(--fg-list-muted) !important;
  font-style: normal;
  text-decoration: none;
}

body.pg_forumdisplay #threadlisttableid td.num a::after {
  content: " 回复";
}

body.pg_forumdisplay #threadlisttableid td.num em::after {
  content: " 查看";
}

body.pg_forumdisplay #threadlisttableid th > a.xi1 {
  display: none !important;
}

.fg-forum-sort {
  width: var(--fg-list-width);
  margin: 12px auto 0;
  background: var(--fg-list-sheet);
  border: 1px solid var(--fg-list-line);
  overflow-x: auto;
}

.fg-forum-sort-inner {
  display: flex;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.fg-forum-sort a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--fg-list-muted) !important;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.fg-forum-sort a:hover,
.fg-forum-sort a.is-current {
  color: var(--fg-list-forest) !important;
  border-bottom: 2px solid var(--fg-list-brass);
}

body.pg_forumdisplay .dhnav_box {
  display: none !important;
}

.fg-forum-mobile-actions {
  display: none;
}

.fg-forum-footer {
  background: var(--fg-list-deep);
  color: rgba(255, 255, 255, 0.64);
}

.fg-forum-footer-inner {
  width: var(--fg-list-width);
  margin: 0 auto;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fg-forum-footer strong {
  display: block;
  margin-bottom: 9px;
  color: var(--fg-list-brass-soft);
  font: 700 20px/1.35 var(--fg-list-serif);
}

.fg-forum-footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.68) !important;
  text-decoration: none;
  font-size: 12px;
}

.fg-forum-footer small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 760px) {
  :root {
    --fg-list-width: calc(100vw - 28px);
  }

  body.pg_forumdisplay {
    padding-bottom: 66px;
  }

  .fg-forum-header-inner {
    width: calc(100vw - 24px);
    min-height: auto;
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 0 6px;
  }

  .fg-forum-seal {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .fg-forum-brand-copy strong {
    font-size: 17px;
  }

  .fg-forum-brand-copy small,
  .fg-forum-call {
    display: none;
  }

  .fg-forum-nav {
    order: 3;
    width: 100%;
    gap: 15px;
    padding-right: 8px;
  }

  .fg-forum-nav a {
    font-size: 12px;
  }

  .fg-forum-hero {
    margin-top: 18px;
    padding: 28px 20px 20px;
  }

  .fg-forum-hero h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.25;
  }

  .fg-forum-hero > p {
    margin-top: 16px;
    font-size: 14px;
  }

  .fg-forum-category-nav {
    gap: 2px 18px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .fg-forum-category-nav a {
    min-height: 42px;
    font-size: 12px;
  }

  body.pg_forumdisplay #wp {
    margin-top: 14px;
  }

  body.pg_forumdisplay #pgt {
    justify-content: flex-start;
    overflow-x: auto;
    margin-bottom: 10px !important;
  }

  .fg-forum-sort {
    margin-top: 10px;
  }

  body.pg_forumdisplay .threadlist_box {
    width: var(--fg-list-width) !important;
    margin: 10px auto 0 !important;
    background: transparent !important;
  }

  body.pg_forumdisplay .threadlist > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--fg-list-sheet);
    border: 1px solid var(--fg-list-line);
  }

  body.pg_forumdisplay .threadlist li.list_top {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--fg-list-line);
    color: var(--fg-list-muted);
    font-size: 13px;
  }

  body.pg_forumdisplay .threadlist li.list_top a {
    color: var(--fg-list-ink) !important;
    text-decoration: none;
  }

  body.pg_forumdisplay .threadlist li.list {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
    border-bottom: 1px solid var(--fg-list-line);
    background: transparent !important;
  }

  body.pg_forumdisplay .threadlist_top,
  body.pg_forumdisplay .threadlist_tit em,
  body.pg_forumdisplay .threadlist_tit,
  body.pg_forumdisplay .threadlist_mes,
  body.pg_forumdisplay .threadlist_foot {
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body.pg_forumdisplay .threadlist_top {
    display: none !important;
  }

  body.pg_forumdisplay .threadlist_tit em {
    display: block;
    color: var(--fg-list-ink) !important;
    font: 700 18px/1.55 var(--fg-list-serif);
    letter-spacing: -0.01em;
    text-decoration: none;
  }

  body.pg_forumdisplay .threadlist_mes {
    display: -webkit-box !important;
    margin-top: 6px;
    overflow: hidden !important;
    color: var(--fg-list-muted) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.pg_forumdisplay .threadlist_foot {
    display: flex !important;
    gap: 14px;
    margin-top: 9px;
    color: var(--fg-list-muted) !important;
    font-size: 12px;
  }

  body.pg_forumdisplay .threadlist_foot ul {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.pg_forumdisplay .threadlist_foot i {
    margin-right: 4px;
  }

  body.pg_forumdisplay .pg {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 18px 0 0;
  }

  body.pg_forumdisplay .pg a,
  body.pg_forumdisplay .pg strong {
    min-width: 38px;
    min-height: 40px;
  }

  .fg-forum-footer-inner {
    grid-template-columns: 1fr;
    padding-bottom: 104px;
  }

  .fg-forum-mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--fg-list-sheet);
    border-top: 1px solid var(--fg-list-line);
    box-shadow: 0 -12px 30px rgba(7, 29, 23, 0.12);
  }

  .fg-forum-mobile-actions a {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-list-forest) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }

  .fg-forum-mobile-actions a + a {
    border-left: 1px solid var(--fg-list-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
