@charset "UTF-8";
/* DAITOUSHOU        PC        */

:root {
  --bg: #0a1628;
  --card: #0e1f38;
  --card2: #13294a;
  --subtle: #13294a;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.16);
  --t1: #e9f0fa;
  --t2: #9fb3cc;
  --t3: #6f8caf;
  --t4: #4c6486;
  --blue: #4ea2e8;
  --bl: rgba(78,162,232,0.15);
  --bm: rgba(78,162,232,0.35);
  --green: #5ed392;
  --gl: rgba(94,211,146,0.15);
  --gm: rgba(94,211,146,0.4);
  --red: #f0625e;
  --rl: rgba(240,98,94,0.12);
  --rm: rgba(240,98,94,0.35);
  --orange: #f0b84c;
  --ol: rgba(240,184,76,0.15);
  --om: rgba(240,184,76,0.4);
  --purple: #a78bfa;
  --pl: rgba(167,139,250,0.15);
  --pm: rgba(167,139,250,0.4);
  --cyan: #22d3ee;
  --cl: rgba(34,211,238,0.15);
  --cm: rgba(34,211,238,0.4);
  --teal: #5ed392;
  --navy: #13294a;
  --r: 6px;
  --rlg: 10px;
  --W: 1200px;
  --P: 20px;
  --green-soft: #3b9b66;
}

* {
  box-sizing: border-box;
}

/* Global Reset for Discuz Compatibility */
body {
  font-family: 'Noto Sans SC', sans-serif !important;
  background: var(--bg) !important;
  color: var(--t1) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

a {
  text-decoration: none !important;
  color: inherit !important;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--blue) !important;
}

/* Hide standard Discuz top navigation & header block */
#toptb, #hd, .wp-title {
  display: none !important;
}

/* Hide empty DIY areas that push layout down */
.area:empty { display: none !important; margin: 0 !important; }

/* Main Container Wrapper */
#wp.wp-content {
  width: var(--W) !important;
  max-width: var(--W) !important;
  margin: 14px auto !important;
  padding: 0 !important;
  min-height: 565px;
}

/* -- TOPBAR (Custom Navigation Header) -- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tb {
  max-width: var(--W);
  margin: 0 auto;
  padding: 0 var(--P);
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 0px solid #E4E8EE !important;
}
.chuhai-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin-right: 20px !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  float: none !important;
  position: relative !important;
  text-decoration: none !important;
}
.chuhai-logo:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
}
.chuhai-logo-ic {
  width: 36px !important;
  height: 36px !important;
  background: var(--blue) !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.chuhai-logo-ic i {
  font-size: 18px !important;
  color: #E6F1FB !important;
}
.chuhai-logo-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  white-space: nowrap !important;
  color: var(--t1) !important;
}
.chuhai-logo-sub {
  font-size: 11px !important;
  color: var(--t3) !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
}
.sep {
  width: 1px;
  height: 22px;
  background: var(--border2);
  margin: 0 16px;
  flex-shrink: 0;
}
/* TOPBAR Search Box */
.search{flex:1;max-width:320px;margin:0 auto;position:relative;display:flex}
.search input{flex:1;width:100%;background:var(--subtle) !important;border:1px solid var(--border2) !important;border-right:none !important;border-radius:20px 0 0 20px !important;padding:7px 14px 7px 34px !important;font-size:13px !important;color:var(--t1) !important;outline:none !important;font-family:inherit !important}
.search input::placeholder{color:#9CA3AF !important}
.search input:focus{border-color:var(--blue) !important;background:var(--card2) !important}
.search-ic{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:14px;color:#6B7280;z-index:2}
.search-btn{background:var(--blue) !important;color:#fff !important;border:none !important;border-radius:0 20px 20px 0 !important;padding:0 16px !important;font-size:13px !important;font-weight:600 !important;cursor:pointer !important;display:flex !important;align-items:center !important;gap:5px !important;flex-shrink:0 !important}
.search-btn:hover{background:#3d8fd4 !important}
.search-btn i{font-size:14px !important}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.np {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: var(--r) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  color: var(--t2) !important;
  transition: background .12s, border-color .12s !important;
  height: auto !important;
  line-height: 1.2 !important;
}
.np i {
  font-size: 15px !important;
}
.np.sup {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--blue) !important;
}
.np.sup:hover, .np.sup.active {
  background: #E6F1FB !important;
  border-color: #B5D4F4 !important;
  color: var(--blue) !important;
}
.np.dem {
  background: transparent !important;
  border-color: transparent !important;
  color: #3b9b66 !important;
}
.np.dem:hover, .np.dem.active {
  background: #EAF3DE !important;
  border-color: #C0DD97 !important;
  color: #3b9b66 !important;
}
.np.gua {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--green) !important;
  font-weight: 500 !important;
}
.np.gua:hover, .np.gua.active {
  background: var(--gl) !important;
  border-color: var(--gm) !important;
  color: var(--green) !important;
  font-weight: 500 !important;
}


.tbr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.lang {
  display: flex;
  align-items: stretch;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  width: 90px;
}
.lb {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px;
  cursor: pointer;
  color: var(--t2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 0 !important;
}
.lb.on {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
}
.ld {
  width: 1px;
  background: var(--border);
  height: 16px;
}
.btn-l {
  border: 1px solid var(--border2) !important;
  background: var(--card2) !important;
  color: var(--t1) !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.12s !important;
  text-decoration: none !important;
}
.btn-l:hover {
  background: var(--border2) !important;
  color: var(--t1) !important;
  text-decoration: none !important;
}
.btn-p {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: opacity 0.12s !important;
}
.btn-p:hover {
  opacity: .9 !important;
}

/* -- NOTICE (Announcements) -- */
.notice {
  background: var(--navy);
}
.nb {
  max-width: var(--W);
  margin: 0 auto;
  padding: 7px var(--P);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #B5D4F4;
}
.nb a {
  color: #85B7EB;
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* -- AD BAR -- */
/* -- AD TEXT LINK BAR -- */
.adbar-page {
  margin: 0;
  padding: 0;
  background: var(--bg); /* 与主体背景保持一致 */
  /* 如需保留分割线可取消注释：border-bottom: 1px solid var(--border); */
}
.adbar-inner {
  max-width: var(--W) !important;
  margin: 0 auto !important;
  padding: 8px var(--P) !important;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 5px !important;
}
.adbar-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.adc {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  min-width: 0;
  overflow: hidden;
  transition: border-color .12s, background .12s, box-shadow .12s;
  text-decoration: none !important;
}
.adc:not(.empty):hover {
  border-color: var(--bm);
  background: var(--bl);
  box-shadow: 0 2px 8px rgba(37,99,235,.06);
  text-decoration: none !important;
}
.adc.empty {
  border-style: dashed !important;
  background: transparent !important;
  cursor: pointer !important;
  justify-content: center !important;
}
.adc.empty:hover {
  border-color: var(--blue) !important;
  background: var(--bl) !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.06) !important;
}
.adc.empty .atxt {
  color: var(--t3) !important;
  font-family: 'Noto Sans SC', sans-serif !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  flex: none !important;
}
.atag {
  font-size: 9px;
  background: var(--bl);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: .02em;
}
.atxt {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  color: #fff !important;
}
.aext {
  font-size: 10px;
  color: var(--t3);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .adbar-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .adbar-page { display: none; }
}

/* -- LAYOUT WRAP -- */
.wrap {
  max-width: var(--W) !important;
  margin: 14px auto !important;
  padding: 0 var(--P) !important;
  display: grid !important;
  grid-template-columns: 200px 1fr 236px !important;
  gap: 14px !important;
}
.wrap.no-left {
  grid-template-columns: 1fr 236px !important;
}
.wrap.center-only {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 70vh !important;
}
.wrap.full-width {
  display: block !important;
}
.left-col {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.main {
  min-width: 0;
}
.side {
  width: 236px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 左侧分类栏 ── */
.left {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  overflow: hidden;
}
.cat-head {
  background: var(--navy);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cat-head i {
  font-size: 15px;
  color: #B5D4F4;
}
.cat-head-t {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
}
.cat-item:last-child {
  border-bottom: none;
}
.cat-item:hover, .cat-item.active {
  background: var(--subtle);
}
.cat-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-ic.sup {
  background: var(--bl) !important;
  color: var(--blue) !important;
}
.cat-ic.dem {
  background: var(--gl) !important;
  color: var(--green) !important;
}
.cat-ic.gua {
  background: var(--cl) !important;
  color: var(--cyan) !important;
}
.cat-ic.ann {
  background: rgba(240, 184, 76, 0.15) !important;
  color: var(--orange) !important;
}
.cat-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
}
.cat-desc {
  font-size: 10px;
  color: var(--t3);
}

/* Statistics row in left sidebar */
.stat-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.stat-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 10px 8px;
  text-align: center;
}
.stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  color: var(--t3);
  margin-top: 3px;
}

/* -- SEARCH SCBAR -- */
.searchBox_sidebar {
  margin-top: 10px;
}

/* -- FILTER ROW -- */
.fsel {
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  color: #9fb3cc !important;
  padding: 4px 8px !important;
  border-radius: var(--r) !important;
  font-size: 12px !important;
  outline: none !important;
}

/* -- POST ITEMS -- */
.plist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcard:hover {
  border-color: var(--bm);
  box-shadow: 0 2px 8px rgba(24,95,165,.07);
}
.pcard.pin {
  border-radius: 8px;
}
.pin-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  color: #ef4444;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.ph {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat.s {
  background: var(--bl);
  color: var(--blue);
}
.cat.d {
  background: #EAF3DE;
  color: #3b9b66;
}
.cat a {
  color: inherit !important;
  font-weight: inherit !important;
}
.ptitle {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  flex: 1 !important;
  line-height: 1.55 !important;
  color: #111827 !important;
}
.ptitle-pin {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  flex: 1 !important;
  line-height: 1.55 !important;
  color: #111827 !important;
  padding-right: 64px !important;
}
.pex {
  font-size: 11.5px !important;
  color: #4B5563 !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.55 !important;
}
.pmeta {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.meta-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-right: 1px solid var(--border);
}
.meta-group:first-child { padding-left: 0; }
.meta-group:last-child { border-right: none; margin-left: auto; padding-right: 0; }
.meta-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.meta-icon.user { background: var(--bl); }
.meta-icon.user i { font-size: 13px; color: var(--blue); }
.meta-icon.heat { background: rgba(240,184,76,0.18); }
.meta-icon.heat i { font-size: 13px; color: #f0b84c; }
.meta-icon.reply { background: var(--gl); }
.meta-icon.reply i { font-size: 13px; color: var(--teal); }
.meta-icon.date { background: var(--subtle); }
.meta-icon.date i { font-size: 13px; color: var(--t3); }
.meta-val { display: flex; flex-direction: column; gap: 1px; }
.meta-lbl { font-size: 9px; color: var(--t3); }
.meta-txt { font-size: 12px; font-weight: 600; color: var(--t1); }
.meta-txt.hot { color: #f0b84c; }
.mi {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--t3);
}
.mi span {
  display: inline-block !important;
  color: var(--t3) !important;
  font-size: 11px !important;
  visibility: visible !important;
}
.hv {
  color: #e04f1a;
  font-weight: 600;
}
.pact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.ab {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--t2) !important;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border2) !important;
  background: transparent !important;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ab:hover {
  background: var(--bl) !important;
  border-color: var(--bm) !important;
  color: var(--blue) !important;
}
.ab.sf {
  color: var(--teal) !important;
  border-color: var(--tm) !important;
  background: var(--tl) !important;
}
.ab.sf:hover {
  background: var(--tl) !important;
  border-color: var(--teal) !important;
}
.ab i { font-size: 13px; }
.ab-right { margin-left: auto; }

/* -- PAGINATION -- */
.pagi {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}
.pg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  float: none !important;
  height: auto !important;
  width: auto !important;
}
.pg a,
.pg strong,
.pg em,
.pg span,
.pg label {
  height: 32px !important;
  min-width: 32px !important;
  width: auto !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  color: var(--t2) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  float: none !important;
  margin: 0 !important;
}
.pg a:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  background: var(--bl) !important;
}
.pg strong {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
  font-weight: 600 !important;
}
.pg em {
  font-style: normal !important;
  color: var(--t3) !important;
  background: transparent !important;
  border: none !important;
  cursor: default !important;
}
.pg label {
  display: none !important; /* Hide jump page inputs in premium styling */
}
.pg a.nxt::after,
.pg a.prev::after {
  display: none !important; /* Hide default triangle arrows */
}
.pg span.pgb {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  min-width: 0 !important;
}

/* Green Theme Overrides for Fid 6 */
.theme-green .pg strong {
  background: #3b9b66 !important;
  border-color: #3b9b66 !important;
}
.theme-green .pg a:hover {
  border-color: #3b9b66 !important;
  color: #3b9b66 !important;
  background: #F1F9E9 !important;
}



/* -- SIDEBAR BLOCKS -- */
.sb {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sbt {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t1);
}
.sbt i {
  font-size: 14px;
  color: #378ADD;
}
.bslot {
  background: var(--subtle);
  border: 1px dashed var(--border2);
  border-radius: var(--r);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}
