/* Desktop forum: retain Discuz controls and distinguish the historical community. */
body[id^="nv_"] { background: #f4f5f3; color: #303a34; font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif; }
body[id^="nv_"], body[id^="nv_"] #toptb { min-width: 0; }
.wp { width: 1120px; max-width: calc(100% - 48px); }
#toptb { background: #edf0ec; border-bottom: 1px solid #dce2dc; min-height: 32px; }
#hd { background: #fff; border-bottom: 1px solid #dce2dc; }
#hd .hdc { padding: 24px 0; min-height: 90px; }
.desktop-brand { float: left; max-width: 62%; }
#hd .desktop-brand h1 { float: none; margin: 0 0 8px; padding: 0; font-size: 27px; font-weight: 650; line-height: 1.4; color: #304f42; }
.desktop-forum-label { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 3px 10px; border: 1px solid #cbd5ca; border-radius: 5px; background: #edf0ec; font-size: 13px; font-weight: 600; }
.desktop-brand p { color: #657267; margin: 4px 0; }
.desktop-brand .desktop-new-site { display: inline-block; margin-top: 6px; color: #304f42; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#nv { height: auto; min-height: 44px; padding: 0 8px; background: #304f42; border-radius: 7px 7px 0 0; }
#nv ul { display: flex; flex-wrap: wrap; height: auto; }
#nv li { float: none; height: 44px; line-height: 44px; background: none; font-size: 14px; padding-right: 0; }
#nv li a { padding: 0 13px; color: #fff; }
#nv li.a, #nv li:hover { background: #476555; }
#scbar { height: auto; min-height: 52px; background: #f7f8f6; border-color: #dce2dc; padding: 5px 12px; box-sizing: border-box; }
#scbar_txt { font-size: 14px; }
#pt { margin: 14px auto; height: auto; min-height: 30px; }
.bm, .pl { border-color: #dce2dc; background: #fff; border-radius: 7px; }
.bm_h { background: #edf0ec; border-color: #dce2dc; padding: 8px 14px; min-height: 32px; height: auto; }
.bm_h h1, .bm_h h2 { font-size: 18px; color: #304f42; }
.bm_c { padding: 14px; }
.fl_tb td { padding-top: 14px; padding-bottom: 14px; }
.fl_tb h2 { font-size: 16px; }
.tl th, .tl td { padding-top: 12px; padding-bottom: 12px; border-color: #e6eae4; }
.tl .th { background: #f5f7f3; }
.tl th a.s, .tl th .xst { font-size: 16px; line-height: 1.6; }
.tl .by, .tl .num { font-size: 12px; color: #657267; }
.tl tr:hover th, .tl tr:hover td { background: #f8faf6; }
.pgt, .pgs { margin: 16px 0; }
.pg a, .pg strong, .pgb a { min-height: 30px; line-height: 30px; border-color: #cbd5ca; border-radius: 4px; }
.pg strong { background: #edf0ec; color: #304f42; }
.pls { background: #f1f4ee; border-right: 1px solid #dce2dc; }
.plc { padding: 16px 24px; }
.pi { border-color: #e6eae4; height: auto; min-height: 30px; padding-bottom: 10px; }
.ts { font-size: 23px; line-height: 1.5; }
.t_f { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.t_f img { max-width: 100%; height: auto; }
.t_f .quote { background: #f5f6f1; border-left: 3px solid #a3b29e; padding: 14px 18px; }
.t_f .quote blockquote { background: none; padding: 0; }
.pob { padding-top: 14px; padding-bottom: 10px; border-color: #e6eae4; }
.pn { min-height: 30px; border-radius: 4px; }
.pnc, a.pnc { background: #304f42; border-color: #304f42; }
.px, .pt, .ps { font-size: 14px; border-color: #cbd5ca; }
#ft { padding: 24px 0; margin-top: 24px; border-color: #dce2dc; color: #657267; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #577961; outline-offset: 3px; }
@media (max-width: 1100px) {
 .wp { max-width: calc(100% - 32px); }
 #hd .desktop-brand h1 { font-size: 23px; }
 #nv li a { padding: 0 9px; }
}
/* Override the selected legacy color scheme without changing its controls. */
body[id^="nv_"] #nv, body[id^="nv_"] #nv li { background-image: none !important; }
body[id^="nv_"] #nv li.a { background: #476555 !important; }
body[id^="nv_"] #nv li a { background-image: none !important; }
body[id^="nv_"] .pls { background: #f1f4ee !important; border-color: #dce2dc !important; }
body[id^="nv_"] .ad .pls, body[id^="nv_"] .ad .plc { background: #e6eae4 !important; }
body[id^="nv_"] .bm_h, body[id^="nv_"] .tl .th { background: #edf0ec !important; border-color: #dce2dc !important; }
body[id^="nv_"] .bdl { background: #fff; border-color: #dce2dc; border-radius: 7px; }
body[id^="nv_"] .bdl dt { background: #edf0ec; }
body[id^="nv_"] .bdl dd a { white-space: normal; height: auto; line-height: 1.6; padding-top: 7px; padding-bottom: 7px; }
body[id^="nv_"] #newspecial, body[id^="nv_"] #newspecialtmp { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 5px; background: #304f42; color: #fff; }
body[id^="nv_"] #newspecial img, body[id^="nv_"] #newspecialtmp img { display: none; }
body[id^="nv_"] #newspecial:after, body[id^="nv_"] #newspecialtmp:after { content: '＋ 發文'; font-size: 14px; }
/* Historical context remains visible above the original forum content. */
.history-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; padding: 18px 22px; border: 1px solid #d8ceb6; border-left: 4px solid #98815a; border-radius: 6px; background: #f7f3e9; color: #555b50; }
.history-notice strong { display: block; margin-bottom: 5px; font-size: 16px; color: #594e36; }
.history-notice p { margin: 0; font-size: 13px; line-height: 1.7; }
.history-notice > a { flex-shrink: 0; color: #304f42; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* Shared brand with explicit historical identity. */
#hd .desktop-brand h1 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#hd .history-logo-link { display: block; width: 320px; max-width: 100%; }
#hd .history-brand-logo { display: block; width: 100%; height: auto; }
#hd .desktop-forum-label { margin-left: 0; white-space: nowrap; }
@media (max-width: 900px) { #hd .history-logo-link { width: 260px; } }

/* Member profiles use flexible columns and the archive palette. */
#nv_home.pg_space #uhd { box-sizing: border-box; padding: 16px 20px 0; background: #edf0ec; border: 1px solid #dce2dc; border-radius: 7px 7px 0 0; }
#nv_home.pg_space #uhd .tb { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; padding-left: 0; height: auto; }
#nv_home.pg_space #uhd .tb li { float: none; margin: 0; }
#nv_home.pg_space #uhd .tb a { margin: 0; background: #f7f8f6; border-color: #dce2dc; }
#nv_home.pg_space #uhd .tb .a a { color: #304f42; background: #fff; font-weight: 600; }
.history-profile-page { box-sizing: border-box; border: 1px solid #dce2dc; border-top: 0; background: #fff; border-radius: 0 0 7px 7px; }
.history-profile-page.ct1 > .mn { float: none; width: 100%; }
.history-profile-page > .mn > .bm > .bm_c { padding: 0; }
.history-profile-page .u_profile { padding: 24px; overflow-wrap: anywhere; }
.history-profile-page .u_profile h2 { margin-bottom: 12px; color: #304f42; font-size: 16px; }
.history-profile-page .pf_l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.history-profile-page .pf_l:after { display: none; }
.history-profile-page .pf_l li { float: none; width: auto; min-width: 0; display: flex; gap: 12px; align-items: baseline; line-height: 1.7; }
.history-profile-page .pf_l li em { float: none; flex: 0 0 100px; width: auto; color: #657267; }
.history-profile-page .xi1 { color: #304f42; }
.history-profile-page .history-managed-forums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.history-managed-forums > a { display: block; padding: 8px 12px; background: #f5f7f3; border: 1px solid #e6eae4; border-radius: 4px; line-height: 1.6; overflow-wrap: anywhere; }
.history-managed-section summary { cursor: pointer; color: #304f42; font-weight: 600; padding: 8px 0; }
.history-managed-section[open] summary { margin-bottom: 8px; }
.history-profile-page table { max-width: 100%; }
@media (max-width: 680px) {
 .history-profile-page .pf_l, .history-profile-page .history-managed-forums { grid-template-columns: minmax(0, 1fr); }
 .history-profile-page .u_profile { padding: 16px; }
 #nv_home.pg_space #uhd { padding: 14px 16px 0; }
}