.bslot:last-of-type {
  margin-bottom: 0;
}
.bslot:hover {
  border-color: #378ADD;
  background: var(--bl);
}
.bslot i, .bslot span {
  font-size: 12px;
  color: var(--t3);
}
.ta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ta:last-child {
  margin-bottom: 0;
}
.ta:hover {
  border-color: #378ADD;
  background: var(--bl);
}
.tatag {
  font-size: 9px;
  background: var(--bl);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 700;
}
.tatxt {
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'JetBrains Mono', monospace;
  color: var(--t1);
}
.sg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sbbox {
  background: var(--subtle);
  border-radius: var(--r);
  padding: 7px;
  text-align: center;
  border: 1px solid var(--border);
}
.sbn {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--t1);
}
.sbl {
  font-size: 10.5px;
  color: var(--t3);
  margin-top: 1px;
}
.onrow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: var(--gl);
  border-radius: var(--r);
  margin-bottom: 8px;
  border: 1px solid var(--gm);
}
.ondot {
  width: 6px;
  height: 6px;
  background: #1D9E75;
  border-radius: 50%;
  flex-shrink: 0;
}
.onlbl {
  font-size: 11px;
  color: var(--green);
}
.onnum {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-left: auto;
}
.tgbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--r);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 5px;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.15s ease;
}
.tgbtn:hover {
  opacity: 0.9;
  text-decoration: none;
}
.tgbtn.b {
  background: var(--bl) !important;
  color: var(--blue) !important;
  border-color: var(--bm) !important;
}
.tgbtn.p {
  background: var(--pl) !important;
  color: var(--purple) !important;
  border-color: var(--pm) !important;
}
.tgbtn.g {
  background: var(--gl) !important;
  color: var(--green) !important;
  border-color: var(--gm) !important;
}
.tgbtn div > div:first-child {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.tgbtn div > div:last-child {
  font-size: 10.5px;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.3;
}
.tgbtn i {
  font-size: 16px;
}
.riskbox {
  background: rgba(240, 184, 76, 0.1) !important;
  border-radius: var(--r) !important;
  padding: 9px 10px !important;
  font-size: 11.5px !important;
  color: #f0b84c !important;
  line-height: 1.6 !important;
  border: 1px solid rgba(240, 184, 76, 0.35) !important;
}

/* -- FRIEND LINKS -- */
.flwrap {
  max-width: var(--W);
  margin: 14px auto;
  padding: 0;
}
.flcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 13px 15px;
}
.flt {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t1);
}
.flt i {
  font-size: 14px;
  color: #378ADD;
}
.flg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flg li, .flg li img {
  display: inline-flex;
  vertical-align: middle;
}
.flg li a:not(.fla) {
  font-size: 13px;
  color: var(--t2);
  padding: 4px 12px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--subtle);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.flg li a:not(.fla):hover {
  border-color: #378ADD;
  color: var(--blue) !important;
  background: var(--bl);
}
.fla {
  font-size: 13px;
  color: var(--t3) !important;
  padding: 4px 12px;
  border-radius: var(--r);
  border: 1px dashed var(--border2);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.fla:hover {
  color: var(--blue) !important;
  border-color: var(--bm);
  background: var(--bl);
}

/* Sidebar ad partner list layout: one column */
.side .flg {
  flex-direction: column;
  align-items: stretch;
}
.side .flg li {
  display: flex;
  width: 100%;
}
.side .flg li a:not(.fla) {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
.side .flg li a.fla {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Styling for Logo/Image Friend Links (Discuz Group 0) */
.flg li.lk_logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--border) !important;
  background: var(--subtle) !important;
  font-size: 13px !important;
  color: var(--t2) !important;
  margin: 0 !important;
  height: 28px !important;
  transition: all 0.15s ease !important;
}
.flg li.lk_logo img {
  height: 16px !important;
  width: auto !important;
  max-width: 80px !important;
  object-fit: contain !important;
  margin: 0 !important;
  display: inline-block !important;
}
.flg li.lk_logo .lk_content {
  display: inline-flex !important;
  align-items: center !important;
}
.flg li.lk_logo h5 {
  margin: 0 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  display: inline-block !important;
}
.flg li.lk_logo h5 a {
  color: var(--t2) !important;
  text-decoration: none !important;
}
.flg li.lk_logo p {
  display: none !important; /* Hide long description to maintain horizontal bar layout */
}
.flg li.lk_logo:hover {
  border-color: #378ADD !important;
  background: var(--bl) !important;
}
.flg li.lk_logo:hover h5 a {
  color: var(--blue) !important;
}

/* -- FOOTER -- */
.foot {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 14px;
  width: 100%;
}
.fi {
  max-width: var(--W);
  margin: 0 auto;
  padding: 13px var(--P);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fcopy {
  font-size: 13px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ftg {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bl);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--bm);
  white-space: nowrap;
}
.ftg:hover {
  background: var(--bm);
}

/* -- POSTING EDITOR / LOGIN FORMS (Global UI compatibility overrides) -- */

/* editor containers */
#editorbox, .bm_h, .bm_c, .pns {
  border-color: var(--border) !important;
}
.pnpost {
  padding-top: 10px;
}

/* general buttons styling */
.pn, button, input[type="submit"] {
  background: var(--blue) !important;
  color: #fff !important;
  border: 1px solid var(--blue) !important;
  border-radius: var(--r) !important;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.pn:hover, button:hover, input[type="submit"]:hover {
  opacity: 0.9;
}
.pnc, .pn.pnc {
  background: #3b9b66 !important;
  border-color: #3b9b66 !important;
}

/* Form tables & elements */
/* 覆盖 Discuz 默认 .rfm{width:760px;margin:0 auto} —— 固定宽度会撑破自定义卡片布局 */
.rfm, .fwin .rfm, .nfl .f_c .rfm {
  width: auto !important;
  margin: 0 !important;
}
.rfm {
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 0 !important;
}
/* 覆盖默认 .p_tip/.p_chk 的绝对定位（width:390px 会飘出容器） */
.rfm .p_tip, .rfm .p_chk {
  position: static !important;
  width: auto !important;
  padding-left: 0 !important;
  background: transparent !important;
}
.rfm table {
  width: 100%;
}
.rfm th {
  width: 120px;
  text-align: right;
  padding-right: 15px;
  font-weight: 600;
  color: var(--t2);
}
.rfm td {
  padding: 5px 0;
}
.px, .p_fre, input[type="text"], input[type="password"], textarea, select {
  background: var(--card) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  color: var(--t1) !important;
  padding: 7px 10px !important;
  outline: none;
  font-size: 13.5px;
  transition: border-color 0.15s ease;
}
.px:focus, input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--blue) !important;
}

/* custom select styling */
.login_slct select {
  padding: 4px !important;
}

/* warning prompts showmessage */
.altw {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
  padding: 24px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.alert_right, .alert_error, .alert_info {
  background-position: 0 50% !important;
  padding-left: 50px !important;
}

/* Popups for Discuz AJAX windows */
.fwin, .m_c {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
  overflow: hidden !important;
}
.flb {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.flb em {
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 6px;
}
.flbc {
  color: var(--t3) !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.8;
  cursor: pointer;
}
.flbc:hover {
  opacity: 1;
}
.c {
  padding: 20px 24px !important;
  background: var(--card) !important;
}
.o.pns, .fwin .o {
  background: var(--card2) !important;
  border-top: 1px solid var(--border) !important;
  padding: 12px 20px !important;
}

/* -- ESCROW FLOW PAGE STYLES -- */
.hero {
  background: linear-gradient(135deg, #0D2E52 0%, #185FA5 60%, #1A7A60 100%);
  padding: 56px var(--P) 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-badge i {
  font-size: 13px;
  color: #6FE4C0;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: .5px;
  position: relative;
  z-index: 1;
}
.hero h1 span {
  color: #6FE4C0;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-btn-primary {
  background: #fff;
  color: var(--blue) !important;
  border: none;
  padding: 10px 26px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}
.hero-btn-primary:hover {
  opacity: .9;
}
.hero-btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 22px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,.2);
}

.page-body {
  max-width: 860px;
  margin: 36px auto;
  padding: 0 var(--P);
}

.fee-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.fee-icon {
  width: 44px;
  height: 44px;
  background: var(--bl);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fee-icon i {
  font-size: 22px;
  color: var(--blue);
}
.fee-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
}
.fee-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
}
.fee-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.fee-tag {
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--subtle);
  color: var(--t2);
}
.fee-tag.blue {
  background: var(--bl);
  border-color: var(--bm);
  color: var(--blue);
}
.fee-tag.green {
  background: var(--gl);
  border-color: var(--gm);
  color: var(--green);
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
}
.section-title p {
  font-size: 14px;
  color: var(--t3);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: linear-gradient(to bottom, var(--bm), var(--gm));
  z-index: 0;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--t3);
  gap: 1px;
}
.step-num .n {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
}
.step-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 16px 20px;
  flex: 1;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.step-body:hover {
  border-color: var(--bm);
  box-shadow: 0 2px 10px rgba(24,95,165,.08);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon.blue { background: var(--bl); }
.step-icon.blue i { color: var(--blue); font-size: 17px; }
.step-icon.green { background: var(--gl); }
.step-icon.green i { color: var(--green); font-size: 17px; }
.step-icon.purple { background: #F0F4FF; }
.step-icon.purple i { color: #3B5BDB; font-size: 17px; }
.step-icon.orange { background: #FFF7ED; }
.step-icon.orange i { color: #C2410C; font-size: 17px; }
.step-icon.teal { background: #F0FDFA; }
.step-icon.teal i { color: #0D9488; font-size: 17px; }
.step-icon.gold { background: #FFFBEB; }
.step-icon.gold i { color: #B45309; font-size: 17px; }
.step-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--t1);
}
.step-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  padding-left: 44px;
}

.done-banner {
  background: linear-gradient(135deg, var(--green) 0%, #1A7A60 100%);
  border-radius: var(--rlg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 36px;
}
.done-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.done-icon i {
  font-size: 26px;
  color: #fff;
}
.done-text {
  flex: 1;
}
.done-text h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.done-text p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.done-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.done-btn-w {
  background: #fff;
  color: var(--green) !important;
  border: none;
  padding: 8px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s;
}
.done-btn-w:hover {
  opacity: .9;
}
.done-btn-o {
  background: rgba(255,255,255,.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.done-btn-o:hover {
  background: rgba(255,255,255,.2);
}


/* Collapsing empty wp containers to avoid 500px blank gaps */
#wp.wp-content:empty,
#wp.wp-content:has(+ .hero) {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ── CUSTOM HEADER/FOOTER OVERRIDES ── */
.topbar{background:var(--card);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.tb{max-width:var(--W);margin:0 auto;padding:0 var(--P);height:60px;display:flex;align-items:center;border-bottom: 0px solid #E4E8EE !important;}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-right:20px;text-decoration:none !important;color:inherit !important}
.logo:hover{text-decoration:none !important;color:inherit !important}
.logo-ic{width:36px;height:36px;background:var(--blue);border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.logo-ic i{font-size:18px;color:#E6F1FB}
.logo-name{font-size:16px;font-weight:700;letter-spacing:.2px;white-space:nowrap;color:var(--t1)}
.logo-sub{font-size:11px;color:var(--t3);margin-top:1px;white-space:nowrap}
.sep{width:1px;height:22px;background:var(--border2);margin:0 16px;flex-shrink:0}
.nav{display:flex;align-items:center;gap:4px;flex-shrink:0}
.np{display:inline-flex !important;align-items:center !important;gap:6px !important;padding:8px 14px !important;border-radius:var(--r) !important;font-size:14px !important;font-weight:500 !important;cursor:pointer !important;white-space:nowrap !important;border:1px solid transparent !important;color:var(--t2) !important;transition:background .12s, border-color .12s !important;height:auto !important;line-height:1.2 !important}
.np i{font-size:15px !important}
.np.sup{background:transparent !important;border-color:transparent !important;color:var(--blue) !important}.np.sup:hover, .np.sup.active{background:#E6F1FB !important;border-color:#B5D4F4 !important;color:var(--blue) !important}
.np.dem{background:transparent !important;border-color:transparent !important;color:#3b9b66 !important}.np.dem:hover, .np.dem.active{background:#EAF3DE !important;border-color:#C0DD97 !important;color:#3b9b66 !important}
.np.gua{background:transparent !important;border-color:transparent !important;color:var(--green) !important;font-weight:500 !important}.np.gua:hover, .np.gua.active{background:var(--gl) !important;border-color:var(--gm) !important;color:var(--green) !important;font-weight:500 !important}
.tbr{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.lang{display:flex;align-items:stretch;background:var(--subtle);border:1px solid var(--border);border-radius:6px;overflow:hidden;height:28px}
.lb{padding:0 8px;font-size:12px;cursor:pointer;color:var(--t2);display:flex;align-items:center;justify-content:center;transition:all 0.2s;border-radius:0 !important}
.lb.on{background:var(--blue);color:#fff;font-weight:600}
.ld{width:1px;background:var(--border);height:16px}
.btn-l {
  border: 1px solid var(--border2) !important;
  background: var(--card2) !important;
  color: var(--t1) !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.12s !important;
  text-decoration: none !important;
}
.btn-l:hover {
  background: var(--border2) !important;
  color: var(--t1) !important;
  text-decoration: none !important;
}
.btn-p {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.btn-p:hover {
  opacity: .9 !important;
}

/* -- NOTICE (Announcements) -- */
.ann-bar {
  background: var(--navy);
}
.ann-inner {
  max-width: var(--W);
  margin: 0 auto;
  padding: 7px var(--P);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #B5D4F4;
}
.ann-inner a {
  color: #85B7EB;
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FOOTER LINKS ── */
.flwrap{max-width:var(--W);margin:14px auto;padding:0 var(--P)}
.flcard{background:var(--card);border:1px solid var(--border);border-radius:var(--rlg);padding:13px 15px}
.flt{font-size:13px;font-weight:600;margin-bottom:10px;display:flex;align-items:center;gap:5px;color:var(--t1)}
.flt i{font-size:14px;color:#378ADD}
.flg{display:flex;flex-wrap:wrap;gap:6px}
.fli{font-size:12px;color:var(--t2);padding:4px 12px;border-radius:var(--r);border:1px solid var(--border);cursor:pointer;background:var(--subtle);text-decoration:none !important}
.fli:hover{border-color:#378ADD;color:var(--blue);background:var(--bl)}
.fla{font-size:12px;color:var(--t3);padding:4px 12px;border-radius:var(--r);border:1px dashed var(--border2);cursor:pointer;text-decoration:none !important}
.fla:hover{border-color:#378ADD;color:var(--blue)}

/* ── FOOTER ── */
.foot{background:var(--card);border-top:1px solid var(--border);margin-top:6px}
.fi{max-width:var(--W);margin:0 auto;padding:13px var(--P);display:flex;align-items:center;justify-content:space-between;gap:12px}
.fcopy{font-size:12px;color:var(--t3);display:flex;align-items:center;gap:6px}
.ftg{display:flex;align-items:center;gap:6px;background:var(--bl);color:var(--blue);padding:5px 14px;border-radius:var(--r);font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--bm);white-space:nowrap;text-decoration:none !important}
.ftg:hover{background:var(--bm)}

/* -- BREADCRUMB -- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); margin-bottom: 12px; }
.breadcrumb a { color: var(--t2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i { font-size: 11px; }

/* -- ANNOUNCEMENT PAGE -- */
.ano-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--rlg); overflow: hidden; display: flex; min-height: 380px; align-items: stretch; }
.ano-side { width: 150px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--card); }
.ano-side-title { font-size: 14px; font-weight: 700; color: var(--t1); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ano-nav-item { padding: 9px 16px; font-size: 13px; color: var(--t2); font-weight: 500; cursor: pointer; text-decoration: none; display: block; border-left: 3px solid transparent; }
.ano-nav-item:hover { background: var(--subtle); color: var(--blue); }
.ano-nav-item.on { color: var(--blue); font-weight: 600; background: var(--bl); border-left-color: var(--blue); }
.ano-nav-year { padding: 14px 16px 6px; font-size: 11.5px; color: var(--t3); font-weight: 500; }
.ano-main { flex: 1; padding: 22px 24px; min-width: 0; }
.ano-list { display: flex; flex-direction: column; gap: 15px; }
.ano-item { border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.ano-item:last-child { border-bottom: none; padding-bottom: 0; }
.ano-item-head { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ano-item-title { font-size: 15px; font-weight: 700; color: var(--t1); line-height: 1.6; transition: color 0.2s; }
.ano-item-head:hover .ano-item-title { color: var(--blue); }
.ano-item-title a { color: inherit; }
.ano-item-title a:hover { color: var(--blue); }
.ano-item-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ano-item-meta span { font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 5px; }
.ano-item-meta span i { font-size: 13px; }
.ano-item-body { display: none; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--t2); line-height: 1.8; overflow: hidden; word-wrap: break-word; }
.ano-item-body img { max-width: 100%; border-radius: var(--r); }
.ano-empty { text-align: center; color: var(--t3); padding: 40px 0; font-size: 13px; }

/* -- FORUM DISPLAY LAYOUT CARD & NAV STYLES -- */
.sec-head-card{background:var(--card) !important;border:1px solid var(--border) !important;border-radius:var(--rlg) !important;padding:16px 18px !important;margin-bottom:10px !important}
.sec-head-top{display:flex !important;align-items:flex-start !important;justify-content:space-between !important;gap:14px !important}
.sec-head-l{display:flex !important;align-items:flex-start !important;gap:10px !important}
.sec-head-ic{width:36px !important;height:36px !important;border-radius:9px !important;background:var(--bl) !important;display:flex !important;align-items:center !important;justify-content:center !important;flex-shrink:0 !important;margin-top:1px !important}
.sec-head-ic i{font-size:18px !important;color:var(--blue) !important}
.sec-head-ic.dem{background:var(--gl) !important}
.sec-head-ic.dem i{color:var(--green) !important}
.sec-head-ic.news{background:var(--cl) !important}
.sec-head-ic.news i{color:var(--cyan) !important}
.sec-head-title{font-size:19px !important;font-weight:700 !important;color:var(--t1) !important;line-height:1.3 !important}
.sec-head-desc{font-size:12.5px !important;color:var(--t3) !important;margin-top:4px !important;line-height:1.6 !important}
.sec-head-btn{display:inline-flex !important;align-items:center !important;gap:6px !important;background:var(--blue) !important;color:#fff !important;border:none !important;padding:9px 18px !important;border-radius:var(--r) !important;font-size:13.5px !important;font-weight:600 !important;cursor:pointer !important;flex-shrink:0 !important;white-space:nowrap !important;text-decoration:none !important}
.sec-head-btn:hover{background:#3d8fd4 !important;opacity:0.9 !important}
.sec-head-btn.dem{background:var(--green-soft) !important}
.sec-head-btn.dem:hover{background:#329058 !important}
.sec-head-btn.news{background:var(--cyan) !important;color:#0a1628 !important}
.sec-head-btn.news:hover{background:#1bb8d1 !important}
.sec-head-btn i{font-size:14px !important}
.sec-rules{border-top:1px solid var(--border) !important;margin-top:14px !important;padding-top:13px !important}
.sec-rules-t{display:flex !important;align-items:center !important;gap:6px !important;font-size:12.5px !important;font-weight:700 !important;color:#f0b84c !important;margin-bottom:8px !important}
.sec-rules-t i{font-size:14px !important}
.sec-rules-list{list-style:none !important;counter-reset:rule-counter !important;display:block !important;padding:0 !important;margin:0 !important;font-size:12px !important;color:var(--t2) !important;line-height:1.6 !important;font-weight:500 !important}
.sec-rules-list *{font-size:12px !important;color:var(--t2) !important;line-height:1.6 !important;font-weight:500 !important}
.sec-rules-list p,.sec-rules-list div{margin:0 !important;padding:0 !important}
.sec-rules-list ol,.sec-rules-list ul{list-style:none !important;counter-reset:rule-counter !important;display:flex !important;flex-direction:column !important;gap:5px !important;margin:0 !important;padding:0 !important}
.sec-rules-list li{counter-increment:rule-counter !important;font-size:12px !important;color:var(--t2) !important;line-height:1.6 !important;padding-left:20px !important;position:relative !important;margin:0 !important}
.sec-rules-list li::before{content:counter(rule-counter)"." !important;position:absolute !important;left:0 !important;color:var(--t3) !important;font-weight:600 !important}
.sec-rules-list b,.sec-rules-list strong{color:var(--t1) !important;font-weight:700 !important}
.sec-rules-list .rule-contact-highlight{display:inline !important;color:#fff !important;font-weight:700 !important;white-space:normal !important}
.btn-post-main{background:var(--blue);color:#fff;border:none;padding:8px 18px;border-radius:var(--r);font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:5px;white-space:nowrap;flex-shrink:0;transition:opacity 0.15s ease}
.btn-post-main:hover{opacity:0.9}

.forum-nav{background:var(--card);border:1px solid var(--border);border-radius:var(--rlg);padding:10px 14px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cat-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.cat-tab{padding:4px 12px;border-radius:14px;font-size:12px;color:var(--t2);cursor:pointer;border:1px solid var(--border);background:var(--subtle);text-decoration:none !important;transition:all 0.15s ease}
.cat-tab:hover{border-color:var(--blue);color:var(--blue);background:var(--bl)}
.cat-tab.on{background:var(--blue) !important;color:#fff !important;border-color:var(--blue) !important;font-weight:600 !important}
.cat-tab .cnt{font-size:10px;opacity:.7;margin-left:3px}
.sort-group{display:flex;align-items:center;gap:6px}

/* Green Theme Overrides (Demand Market / fid=6) */
.theme-green .forum-title {
  color: #3b9b66 !important;
}
.theme-green .forum-title i {
  color: #3b9b66 !important;
}
.theme-green .btn-post-main {
  background: #3b9b66 !important;
}
.theme-green.cat-tab:hover, .theme-green .cat-tab:hover {
  border-color: #3b9b66 !important;
  color: #3b9b66 !important;
  background: #EAF3DE !important;
}
.theme-green.cat-tab.on, .theme-green .cat-tab.on {
  background: #3b9b66 !important;
  border-color: #3b9b66 !important;
  color: #fff !important;
}

/* ── QUICK POST MODAL BEAUTIFICATION ── */

/* Modal Outer Frame */
.f_c {
  border-radius: var(--rlg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  background: var(--card) !important;
  height: auto !important;
}

/* Modal Title bar */
.flb {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: auto !important;
}
.flb em {
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #fff !important;
  font-style: normal !important;
}
.flbc {
  text-indent: -9999px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background: none !important;
  border-radius: 50% !important;
  transition: background-color 0.15s ease !important;
}
.flbc * {
  display: none !important;
}
.flbc::before, .flbc::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 2px !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  margin-left: -6px !important;
  margin-top: -1px !important;
  transition: background-color 0.15s ease !important;
}
.flbc::before {
  transform: rotate(45deg) !important;
}
.flbc::after {
  transform: rotate(-45deg) !important;
}
.flbc:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.flbc:hover::before, .flbc:hover::after {
  background-color: #fff !important;
}

/* Simulated Select Dropdown */
.ftid a {
  height: 38px !important;
  line-height: 36px !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  background-color: var(--card) !important;
  color: var(--t1) !important;
  padding: 0 32px 0 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 10px) 50% !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}
.ftid a:hover, .ftid a:focus {
  border-color: var(--blue) !important;
  background-color: var(--subtle) !important;
  text-decoration: none !important;
}

/* Dropdown list overlay */
.sltm {
  border: 1px solid var(--border2) !important;
  background-color: var(--card) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  border-radius: var(--r) !important;
  padding: 4px 0 !important;
}
.sltm li {
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  color: var(--t2) !important;
  transition: background 0.15s, color 0.15s !important;
}
.sltm li:hover {
  background-color: var(--subtle) !important;
  color: var(--blue) !important;
}
.sltm li.current {
  background-color: var(--bl) !important;
  color: var(--blue) !important;
  font-weight: 600 !important;
}

/* Subject line layout */
.pbt {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  float: none !important;
}
.pbt .ftid {
  margin-right: 0 !important;
  float: none !important;
}
.pbt span {
  flex: 1 !important;
  float: none !important;
  display: block !important;
}
.pbt span input#subject {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  background: var(--card) !important;
  color: var(--t1) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}
.pbt span input#subject:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 2px var(--bl) !important;
}

/* Simple Editor Outer Box */
.tedt {
  border: 1px solid var(--border2) !important;
  border-radius: var(--rlg) !important;
  overflow: hidden !important;
  background: var(--card) !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  transition: border-color 0.15s ease !important;
}
.tedt:focus-within {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 2px var(--bl) !important;
}

/* Editor Toolbar */
.tedt .bar {
  background: var(--subtle) !important;
  border-bottom: 1px solid var(--border2) !important;
  padding: 8px 12px !important;
  height: auto !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.tedt .bar .z {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  float: none !important;
}
.tedt .bar .y {
  float: none !important;
}
/* Target only editor action buttons with ID ending in btn_* */
.tedt .bar a[id*="btn_"] {
  display: block !important;
  float: left !important;
  width: 20px !important;
  height: 20px !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
  margin-right: 4px !important;
  box-sizing: content-box !important;
}
.tedt .bar a[id*="btn_"]:hover {
  background-color: var(--border) !important;
  border-color: var(--border2) !important;
}

/* Style Advanced Mode link specifically */
.tedt .bar .y a {
  display: inline-block !important;
  float: right !important;
  width: auto !important;
  height: auto !important;
  padding: 4px 8px !important;
  border-radius: var(--r) !important;
  font-size: 12px !important;
  color: var(--t2) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-indent: 0 !important;
  overflow: visible !important;
  line-height: normal !important;
}
.tedt .bar .y a:hover {
  background: var(--bl) !important;
  color: var(--blue) !important;
  border-color: transparent !important;
}

/* Textarea area */
.tedt .area {
  padding: 12px !important;
  background: var(--card) !important;
}
.tedt .pt {
  width: 100% !important;
  height: 150px !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  color: var(--t1) !important;
  background: transparent !important;
  outline: none !important;
  resize: vertical !important;
  padding: 0 !important;
  line-height: 1.6 !important;
}

/* Verification Code Section */
#seccheck_newthread, #seccheck_reply {
  margin-bottom: 12px !important;
  font-size: 13px !important;
  color: var(--t2) !important;
}
#seccheck_newthread input, #seccheck_reply input {
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  outline: none !important;
  vertical-align: middle !important;
}
#seccheck_newthread img, #seccheck_reply img {
  vertical-align: middle !important;
  border-radius: var(--r) !important;
  cursor: pointer !important;
}

.dts-reply-foot,
.comment-submit-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 16px 16px !important;
  margin-top: 0 !important;
}
.comment-submit-row {
  padding: 0 !important;
  margin-top: 12px !important;
}
.dts-seccheck-wrap {
  min-width: 280px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--t2) !important;
  font-size: 12.5px !important;
}
.dts-seccheck-wrap span[id^="seccode_c"] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.dts-seccheck-wrap span[id^="seccode"][onclick] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.dts-seccheck-wrap .dts-inline-seccode {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
#seccheck_fastpost .dts-inline-seccode {
  justify-content: center !important;
  padding: 2px !important;
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  color: transparent !important;
  overflow: hidden !important;
}
#seccheck_fastpost .dts-inline-seccode img {
  display: block !important;
  border: 0 !important;
  border-radius: calc(var(--r) - 2px) !important;
  background: var(--subtle) !important;
}
#seccheck_fastpost div[id^="seccode"][id$="_menu"] {
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  color: transparent !important;
  box-shadow: none !important;
  padding: 2px !important;
}
.dts-seccheck-wrap .dts-inline-seccode br {
  display: none !important;
}
.dts-seccheck-wrap .mtm {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.dts-seccheck-wrap span[id^="seccode_"],
.dts-seccheck-wrap span[id^="secqaa_"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.dts-seccheck-wrap input[name="seccodeverify"],
.dts-seccheck-wrap input[name="secanswer"] {
  width: 92px !important;
  height: 34px !important;
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  color: var(--t1) !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.dts-seccheck-wrap input[name="seccodeverify"]:focus,
.dts-seccheck-wrap input[name="secanswer"]:focus {
  border-color: var(--blue) !important;
}
.dts-seccheck-wrap img,
.dts-seccheck-wrap .seccodeimg {
  height: 34px !important;
  min-width: 88px !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  cursor: pointer !important;
  background: var(--subtle) !important;
  vertical-align: middle !important;
}
.dts-seccheck-wrap a {
  color: var(--blue) !important;
  font-size: 12px !important;
  text-decoration: none !important;
}
.reply-send-btn,
.comment-submit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 78px !important;
  height: 42px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: var(--r) !important;
  background: var(--detail-theme, var(--blue)) !important;
  color: #fff !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}
.comment-submit-btn {
  background: var(--blue) !important;
}
.reply-send-btn:hover,
.comment-submit-btn:hover {
  opacity: .9 !important;
}
.reply-send-btn i,
.comment-submit-btn i {
  font-size: 16px !important;
}

/* Bottom Bar */
.f_c .o.pns, #moreconf, .m_c .o {
  background: var(--subtle) !important;
  border-top: 1px solid var(--border) !important;
  padding: 14px 20px 20px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 0 0 var(--rlg) var(--rlg) !important;
  height: auto !important;
  box-sizing: border-box !important;
}
.f_c .o.pns button, #moreconf button {
  float: none !important;
  margin: 0 !important;
}
.f_c .o.pns a, #moreconf a {
  float: none !important;
  margin: 0 !important;
  font-size: 12.5px !important;
  color: var(--t3) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.f_c .o.pns a:hover, #moreconf a:hover {
  color: var(--blue) !important;
}

/* Hide credits rule link */
#moreconf a[href*="ac=credit"] {
  display: none !important;
}

/* Default and Supply Market submit button (Blue) */
.f_c #moreconf button#postsubmit, #moreconf #postsubmit {
  height: 38px !important;
  padding: 0 24px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: var(--r) !important;
  cursor: pointer !important;
  border: none !important;
  color: #fff !important;
  background: var(--blue) !important;
  box-shadow: 0 2px 4px rgba(24,95,165,0.15) !important;
  transition: opacity 0.15s ease !important;
  margin: 0 !important;
  float: none !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.f_c #moreconf button#postsubmit:hover, #moreconf #postsubmit:hover {
  opacity: 0.9 !important;
}
.f_c #moreconf button#postsubmit span, #moreconf #postsubmit span {
  display: inline-block !important;
  padding: 0 !important;
  line-height: normal !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

/* Green theme modal and button styling overrides when on Demand Market (fid=6) */
.theme-green .flb {
  background: #3b9b66 !important;
}
.theme-green #moreconf button#postsubmit,
.theme-green .f_c #moreconf button#postsubmit {
  background: #3b9b66 !important;
  box-shadow: 0 2px 4px rgba(59,155,102,0.15) !important;
}
#postform[action*="fid=6"] #moreconf button#postsubmit,
#postform[action*="fid=6"] .f_c #moreconf button#postsubmit {
  background: #3b9b66 !important;
  box-shadow: 0 2px 4px rgba(59,155,102,0.15) !important;
}


/* ==========================================
   Advanced Posting Page (post.htm) Redesign
   ========================================== */
.post-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
  padding: 30px !important;
  margin: 14px auto !important;
  max-width: calc(var(--W) - 2 * var(--P)) !important;
  width: 100% !important;
}

.post-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--t1) !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 16px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.post-card .rfm {
  margin: 0 !important;
  width: 100% !important;
  border-bottom: none !important;
  padding: 12px 0 !important;
}

.post-card .rfm th {
  width: 100px !important;
  font-size: 14px !important;
  color: var(--t2) !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding-right: 16px !important;
  vertical-align: middle !important;
}

.post-card .rfm td {
  padding: 0 !important;
}

.post-card input[type="text"]#subject {
  height: 42px !important;
  border: 1px solid var(--border2) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: var(--t1) !important;
  padding: 10px 16px !important;
  width: 100% !important;
  max-width: 600px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
}

.post-card input[type="text"]#subject:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12) !important;
  background: var(--subtle) !important;
}

.post-card.theme-green input[type="text"]#subject:focus {
  border-color: #3b9b66 !important;
  box-shadow: 0 0 0 3px rgba(59, 155, 102, 0.12) !important;
}

.post-card select#typeid {
  height: 42px !important;
  border: 1px solid var(--border2) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: var(--t1) !important;
  padding: 8px 16px !important;
  width: 180px !important;
  transition: all 0.2s ease !important;
  background: var(--card) !important;
  cursor: pointer !important;
}

.post-card select#typeid:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12) !important;
}

.post-card.theme-green select#typeid:focus {
  border-color: #3b9b66 !important;
  box-shadow: 0 0 0 3px rgba(59, 155, 102, 0.12) !important;
}

/* Editor Styling Overrides */
.post-card .edt {
  border: 1px solid var(--border2) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  margin: 20px 0 !important;
  background: var(--card) !important;
}

.post-card .edt .bar {
  background: var(--subtle) !important;
  border-bottom: 1px solid var(--border2) !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  height: auto !important;
  line-height: normal !important;
}

.post-card .edt .bar .btn {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  float: none !important;
}

.post-card .edt .bar .b1r,
.post-card .edt .bar .b2r {
  border-right: 1px solid var(--border) !important;
  padding-right: 8px !important;
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  float: none !important;
  height: 24px !important;
}

.post-card .edt .bar a {
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.post-card .edt .bar a:hover {
  background-color: var(--border) !important;
  border-color: var(--border2) !important;
}

.post-card .edt .bar a.dp {
  background: var(--card2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 4px !important;
  padding: 2px 18px 2px 8px !important;
  font-size: 12px !important;
  color: var(--t2) !important;
  height: 22px !important;
  line-height: 18px !important;
}

.post-card .edt .bar a.dp:hover {
  border-color: var(--blue) !important;
}

.post-card.theme-green .edt .bar a.dp:hover {
  border-color: #3b9b66 !important;
}

.post-card .edt .area {
  padding: 0 !important;
  background: var(--card) !important;
}

.post-card .edt .pt,
.post-card .edt iframe {
  padding: 16px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--t1) !important;
  background: var(--card) !important;
  min-height: 350px !important;
  border: none !important;
  outline: none !important;
}

/* Editor Footer Status Bar */
.post-card .bbar {
  background: var(--subtle) !important;
  border-top: 1px solid var(--border2) !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  color: var(--t2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.post-card .bbar a {
  color: var(--blue) !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.post-card.theme-green .bbar a {
  color: #3b9b66 !important;
}

.post-card .bbar a:hover {
  opacity: 0.8 !important;
}

.post-card .bbar em {
  margin-right: auto !important;
  font-style: normal !important;
  color: var(--t3) !important;
}

/* Captcha Verification Section */
.post-card .seccode,
.post-card .secqaa,
.post-card span[id^="seccode_"],
.post-card span[id^="secqaa_"] {
  font-size: 14px !important;
  color: var(--t2) !important;
  margin: 16px 0 !important;
  display: inline-block !important;
}

.post-card span[id^="seccode_"] input,
.post-card span[id^="secqaa_"] input {
  height: 38px !important;
  border: 1px solid var(--border2) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  outline: none !important;
  font-size: 14px !important;
  color: var(--t1) !important;
  transition: all 0.2s ease !important;
  width: 100px !important;
  background: var(--card2) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.post-card span[id^="seccode_"] input:focus,
.post-card span[id^="secqaa_"] input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12) !important;
}

.post-card.theme-green span[id^="seccode_"] input:focus,
.post-card.theme-green span[id^="secqaa_"] input:focus {
  border-color: #3b9b66 !important;
  box-shadow: 0 0 0 3px rgba(59, 155, 102, 0.12) !important;
}

.post-card span[id^="seccode_"] img,
.post-card span[id^="secqaa_"] img {
  border-radius: 4px !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  display: inline-block !important;
}

.post-card span[id^="seccode_"] a,
.post-card span[id^="secqaa_"] a {
  color: var(--blue) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-left: 8px !important;
}

.post-card.theme-green span[id^="seccode_"] a,
.post-card.theme-green span[id^="secqaa_"] a {
  color: #3b9b66 !important;
}

/* Action buttons styling */
.post-card .post-actions {
  display: flex !important;
  gap: 12px !important;
  margin-top: 24px !important;
  padding-left: 100px !important;
}

.post-card .post-actions button {
  height: 42px !important;
  line-height: 40px !important;
  padding: 0 30px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
  cursor: pointer !important;
}

.post-card .post-actions button#postsubmit {
  background: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  color: #fff !important;
}

.post-card .post-actions button#postsubmit:hover {
  opacity: 0.95 !important;
  box-shadow: 0 4px 12px rgba(24, 95, 165, 0.2) !important;
}

.post-card.theme-green .post-actions button#postsubmit {
  background: #3b9b66 !important;
  border-color: #3b9b66 !important;
}

.post-card.theme-green .post-actions button#postsubmit:hover {
  box-shadow: 0 4px 12px rgba(59, 155, 102, 0.2) !important;
}

.post-card .post-actions button.btn-draft {
  background: #E2E8F0 !important;
  border: 1px solid #E2E8F0 !important;
  color: var(--t2) !important;
}

.post-card .post-actions button.btn-draft:hover {
  background: #CBD5E1 !important;
  color: var(--t1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}

/* --- NAVIGATION BUTTONS COLOR STATE OVERRIDES --- */
/* Supply Market (Blue theme) */
.np.sup {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--blue) !important;
}
.np.sup:hover, .np.sup.active {
  background: #E6F1FB !important;
  border-color: #B5D4F4 !important;
  color: var(--blue) !important;
}

/* Demand Market (Green theme) */
.np.dem {
  background: transparent !important;
  border-color: transparent !important;
  color: #3b9b66 !important;
}
.np.dem:hover, .np.dem.active {
  background: #EAF3DE !important;
  border-color: #C0DD97 !important;
  color: #3b9b66 !important;
}

/* Escrow (Teal/Green theme) */
.np.gua {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--green) !important;
  font-weight: 500 !important;
}
.np.gua:hover, .np.gua.active {
  background: var(--gl) !important;
  border-color: var(--gm) !important;
  color: var(--green) !important;
  font-weight: 500 !important;
}

/* --- QUICK POST BUTTON CUSTOM CLASS --- */
/* Solid blue background, white text, and clean alignment */
.btn-quick-post {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
  transition: opacity 0.15s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  line-height: 22px !important;
}

.btn-quick-post:hover {
  opacity: 0.9 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.btn-quick-post i {
  font-family: "tabler-icons" !important;
  speak: none !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-size: 14px !important;
}

/* --- LOGIN & REGISTER HEADER BUTTONS --- */
.btn-login {
  border: 1px solid var(--border2) !important;
  background: var(--card2) !important;
  color: var(--t1) !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.12s !important;
  text-decoration: none !important;
  line-height: 20px !important;
}
.btn-login:hover {
  background: var(--border2) !important;
  border-color: #9CA3AF !important;
  color: var(--t1) !important;
  text-decoration: none !important;
}

.btn-register {
  color: #3b9b66 !important;
  border: 1px solid #3b9b66 !important;
  background: #EAF3DE !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.12s, color 0.12s !important;
  text-decoration: none !important;
  line-height: 20px !important;
}
.btn-register:hover {
  background: #F3F9EE !important;
  color: #3b9b66 !important;
  text-decoration: none !important;
}

.btn-logout {
  border: 1px solid var(--red) !important;
  background: var(--card2) !important;
  color: var(--red) !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.12s !important;
  text-decoration: none !important;
  line-height: 20px !important;
}
.btn-logout:hover {
  background: rgba(240, 98, 94, 0.1) !important;
  color: var(--red) !important;
  text-decoration: none !important;
}




.ab i { font-size: 13px !important; }

/* --- EDITOR VISIBILITY FALLBACK --- */
/* Safety net to prevent rich text editor from getting stuck on loading placeholder when style cache is cleared */
.edt[id$="_body"] {
  display: block !important;
}
div[id$="_body_loading"] {
  display: none !important;
}

/* --- SIMULATED SELECT CONTROLS & DROPDOWN MENUS --- */
/* Override dynamic inline widths and force self-adaptive widths to prevent text truncation */
a[id$="_ctrl"] {
  width: auto !important;
  min-width: 160px !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}
.sltm {
  width: auto !important;
  min-width: 160px !important;
  box-sizing: border-box !important;
}
.sltm li {
  white-space: nowrap !important;
}

/* Align post list cards on sub-forum and homepages */
.pg_forumdisplay .plist, .pg_index .plist {
  margin-right: 0 !important;
}
.pg_forumdisplay .plist .pcard, .pg_index .plist .pcard {
  margin-right: 0 !important;
}

/* --- SEARCH PAGE REDESIGN & SIDEBAR WIDGET --- */
.sb-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
  background: var(--card);
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.sb-search-icon {
  font-size: 13px;
  color: var(--t3);
  margin-left: 6px;
  flex-shrink: 0;
  font-weight: 400;
}
input[type="text"].sb-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 5px 0 !important;
  font-size: 12px !important;
  color: var(--t1) !important;
}
.sb-search-btn {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.sb-search-btn:hover {
  background: #2b72bd !important;
}

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.search-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.search-tabs {
  display: flex;
  gap: 24px;
}
.search-tab {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none !important;
  padding-bottom: 12px;
  margin-bottom: -13px;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.search-tab:hover {
  color: var(--blue);
}
.search-tab.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-dropdown {
  position: relative;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 12.5px;
  color: #1E40AF;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.quick-dropdown:hover {
  background: #DBEAFE;
}
.quick-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 6px 0;
  width: 150px;
  z-index: 1000;
}
.quick-dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--t2);
  text-decoration: none !important;
  transition: background 0.1s;
}
.quick-dropdown-menu li a:hover {
  background: var(--subtle);
  color: var(--blue);
}
.adv-toggle-btn {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--t2);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.adv-toggle-btn:hover {
  background: var(--border);
  color: var(--t1);
}
.adv-toggle-btn.active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}
.search-input-row {
  display: flex;
  gap: 12px;
}
.search-input-container {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px 12px;
  background: var(--card);
  gap: 8px;
}
.search-magnifier {
  font-size: 15px;
  color: var(--t3);
  flex-shrink: 0;
}
.search-main-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  color: var(--t1) !important;
  width: 100%;
}
.search-submit-btn {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  width: 50px;
  border-radius: var(--r) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.search-submit-btn:hover {
  background: #2b72bd !important;
}
.adv-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.adv-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.adv-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adv-form-row {
  display: flex;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--subtle);
}
.adv-form-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.adv-label {
  width: 80px;
  font-size: 13px;
  color: var(--t2);
  flex-shrink: 0;
}
.adv-field {
  flex: 1;
  min-width: 0;
}
.adv-input {
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--t1);
  background: var(--card);
  outline: none;
}
.adv-input:focus {
  border-color: var(--blue);
}
.flex-radio {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--t2);
}
.flex-radio label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.flex-align {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--t2);
}
.flex-align label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.adv-select {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--t1);
  background: var(--card);
  outline: none;
  cursor: pointer;
}
.adv-listbox {
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px;
  font-size: 13px;
  color: var(--t1);
  background: var(--card);
  outline: none;
}
.adv-hint {
  font-size: 11px;
  color: var(--t3);
  margin-top: 6px;
}
.adv-submit-btn {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.adv-submit-btn:hover {
  background: #2b72bd !important;
}
.adv-reset-btn {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--t2) !important;
  padding: 7px 20px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.adv-reset-btn:hover {
  background: var(--subtle) !important;
  color: var(--t1) !important;
}
.result-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 14px;
  padding-left: 4px;
}
.result-title span {
  color: #EF4444;
}
.result-card-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 8px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.result-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--subtle);
}
.result-item:last-of-type {
  border-bottom: none;
}
.result-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.result-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--t1);
  text-decoration: none !important;
}
.result-item-title:hover {
  color: var(--blue);
}
.result-item-meta-top {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 8px;
}
.result-item-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 10px;
  word-break: break-all;
}
.result-item-meta-bottom {
  font-size: 12px;
  color: var(--t3);
  display: flex;
  align-items: center;
}
.result-item-meta-bottom a {
  color: var(--t3);
  text-decoration: none !important;
}
.result-item-meta-bottom a:hover {
  color: var(--blue);
}
.result-item-forum {
  color: var(--blue) !important;
}
.result-item-desc em {
  color: #EF4444 !important;
  font-style: normal !important;
  font-weight: bold !important;
}
.result-item-title em {
  color: #EF4444 !important;
  font-style: normal !important;
  font-weight: bold !important;
}

/* Login Modal Top Position */
#fwin_login { top: 93px !important; }

/* Settings Layout Sidebar Placement (Flex Order) */
#ct.ct2_a {
    display: flex !important;
    gap: 24px !important;
    flex-direction: row !important;
}
#ct.ct2_a .appl {
    order: -1 !important; /* Sidebar to the left */
}

/* Rich Editor Signature box */
.tedt {
    border: 1px solid var(--border, #E4E8EE) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--card, #ffffff) !important;
    width: 100% !important;
    max-width: 650px !important;
}
.tedt .bar {
    background: var(--subtle, #F7F9FB) !important;
    border-bottom: 1px solid var(--border, #E4E8EE) !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: auto !important;
    line-height: 1 !important;
}
.tedt .area {
    padding: 0 !important;
}
.tedt .area textarea {
    border: none !important;
    border-radius: 0 !important;
    padding: 12px !important;
    font-size: 14px !important;
    color: var(--t1, #111827) !important;
    resize: vertical !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 120px !important;
    background: var(--card, #ffffff) !important;
}
.tedt .area textarea:focus {
    box-shadow: none !important;
}

/* Global Dialog Popups styling (Add Friend / Private Message / Pokes) */
.f_c {
    background: var(--card, #ffffff) !important;
    border: 1px solid var(--border, #E4E8EE) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    padding: 0 !important;
}
h3.flb {
    background: var(--blue) !important;
    padding: 16px 24px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.5 !important;
}
h3.flb em {
    font-style: normal !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
h3.flb .flbc {
    background: none !important;
    border: none !important;
}
/* Inputs inside Dialogs & Settings Forms */
.f_c input[type="text"],
.f_c input[type="password"],
.f_c textarea,
.f_c select,
#ct.ct2_a input[type="text"],
#ct.ct2_a input[type="password"],
#ct.ct2_a textarea,
#ct.ct2_a select {
    background: var(--card, #ffffff) !important;
    border: 1px solid var(--border, #E4E8EE) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: var(--t1, #111827) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}
.f_c input[type="text"]:focus,
.f_c input[type="password"]:focus,
.f_c textarea:focus,
.f_c select:focus,
#ct.ct2_a input[type="text"]:focus,
#ct.ct2_a input[type="password"]:focus,
#ct.ct2_a textarea:focus,
#ct.ct2_a select:focus {
    border-color: var(--blue, #185FA5) !important;
    box-shadow: 0 0 0 3px var(--bl, #E6F1FB) !important;
}
/* Buttons inside Dialogs & Settings Forms */
.f_c button.pn,
.f_c button[type="submit"],
.f_c input[type="submit"],
.f_c input[type="button"],
#ct.ct2_a button.pn,
#ct.ct2_a button[type="submit"],
#ct.ct2_a input[type="submit"],
#ct.ct2_a input[type="button"] {
    background: var(--blue, #185FA5) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.f_c button.pn:hover,
.f_c button[type="submit"]:hover,
.f_c input[type="submit"]:hover,
#ct.ct2_a button.pn:hover,
#ct.ct2_a button[type="submit"]:hover,
#ct.ct2_a input[type="submit"]:hover {
    background: #114b82 !important;
}
.f_c button.pn.pnc, .f_c button.pnc {
    background: var(--blue, #185FA5) !important;
}

/* Editor & Dialog notices contrast fix */
.p_pof .notice,
.p_pof .notice.upnf,
.p_pof p.notice {
    background: var(--bl, #E6F1FB) !important;
    border: 1px solid var(--bm, #B5D4F4) !important;
    color: var(--t2, #4B5563) !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    line-height: 1.6 !important;
    font-size: 12px !important;
}
.p_pof .notice .xi1,
.p_pof .notice.upnf .xi1 {
    color: var(--red, #B91C1C) !important;
    font-weight: 600 !important;
}
.p_pof .notice a,
.p_pof .notice.upnf a {
    color: var(--blue, #185FA5) !important;
    text-decoration: underline !important;
}

/* === 编辑器「网络图片」插入弹窗输入框美化 === */
[id$="_image_menu"] .popupfix th { font-size:12px; color:var(--t3); font-weight:500; padding-bottom:6px !important; text-align:left; }
[id$="_image_param_1"] {
	height:40px !important; line-height:40px; box-sizing:border-box !important;
	width:100% !important; padding:0 14px !important;
	border:1px solid var(--border2) !important; border-radius:8px !important;
	font-size:13.5px !important; color:var(--t1) !important; background:var(--card) !important; outline:none;
	transition:border-color .15s, box-shadow .15s;
}
[id$="_image_param_2"], [id$="_image_param_3"] {
	height:40px !important; box-sizing:border-box !important; width:100% !important;
	padding:0 10px !important; text-align:center;
	border:1px solid var(--border2) !important; border-radius:8px !important;
	font-size:13.5px !important; color:var(--t1) !important; background:var(--card) !important; outline:none;
}
[id$="_image_param_1"]:focus, [id$="_image_param_2"]:focus, [id$="_image_param_3"]:focus {
	border-color:var(--blue) !important; box-shadow:0 0 0 3px rgba(24,95,165,.12);
}
[id$="_image_menu"] .popupfix td { padding:0 6px 0 0 !important; vertical-align:middle; }
/* 简易编辑器(seditor)同款图片弹窗输入框 */
[id$="img_param_1"].px { height:40px !important; line-height:40px; box-sizing:border-box; border-radius:8px !important; padding:0 14px !important; }

/* === 编辑器「本地上传」区域美化（修复深蓝背景文字看不清） === */
[id$="_image_menu"], [id$="_attach_menu"] {
	background:#ffffff !important; border:1px solid var(--border) !important;
	border-radius:10px !important; box-shadow:0 8px 30px rgba(0,0,0,.12) !important;
}
/* tab 头 */
[id$="_image_ctrl"] li.current a, [id$="_attach_ctrl"] li.current a { color:var(--blue) !important; font-weight:700; }
/* 上传区/提示区：一律浅底深字，去掉深色背景 */
[id$="_image_menu"] .upbk, [id$="_attach_menu"] .upbk,
[id$="_image_menu"] .notice, [id$="_attach_menu"] .notice,
[id$="_image_menu"] .upnf, [id$="_attach_menu"] .upnf,
[id$="_image_menu"] .atds, [id$="_attach_menu"] .atds,
[id$="_image_menu"] .p_tbl, [id$="_attach_menu"] .p_tbl,
[id$="_image_menu"] [id$="attachbtn"], [id$="_attach_menu"] [id$="attachbtn"],
[id$="_image_menu"] [id$="attach_notice"], [id$="_attach_menu"] [id$="attach_notice"],
[id$="_image_menu"] [id$="attachbody"], [id$="_attach_menu"] [id$="attachbody"] {
	background:#F7F8FA !important; background-image:none !important;
	color:var(--t2) !important; border:none !important; border-radius:8px;
}
[id$="_image_menu"] .notice, [id$="_image_menu"] .notice *,
[id$="_attach_menu"] .notice, [id$="_attach_menu"] .notice *,
[id$="_image_menu"] .upnf, [id$="_image_menu"] .upnf * { color:var(--t2) !important; }
/* 文件大小/扩展名高亮（原红色不易读，改主题蓝） */
[id$="_image_menu"] .xi1, [id$="_attach_menu"] .xi1 { color:var(--blue) !important; font-weight:600; }
[id$="_image_menu"] .notice .upnf { padding:8px 10px !important; }
/* 选择文件上传 按钮 */
[id$="_image_menu"] .upbk .btn, [id$="_image_menu"] .swfupload, [id$="_attach_menu"] .swfupload { border-radius:8px !important; }

/* ── 出海资讯文章版块样式 ── */
.article-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  margin-bottom: 8px;
}
.article-row:hover {
  border-color: var(--bm);
  box-shadow: 0 1px 6px rgba(78,162,232,.08);
}
.article-row:hover .article-title {
  color: var(--blue);
}
.article-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.5;
}
.article-excerpt {
  font-size: 12.5px;
  color: var(--t3);
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--t3);
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-meta i {
  font-size: 12px;
}

/* 资讯详情正文卡片样式 */
.art-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  overflow: hidden;
  margin-bottom: 10px;
}
.art-content {
  padding: 24px 26px;
}
.art-lede {
  font-size: 15px;
  color: var(--t1);
  line-height: 1.9;
  font-weight: 500;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.art-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  margin: 28px 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.art-content h2:first-of-type {
  margin-top: 0;
}
.art-content h2::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--blue);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.art-content p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 14px;
}
.art-content ul, .art-content ol {
  margin: 0 0 18px;
  padding-left: 20px;
  list-style: disc;
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.9;
}

/* ── 登录与注册卡片样式 ── */
.login-page-wrap { display: flex; align-items: center; justify-content: center; padding: 20px 0 30px; }
.login-card { width: 480px; background: var(--card); border: 1px solid var(--border); border-radius: var(--rlg); box-shadow: 0 2px 16px rgba(0,0,0,.25); overflow: hidden; margin: 0 auto; }
.login-head { display: flex; align-items: center; gap: 10px; padding: 18px 28px 16px; border-bottom: 1px solid var(--border); font-size: 18px; font-weight: 700; color: var(--t1); }
.login-head i { font-size: 20px; color: var(--blue); }
.login-form { padding: 28px 40px 32px; }
.lrow { display: flex; align-items: center; margin-bottom: 22px; }
.llabel { width: 90px; flex-shrink: 0; font-size: 13.5px; color: var(--t2); font-weight: 500; text-align: right; padding-right: 16px; }
.linput-wrap { flex: 1; position: relative; }
.linput { width: 100%; background: var(--subtle); border: 1px solid var(--border2); border-radius: var(--r); padding: 9px 14px; font-size: 14px; color: var(--t1); outline: none; font-family: inherit; transition: border-color .18s,box-shadow .18s; box-sizing: border-box; }
.linput::placeholder { color: var(--t3); font-size: 13px; }
.linput:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,162,232,.15); }
.linput.has-err { border-color: var(--red); background: rgba(240,98,94,0.06); }
.linput.has-eye { padding-right: 38px; }
.lerr { font-size: 12px; color: var(--red); margin-top: 4px; margin-left: 90px; display: none; }
.lerr.show { display: block; }
.lmid { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-left: 90px; }
.lcap-wrap { display: flex; align-items: center; gap: 10px; }
.lcap-input { width: 120px !important; flex: none !important; }
.lcap-refresh { font-size: 13px; color: var(--blue); cursor: pointer; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.lcap-refresh:hover { text-decoration: underline; }
.lcap-hint { font-size: 12px; color: var(--t3); margin-top: 8px; margin-left: 90px; }
.lcap-canvas-wrap { margin-top: 6px; margin-left: 90px; }
#loginCapCanvas { display: block; cursor: pointer; border: 1px solid var(--border2); border-radius: 4px; }
.auto-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2); cursor: pointer; }
.auto-label input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--blue); cursor: pointer; }
.auto-row { display: flex; align-items: center; gap: 6px; }
.forgot { font-size: 13px; color: var(--t3); transition: color .12s; }
.forgot:hover { color: var(--blue); text-decoration: underline; }
.lbtns { display: flex; flex-direction: column; gap: 10px; }
.btn-submit-form { display: block; width: 100%; background: var(--green); color: #0a1628; border: none; border-radius: var(--r); padding: 12px 0; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: 2px; transition: background .15s,transform .1s; text-align: center; text-decoration: none; }
.btn-submit-form:hover { background: #4ec480; color: #0a1628; text-decoration: none; }
.btn-submit-form:active { transform: scale(.98); }
.btn-link-form { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--card2); color: var(--t1); border: 1px solid var(--border2); border-radius: var(--r); padding: 12px 0; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; letter-spacing: 1px; transition: border-color .15s,color .15s; text-decoration: none; }
.btn-link-form:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ── 注册页面卡片与弹窗 ── */
.reg-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--rlg); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.2); margin: 0 auto; }
.reg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.reg-head-left { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--blue); }
.reg-head-left i { font-size: 18px; color: var(--blue); }
.reg-head-right { font-size: 13px; color: var(--t2); }
.reg-head-right a { color: var(--blue); font-weight: 500; margin-left: 4px; text-decoration: none; }
.reg-head-right a:hover { text-decoration: underline; }
.reg-form { padding: 20px 32px 28px; }
.fitem { margin-bottom: 16px; }
.fitem:last-child { margin-bottom: 0; }
.flabel { font-size: 13.5px; font-weight: 500; color: var(--t1); margin-bottom: 6px; display: block; }
.req { color: var(--red); margin-right: 2px; }
.finput { width: 100%; background: var(--subtle); border: 1px solid var(--border2); border-radius: var(--r); padding: 9px 14px; font-size: 14px; color: var(--t1); outline: none; font-family: inherit; transition: border-color .18s,box-shadow .18s; box-sizing: border-box; }
.finput:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,162,232,.15); }
.finput.has-err { border-color: var(--red); background: rgba(240,98,94,0.06); }
.finput.has-ok { border-color: var(--green); }
.finput.has-eye { padding-right: 40px; }
.finput::placeholder { color: var(--t3); font-size: 13px; }
.finput-wrap { position: relative; }
.eye-btn { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; color: var(--t3); font-size: 16px; line-height: 1; padding: 0; transition: color .12s; }
.eye-btn:hover { color: var(--blue); }
.ftip { font-size: 12.5px; color: var(--t3); margin-top: 5px; min-height: 18px; }
.str-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.str-bar { display: flex; gap: 3px; width: 130px; }
.str-bar .sb { flex: 1; height: 3px; border-radius: 2px; background: var(--border2); transition: background .2s; }
.str-bar .sb.w { background: var(--red); }
.str-bar .sb.m { background: var(--orange); }
.str-bar .sb.s { background: var(--green); }
.str-lbl { font-size: 11.5px; color: var(--t3); }
.cap-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cap-input { width: 120px !important; }
.cap-refresh { font-size: 13px; color: var(--blue); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.cap-refresh:hover { text-decoration: underline; }
.cap-hint { font-size: 12px; color: var(--t3); margin-bottom: 6px; }
#capCanvas { display: block; cursor: pointer; border: 1px solid var(--border2); border-radius: 4px; }
.fdivider { height: 1px; background: var(--border); margin: 18px 0; }
.fsubmit { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.submit-btn { background: var(--blue); color: #fff; border: none; border-radius: var(--r); padding: 10px 40px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; letter-spacing: 1px; transition: background .15s,transform .1s; box-shadow: 0 2px 8px rgba(78,162,232,.25); }
.submit-btn:hover { background: #3d8fd4; }
.submit-btn:active { transform: scale(.98); }
.agree-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); cursor: pointer; }
.agree-label input { accent-color: var(--blue); width: 14px; height: 14px; cursor: pointer; }
.agree-label a { color: var(--blue); font-weight: 500; text-decoration: none; }
.agree-label a:hover { text-decoration: underline; }

/* 服务条款弹窗 */
.terms-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: none; align-items: center; justify-content: center; }
.terms-overlay.open { display: flex; }
.terms-box { background: var(--card); border: 1px solid var(--border2); border-radius: 8px; width: 620px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(0,0,0,.4); overflow: hidden; }
.terms-head { padding: 13px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.terms-head h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin: 0; }
.terms-body { flex: 1; overflow-y: auto; padding: 18px 22px; font-size: 13.5px; color: var(--t2); line-height: 1.9; }
.terms-body .tn { font-weight: 700; color: var(--t1); margin-bottom: 10px; }
.terms-body h4 { font-size: 13.5px; font-weight: 600; color: var(--t1); margin: 10px 0 3px; }
.terms-body p { margin-bottom: 3px; }
.terms-foot { padding: 13px 20px; border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 12px; background: var(--subtle); flex-shrink: 0; }
.tbtn-a { background: var(--blue); color: #fff; border: none; border-radius: 4px; padding: 8px 32px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tbtn-a:hover { background: #3d8fd4; }
.tbtn-r { background: transparent; color: var(--t2); border: 1px solid var(--border2); border-radius: 4px; padding: 8px 32px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tbtn-r:hover { border-color: var(--red); color: var(--red); }

/* ── 动态注册表单项样式兼容 ── */
.reg-form input.px, .reg-form select, .reg-form textarea { width: 100% !important; background: var(--subtle) !important; border: 1px solid var(--border2) !important; border-radius: var(--r) !important; padding: 9px 14px !important; font-size: 14px !important; color: var(--t1) !important; outline: none !important; box-sizing: border-box !important; height: 40px !important; }
.reg-form input.px:focus, .reg-form select:focus, .reg-form textarea:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(78,162,232,.15) !important; }
.reg-form .rfm { border: none !important; margin-bottom: 16px !important; padding: 0 !important; overflow: hidden; }
.reg-form .rfm table, .reg-form .rfm tbody, .reg-form .rfm tr, .reg-form .rfm th, .reg-form .rfm td { display: block !important; width: 100% !important; box-sizing: border-box; padding: 0 !important; text-align: left !important; background: transparent !important; }
.reg-form .rfm th { font-size: 13.5px !important; font-weight: 500 !important; color: var(--t1) !important; margin-bottom: 6px !important; }
.reg-form .p_tip { font-style: normal; font-size: 13px !important; font-weight: 600 !important; color: var(--red) !important; margin-top: 2px !important; min-height: 18px !important; line-height: 1.5 !important; display: none; }
.reg-form .p_chk { font-size: 12px; margin-left: 6px; }
.reg-form td.tipcol { padding-top: 2px !important; }
.reg-form .rq { color: var(--red); margin-right: 2px; }

/* Homepage reference alignment: match template/第二个站UI/index.html visual values. */
.pg_index #wp.wp-content {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.pg_index .tb {
  max-width: var(--W) !important;
  padding: 0 var(--P) !important;
  height: 60px !important;
  gap: 16px !important;
}
.pg_index .chuhai-logo {
  gap: 9px !important;
  margin-right: 0 !important;
}
.pg_index .chuhai-logo-ic {
  width: 42px !important;
  height: 42px !important;
  background: linear-gradient(140deg,#ffd166,#e8a317) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(255,193,77,0.5) !important;
}
.pg_index .chuhai-logo-ic svg {
  width: 23px !important;
  height: 23px !important;
}
.pg_index .chuhai-logo-name {
  font-size: 23px !important;
  font-weight: 800 !important;
  background: linear-gradient(95deg,#fff 20%,#ffd166 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: .3px !important;
  line-height: 1.1 !important;
}
.pg_index .chuhai-logo-sub {
  font-size: 11px !important;
  color: #f0c478 !important;
  margin-top: 3px !important;
  font-weight: 600 !important;
  letter-spacing: .5px !important;
}
.pg_index .sep {
  margin: 0 !important;
}
.pg_index .tbr {
  gap: 6px !important;
}
.pg_index .lang {
  width: auto !important;
  height: auto !important;
  background: #F2F4F7 !important;
  border: 1px solid #CBD2DC !important;
}
.pg_index .lb {
  padding: 5px 11px !important;
  color: #374151 !important;
  font-weight: 500 !important;
}
.pg_index .lb.on {
  background: #185FA5 !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.pg_index .ld {
  background: #CBD2DC !important;
}
.pg_index .btn-login,
.pg_index .btn-l {
  border: 1px solid var(--border2) !important;
  background: var(--card2) !important;
  color: var(--t1) !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.pg_index .btn-register {
  border: 1px solid #3b9b66 !important;
  color: #3b9b66 !important;
  background: #EAF3DE !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.pg_index .btn-quick-post {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: var(--r) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  gap: 5px !important;
}
.pg_index .ann-bar {
  background: var(--navy) !important;
  overflow: hidden !important;
}
.pg_index .ann-inner {
  max-width: var(--W) !important;
  margin: 0 auto !important;
  padding: 7px var(--P) !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: #B5D4F4 !important;
}
.pg_index .ann-inner a {
  color: #85B7EB !important;
  font-size: 11px !important;
}
.pg_index .ann-close {
  background: none;
  border: none;
  color: #6f93bf;
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 2px;
}
.pg_index .adbar-page {
  background: var(--bg) !important;
}
.pg_index .adbar-inner {
  max-width: var(--W) !important;
  margin: 0 auto !important;
  padding: 8px var(--P) 0 !important;
  gap: 4px !important;
}
.pg_index .adbar-row {
  display: flex !important;
  gap: 5px !important;
}
.pg_index .adc {
  flex: 1 !important;
  padding: 5px 9px !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  box-shadow: none !important;
}
.pg_index .adc:hover,
.pg_index .adc.empty:hover {
  border-color: var(--bm) !important;
  background: var(--bl) !important;
  box-shadow: none !important;
}
.pg_index .adc.empty {
  background: transparent !important;
  border-style: dashed !important;
}
.pg_index .atag {
  font-size: 9px !important;
  background: var(--bl) !important;
  color: var(--blue) !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
}
.pg_index .atxt {
  font-size: 11px !important;
  font-weight: 500 !important;
  font-family: 'JetBrains Mono', monospace !important;
  color: var(--t1) !important;
}
.pg_index .adc.empty .atxt {
  color: var(--t3) !important;
  font-family: 'Noto Sans SC', sans-serif !important;
  font-weight: 400 !important;
}
.pg_index .wrap {
  max-width: var(--W) !important;
  margin: 10px auto 16px !important;
  padding: 0 var(--P) !important;
  grid-template-columns: 200px 1fr 200px !important;
  gap: 12px !important;
}
.pg_index .left-col,
.pg_index .side {
  width: auto !important;
}
.pg_index .stat-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.pg_index .stat-card {
  padding: 12px 10px !important;
}
.pg_index .stat-num {
  font-size: 21px !important;
  color: var(--blue) !important;
  font-feature-settings: "tnum" !important;
}
.stat-label {
  font-size: 10.5px !important;
}
.cat-name {
  font-size: 12.5px !important;
  font-weight: 500 !important;
}
.cat-desc {
  font-size: 10.5px !important;
}
.cat-ic.dem {
  background: var(--gl) !important;
  color: var(--green) !important;
}
.cat-ic.gua {
  background: var(--cl) !important;
  color: var(--cyan) !important;
}
.cat-ic.ann {
  background: rgba(240,184,76,0.15) !important;
  color: var(--orange) !important;
}
.home-rules-alert,
.home-legacy-stats {
  display: none !important;
}
.list-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
  overflow: hidden !important;
  margin-bottom: 10px !important;
}
.list-head {
  padding: 11px 15px !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.list-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--t1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.fsel {
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  color: #9fb3cc !important;
  padding: 4px 8px !important;
  border-radius: var(--r) !important;
  font-size: 12px !important;
  outline: none !important;
}
.plist {
  display: block !important;
}
.pcard {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
  padding: 13px 14px !important;
  margin: 0 0 7px !important;
  box-shadow: none !important;
}
.pcard:hover {
  border-color: var(--bm) !important;
  box-shadow: 0 1px 6px rgba(24,95,165,.07) !important;
}
.pin-badge {
  color: #1a1306 !important;
  background: linear-gradient(135deg,#f5c860,#e0a020) !important;
  border: none !important;
  padding: 3px 9px !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(224,160,32,0.35) !important;
}
.cat,
.cat-tag {
  font-size: 11px !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
}
.cat.s {
  background: rgba(76,172,250,0.18) !important;
  color: #4cacfa !important;
}
.cat.d {
  background: rgba(66,240,144,0.18) !important;
  color: #42f090 !important;
}
.ptitle,
.ptitle-pin,
.post-title {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: var(--t1) !important;
}
.pex {
  font-size: 11.5px !important;
  color: var(--t3) !important;
  margin: 6px 0 8px !important;
}
.pmeta {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  border-top: 1px solid var(--border) !important;
  padding-top: 10px !important;
  margin: 0 0 6px !important;
}
.mi {
  padding: 0 14px !important;
  border-right: 1px solid var(--border) !important;
  color: var(--t3) !important;
}
.mi:first-child {
  padding-left: 0 !important;
}
.mi:last-child {
  border-right: none !important;
  margin-left: auto !important;
  padding-right: 0 !important;
}
.pact {
  gap: 6px !important;
  margin-top: 0px !important;
  padding-top: 9px !important;
}
.ab {
  font-size: 11.5px !important;
  color: var(--t2) !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  border: 1px solid var(--border2) !important;
  background: transparent !important;
}
.ab:hover {
  background: var(--bl) !important;
  border-color: var(--bm) !important;
  color: var(--blue) !important;
}
.pagi {
  justify-content: flex-start !important;
  gap: 18px !important;
  margin: 14px 0 0 !important;
  padding: 12px 14px 14px !important;
  border-top: 1px solid var(--border) !important;
}
.pg {
  justify-content: flex-start !important;
  gap: 4px !important;
}
.pg a,
.pg strong,
.pg span {
  height: 22px !important;
  min-width: 22px !important;
  padding: 0 2px !important;
  border: none !important;
  background: transparent !important;
  color: var(--blue) !important;
  font-size: 13px !important;
}
.pg strong {
  color: var(--t1) !important;
  font-weight: 700 !important;
}
.sb {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}
.sbt {
  font-size: 12.5px !important;
  margin-bottom: 10px !important;
}
.news-row {
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--border) !important;
}
.news-txt {
  font-size: 12px !important;
  color: var(--t1) !important;
  line-height: 1.5 !important;
}
.news-more {
  display: block !important;
  text-align: center !important;
  font-size: 12px !important;
  color: var(--blue) !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
}
.tgbtn:not(.p):not(.g) {
  background: var(--bl) !important;
  color: var(--blue) !important;
  border-color: var(--bm) !important;
}
.tgbtn.p {
  background: var(--pl) !important;
  color: var(--purple) !important;
  border-color: var(--pm) !important;
}
.tgbtn.g {
  background: var(--gl) !important;
  color: var(--green) !important;
  border-color: var(--gm) !important;
}
.riskbox {
  background: rgba(240,184,76,0.1) !important;
  color: #f0b84c !important;
  border: 1px solid rgba(240,184,76,0.35) !important;
}
.flwrap {
  margin: 0 auto !important;
  padding: 0 var(--P) 14px !important;
}

/* Login/register reference alignment */
.topbar {
  border-bottom: none !important;
  box-shadow: none !important;
}
.pg_logging .wrap.center-only,
.pg_register .wrap.center-only {
  display: block !important;
  margin: 10px auto 16px !important;
  max-width: 600px !important;
  padding: 0 var(--P) !important;
}
.pg_logging .login-card {
  max-width: 100% !important;
  width: 480px !important;
}
.pg_logging .login-page-wrap {
  display: flex !important;
  padding: 20px 0 30px !important;
}
.pg_logging .login-form .lrow-seccode {
  align-items: flex-start !important;
  margin-bottom: 22px !important;
}
.pg_logging .login-form .lrow-seccode .llabel {
  margin-top: 8px !important;
}
.pg_logging .login-form .sec-row,
.pg_logging .login-form .sec-row table,
.pg_logging .login-form .sec-row tbody,
.pg_logging .login-form .sec-row tr,
.pg_logging .login-form .sec-row td {
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pg_logging .login-form .sec-row table,
.pg_logging .login-form .sec-row tbody,
.pg_logging .login-form .sec-row tr,
.pg_logging .login-form .sec-row td {
  display: block !important;
  width: 100% !important;
}
.pg_logging .login-form .sec-row td {
  align-items: center !important;
  color: var(--t2) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  font-size: 13.5px !important;
  gap: 10px !important;
}
.pg_logging .login-form input[name="seccodeverify"],
.pg_logging .login-form input[name="secanswer"] {
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r) !important;
  box-sizing: border-box !important;
  color: var(--t1) !important;
  flex: none !important;
  font-size: 14px !important;
  height: 36px !important;
  outline: none !important;
  padding: 8px 14px !important;
  width: 120px !important;
}
.pg_logging .login-form .sec-row a.xi2 {
  color: var(--blue) !important;
  display: inline-flex !important;
  font-size: 13px !important;
  gap: 3px !important;
  margin-left: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.pg_logging .login-form [id^="vseccode_"],
.pg_register .reg-form [id^="vseccode_"] {
  color: var(--t3) !important;
  display: block !important;
  font-size: 12px !important;
  margin: 6px 0 0 0px !important;
  width: 100% !important;
}
.pg_logging .login-form [id^="vseccode_"] img,
.pg_logging .login-form .seccodeimg,
.pg_register .reg-form [id^="vseccode_"] img,
.pg_register .reg-form .seccodeimg {
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: block !important;
  height: 36px !important;
  margin-top: 6px !important;
  width: 104px !important;
}
.pg_register .reg-card {
  max-width: 100% !important;
  width: 100% !important;
}
.pg_register .login-page-wrap {
  display: block !important;
  padding: 20px 0 30px !important;
}
.pg_register .reg-head {
  padding: 14px 24px !important;
}
.pg_register .reg-head-left {
  font-size: 16px !important;
}
.pg_register .reg-head-left i {
  font-size: 18px !important;
}
.pg_register .reg-form {
  padding: 0px 32px 28px !important;
}
.pg_register .reg-form .rfm {
  border: none !important;
  margin-bottom: 6px !important;
  overflow: visible !important;
  padding: 0 !important;
}
.pg_register .reg-form .rfm table,
.pg_register .reg-form .rfm tbody,
.pg_register .reg-form .rfm tr,
.pg_register .reg-form .rfm th,
.pg_register .reg-form .rfm td {
  background: transparent !important;
  box-sizing: border-box !important;
  display: block !important;
  padding: 0 !important;
  text-align: left !important;
  width: 100% !important;
}
.pg_register .reg-form .rfm th {
  color: var(--t1) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-bottom: 2px !important;
}
.pg_register .reg-form .p_chk {
  display: block !important;
  min-height: 18px;
  margin: 5px 0 0 !important;
  color: var(--red) !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.45 !important;
}
.pg_register .reg-form input.px.er {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(240, 98, 94, 0.12) !important;
}
.pg_register .reg-form .sec-row {
  margin: 0 0 16px !important;
}
.pg_register .reg-form .sec-row td {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.pg_register .reg-form .sec-row input[name="seccodeverify"],
.pg_register .reg-form .sec-row input[name="secanswer"] {
  flex: none !important;
  height: 36px !important;
  width: 120px !important;
}
.pg_register .reg-form .sec-row a.xi2 {
  color: var(--blue) !important;
  display: inline-flex !important;
  font-size: 13px !important;
  gap: 3px !important;
  margin-left: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.pg_register .reg-form [id^="vseccode_"] {
  color: var(--t3) !important;
  display: block !important;
  font-size: 12px !important;
  margin-top: 6px !important;
  width: 100% !important;
}
.pg_register .reg-form [id^="vseccode_"] img,
.pg_register .reg-form .seccodeimg {
  background: var(--subtle) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: block !important;
  height: 36px !important;
  margin-top: 6px !important;
  width: 104px !important;
}

.back-bar { display:flex; align-items:center; justify-content:center; gap:7px; background:var(--card); border:1px solid var(--border); border-radius:var(--rlg); padding:11px 0; font-size:13px; font-weight:600; color:var(--blue); text-decoration:none; margin-bottom: 10px; }
.back-bar:hover { opacity: 0.9; }

/* ========================================= */
/* --- Post Form & Editor Beautification --- */
/* ========================================= */

/* Fix Title Input Focus */
.px.px_f, input.px[type="text"]:focus, input.px:focus, .px:focus {
  background: var(--card) !important;
  color: var(--t1) !important;
  border-color: var(--blue) !important;
}

/* Fix Thread Sorts / Category Info Form Background */
.exfm {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--t1) !important;
  padding: 15px !important;
  border-radius: var(--rlg) !important;
}
.exfm th, .exfm td {
  color: var(--t1) !important;
  border-bottom: 1px dashed var(--border2) !important;
}
.exfm .rq { color: var(--red) !important; }

/* Fix Editor Outer Wrapper */
.edt, .tedt, #e_body, .post-card .edt {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
}
.edt .bar, .tedt .bar {
  background: var(--subtle) !important;
  border-bottom: 1px solid var(--border2) !important;
}

/* Switcher tabs (常用, 高级) and general bar anchors styling */
.edt .bar a, .tedt .bar a {
  background-color: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--t1) !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
}
.edt .bar a:hover, .tedt .bar a:hover {
  background-color: var(--border) !important;
  color: var(--t1) !important;
}

/* Exclude icon buttons inside .btn from border and backgrounds */
.edt .btn a, .tedt .btn a, #e_button a {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.edt .btn a:hover, .tedt .btn a:hover, #e_button a:hover {
  background-color: rgba(255,255,255,0.1) !important;
}

/* Dropdowns styling (字体, 大) */
.edt .bar .dp, .tedt .bar .dp,
.edt .bar .dp span, .tedt .bar .dp span {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--t1) !important;
}

.edt .b1r, .edt .b2r {
  background-color: transparent !important;
}
#e_body iframe, #e_body .area {
  background: var(--card) !important;
}

/* Fix Popup Windows */
.fwin { background: transparent !important; }
.fwin .m_c { background: var(--card) !important; border-radius: var(--rlg) !important; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important; border: 1px solid var(--border) !important; }
.fwin .flb { background: var(--subtle) !important; border-bottom: 1px solid var(--border2) !important; }
.fwin .flb span a, .fwin .flb em { color: var(--t1) !important; }

/* Misc Editor popup backgrounds (e.g., color picker, font dropdowns) */
.fpd { background: var(--card) !important; border: 1px solid var(--border) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important; }
.fpd a { color: var(--t1) !important; }
.fpd a:hover { background: var(--bl) !important; color: var(--blue) !important; }

/* Popup form buttons */
.o.pns {
  background: var(--subtle) !important;
  border-top: 1px solid var(--border2) !important;
}

/* ========================================= */
/* --- Advanced Editor Deep Overrides --- */
/* ========================================= */

html body #postbox .exfm,
html body .postbox .exfm,
html body .exfm {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
}

html body #postbox .edt, 
html body #e_body {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--rlg) !important;
}

html body #e_controls.bar, 
html body #e_body .bar {
    background: var(--subtle) !important;
    border-bottom: 1px solid var(--border2) !important;
}

/* Invert the black sprite icons to light gray for dark theme */
html body #e_button a,
html body #e_button .dp {
    background-color: transparent !important;
    filter: invert(0.8) hue-rotate(180deg) !important;
}
html body #e_button a:hover,
html body #e_button .dp:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure the inner textarea (if in text mode) is dark */
html body #e_textarea {
    background: var(--card) !important;
    color: var(--t1) !important;
}

/* Fix dropdown menus in editor */
html body .sllt, html body .fpd {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--t1) !important;
}

/* ========================================= */
/* --- Forum Selector (Nav Modal) Overrides --- */
/* ========================================= */

.fwin .pbl {
  background: var(--subtle) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
}

.fwin .pbl li {
  float: none !important;
  flex: 1 !important;
  border-right: 1px solid var(--border) !important;
  background: var(--card) !important;
  padding: 8px 0 !important;
  height: 250px !important;
  overflow-y: auto !important;
}

.fwin .pbl li:last-child {
  border-right: none !important;
}

.fwin .pbl p {
  margin: 0 !important;
  padding: 0 !important;
}

.fwin .pbl a {
  color: var(--t2) !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-radius: 0 !important;
  border: solid #0a335b !important;
  border-width: 0.1px 0 !important;
}

.fwin .pbl a:hover {
  background: var(--border) !important;
  color: var(--t1) !important;
}

.fwin .pbl a.pbsb::after {
  display: none !important;
}

#postbtn {
  background: var(--blue) !important;
  color: #fff !important;
  border: 1px solid var(--blue) !important;
  border-radius: 6px !important;
  padding: 6px 20px !important;
  height: auto !important;
  line-height: normal !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
#postbtn:hover {
  background: #3593e9 !important;
  border-color: #3593e9 !important;
}
#postbtn[disabled],
#postbtn.xg1 {
  background: var(--border) !important;
  border-color: var(--border) !important;
  color: var(--t3) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* Selected state active */
.fwin .pbl p.pbls a,
.fwin .pbl li.pbls a {
  background: var(--bl) !important;
  color: var(--blue) !important;
  font-weight: 600 !important;
}

/* Custom indicator arrows */
.fwin .pbl a.pbsb {
  background-image: none !important;
  position: relative !important;
}

.fwin .pbl a.pbsb::after {
  display: none !important;
}

/* Fix Forum Selector Paragraph height and white line borders */
.fwin .pbl p {
  height: auto !important;
  line-height: normal !important;
  overflow: visible !important;
  border-bottom: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================= */
/* --- Advanced Post Page Layout Fixes --- */
/* ========================================= */

.pg_post #postform .exfm,
.pg_post .exfm {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
}

.pg_post #postform .exfm th,
.pg_post #postform .exfm td {
    color: var(--t1) !important;
    border-bottom: 1px dashed var(--border2) !important;
}

.pg_post .edt,
.pg_post #e_body,
.pg_post .tedt {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
}

.pg_post .edt .bar,
.pg_post #e_controls.bar,
.pg_post #e_body .bar,
.pg_post .tedt .bar {
    background: var(--subtle) !important;
    border-bottom: 1px solid var(--border2) !important;
}

/* ========================================= */
/* --- Editor Auto-save Restore Notice Bar --- */
/* ========================================= */

#rstnotice, .ntc_l {
    background: rgba(240, 184, 76, 0.12) !important;
    border: 1px solid var(--orange) !important;
    color: var(--orange) !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    margin: 15px 0 !important;
    box-sizing: border-box !important;
}

#rstnotice a, .ntc_l a {
    color: var(--blue) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

#rstnotice a.d, .ntc_l a.d {
    color: var(--orange) !important;
    opacity: 0.8;
    text-decoration: none !important;
    float: right !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* ========================================= */
/* --- Editor Toolbar and Popup Overrides --- */
/* ========================================= */

/* Force dark theme switcher buttons */
#e_fullswitcher,
#e_simple {
  background-color: var(--card) !important;
  background-image: none !important; /* Remove default sprite background image */
  border: 1px solid var(--border) !important;
  color: var(--t1) !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  display: inline-block !important;
}
#e_fullswitcher:hover,
#e_simple:hover {
  background-color: var(--border) !important;
  color: var(--t1) !important;
}

/* Global Dropdown Popup Menu (.p_pop) Dark Theme Overrides */
.p_pop,
.p_pof,
.sllt,
#e_fontname_menu,
#e_fontsize_menu {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  padding: 4px 0 !important;
  border-radius: var(--r) !important;
}

.p_pop a,
#e_fontname_menu a,
#e_fontsize_menu a {
  color: var(--t2) !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  border-bottom: 1px dashed var(--border) !important;
  transition: all 0.15s ease !important;
  display: block !important;
  background: none !important;
}

.p_pop li:last-child a,
#e_fontname_menu li:last-child a,
#e_fontsize_menu li:last-child a {
  border-bottom: none !important;
}

.p_pop a:hover,
.p_pop a.a,
#e_fontname_menu a:hover,
#e_fontsize_menu a:hover {
  background-color: var(--border) !important;
  color: var(--t1) !important;
  text-decoration: none !important;
}

/* Remove white vertical border lines from button groups */
.edt .b1r,
.edt .b2r,
.tedt .b1r,
.tedt .b2r {
  border: none !important;
  background-image: none !important;
}

/* --- Theme Cyan Overrides (News Category) --- */
.theme-cyan .pg strong {
  background: #22d3ee !important;
  border-color: #22d3ee !important;
  color: #0a1628 !important;
}
.theme-cyan .pg a:hover {
  border-color: #22d3ee !important;
  color: #22d3ee !important;
}
.theme-cyan .forum-title {
  color: #22d3ee !important;
}
.theme-cyan .forum-title i {
  color: #22d3ee !important;
}
.theme-cyan .btn-post-main {
  background: #22d3ee !important;
  color: #0a1628 !important;
}
.theme-cyan .btn-post-main:hover {
  background: #1bb8d1 !important;
}
.theme-cyan.cat-tab:hover, .theme-cyan .cat-tab:hover {
  border-color: #22d3ee !important;
  color: #22d3ee !important;
}
.theme-cyan.cat-tab.on, .theme-cyan .cat-tab.on {
  background: #22d3ee !important;
  border-color: #22d3ee !important;
  color: #0a1628 !important;
}
.theme-cyan .flb {
  background: #22d3ee !important;
  color: #0a1628 !important;
}
.theme-cyan #moreconf button#postsubmit,
.theme-cyan .f_c #moreconf button#postsubmit {
  background: #22d3ee !important;
  color: #0a1628 !important;
}
.post-card.theme-cyan input[type="text"]#subject:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12) !important;
}
.post-card.theme-cyan select#typeid:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12) !important;
}
.post-card.theme-cyan .post-actions button#postsubmit {
  background: #22d3ee !important;
  border-color: #22d3ee !important;
  color: #0a1628 !important;
}
.post-card.theme-cyan .post-actions button#postsubmit:hover {
  background: #1bb8d1 !important;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.2) !important;
}

/* Sidebar active states for left_sidebar.htm */
.cat-item.cat-item-sup.active {
  background: var(--bl) !important;
}
.cat-item.cat-item-sup.active .cat-name {
  color: var(--blue) !important;
}
.cat-item.cat-item-sup.active .cat-ic {
  background: var(--blue) !important;
}
.cat-item.cat-item-sup.active .cat-ic i {
  color: #0a1628 !important;
}

.cat-item.cat-item-dem.active {
  background: var(--gl) !important;
}
.cat-item.cat-item-dem.active .cat-name {
  color: var(--green) !important;
}
.cat-item.cat-item-dem.active .cat-ic {
  background: var(--green) !important;
}
.cat-item.cat-item-dem.active .cat-ic i {
  color: #0a1628 !important;
}

.cat-item.cat-item-news.active {
  background: var(--cl) !important;
}
.cat-item.cat-item-news.active .cat-name {
  color: var(--cyan) !important;
}
.cat-item.cat-item-news.active .cat-ic {
  background: var(--cyan) !important;
}
.cat-item.cat-item-news.active .cat-ic i {
  color: #0a1628 !important;
}

.cat-item.cat-item-ann.active {
  background: rgba(240, 184, 76, 0.15) !important;
}
.cat-item.cat-item-ann.active .cat-name {
  color: var(--orange) !important;
}
.cat-item.cat-item-ann.active .cat-ic {
  background: var(--orange) !important;
}
.cat-item.cat-item-ann.active .cat-ic i {
  color: #0a1628 !important;
}

/* --- Thread Title Hover Colors --- */
.ptitle:hover, .ptitle-pin:hover {
  color: var(--blue) !important;
}
.theme-green .ptitle:hover, .theme-green .ptitle-pin:hover {
  color: var(--green) !important;
}
.theme-cyan .ptitle:hover, .theme-cyan .ptitle-pin:hover {
  color: var(--cyan) !important;
}

/* Hide newcomer-thread labels on PC while keeping the mobile treatment unchanged. */
.new-badge {
  display: none !important;
}

/* Portal editor: keep the frame edge within the dark article publishing surface. */
.dts-portal-editor {
  height: 400px;
  overflow: hidden;
  background: #0e1f38;
  border: 0;
  border-radius: 4px;
}
.dts-portal-editor iframe {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  background: #0e1f38;
  border: 0 !important;
}

/* Follow/broadcast pages still use Discuz legacy markup. */
.pg_follow #ct.ct1,
.pg_follow #ct.ct2_a {
  display: flex;
  gap: 20px;
  width: var(--W);
  margin: 20px auto;
  padding: 0;
}
.pg_follow #ct .mn,
.pg_follow #ct .appl,
.pg_follow #ct .bm,
.pg_follow #ct .bm_c,
.pg_follow #ct .tbn {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_follow #ct .mn {
  min-width: 0;
  flex: 1;
}
.pg_follow #ct .appl {
  width: 200px;
  flex: 0 0 200px;
}
.pg_follow #ct .tbn {
  overflow: hidden;
  border: 1px solid #244568;
  border-radius: var(--r);
}
.pg_follow #ct .tbn h2,
.pg_follow #ct .tbn li {
  margin: 0;
  border-color: #244568 !important;
}
.pg_follow #ct .tbn h2 {
  padding: 14px 18px;
  color: var(--t1);
}
.pg_follow #ct .tbn li a {
  display: block;
  padding: 12px 18px;
  color: var(--t2) !important;
}
.pg_follow #ct .tbn li.a a,
.pg_follow #ct .tbn li a:hover {
  background: rgba(78, 162, 232, 0.18) !important;
  color: #d3ebff !important;
}
.pg_follow #flw_header,
.pg_follow .flw_feed,
.pg_follow .flw_user_list,
.pg_follow #nofollowmsg {
  background: #0e1f38;
  border: 1px solid #244568;
  border-radius: var(--r);
}
.pg_follow #flw_header {
  padding: 18px;
}
.pg_follow .my_flw_stats li,
.pg_follow .tns th,
.pg_follow .tns td {
  border-color: #244568 !important;
}
.pg_follow #fastposteditor .tedt,
.pg_follow #flw_post_subject input,
.pg_follow #fastpostmessage {
  background: #0a1a31 !important;
  border-color: #2a5279 !important;
  color: var(--t1) !important;
}
.pg_follow #flw_bar,
.pg_follow #fastposteditor .bar {
  background: #13294a !important;
  border-color: #244568 !important;
}
.pg_follow .flw_feed > ul > li,
.pg_follow .flw_ulist > li,
.pg_follow .flw_thread > ul > li {
  margin: 0;
  padding: 18px;
  background: #0e1f38 !important;
  border-bottom: 1px solid #244568 !important;
  color: var(--t1) !important;
}
.pg_follow .flw_feed > ul > li:last-child,
.pg_follow .flw_ulist > li:last-child {
  border-bottom: 0 !important;
}
.pg_follow .flw_feed_hover,
.pg_follow .flw_feed > ul > li:hover,
.pg_follow .flw_ulist > li:hover {
  background: #10243f !important;
}
.pg_follow .flw_author,
.pg_follow .flw_article,
.pg_follow .flw_article h2,
.pg_follow .flw_article p,
.pg_follow .flw_quote,
.pg_follow .flw_quotenote {
  color: var(--t1) !important;
}
.pg_follow .flw_author .xg1,
.pg_follow .flw_article .xg1,
.pg_follow .flw_article .xg2 {
  color: var(--t3) !important;
}
.pg_follow .flw_quote,
.pg_follow .flw_quotenote,
.pg_follow .flw_replybox {
  background: #13294a !important;
  border-color: #244568 !important;
}
.pg_follow .flw_btn_fo,
.pg_follow .flw_btn_unfo,
.pg_follow .flw_specialfo,
.pg_follow .flw_specialunfo {
  background: #1f76b4 !important;
  border-color: #3693d2 !important;
  color: #fff !important;
}

/* Follow page profile header and legacy post form. */
.pg_follow #uhd {
  width: var(--W) !important;
  margin: 20px auto 0 !important;
  padding: 20px 24px 0 !important;
  background: #0e1f38 !important;
  border: 1px solid #244568 !important;
  border-radius: var(--r) !important;
  color: var(--t1) !important;
}
.pg_follow #uhd .h,
.pg_follow #uhd .mn,
.pg_follow #uhd h2,
.pg_follow #uhd p {
  background: transparent !important;
  color: var(--t1) !important;
}
.pg_follow #uhd .h p a,
.pg_follow #uhd .h .xg1 {
  color: var(--t3) !important;
}
.pg_follow #uhd .tb {
  display: flex !important;
  gap: 4px !important;
  margin: 18px 0 0 !important;
  border: 0 !important;
}
.pg_follow #uhd .tb li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.pg_follow #uhd .tb li a {
  display: block !important;
  padding: 10px 16px !important;
  background: #13294a !important;
  border: 1px solid #244568 !important;
  border-radius: 5px 5px 0 0 !important;
  color: var(--t2) !important;
}
.pg_follow #uhd .tb li.a a,
.pg_follow #uhd .tb li a:hover {
  background: rgba(78, 162, 232, 0.22) !important;
  border-color: #2a6f9d !important;
  color: #d3ebff !important;
}
.pg_follow #fastpostmessage {
  height: 150px !important;
  min-height: 150px !important;
  resize: vertical !important;
}
.pg_follow #flw_post_extra .sec {
  min-height: 44px !important;
  margin: 12px 0 0 !important;
  padding: 6px 10px !important;
  background: #13294a !important;
  border: 1px solid #244568 !important;
  border-radius: 5px !important;
  color: var(--t2) !important;
}
.pg_follow #flw_post_extra .sec input[name="seccodeverify"],
.pg_follow #flw_post_extra .sec input[name="secanswer"] {
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  background: #0a1a31 !important;
  border-color: #2a5279 !important;
  color: var(--t1) !important;
  box-sizing: border-box !important;
}
.pg_follow #flw_post_extra .sec .p_pop,
.pg_follow #flw_post_extra .sec div[id$="_menu"] {
  background: #13294a !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}

/* Public user-space thread and share views. */
.pg_space #uhd {
  width: var(--W);
  margin: 20px auto 0;
  padding: 20px 24px 0;
  background: #0e1f38 !important;
  border: 1px solid #244568;
  border-radius: var(--r);
  color: var(--t1) !important;
}
.pg_space #uhd .h,
.pg_space #uhd .mn,
.pg_space #uhd h2,
.pg_space #uhd p {
  color: var(--t1) !important;
}
.pg_space #uhd .h p a,
.pg_space #uhd .h .xg1 {
  color: var(--t3) !important;
}
.pg_space #uhd .tb {
  display: flex;
  gap: 4px;
  margin: 18px 0 0 !important;
  border: 0 !important;
}
.pg_space #uhd .tb li {
  float: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
}
.pg_space #uhd .tb li a {
  display: block;
  padding: 10px 16px;
  background: #13294a !important;
  color: var(--t2) !important;
  border: 1px solid #244568 !important;
  border-radius: 5px 5px 0 0;
}
.pg_space #uhd .tb li.a a,
.pg_space #uhd .tb li a:hover {
  background: rgba(78, 162, 232, 0.18) !important;
  border-color: #2a6f9d !important;
  color: #d3ebff !important;
}
.pg_space #ct,
.pg_space #ct.ct1,
.pg_space #ct.ct2 {
  width: var(--W);
  margin: 20px auto;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
}
.pg_space #ct .mn,
.pg_space #ct .bm,
.pg_space #ct .bm_c {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_space #ct .bm {
  border: 1px solid #244568 !important;
  border-radius: var(--r);
}
.pg_space #ct .bm_c {
  padding: 20px;
}
.pg_space #ct .tb li a {
  background: #13294a !important;
  border-color: #244568 !important;
  color: var(--t2) !important;
}
.pg_space #ct .tb li.a a,
.pg_space #ct .tb li a:hover {
  background: rgba(78, 162, 232, 0.22) !important;
  border-color: #2a6f9d !important;
  color: #d3ebff !important;
}
.pg_space #ct .tbmu {
  background: #13294a !important;
  border: 1px solid #244568 !important;
  border-radius: 5px;
  color: var(--t2) !important;
}
.pg_space #ct .tbmu a,
.pg_space #ct .tbmu a.a {
  color: #b9d8f3 !important;
}
.pg_space #ct .tbmu a.a {
  color: #d3ebff !important;
  font-weight: 700;
}
.pg_space #ct .tl,
.pg_space #ct .tl table {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_space #ct .tl th,
.pg_space #ct .tl td {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_space #ct .tl tr.th th,
.pg_space #ct .tl tr.th td {
  background: #13294a !important;
  color: #b9d8f3 !important;
}
.pg_space #ct .tl tr:hover th,
.pg_space #ct .tl tr:hover td {
  background: #10243f !important;
}
.pg_space #ct .tl .xg1,
.pg_space #ct .tl .xg2,
.pg_space #ct .tl cite {
  color: var(--t3) !important;
}
.pg_space #share_ul,
.pg_space #share_ul li,
.pg_space #share_ul .d,
.pg_space #share_ul .ec {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_space #share_ul li {
  padding: 16px;
}
.pg_space #share_ul li:hover {
  background: #10243f !important;
}
.pg_space #share_ul .xg1,
.pg_space #share_ul .xg2,
.pg_space #ct .emp {
  color: var(--t3) !important;
}
.pg_space #shareform #share_link {
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  background: #0a1a31 !important;
  border-color: #2a5279 !important;
  color: var(--t1) !important;
  box-sizing: border-box !important;
}

/* Portal publish captcha: keep the image visible between the input and refresh link. */
.dts-portal-seccode {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  color: var(--t2) !important;
  vertical-align: middle !important;
}
.dts-portal-seccode input[name="seccodeverify"] {
  order: 1 !important;
  width: 100px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #0a1a31 !important;
  border: 1px solid #2a5279 !important;
  border-radius: 5px !important;
  color: var(--t1) !important;
  line-height: 22px !important;
}
.dts-portal-seccode span[id^="vseccode_"] {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 88px !important;
  min-height: 36px !important;
  padding: 1px !important;
  overflow: hidden !important;
  font-size: 0 !important;
  background: #13294a !important;
  border: 1px solid #2a5279 !important;
  border-radius: 5px !important;
}
.dts-portal-seccode span[id^="vseccode_"] img {
  display: block !important;
  max-height: 32px !important;
  border: 0 !important;
  background: #13294a !important;
}
.dts-portal-seccode > a.xi2 {
  order: 3 !important;
  margin: 0 !important;
  color: var(--blue) !important;
  white-space: nowrap !important;
}
.dts-portal-seccode span[id^="checkseccodeverify_"] {
  order: 4 !important;
  line-height: 1 !important;
}

/* Final space-page overrides for the legacy home stylesheet. */
#uhd .tb li,
#uhd .tb li.a {
  background: transparent !important;
  border: 0 !important;
}
#uhd .tb li a {
  background: #13294a !important;
  border: 1px solid #244568 !important;
  color: #9fb3cc !important;
}
#uhd .tb li.a a,
#uhd .tb li a:hover {
  background: rgba(78, 162, 232, 0.22) !important;
  border-color: #2a6f9d !important;
  color: #d3ebff !important;
}
#uhd + #ct,
.pg_follow #ct {
  background: transparent !important;
  border: 0 !important;
}
#uhd + #ct .mn,
#uhd + #ct .bm,
#uhd + #ct .bm_c,
#uhd + #ct .tl,
#uhd + #ct .tl table,
#uhd + #ct .tl th,
#uhd + #ct .tl td,
#uhd + #ct .emp {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: #e9f0fa !important;
}
#uhd + #ct .bm {
  border: 1px solid #244568 !important;
  border-radius: 6px !important;
}
#uhd + #ct .tl tr.th th,
#uhd + #ct .tl tr.th td {
  background: #13294a !important;
  color: #b9d8f3 !important;
}
#uhd + #ct .tl tr:hover th,
#uhd + #ct .tl tr:hover td {
  background: #10243f !important;
}
.pg_follow #fastpostform,
.pg_follow #flw_post_extra,
.pg_follow #fastposteditor,
.pg_follow #fastposteditor .tedt,
.pg_follow #fastposteditor .area,
.pg_follow #fastpostmessage,
.pg_follow #flw_post_extra .sec {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.pg_follow #fastpostform {
  display: block !important;
}
.pg_follow #flw_header {
  width: 100% !important;
  box-sizing: border-box !important;
}
.pg_follow #fastpostmessage {
  display: block !important;
}
.pg_follow #flw_post_extra .sec {
  display: block !important;
}
.pg_follow #flw_post_extra .sec > span,
.pg_follow #flw_post_extra .sec span[id^="seccode_c"],
.pg_follow #flw_post_extra .sec span[id^="secqaa_"] {
  background: transparent !important;
  color: var(--t2) !important;
}

/* Friend search and friend-list pages use legacy Discuz home templates. */
.pg_spacecp #ct.ct2_a,
.pg_space #ct.ct2_a {
  background: transparent !important;
  border-color: #244568 !important;
}
.pg_spacecp #ct.ct2_a .mn,
.pg_spacecp #ct.ct2_a .bm,
.pg_spacecp #ct.ct2_a .bm_c,
.pg_spacecp #ct.ct2_a .bmn,
.pg_spacecp #ct.ct2_a .scf,
.pg_space #ct.ct2_a .mn,
.pg_space #ct.ct2_a .bm,
.pg_space #ct.ct2_a .bm_c,
.pg_space #ct.ct2_a .bmn {
  background: #0e1f38 !important;
  border-color: #244568 !important;
  color: var(--t1) !important;
}
.pg_spacecp #ct.ct2_a .bm,
.pg_spacecp #ct.ct2_a .bmn,
.pg_space #ct.ct2_a .bm,
.pg_space #ct.ct2_a .bmn {
  border: 1px solid #244568 !important;
  border-radius: var(--r) !important;
}
.pg_spacecp #ct .tb,
.pg_space #ct .tb {
  margin-bottom: 0 !important;
  border-color: #244568 !important;
  background: transparent !important;
}
.pg_spacecp #ct .tb li,
.pg_space #ct .tb li {
  background: transparent !important;
  border: 0 !important;
}
.pg_spacecp #ct .tb li a,
.pg_space #ct .tb li a {
  background: #13294a !important;
  border: 1px solid #244568 !important;
  color: var(--t2) !important;
}
.pg_spacecp #ct .tb li.a a,
.pg_spacecp #ct .tb li a:hover,
.pg_space #ct .tb li.a a,
.pg_space #ct .tb li a:hover {
  background: rgba(78, 162, 232, 0.22) !important;
  border-color: #2a6f9d !important;
  color: #d3ebff !important;
}
.pg_spacecp #ct .scf h2,
.pg_spacecp #ct .tfm th,
.pg_spacecp #ct .tfm td,
.pg_spacecp #ct .tfm label,
.pg_space #ct .mt,
.pg_space #ct .mtw,
.pg_space #ct .buddy h4,
.pg_space #ct .buddy p {
  color: var(--t1) !important;
}
.pg_spacecp #ct .tfm,
.pg_spacecp #ct .tfm tbody,
.pg_spacecp #ct .tfm tr,
.pg_spacecp #ct .tfm th,
.pg_spacecp #ct .tfm td {
  background: #102440 !important;
  border-color: #244568 !important;
}
.pg_spacecp #ct .tfm th,
.pg_spacecp #ct .tfm td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.pg_spacecp #ct .px,
.pg_spacecp #ct .ps,
.pg_spacecp #ct select,
.pg_space #ct .px,
.pg_space #ct .ps,
.pg_space #ct select {
  background: #0b1a30 !important;
  border-color: #2b5378 !important;
  color: #dceafa !important;
}
.pg_spacecp #ct .emp,
.pg_space #ct .emp {
  background: #102440 !important;
  border: 1px solid #244568 !important;
  color: var(--t2) !important;
}
.pg_space #ct #friend_ul,
.pg_space #ct .buddy,
.pg_space #ct .buddy li {
  background: transparent !important;
}
.pg_space #ct .buddy li {
  border-color: #244568 !important;
  background: #13294a !important;
  border-radius: 5px;
}
.pg_space #ct .buddy li a,
.pg_space #ct .buddy li .xg1,
.pg_space #ct .buddy li .note,
.pg_space #ct .buddy_group li a,
.pg_space #ct .buddy_group .b,
.pg_space #ct .buddy_group .o {
  color: #b9d8f3 !important;
}
.pg_space #ct .buddy_group li {
  border-color: #244568 !important;
}
.pg_space #ct .appl,
.pg_spacecp #ct .appl {
  background: transparent !important;
}
.pg_space #ct .tbn,
.pg_spacecp #ct .tbn {
  overflow: hidden;
  background: #102440 !important;
  border: 1px solid #244568 !important;
  border-radius: var(--r);
}
.pg_space #ct .tbn h2,
.pg_space #ct .tbn li,
.pg_spacecp #ct .tbn h2,
.pg_spacecp #ct .tbn li {
  margin: 0 !important;
  border-color: #244568 !important;
}
.pg_space #ct .tbn h2,
.pg_spacecp #ct .tbn h2 {
  padding: 13px 16px;
  color: var(--t1) !important;
}
.pg_space #ct .tbn li a,
.pg_spacecp #ct .tbn li a {
  display: block;
  padding: 0 16px;
  color: var(--t2) !important;
}
.pg_space #ct .tbn li.a,
.pg_space #ct .tbn li.a a,
.pg_space #ct .tbn li a:hover,
.pg_spacecp #ct .tbn li.a,
.pg_spacecp #ct .tbn li.a a,
.pg_spacecp #ct .tbn li a:hover {
  background: rgba(78, 162, 232, 0.18) !important;
  color: #d3ebff !important;
}
.pg_space .p_pop,
.pg_spacecp .p_pop {
  background: #13294a !important;
  border-color: #2b5378 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26) !important;
}
.pg_space .p_pop a,
.pg_spacecp .p_pop a {
  color: #d3ebff !important;
}
.pg_space .p_pop a:hover,
.pg_spacecp .p_pop a:hover {
  background: rgba(78, 162, 232, 0.18) !important;
}
